@undp/data-viz 2.0.9 → 2.1.1

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 (224) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.d.ts +2 -0
  3. package/dist/AreaChart.js +4 -4
  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 +1699 -1577
  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 +252 -245
  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 +566 -536
  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 +388 -378
  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 +297 -291
  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 +4 -4
  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 +252 -244
  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 +4 -4
  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 +563 -525
  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-DEzobeOM.js} +3 -3
  72. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-DEzobeOM.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 +112 -117
  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 +3 -3
  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 +366 -359
  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 +4 -4
  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.cjs.map +1 -1
  108. package/dist/MultiLineAltChart.d.ts +2 -0
  109. package/dist/MultiLineAltChart.js +453 -425
  110. package/dist/MultiLineAltChart.js.map +1 -1
  111. package/dist/MultiLineChart.cjs +1 -1
  112. package/dist/MultiLineChart.d.ts +2 -0
  113. package/dist/MultiLineChart.js +4 -4
  114. package/dist/ParetoChart.cjs +1 -1
  115. package/dist/ParetoChart.cjs.map +1 -1
  116. package/dist/ParetoChart.d.ts +2 -0
  117. package/dist/ParetoChart.js +188 -193
  118. package/dist/ParetoChart.js.map +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  122. package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
  123. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  124. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  125. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  126. package/dist/RadarChart.cjs +1 -1
  127. package/dist/RadarChart.cjs.map +1 -1
  128. package/dist/RadarChart.d.ts +2 -0
  129. package/dist/RadarChart.js +158 -163
  130. package/dist/RadarChart.js.map +1 -1
  131. package/dist/SankeyChart.cjs +1 -1
  132. package/dist/SankeyChart.cjs.map +1 -1
  133. package/dist/SankeyChart.d.ts +2 -0
  134. package/dist/SankeyChart.js +172 -177
  135. package/dist/SankeyChart.js.map +1 -1
  136. package/dist/ScatterPlot.cjs +1 -1
  137. package/dist/ScatterPlot.cjs.map +1 -1
  138. package/dist/ScatterPlot.d.ts +2 -0
  139. package/dist/ScatterPlot.js +494 -483
  140. package/dist/ScatterPlot.js.map +1 -1
  141. package/dist/ScrollStory.d.ts +2 -0
  142. package/dist/SimpleLineChart.cjs +1 -1
  143. package/dist/SimpleLineChart.d.ts +2 -0
  144. package/dist/SimpleLineChart.js +4 -4
  145. package/dist/SingleGraphDashboard.cjs +1 -1
  146. package/dist/SingleGraphDashboard.cjs.map +1 -1
  147. package/dist/SingleGraphDashboard.d.ts +2 -0
  148. package/dist/SingleGraphDashboard.js +24 -24
  149. package/dist/SingleGraphDashboard.js.map +1 -1
  150. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  151. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  152. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  153. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  154. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  155. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  156. package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
  157. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  158. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  159. package/dist/SlopeChart.cjs +1 -1
  160. package/dist/SlopeChart.cjs.map +1 -1
  161. package/dist/SlopeChart.d.ts +2 -0
  162. package/dist/SlopeChart.js +182 -187
  163. package/dist/SlopeChart.js.map +1 -1
  164. package/dist/SparkLine.cjs +1 -1
  165. package/dist/SparkLine.d.ts +2 -0
  166. package/dist/SparkLine.js +4 -4
  167. package/dist/StatCardFromData.d.ts +2 -0
  168. package/dist/StripChart.cjs +1 -1
  169. package/dist/StripChart.cjs.map +1 -1
  170. package/dist/StripChart.d.ts +2 -0
  171. package/dist/StripChart.js +249 -258
  172. package/dist/StripChart.js.map +1 -1
  173. package/dist/ThreeDGlobe.cjs +1 -1
  174. package/dist/ThreeDGlobe.cjs.map +1 -1
  175. package/dist/ThreeDGlobe.d.ts +2 -0
  176. package/dist/ThreeDGlobe.js +142 -147
  177. package/dist/ThreeDGlobe.js.map +1 -1
  178. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  179. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  180. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  181. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  182. package/dist/TreeMapGraph.cjs +1 -1
  183. package/dist/TreeMapGraph.cjs.map +1 -1
  184. package/dist/TreeMapGraph.d.ts +2 -0
  185. package/dist/TreeMapGraph.js +159 -164
  186. package/dist/TreeMapGraph.js.map +1 -1
  187. package/dist/Types.d.ts +2 -0
  188. package/dist/UnitChart.d.ts +2 -0
  189. package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
  190. package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
  191. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  192. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  193. package/dist/index-CF5hnGvG.cjs +2 -0
  194. package/dist/index-CF5hnGvG.cjs.map +1 -0
  195. package/dist/index-DPGq3eIL.js +330 -0
  196. package/dist/index-DPGq3eIL.js.map +1 -0
  197. package/dist/index.cjs +1 -1
  198. package/dist/index.d.ts +2 -0
  199. package/dist/index.js +1 -1
  200. package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
  201. package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
  202. package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
  203. package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
  204. package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
  205. package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
  206. package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
  207. package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
  208. package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
  209. package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
  210. package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
  211. package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
  212. package/package.json +4 -4
  213. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  214. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  215. package/dist/Tooltip-CwWUegPB.js +0 -43
  216. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  217. package/dist/index-B2LQV7Tk.js +0 -335
  218. package/dist/index-B2LQV7Tk.js.map +0 -1
  219. package/dist/index-xRHRLDIp.cjs +0 -2
  220. package/dist/index-xRHRLDIp.cjs.map +0 -1
  221. package/dist/sort-BIvMlUH1.js +0 -34
  222. package/dist/sort-BIvMlUH1.js.map +0 -1
  223. package/dist/sort-O96oMZLb.cjs +0 -2
  224. package/dist/sort-O96oMZLb.cjs.map +0 -1
@@ -1,175 +1,170 @@
1
- import { c as Ft, j as i, m as Yt } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as Dt, useState as E, useEffect as Ht } from "react";
3
- import { i as Gt } from "./index-Bwrro8-q.js";
1
+ import { c as Ft, j as i, m as Gt } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as wt, useState as V, useEffect as Et } from "react";
3
+ import { i as Ht } from "./index-Bwrro8-q.js";
4
4
  import { o as Bt } from "./index-BZQYSqar.js";
5
- import { l as zt } from "./Modal-DGcuAHyK.js";
6
- import { w as It } from "./Spinner-D7rnnwnA.js";
7
- import { j as le } from "./Typography-PxtFcnJb.js";
5
+ import { w as zt } from "./Spinner-D7rnnwnA.js";
6
+ import { j as se } from "./Typography-PxtFcnJb.js";
8
7
  import { n as Wt } from "./numberFormattingFunction-14YCbkN2.js";
