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