@undp/data-viz 2.1.3 → 2.1.5

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 (154) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +279 -272
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs +1 -1
  15. package/dist/BiVariateChoroplethMap.js +1 -1
  16. package/dist/BulletChart.cjs +1 -1
  17. package/dist/BulletChart.cjs.map +1 -1
  18. package/dist/BulletChart.js +298 -287
  19. package/dist/BulletChart.js.map +1 -1
  20. package/dist/ButterflyChart.cjs +1 -1
  21. package/dist/ButterflyChart.cjs.map +1 -1
  22. package/dist/ButterflyChart.js +224 -217
  23. package/dist/ButterflyChart.js.map +1 -1
  24. package/dist/ChoroplethMap.cjs +1 -1
  25. package/dist/ChoroplethMap.js +1 -1
  26. package/dist/CirclePackingGraph.cjs +1 -1
  27. package/dist/CirclePackingGraph.js +2 -2
  28. package/dist/DifferenceLineChart.cjs +1 -1
  29. package/dist/DifferenceLineChart.cjs.map +1 -1
  30. package/dist/DifferenceLineChart.js +404 -397
  31. package/dist/DifferenceLineChart.js.map +1 -1
  32. package/dist/DonutChart.cjs +1 -1
  33. package/dist/DonutChart.cjs.map +1 -1
  34. package/dist/DonutChart.js +116 -113
  35. package/dist/DonutChart.js.map +1 -1
  36. package/dist/DotDensityMap.cjs +1 -1
  37. package/dist/DotDensityMap.js +1 -1
  38. package/dist/DualAxisLineChart.cjs +1 -1
  39. package/dist/DualAxisLineChart.cjs.map +1 -1
  40. package/dist/DualAxisLineChart.js +320 -313
  41. package/dist/DualAxisLineChart.js.map +1 -1
  42. package/dist/DumbbellChart.cjs +1 -1
  43. package/dist/DumbbellChart.cjs.map +1 -1
  44. package/dist/DumbbellChart.js +298 -291
  45. package/dist/DumbbellChart.js.map +1 -1
  46. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  47. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  48. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  49. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  50. package/dist/GraphEl-BixTEyKW.cjs +2 -0
  51. package/dist/GraphEl-BixTEyKW.cjs.map +1 -0
  52. package/dist/{GraphEl-CRrAlbcr.js → GraphEl-Dyu_EIQb.js} +3 -2
  53. package/dist/GraphEl-Dyu_EIQb.js.map +1 -0
  54. package/dist/GriddedGraphs.cjs +1 -1
  55. package/dist/GriddedGraphs.js +2 -2
  56. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  57. package/dist/GriddedGraphsFromConfig.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.cjs.map +1 -1
  60. package/dist/HeatMap.js +179 -172
  61. package/dist/HeatMap.js.map +1 -1
  62. package/dist/Histogram.cjs +1 -1
  63. package/dist/Histogram.js +2 -2
  64. package/dist/HybridMap.cjs +1 -1
  65. package/dist/HybridMap.js +1 -1
  66. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  67. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  68. package/dist/LineChartWithConfidenceInterval.js +368 -361
  69. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  70. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  71. package/dist/MultiGraphDashboardFromConfig.js +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  73. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  74. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  75. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
  76. package/dist/MultiLineAltChart.cjs +1 -1
  77. package/dist/MultiLineAltChart.cjs.map +1 -1
  78. package/dist/MultiLineAltChart.js +327 -320
  79. package/dist/MultiLineAltChart.js.map +1 -1
  80. package/dist/MultiLineChart.cjs +1 -1
  81. package/dist/MultiLineChart.cjs.map +1 -1
  82. package/dist/MultiLineChart.js +374 -367
  83. package/dist/MultiLineChart.js.map +1 -1
  84. package/dist/ParetoChart.cjs +1 -1
  85. package/dist/ParetoChart.cjs.map +1 -1
  86. package/dist/ParetoChart.js +385 -378
  87. package/dist/ParetoChart.js.map +1 -1
  88. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  89. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
  90. package/dist/RadarChart.cjs +1 -1
  91. package/dist/RadarChart.cjs.map +1 -1
  92. package/dist/RadarChart.js +34 -33
  93. package/dist/RadarChart.js.map +1 -1
  94. package/dist/SankeyChart.cjs +1 -1
  95. package/dist/SankeyChart.cjs.map +1 -1
  96. package/dist/SankeyChart.js +176 -169
  97. package/dist/SankeyChart.js.map +1 -1
  98. package/dist/ScatterPlot.cjs +1 -1
  99. package/dist/ScatterPlot.cjs.map +1 -1
  100. package/dist/ScatterPlot.js +366 -359
  101. package/dist/ScatterPlot.js.map +1 -1
  102. package/dist/SimpleLineChart.cjs +1 -1
  103. package/dist/SimpleLineChart.cjs.map +1 -1
  104. package/dist/SimpleLineChart.js +285 -278
  105. package/dist/SimpleLineChart.js.map +1 -1
  106. package/dist/SingleGraphDashboard.cjs +1 -1
  107. package/dist/SingleGraphDashboard.js +2 -2
  108. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  109. package/dist/SingleGraphDashboardFromConfig.js +1 -1
  110. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  111. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
  112. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  113. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  114. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  115. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
  116. package/dist/SlopeChart.cjs +1 -1
  117. package/dist/SlopeChart.cjs.map +1 -1
  118. package/dist/SlopeChart.js +243 -236
  119. package/dist/SlopeChart.js.map +1 -1
  120. package/dist/Spinner-CQZcjzwd.cjs +2 -0
  121. package/dist/Spinner-CQZcjzwd.cjs.map +1 -0
  122. package/dist/{Spinner-D7rnnwnA.js → Spinner-DVBnY6Vg.js} +5 -5
  123. package/dist/Spinner-DVBnY6Vg.js.map +1 -0
  124. package/dist/StripChart.cjs +1 -1
  125. package/dist/StripChart.cjs.map +1 -1
  126. package/dist/StripChart.js +293 -286
  127. package/dist/StripChart.js.map +1 -1
  128. package/dist/ThreeDGlobe.cjs +1 -1
  129. package/dist/ThreeDGlobe.js +1 -1
  130. package/dist/TreeMapGraph.cjs +1 -1
  131. package/dist/TreeMapGraph.cjs.map +1 -1
  132. package/dist/TreeMapGraph.js +222 -215
  133. package/dist/TreeMapGraph.js.map +1 -1
  134. package/dist/index-R1gTfap5.js +337 -0
  135. package/dist/index-R1gTfap5.js.map +1 -0
  136. package/dist/index-WML2dCZ0.cjs +2 -0
  137. package/dist/{index-CF5hnGvG.cjs.map → index-WML2dCZ0.cjs.map} +1 -1
  138. package/dist/index.cjs +1 -1
  139. package/dist/index.d.ts +2 -0
  140. package/dist/index.js +1 -1
  141. package/dist/style.css +1 -1
  142. package/package.json +2 -2
  143. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  144. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  145. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  146. package/dist/GraphEl-BLMih7RN.cjs +0 -2
  147. package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
  148. package/dist/GraphEl-CRrAlbcr.js.map +0 -1
  149. package/dist/Spinner-D7rnnwnA.js.map +0 -1
  150. package/dist/Spinner-DRMBUsX7.cjs +0 -2
  151. package/dist/Spinner-DRMBUsX7.cjs.map +0 -1
  152. package/dist/index-CF5hnGvG.cjs +0 -2
  153. package/dist/index-DPGq3eIL.js +0 -330
  154. package/dist/index-DPGq3eIL.js.map +0 -1
@@ -1,94 +1,94 @@
1
- import { c as Ft, j as a, m as Wt } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as Xt, useState as dt, useEffect as oe } from "react";
3
- import { i as Jt } from "./index-Bwrro8-q.js";
4
- import { o as Kt } from "./index-BZQYSqar.js";
5
- import { T as Qt } from "./Tooltip-Dj5eVppQ.js";
6
- import { c as ft } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
- import { n as Yt } from "./numberFormattingFunction-14YCbkN2.js";
8
- import { Colors as c } from "./Colors.js";
9
- import { D as Zt } from "./DetailsModal-0Ry5nXiC.js";
10
- import { a as _t } from "./linear-BqltdMeF.js";
11
- import { u as te } from "./use-in-view-Cxa7y1TH.js";
1
+ import { c as qt, j as a, m as Gt } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as zt, useState as gt, useEffect as re } from "react";
3
+ import { i as Zt } from "./index-Bwrro8-q.js";
4
+ import { o as _t } from "./index-BZQYSqar.js";
5
+ import { T as te } from "./Tooltip-Dj5eVppQ.js";
6
+ import { c as pt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
+ import { n as Rt } from "./numberFormattingFunction-14YCbkN2.js";
8
+ import { Colors as u } from "./Colors.js";
9
+ import { D as ee } from "./DetailsModal-0Ry5nXiC.js";
10
+ import { a as ie } from "./linear-BqltdMeF.js";
11
+ import { u as oe } from "./use-in-view-Cxa7y1TH.js";
12
12
  import { m as jt } from "./proxy-BxkFHwUw.js";
13
- import { A as ee } from "./index-BqfRwk1n.js";
14
- import { u as Ut } from "./uniqBy-BHy4I8PK.js";
15
- import { a as ne, G as le } from "./GraphContainer-CRqzdKu2.js";
16
- import { E as re } from "./EmptyState-BZo1BbAn.js";
17
- import { ColorLegendWithMouseOver as ae } from "./ColorLegendWithMouseOver.js";
18
- import { GraphFooter as se } from "./GraphFooter.js";
19
- import { GraphHeader as ce } from "./GraphHeader.js";
20
- function ie(e, t) {
13
+ import { A as ne } from "./index-BqfRwk1n.js";
14
+ import { u as Qt } from "./uniqBy-BHy4I8PK.js";
15
+ import { a as ae, G as se } from "./GraphContainer-CRqzdKu2.js";
16
+ import { E as ce } from "./EmptyState-C7ZXkZWd.js";
17
+ import { ColorLegendWithMouseOver as ue } from "./ColorLegendWithMouseOver.js";
18
+ import { GraphFooter as fe } from "./GraphFooter.js";
19
+ import { GraphHeader as pe } from "./GraphHeader.js";
20
+ function le(e, t) {
21
21
  if (e < 2) return [];
22
22
  const o = t / (e - 1);
23
23
  return Array.from({
24
24
  length: e
25
- }, (N, w) => w * o);
25
+ }, (N, v) => v * o);
26
26
  }
