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