9
- import { T as qt } from "./Tooltip-CwWUegPB.js";
10
- import { c as x } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { g as Zt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
12
- import { Colors as xt } from "./Colors.js";
13
- import { s as Ut } from "./string2HTML-DhG75NqA.js";
14
- import { A as Jt } from "./Axis-CRyfcLjc.js";
15
- import { R as ae, a as ce } from "./ReferenceLine-2XCwHXQ4.js";
16
- import { Y as ue } from "./YTicksAndGridLines-Blepl7XF.js";
17
- import { X as me } from "./XTicksAndGridLines-CObVFSm4.js";
18
- import { s as Kt } from "./pow-DE4c7dbW.js";
19
- import { a as Qt } from "./linear-BwnDd9KF.js";
20
- import { f as _t, a as te, b as ee, c as oe, d as ie } from "./y-BqfogMAB.js";
21
- import { u as Xt } from "./uniqBy-BHy4I8PK.js";
22
- import { GraphHeader as fe } from "./GraphHeader.js";
23
- import { a as pe, G as de } from "./GraphContainer-CRqzdKu2.js";
24
- import { E as he } from "./EmptyState-BZo1BbAn.js";
25
- import { ColorLegendWithMouseOver as ge } from "./ColorLegendWithMouseOver.js";
8
+ import { T as It } from "./Tooltip-Dj5eVppQ.js";
9
+ import { c as g } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
+ import { g as qt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
11
+ import { Colors as gt } from "./Colors.js";
12
+ import { A as Zt } from "./Axis-CRyfcLjc.js";
13
+ import { R as le, a as ae } from "./ReferenceLine-2XCwHXQ4.js";
14
+ import { Y as ce } from "./YTicksAndGridLines-Blepl7XF.js";
15
+ import { X as ue } from "./XTicksAndGridLines-CObVFSm4.js";
16
+ import { D as Ut } from "./DetailsModal-0Ry5nXiC.js";
17
+ import { s as Jt } from "./pow-CM2aze4M.js";
18
+ import { a as Kt } from "./linear-BqltdMeF.js";
19
+ import { f as Qt, a as _t, b as te, c as ee, d as oe } from "./y-BqfogMAB.js";
20
+ import { u as Yt } from "./uniqBy-BHy4I8PK.js";
21
+ import { GraphHeader as me } from "./GraphHeader.js";
22
+ import { a as fe, G as pe } from "./GraphContainer-CRqzdKu2.js";
23
+ import { E as de } from "./EmptyState-BZo1BbAn.js";
24
+ import { ColorLegendWithMouseOver as he } from "./ColorLegendWithMouseOver.js";
26
25
  import { GraphFooter as xe } from "./GraphFooter.js";
27
- function ve(e) {
28
- const t = Ft.c(27), {
26
+ function ge(e) {
27
+ const t = Ft.c(28), {
29
28
  data: n,
30
- circleColors: v,
29
+ circleColors: y,
31
30
  showTicks: ht,
32
- width: S,
33
- height: A,
34
- colorDomain: z,
35
- topMargin: P,
31
+ width: w,
32
+ height: $,
33
+ colorDomain: B,
34
+ topMargin: T,
36
35
  bottomMargin: _,
37
36
  leftMargin: tt,
38
37
  rightMargin: rt,
39
38
  suffix: h,
40
- prefix: R,
39
+ prefix: F,
41
40
  showLabels: et,
42
- tooltip: I,
41
+ tooltip: z,
43
42
  onSeriesMouseOver: st,
44
- refValues: T,
45
- selectedColor: g,
46
- startFromZero: V,
43
+ refValues: N,
44
+ selectedColor: x,
45
+ startFromZero: L,
47
46
  radius: p,
48
47
  maxRadiusValue: W,
49
- maxValue: q,
50
- minValue: Z,
51
- highlightedDataPoints: gt,
48
+ maxValue: I,
49
+ minValue: q,
50
+ highlightedDataPoints: xt,
52
51
  onSeriesMouseClick: ft,
53
- resetSelectionOnDoubleClick: k,
54
- detailsOnClick: M,
52
+ resetSelectionOnDoubleClick: Z,
53
+ detailsOnClick: E,
55
54
  styles: j,
56
- classNames: c,
57
- noOfTicks: w,
55
+ classNames: a,
56
+ noOfTicks: v,
58
57
  dimmedOpacity: lt,
59
58
  precision: at,
60
59
  customLayers: pt
61
- } = e, ct = P === void 0 ? 25 : P, X = _ === void 0 ? 10 : _, ot = tt === void 0 ? 100 : tt, it = rt === void 0 ? 40 : rt, dt = Dt(null), [ut, Y] = E(void 0), [D, $] = E(void 0), [mt, u] = E(null), [a, U] = E(void 0), [J, K] = E(void 0);
62
- let F;
63
- t[0] !== X || t[1] !== ot || t[2] !== it || t[3] !== ct ? (F = {
60
+ } = e, ct = T === void 0 ? 25 : T, P = _ === void 0 ? 10 : _, ot = tt === void 0 ? 100 : tt, it = rt === void 0 ? 40 : rt, dt = wt(null), [ut, R] = V(void 0), [X, Y] = V(void 0), [mt, u] = V(null), [c, U] = V(void 0), [J, K] = V(void 0);
61
+ let S;
62
+ t[0] !== P || t[1] !== ot || t[2] !== it || t[3] !== ct ? (S = {
64
63
  top: ct,
65
- bottom: X,
64
+ bottom: P,
66
65
  left: ot,
67
66
  right: it
68
- }, t[0] = X, t[1] = ot, t[2] = it, t[3] = ct, t[4] = F) : F = t[4];
69
- const m = F, f = S - m.left - m.right, nt = A - m.top - m.bottom, H = n.filter(Ye).length === 0 ? n : Bt(n.filter(Xe), "radius", "desc");
67
+ }, t[0] = P, t[1] = ot, t[2] = it, t[3] = ct, t[4] = S) : S = t[4];
68
+ const m = S, f = w - m.left - m.right, nt = $ - m.top - m.bottom, A = n.filter(Ye).length === 0 ? n : Bt(n.filter(Xe), "radius", "desc");
70
69
  let Q;
71
- t[5] !== n || t[6] !== q || t[7] !== V ? (Q = x(q) ? Math.max(...n.filter(Re).map(Pe)) < 0 && !V ? 0 : Math.max(...n.filter(Ee).map(He)) : q, t[5] = n, t[6] = q, t[7] = V, t[8] = Q) : Q = t[8];
70
+ t[5] !== n || t[6] !== I || t[7] !== L ? (Q = g(I) ? Math.max(...n.filter(Re).map(Pe)) < 0 && !L ? 0 : Math.max(...n.filter(Ee).map(Fe)) : I, t[5] = n, t[6] = I, t[7] = L, t[8] = Q) : Q = t[8];
72
71
  const G = Q;
73
- let B;
74
- t[9] !== n || t[10] !== Z || t[11] !== V ? (B = x(Z) ? Math.min(...n.filter(Fe).map(Ve)) >= 0 && !V ? 0 : Math.min(...n.filter(Te).map(Ae)) : Z, t[9] = n, t[10] = Z, t[11] = V, t[12] = B) : B = t[12];
75
- const d = B, s = n.filter(Se).length !== n.length ? Kt().domain([0, x(W) ? Math.max(...n.map(Le).filter(Ne)) : W]).range([0.25, p]).nice() : void 0, l = Qt().domain([d, G]).range([nt, 0]).nice(), y = l.ticks(w);
76
- Ht(() => {
77
- const r = H.map($e).filter(De);
78
- _t(r).force("y", ee((o) => l(o.position)).strength(5)).force("x", te((o) => f / 2).strength(1)).force("collide", oe((o) => s ? s(o.radius || 0) + 1 : p + 1)).force("charge", ie().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
72
+ let H;
73
+ t[9] !== n || t[10] !== q || t[11] !== L ? (H = g(q) ? Math.min(...n.filter(Te).map(Ve)) >= 0 && !L ? 0 : Math.min(...n.filter(Ae).map(Se)) : q, t[9] = n, t[10] = q, t[11] = L, t[12] = H) : H = t[12];
74
+ const d = H, s = n.filter(Le).length !== n.length ? Jt().domain([0, g(W) ? Math.max(...n.map(Ne).filter($e)) : W]).range([0.25, p]).nice() : void 0, l = Kt().domain([d, G]).range([nt, 0]).nice(), b = l.ticks(v);
75
+ Et(() => {
76
+ const r = A.map(we).filter(ke);
77
+ Qt(r).force("y", te((o) => l(o.position)).strength(5)).force("x", _t((o) => f / 2).strength(1)).force("collide", ee((o) => s ? s(o.radius || 0) + 1 : p + 1)).force("charge", oe().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
79
78
  u(r);
80
79
  }).on("end", () => {
81
80
  u(r);
82
81
  });
83
- }, [n, p, nt, f, d, G, H, l, s]);
84
- const N = mt ? /* @__PURE__ */ i.jsx("svg", { width: `${S}px`, height: `${A}px`, viewBox: `0 0 ${S} ${A}`, direction: "ltr", ref: dt, children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${m.left},${m.top})`, children: [
82
+ }, [n, p, nt, f, d, G, A, l, s]);
83
+ const D = mt ? /* @__PURE__ */ i.jsx("svg", { width: `${w}px`, height: `${$}px`, viewBox: `0 0 ${w} ${$}`, direction: "ltr", ref: dt, children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${m.left},${m.top})`, children: [
85
84
  ht ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
86
- /* @__PURE__ */ i.jsx(Jt, { y1: l(d < 0 ? 0 : d), y2: l(d < 0 ? 0 : d), x1: 0 - m.left, x2: f + m.right, label: Wt(d < 0 ? 0 : d, "NA", at, R, h), labelPos: {
85
+ /* @__PURE__ */ i.jsx(Zt, { y1: l(d < 0 ? 0 : d), y2: l(d < 0 ? 0 : d), x1: 0 - m.left, x2: f + m.right, label: Wt(d < 0 ? 0 : d, "NA", at, F, h), labelPos: {
87
86
  x: 0 - m.left,
88
87
  y: l(d < 0 ? 0 : d),
89
88
  dx: 0,
90
89
  dy: G < 0 ? "1em" : -5
91
90
  }, classNames: {
92
- axis: c?.xAxis?.axis,
93
- label: c?.yAxis?.labels
91
+ axis: a?.xAxis?.axis,
92
+ label: a?.yAxis?.labels
94
93
  }, styles: {
95
94
  axis: j?.xAxis?.axis,
96
95
  label: j?.yAxis?.labels
97
96
  } }),
98
- /* @__PURE__ */ i.jsx(ue, { values: y.filter(we), y: y.filter(ke).map((r) => l(r)), x1: 0 - m.left, x2: f + m.right, styles: {
97
+ /* @__PURE__ */ i.jsx(ce, { values: b.filter(De), y: b.filter(Ce).map((r) => l(r)), x1: 0 - m.left, x2: f + m.right, styles: {
99
98
  gridLines: j?.yAxis?.gridLines,
100
99
  labels: j?.yAxis?.labels
101
100
  }, classNames: {
102
- gridLines: c?.yAxis?.gridLines,
103
- labels: c?.yAxis?.labels
104
- }, suffix: h, prefix: R, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: at })
101
+ gridLines: a?.yAxis?.gridLines,
102
+ labels: a?.yAxis?.labels
103
+ }, suffix: h, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: at })
105
104
  ] }) : null,
106
- pt.filter(Ce).map(Oe),
107
- mt.map((r) => /* @__PURE__ */ i.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${r.x},${r.y})`, opacity: g ? r.color && v[z.indexOf(r.color)] === g ? 1 : lt : gt.length !== 0 ? gt.indexOf(r.label) !== -1 ? 0.85 : lt : 0.85, onMouseEnter: (o) => {
108
- Y(r), K(o.clientY), U(o.clientX), st?.(r);
105
+ pt.filter(Oe).map(je),
106
+ mt.map((r) => /* @__PURE__ */ i.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${r.x},${r.y})`, opacity: x ? r.color && y[B.indexOf(r.color)] === x ? 1 : lt : xt.length !== 0 ? xt.indexOf(r.label) !== -1 ? 0.85 : lt : 0.85, onMouseEnter: (o) => {
107
+ R(r), K(o.clientY), U(o.clientX), st?.(r);
109
108
  }, onMouseMove: (o) => {
110
- Y(r), K(o.clientY), U(o.clientX);
109
+ R(r), K(o.clientY), U(o.clientX);
111
110
  }, onClick: () => {
112
- (ft || M) && (Gt(D, r) && k ? ($(void 0), ft?.(void 0)) : ($(r), ft?.(r)));
111
+ (ft || E) && (Ht(X, r) && Z ? (Y(void 0), ft?.(void 0)) : (Y(r), ft?.(r)));
113
112
  }, onMouseLeave: () => {
114
- Y(void 0), U(void 0), K(void 0), st?.(void 0);
113
+ R(void 0), U(void 0), K(void 0), st?.(void 0);
115
114
  }, children: [
116
- /* @__PURE__ */ i.jsx("circle", { cx: 0, cy: 0, r: s ? s(r.radius || 0) : p, fill: n.filter(je).length === 0 ? v[0] : r.color ? v[z.indexOf(r.color)] : xt.gray }),
117
- (s ? s(r.radius || 0) : p) > 10 && et ? /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx("foreignObject", { y: 0 - (s ? s(r.radius || 0) : p), x: 0 - (s ? s(r.radius || 0) : p), width: 2 * (s ? s(r.radius || 0) : p), height: 2 * (s ? s(r.radius || 0) : p), children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-col justify-center items-center h-inherit py-0 px-1.5", children: et ? /* @__PURE__ */ i.jsx("p", { className: Yt("text-center leading-none m-0", c?.graphObjectValues), style: {
115
+ /* @__PURE__ */ i.jsx("circle", { cx: 0, cy: 0, r: s ? s(r.radius || 0) : p, fill: n.filter(Me).length === 0 ? y[0] : r.color ? y[B.indexOf(r.color)] : gt.gray }),
116
+ (s ? s(r.radius || 0) : p) > 10 && et ? /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx("foreignObject", { y: 0 - (s ? s(r.radius || 0) : p), x: 0 - (s ? s(r.radius || 0) : p), width: 2 * (s ? s(r.radius || 0) : p), height: 2 * (s ? s(r.radius || 0) : p), children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-col justify-center items-center h-inherit py-0 px-1.5", children: et ? /* @__PURE__ */ i.jsx("p", { className: Gt("text-center leading-none m-0", a?.graphObjectValues), style: {
118
117
  fontSize: `${Math.min(Math.max(Math.round((s ? s(r.radius || 0) : p) / 4), 10), Math.max(Math.round((s ? s(r.radius || 0) : p) * 12 / `${r.label}`.length), 10), 20)}px`,
119
118
  hyphens: "auto",
120
- color: Zt(n.filter(Me).length === 0 ? v[0] : r.color ? v[z.indexOf(r.color)] : xt.gray),
119
+ color: qt(n.filter(be).length === 0 ? y[0] : r.color ? y[B.indexOf(r.color)] : gt.gray),
121
120
  ...j?.graphObjectValues || {}
122
121
  }, children: r.label }) : null }) }) }) : null
123
122
  ] }, r.label)),
