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