@undp/data-viz 2.4.1 → 2.5.1

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