27
- function ue(e) {
28
- const t = Ft.c(98), {
27
+ function me(e) {
28
+ const t = qt.c(98), {
29
29
  data: o,
30
30
  width: N,
31
- height: w,
31
+ height: v,
32
32
  colors: n,
33
33
  colorDomain: r,
34
- radius: m,
34
+ radius: h,
35
35
  leftMargin: V,
36
- rightMargin: gt,
37
- topMargin: xt,
36
+ rightMargin: xt,
37
+ topMargin: nt,
38
38
  bottomMargin: Ct,
39
- tooltip: nt,
39
+ tooltip: lt,
40
40
  onSeriesMouseOver: Z,
41
41
  highlightedDataPoints: l,
42
42
  selectedColor: _,
43
43
  minValue: $,
44
44
  maxValue: S,
45
- onSeriesMouseClick: R,
46
- noOfTicks: lt,
45
+ onSeriesMouseClick: F,
46
+ noOfTicks: rt,
47
47
  prefix: tt,
48
- suffix: rt,
49
- stripType: y,
48
+ suffix: at,
49
+ stripType: O,
50
50
  highlightColor: g,
51
- dotOpacity: pt,
51
+ dotOpacity: mt,
52
52
  resetSelectionOnDoubleClick: B,
53
- detailsOnClick: v,
54
- styles: u,
53
+ detailsOnClick: b,
54
+ styles: f,
55
55
  classNames: M,
56
56
  valueColor: d,
57
57
  animate: x,
58
58
  dimmedOpacity: U,
59
- precision: at,
59
+ precision: st,
60
60
  customLayers: j
61
- } = e, yt = V === void 0 ? 20 : V, mt = gt === void 0 ? 20 : gt, vt = xt === void 0 ? 10 : xt, Ot = Ct === void 0 ? 10 : Ct, Dt = Xt(null);
62
- let st;
63
- t[0] !== x.amount || t[1] !== x.once ? (st = {
61
+ } = e, yt = V === void 0 ? 20 : V, ht = xt === void 0 ? 20 : xt, vt = nt === void 0 ? 10 : nt, Ot = Ct === void 0 ? 10 : Ct, Dt = zt(null);
62
+ let ct;
63
+ t[0] !== x.amount || t[1] !== x.once ? (ct = {
64
64
  once: x.once,
65
65
  amount: x.amount
66
- }, t[0] = x.amount, t[1] = x.once, t[2] = st) : st = t[2];
67
- const T = te(Dt, st), [et, bt] = dt(void 0), [C, wt] = dt(void 0), [f, h] = dt(void 0), [ct, Mt] = dt(void 0);
68
- let ut;
69
- t[3] !== Ot || t[4] !== yt || t[5] !== mt || t[6] !== vt ? (ut = {
66
+ }, t[0] = x.amount, t[1] = x.once, t[2] = ct) : ct = t[2];
67
+ const T = oe(Dt, ct), [et, bt] = gt(void 0), [C, wt] = gt(void 0), [p, s] = gt(void 0), [ut, Mt] = gt(void 0);
68
+ let ft;
69
+ t[3] !== Ot || t[4] !== yt || t[5] !== ht || t[6] !== vt ? (ft = {
70
70
  top: vt,
71
71
  bottom: Ot,
72
72
  left: yt,
73
- right: mt
74
- }, t[3] = Ot, t[4] = yt, t[5] = mt, t[6] = vt, t[7] = ut) : ut = t[7];
75
- const p = ut, J = N - p.left - p.right, K = w - p.top - p.bottom;
76
- let E, D, P, H, k, A, L, W, X, Y, O;
77
- if (t[8] !== x.duration || t[9] !== M?.graphObjectValues || t[10] !== M?.yAxis?.labels || t[11] !== r || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== v || t[16] !== U || t[17] !== pt || t[18] !== K || t[19] !== J || t[20] !== w || t[21] !== g || t[22] !== l || t[23] !== T || t[24] !== p.left || t[25] !== p.top || t[26] !== S || t[27] !== $ || t[28] !== C || t[29] !== lt || t[30] !== R || t[31] !== Z || t[32] !== at || t[33] !== tt || t[34] !== m || t[35] !== B || t[36] !== _ || t[37] !== y || t[38] !== u?.graphObjectValues || t[39] !== u?.yAxis?.labels || t[40] !== rt || t[41] !== d || t[42] !== N) {
78
- const Nt = o.map(Ee);
73
+ right: ht
74
+ }, t[3] = Ot, t[4] = yt, t[5] = ht, t[6] = vt, t[7] = ft) : ft = t[7];
75
+ const m = ft, J = N - m.left - m.right, K = v - m.top - m.bottom;
76
+ let E, D, L, P, k, A, H, W, X, Y, w;
77
+ if (t[8] !== x.duration || t[9] !== M?.graphObjectValues || t[10] !== M?.yAxis?.labels || t[11] !== r || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== b || t[16] !== U || t[17] !== mt || t[18] !== K || t[19] !== J || t[20] !== v || t[21] !== g || t[22] !== l || t[23] !== T || t[24] !== m.left || t[25] !== m.top || t[26] !== S || t[27] !== $ || t[28] !== C || t[29] !== rt || t[30] !== F || t[31] !== Z || t[32] !== st || t[33] !== tt || t[34] !== h || t[35] !== B || t[36] !== _ || t[37] !== O || t[38] !== f?.graphObjectValues || t[39] !== f?.yAxis?.labels || t[40] !== at || t[41] !== d || t[42] !== N) {
78
+ const Nt = o.map(He);
79
79
  let Q;
80
80
  t[54] !== l ? (Q = (i) => {
81
- const s = (l || []).indexOf(i.label);
82
- return s === -1 ? 1 / 0 : s;
81
+ const c = (l || []).indexOf(i.label);
82
+ return c === -1 ? 1 / 0 : c;
83
83
  }, t[54] = l, t[55] = Q) : Q = t[55];
84
- const $t = Kt(Nt, [Q], ["desc"]);
84
+ const $t = _t(Nt, [Q], ["desc"]);
85
85
  let ot;
86
- t[56] !== o || t[57] !== S ? (ot = ft(S) ? Math.max(...o.filter(Te).map(Se)) < 0 ? 0 : Math.max(...o.filter($e).map(Ne)) : S, t[56] = o, t[57] = S, t[58] = ot) : ot = t[58];
86
+ t[56] !== o || t[57] !== S ? (ot = pt(S) ? Math.max(...o.filter(Pe).map(Le)) < 0 ? 0 : Math.max(...o.filter(Ee).map(Te)) : S, t[56] = o, t[57] = S, t[58] = ot) : ot = t[58];
87
87
  const kt = ot;
88
- let ht;
89
- t[59] !== o || t[60] !== $ ? (ht = ft($) ? Math.min(...o.filter(Ie).map(Ae)) >= 0 ? 0 : Math.min(...o.filter(ke).map(De)) : $, t[59] = o, t[60] = $, t[61] = ht) : ht = t[61];
90
- const At = ht, Vt = _t().domain([At, kt]).range([K, 0]).nice(), It = ie(lt, K);
91
- D = jt.svg, P = `${N}px`, H = `${w}px`, k = `0 0 ${N} ${w}`, A = "ltr", L = Dt, Y = `translate(${p.left},${p.top})`, t[62] !== j ? (O = j.filter(Ve).map(Ce), t[62] = j, t[63] = O) : O = t[63], E = ee, W = $t.map((i) => /* @__PURE__ */ a.jsxs(jt.g, { className: "undp-viz-g-with-hover", variants: {
88
+ let dt;
89
+ t[59] !== o || t[60] !== $ ? (dt = pt($) ? Math.min(...o.filter(Se).map($e)) >= 0 ? 0 : Math.min(...o.filter(Ne).map(Ie)) : $, t[59] = o, t[60] = $, t[61] = dt) : dt = t[61];
90
+ const At = dt, Vt = ie().domain([At, kt]).range([K, 0]).nice(), It = le(rt, K);
91
+ D = jt.svg, L = `${N}px`, P = `${v}px`, k = `0 0 ${N} ${v}`, A = "ltr", H = Dt, Y = `translate(${m.left},${m.top})`, t[62] !== j ? (w = j.filter(Ae).map(ke), t[62] = j, t[63] = w) : w = t[63], E = ne, W = $t.map((i) => /* @__PURE__ */ a.jsxs(jt.g, { className: "undp-viz-g-with-hover", variants: {
92
92
  initial: {
93
93
  opacity: 0,
94
94
  x: J / 2,
@@ -97,7 +97,7 @@ function ue(e) {
97
97
  whileInView: {
98
98
  x: J / 2,
99
99
  y: Vt(i.position),
100
- opacity: _ ? i.color && n[r.indexOf(i.color)] === _ ? 0.95 : U : l.length !== 0 ? l.indexOf(i.label) !== -1 ? 0.95 : U : pt,
100
+ opacity: _ ? i.color && n[r.indexOf(i.color)] === _ ? 0.95 : U : l.length !== 0 ? l.indexOf(i.label) !== -1 ? 0.95 : U : mt,
101
101
  transition: {
102
102
  duration: x.duration
103
103
  }
@@ -107,21 +107,21 @@ function ue(e) {
107
107
  transition: {
108
108
  duration: x.duration
109
109
  }
110
- }, onMouseEnter: (s) => {
111
- bt(i), Mt(s.clientY), h(s.clientX), Z?.(i);
110
+ }, onMouseEnter: (c) => {
111
+ bt(i), Mt(c.clientY), s(c.clientX), Z?.(i);
112
112
  }, onClick: () => {
113
- (R || v) && (Jt(C, i) && B ? (wt(void 0), R?.(void 0)) : (wt(i), R?.(i)));
114
- }, onMouseMove: (s) => {
115
- bt(i), Mt(s.clientY), h(s.clientX);
113
+ (F || b) && (Zt(C, i) && B ? (wt(void 0), F?.(void 0)) : (wt(i), F?.(i)));
114
+ }, onMouseMove: (c) => {
115
+ bt(i), Mt(c.clientY), s(c.clientX);
116
116
  }, onMouseLeave: () => {
117
- bt(void 0), h(void 0), Mt(void 0), Z?.(void 0);
117
+ bt(void 0), s(void 0), Mt(void 0), Z?.(void 0);
118
118
  }, children: [
119
- y === "dot" ? /* @__PURE__ */ a.jsx(jt.circle, { cy: 0, cx: 0, variants: {
119
+ O === "dot" ? /* @__PURE__ */ a.jsx(jt.circle, { cy: 0, cx: 0, variants: {
120
120
  initial: {
121
- fill: g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(je).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(Me).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray
121
+ fill: g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(De).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(Ve).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray
122
122
  },
123
123
  whileInView: {
124
- fill: g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(we).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(be).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray,
124
+ fill: g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(Ce).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(je).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray,
125
125
  transition: {
126
126
  duration: x.duration
127
127
  }
@@ -131,16 +131,16 @@ function ue(e) {
131
131
  transition: {
132
132
  duration: x.duration
133
133
  }
134
- }, r: m }) : /* @__PURE__ */ a.jsx(jt.rect, { y: -1, height: 2, variants: {
134
+ }, r: h }) : /* @__PURE__ */ a.jsx(jt.rect, { y: -1, height: 2, variants: {
135
135
  initial: {
136
- x: 0 - m,
137
- width: m * 2,
138
- fill: g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(Oe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(ve).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray
136
+ x: 0 - h,
137
+ width: h * 2,
138
+ fill: g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(Me).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(we).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray
139
139
  },
140
140
  whileInView: {
141
- x: 0 - m,
142
- width: m * 2,
143
- fill: g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(ye).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(xe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray,
141
+ x: 0 - h,
142
+ width: h * 2,
143
+ fill: g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(be).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(Oe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray,
144
144
  transition: {
145
145
  duration: x.duration
146
146
  }
@@ -154,13 +154,13 @@ function ue(e) {
154
154
  l.length !== 0 && l.indexOf(i.label) !== -1 ? /* @__PURE__ */ a.jsx(jt.text, { y: 0, dy: "0.33em", variants: {
155
155
  initial: {
156
156
  opacity: 0,
157
- x: 0 + m + 3,
158
- fill: d || (g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(ge).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(de).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray)
157
+ x: 0 + h + 3,
158
+ fill: d || (g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(ve).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(ye).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray)
159
159
  },
160
160
  whileInView: {
161
161
  opacity: 1,
162
- x: 0 + m + 3,
163
- fill: d || (g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(he).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(me).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray),
162
+ x: 0 + h + 3,
163
+ fill: d || (g && l ? l.indexOf(i.label) !== -1 ? g : o.filter(xe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(ge).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray),
164
164
  transition: {
165
165
  duration: x.duration
166
166
  }
@@ -172,54 +172,45 @@ function ue(e) {
172
172
  }
173
173
  }, style: {
174
174
  textAnchor: "start",
175
- ...u?.graphObjectValues || {}
176
- }, className: Wt("graph-value text-sm font-bold", M?.graphObjectValues), children: Yt(i.position, "NA", at, tt, rt) }) : null
177
- ] }, i.label)), X = It.map((i, s) => /* @__PURE__ */ a.jsx("text", { y: i, x: J / 2 + m + 5, style: {
175
+ ...f?.graphObjectValues || {}
176
+ }, className: Gt("graph-value text-sm font-bold", M?.graphObjectValues), children: Rt(i.position, "NA", st, tt, at) }) : null
177
+ ] }, i.label)), X = It.map((i, c) => /* @__PURE__ */ a.jsx("text", { y: i, x: J / 2 + h + 5, style: {
178
178
  textAnchor: "start",
179
- ...u?.yAxis?.labels || {}
180
- }, className: Wt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", M?.yAxis?.labels), children: Yt(Vt.invert(i), "NA", at, tt, rt) }, s)), t[8] = x.duration, t[9] = M?.graphObjectValues, t[10] = M?.yAxis?.labels, t[11] = r, t[12] = n, t[13] = j, t[14] = o, t[15] = v, t[16] = U, t[17] = pt, t[18] = K, t[19] = J, t[20] = w, t[21] = g, t[22] = l, t[23] = T, t[24] = p.left, t[25] = p.top, t[26] = S, t[27] = $, t[28] = C, t[29] = lt, t[30] = R, t[31] = Z, t[32] = at, t[33] = tt, t[34] = m, t[35] = B, t[36] = _, t[37] = y, t[38] = u?.graphObjectValues, t[39] = u?.yAxis?.labels, t[40] = rt, t[41] = d, t[42] = N, t[43] = E, t[44] = D, t[45] = P, t[46] = H, t[47] = k, t[48] = A, t[49] = L, t[50] = W, t[51] = X, t[52] = Y, t[53] = O;
179
+ ...f?.yAxis?.labels || {}
180
+ }, className: Gt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", M?.yAxis?.labels), children: Rt(Vt.invert(i), "NA", st, tt, at) }, c)), t[8] = x.duration, t[9] = M?.graphObjectValues, t[10] = M?.yAxis?.labels, t[11] = r, t[12] = n, t[13] = j, t[14] = o, t[15] = b, t[16] = U, t[17] = mt, t[18] = K, t[19] = J, t[20] = v, t[21] = g, t[22] = l, t[23] = T, t[24] = m.left, t[25] = m.top, t[26] = S, t[27] = $, t[28] = C, t[29] = rt, t[30] = F, t[31] = Z, t[32] = st, t[33] = tt, t[34] = h, t[35] = B, t[36] = _, t[37] = O, t[38] = f?.graphObjectValues, t[39] = f?.yAxis?.labels, t[40] = at, t[41] = d, t[42] = N, t[43] = E, t[44] = D, t[45] = L, t[46] = P, t[47] = k, t[48] = A, t[49] = H, t[50] = W, t[51] = X, t[52] = Y, t[53] = w;
181
181
  } else
182
- E = t[43], D = t[44], P = t[45], H = t[46], k = t[47], A = t[48], L = t[49], W = t[50], X = t[51], Y = t[52], O = t[53];
182
+ E = t[43], D = t[44], L = t[45], P = t[46], k = t[47], A = t[48], H = t[49], W = t[50], X = t[51], Y = t[52], w = t[53];
183
183
  let G;
184
184
  t[64] !== E || t[65] !== W || t[66] !== X ? (G = /* @__PURE__ */ a.jsxs(E, { children: [
185
185
  W,
186
186
  X
187
187
  ] }), t[64] = E, t[65] = W, t[66] = X, t[67] = G) : G = t[67];
188
188
  let z;
189
- t[68] !== j ? (z = j.filter(pe).map(fe), t[68] = j, t[69] = z) : z = t[69];
190
- let b;
191
- t[70] !== G || t[71] !== z || t[72] !== Y || t[73] !== O ? (b = /* @__PURE__ */ a.jsxs("g", { transform: Y, children: [
192
- O,
189
+ t[68] !== j ? (z = j.filter(de).map(he), t[68] = j, t[69] = z) : z = t[69];
190
+ let y;
191
+ t[70] !== G || t[71] !== z || t[72] !== Y || t[73] !== w ? (y = /* @__PURE__ */ a.jsxs("g", { transform: Y, children: [
192
+ w,
193
193
  G,
194
194
  z
195
- ] }), t[70] = G, t[71] = z, t[72] = Y, t[73] = O, t[74] = b) : b = t[74];
196
- let F;
197
- t[75] !== D || t[76] !== P || t[77] !== H || t[78] !== k || t[79] !== A || t[80] !== L || t[81] !== b ? (F = /* @__PURE__ */ a.jsx(D, { width: P, height: H, viewBox: k, direction: A, ref: L, children: b }), t[75] = D, t[76] = P, t[77] = H, t[78] = k, t[79] = A, t[80] = L, t[81] = b, t[82] = F) : F = t[82];
195
+ ] }), t[70] = G, t[71] = z, t[72] = Y, t[73] = w, t[74] = y) : y = t[74];
196
+ let R;
197
+ t[75] !== D || t[76] !== L || t[77] !== P || t[78] !== k || t[79] !== A || t[80] !== H || t[81] !== y ? (R = /* @__PURE__ */ a.jsx(D, { width: L, height: P, viewBox: k, direction: A, ref: H, children: y }), t[75] = D, t[76] = L, t[77] = P, t[78] = k, t[79] = A, t[80] = H, t[81] = y, t[82] = R) : R = t[82];
198
198
  let q;
199
- t[83] !== M?.tooltip || t[84] !== f || t[85] !== ct || t[86] !== et || t[87] !== u?.tooltip || t[88] !== nt ? (q = et && nt && f && ct ? /* @__PURE__ */ a.jsx(Qt, { data: et, body: nt, xPos: f, yPos: ct, backgroundStyle: u?.tooltip, className: M?.tooltip }) : null, t[83] = M?.tooltip, t[84] = f, t[85] = ct, t[86] = et, t[87] = u?.tooltip, t[88] = nt, t[89] = q) : q = t[89];
199
+ t[83] !== M?.tooltip || t[84] !== p || t[85] !== ut || t[86] !== et || t[87] !== f?.tooltip || t[88] !== lt ? (q = et && lt && p && ut ? /* @__PURE__ */ a.jsx(te, { data: et, body: lt, xPos: p, yPos: ut, backgroundStyle: f?.tooltip, className: M?.tooltip }) : null, t[83] = M?.tooltip, t[84] = p, t[85] = ut, t[86] = et, t[87] = f?.tooltip, t[88] = lt, t[89] = q) : q = t[89];
200
200
  let I;
201
- t[90] !== M?.modal || t[91] !== v || t[92] !== C ? (I = v && C !== void 0 ? /* @__PURE__ */ a.jsx(Zt, { body: v, data: C, setData: wt, className: M?.modal }) : null, t[90] = M?.modal, t[91] = v, t[92] = C, t[93] = I) : I = t[93];
201
+ t[90] !== M?.modal || t[91] !== b || t[92] !== C ? (I = b && C !== void 0 ? /* @__PURE__ */ a.jsx(ee, { body: b, data: C, setData: wt, className: M?.modal }) : null, t[90] = M?.modal, t[91] = b, t[92] = C, t[93] = I) : I = t[93];
202
202
  let it;
203
- return t[94] !== F || t[95] !== q || t[96] !== I ? (it = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
204
- F,
203
+ return t[94] !== R || t[95] !== q || t[96] !== I ? (it = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
204
+ R,
205
205
  q,
206
206
  I
207
- ] }), t[94] = F, t[95] = q, t[96] = I, t[97] = it) : it = t[97], it;
208
- }
209
- function fe(e) {
210
- return e.layer;
211
- }
212
- function pe(e) {
213
- return e.position === "after";
214
- }
215
- function me(e) {
216
- return e.color;
207
+ ] }), t[94] = R, t[95] = q, t[96] = I, t[97] = it) : it = t[97], it;
217
208
  }
218
209
  function he(e) {
219
- return e.color;
210
+ return e.layer;
220
211
  }
221
212
  function de(e) {
222
- return e.color;
213
+ return e.position === "after";
223
214
  }
224
215
  function ge(e) {
225
216
  return e.color;
@@ -249,106 +240,115 @@ function je(e) {
249
240
  return e.color;
250
241
  }
251
242
  function Ce(e) {
252
- return e.layer;
243
+ return e.color;
253
244
  }
254
245
  function Ve(e) {
255
- return e.position === "before";
246
+ return e.color;
256
247
  }
257
248
  function De(e) {
258
- return e.position;
249
+ return e.color;
259
250
  }
260
251
  function ke(e) {
261
- return !ft(e.position);
252
+ return e.layer;
262
253
  }
263
254
  function Ae(e) {
264
- return e.position;
255
+ return e.position === "before";
265
256
  }
266
257
  function Ie(e) {
267
- return !ft(e.position);
258
+ return e.position;
268
259
  }
269
260
  function Ne(e) {
270
- return e.position;
261
+ return !pt(e.position);
271
262
  }
272
263
  function $e(e) {
273
- return !ft(e.position);
264
+ return e.position;
274
265
  }
275
266
  function Se(e) {
276
- return e.position;
267
+ return !pt(e.position);
277
268
  }
278
269
  function Te(e) {
279
- return !ft(e.position);
270
+ return e.position;
271
+ }
272
+ function Ee(e) {
273
+ return !pt(e.position);
274
+ }
275
+ function Le(e) {
276
+ return e.position;
277
+ }
278
+ function Pe(e) {
279
+ return !pt(e.position);
280
280
  }
281
- function Ee(e, t) {
281
+ function He(e, t) {
282
282
  return {
283
283
  ...e,
284
284
  id: `${t}`
285
285
  };
286
286
  }
287
- function Pe(e) {
288
- const t = Ft.c(98), {
287
+ function We(e) {
288
+ const t = qt.c(98), {
289
289
  data: o,
290
290
  width: N,
291
- height: w,
291
+ height: v,
292
292
  colors: n,
293
293
  colorDomain: r,
294
- radius: m,
294
+ radius: h,
295
295
  leftMargin: V,
296
- rightMargin: gt,
297
- topMargin: xt,
296
+ rightMargin: xt,
297
+ topMargin: nt,
298
298
  bottomMargin: Ct,
299
- tooltip: nt,
299
+ tooltip: lt,
300
300
  onSeriesMouseOver: Z,
301
301
  highlightedDataPoints: l,
302
302
  selectedColor: _,
303
303
  minValue: $,
304
304
  maxValue: S,
305
- onSeriesMouseClick: R,
306
- prefix: lt,
305
+ onSeriesMouseClick: F,
306
+ prefix: rt,
307
307
  suffix: tt,
308
- stripType: rt,
309
- highlightColor: y,
308
+ stripType: at,
309
+ highlightColor: O,
310
310
  dotOpacity: g,
311
- resetSelectionOnDoubleClick: pt,
311
+ resetSelectionOnDoubleClick: mt,
312
312
  detailsOnClick: B,
313
- styles: v,
314
- classNames: u,
313
+ styles: b,
314
+ classNames: f,
315
315
  valueColor: M,
316
316
  animate: d,
317
317
  noOfTicks: x,
318
318
  dimmedOpacity: U,
319
- precision: at,
319
+ precision: st,
320
320
  customLayers: j
321
- } = e, yt = V === void 0 ? 5 : V, mt = gt === void 0 ? 5 : gt, vt = xt === void 0 ? 10 : xt, Ot = Ct === void 0 ? 10 : Ct, Dt = Xt(null);
322
- let st;
323
- t[0] !== d.amount || t[1] !== d.once ? (st = {
321
+ } = e, yt = V === void 0 ? 5 : V, ht = xt === void 0 ? 5 : xt, vt = nt === void 0 ? 10 : nt, Ot = Ct === void 0 ? 10 : Ct, Dt = zt(null);
322
+ let ct;
323
+ t[0] !== d.amount || t[1] !== d.once ? (ct = {
324
324
  once: d.once,
325
325
  amount: d.amount
326
- }, t[0] = d.amount, t[1] = d.once, t[2] = st) : st = t[2];
327
- const T = te(Dt, st), [et, bt] = dt(void 0), [C, wt] = dt(void 0), [f, h] = dt(void 0), [ct, Mt] = dt(void 0);
328
- let ut;
329
- t[3] !== Ot || t[4] !== yt || t[5] !== mt || t[6] !== vt ? (ut = {
326
+ }, t[0] = d.amount, t[1] = d.once, t[2] = ct) : ct = t[2];
327
+ const T = oe(Dt, ct), [et, bt] = gt(void 0), [C, wt] = gt(void 0), [p, s] = gt(void 0), [ut, Mt] = gt(void 0);
328
+ let ft;
329
+ t[3] !== Ot || t[4] !== yt || t[5] !== ht || t[6] !== vt ? (ft = {
330
330
  top: vt,
331
331
  bottom: Ot,
332
332
  left: yt,
333
- right: mt
334
- }, t[3] = Ot, t[4] = yt, t[5] = mt, t[6] = vt, t[7] = ut) : ut = t[7];
335
- const p = ut, J = N - p.left - p.right, K = w - p.top - p.bottom;
336
- let E, D, P, H, k, A, L, W, X, Y, O;
337
- if (t[8] !== d.duration || t[9] !== u?.graphObjectValues || t[10] !== u?.xAxis?.labels || t[11] !== r || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== B || t[16] !== U || t[17] !== g || t[18] !== K || t[19] !== J || t[20] !== w || t[21] !== y || t[22] !== l || t[23] !== T || t[24] !== p.left || t[25] !== p.top || t[26] !== S || t[27] !== $ || t[28] !== C || t[29] !== x || t[30] !== R || t[31] !== Z || t[32] !== at || t[33] !== lt || t[34] !== m || t[35] !== pt || t[36] !== _ || t[37] !== rt || t[38] !== v?.graphObjectValues || t[39] !== v?.xAxis?.labels || t[40] !== tt || t[41] !== M || t[42] !== N) {
338
- const Nt = o.map(ai);
333
+ right: ht
334
+ }, t[3] = Ot, t[4] = yt, t[5] = ht, t[6] = vt, t[7] = ft) : ft = t[7];
335
+ const m = ft, J = N - m.left - m.right, K = v - m.top - m.bottom;
336
+ let E, D, L, P, k, A, H, W, X, Y, w;
337
+ if (t[8] !== d.duration || t[9] !== f?.graphObjectValues || t[10] !== f?.xAxis?.labels || t[11] !== r || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== B || t[16] !== U || t[17] !== g || t[18] !== K || t[19] !== J || t[20] !== v || t[21] !== O || t[22] !== l || t[23] !== T || t[24] !== m.left || t[25] !== m.top || t[26] !== S || t[27] !== $ || t[28] !== C || t[29] !== x || t[30] !== F || t[31] !== Z || t[32] !== st || t[33] !== rt || t[34] !== h || t[35] !== mt || t[36] !== _ || t[37] !== at || t[38] !== b?.graphObjectValues || t[39] !== b?.xAxis?.labels || t[40] !== tt || t[41] !== M || t[42] !== N) {
338
+ const Nt = o.map(ui);
339
339
  let Q;
340
340
  t[54] !== l ? (Q = (i) => {
341
- const s = (l || []).indexOf(i.label);
342
- return s === -1 ? 1 / 0 : s;
341
+ const c = (l || []).indexOf(i.label);
342
+ return c === -1 ? 1 / 0 : c;
343
343
  }, t[54] = l, t[55] = Q) : Q = t[55];
344
- const $t = Kt(Nt, [Q], ["desc"]);
344
+ const $t = _t(Nt, [Q], ["desc"]);
345
345
  let ot;
346
- t[56] !== o || t[57] !== S ? (ot = ft(S) ? Math.max(...o.filter(ri).map(li)) < 0 ? 0 : Math.max(...o.filter(ni).map(oi)) : S, t[56] = o, t[57] = S, t[58] = ot) : ot = t[58];
346
+ t[56] !== o || t[57] !== S ? (ot = pt(S) ? Math.max(...o.filter(ci).map(si)) < 0 ? 0 : Math.max(...o.filter(ai).map(ri)) : S, t[56] = o, t[57] = S, t[58] = ot) : ot = t[58];
347
347
  const kt = ot;
348
- let ht;
349
- t[59] !== o || t[60] !== $ ? (ht = ft($) ? Math.min(...o.filter(ii).map(ei)) >= 0 ? 0 : Math.min(...o.filter(ti).map(_e)) : $, t[59] = o, t[60] = $, t[61] = ht) : ht = t[61];
350
- const At = ht, Vt = _t().domain([At, kt]).range([0, J]).nice(), It = ie(x, J);
351
- D = jt.svg, P = `${N}px`, H = `${w}px`, k = `0 0 ${N} ${w}`, A = "ltr", L = Dt, Y = `translate(${p.left},${p.top})`, t[62] !== j ? (O = j.filter(Ze).map(Qe), t[62] = j, t[63] = O) : O = t[63], E = ee, W = $t.map((i) => /* @__PURE__ */ a.jsxs(jt.g, { className: "undp-viz-g-with-hover", variants: {
348
+ let dt;
349
+ t[59] !== o || t[60] !== $ ? (dt = pt($) ? Math.min(...o.filter(li).map(ni)) >= 0 ? 0 : Math.min(...o.filter(oi).map(ii)) : $, t[59] = o, t[60] = $, t[61] = dt) : dt = t[61];
350
+ const At = dt, Vt = ie().domain([At, kt]).range([0, J]).nice(), It = le(x, J);
351
+ D = jt.svg, L = `${N}px`, P = `${v}px`, k = `0 0 ${N} ${v}`, A = "ltr", H = Dt, Y = `translate(${m.left},${m.top})`, t[62] !== j ? (w = j.filter(ei).map(ti), t[62] = j, t[63] = w) : w = t[63], E = ne, W = $t.map((i) => /* @__PURE__ */ a.jsxs(jt.g, { className: "undp-viz-g-with-hover", variants: {
352
352
  initial: {
353
353
  opacity: 0,
354
354
  x: Vt(0),
@@ -367,21 +367,21 @@ function Pe(e) {
367
367
  transition: {
368
368
  duration: d.duration
369
369
  }
370
- }, onMouseEnter: (s) => {
371
- bt(i), Mt(s.clientY), h(s.clientX), Z?.(i);
370
+ }, onMouseEnter: (c) => {
371
+ bt(i), Mt(c.clientY), s(c.clientX), Z?.(i);
372
372
  }, onClick: () => {
373
- (R || B) && (Jt(C, i) && pt ? (wt(void 0), R?.(void 0)) : (wt(i), R?.(i)));
374
- }, onMouseMove: (s) => {
375
- bt(i), Mt(s.clientY), h(s.clientX);
373
+ (F || B) && (Zt(C, i) && mt ? (wt(void 0), F?.(void 0)) : (wt(i), F?.(i)));
374
+ }, onMouseMove: (c) => {
375
+ bt(i), Mt(c.clientY), s(c.clientX);
376
376
  }, onMouseLeave: () => {
377
- bt(void 0), h(void 0), Mt(void 0), Z?.(void 0);
377
+ bt(void 0), s(void 0), Mt(void 0), Z?.(void 0);
378
378
  }, children: [
379
- rt === "dot" ? /* @__PURE__ */ a.jsx(jt.circle, { cy: 0, cx: 0, variants: {
379
+ at === "dot" ? /* @__PURE__ */ a.jsx(jt.circle, { cy: 0, cx: 0, variants: {
380
380
  initial: {
381
- fill: y && l ? l.indexOf(i.label) !== -1 ? y : o.filter(Ke).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(Je).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray
381
+ fill: O && l ? l.indexOf(i.label) !== -1 ? O : o.filter(_e).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(Ze).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray
382
382
  },
383
383
  whileInView: {
384
- fill: y && l ? l.indexOf(i.label) !== -1 ? y : o.filter(Ue).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(qe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray,
384
+ fill: O && l ? l.indexOf(i.label) !== -1 ? O : o.filter(Qe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(Ke).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray,
385
385
  transition: {
386
386
  duration: d.duration
387
387
  }
@@ -391,16 +391,16 @@ function Pe(e) {
391
391
  transition: {
392
392
  duration: d.duration
393
393
  }
394
- }, r: m }) : /* @__PURE__ */ a.jsx(jt.rect, { x: -1, width: 2, variants: {
394
+ }, r: h }) : /* @__PURE__ */ a.jsx(jt.rect, { x: -1, width: 2, variants: {
395
395
  initial: {
396
- y: 0 - m,
397
- height: m * 2,
398
- fill: y && l ? l.indexOf(i.label) !== -1 ? y : o.filter(Be).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(Re).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray
396
+ y: 0 - h,
397
+ height: h * 2,
398
+ fill: O && l ? l.indexOf(i.label) !== -1 ? O : o.filter(Je).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(Ue).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray
399
399
  },
400
400
  whileInView: {
401
- y: 0 - m,
402
- height: m * 2,
403
- fill: y && l ? l.indexOf(i.label) !== -1 ? y : o.filter(Fe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(ze).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray,
401
+ y: 0 - h,
402
+ height: h * 2,
403
+ fill: O && l ? l.indexOf(i.label) !== -1 ? O : o.filter(qe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(Be).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray,
404
404
  transition: {
405
405
  duration: d.duration
406
406
  }
@@ -414,13 +414,13 @@ function Pe(e) {
414
414
  l.length !== 0 && l.indexOf(i.label) !== -1 ? /* @__PURE__ */ a.jsx(jt.text, { x: 0, variants: {
415
415
  initial: {
416
416
  opacity: 0,
417
- y: 0 - m - 5,
418
- fill: M || (y && l ? l.indexOf(i.label) !== -1 ? y : o.filter(Ge).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(Ye).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray)
417
+ y: 0 - h - 5,
418
+ fill: M || (O && l ? l.indexOf(i.label) !== -1 ? O : o.filter(Fe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(Re).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray)
419
419
  },
420
420
  whileInView: {
421
421
  opacity: 1,
422
- y: 0 - m - 5,
423
- fill: M || (y && l ? l.indexOf(i.label) !== -1 ? y : o.filter(Xe).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray : o.filter(We).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : c.gray),
422
+ y: 0 - h - 5,
423
+ fill: M || (O && l ? l.indexOf(i.label) !== -1 ? O : o.filter(ze).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray : o.filter(Ge).length === 0 ? n[0] : i.color ? n[r.indexOf(i.color)] : u.gray),
424
424
  transition: {
425
425
  duration: d.duration
426
426
  }
@@ -432,54 +432,45 @@ function Pe(e) {
432
432
  }
433
433
  }, style: {
434
434
  textAnchor: "middle",
435
- ...v?.graphObjectValues || {}
436
- }, className: Wt("graph-value text-sm font-bold", u?.graphObjectValues), children: Yt(i.position, "NA", at, lt, tt) }) : null
437
- ] }, i.label)), X = It.map((i, s) => /* @__PURE__ */ a.jsx("text", { x: i, y: K / 2 + m, style: {
438
- textAnchor: s === 0 ? "start" : s === It.length - 1 ? "end" : "middle",
439
- ...v?.xAxis?.labels || {}
440
- }, className: Wt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", u?.xAxis?.labels), dy: "1em", children: Yt(Vt.invert(i), "NA", at, lt, tt) }, s)), t[8] = d.duration, t[9] = u?.graphObjectValues, t[10] = u?.xAxis?.labels, t[11] = r, t[12] = n, t[13] = j, t[14] = o, t[15] = B, t[16] = U, t[17] = g, t[18] = K, t[19] = J, t[20] = w, t[21] = y, t[22] = l, t[23] = T, t[24] = p.left, t[25] = p.top, t[26] = S, t[27] = $, t[28] = C, t[29] = x, t[30] = R, t[31] = Z, t[32] = at, t[33] = lt, t[34] = m, t[35] = pt, t[36] = _, t[37] = rt, t[38] = v?.graphObjectValues, t[39] = v?.xAxis?.labels, t[40] = tt, t[41] = M, t[42] = N, t[43] = E, t[44] = D, t[45] = P, t[46] = H, t[47] = k, t[48] = A, t[49] = L, t[50] = W, t[51] = X, t[52] = Y, t[53] = O;
435
+ ...b?.graphObjectValues || {}
436
+ }, className: Gt("graph-value text-sm font-bold", f?.graphObjectValues), children: Rt(i.position, "NA", st, rt, tt) }) : null
437
+ ] }, i.label)), X = It.map((i, c) => /* @__PURE__ */ a.jsx("text", { x: i, y: K / 2 + h, style: {
438
+ textAnchor: c === 0 ? "start" : c === It.length - 1 ? "end" : "middle",
439
+ ...b?.xAxis?.labels || {}
440
+ }, className: Gt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", f?.xAxis?.labels), dy: "1em", children: Rt(Vt.invert(i), "NA", st, rt, tt) }, c)), t[8] = d.duration, t[9] = f?.graphObjectValues, t[10] = f?.xAxis?.labels, t[11] = r, t[12] = n, t[13] = j, t[14] = o, t[15] = B, t[16] = U, t[17] = g, t[18] = K, t[19] = J, t[20] = v, t[21] = O, t[22] = l, t[23] = T, t[24] = m.left, t[25] = m.top, t[26] = S, t[27] = $, t[28] = C, t[29] = x, t[30] = F, t[31] = Z, t[32] = st, t[33] = rt, t[34] = h, t[35] = mt, t[36] = _, t[37] = at, t[38] = b?.graphObjectValues, t[39] = b?.xAxis?.labels, t[40] = tt, t[41] = M, t[42] = N, t[43] = E, t[44] = D, t[45] = L, t[46] = P, t[47] = k, t[48] = A, t[49] = H, t[50] = W, t[51] = X, t[52] = Y, t[53] = w;
441
441
  } else
442
- E = t[43], D = t[44], P = t[45], H = t[46], k = t[47], A = t[48], L = t[49], W = t[50], X = t[51], Y = t[52], O = t[53];
442
+ E = t[43], D = t[44], L = t[45], P = t[46], k = t[47], A = t[48], H = t[49], W = t[50], X = t[51], Y = t[52], w = t[53];
443
443
  let G;
444
444
  t[64] !== E || t[65] !== W || t[66] !== X ? (G = /* @__PURE__ */ a.jsxs(E, { children: [
445
445
  W,
446
446
  X
447
447
  ] }), t[64] = E, t[65] = W, t[66] = X, t[67] = G) : G = t[67];
448
448
  let z;
449
- t[68] !== j ? (z = j.filter(Le).map(He), t[68] = j, t[69] = z) : z = t[69];
450
- let b;
451
- t[70] !== G || t[71] !== z || t[72] !== Y || t[73] !== O ? (b = /* @__PURE__ */ a.jsxs("g", { transform: Y, children: [
452
- O,
449
+ t[68] !== j ? (z = j.filter(Ye).map(Xe), t[68] = j, t[69] = z) : z = t[69];
450
+ let y;
451
+ t[70] !== G || t[71] !== z || t[72] !== Y || t[73] !== w ? (y = /* @__PURE__ */ a.jsxs("g", { transform: Y, children: [
452
+ w,
453
453
  G,
454
454
  z
455
- ] }), t[70] = G, t[71] = z, t[72] = Y, t[73] = O, t[74] = b) : b = t[74];
456
- let F;
457
- t[75] !== D || t[76] !== P || t[77] !== H || t[78] !== k || t[79] !== A || t[80] !== L || t[81] !== b ? (F = /* @__PURE__ */ a.jsx(D, { width: P, height: H, viewBox: k, direction: A, ref: L, children: b }), t[75] = D, t[76] = P, t[77] = H, t[78] = k, t[79] = A, t[80] = L, t[81] = b, t[82] = F) : F = t[82];
455
+ ] }), t[70] = G, t[71] = z, t[72] = Y, t[73] = w, t[74] = y) : y = t[74];
456
+ let R;
457
+ t[75] !== D || t[76] !== L || t[77] !== P || t[78] !== k || t[79] !== A || t[80] !== H || t[81] !== y ? (R = /* @__PURE__ */ a.jsx(D, { width: L, height: P, viewBox: k, direction: A, ref: H, children: y }), t[75] = D, t[76] = L, t[77] = P, t[78] = k, t[79] = A, t[80] = H, t[81] = y, t[82] = R) : R = t[82];
458
458
  let q;
459
- t[83] !== u?.tooltip || t[84] !== f || t[85] !== ct || t[86] !== et || t[87] !== v?.tooltip || t[88] !== nt ? (q = et && nt && f && ct ? /* @__PURE__ */ a.jsx(Qt, { data: et, body: nt, xPos: f, yPos: ct, backgroundStyle: v?.tooltip, className: u?.tooltip }) : null, t[83] = u?.tooltip, t[84] = f, t[85] = ct, t[86] = et, t[87] = v?.tooltip, t[88] = nt, t[89] = q) : q = t[89];
459
+ t[83] !== f?.tooltip || t[84] !== p || t[85] !== ut || t[86] !== et || t[87] !== b?.tooltip || t[88] !== lt ? (q = et && lt && p && ut ? /* @__PURE__ */ a.jsx(te, { data: et, body: lt, xPos: p, yPos: ut, backgroundStyle: b?.tooltip, className: f?.tooltip }) : null, t[83] = f?.tooltip, t[84] = p, t[85] = ut, t[86] = et, t[87] = b?.tooltip, t[88] = lt, t[89] = q) : q = t[89];
460
460
  let I;
461
- t[90] !== u?.modal || t[91] !== B || t[92] !== C ? (I = B && C !== void 0 ? /* @__PURE__ */ a.jsx(Zt, { body: B, data: C, setData: wt, className: u?.modal }) : null, t[90] = u?.modal, t[91] = B, t[92] = C, t[93] = I) : I = t[93];
461
+ t[90] !== f?.modal || t[91] !== B || t[92] !== C ? (I = B && C !== void 0 ? /* @__PURE__ */ a.jsx(ee, { body: B, data: C, setData: wt, className: f?.modal }) : null, t[90] = f?.modal, t[91] = B, t[92] = C, t[93] = I) : I = t[93];
462
462
  let it;
463
- return t[94] !== F || t[95] !== q || t[96] !== I ? (it = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
464
- F,
463
+ return t[94] !== R || t[95] !== q || t[96] !== I ? (it = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
464
+ R,
465
465
  q,
466
466
  I
467
- ] }), t[94] = F, t[95] = q, t[96] = I, t[97] = it) : it = t[97], it;
468
- }
469
- function He(e) {
470
- return e.layer;
471
- }
472
- function Le(e) {
473
- return e.position === "after";
474
- }
475
- function We(e) {
476
- return e.color;
467
+ ] }), t[94] = R, t[95] = q, t[96] = I, t[97] = it) : it = t[97], it;
477
468
  }
478
469
  function Xe(e) {
479
- return e.color;
470
+ return e.layer;
480
471
  }
481
472
  function Ye(e) {
482
- return e.color;
473
+ return e.position === "after";
483
474
  }
484
475
  function Ge(e) {
485
476
  return e.color;
@@ -487,10 +478,10 @@ function Ge(e) {
487
478
  function ze(e) {
488
479
  return e.color;
489
480
  }
490
- function Fe(e) {
481
+ function Re(e) {
491
482
  return e.color;
492
483
  }
493
- function Re(e) {
484
+ function Fe(e) {
494
485
  return e.color;
495
486
  }
496
487
  function Be(e) {
@@ -509,168 +500,184 @@ function Ke(e) {
509
500
  return e.color;
510
501
  }
511
502
  function Qe(e) {
512
- return e.layer;
503
+ return e.color;
513
504
  }
514
505
  function Ze(e) {
515
- return e.position === "before";
506
+ return e.color;
516
507
  }
517
508
  function _e(e) {
518
- return e.position;
509
+ return e.color;
519
510
  }
520
511
  function ti(e) {
521
- return !ft(e.position);
512
+ return e.layer;
522
513
  }
523
514
  function ei(e) {
524
- return e.position;
515
+ return e.position === "before";
525
516
  }
526
517
  function ii(e) {
527
- return !ft(e.position);
518
+ return e.position;
528
519
  }
529
520
  function oi(e) {
530
- return e.position;
521
+ return !pt(e.position);
531
522
  }
532
523
  function ni(e) {
533
- return !ft(e.position);
524
+ return e.position;
534
525
  }
535
526
  function li(e) {
536
- return e.position;
527
+ return !pt(e.position);
537
528
  }
538
529
  function ri(e) {
539
- return !ft(e.position);
530
+ return e.position;
531
+ }
532
+ function ai(e) {
533
+ return !pt(e.position);
540
534
  }
541
- function ai(e, t) {
535
+ function si(e) {
536
+ return e.position;
537
+ }
538
+ function ci(e) {
539
+ return !pt(e.position);
540
+ }
541
+ function ui(e, t) {
542
542
  return {
543
543
  ...e,
544
544
  id: `${t}`
545
545
  };
546
546
  }
547
- function Ei(e) {
548
- const t = Ft.c(80), {
547
+ function Hi(e) {
548
+ const t = qt.c(92), {
549
549
  data: o,
550
550
  graphTitle: N,
551
- colors: w,
551
+ colors: v,
552
552
  sources: n,
553
553
  graphDescription: r,
554
- height: m,
554
+ height: h,
555
555
  width: V,
556
- footNote: gt,
557
- colorDomain: xt,
556
+ footNote: xt,
557
+ colorDomain: nt,
558
558
  colorLegendTitle: Ct,
559
- radius: nt,
559
+ radius: lt,
560
560
  padding: Z,
561
561
  backgroundColor: l,
562
562
  leftMargin: _,
563
563
  rightMargin: $,
564
564
  topMargin: S,
565
- bottomMargin: R,
566
- tooltip: lt,
565
+ bottomMargin: F,
566
+ tooltip: rt,
567
567
  relativeHeight: tt,
568
- onSeriesMouseOver: rt,
569
- showColorScale: y,
568
+ onSeriesMouseOver: at,
569
+ showColorScale: O,
570
570
  highlightedDataPoints: g,
571
- graphID: pt,
571
+ graphID: mt,
572
572
  minValue: B,
573
- maxValue: v,
574
- onSeriesMouseClick: u,
573
+ maxValue: b,
574
+ onSeriesMouseClick: f,
575
575
  noOfTicks: M,
576
576
  graphDownload: d,
577
577
  dataDownload: x,
578
578
  prefix: U,
579
- suffix: at,
579
+ suffix: st,
580
580
  stripType: j,
581
581
  language: yt,
582
- highlightColor: mt,
582
+ highlightColor: ht,
583
583
  dotOpacity: vt,
584
584
  showNAColor: Ot,
585
585
  minHeight: Dt,
586
- theme: st,
586
+ theme: ct,
587
587
  ariaLabel: T,
588
588
  valueColor: et,
589
589
  resetSelectionOnDoubleClick: bt,
590
590
  detailsOnClick: C,
591
591
  orientation: wt,
592
- styles: f,
593
- classNames: h,
594
- animate: ct,
592
+ styles: p,
593
+ classNames: s,
594
+ animate: ut,
595
595
  dimmedOpacity: Mt,
596
- precision: ut,
597
- customLayers: p
598
- } = e, J = nt === void 0 ? 5 : nt, K = l === void 0 ? !1 : l, E = y === void 0 ? !0 : y;
596
+ precision: ft,
597
+ customLayers: m
598
+ } = e, J = lt === void 0 ? 5 : lt, K = l === void 0 ? !1 : l, E = O === void 0 ? !0 : O;
599
599
  let D;
600
600
  t[0] !== g ? (D = g === void 0 ? [] : g, t[0] = g, t[1] = D) : D = t[1];
601
- const P = D, H = M === void 0 ? 2 : M, k = d === void 0 ? !1 : d, A = x === void 0 ? !1 : x, L = U === void 0 ? "" : U, W = at === void 0 ? "" : at, X = j === void 0 ? "dot" : j, Y = yt === void 0 ? "en" : yt, O = vt === void 0 ? 0.3 : vt, G = Ot === void 0 ? !0 : Ot, z = Dt === void 0 ? 0 : Dt, b = st === void 0 ? "light" : st, F = bt === void 0 ? !0 : bt, q = wt === void 0 ? "vertical" : wt, I = ct === void 0 ? !1 : ct, it = Mt === void 0 ? 0.3 : Mt, Nt = ut === void 0 ? 2 : ut;
601
+ const L = D, P = M === void 0 ? 2 : M, k = d === void 0 ? !1 : d, A = x === void 0 ? !1 : x, H = U === void 0 ? "" : U, W = st === void 0 ? "" : st, X = j === void 0 ? "dot" : j, Y = yt === void 0 ? "en" : yt, w = vt === void 0 ? 0.3 : vt, G = Ot === void 0 ? !0 : Ot, z = Dt === void 0 ? 0 : Dt, y = ct === void 0 ? "light" : ct, R = bt === void 0 ? !0 : bt, q = wt === void 0 ? "vertical" : wt, I = ut === void 0 ? !1 : ut, it = Mt === void 0 ? 0.3 : Mt, Nt = ft === void 0 ? 2 : ft;
602
602
  let Q;
603
- t[2] !== p ? (Q = p === void 0 ? [] : p, t[2] = p, t[3] = Q) : Q = t[3];
604
- const $t = Q, ot = q === "horizontal" ? Pe : ue, [kt, ht] = dt(0), [At, Vt] = dt(0), [It, i] = dt(void 0), s = Xt(null), Rt = Xt(null);
605
- let Pt, Ht;
606
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (Pt = () => {
607
- const Bt = new ResizeObserver((qt) => {
608
- ht(qt[0].target.clientWidth || 620), Vt(qt[0].target.clientHeight || 480);
603
+ t[2] !== m ? (Q = m === void 0 ? [] : m, t[2] = m, t[3] = Q) : Q = t[3];
604
+ const $t = Q, ot = q === "horizontal" ? We : me, [kt, dt] = gt(0), [At, Vt] = gt(0), [It, i] = gt(void 0), c = zt(null), Ut = zt(null);
605
+ let Wt, Xt;
606
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (Wt = () => {
607
+ const Jt = new ResizeObserver((Kt) => {
608
+ dt(Kt[0].target.clientWidth || 620), Vt(Kt[0].target.clientHeight || 480);
609
609
  });
610
- return s.current && Bt.observe(s.current), () => Bt.disconnect();
611
- }, Ht = [], t[4] = Pt, t[5] = Ht) : (Pt = t[4], Ht = t[5]), oe(Pt, Ht);
612
- const Gt = h?.graphContainer, zt = f?.graphContainer;
610
+ return c.current && Jt.observe(c.current), () => Jt.disconnect();
611
+ }, Xt = [], t[4] = Wt, t[5] = Xt) : (Wt = t[4], Xt = t[5]), re(Wt, Xt);
612
+ const Ft = s?.graphContainer, Bt = p?.graphContainer;
613
613
  let St;
614
- t[6] !== h?.description || t[7] !== h?.title || t[8] !== o || t[9] !== A || t[10] !== r || t[11] !== k || t[12] !== N || t[13] !== f?.description || t[14] !== f?.title || t[15] !== V ? (St = N || r || k || A ? /* @__PURE__ */ a.jsx(ce, { styles: {
615
- title: f?.title,
616
- description: f?.description
614
+ t[6] !== s?.description || t[7] !== s?.title || t[8] !== o || t[9] !== A || t[10] !== r || t[11] !== k || t[12] !== N || t[13] !== p?.description || t[14] !== p?.title || t[15] !== V ? (St = N || r || k || A ? /* @__PURE__ */ a.jsx(pe, { styles: {
615
+ title: p?.title,
616
+ description: p?.description
617
617
  }, classNames: {
618
- title: h?.title,
619
- description: h?.description
620
- }, graphTitle: N, graphDescription: r, width: V, graphDownload: k ? Rt : void 0, dataDownload: A ? o.map(di).filter(hi).length > 0 ? o.map(mi).filter(pi) : o.filter(fi) : null }) : null, t[6] = h?.description, t[7] = h?.title, t[8] = o, t[9] = A, t[10] = r, t[11] = k, t[12] = N, t[13] = f?.description, t[14] = f?.title, t[15] = V, t[16] = St) : St = t[16];
618
+ title: s?.title,
619
+ description: s?.description
620
+ }, graphTitle: N, graphDescription: r, width: V, graphDownload: k ? Ut : void 0, dataDownload: A ? o.map(yi).filter(xi).length > 0 ? o.map(gi).filter(di) : o.filter(hi) : null }) : null, t[6] = s?.description, t[7] = s?.title, t[8] = o, t[9] = A, t[10] = r, t[11] = k, t[12] = N, t[13] = p?.description, t[14] = p?.title, t[15] = V, t[16] = St) : St = t[16];
621
621
  let Tt;
622
- t[17] !== ot || t[18] !== I || t[19] !== R || t[20] !== h || t[21] !== xt || t[22] !== Ct || t[23] !== w || t[24] !== $t || t[25] !== o || t[26] !== C || t[27] !== it || t[28] !== O || t[29] !== mt || t[30] !== P || t[31] !== _ || t[32] !== v || t[33] !== B || t[34] !== H || t[35] !== u || t[36] !== rt || t[37] !== Nt || t[38] !== L || t[39] !== J || t[40] !== F || t[41] !== $ || t[42] !== It || t[43] !== E || t[44] !== G || t[45] !== X || t[46] !== f || t[47] !== W || t[48] !== At || t[49] !== kt || t[50] !== b || t[51] !== lt || t[52] !== S || t[53] !== et || t[54] !== V ? (Tt = o.length === 0 ? /* @__PURE__ */ a.jsx(re, {}) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
623
- E !== !1 && o.filter(ui).length !== 0 ? /* @__PURE__ */ a.jsx(ae, { width: V, colorLegendTitle: Ct, colors: w || c[b].categoricalColors.colors, colorDomain: xt || Ut(o, "color", !0), setSelectedColor: i, showNAColor: G, className: h?.colorLegend }) : null,
624
- /* @__PURE__ */ a.jsx(ne, { ref: s, children: kt && At ? /* @__PURE__ */ a.jsx(ot, { data: o, width: kt, height: At, colorDomain: o.filter(ci).length === 0 ? [] : xt || Ut(o, "color", !0), colors: o.filter(si).length === 0 ? w ? [w] : [c.primaryColors["blue-600"]] : w || c[b].categoricalColors.colors, selectedColor: It, radius: J, leftMargin: _, rightMargin: $, topMargin: S, bottomMargin: R, tooltip: lt, onSeriesMouseOver: rt, highlightedDataPoints: P, minValue: B, maxValue: v, onSeriesMouseClick: u, prefix: L, suffix: W, stripType: X, highlightColor: mt, dotOpacity: O, resetSelectionOnDoubleClick: F, detailsOnClick: C, styles: f, classNames: h, valueColor: et, animate: I === !0 ? {
625
- duration: 0.5,
626
- once: !0,
627
- amount: 0.5
628
- } : I || {
629
- duration: 0,
630
- once: !0,
631
- amount: 0
632
- }, noOfTicks: H, dimmedOpacity: it, precision: Nt, customLayers: $t }) : null })
633
- ] }), t[17] = ot, t[18] = I, t[19] = R, t[20] = h, t[21] = xt, t[22] = Ct, t[23] = w, t[24] = $t, t[25] = o, t[26] = C, t[27] = it, t[28] = O, t[29] = mt, t[30] = P, t[31] = _, t[32] = v, t[33] = B, t[34] = H, t[35] = u, t[36] = rt, t[37] = Nt, t[38] = L, t[39] = J, t[40] = F, t[41] = $, t[42] = It, t[43] = E, t[44] = G, t[45] = X, t[46] = f, t[47] = W, t[48] = At, t[49] = kt, t[50] = b, t[51] = lt, t[52] = S, t[53] = et, t[54] = V, t[55] = Tt) : Tt = t[55];
622
+ t[17] !== s?.colorLegend || t[18] !== nt || t[19] !== Ct || t[20] !== v || t[21] !== o || t[22] !== E || t[23] !== G || t[24] !== y || t[25] !== V ? (Tt = E !== !1 && o.filter(mi).length !== 0 && o.length > 0 ? /* @__PURE__ */ a.jsx(ue, { width: V, colorLegendTitle: Ct, colors: v || u[y].categoricalColors.colors, colorDomain: nt || Qt(o, "color", !0), setSelectedColor: i, showNAColor: G, className: s?.colorLegend }) : null, t[17] = s?.colorLegend, t[18] = nt, t[19] = Ct, t[20] = v, t[21] = o, t[22] = E, t[23] = G, t[24] = y, t[25] = V, t[26] = Tt) : Tt = t[26];
634
623
  let Et;
635
- t[56] !== h?.footnote || t[57] !== h?.source || t[58] !== gt || t[59] !== n || t[60] !== f?.footnote || t[61] !== f?.source || t[62] !== V ? (Et = n || gt ? /* @__PURE__ */ a.jsx(se, { styles: {
636
- footnote: f?.footnote,
637
- source: f?.source
638
- }, classNames: {
639
- footnote: h?.footnote,
640
- source: h?.source
641
- }, sources: n, footNote: gt, width: V }) : null, t[56] = h?.footnote, t[57] = h?.source, t[58] = gt, t[59] = n, t[60] = f?.footnote, t[61] = f?.source, t[62] = V, t[63] = Et) : Et = t[63];
624
+ t[27] !== o.length ? (Et = o.length === 0 && /* @__PURE__ */ a.jsx(ce, {}), t[27] = o.length, t[28] = Et) : Et = t[28];
642
625
  let Lt;
643
- return t[64] !== T || t[65] !== K || t[66] !== pt || t[67] !== m || t[68] !== Y || t[69] !== z || t[70] !== Z || t[71] !== tt || t[72] !== Gt || t[73] !== zt || t[74] !== St || t[75] !== Tt || t[76] !== Et || t[77] !== b || t[78] !== V ? (Lt = /* @__PURE__ */ a.jsxs(le, { className: Gt, style: zt, id: pt, ref: Rt, "aria-label": T, backgroundColor: K, theme: b, language: Y, minHeight: z, width: V, height: m, relativeHeight: tt, padding: Z, children: [
626
+ t[29] !== ot || t[30] !== I || t[31] !== F || t[32] !== s || t[33] !== nt || t[34] !== v || t[35] !== $t || t[36] !== o || t[37] !== C || t[38] !== it || t[39] !== w || t[40] !== ht || t[41] !== L || t[42] !== _ || t[43] !== b || t[44] !== B || t[45] !== P || t[46] !== f || t[47] !== at || t[48] !== Nt || t[49] !== H || t[50] !== J || t[51] !== R || t[52] !== $ || t[53] !== It || t[54] !== X || t[55] !== p || t[56] !== W || t[57] !== At || t[58] !== kt || t[59] !== y || t[60] !== rt || t[61] !== S || t[62] !== et ? (Lt = kt && At && o.length > 0 ? /* @__PURE__ */ a.jsx(ot, { data: o, width: kt, height: At, colorDomain: o.filter(pi).length === 0 ? [] : nt || Qt(o, "color", !0), colors: o.filter(fi).length === 0 ? v ? [v] : [u.primaryColors["blue-600"]] : v || u[y].categoricalColors.colors, selectedColor: It, radius: J, leftMargin: _, rightMargin: $, topMargin: S, bottomMargin: F, tooltip: rt, onSeriesMouseOver: at, highlightedDataPoints: L, minValue: B, maxValue: b, onSeriesMouseClick: f, prefix: H, suffix: W, stripType: X, highlightColor: ht, dotOpacity: w, resetSelectionOnDoubleClick: R, detailsOnClick: C, styles: p, classNames: s, valueColor: et, animate: I === !0 ? {
627
+ duration: 0.5,
628
+ once: !0,
629
+ amount: 0.5
630
+ } : I || {
631
+ duration: 0,
632
+ once: !0,
633
+ amount: 0
634
+ }, noOfTicks: P, dimmedOpacity: it, precision: Nt, customLayers: $t }) : null, t[29] = ot, t[30] = I, t[31] = F, t[32] = s, t[33] = nt, t[34] = v, t[35] = $t, t[36] = o, t[37] = C, t[38] = it, t[39] = w, t[40] = ht, t[41] = L, t[42] = _, t[43] = b, t[44] = B, t[45] = P, t[46] = f, t[47] = at, t[48] = Nt, t[49] = H, t[50] = J, t[51] = R, t[52] = $, t[53] = It, t[54] = X, t[55] = p, t[56] = W, t[57] = At, t[58] = kt, t[59] = y, t[60] = rt, t[61] = S, t[62] = et, t[63] = Lt) : Lt = t[63];
635
+ let Pt;
636
+ t[64] !== Et || t[65] !== Lt ? (Pt = /* @__PURE__ */ a.jsxs(ae, { ref: c, children: [
637
+ Et,
638
+ Lt
639
+ ] }), t[64] = Et, t[65] = Lt, t[66] = Pt) : Pt = t[66];
640
+ let Ht;
641
+ t[67] !== s?.footnote || t[68] !== s?.source || t[69] !== xt || t[70] !== n || t[71] !== p?.footnote || t[72] !== p?.source || t[73] !== V ? (Ht = n || xt ? /* @__PURE__ */ a.jsx(fe, { styles: {
642
+ footnote: p?.footnote,
643
+ source: p?.source
644
+ }, classNames: {
645
+ footnote: s?.footnote,
646
+ source: s?.source
647
+ }, sources: n, footNote: xt, width: V }) : null, t[67] = s?.footnote, t[68] = s?.source, t[69] = xt, t[70] = n, t[71] = p?.footnote, t[72] = p?.source, t[73] = V, t[74] = Ht) : Ht = t[74];
648
+ let Yt;
649
+ return t[75] !== T || t[76] !== K || t[77] !== mt || t[78] !== h || t[79] !== Y || t[80] !== z || t[81] !== Z || t[82] !== tt || t[83] !== Ft || t[84] !== Bt || t[85] !== St || t[86] !== Tt || t[87] !== Pt || t[88] !== Ht || t[89] !== y || t[90] !== V ? (Yt = /* @__PURE__ */ a.jsxs(se, { className: Ft, style: Bt, id: mt, ref: Ut, "aria-label": T, backgroundColor: K, theme: y, language: Y, minHeight: z, width: V, height: h, relativeHeight: tt, padding: Z, children: [
644
650
  St,
645
651
  Tt,
646
- Et
647
- ] }), t[64] = T, t[65] = K, t[66] = pt, t[67] = m, t[68] = Y, t[69] = z, t[70] = Z, t[71] = tt, t[72] = Gt, t[73] = zt, t[74] = St, t[75] = Tt, t[76] = Et, t[77] = b, t[78] = V, t[79] = Lt) : Lt = t[79], Lt;
652
+ Pt,
653
+ Ht
654
+ ] }), t[75] = T, t[76] = K, t[77] = mt, t[78] = h, t[79] = Y, t[80] = z, t[81] = Z, t[82] = tt, t[83] = Ft, t[84] = Bt, t[85] = St, t[86] = Tt, t[87] = Pt, t[88] = Ht, t[89] = y, t[90] = V, t[91] = Yt) : Yt = t[91], Yt;
648
655
  }
649
- function si(e) {
656
+ function fi(e) {
650
657
  return e.color;
651
658
  }
652
- function ci(e) {
659
+ function pi(e) {
653
660
  return e.color;
654
661
  }
655
- function ui(e) {
662
+ function mi(e) {
656
663
  return e.color;
657
664
  }
658
- function fi(e) {
665
+ function hi(e) {
659
666
  return e !== void 0;
660
667
  }
661
- function pi(e) {
668
+ function di(e) {
662
669
  return e !== void 0;
663
670
  }
664
- function mi(e) {
671
+ function gi(e) {
665
672
  return e.data;
666
673
  }
667
- function hi(e) {
674
+ function xi(e) {
668
675
  return e !== void 0;
669
676
  }
670
- function di(e) {
677
+ function yi(e) {
671
678
  return e.data;
672
679
  }
673
680
  export {
674
- Ei as StripChart
681
+ Hi as StripChart
675
682
  };
676
683
  //# sourceMappingURL=StripChart.js.map