124
- T ? /* @__PURE__ */ i.jsx(i.Fragment, { children: T.map((r, o) => /* @__PURE__ */ i.jsx(ce, { text: r.text, color: r.color, y: l(r.value), x1: 0 - m.left, x2: f + m.right, classNames: r.classNames, styles: r.styles, isInView: !0 }, o)) }) : null,
125
- pt.filter(be).map(ye)
123
+ N ? /* @__PURE__ */ i.jsx(i.Fragment, { children: N.map((r, o) => /* @__PURE__ */ i.jsx(ae, { text: r.text, color: r.color, y: l(r.value), x1: 0 - m.left, x2: f + m.right, classNames: r.classNames, styles: r.styles, isInView: !0 }, o)) }) : null,
124
+ pt.filter(ye).map(ve)
126
125
  ] }) }) : /* @__PURE__ */ i.jsx("div", { style: {
127
- width: `${S}px`,
128
- height: `${A}px`
129
- }, children: /* @__PURE__ */ i.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ i.jsx(It, {}) }) });
130
- let L;
131
- t[13] !== c?.tooltip || t[14] !== a || t[15] !== J || t[16] !== ut || t[17] !== j?.tooltip || t[18] !== I ? (L = ut && I && a && J ? /* @__PURE__ */ i.jsx(qt, { data: ut, body: I, xPos: a, yPos: J, backgroundStyle: j?.tooltip, className: c?.tooltip }) : null, t[13] = c?.tooltip, t[14] = a, t[15] = J, t[16] = ut, t[17] = j?.tooltip, t[18] = I, t[19] = L) : L = t[19];
126
+ width: `${w}px`,
127
+ height: `${$}px`
128
+ }, children: /* @__PURE__ */ i.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ i.jsx(zt, {}) }) });
129
+ let k;
130
+ t[13] !== a?.tooltip || t[14] !== c || t[15] !== J || t[16] !== ut || t[17] !== j?.tooltip || t[18] !== z ? (k = ut && z && c && J ? /* @__PURE__ */ i.jsx(It, { data: ut, body: z, xPos: c, yPos: J, backgroundStyle: j?.tooltip, className: a?.tooltip }) : null, t[13] = a?.tooltip, t[14] = c, t[15] = J, t[16] = ut, t[17] = j?.tooltip, t[18] = z, t[19] = k) : k = t[19];
132
131
  let O;
