@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
package/dist/HybridMap.js CHANGED
@@ -1,38 +1,38 @@
1
- import { _ as eo, m as Lt, a as Ut, j as a, c as to } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import * as oo from "react";
3
- import ao, { useMemo as Vt, useState as S, useRef as qe, useEffect as Ue, useEffectEvent as $t } from "react";
4
- import { f as ro, p as io } from "./parse-Dv4of-PN.js";
5
- import { g as no, N as lo } from "./getSliderMarks-X-_goqH9.js";
6
- import { w as so } from "./Spinner-B2IIKg9r.js";
7
- import { i as Ft } from "./index-Bwrro8-q.js";
8
- import { i as Tt, z as co, a as mo, g as po, b as uo, c as ho, d as fo, e as go, f as yo } from "./index-CKpKc9DR.js";
9
- import { _ as Pt } from "./Typography-BO0gQDIT.js";
10
- import { i as vo } from "./index-DCsFBfJ_.js";
11
- import { n as At } from "./Source-QGk8vhkS.js";
12
- import { w as xo } from "./index-w64Zl8io-ihagHOdP.js";
13
- import { T as bo } from "./Tooltip-Bj-s__cI.js";
14
- import { X as wo, E as jo, P as ko, e as Co } from "./index-ApTBN0kp.js";
15
- import { D as Do } from "./DetailsModal-B2XBWR7w.js";
16
- import { s as No } from "./pow-BXYLJHCq.js";
17
- import { o as Mo } from "./ordinal-CHaxGJ_l.js";
18
- import { t as So } from "./threshold-DFfqcDMa.js";
19
- import { s as _t } from "./select-DKy99ogv.js";
1
+ import { _ as Qt, m as _t, a as Gt, j as a, c as eo } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import * as to from "react";
3
+ import oo, { useMemo as Wt, useState as S, useRef as He, useEffect as qe, useEffectEvent as Vt } from "react";
4
+ import { f as ao, p as ro } from "./parse-Dv4of-PN.js";
5
+ import { g as io, N as no } from "./getSliderMarks-X-_goqH9.js";
6
+ import { w as lo } from "./Spinner-B2IIKg9r.js";
7
+ import { i as $t } from "./index-Bwrro8-q.js";
8
+ import { i as Ft, z as so, a as co, g as mo, b as po, c as uo, d as ho, e as fo, f as go } from "./index-CKpKc9DR.js";
9
+ import { _ as zt } from "./Typography-BO0gQDIT.js";
10
+ import { i as yo } from "./index-DCsFBfJ_.js";
11
+ import { n as Tt } from "./Source-QGk8vhkS.js";
12
+ import { w as vo } from "./index-w64Zl8io-ihagHOdP.js";
13
+ import { T as xo } from "./Tooltip-3EYDVa3w.js";
14
+ import { X as bo, E as wo, P as jo, e as ko } from "./index-ApTBN0kp.js";
15
+ import { D as Co } from "./DetailsModal-GqEbGHY2.js";
16
+ import { s as Do } from "./pow-BXYLJHCq.js";
17
+ import { o as No } from "./ordinal-CHaxGJ_l.js";
18
+ import { t as Mo } from "./threshold-DFfqcDMa.js";
19
+ import { s as Pt } from "./select-DKy99ogv.js";
20
20
  import { m as le } from "./proxy-BsxtcZKa.js";