133
- t[20] !== M || t[21] !== D ? (O = M && D !== void 0 ? /* @__PURE__ */ i.jsx(zt, { open: D !== void 0, onClose: () => {
134
- $(void 0);
135
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof M == "string" ? {
136
- __html: Ut(M, D)
137
- } : void 0, children: typeof M == "function" ? M(D) : null }) }) : null, t[20] = M, t[21] = D, t[22] = O) : O = t[22];
132
+ t[20] !== a?.modal || t[21] !== E || t[22] !== X ? (O = E && X !== void 0 ? /* @__PURE__ */ i.jsx(Ut, { body: E, data: X, setData: Y, className: a?.modal }) : null, t[20] = a?.modal, t[21] = E, t[22] = X, t[23] = O) : O = t[23];
138
133
  let C;
139
- return t[23] !== N || t[24] !== L || t[25] !== O ? (C = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
140
- N,
141
- L,
134
+ return t[24] !== D || t[25] !== k || t[26] !== O ? (C = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
135
+ D,
136
+ k,
142
137
  O
143
- ] }), t[23] = N, t[24] = L, t[25] = O, t[26] = C) : C = t[26], C;
138
+ ] }), t[24] = D, t[25] = k, t[26] = O, t[27] = C) : C = t[27], C;
144
139
  }
145
- function ye(e) {
140
+ function ve(e) {
146
141
  return e.layer;
147
142
  }
148
- function be(e) {
143
+ function ye(e) {
149
144
  return e.position === "after";
150
145
  }
151
- function Me(e) {
146
+ function be(e) {
152
147
  return e.color;
153
148
  }
154
- function je(e) {
149
+ function Me(e) {
155
150
  return e.color;
156
151
  }
157
- function Oe(e) {
152
+ function je(e) {
158
153
  return e.layer;
159
154
  }
160
- function Ce(e) {
155
+ function Oe(e) {
161
156
  return e.position === "before";
162
157
  }
163
- function ke(e) {
158
+ function Ce(e) {
164
159
  return e !== 0;
165
160
  }
166
- function we(e) {
161
+ function De(e) {
167
162
  return e !== 0;
168
163
  }
169
- function De(e) {
164
+ function ke(e) {
170
165
  return e.position;
171
166
  }
172
- function $e(e) {
167
+ function we(e) {
173
168
  return {
174
169
  ...e,
175
170
  ...e.data && {
@@ -179,192 +174,188 @@ function $e(e) {
179
174
  }
180
175
  };
181
176
  }
182
- function Ne(e) {
177
+ function $e(e) {
183
178
  return e != null;
184
179
  }
185
- function Le(e) {
180
+ function Ne(e) {
186
181
  return e.radius;
187
182
  }
188
- function Se(e) {
183
+ function Le(e) {
189
184
  return e.radius === void 0 || e.radius === null;
190
185
  }
191
- function Ae(e) {
186
+ function Se(e) {
192
187
  return e.position;
193
188
  }
194
- function Te(e) {
195
- return !x(e.position);
189
+ function Ae(e) {
190
+ return !g(e.position);
196
191
  }
197
192
  function Ve(e) {
198
193
  return e.position;
199
194
  }
200
- function Fe(e) {
201
- return !x(e.position);
195
+ function Te(e) {
196
+ return !g(e.position);
202
197
  }
203
- function He(e) {
198
+ function Fe(e) {
204
199
  return e.position;
205
200
  }
206
201
  function Ee(e) {
207
- return !x(e.position);
202
+ return !g(e.position);
208
203
  }
209
204
  function Pe(e) {
210
205
  return e.position;
211
206
  }
212
207
  function Re(e) {
213
- return !x(e.position);
208
+ return !g(e.position);
214
209
  }
215
210
  function Xe(e) {
216
- return !x(e.radius);
211
+ return !g(e.radius);
217
212
  }
218
213
  function Ye(e) {
219
- return !x(e.radius);
214
+ return !g(e.radius);
220
215
  }
221
216
  function Ge(e) {
222
- const t = Ft.c(27), {
217
+ const t = Ft.c(28), {
223
218
  data: n,
224
- circleColors: v,
219
+ circleColors: y,
225
220
  showTicks: ht,
226
- width: S,
227
- height: A,
228
- colorDomain: z,
229
- topMargin: P,
221
+ width: w,
222
+ height: $,
223
+ colorDomain: B,
224
+ topMargin: T,
230
225
  bottomMargin: _,
231
226
  leftMargin: tt,
232
227
  rightMargin: rt,
233
228
  showLabels: h,
234
- tooltip: R,
229
+ tooltip: F,
235
230
  onSeriesMouseOver: et,
236
- refValues: I,
231
+ refValues: z,
237
232
  selectedColor: st,
238
- startFromZero: T,
239
- radius: g,
240
- maxRadiusValue: V,
233
+ startFromZero: N,
234
+ radius: x,
235
+ maxRadiusValue: L,
241
236
  maxValue: p,
242
237
  minValue: W,
243
- highlightedDataPoints: q,
244
- onSeriesMouseClick: Z,
245
- rtl: gt,
238
+ highlightedDataPoints: I,
239
+ onSeriesMouseClick: q,
240
+ rtl: xt,
246
241
  resetSelectionOnDoubleClick: ft,
247
- detailsOnClick: k,
248
- suffix: M,
242
+ detailsOnClick: Z,
243
+ suffix: E,
249
244
  prefix: j,
250
- styles: c,
251
- classNames: w,
245
+ styles: a,
246
+ classNames: v,
252
247
  noOfTicks: lt,
253
248
  dimmedOpacity: at,
254
249
  precision: pt,
255
250
  customLayers: ct
256
- } = e, X = P === void 0 ? 25 : P, ot = _ === void 0 ? 10 : _, it = tt === void 0 ? 10 : tt, dt = rt === void 0 ? 10 : rt, ut = Dt(null), [Y, D] = E(void 0), [$, mt] = E(void 0), [u, a] = E(null), [U, J] = E(void 0), [K, F] = E(void 0);
251
+ } = e, P = T === void 0 ? 25 : T, ot = _ === void 0 ? 10 : _, it = tt === void 0 ? 10 : tt, dt = rt === void 0 ? 10 : rt, ut = wt(null), [R, X] = V(void 0), [Y, mt] = V(void 0), [u, c] = V(null), [U, J] = V(void 0), [K, S] = V(void 0);
257
252
  let m;
258
- t[0] !== ot || t[1] !== it || t[2] !== dt || t[3] !== X ? (m = {
259
- top: X,
253
+ t[0] !== ot || t[1] !== it || t[2] !== dt || t[3] !== P ? (m = {
254
+ top: P,
260
255
  bottom: ot,
261
256
  left: it,
262
257
  right: dt
263
- }, t[0] = ot, t[1] = it, t[2] = dt, t[3] = X, t[4] = m) : m = t[4];
264
- const f = m, nt = S - f.left - f.right, H = A - f.top - f.bottom, Q = n.filter(mo).length === 0 ? n : Bt(n.filter(uo), "radius", "desc");
258
+ }, t[0] = ot, t[1] = it, t[2] = dt, t[3] = P, t[4] = m) : m = t[4];
259
+ const f = m, nt = w - f.left - f.right, A = $ - f.top - f.bottom, Q = n.filter(uo).length === 0 ? n : Bt(n.filter(co), "radius", "desc");
265
260
  let G;
266
- t[5] !== n || t[6] !== p || t[7] !== T ? (G = x(p) ? Math.max(...n.filter(co).map(ao)) < 0 && !T ? 0 : Math.max(...n.filter(lo).map(so)) : p, t[5] = n, t[6] = p, t[7] = T, t[8] = G) : G = t[8];
267
- const B = G;
261
+ t[5] !== n || t[6] !== p || t[7] !== N ? (G = g(p) ? Math.max(...n.filter(ao).map(lo)) < 0 && !N ? 0 : Math.max(...n.filter(so).map(ro)) : p, t[5] = n, t[6] = p, t[7] = N, t[8] = G) : G = t[8];
262
+ const H = G;
268
263
  let d;
269
- t[9] !== n || t[10] !== W || t[11] !== T ? (d = x(W) ? Math.min(...n.filter(ro).map(no)) >= 0 && !T ? 0 : Math.min(...n.filter(io).map(oo)) : W, t[9] = n, t[10] = W, t[11] = T, t[12] = d) : d = t[12];
270
- const s = d, l = n.filter(eo).length !== n.length ? Kt().domain([0, x(V) ? Math.max(...n.map(to).filter(_e)) : V]).range([0.25, g]).nice() : void 0, y = Qt().domain([s, B]).range([0, nt]).nice(), N = y.ticks(lt);
271
- Ht(() => {
272
- const o = Q.map(Qe).filter(Ke);
273
- _t(o).force("x", te((b) => y(b.position)).strength(5)).force("y", ee((b) => H / 2).strength(1)).force("collide", oe((b) => l ? l(b.radius || 0) + 1 : g + 1)).force("charge", ie().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
274
- a(o);
264
+ t[9] !== n || t[10] !== W || t[11] !== N ? (d = g(W) ? Math.min(...n.filter(no).map(io)) >= 0 && !N ? 0 : Math.min(...n.filter(oo).map(eo)) : W, t[9] = n, t[10] = W, t[11] = N, t[12] = d) : d = t[12];
265
+ const s = d, l = n.filter(to).length !== n.length ? Jt().domain([0, g(L) ? Math.max(...n.map(_e).filter(Qe)) : L]).range([0.25, x]).nice() : void 0, b = Kt().domain([s, H]).range([0, nt]).nice(), D = b.ticks(lt);
266
+ Et(() => {
267
+ const o = Q.map(Ke).filter(Je);
268
+ Qt(o).force("x", _t((M) => b(M.position)).strength(5)).force("y", te((M) => A / 2).strength(1)).force("collide", ee((M) => l ? l(M.radius || 0) + 1 : x + 1)).force("charge", oe().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
269
+ c(o);
275
270
  }).on("end", () => {
276
- a(o);
271
+ c(o);
277
272
  });
278
- }, [n, g, H, nt, s, B, Q, y, l]);
279
- const L = u ? /* @__PURE__ */ i.jsx("svg", { width: `${S}px`, height: `${A}px`, viewBox: `0 0 ${S} ${A}`, direction: "ltr", ref: ut, children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${f.left},${f.top})`, children: [
273
+ }, [n, x, A, nt, s, H, Q, b, l]);
274
+ const k = u ? /* @__PURE__ */ i.jsx("svg", { width: `${w}px`, height: `${$}px`, viewBox: `0 0 ${w} ${$}`, direction: "ltr", ref: ut, children: /* @__PURE__ */ i.jsxs("g", { transform: `translate(${f.left},${f.top})`, children: [
280
275
  ht ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
281
- /* @__PURE__ */ i.jsx(Jt, { x1: y(s < 0 ? 0 : s), x2: y(s < 0 ? 0 : s), y1: 0 - f.top, y2: H + f.bottom, label: Wt(s < 0 ? 0 : s, "NA", pt, j, M), labelPos: {
282
- x: y(s < 0 ? 0 : s),
283
- y: 0 - X,
276
+ /* @__PURE__ */ i.jsx(Zt, { x1: b(s < 0 ? 0 : s), x2: b(s < 0 ? 0 : s), y1: 0 - f.top, y2: A + f.bottom, label: Wt(s < 0 ? 0 : s, "NA", pt, j, E), labelPos: {
277
+ x: b(s < 0 ? 0 : s),
278
+ y: 0 - P,
284
279
  dy: "0.75em",
285
280
  dx: 3
286
281
  }, classNames: {
287
- axis: w?.xAxis?.axis,
288
- label: w?.yAxis?.labels
282
+ axis: v?.xAxis?.axis,
283
+ label: v?.yAxis?.labels
289
284
  }, styles: {
290
- axis: c?.xAxis?.axis,
291
- label: c?.yAxis?.labels
285
+ axis: a?.xAxis?.axis,
286
+ label: a?.yAxis?.labels
292
287
  } }),
293
- /* @__PURE__ */ i.jsx(me, { values: N.filter(Je), x: N.filter(Ue).map((o) => y(o)), y1: 0 - X, y2: H + f.bottom, styles: {
294
- gridLines: c?.xAxis?.gridLines,
295
- labels: c?.xAxis?.labels
288
+ /* @__PURE__ */ i.jsx(ue, { values: D.filter(Ue), x: D.filter(Ze).map((o) => b(o)), y1: 0 - P, y2: A + f.bottom, styles: {
289
+ gridLines: a?.xAxis?.gridLines,
290
+ labels: a?.xAxis?.labels
296
291
  }, classNames: {
297
- gridLines: w?.xAxis?.gridLines,
298
- labels: w?.xAxis?.labels
299
- }, suffix: M, prefix: j, labelType: "secondary", showGridLines: !0, precision: pt })
292
+ gridLines: v?.xAxis?.gridLines,
293
+ labels: v?.xAxis?.labels
294
+ }, suffix: E, prefix: j, labelType: "secondary", showGridLines: !0, precision: pt })
300
295
  ] }) : null,
301
- ct.filter(Ze).map(qe),
302
- u.map((o) => /* @__PURE__ */ i.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${o.x},${o.y})`, opacity: st ? o.color && v[z.indexOf(o.color)] === st ? 1 : at : q.length !== 0 ? q.indexOf(o.label) !== -1 ? 0.85 : at : 0.85, onMouseEnter: (b) => {
303
- D(o), F(b.clientY), J(b.clientX), et?.(o);
304
- }, onMouseMove: (b) => {
305
- D(o), F(b.clientY), J(b.clientX);
296
+ ct.filter(qe).map(Ie),
297
+ u.map((o) => /* @__PURE__ */ i.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${o.x},${o.y})`, opacity: st ? o.color && y[B.indexOf(o.color)] === st ? 1 : at : I.length !== 0 ? I.indexOf(o.label) !== -1 ? 0.85 : at : 0.85, onMouseEnter: (M) => {
298
+ X(o), S(M.clientY), J(M.clientX), et?.(o);
299
+ }, onMouseMove: (M) => {
300
+ X(o), S(M.clientY), J(M.clientX);
306
301
  }, onClick: () => {
307
- (Z || k) && (Gt($, o) && ft ? (mt(void 0), Z?.(void 0)) : (mt(o), Z?.(o)));
302
+ (q || Z) && (Ht(Y, o) && ft ? (mt(void 0), q?.(void 0)) : (mt(o), q?.(o)));
308
303
  }, onMouseLeave: () => {
309
- D(void 0), J(void 0), F(void 0), et?.(void 0);
304
+ X(void 0), J(void 0), S(void 0), et?.(void 0);
310
305
  }, children: [
311
- /* @__PURE__ */ i.jsx("circle", { cx: 0, cy: 0, fill: n.filter(We).length === 0 ? v[0] : o.color ? v[z.indexOf(o.color)] : xt.gray, radius: l ? l(o.radius || 0) : g }),
312
- (l ? l(o.radius || 0) : g) > 10 && h ? /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx("foreignObject", { y: 0 - (l ? l(o.radius || 0) : g), x: 0 - (l ? l(o.radius || 0) : g), width: 2 * (l ? l(o.radius || 0) : g), height: 2 * (l ? l(o.radius || 0) : g), children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-1.5", children: h ? /* @__PURE__ */ i.jsx(le, { className: Yt("text-center leading-none m-0", w?.graphObjectValues), marginBottom: "none", style: {
313
- fontSize: `${Math.min(Math.max(Math.round((l ? l(o.radius || 0) : g) / 4), 10), Math.max(Math.round((l ? l(o.radius || 0) : g) * 12 / `${o.label}`.length), 10), 20)}px`,
314
- color: Zt(n.filter(Ie).length === 0 ? v[0] : o.color ? v[z.indexOf(o.color)] : xt.gray),
306
+ /* @__PURE__ */ i.jsx("circle", { cx: 0, cy: 0, fill: n.filter(We).length === 0 ? y[0] : o.color ? y[B.indexOf(o.color)] : gt.gray, radius: l ? l(o.radius || 0) : x }),
307
+ (l ? l(o.radius || 0) : x) > 10 && h ? /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx("foreignObject", { y: 0 - (l ? l(o.radius || 0) : x), x: 0 - (l ? l(o.radius || 0) : x), width: 2 * (l ? l(o.radius || 0) : x), height: 2 * (l ? l(o.radius || 0) : x), children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-1.5", children: h ? /* @__PURE__ */ i.jsx(se, { className: Gt("text-center leading-none m-0", v?.graphObjectValues), marginBottom: "none", style: {
308
+ fontSize: `${Math.min(Math.max(Math.round((l ? l(o.radius || 0) : x) / 4), 10), Math.max(Math.round((l ? l(o.radius || 0) : x) * 12 / `${o.label}`.length), 10), 20)}px`,
309
+ color: qt(n.filter(ze).length === 0 ? y[0] : o.color ? y[B.indexOf(o.color)] : gt.gray),
315
310
  hyphens: "auto",
316
- ...c?.graphObjectValues || {}
311
+ ...a?.graphObjectValues || {}
317
312
  }, children: o.label }) : null }) }) }) : null
318
313
  ] }, o.label)),
319
- I ? /* @__PURE__ */ i.jsx(i.Fragment, { children: I.map((o, b) => /* @__PURE__ */ i.jsx(ae, { text: o.text, color: o.color, x: y(o.value), y1: 0 - f.top, y2: H + f.bottom, textSide: y(o.value) > nt * 0.75 || gt ? "left" : "right", classNames: o.classNames, styles: o.styles, isInView: !0 }, b)) }) : null,
320
- ct.filter(ze).map(Be)
314
+ z ? /* @__PURE__ */ i.jsx(i.Fragment, { children: z.map((o, M) => /* @__PURE__ */ i.jsx(le, { text: o.text, color: o.color, x: b(o.value), y1: 0 - f.top, y2: A + f.bottom, textSide: b(o.value) > nt * 0.75 || xt ? "left" : "right", classNames: o.classNames, styles: o.styles, isInView: !0 }, M)) }) : null,
315
+ ct.filter(Be).map(He)
321
316
  ] }) }) : /* @__PURE__ */ i.jsx("div", { style: {
322
- width: `${S}px`,
323
- height: `${A}px`
324
- }, children: /* @__PURE__ */ i.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ i.jsx(It, {}) }) });
317
+ width: `${w}px`,
318
+ height: `${$}px`
319
+ }, children: /* @__PURE__ */ i.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ i.jsx(zt, {}) }) });
325
320
  let O;
326
- t[13] !== w?.tooltip || t[14] !== U || t[15] !== K || t[16] !== Y || t[17] !== c?.tooltip || t[18] !== R ? (O = Y && R && U && K ? /* @__PURE__ */ i.jsx(qt, { data: Y, body: R, xPos: U, yPos: K, backgroundStyle: c?.tooltip, className: w?.tooltip }) : null, t[13] = w?.tooltip, t[14] = U, t[15] = K, t[16] = Y, t[17] = c?.tooltip, t[18] = R, t[19] = O) : O = t[19];
321
+ t[13] !== v?.tooltip || t[14] !== U || t[15] !== K || t[16] !== R || t[17] !== a?.tooltip || t[18] !== F ? (O = R && F && U && K ? /* @__PURE__ */ i.jsx(It, { data: R, body: F, xPos: U, yPos: K, backgroundStyle: a?.tooltip, className: v?.tooltip }) : null, t[13] = v?.tooltip, t[14] = U, t[15] = K, t[16] = R, t[17] = a?.tooltip, t[18] = F, t[19] = O) : O = t[19];
327
322
  let C;
328
- t[20] !== k || t[21] !== $ ? (C = k && $ !== void 0 ? /* @__PURE__ */ i.jsx(zt, { open: $ !== void 0, onClose: () => {
329
- mt(void 0);
330
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof k == "string" ? {
331
- __html: Ut(k, $)
332
- } : void 0, children: typeof k == "function" ? k($) : null }) }) : null, t[20] = k, t[21] = $, t[22] = C) : C = t[22];
323
+ t[20] !== v?.modal || t[21] !== Z || t[22] !== Y ? (C = Z && Y !== void 0 ? /* @__PURE__ */ i.jsx(Ut, { body: Z, data: Y, setData: mt, className: v?.modal }) : null, t[20] = v?.modal, t[21] = Z, t[22] = Y, t[23] = C) : C = t[23];
333
324
  let r;
334
- return t[23] !== L || t[24] !== O || t[25] !== C ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
335
- L,
325
+ return t[24] !== k || t[25] !== O || t[26] !== C ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
326
+ k,
336
327
  O,
337
328
  C
338
- ] }), t[23] = L, t[24] = O, t[25] = C, t[26] = r) : r = t[26], r;
329
+ ] }), t[24] = k, t[25] = O, t[26] = C, t[27] = r) : r = t[27], r;
339
330
  }
340
- function Be(e) {
331
+ function He(e) {
341
332
  return e.layer;
342
333
  }
343
- function ze(e) {
334
+ function Be(e) {
344
335
  return e.position === "after";
345
336
  }
346
- function Ie(e) {
337
+ function ze(e) {
347
338
  return e.color;
348
339
  }
349
340
  function We(e) {
350
341
  return e.color;
351
342
  }
352
- function qe(e) {
343
+ function Ie(e) {
353
344
  return e.layer;
354
345
  }
355
- function Ze(e) {
346
+ function qe(e) {
356
347
  return e.position === "before";
357
348
  }
358
- function Ue(e) {
349
+ function Ze(e) {
359
350
  return e !== 0;
360
351
  }
361
- function Je(e) {
352
+ function Ue(e) {
362
353
  return e !== 0;
363
354
  }
364
- function Ke(e) {
355
+ function Je(e) {
365
356
  return e.position;
366
357
  }
367
- function Qe(e) {
358
+ function Ke(e) {
368
359
  return {
369
360
  ...e,
370
361
  ...e.data && {
@@ -374,137 +365,140 @@ function Qe(e) {
374
365
  }
375
366
  };
376
367
  }
377
- function _e(e) {
368
+ function Qe(e) {
378
369
  return e != null;
379
370
  }
380
- function to(e) {
371
+ function _e(e) {
381
372
  return e.radius;
382
373
  }
383
- function eo(e) {
374
+ function to(e) {
384
375
  return e.radius === void 0 || e.radius === null;
385
376
  }
386
- function oo(e) {
377
+ function eo(e) {
387
378
  return e.position;
388
379
  }
380
+ function oo(e) {
381
+ return !g(e.position);
382
+ }
389
383
  function io(e) {
390
- return !x(e.position);
384
+ return e.position;
391
385
  }
392
386
  function no(e) {
393
- return e.position;
387
+ return !g(e.position);
394
388
  }
395
389
  function ro(e) {
396
- return !x(e.position);
390
+ return e.position;
397
391
  }
398
392
  function so(e) {
399
- return e.position;
393
+ return !g(e.position);
400
394
  }
401
395
  function lo(e) {
402
- return !x(e.position);
396
+ return e.position;
403
397
  }
404
398
  function ao(e) {
405
- return e.position;
399
+ return !g(e.position);
406
400
  }
407
401
  function co(e) {
408
- return !x(e.position);
402
+ return !g(e.radius);
409
403
  }
410
404
  function uo(e) {
411
- return !x(e.radius);
405
+ return !g(e.radius);
412
406
  }
413
- function mo(e) {
414
- return !x(e.radius);
415
- }
416
- function qo(e) {
407
+ function Wo(e) {
417
408
  const t = Ft.c(79), {
418
409
  data: n,
419
- graphTitle: v,
410
+ graphTitle: y,
420
411
  topMargin: ht,
421
- bottomMargin: S,
422
- leftMargin: A,
423
- rightMargin: z,
424
- colors: P,
412
+ bottomMargin: w,
413
+ leftMargin: $,
414
+ rightMargin: B,
415
+ colors: T,
425
416
  sources: _,
426
417
  graphDescription: tt,
427
418
  height: rt,
428
419
  width: h,
429
- footNote: R,
420
+ footNote: F,
430
421
  colorDomain: et,
431
- colorLegendTitle: I,
422
+ colorLegendTitle: z,
432
423
  padding: st,
433
- relativeHeight: T,
434
- tooltip: g,
435
- onSeriesMouseOver: V,
424
+ relativeHeight: N,
425
+ tooltip: x,
426
+ onSeriesMouseOver: L,
436
427
  refValues: p,
437
428
  showColorScale: W,
438
- graphID: q,
439
- radius: Z,
440
- showLabels: gt,
429
+ graphID: I,
430
+ radius: q,
431
+ showLabels: xt,
441
432
  showTicks: ft,
442
- maxRadiusValue: k,
443
- maxValue: M,
433
+ maxRadiusValue: Z,
434
+ maxValue: E,
444
435
  minValue: j,
445
- highlightedDataPoints: c,
446
- onSeriesMouseClick: w,
436
+ highlightedDataPoints: a,
437
+ onSeriesMouseClick: v,
447
438
  ariaLabel: lt,
448
439
  backgroundColor: at,
449
440
  graphDownload: pt,
450
441
  dataDownload: ct,
451
- language: X,
442
+ language: P,
452
443
  showNAColor: ot,
453
444
  minHeight: it,
454
445
  theme: dt,
455
446
  resetSelectionOnDoubleClick: ut,
456
- detailsOnClick: Y,
457
- orientation: D,
458
- suffix: $,
447
+ detailsOnClick: R,
448
+ orientation: X,
449
+ suffix: Y,
459
450
  prefix: mt,
460
451
  styles: u,
461
- classNames: a,
452
+ classNames: c,
462
453
  noOfTicks: U,
463
454
  dimmedOpacity: J,
464
455
  precision: K,
465
- customLayers: F
466
- } = e, m = Z === void 0 ? 5 : Z, f = gt === void 0 ? !0 : gt, nt = ft === void 0 ? !0 : ft;
467
- let H;
468
- t[0] !== c ? (H = c === void 0 ? [] : c, t[0] = c, t[1] = H) : H = t[1];
469
- const Q = H, G = at === void 0 ? !1 : at, B = pt === void 0 ? !1 : pt, d = ct === void 0 ? !1 : ct, s = X === void 0 ? "en" : X, l = ot === void 0 ? !0 : ot, y = it === void 0 ? 0 : it, N = dt === void 0 ? "light" : dt, L = ut === void 0 ? !0 : ut, O = D === void 0 ? "vertical" : D, C = $ === void 0 ? "" : $, r = mt === void 0 ? "" : mt, o = U === void 0 ? 5 : U, b = J === void 0 ? 0.3 : J, $t = K === void 0 ? 2 : K;
456
+ customLayers: S
457
+ } = e, m = q === void 0 ? 5 : q, f = xt === void 0 ? !0 : xt, nt = ft === void 0 ? !0 : ft;
458
+ let A;
459
+ t[0] !== a ? (A = a === void 0 ? [] : a, t[0] = a, t[1] = A) : A = t[1];
460
+ const Q = A, G = at === void 0 ? !1 : at, H = pt === void 0 ? !1 : pt, d = ct === void 0 ? !1 : ct, s = P === void 0 ? "en" : P, l = ot === void 0 ? !0 : ot, b = it === void 0 ? 0 : it, D = dt === void 0 ? "light" : dt, k = ut === void 0 ? !0 : ut, O = X === void 0 ? "vertical" : X, C = Y === void 0 ? "" : Y, r = mt === void 0 ? "" : mt, o = U === void 0 ? 5 : U, M = J === void 0 ? 0.3 : J, $t = K === void 0 ? 2 : K;
470
461
  let Mt;
471
- t[2] !== F ? (Mt = F === void 0 ? [] : F, t[2] = F, t[3] = Mt) : Mt = t[3];
472
- const Nt = Mt, [jt, ne] = E(0), [Ot, re] = E(0), [Lt, se] = E(void 0), St = Dt(null), Et = Dt(null), At = O === "horizontal" ? Ge : ve;
473
- let Ct, kt;
462
+ t[2] !== S ? (Mt = S === void 0 ? [] : S, t[2] = S, t[3] = Mt) : Mt = t[3];
463
+ const Nt = Mt, [jt, ie] = V(0), [Ot, ne] = V(0), [Lt, re] = V(void 0), St = wt(null), Pt = wt(null), At = O === "horizontal" ? Ge : ge;
464
+ let Ct, Dt;
474
465
  t[4] === Symbol.for("react.memo_cache_sentinel") ? (Ct = () => {
475
- const Pt = new ResizeObserver((Rt) => {
476
- ne(Rt[0].target.clientWidth || 620), re(Rt[0].target.clientHeight || 480);
466
+ const Rt = new ResizeObserver((Xt) => {
467
+ ie(Xt[0].target.clientWidth || 620), ne(Xt[0].target.clientHeight || 480);
477
468
  });
478
- return St.current && Pt.observe(St.current), () => Pt.disconnect();
479
- }, kt = [], t[4] = Ct, t[5] = kt) : (Ct = t[4], kt = t[5]), Ht(Ct, kt);
480
- const Tt = a?.graphContainer, Vt = u?.graphContainer;
469
+ return St.current && Rt.observe(St.current), () => Rt.disconnect();
470
+ }, Dt = [], t[4] = Ct, t[5] = Dt) : (Ct = t[4], Dt = t[5]), Et(Ct, Dt);
471
+ const Vt = c?.graphContainer, Tt = u?.graphContainer;
481
472
  let vt;
482
- t[6] !== a?.description || t[7] !== a?.title || t[8] !== n || t[9] !== d || t[10] !== tt || t[11] !== B || t[12] !== v || t[13] !== u?.description || t[14] !== u?.title || t[15] !== h ? (vt = v || tt || B || d ? /* @__PURE__ */ i.jsx(fe, { styles: {
473
+ t[6] !== c?.description || t[7] !== c?.title || t[8] !== n || t[9] !== d || t[10] !== tt || t[11] !== H || t[12] !== y || t[13] !== u?.description || t[14] !== u?.title || t[15] !== h ? (vt = y || tt || H || d ? /* @__PURE__ */ i.jsx(me, { styles: {
483
474
  title: u?.title,
484
475
  description: u?.description
485
476
  }, classNames: {
486
- title: a?.title,
487
- description: a?.description
488
- }, graphTitle: v, graphDescription: tt, width: h, graphDownload: B ? Et : void 0, dataDownload: d ? n.map(bo).filter(yo).length > 0 ? n.map(vo).filter(xo) : n.filter(go) : null }) : null, t[6] = a?.description, t[7] = a?.title, t[8] = n, t[9] = d, t[10] = tt, t[11] = B, t[12] = v, t[13] = u?.description, t[14] = u?.title, t[15] = h, t[16] = vt) : vt = t[16];
477
+ title: c?.title,
478
+ description: c?.description
479
+ }, graphTitle: y, graphDescription: tt, width: h, graphDownload: H ? Pt : void 0, dataDownload: d ? n.map(yo).filter(vo).length > 0 ? n.map(go).filter(xo) : n.filter(ho) : null }) : null, t[6] = c?.description, t[7] = c?.title, t[8] = n, t[9] = d, t[10] = tt, t[11] = H, t[12] = y, t[13] = u?.description, t[14] = u?.title, t[15] = h, t[16] = vt) : vt = t[16];
489
480
  let yt;
490
- t[17] !== At || t[18] !== S || t[19] !== a || t[20] !== et || t[21] !== I || t[22] !== P || t[23] !== Nt || t[24] !== n || t[25] !== Y || t[26] !== b || t[27] !== Q || t[28] !== A || t[29] !== k || t[30] !== M || t[31] !== j || t[32] !== o || t[33] !== w || t[34] !== V || t[35] !== $t || t[36] !== r || t[37] !== m || t[38] !== p || t[39] !== L || t[40] !== z || t[41] !== Lt || t[42] !== W || t[43] !== f || t[44] !== l || t[45] !== nt || t[46] !== u || t[47] !== C || t[48] !== Ot || t[49] !== jt || t[50] !== N || t[51] !== g || t[52] !== ht || t[53] !== h ? (yt = n.length === 0 ? /* @__PURE__ */ i.jsx(he, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
491
- W !== !1 && n.filter(ho).length !== 0 ? /* @__PURE__ */ i.jsx(ge, { width: h, colorLegendTitle: I, colors: P || xt[N].categoricalColors.colors, colorDomain: et || Xt(n, "color", !0), setSelectedColor: se, showNAColor: l, className: a?.colorLegend }) : null,
492
- /* @__PURE__ */ i.jsx(pe, { ref: St, children: jt && Ot ? /* @__PURE__ */ i.jsx(At, { data: n, circleColors: n.filter(po).length === 0 ? P ? [P] : [xt.primaryColors["blue-600"]] : P || xt[N].categoricalColors.colors, colorDomain: n.filter(fo).length === 0 ? [] : et || Xt(n, "color", !0), width: jt, selectedColor: Lt, height: Ot, showTicks: nt, leftMargin: A, rightMargin: z, topMargin: ht, bottomMargin: S, showLabels: f, tooltip: g, onSeriesMouseOver: V, refValues: p, startFromZero: !1, radius: m, maxRadiusValue: k, maxValue: M, minValue: j, highlightedDataPoints: Q, onSeriesMouseClick: w, resetSelectionOnDoubleClick: L, detailsOnClick: Y, styles: u, classNames: a, suffix: C, prefix: r, noOfTicks: o || 5, dimmedOpacity: b, precision: $t, customLayers: Nt }) : null })
493
- ] }), t[17] = At, t[18] = S, t[19] = a, t[20] = et, t[21] = I, t[22] = P, t[23] = Nt, t[24] = n, t[25] = Y, t[26] = b, t[27] = Q, t[28] = A, t[29] = k, t[30] = M, t[31] = j, t[32] = o, t[33] = w, t[34] = V, t[35] = $t, t[36] = r, t[37] = m, t[38] = p, t[39] = L, t[40] = z, t[41] = Lt, t[42] = W, t[43] = f, t[44] = l, t[45] = nt, t[46] = u, t[47] = C, t[48] = Ot, t[49] = jt, t[50] = N, t[51] = g, t[52] = ht, t[53] = h, t[54] = yt) : yt = t[54];
481
+ t[17] !== At || t[18] !== w || t[19] !== c || t[20] !== et || t[21] !== z || t[22] !== T || t[23] !== Nt || t[24] !== n || t[25] !== R || t[26] !== M || t[27] !== Q || t[28] !== $ || t[29] !== Z || t[30] !== E || t[31] !== j || t[32] !== o || t[33] !== v || t[34] !== L || t[35] !== $t || t[36] !== r || t[37] !== m || t[38] !== p || t[39] !== k || t[40] !== B || t[41] !== Lt || t[42] !== W || t[43] !== f || t[44] !== l || t[45] !== nt || t[46] !== u || t[47] !== C || t[48] !== Ot || t[49] !== jt || t[50] !== D || t[51] !== x || t[52] !== ht || t[53] !== h ? (yt = n.length === 0 ? /* @__PURE__ */ i.jsx(de, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
482
+ W !== !1 && n.filter(po).length !== 0 ? /* @__PURE__ */ i.jsx(he, { width: h, colorLegendTitle: z, colors: T || gt[D].categoricalColors.colors, colorDomain: et || Yt(n, "color", !0), setSelectedColor: re, showNAColor: l, className: c?.colorLegend }) : null,
483
+ /* @__PURE__ */ i.jsx(fe, { ref: St, children: jt && Ot ? /* @__PURE__ */ i.jsx(At, { data: n, circleColors: n.filter(fo).length === 0 ? T ? [T] : [gt.primaryColors["blue-600"]] : T || gt[D].categoricalColors.colors, colorDomain: n.filter(mo).length === 0 ? [] : et || Yt(n, "color", !0), width: jt, selectedColor: Lt, height: Ot, showTicks: nt, leftMargin: $, rightMargin: B, topMargin: ht, bottomMargin: w, showLabels: f, tooltip: x, onSeriesMouseOver: L, refValues: p, startFromZero: !1, radius: m, maxRadiusValue: Z, maxValue: E, minValue: j, highlightedDataPoints: Q, onSeriesMouseClick: v, resetSelectionOnDoubleClick: k, detailsOnClick: R, styles: u, classNames: c, suffix: C, prefix: r, noOfTicks: o || 5, dimmedOpacity: M, precision: $t, customLayers: Nt }) : null })
484
+ ] }), t[17] = At, t[18] = w, t[19] = c, t[20] = et, t[21] = z, t[22] = T, t[23] = Nt, t[24] = n, t[25] = R, t[26] = M, t[27] = Q, t[28] = $, t[29] = Z, t[30] = E, t[31] = j, t[32] = o, t[33] = v, t[34] = L, t[35] = $t, t[36] = r, t[37] = m, t[38] = p, t[39] = k, t[40] = B, t[41] = Lt, t[42] = W, t[43] = f, t[44] = l, t[45] = nt, t[46] = u, t[47] = C, t[48] = Ot, t[49] = jt, t[50] = D, t[51] = x, t[52] = ht, t[53] = h, t[54] = yt) : yt = t[54];
494
485
  let bt;
495
- t[55] !== a?.footnote || t[56] !== a?.source || t[57] !== R || t[58] !== _ || t[59] !== u?.footnote || t[60] !== u?.source || t[61] !== h ? (bt = _ || R ? /* @__PURE__ */ i.jsx(xe, { styles: {
486
+ t[55] !== c?.footnote || t[56] !== c?.source || t[57] !== F || t[58] !== _ || t[59] !== u?.footnote || t[60] !== u?.source || t[61] !== h ? (bt = _ || F ? /* @__PURE__ */ i.jsx(xe, { styles: {
496
487
  footnote: u?.footnote,
497
488
  source: u?.source
498
489
  }, classNames: {
499
- footnote: a?.footnote,
500
- source: a?.source
501
- }, sources: _, footNote: R, width: h }) : null, t[55] = a?.footnote, t[56] = a?.source, t[57] = R, t[58] = _, t[59] = u?.footnote, t[60] = u?.source, t[61] = h, t[62] = bt) : bt = t[62];
502
- let wt;
503
- return t[63] !== lt || t[64] !== G || t[65] !== q || t[66] !== rt || t[67] !== s || t[68] !== y || t[69] !== st || t[70] !== T || t[71] !== Tt || t[72] !== Vt || t[73] !== vt || t[74] !== yt || t[75] !== bt || t[76] !== N || t[77] !== h ? (wt = /* @__PURE__ */ i.jsxs(de, { className: Tt, style: Vt, id: q, ref: Et, "aria-label": lt, backgroundColor: G, theme: N, language: s, minHeight: y, width: h, height: rt, relativeHeight: T, padding: st, children: [
490
+ footnote: c?.footnote,
491
+ source: c?.source
492
+ }, sources: _, footNote: F, width: h }) : null, t[55] = c?.footnote, t[56] = c?.source, t[57] = F, t[58] = _, t[59] = u?.footnote, t[60] = u?.source, t[61] = h, t[62] = bt) : bt = t[62];
493
+ let kt;
494
+ return t[63] !== lt || t[64] !== G || t[65] !== I || t[66] !== rt || t[67] !== s || t[68] !== b || t[69] !== st || t[70] !== N || t[71] !== Vt || t[72] !== Tt || t[73] !== vt || t[74] !== yt || t[75] !== bt || t[76] !== D || t[77] !== h ? (kt = /* @__PURE__ */ i.jsxs(pe, { className: Vt, style: Tt, id: I, ref: Pt, "aria-label": lt, backgroundColor: G, theme: D, language: s, minHeight: b, width: h, height: rt, relativeHeight: N, padding: st, children: [
504
495
  vt,
505
496
  yt,
506
497
  bt
507
- ] }), t[63] = lt, t[64] = G, t[65] = q, t[66] = rt, t[67] = s, t[68] = y, t[69] = st, t[70] = T, t[71] = Tt, t[72] = Vt, t[73] = vt, t[74] = yt, t[75] = bt, t[76] = N, t[77] = h, t[78] = wt) : wt = t[78], wt;
498
+ ] }), t[63] = lt, t[64] = G, t[65] = I, t[66] = rt, t[67] = s, t[68] = b, t[69] = st, t[70] = N, t[71] = Vt, t[72] = Tt, t[73] = vt, t[74] = yt, t[75] = bt, t[76] = D, t[77] = h, t[78] = kt) : kt = t[78], kt;
499
+ }
500
+ function mo(e) {
501
+ return e.color;
508
502
  }
509
503
  function fo(e) {
510
504
  return e.color;
@@ -513,24 +507,21 @@ function po(e) {
513
507
  return e.color;
514
508
  }
515
509
  function ho(e) {
516
- return e.color;
517
- }
518
- function go(e) {
519
510
  return e !== void 0;
520
511
  }
521
512
  function xo(e) {
522
513
  return e !== void 0;
523
514
  }
524
- function vo(e) {
515
+ function go(e) {
525
516
  return e.data;
526
517
  }
527
- function yo(e) {
518
+ function vo(e) {
528
519
  return e !== void 0;
529
520
  }
530
- function bo(e) {
521
+ function yo(e) {
531
522
  return e.data;
532
523
  }
533
524
  export {
534
- qo as BeeSwarmChart
525
+ Wo as BeeSwarmChart
535
526
  };
536
527
  //# sourceMappingURL=BeeSwarmChart.js.map