21
21
  import { c as yt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
22
- import { n as Oo } from "./numberFormattingFunction-DqMf_v1m.js";
23
- import { u as Eo } from "./use-in-view-KOXq5Kmc.js";
24
- import { A as Bo } from "./index-Cv_5q6Rb.js";
25
- import { GraphFooter as Io } from "./GraphFooter.js";
26
- import { GraphHeader as zo } from "./GraphHeader.js";
27
- import { Colors as ke } from "./Colors.js";
28
- import { f as Rt } from "./fetchAndParseData-BAXhgTDM.js";
29
- import { a as Po, G as _o } from "./GraphContainer-B8ZqOzKI.js";
30
- import { g as Lo } from "./getUniqValue-DsqSii6M.js";
31
- import { g as Wo } from "./getJenks-DTCcQSDi.js";
32
- var Vo = "Separator", Gt = "horizontal", $o = ["horizontal", "vertical"], qt = oo.forwardRef((r, e) => {
33
- const { decorative: t, orientation: w = Gt, ...y } = r, l = Fo(w) ? w : Gt, v = t ? { role: "none" } : { "aria-orientation": l === "vertical" ? l : void 0, role: "separator" };
34
- return /* @__PURE__ */ Ut.jsx(
35
- xo.div,
22
+ import { n as So } from "./numberFormattingFunction-BUUV_luR.js";
23
+ import { u as Oo } from "./use-in-view-KOXq5Kmc.js";
24
+ import { A as Eo } from "./index-Cv_5q6Rb.js";
25
+ import { GraphFooter as Bo } from "./GraphFooter.js";
26
+ import { GraphHeader as Io } from "./GraphHeader.js";
27
+ import { Colors as Ce } from "./Colors.js";
28
+ import { f as At } from "./fetchAndParseData-BAXhgTDM.js";
29
+ import { a as zo, G as Po } from "./GraphContainer-B8ZqOzKI.js";
30
+ import { g as _o } from "./getUniqValue-DsqSii6M.js";
31
+ import { g as Lo } from "./getJenks-DTCcQSDi.js";
32
+ var Wo = "Separator", Rt = "horizontal", Vo = ["horizontal", "vertical"], Ut = to.forwardRef((r, e) => {
33
+ const { decorative: o, orientation: w = Rt, ...y } = r, l = $o(w) ? w : Rt, v = o ? { role: "none" } : { "aria-orientation": l === "vertical" ? l : void 0, role: "separator" };
34
+ return /* @__PURE__ */ Gt.jsx(
35
+ vo.div,
36
36
  {
37
37
  "data-orientation": l,
38
38
  ...v,
@@ -41,31 +41,31 @@ var Vo = "Separator", Gt = "horizontal", $o = ["horizontal", "vertical"], qt = o
41
41
  }
42
42
  );
43
43
  });
44
- qt.displayName = Vo;
45
- function Fo(r) {
46
- return $o.includes(r);
44
+ Ut.displayName = Wo;
45
+ function $o(r) {
46
+ return Vo.includes(r);
47
47
  }
48
- var Ht = qt;
49
- const Xt = ao.forwardRef((r, e) => {
50
- const t = eo.c(14);
48
+ var qt = Ut;
49
+ const Ht = oo.forwardRef((r, e) => {
50
+ const o = Qt.c(14);
51
51
  let w, y, l, v;
52
- t[0] !== r ? ({
52
+ o[0] !== r ? ({
53
53
  className: w,
54
54
  variant: l,
55
55
  orientation: v,
56
56
  ...y
57
- } = r, t[0] = r, t[1] = w, t[2] = y, t[3] = l, t[4] = v) : (w = t[1], y = t[2], l = t[3], v = t[4]);
57
+ } = r, o[0] = r, o[1] = w, o[2] = y, o[3] = l, o[4] = v) : (w = o[1], y = o[2], l = o[3], v = o[4]);
58
58
  const x = l === void 0 ? "dark" : l, s = v === void 0 ? "horizontal" : v, u = s === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", D = x === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
59
59
  let C;
60
- t[5] !== w || t[6] !== u || t[7] !== D ? (C = Lt(u, D, w), t[5] = w, t[6] = u, t[7] = D, t[8] = C) : C = t[8];
60
+ o[5] !== w || o[6] !== u || o[7] !== D ? (C = _t(u, D, w), o[5] = w, o[6] = u, o[7] = D, o[8] = C) : C = o[8];
61
61
  let I;
62
- return t[9] !== s || t[10] !== y || t[11] !== e || t[12] !== C ? (I = /* @__PURE__ */ Ut.jsx(Ht, { ...y, ref: e, orientation: s, className: C }), t[9] = s, t[10] = y, t[11] = e, t[12] = C, t[13] = I) : I = t[13], I;
62
+ return o[9] !== s || o[10] !== y || o[11] !== e || o[12] !== C ? (I = /* @__PURE__ */ Gt.jsx(qt, { ...y, ref: e, orientation: s, className: C }), o[9] = s, o[10] = y, o[11] = e, o[12] = C, o[13] = I) : I = o[13], I;
63
63
  });
64
- Xt.displayName = Ht.displayName;
65
- function To(r) {
64
+ Ht.displayName = qt.displayName;
65
+ function Fo(r) {
66
66
  const {
67
67
  data: e,
68
- colors: t,
68
+ colors: o,
69
69
  mapData: w,
70
70
  mapColorLegendTitle: y,
71
71
  colorDomain: l,
@@ -78,95 +78,95 @@ function To(r) {
78
78
  showLabels: I,
79
79
  mapBorderWidth: se,
80
80
  mapBorderColor: ce,
81
- mapNoDataColor: Ce,
82
- onSeriesMouseOver: R,
83
- showColorScale: De,
84
- zoomScaleExtend: He,
85
- zoomTranslateExtend: Xe,
86
- highlightedDataPoints: Ne,
87
- onSeriesMouseClick: L,
88
- resetSelectionOnDoubleClick: Me,
89
- detailsOnClick: G,
81
+ mapNoDataColor: De,
82
+ onSeriesMouseOver: G,
83
+ showColorScale: Ne,
84
+ zoomScaleExtend: Xe,
85
+ zoomTranslateExtend: Ye,
86
+ highlightedDataPoints: Me,
87
+ onSeriesMouseClick: V,
88
+ resetSelectionOnDoubleClick: Se,
89
+ detailsOnClick: U,
90
90
  styles: N,
91
- classNames: U,
92
- mapProjection: oe,
93
- zoomInteraction: q,
91
+ classNames: q,
92
+ mapProjection: ae,
93
+ zoomInteraction: H,
94
94
  animate: b,
95
- dimmedOpacity: W,
95
+ dimmedOpacity: z,
96
96
  customLayers: de,
97
- maxRadiusValue: Se,
98
- categorical: ae,
99
- dotColor: H,
100
- collapseColorScaleByDefault: Oe,
101
- highlightedIds: re,
97
+ maxRadiusValue: Oe,
98
+ categorical: re,
99
+ dotColor: X,
100
+ collapseColorScaleByDefault: Ee,
101
+ highlightedIds: $,
102
102
  mapProperty: me,
103
103
  dotLegendTitle: pe,
104
- dotBorderColor: Ee,
105
- labelColor: Be,
106
- projectionRotate: X,
107
- rewindCoordinatesInMapData: Y,
104
+ dotBorderColor: Be,
105
+ labelColor: Ie,
106
+ projectionRotate: Y,
107
+ rewindCoordinatesInMapData: Z,
108
108
  overlayMapData: p,
109
109
  overlayMapBorderColor: g,
110
- overlayMapBorderWidth: Ye,
111
- locale: Je
112
- } = r, J = Vt(() => Y ? Tt(w, {
110
+ overlayMapBorderWidth: Ze,
111
+ numberDisplayOptions: ue
112
+ } = r, J = Wt(() => Z ? Ft(w, {
113
113
  reverse: !0
114
- }) : w, [w, Y]), Ke = Vt(() => !Y || !p ? p : Tt(p, {
114
+ }) : w, [w, Z]), Je = Wt(() => !Z || !p ? p : Ft(p, {
115
115
  reverse: !0
116
- }), [p, Y]), [M, O] = S(void 0), [ue, he] = S(Oe === void 0 ? !(s < 680) : !Oe), fe = qe(null), [K, Z] = S(void 0), [ge, z] = S(void 0), [Ie, E] = S(void 0), [ze, V] = S(void 0), f = qe(null), j = Eo(f, {
116
+ }), [p, Z]), [M, O] = S(void 0), [he, fe] = S(Ee === void 0 ? !(s < 680) : !Ee), ge = He(null), [K, Q] = S(void 0), [ye, P] = S(void 0), [ze, E] = S(void 0), [Pe, _] = S(void 0), f = He(null), j = Oo(f, {
117
117
  once: b.once,
118
118
  amount: b.amount
119
- }), ie = qe(null), k = e.filter((o) => o.radius === void 0 || o.radius === null).length !== e.length ? No().domain([0, Se]).range([0.25, v]).nice() : void 0, Pe = ae ? Mo().domain(l).range(t) : So().domain(l).range(t);
120
- Ue(() => {
121
- const o = _t(ie.current), i = _t(f.current), h = (n) => {
122
- if (q === "noZoom") return !1;
123
- if (q === "button") return !n.type.includes("wheel");
124
- const F = n.type === "wheel", $e = n.type.startsWith("touch"), Fe = n.type === "mousedown" || n.type === "mousemove";
125
- return $e ? !0 : F ? q === "scroll" ? !0 : n.ctrlKey : Fe && !n.button && !n.ctrlKey;
126
- }, _ = co().scaleExtent(He).translateExtent(Xe || [[-20, -20], [s + 20, x + 20]]).filter(h).on("zoom", ({
119
+ }), ie = He(null), k = e.filter((t) => t.radius === void 0 || t.radius === null).length !== e.length ? Do().domain([0, Oe]).range([0.25, v]).nice() : void 0, _e = re ? No().domain(l).range(o) : Mo().domain(l).range(o);
120
+ qe(() => {
121
+ const t = Pt(ie.current), i = Pt(f.current), h = (n) => {
122
+ if (H === "noZoom") return !1;
123
+ if (H === "button") return !n.type.includes("wheel");
124
+ const T = n.type === "wheel", Fe = n.type.startsWith("touch"), Te = n.type === "mousedown" || n.type === "mousemove";
125
+ return Fe ? !0 : T ? H === "scroll" ? !0 : n.ctrlKey : Te && !n.button && !n.ctrlKey;
126
+ }, W = so().scaleExtent(Xe).translateExtent(Ye || [[-20, -20], [s + 20, x + 20]]).filter(h).on("zoom", ({
127
127
  transform: n
128
128
  }) => {
129
- o.attr("transform", n);
129
+ t.attr("transform", n);
130
130
  });
131
- i.call(_), fe.current = _;
132
- }, [x, s, q]);
133
- const Q = mo(J), $ = vo(J), _e = (Q[2] - Q[0]) * 1.15, Le = (Q[3] - Q[1]) * 1.15, We = s * 190 / 960 * 360 / _e, Ve = x * 190 / 678 * 180 / Le, P = u * Math.min(We, Ve), ee = oe === "mercator" ? po().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "equalEarth" ? uo().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "naturalEarth" ? ho().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "orthographic" ? fo().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : go().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P), te = yo().projection(ee), ye = (o) => {
134
- if (!f.current || !fe.current) return;
135
- _t(f.current).call(fe.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
131
+ i.call(W), ge.current = W;
132
+ }, [x, s, H]);
133
+ const ee = co(J), F = yo(J), Le = (ee[2] - ee[0]) * 1.15, We = (ee[3] - ee[1]) * 1.15, Ve = s * 190 / 960 * 360 / Le, $e = x * 190 / 678 * 180 / We, L = u * Math.min(Ve, $e), te = ae === "mercator" ? mo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L) : ae === "equalEarth" ? po().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L) : ae === "naturalEarth" ? uo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L) : ae === "orthographic" ? ho().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L) : fo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L), oe = go().projection(te), ve = (t) => {
134
+ if (!f.current || !ge.current) return;
135
+ Pt(f.current).call(ge.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
136
136
  };
137
137
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
138
138
  /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
139
139
  /* @__PURE__ */ a.jsx(le.svg, { width: `${s}px`, height: `${x}px`, viewBox: `0 0 ${s} ${x}`, ref: f, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: ie, children: [
140
- de.filter((o) => o.position === "before").map((o) => o.layer),
141
- J.features.map((o, i) => {
142
- if (!o.properties?.[me]) return null;
143
- const h = te(o);
144
- return h ? /* @__PURE__ */ a.jsx(le.g, { opacity: M ? W : re ? re.indexOf(o.properties[me]) !== -1 ? 1 : W : 1, children: /* @__PURE__ */ a.jsx("path", { d: h, style: {
140
+ de.filter((t) => t.position === "before").map((t) => t.layer),
141
+ J.features.map((t, i) => {
142
+ if (!t.properties?.[me]) return null;
143
+ const h = oe(t);
144
+ return h ? /* @__PURE__ */ a.jsx(le.g, { opacity: M ? z : $ ? $.indexOf(t.properties[me]) !== -1 ? 1 : z : 1, children: /* @__PURE__ */ a.jsx("path", { d: h, style: {
145
145
  stroke: ce,
146
146
  strokeWidth: se,
147
- fill: Ce,
147
+ fill: De,
148
148
  vectorEffect: "non-scaling-stroke"
149
149
  } }) }, i) : null;
150
150
  }),
151
- /* @__PURE__ */ a.jsxs(Bo, { children: [
152
- e.filter((o) => o.id).map((o) => {
151
+ /* @__PURE__ */ a.jsxs(Eo, { children: [
152
+ e.filter((t) => t.id).map((t) => {
153
153
  const i = J.features.findIndex(
154
154
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
155
- (n) => o.id === n.properties[me]
155
+ (n) => t.id === n.properties[me]
156
156
  );
157
157
  if (i === -1) return null;
158
- const h = te(J.features[i]);
158
+ const h = oe(J.features[i]);
159
159
  if (!h) return null;
160
- const _ = yt(o.x) ? Ce : (
160
+ const W = yt(t.x) ? De : (
161
161
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
162
- Pe(o.x)
162
+ _e(t.x)
163
163
  );
164
164
  return /* @__PURE__ */ a.jsx(le.g, { className: "undp-map-shapes", variants: {
165
165
  initial: {
166
166
  opacity: 0
167
167
  },
168
168
  whileInView: {
169
- opacity: M ? M === _ ? 1 : W : re ? re.indexOf(o.id) !== -1 ? 1 : W : 1,
169
+ opacity: M ? M === W && (!$ || $.indexOf(t.id) !== -1) ? 1 : z : $ ? $.indexOf(t.id) !== -1 ? 1 : z : 1,
170
170
  transition: {
171
171
  duration: b.duration
172
172
  }
@@ -177,20 +177,20 @@ function To(r) {
177
177
  duration: b.duration
178
178
  }
179
179
  }, onMouseEnter: (n) => {
180
- z(o), V(n.clientY), E(n.clientX), R?.(o);
180
+ P(t), _(n.clientY), E(n.clientX), G?.(t);
181
181
  }, onMouseMove: (n) => {
182
- z(o), V(n.clientY), E(n.clientX);
182
+ P(t), _(n.clientY), E(n.clientX);
183
183
  }, onMouseLeave: () => {
184
- z(void 0), E(void 0), V(void 0), R?.(void 0);
184
+ P(void 0), E(void 0), _(void 0), G?.(void 0);
185
185
  }, onClick: () => {
186
- (L || G) && (Ft(K, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
186
+ (V || U) && ($t(K, t) && Se ? (Q(void 0), V?.(void 0)) : (Q(t), V?.(t)));
187
187
  }, children: /* @__PURE__ */ a.jsx(le.path, { d: h, variants: {
188
188
  initial: {
189
- fill: _,
189
+ fill: W,
190
190
  opacity: 0
191
191
  },
192
192
  whileInView: {
193
- fill: _,
193
+ fill: W,
194
194
  opacity: 1,
195
195
  transition: {
196
196
  duration: b.duration
@@ -205,26 +205,26 @@ function To(r) {
205
205
  stroke: ce,
206
206
  strokeWidth: se,
207
207
  vectorEffect: "non-scaling-stroke"
208
- } }, `${o.id}`) }, o.id);
208
+ } }, `${t.id}`) }, t.id);
209
209
  }),
210
- Ke?.features.map((o, i) => {
211
- const h = te(o);
210
+ Je?.features.map((t, i) => {
211
+ const h = oe(t);
212
212
  return h ? /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("path", { d: h, style: {
213
213
  stroke: g || ce,
214
- strokeWidth: Ye || se + 1,
214
+ strokeWidth: Ze || se + 1,
215
215
  fill: "none",
216
216
  pointerEvents: "none",
217
217
  vectorEffect: "non-scaling-stroke"
218
218
  } }) }, i) : null;
219
219
  }),
220
- e.filter((o) => !yt(o.lat) && !yt(o.long)).map((o) => {
221
- const i = ee([o.long, o.lat])[0] > 0.8 * s ? -1 : 1;
220
+ e.filter((t) => !yt(t.lat) && !yt(t.long)).map((t) => {
221
+ const i = te([t.long, t.lat])[0] > 0.8 * s ? -1 : 1;
222
222
  return /* @__PURE__ */ a.jsxs(le.g, { className: "undp-map-dots", variants: {
223
223
  initial: {
224
224
  opacity: 0
225
225
  },
226
226
  whileInView: {
227
- opacity: Ne ? Ne.indexOf(o.label || "") !== -1 ? 1 : W : 1,
227
+ opacity: Me ? Me.indexOf(t.label || "") !== -1 ? 1 : z : 1,
228
228
  transition: {
229
229
  duration: b.duration
230
230
  }
@@ -235,24 +235,24 @@ function To(r) {
235
235
  duration: b.duration
236
236
  }
237
237
  }, onMouseEnter: (h) => {
238
- z(o), V(h.clientY), E(h.clientX), R?.(o);
238
+ P(t), _(h.clientY), E(h.clientX), G?.(t);
239
239
  }, onMouseMove: (h) => {
240
- z(o), V(h.clientY), E(h.clientX);
240
+ P(t), _(h.clientY), E(h.clientX);
241
241
  }, onMouseLeave: () => {
242
- z(void 0), E(void 0), V(void 0), R?.(void 0);
242
+ P(void 0), E(void 0), _(void 0), G?.(void 0);
243
243
  }, onClick: () => {
244
- (L || G) && (Ft(K, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
245
- }, transform: `translate(${ee([o.long, o.lat])[0]},${ee([o.long, o.lat])[1]})`, children: [
244
+ (V || U) && ($t(K, t) && Se ? (Q(void 0), V?.(void 0)) : (Q(t), V?.(t)));
245
+ }, transform: `translate(${te([t.long, t.lat])[0]},${te([t.long, t.lat])[1]})`, children: [
246
246
  /* @__PURE__ */ a.jsx(le.circle, { cx: 0, cy: 0, variants: {
247
247
  initial: {
248
248
  r: 0,
249
- fill: H,
250
- stroke: Ee || H
249
+ fill: X,
250
+ stroke: Be || X
251
251
  },
252
252
  whileInView: {
253
- r: k ? k(o.radius || 0) : v,
254
- fill: H,
255
- stroke: Ee || H,
253
+ r: k ? k(t.radius || 0) : v,
254
+ fill: X,
255
+ stroke: Be || X,
256
256
  transition: {
257
257
  duration: b.duration
258
258
  }
@@ -266,14 +266,14 @@ function To(r) {
266
266
  fillOpacity: 0.8,
267
267
  vectorEffect: "non-scaling-stroke"
268
268
  } }),
269
- I && o.label ? /* @__PURE__ */ a.jsx(le.text, { variants: {
269
+ I && t.label ? /* @__PURE__ */ a.jsx(le.text, { variants: {
270
270
  initial: {
271
271
  opacity: 0,
272
- x: i * (k ? k(o.radius || 0) : v)
272
+ x: i * (k ? k(t.radius || 0) : v)
273
273
  },
274
274
  whileInView: {
275
275
  opacity: 1,
276
- x: i * (k ? k(o.radius || 0) : v),
276
+ x: i * (k ? k(t.radius || 0) : v),
277
277
  transition: {
278
278
  duration: b.duration
279
279
  }
@@ -283,96 +283,96 @@ function To(r) {
283
283
  transition: {
284
284
  duration: b.duration
285
285
  }
286
- }, y: 0, className: Lt("text-sm", U?.graphObjectValues), style: {
286
+ }, y: 0, className: _t("text-sm", q?.graphObjectValues), style: {
287
287
  textAnchor: i === -1 ? "end" : "start",
288
- fill: Be || "#000",
288
+ fill: Ie || "#000",
289
289
  vectorEffect: "non-scaling-stroke",
290
290
  ...N?.graphObjectValues || {}
291
- }, dx: i * 4, dy: 5, children: o.label }) : null
292
- ] }, o.label || `${o.lat}-${o.long}`);
291
+ }, dx: i * 4, dy: 5, children: t.label }) : null
292
+ ] }, t.label || `${t.lat}-${t.long}`);
293
293
  })
294
294
  ] }),
295
- de.filter((o) => o.position === "after").map((o) => o.layer)
295
+ de.filter((t) => t.position === "after").map((t) => t.layer)
296
296
  ] }) }),
297
- De === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: Lt("absolute left-4 bottom-4 map-color-legend", U?.colorLegend), children: ue ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
297
+ Ne === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: _t("absolute left-4 bottom-4 map-color-legend", q?.colorLegend), children: he ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
298
298
  /* @__PURE__ */ a.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
299
- he(!1);
300
- }, children: /* @__PURE__ */ a.jsx(wo, {}) }),
299
+ fe(!1);
300
+ }, children: /* @__PURE__ */ a.jsx(bo, {}) }),
301
301
  /* @__PURE__ */ a.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
302
- width: ae ? void 0 : "340px"
302
+ width: re ? void 0 : "340px"
303
303
  }, children: [
304
304
  pe && pe !== "" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
305
305
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2", children: [
306
306
  /* @__PURE__ */ a.jsx("div", { className: "w-3 h-3 rounded-full", style: {
307
- backgroundColor: H
307
+ backgroundColor: X
308
308
  } }),
309
- /* @__PURE__ */ a.jsx(Pt, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
309
+ /* @__PURE__ */ a.jsx(zt, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
310
310
  display: "-webkit-box",
311
311
  WebkitLineClamp: "1",
312
312
  WebkitBoxOrient: "vertical"
313
313
  }, children: pe })
314
314
  ] }),
315
- /* @__PURE__ */ a.jsx(At, { size: "xl" }),
316
- /* @__PURE__ */ a.jsx(Xt, {}),
317
- /* @__PURE__ */ a.jsx(At, { size: "xl" })
315
+ /* @__PURE__ */ a.jsx(Tt, { size: "xl" }),
316
+ /* @__PURE__ */ a.jsx(Ht, {}),
317
+ /* @__PURE__ */ a.jsx(Tt, { size: "xl" })
318
318
  ] }) : null,
319
- y && y !== "" ? /* @__PURE__ */ a.jsx(Pt, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
319
+ y && y !== "" ? /* @__PURE__ */ a.jsx(zt, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
320
320
  display: "-webkit-box",
321
321
  WebkitLineClamp: "1",
322
322
  WebkitBoxOrient: "vertical"
323
323
  }, children: y }) : null,
324
- ae ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: l.map((o, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
325
- O(t[i % t.length]);
324
+ re ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: l.map((t, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
325
+ O(o[i % o.length]);
326
326
  }, onMouseLeave: () => {
327
327
  O(void 0);
328
328
  }, children: [
329
329
  /* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
330
- backgroundColor: t[i % t.length]
330
+ backgroundColor: o[i % o.length]
331
331
  } }),
332
- /* @__PURE__ */ a.jsx(Pt, { size: "sm", marginBottom: "none", leading: "none", children: o })
332
+ /* @__PURE__ */ a.jsx(zt, { size: "sm", marginBottom: "none", leading: "none", children: t })
333
333
  ] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
334
- l.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
335
- O(t[i]);
334
+ l.map((t, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
335
+ O(o[i]);
336
336
  }, onMouseLeave: () => {
337
337
  O(void 0);
338
338
  }, className: "cursor-pointer", children: [
339
- /* @__PURE__ */ a.jsx("rect", { x: i * 320 / t.length + 1, y: 1, width: 320 / t.length - 2, height: 8, className: M === t[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
340
- fill: t[i],
341
- ...M === t[i] ? {} : {
342
- stroke: t[i]
339
+ /* @__PURE__ */ a.jsx("rect", { x: i * 320 / o.length + 1, y: 1, width: 320 / o.length - 2, height: 8, className: M === o[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
340
+ fill: o[i],
341
+ ...M === o[i] ? {} : {
342
+ stroke: o[i]
343
343
  }
344
344
  } }),
345
- /* @__PURE__ */ a.jsx("text", { x: (i + 1) * 320 / t.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
345
+ /* @__PURE__ */ a.jsx("text", { x: (i + 1) * 320 / o.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
346
346
  textAnchor: "middle"
347
- }, children: Oo(o, void 0, void 0, void 0, void 0, Je) })
347
+ }, children: So(t, void 0, ue?.precision ?? 2, void 0, void 0, ue?.locale || "en", ue?.padZeros || !1) })
348
348
  ] }, i)),
349
349
  /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
350
- O(t[l.length]);
350
+ O(o[l.length]);
351
351
  }, onMouseLeave: () => {
352
352
  O(void 0);
353
- }, x: l.length * 320 / t.length + 1, y: 1, width: 320 / t.length - 2, height: 8, className: `cursor-pointer ${M === t[l.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
354
- fill: t[l.length],
355
- ...M === t[l.length] ? {} : {
356
- stroke: t[l.length]
353
+ }, x: l.length * 320 / o.length + 1, y: 1, width: 320 / o.length - 2, height: 8, className: `cursor-pointer ${M === o[l.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
354
+ fill: o[l.length],
355
+ ...M === o[l.length] ? {} : {
356
+ stroke: o[l.length]
357
357
  }
358
358
  } }) })
359
359
  ] }) })
360
360
  ] })
361
361
  ] }) : /* @__PURE__ */ a.jsx("button", { type: "button", className: "p-1 border-0 rounded-[2px] text-primary-gray-700 bg-primary-gray-300 dark:bg-primary-gray-500 map-legend-button", onClick: () => {
362
- he(!0);
363
- }, children: /* @__PURE__ */ a.jsx(jo, {}) }) }),
364
- q === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
365
- /* @__PURE__ */ a.jsx("button", { onClick: () => ye("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
366
- /* @__PURE__ */ a.jsx("button", { onClick: () => ye("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
362
+ fe(!0);
363
+ }, children: /* @__PURE__ */ a.jsx(wo, {}) }) }),
364
+ H === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
365
+ /* @__PURE__ */ a.jsx("button", { onClick: () => ve("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
366
+ /* @__PURE__ */ a.jsx("button", { onClick: () => ve("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
367
367
  ] })
368
368
  ] }),
369
- G && K !== void 0 ? /* @__PURE__ */ a.jsx(Do, { body: G, data: K, setData: Z, className: U?.modal }) : null,
370
- ge && C && Ie && ze ? /* @__PURE__ */ a.jsx(bo, { data: ge, body: C, xPos: Ie, yPos: ze, backgroundStyle: N?.tooltip, className: U?.tooltip }) : null
369
+ U && K !== void 0 ? /* @__PURE__ */ a.jsx(Co, { body: U, data: K, setData: Q, className: q?.modal }) : null,
370
+ ye && C && ze && Pe ? /* @__PURE__ */ a.jsx(xo, { data: ye, body: C, xPos: ze, yPos: Pe, backgroundStyle: N?.tooltip, className: q?.tooltip }) : null
371
371
  ] });
372
372
  }
373
- function Oa(r) {
374
- const e = to.c(141), {
375
- data: t,
373
+ function Sa(r) {
374
+ const e = eo.c(141), {
375
+ data: o,
376
376
  mapData: w,
377
377
  graphTitle: y,
378
378
  colors: l,
@@ -385,209 +385,209 @@ function Oa(r) {
385
385
  colorDomain: I,
386
386
  choroplethScaleType: se,
387
387
  radius: ce,
388
- scale: Ce,
389
- centerPoint: R,
390
- padding: De,
391
- mapBorderWidth: He,
392
- mapNoDataColor: Xe,
393
- backgroundColor: Ne,
394
- showLabels: L,
395
- mapBorderColor: Me,
396
- tooltip: G,
388
+ scale: De,
389
+ centerPoint: G,
390
+ padding: Ne,
391
+ mapBorderWidth: Xe,
392
+ mapNoDataColor: Ye,
393
+ backgroundColor: Me,
394
+ showLabels: V,
395
+ mapBorderColor: Se,
396
+ tooltip: U,
397
397
  relativeHeight: N,
398
- onSeriesMouseOver: U,
399
- isWorldMap: oe,
400
- showColorScale: q,
398
+ onSeriesMouseOver: q,
399
+ isWorldMap: ae,
400
+ showColorScale: H,
401
401
  zoomScaleExtend: b,
402
- zoomTranslateExtend: W,
402
+ zoomTranslateExtend: z,
403
403
  graphID: de,
404
- highlightedDataPoints: Se,
405
- onSeriesMouseClick: ae,
406
- graphDownload: H,
407
- dataDownload: Oe,
408
- showAntarctica: re,
404
+ highlightedDataPoints: Oe,
405
+ onSeriesMouseClick: re,
406
+ graphDownload: X,
407
+ dataDownload: Ee,
408
+ showAntarctica: $,
409
409
  language: me,
410
410
  minHeight: pe,
411
- theme: Ee,
412
- ariaLabel: Be,
413
- resetSelectionOnDoubleClick: X,
414
- detailsOnClick: Y,
411
+ theme: Be,
412
+ ariaLabel: Ie,
413
+ resetSelectionOnDoubleClick: Y,
414
+ detailsOnClick: Z,
415
415
  styles: p,
416
416
  classNames: g,
417
- mapProjection: Ye,
418
- zoomInteraction: Je,
417
+ mapProjection: Ze,
418
+ zoomInteraction: ue,
419
419
  animate: J,
420
- dimmedOpacity: Ke,
420
+ dimmedOpacity: Je,
421
421
  customLayers: M,
422
422
  maxRadiusValue: O,
423
- timeline: ue,
424
- collapseColorScaleByDefault: he,
425
- dotColor: fe,
423
+ timeline: he,
424
+ collapseColorScaleByDefault: fe,
425
+ dotColor: ge,
426
426
  highlightedIds: K,
427
- mapProperty: Z,
428
- dotLegendTitle: ge,
429
- dotBorderColor: z,
430
- labelColor: Ie,
427
+ mapProperty: Q,
428
+ dotLegendTitle: ye,
429
+ dotBorderColor: P,
430
+ labelColor: ze,
431
431
  projectionRotate: E,
432
- rewindCoordinatesInMapData: ze,
433
- locale: V,
432
+ rewindCoordinatesInMapData: Pe,
433
+ numberDisplayOptions: _,
434
434
  mapOverlay: f
435
- } = r, j = w === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : w, ie = D === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : D, k = se === void 0 ? "threshold" : se, Pe = ce === void 0 ? 5 : ce, Q = Ce === void 0 ? 0.95 : Ce, $ = He === void 0 ? 0.5 : He, _e = Xe === void 0 ? ke.light.graphNoData : Xe, Le = Ne === void 0 ? !1 : Ne, We = L === void 0 ? !1 : L, Ve = Me === void 0 ? ke.light.grays["gray-500"] : Me, P = oe === void 0 ? !0 : oe, ee = q === void 0 ? !0 : q;
436
- let te;
437
- e[0] !== b ? (te = b === void 0 ? [0.8, 6] : b, e[0] = b, e[1] = te) : te = e[1];
438
- const ye = te, o = H === void 0 ? !1 : H, i = Oe === void 0 ? !1 : Oe, h = re === void 0 ? !1 : re, _ = me === void 0 ? "en" : me, n = pe === void 0 ? 0 : pe, F = Ee === void 0 ? "light" : Ee, $e = X === void 0 ? !0 : X, Fe = Ye === void 0 ? "naturalEarth" : Ye, vt = Je === void 0 ? "button" : Je, Ze = J === void 0 ? !1 : J, xt = Ke === void 0 ? 0.3 : Ke;
435
+ } = r, j = w === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : w, ie = D === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : D, k = se === void 0 ? "threshold" : se, _e = ce === void 0 ? 5 : ce, ee = De === void 0 ? 0.95 : De, F = Xe === void 0 ? 0.5 : Xe, Le = Ye === void 0 ? Ce.light.graphNoData : Ye, We = Me === void 0 ? !1 : Me, Ve = V === void 0 ? !1 : V, $e = Se === void 0 ? Ce.light.grays["gray-500"] : Se, L = ae === void 0 ? !0 : ae, te = H === void 0 ? !0 : H;
436
+ let oe;
437
+ e[0] !== b ? (oe = b === void 0 ? [0.8, 6] : b, e[0] = b, e[1] = oe) : oe = e[1];
438
+ const ve = oe, t = X === void 0 ? !1 : X, i = Ee === void 0 ? !1 : Ee, h = $ === void 0 ? !1 : $, W = me === void 0 ? "en" : me, n = pe === void 0 ? 0 : pe, T = Be === void 0 ? "light" : Be, Fe = Y === void 0 ? !0 : Y, Te = Ze === void 0 ? "naturalEarth" : Ze, vt = ue === void 0 ? "button" : ue, Ke = J === void 0 ? !1 : J, xt = Je === void 0 ? 0.3 : Je;
439
439
  let Qe;
440
440
  e[2] !== M ? (Qe = M === void 0 ? [] : M, e[2] = M, e[3] = Qe) : Qe = e[3];
441
441
  const bt = Qe;
442
442
  let et;
443
- e[4] !== ue ? (et = ue === void 0 ? {
443
+ e[4] !== he ? (et = he === void 0 ? {
444
444
  enabled: !1,
445
445
  autoplay: !1,
446
446
  showOnlyActiveDate: !0
447
- } : ue, e[4] = ue, e[5] = et) : et = e[5];
448
- const c = et, wt = fe === void 0 ? ke.primaryColors["blue-600"] : fe, jt = Z === void 0 ? "ISO3" : Z, kt = Ie === void 0 ? ke.primaryColors["blue-600"] : Ie;
447
+ } : he, e[4] = he, e[5] = et) : et = e[5];
448
+ const c = et, wt = ge === void 0 ? Ce.primaryColors["blue-600"] : ge, jt = Q === void 0 ? "ISO3" : Q, kt = ze === void 0 ? Ce.primaryColors["blue-600"] : ze;
449
449
  let tt;
450
450
  e[6] !== E ? (tt = E === void 0 ? [0, 0] : E, e[6] = E, e[7] = tt) : tt = e[7];
451
- const Ct = tt, Dt = ze === void 0 ? !0 : ze, Nt = V === void 0 ? "en" : V, [ne, Yt] = S(0), [Te, Jt] = S(0), [T, Kt] = S(c.autoplay);
452
- let Ae;
453
- if (e[8] !== t || e[9] !== c.dateFormat) {
451
+ const Ct = tt, Dt = Pe === void 0 ? !0 : Pe, [ne, Xt] = S(0), [Ae, Yt] = S(0), [A, Zt] = S(c.autoplay);
452
+ let Re;
453
+ if (e[8] !== o || e[9] !== c.dateFormat) {
454
454
  let d;
455
- e[11] !== c.dateFormat ? (d = (B) => io(`${B.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = c.dateFormat, e[12] = d) : d = e[12], Ae = [...new Set(t.filter(Zo).map(d))], Ae.sort(Ko), e[8] = t, e[9] = c.dateFormat, e[10] = Ae;
455
+ e[11] !== c.dateFormat ? (d = (B) => ro(`${B.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = c.dateFormat, e[12] = d) : d = e[12], Re = [...new Set(o.filter(Jo).map(d))], Re.sort(Zo), e[8] = o, e[9] = c.dateFormat, e[10] = Re;
456
456
  } else
457
- Ae = e[10];
458
- const m = Ae, [A, Mt] = S(c.autoplay ? 0 : m.length - 1), [ve, Zt] = S(void 0), [St, Qt] = S(void 0), Ot = qe(null), Wt = qe(null);
457
+ Re = e[10];
458
+ const m = Re, [R, Nt] = S(c.autoplay ? 0 : m.length - 1), [xe, Jt] = S(void 0), [Mt, Kt] = S(void 0), St = He(null), Lt = He(null);
459
459
  let ot;
460
- e[13] !== k || e[14] !== I || e[15] !== l?.length || e[16] !== t ? (ot = I || (k === "categorical" ? Lo(t, "x") : Wo(t.map(Jo), l?.length || 4)), e[13] = k, e[14] = I, e[15] = l?.length, e[16] = t, e[17] = ot) : ot = e[17];
461
- const Re = ot;
460
+ e[13] !== k || e[14] !== I || e[15] !== l?.length || e[16] !== o ? (ot = I || (k === "categorical" ? _o(o, "x") : Lo(o.map(Yo), l?.length || 4)), e[13] = k, e[14] = I, e[15] = l?.length, e[16] = o, e[17] = ot) : ot = e[17];
461
+ const Ge = ot;
462
462
  let at, rt;
463
463
  e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (at = () => {
464
464
  const d = new ResizeObserver((B) => {
465
- Yt(B[0].target.clientWidth || 620), Jt(B[0].target.clientHeight || 480);
465
+ Xt(B[0].target.clientWidth || 620), Yt(B[0].target.clientHeight || 480);
466
466
  });
467
- return Ot.current && d.observe(Ot.current), () => d.disconnect();
468
- }, rt = [], e[18] = at, e[19] = rt) : (at = e[18], rt = e[19]), Ue(at, rt);
467
+ return St.current && d.observe(St.current), () => d.disconnect();
468
+ }, rt = [], e[18] = at, e[19] = rt) : (at = e[18], rt = e[19]), qe(at, rt);
469
469
  let it;
470
470
  e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (it = (d) => {
471
- Zt(d);
471
+ Jt(d);
472
472
  }, e[20] = it) : it = e[20];
473
- const nt = $t(it);
473
+ const nt = Vt(it);
474
474
  let lt;
475
475
  e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lt = (d) => {
476
- Qt(d);
476
+ Kt(d);
477
477
  }, e[21] = lt) : lt = e[21];
478
- const Ge = $t(lt);
478
+ const Ue = Vt(lt);
479
479
  let st;
480
480
  e[22] !== j || e[23] !== nt ? (st = () => {
481
- typeof j == "string" ? Rt(j).then((B) => {
481
+ typeof j == "string" ? At(j).then((B) => {
482
482
  nt(B);
483
483
  }) : nt(j);
484
484
  }, e[22] = j, e[23] = nt, e[24] = st) : st = e[24];
485
485
  let ct;
486
- e[25] !== j ? (ct = [j], e[25] = j, e[26] = ct) : ct = e[26], Ue(st, ct);
486
+ e[25] !== j ? (ct = [j], e[25] = j, e[26] = ct) : ct = e[26], qe(st, ct);
487
487
  let dt;
488
- e[27] !== f?.mapData || e[28] !== Ge ? (dt = () => {
489
- f?.mapData || Ge(void 0), typeof f?.mapData == "string" ? Rt(f?.mapData).then((B) => {
490
- Ge(B);
491
- }) : Ge(f?.mapData);
492
- }, e[27] = f?.mapData, e[28] = Ge, e[29] = dt) : dt = e[29];
493
- const Et = f?.mapData;
488
+ e[27] !== f?.mapData || e[28] !== Ue ? (dt = () => {
489
+ f?.mapData || Ue(void 0), typeof f?.mapData == "string" ? At(f?.mapData).then((B) => {
490
+ Ue(B);
491
+ }) : Ue(f?.mapData);
492
+ }, e[27] = f?.mapData, e[28] = Ue, e[29] = dt) : dt = e[29];
493
+ const Ot = f?.mapData;
494
494
  let mt;
495
- e[30] !== Et ? (mt = [Et], e[30] = Et, e[31] = mt) : mt = e[31], Ue(dt, mt);
495
+ e[30] !== Ot ? (mt = [Ot], e[30] = Ot, e[31] = mt) : mt = e[31], qe(dt, mt);
496
496
  let pt, ut;
497
- e[32] !== T || e[33] !== c.speed || e[34] !== m ? (pt = () => {
497
+ e[32] !== A || e[33] !== c.speed || e[34] !== m ? (pt = () => {
498
498
  const d = setInterval(() => {
499
- Mt((B) => B < m.length - 1 ? B + 1 : 0);
499
+ Nt((B) => B < m.length - 1 ? B + 1 : 0);
500
500
  }, (c.speed || 2) * 1e3);
501
- return T || clearInterval(d), () => clearInterval(d);
502
- }, ut = [m, T, c.speed], e[32] = T, e[33] = c.speed, e[34] = m, e[35] = pt, e[36] = ut) : (pt = e[35], ut = e[36]), Ue(pt, ut);
503
- const Bt = c.dateFormat || "yyyy";
501
+ return A || clearInterval(d), () => clearInterval(d);
502
+ }, ut = [m, A, c.speed], e[32] = A, e[33] = c.speed, e[34] = m, e[35] = pt, e[36] = ut) : (pt = e[35], ut = e[36]), qe(pt, ut);
503
+ const Et = c.dateFormat || "yyyy";
504
504
  let ht;
505
- e[37] !== A || e[38] !== Bt || e[39] !== c.showOnlyActiveDate || e[40] !== m ? (ht = no(m, A, c.showOnlyActiveDate, Bt), e[37] = A, e[38] = Bt, e[39] = c.showOnlyActiveDate, e[40] = m, e[41] = ht) : ht = e[41];
506
- const ft = ht, It = g?.graphContainer, zt = p?.graphContainer;
507
- let xe;
508
- e[42] !== g?.description || e[43] !== g?.title || e[44] !== t || e[45] !== i || e[46] !== x || e[47] !== o || e[48] !== y || e[49] !== p?.description || e[50] !== p?.title || e[51] !== u ? (xe = y || x || o || i ? /* @__PURE__ */ a.jsx(zo, { styles: {
505
+ e[37] !== R || e[38] !== Et || e[39] !== c.showOnlyActiveDate || e[40] !== m ? (ht = io(m, R, c.showOnlyActiveDate, Et), e[37] = R, e[38] = Et, e[39] = c.showOnlyActiveDate, e[40] = m, e[41] = ht) : ht = e[41];
506
+ const ft = ht, Bt = g?.graphContainer, It = p?.graphContainer;
507
+ let be;
508
+ e[42] !== g?.description || e[43] !== g?.title || e[44] !== o || e[45] !== i || e[46] !== x || e[47] !== t || e[48] !== y || e[49] !== p?.description || e[50] !== p?.title || e[51] !== u ? (be = y || x || t || i ? /* @__PURE__ */ a.jsx(Io, { styles: {
509
509
  title: p?.title,
510
510
  description: p?.description
511
511
  }, classNames: {
512
512
  title: g?.title,
513
513
  description: g?.description
514
- }, graphTitle: y, graphDescription: x, width: u, graphDownload: o ? Wt : void 0, dataDownload: i ? t.map(Yo).filter(Xo).length > 0 ? t.map(Ho).filter(qo) : t.filter(Uo) : null }) : null, e[42] = g?.description, e[43] = g?.title, e[44] = t, e[45] = i, e[46] = x, e[47] = o, e[48] = y, e[49] = p?.description, e[50] = p?.title, e[51] = u, e[52] = xe) : xe = e[52];
515
- let be;
516
- e[53] !== A || e[54] !== ft || e[55] !== T || e[56] !== c.enabled || e[57] !== m ? (be = c.enabled && m.length > 0 && ft ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
514
+ }, graphTitle: y, graphDescription: x, width: u, graphDownload: t ? Lt : void 0, dataDownload: i ? o.map(Xo).filter(Ho).length > 0 ? o.map(qo).filter(Uo) : o.filter(Go) : null }) : null, e[42] = g?.description, e[43] = g?.title, e[44] = o, e[45] = i, e[46] = x, e[47] = t, e[48] = y, e[49] = p?.description, e[50] = p?.title, e[51] = u, e[52] = be) : be = e[52];
515
+ let we;
516
+ e[53] !== R || e[54] !== ft || e[55] !== A || e[56] !== c.enabled || e[57] !== m ? (we = c.enabled && m.length > 0 && ft ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
517
517
  /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
518
- Kt(!T);
519
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": T ? "Click to pause animation" : "Click to play animation", children: T ? /* @__PURE__ */ a.jsx(ko, {}) : /* @__PURE__ */ a.jsx(Co, {}) }),
520
- /* @__PURE__ */ a.jsx(lo, { min: m[0], max: m[m.length - 1], marks: ft, step: null, defaultValue: m[m.length - 1], value: m[A], onChangeComplete: (d) => {
521
- Mt(m.indexOf(d));
518
+ Zt(!A);
519
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ a.jsx(jo, {}) : /* @__PURE__ */ a.jsx(ko, {}) }),
520
+ /* @__PURE__ */ a.jsx(no, { min: m[0], max: m[m.length - 1], marks: ft, step: null, defaultValue: m[m.length - 1], value: m[R], onChangeComplete: (d) => {
521
+ Nt(m.indexOf(d));
522
522
  }, onChange: (d) => {
523
- Mt(m.indexOf(d));
523
+ Nt(m.indexOf(d));
524
524
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
525
- ] }) : null, e[53] = A, e[54] = ft, e[55] = T, e[56] = c.enabled, e[57] = m, e[58] = be) : be = e[58];
526
- let we;
527
- e[59] !== Ze || e[60] !== R || e[61] !== k || e[62] !== g || e[63] !== he || e[64] !== l || e[65] !== bt || e[66] !== t || e[67] !== Y || e[68] !== xt || e[69] !== Re || e[70] !== z || e[71] !== wt || e[72] !== ge || e[73] !== s || e[74] !== Se || e[75] !== K || e[76] !== A || e[77] !== P || e[78] !== kt || e[79] !== Nt || e[80] !== Ve || e[81] !== $ || e[82] !== C || e[83] !== _e || e[84] !== f?.mapBorderColor || e[85] !== f?.mapBorderWidth || e[86] !== Fe || e[87] !== jt || e[88] !== ve || e[89] !== O || e[90] !== n || e[91] !== ae || e[92] !== U || e[93] !== St || e[94] !== Ct || e[95] !== Pe || e[96] !== N || e[97] !== $e || e[98] !== Dt || e[99] !== Q || e[100] !== h || e[101] !== ee || e[102] !== We || e[103] !== p || e[104] !== Te || e[105] !== ne || e[106] !== F || e[107] !== c.dateFormat || e[108] !== c.enabled || e[109] !== G || e[110] !== m || e[111] !== u || e[112] !== vt || e[113] !== ye || e[114] !== W ? (we = /* @__PURE__ */ a.jsx(Po, { ref: Ot, children: ne && Te && ve ? /* @__PURE__ */ a.jsx(To, { dotColor: wt, data: t.filter((d) => c.enabled ? `${d.date}` === ro(new Date(m[A]), c.dateFormat || "yyyy") : d), mapData: h ? ve : {
528
- ...ve,
529
- features: ve.features.filter(Go)
530
- }, overlayMapData: St, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, colorDomain: Re, width: ne, height: Te, scale: Q, centerPoint: R, colors: l || (k === "categorical" ? ke[F].sequentialColors[`neutralColorsx0${Re.length}`] : ke[F].sequentialColors[`neutralColorsx0${Re.length + 1}`]), mapColorLegendTitle: C, radius: Pe, categorical: k === "categorical", mapBorderWidth: $, mapNoDataColor: _e, mapBorderColor: Ve, tooltip: G, onSeriesMouseOver: U, showLabels: We, isWorldMap: P, showColorScale: ee, zoomScaleExtend: ye, zoomTranslateExtend: W, onSeriesMouseClick: ae, highlightedDataPoints: Se, resetSelectionOnDoubleClick: $e, styles: p, classNames: g, zoomInteraction: vt, detailsOnClick: Y, mapProjection: Fe || (P ? "naturalEarth" : "mercator"), animate: Ze === !0 ? {
525
+ ] }) : null, e[53] = R, e[54] = ft, e[55] = A, e[56] = c.enabled, e[57] = m, e[58] = we) : we = e[58];
526
+ let je;
527
+ e[59] !== Ke || e[60] !== G || e[61] !== k || e[62] !== g || e[63] !== fe || e[64] !== l || e[65] !== bt || e[66] !== o || e[67] !== Z || e[68] !== xt || e[69] !== Ge || e[70] !== P || e[71] !== wt || e[72] !== ye || e[73] !== s || e[74] !== Oe || e[75] !== K || e[76] !== R || e[77] !== L || e[78] !== kt || e[79] !== $e || e[80] !== F || e[81] !== C || e[82] !== Le || e[83] !== f?.mapBorderColor || e[84] !== f?.mapBorderWidth || e[85] !== Te || e[86] !== jt || e[87] !== xe || e[88] !== O || e[89] !== n || e[90] !== _ || e[91] !== re || e[92] !== q || e[93] !== Mt || e[94] !== Ct || e[95] !== _e || e[96] !== N || e[97] !== Fe || e[98] !== Dt || e[99] !== ee || e[100] !== h || e[101] !== te || e[102] !== Ve || e[103] !== p || e[104] !== Ae || e[105] !== ne || e[106] !== T || e[107] !== c.dateFormat || e[108] !== c.enabled || e[109] !== U || e[110] !== m || e[111] !== u || e[112] !== vt || e[113] !== ve || e[114] !== z ? (je = /* @__PURE__ */ a.jsx(zo, { ref: St, children: ne && Ae && xe ? /* @__PURE__ */ a.jsx(Fo, { dotColor: wt, data: o.filter((d) => c.enabled ? `${d.date}` === ao(new Date(m[R]), c.dateFormat || "yyyy") : d), mapData: h ? xe : {
528
+ ...xe,
529
+ features: xe.features.filter(Ro)
530
+ }, overlayMapData: Mt, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, colorDomain: Ge, width: ne, height: Ae, scale: ee, centerPoint: G, colors: l || (k === "categorical" ? Ce[T].sequentialColors[`neutralColorsx0${Ge.length}`] : Ce[T].sequentialColors[`neutralColorsx0${Ge.length + 1}`]), mapColorLegendTitle: C, radius: _e, categorical: k === "categorical", mapBorderWidth: F, mapNoDataColor: Le, mapBorderColor: $e, tooltip: U, onSeriesMouseOver: q, showLabels: Ve, isWorldMap: L, showColorScale: te, zoomScaleExtend: ve, zoomTranslateExtend: z, onSeriesMouseClick: re, highlightedDataPoints: Oe, resetSelectionOnDoubleClick: Fe, styles: p, classNames: g, zoomInteraction: vt, detailsOnClick: Z, mapProjection: Te || (L ? "naturalEarth" : "mercator"), animate: Ke === !0 ? {
531
531
  duration: 0.5,
532
532
  once: !0,
533
533
  amount: 0.5
534
- } : Ze || {
534
+ } : Ke || {
535
535
  duration: 0,
536
536
  once: !0,
537
537
  amount: 0
538
- }, dimmedOpacity: xt, customLayers: bt, maxRadiusValue: yt(O) ? Math.max(...t.map(Ro).filter(Ao)) : O, collapseColorScaleByDefault: he, highlightedIds: K, mapProperty: jt, dotLegendTitle: ge, dotBorderColor: z, labelColor: kt, projectionRotate: Ct, rewindCoordinatesInMapData: Dt, locale: Nt }) : /* @__PURE__ */ a.jsx("div", { style: {
539
- height: `${Math.max(n, s || (N ? n ? (u || ne) * N > n ? (u || ne) * N : n : (u || ne) * N : Te))}px`
540
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(so, { "aria-label": "Loading graph" }) }) }), e[59] = Ze, e[60] = R, e[61] = k, e[62] = g, e[63] = he, e[64] = l, e[65] = bt, e[66] = t, e[67] = Y, e[68] = xt, e[69] = Re, e[70] = z, e[71] = wt, e[72] = ge, e[73] = s, e[74] = Se, e[75] = K, e[76] = A, e[77] = P, e[78] = kt, e[79] = Nt, e[80] = Ve, e[81] = $, e[82] = C, e[83] = _e, e[84] = f?.mapBorderColor, e[85] = f?.mapBorderWidth, e[86] = Fe, e[87] = jt, e[88] = ve, e[89] = O, e[90] = n, e[91] = ae, e[92] = U, e[93] = St, e[94] = Ct, e[95] = Pe, e[96] = N, e[97] = $e, e[98] = Dt, e[99] = Q, e[100] = h, e[101] = ee, e[102] = We, e[103] = p, e[104] = Te, e[105] = ne, e[106] = F, e[107] = c.dateFormat, e[108] = c.enabled, e[109] = G, e[110] = m, e[111] = u, e[112] = vt, e[113] = ye, e[114] = W, e[115] = we) : we = e[115];
541
- let je;
542
- e[116] !== g?.footnote || e[117] !== g?.source || e[118] !== ie || e[119] !== v || e[120] !== p?.footnote || e[121] !== p?.source || e[122] !== u ? (je = v || ie ? /* @__PURE__ */ a.jsx(Io, { styles: {
538
+ }, dimmedOpacity: xt, customLayers: bt, maxRadiusValue: yt(O) ? Math.max(...o.map(Ao).filter(To)) : O, collapseColorScaleByDefault: fe, highlightedIds: K, mapProperty: jt, dotLegendTitle: ye, dotBorderColor: P, labelColor: kt, projectionRotate: Ct, rewindCoordinatesInMapData: Dt, numberDisplayOptions: _ }) : /* @__PURE__ */ a.jsx("div", { style: {
539
+ height: `${Math.max(n, s || (N ? n ? (u || ne) * N > n ? (u || ne) * N : n : (u || ne) * N : Ae))}px`
540
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(lo, { "aria-label": "Loading graph" }) }) }), e[59] = Ke, e[60] = G, e[61] = k, e[62] = g, e[63] = fe, e[64] = l, e[65] = bt, e[66] = o, e[67] = Z, e[68] = xt, e[69] = Ge, e[70] = P, e[71] = wt, e[72] = ye, e[73] = s, e[74] = Oe, e[75] = K, e[76] = R, e[77] = L, e[78] = kt, e[79] = $e, e[80] = F, e[81] = C, e[82] = Le, e[83] = f?.mapBorderColor, e[84] = f?.mapBorderWidth, e[85] = Te, e[86] = jt, e[87] = xe, e[88] = O, e[89] = n, e[90] = _, e[91] = re, e[92] = q, e[93] = Mt, e[94] = Ct, e[95] = _e, e[96] = N, e[97] = Fe, e[98] = Dt, e[99] = ee, e[100] = h, e[101] = te, e[102] = Ve, e[103] = p, e[104] = Ae, e[105] = ne, e[106] = T, e[107] = c.dateFormat, e[108] = c.enabled, e[109] = U, e[110] = m, e[111] = u, e[112] = vt, e[113] = ve, e[114] = z, e[115] = je) : je = e[115];
541
+ let ke;
542
+ e[116] !== g?.footnote || e[117] !== g?.source || e[118] !== ie || e[119] !== v || e[120] !== p?.footnote || e[121] !== p?.source || e[122] !== u ? (ke = v || ie ? /* @__PURE__ */ a.jsx(Bo, { styles: {
543
543
  footnote: p?.footnote,
544
544
  source: p?.source
545
545
  }, classNames: {
546
546
  footnote: g?.footnote,
547
547
  source: g?.source
548
- }, sources: v, footNote: ie, width: u }) : null, e[116] = g?.footnote, e[117] = g?.source, e[118] = ie, e[119] = v, e[120] = p?.footnote, e[121] = p?.source, e[122] = u, e[123] = je) : je = e[123];
548
+ }, sources: v, footNote: ie, width: u }) : null, e[116] = g?.footnote, e[117] = g?.source, e[118] = ie, e[119] = v, e[120] = p?.footnote, e[121] = p?.source, e[122] = u, e[123] = ke) : ke = e[123];
549
549
  let gt;
550
- return e[124] !== Be || e[125] !== Le || e[126] !== de || e[127] !== s || e[128] !== _ || e[129] !== n || e[130] !== De || e[131] !== N || e[132] !== It || e[133] !== zt || e[134] !== xe || e[135] !== be || e[136] !== we || e[137] !== je || e[138] !== F || e[139] !== u ? (gt = /* @__PURE__ */ a.jsxs(_o, { className: It, style: zt, id: de, ref: Wt, "aria-label": Be, backgroundColor: Le, theme: F, language: _, minHeight: n, width: u, height: s, relativeHeight: N, padding: De, children: [
551
- xe,
550
+ return e[124] !== Ie || e[125] !== We || e[126] !== de || e[127] !== s || e[128] !== W || e[129] !== n || e[130] !== Ne || e[131] !== N || e[132] !== Bt || e[133] !== It || e[134] !== be || e[135] !== we || e[136] !== je || e[137] !== ke || e[138] !== T || e[139] !== u ? (gt = /* @__PURE__ */ a.jsxs(Po, { className: Bt, style: It, id: de, ref: Lt, "aria-label": Ie, backgroundColor: We, theme: T, language: W, minHeight: n, width: u, height: s, relativeHeight: N, padding: Ne, children: [
552
551
  be,
553
552
  we,
554
- je
555
- ] }), e[124] = Be, e[125] = Le, e[126] = de, e[127] = s, e[128] = _, e[129] = n, e[130] = De, e[131] = N, e[132] = It, e[133] = zt, e[134] = xe, e[135] = be, e[136] = we, e[137] = je, e[138] = F, e[139] = u, e[140] = gt) : gt = e[140], gt;
553
+ je,
554
+ ke
555
+ ] }), e[124] = Ie, e[125] = We, e[126] = de, e[127] = s, e[128] = W, e[129] = n, e[130] = Ne, e[131] = N, e[132] = Bt, e[133] = It, e[134] = be, e[135] = we, e[136] = je, e[137] = ke, e[138] = T, e[139] = u, e[140] = gt) : gt = e[140], gt;
556
556
  }
557
- function Ao(r) {
557
+ function To(r) {
558
558
  return r != null;
559
559
  }
560
- function Ro(r) {
560
+ function Ao(r) {
561
561
  return r.radius;
562
562
  }
563
- function Go(r) {
563
+ function Ro(r) {
564
564
  return r.properties?.NAME !== "Antarctica";
565
565
  }
566
- function Uo(r) {
566
+ function Go(r) {
567
567
  return r !== void 0;
568
568
  }
569
- function qo(r) {
569
+ function Uo(r) {
570
570
  return r !== void 0;
571
571
  }
572
- function Ho(r) {
572
+ function qo(r) {
573
573
  return r.data;
574
574
  }
575
- function Xo(r) {
575
+ function Ho(r) {
576
576
  return r !== void 0;
577
577
  }
578
- function Yo(r) {
578
+ function Xo(r) {
579
579
  return r.data;
580
580
  }
581
- function Jo(r) {
581
+ function Yo(r) {
582
582
  return r.x;
583
583
  }
584
- function Ko(r, e) {
584
+ function Zo(r, e) {
585
585
  return r - e;
586
586
  }
587
- function Zo(r) {
587
+ function Jo(r) {
588
588
  return r.date;
589
589
  }
590
590
  export {
591
- Oa as HybridMap
591
+ Sa as HybridMap
592
592
  };
593
593
  //# sourceMappingURL=HybridMap.js.map