@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
@@ -1,161 +1,163 @@
1
- import { j as t, m as Pt, c as Wt } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useMemo as wt, useState as j, useRef as _e, useEffect as We, useEffectEvent as Ct } from "react";
3
- import { g as _t, N as At } from "./getSliderMarks-X-_goqH9.js";
4
- import { w as Ft } from "./Spinner-B2IIKg9r.js";
5
- import { f as Lt, p as Tt } from "./parse-Dv4of-PN.js";
1
+ import { j as t, c as Wt } from "./compiler-runtime-qHgugrLy.js";
2
+ import { useMemo as Nt, useState as w, useRef as Ae, useEffect as We, useEffectEvent as Mt } from "react";
3
+ import { SliderUI as At } from "@undp/design-system-react/SliderUI";
4
+ import { Spinner as _t } from "@undp/design-system-react/Spinner";
5
+ import { f as Lt, p as Ft } from "./parse-Dv4of-PN.js";
6
6
  import { i as $t } from "./index-Bwrro8-q.js";
7
- import { i as Nt, z as Ht, a as Gt, g as Ut, b as Vt, c as Rt, d as qt, e as Xt, f as Yt } from "./index-CKpKc9DR.js";
8
- import { _ as St } from "./Typography-BO0gQDIT.js";
9
- import { i as Zt } from "./index-DCsFBfJ_.js";
10
- import { n as Jt } from "./numberFormattingFunction-BUUV_luR.js";
11
- import { T as Kt } from "./Tooltip-3EYDVa3w.js";
12
- import { c as Qt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
- import { X as eo, E as to, P as oo, e as ao } from "./index-ApTBN0kp.js";
14
- import { D as ro } from "./DetailsModal-GqEbGHY2.js";
15
- import { ImageDownloadButton as no } from "./ImageDownloadButton.js";
16
- import { CsvDownloadButton as io } from "./CsvDownloadButton.js";
17
- import { o as so } from "./ordinal-CHaxGJ_l.js";
18
- import { t as lo } from "./threshold-DFfqcDMa.js";
19
- import { s as jt } from "./select-DKy99ogv.js";
20
- import { m as lt } from "./proxy-BsxtcZKa.js";
21
- import { u as co } from "./use-in-view-KOXq5Kmc.js";
22
- import { A as mo } from "./index-Cv_5q6Rb.js";
23
- import { GraphFooter as po } from "./GraphFooter.js";
24
- import { GraphHeader as uo } from "./GraphHeader.js";
25
- import { Colors as ct } from "./Colors.js";
26
- import { f as Mt } from "./fetchAndParseData-BAXhgTDM.js";
27
- import { g as ho } from "./getUniqValue-DsqSii6M.js";
28
- import { g as fo } from "./getJenks-DTCcQSDi.js";
29
- import { a as go, G as yo } from "./GraphContainer-B8ZqOzKI.js";
7
+ import { i as St, z as Tt, a as Ht, g as Ut, b as Gt, c as Vt, d as Rt, e as qt, f as Xt } from "./index-CKpKc9DR.js";
8
+ import { P as lt } from "@undp/design-system-react/Typography";
9
+ import { i as Yt } from "./index-DCsFBfJ_.js";
10
+ import { cn as Zt } from "@undp/design-system-react/cn";
11
+ import { n as kt } from "./numberFormattingFunction-BUUV_luR.js";
12
+ import { T as Jt } from "./Tooltip-DO56mY4b.js";
13
+ import { c as Kt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
14
+ import { X as Qt, E as eo, P as to, e as oo } from "./index-D_ls5oK8.js";
15
+ import { D as ao } from "./DetailsModal-k-Me_U_T.js";
16
+ import { ImageDownloadButton as ro } from "./ImageDownloadButton.js";
17
+ import { CsvDownloadButton as no } from "./CsvDownloadButton.js";
18
+ import { o as io } from "./ordinal-CHaxGJ_l.js";
19
+ import { t as so } from "./threshold-DFfqcDMa.js";
20
+ import { s as wt } from "./select-DKy99ogv.js";
21
+ import { m as ct } from "./proxy-D31SA_aE.js";
22
+ import { u as lo } from "./use-in-view-Co5SmzfT.js";
23
+ import { A as co } from "./index-CNUlPiEL.js";
24
+ import { GraphFooter as mo } from "./GraphFooter.js";
25
+ import { GraphHeader as po } from "./GraphHeader.js";
26
+ import { Colors as dt } from "./Colors.js";
27
+ import { b as Ot } from "./fetchAndParseData-CDjQZ1fL.js";
28
+ import { g as uo } from "./getUniqValue-DsqSii6M.js";
29
+ import { g as ho } from "./getJenks-DTCcQSDi.js";
30
+ import { g as fo } from "./getSliderMarks-DSxFGb1f.js";
31
+ import { a as go, G as yo } from "./GraphContainer-DcOM2CI6.js";
30
32
  function vo(m) {
31
33
  const {
32
34
  data: e,
33
- colorDomain: n,
34
- colors: i,
35
- mapData: L,
36
- colorLegendTitle: w,
37
- categorical: T,
35
+ colorDomain: a,
36
+ colors: r,
37
+ mapData: T,
38
+ colorLegendTitle: N,
39
+ categorical: E,
38
40
  height: v,
39
41
  width: u,
40
42
  scale: g,
41
- centerPoint: $,
43
+ centerPoint: H,
42
44
  tooltip: ee,
43
- mapBorderWidth: R,
45
+ mapBorderWidth: q,
44
46
  mapBorderColor: te,
45
47
  mapNoDataColor: be,
46
48
  onSeriesMouseOver: oe,
47
- showColorScale: De,
48
- zoomScaleExtend: Ae,
49
- zoomTranslateExtend: Fe,
49
+ showColorScale: je,
50
+ zoomScaleExtend: _e,
51
+ zoomTranslateExtend: Le,
50
52
  highlightedIds: b,
51
53
  onSeriesMouseClick: ae,
52
54
  mapProperty: y,
53
- resetSelectionOnDoubleClick: je,
54
- detailsOnClick: q,
55
- styles: Le,
55
+ resetSelectionOnDoubleClick: De,
56
+ detailsOnClick: X,
57
+ styles: Fe,
56
58
  classNames: re,
57
- mapProjection: O,
58
- zoomInteraction: E,
59
- animate: C,
60
- dimmedOpacity: B,
59
+ mapProjection: I,
60
+ zoomInteraction: z,
61
+ animate: M,
62
+ dimmedOpacity: P,
61
63
  customLayers: ne,
62
64
  collapseColorScaleByDefault: ke,
63
65
  zoomAndCenterByHighlightedIds: we,
64
- projectionRotate: H,
65
- rewindCoordinatesInMapData: X,
66
- overlayMapData: Y,
67
- overlayMapBorderColor: Te,
68
- overlayMapBorderWidth: $e,
69
- numberDisplayOptions: Z,
66
+ projectionRotate: U,
67
+ rewindCoordinatesInMapData: Y,
68
+ overlayMapData: Z,
69
+ overlayMapBorderColor: $e,
70
+ overlayMapBorderWidth: Te,
71
+ numberDisplayOptions: j,
70
72
  graphDownload: ie,
71
- dataDownload: I
72
- } = m, r = wt(() => X ? Nt(L, {
73
+ dataDownload: W
74
+ } = m, i = Nt(() => Y ? St(T, {
73
75
  reverse: !0
74
- }) : L, [L, X]), h = wt(() => !X || !Y ? Y : Nt(Y, {
76
+ }) : T, [T, Y]), h = Nt(() => !Y || !Z ? Z : St(Z, {
75
77
  reverse: !0
76
- }), [Y, X]), [N, z] = j(void 0), se = _e(null), [He, J] = j(ke === void 0 ? !(u < 680) : !ke), [G, K] = j(void 0), [P, le] = j(void 0), [Ce, f] = j(void 0), [ce, D] = j(void 0), S = _e(null), M = co(S, {
77
- once: C.once,
78
- amount: C.amount
79
- }), de = _e(null), Ne = T ? so().domain(n).range(i) : lo().domain(n).range(i);
78
+ }), [Z, Y]), [S, D] = w(void 0), se = Ae(null), [He, J] = w(ke === void 0 ? !(u < 680) : !ke), [G, K] = w(void 0), [A, le] = w(void 0), [Ce, f] = w(void 0), [ce, k] = w(void 0), O = Ae(null), B = lo(O, {
79
+ once: M.once,
80
+ amount: M.amount
81
+ }), de = Ae(null), Ne = E ? io().domain(a).range(r) : so().domain(a).range(r);
80
82
  We(() => {
81
- const o = jt(de.current), a = jt(S.current), p = (c) => {
82
- if (E === "noZoom") return !1;
83
- if (E === "button") return !c.type.includes("wheel");
84
- const Ee = c.type === "wheel", Be = c.type.startsWith("touch"), he = c.type === "mousedown" || c.type === "mousemove";
85
- return Be ? !0 : Ee ? E === "scroll" ? !0 : c.ctrlKey : he && !c.button && !c.ctrlKey;
86
- }, x = Ht().scaleExtent(Ae).translateExtent(Fe || [[-20, -20], [u + 20, v + 20]]).filter(p).on("zoom", ({
83
+ const o = wt(de.current), n = wt(O.current), p = (c) => {
84
+ if (z === "noZoom") return !1;
85
+ if (z === "button") return !c.type.includes("wheel");
86
+ const Be = c.type === "wheel", Ee = c.type.startsWith("touch"), he = c.type === "mousedown" || c.type === "mousemove";
87
+ return Ee ? !0 : Be ? z === "scroll" ? !0 : c.ctrlKey : he && !c.button && !c.ctrlKey;
88
+ }, x = Tt().scaleExtent(_e).translateExtent(Le || [[-20, -20], [u + 20, v + 20]]).filter(p).on("zoom", ({
87
89
  transform: c
88
90
  }) => {
89
91
  o.attr("transform", c);
90
92
  });
91
- a.call(x), se.current = x;
92
- }, [v, u, E]);
93
- const U = Gt({
94
- ...r,
95
- features: we ? r.features.filter(
93
+ n.call(x), se.current = x;
94
+ }, [v, u, z]);
95
+ const V = Ht({
96
+ ...i,
97
+ features: we ? i.features.filter(
96
98
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
97
99
  (o) => (b || []).length === 0 || b?.indexOf(o.properties[y]) !== -1
98
- ) : r.features
99
- }), W = Zt({
100
- ...r,
101
- features: we ? r.features.filter(
100
+ ) : i.features
101
+ }), _ = Yt({
102
+ ...i,
103
+ features: we ? i.features.filter(
102
104
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
105
  (o) => (b || []).length === 0 || b?.indexOf(o.properties[y]) !== -1
104
- ) : r.features
105
- }), Se = (U[2] - U[0]) * 1.15, me = (U[3] - U[1]) * 1.15, Me = u * 190 / 960 * 360 / Se, pe = v * 190 / 678 * 180 / me, _ = g * Math.min(Me, pe), Oe = O === "mercator" ? Ut().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_) : O === "equalEarth" ? Vt().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_) : O === "naturalEarth" ? Rt().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_) : O === "orthographic" ? qt().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_) : Xt().rotate(H).center($ || W.geometry.coordinates).translate([u / 2, v / 2]).scale(_), V = Yt().projection(Oe), ue = (o) => {
106
- if (!S.current || !se.current) return;
107
- jt(S.current).call(se.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
106
+ ) : i.features
107
+ }), Me = (V[2] - V[0]) * 1.15, me = (V[3] - V[1]) * 1.15, Se = u * 190 / 960 * 360 / Me, pe = v * 190 / 678 * 180 / me, L = g * Math.min(Se, pe), Oe = I === "mercator" ? Ut().rotate(U).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L) : I === "equalEarth" ? Gt().rotate(U).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L) : I === "naturalEarth" ? Vt().rotate(U).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L) : I === "orthographic" ? Rt().rotate(U).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L) : qt().rotate(U).center(H || _.geometry.coordinates).translate([u / 2, v / 2]).scale(L), R = Xt().projection(Oe), ue = (o) => {
108
+ if (!O.current || !se.current) return;
109
+ wt(O.current).call(se.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
108
110
  };
109
111
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
110
112
  /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
111
- /* @__PURE__ */ t.jsx(lt.svg, { width: `${u}px`, height: `${v}px`, viewBox: `0 0 ${u} ${v}`, ref: S, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: de, children: [
113
+ /* @__PURE__ */ t.jsx(ct.svg, { width: `${u}px`, height: `${v}px`, viewBox: `0 0 ${u} ${v}`, ref: O, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: de, children: [
112
114
  ne.filter((o) => o.position === "before").map((o) => o.layer),
113
- r.features.map((o, a) => {
115
+ i.features.map((o, n) => {
114
116
  if (!o.properties?.[y]) return null;
115
- const p = V(o);
116
- return p ? /* @__PURE__ */ t.jsx(lt.g, { opacity: N ? B : b ? b.indexOf(o.properties[y]) !== -1 ? 1 : B : 1, children: /* @__PURE__ */ t.jsx("path", { d: p, style: {
117
+ const p = R(o);
118
+ return p ? /* @__PURE__ */ t.jsx(ct.g, { opacity: S ? P : b ? b.indexOf(o.properties[y]) !== -1 ? 1 : P : 1, children: /* @__PURE__ */ t.jsx("path", { d: p, style: {
117
119
  stroke: te,
118
- strokeWidth: R,
120
+ strokeWidth: q,
119
121
  fill: be,
120
122
  vectorEffect: "non-scaling-stroke"
121
- } }) }, a) : null;
123
+ } }) }, n) : null;
122
124
  }),
123
- /* @__PURE__ */ t.jsx(mo, { children: e.map((o) => {
124
- const a = r.features.findIndex(
125
+ /* @__PURE__ */ t.jsx(co, { children: e.map((o) => {
126
+ const n = i.features.findIndex(
125
127
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
126
128
  (c) => o.id === c.properties[y]
127
129
  );
128
- if (a === -1) return null;
129
- const p = V(r.features[a]);
130
+ if (n === -1) return null;
131
+ const p = R(i.features[n]);
130
132
  if (!p) return null;
131
- const x = Qt(o.x) ? be : (
133
+ const x = Kt(o.x) ? be : (
132
134
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
133
135
  Ne(o.x)
134
136
  );
135
- return /* @__PURE__ */ t.jsx(lt.g, { className: "undp-map-shapes", variants: {
137
+ return /* @__PURE__ */ t.jsx(ct.g, { className: "undp-map-shapes", variants: {
136
138
  initial: {
137
139
  opacity: 0
138
140
  },
139
141
  whileInView: {
140
- opacity: N ? N === x && (!b || b.indexOf(o.id) !== -1) ? 1 : B : b ? b.indexOf(o.id) !== -1 ? 1 : B : 1,
142
+ opacity: S ? S === x && (!b || b.indexOf(o.id) !== -1) ? 1 : P : b ? b.indexOf(o.id) !== -1 ? 1 : P : 1,
141
143
  transition: {
142
- duration: C.duration
144
+ duration: M.duration
143
145
  }
144
146
  }
145
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
147
+ }, initial: "initial", animate: B ? "whileInView" : "initial", exit: {
146
148
  opacity: 0,
147
149
  transition: {
148
- duration: C.duration
150
+ duration: M.duration
149
151
  }
150
152
  }, onMouseEnter: (c) => {
151
- le(o), D(c.clientY), f(c.clientX), oe?.(o);
153
+ le(o), k(c.clientY), f(c.clientX), oe?.(o);
152
154
  }, onMouseMove: (c) => {
153
- le(o), D(c.clientY), f(c.clientX);
155
+ le(o), k(c.clientY), f(c.clientX);
154
156
  }, onMouseLeave: () => {
155
- le(void 0), f(void 0), D(void 0), oe?.(void 0);
157
+ le(void 0), f(void 0), k(void 0), oe?.(void 0);
156
158
  }, onClick: () => {
157
- (ae || q) && ($t(G, o) && je ? (K(void 0), ae?.(void 0)) : (K(o), ae?.(o)));
158
- }, children: /* @__PURE__ */ t.jsx(lt.path, { d: p, variants: {
159
+ (ae || X) && ($t(G, o) && De ? (K(void 0), ae?.(void 0)) : (K(o), ae?.(o)));
160
+ }, children: /* @__PURE__ */ t.jsx(ct.path, { d: p, variants: {
159
161
  initial: {
160
162
  fill: x,
161
163
  opacity: 0
@@ -164,260 +166,281 @@ function vo(m) {
164
166
  fill: x,
165
167
  opacity: 1,
166
168
  transition: {
167
- duration: C.duration
169
+ duration: M.duration
168
170
  }
169
171
  }
170
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
172
+ }, initial: "initial", animate: B ? "whileInView" : "initial", exit: {
171
173
  opacity: 0,
172
174
  transition: {
173
- duration: C.duration
175
+ duration: M.duration
174
176
  }
175
177
  }, style: {
176
178
  stroke: te,
177
- strokeWidth: R,
179
+ strokeWidth: q,
178
180
  vectorEffect: "non-scaling-stroke"
179
181
  } }, `${o.id}`) }, o.id);
180
182
  }) }),
181
- P ? r.features.filter(
183
+ A ? i.features.filter(
182
184
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
183
- (o) => o.properties[y] === P.id
184
- ).map((o, a) => /* @__PURE__ */ t.jsx("path", { d: V(o) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
185
+ (o) => o.properties[y] === A.id
186
+ ).map((o, n) => /* @__PURE__ */ t.jsx("path", { d: R(o) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
185
187
  fill: "none",
186
188
  fillOpacity: 0,
187
189
  strokeWidth: "0.5",
188
190
  vectorEffect: "non-scaling-stroke"
189
- } }, a)) : null,
190
- h?.features.map((o, a) => {
191
- const p = V(o);
191
+ } }, n)) : null,
192
+ h?.features.map((o, n) => {
193
+ const p = R(o);
192
194
  return p ? /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("path", { d: p, style: {
193
- stroke: Te || te,
194
- strokeWidth: $e || R + 1,
195
+ stroke: $e || te,
196
+ strokeWidth: Te || q + 1,
195
197
  fill: "none",
196
198
  pointerEvents: "none",
197
199
  vectorEffect: "non-scaling-stroke"
198
- } }) }, a) : null;
200
+ } }) }, n) : null;
199
201
  }),
200
202
  ne.filter((o) => o.position === "after").map((o) => o.layer)
201
203
  ] }) }),
202
- De === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: Pt("absolute left-4 bottom-4 map-color-legend", re?.colorLegend), children: He ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
204
+ je === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: Zt("absolute left-4 bottom-4 map-color-legend", re?.colorLegend), children: He ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
203
205
  /* @__PURE__ */ t.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: () => {
204
206
  J(!1);
205
- }, children: /* @__PURE__ */ t.jsx(eo, {}) }),
207
+ }, children: /* @__PURE__ */ t.jsx(Qt, {}) }),
206
208
  /* @__PURE__ */ t.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
207
- width: T ? void 0 : "340px"
209
+ width: E || a.length < 2 ? void 0 : "340px"
208
210
  }, children: [
209
- w && w !== "" ? /* @__PURE__ */ t.jsx(St, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
211
+ N && N !== "" ? /* @__PURE__ */ t.jsx(lt, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
210
212
  display: "-webkit-box",
211
213
  WebkitLineClamp: "1",
212
214
  WebkitBoxOrient: "vertical"
213
- }, children: w }) : null,
214
- T ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, a) => /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
215
- z(i[a % i.length]);
216
- }, onMouseLeave: () => {
217
- z(void 0);
218
- }, children: [
219
- /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
220
- backgroundColor: i[a % i.length]
221
- } }),
222
- /* @__PURE__ */ t.jsx(St, { size: "sm", marginBottom: "none", leading: "none", children: o })
223
- ] }, a)) }) : /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
224
- n.map((o, a) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
225
- z(i[a]);
215
+ }, children: N }) : null,
216
+ !E && a.length > 1 ? /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
217
+ a.map((o, n) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
218
+ D(r[n]);
226
219
  }, onMouseLeave: () => {
227
- z(void 0);
220
+ D(void 0);
228
221
  }, className: "cursor-pointer", children: [
229
- /* @__PURE__ */ t.jsx("rect", { x: a * 320 / i.length + 1, y: 1, width: 320 / i.length - 2, height: 8, className: N === i[a] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
230
- fill: i[a],
231
- ...N === i[a] ? {} : {
232
- stroke: i[a]
222
+ /* @__PURE__ */ t.jsx("rect", { x: n * 320 / r.length + 1, y: 1, width: 320 / r.length - 2, height: 8, className: S === r[n] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
223
+ fill: r[n],
224
+ ...S === r[n] ? {} : {
225
+ stroke: r[n]
233
226
  }
234
227
  } }),
235
- /* @__PURE__ */ t.jsx("text", { x: (a + 1) * 320 / i.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
228
+ /* @__PURE__ */ t.jsx("text", { x: (n + 1) * 320 / r.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
236
229
  textAnchor: "middle"
237
- }, children: Jt(o, "NA", Z?.precision ?? 2, void 0, void 0, Z?.locale || "en", Z?.padZeros || !1) })
238
- ] }, a)),
230
+ }, children: kt(o, "NA", j?.precision ?? 2, void 0, void 0, j?.locale || "en", j?.padZeros || !1) })
231
+ ] }, n)),
239
232
  /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("rect", { onMouseOver: () => {
240
- z(i[n.length]);
233
+ D(r[a.length]);
241
234
  }, onMouseLeave: () => {
242
- z(void 0);
243
- }, x: n.length * 320 / i.length + 1, y: 1, width: 320 / i.length - 2, height: 8, className: `cursor-pointer ${N === i[n.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
244
- fill: i[n.length],
245
- ...N === i[n.length] ? {} : {
246
- stroke: i[n.length]
235
+ D(void 0);
236
+ }, x: a.length * 320 / r.length + 1, y: 1, width: 320 / r.length - 2, height: 8, className: `cursor-pointer ${S === r[a.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
237
+ fill: r[a.length],
238
+ ...S === r[a.length] ? {} : {
239
+ stroke: r[a.length]
247
240
  }
248
241
  } }) })
249
- ] }) })
242
+ ] }) }) : E ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: a.map((o, n) => /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
243
+ D(r[n % r.length]);
244
+ }, onMouseLeave: () => {
245
+ D(void 0);
246
+ }, children: [
247
+ /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
248
+ backgroundColor: r[n % r.length]
249
+ } }),
250
+ /* @__PURE__ */ t.jsx(lt, { size: "sm", marginBottom: "none", leading: "none", children: o })
251
+ ] }, n)) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-3", children: [
252
+ /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
253
+ D(r[0]);
254
+ }, onMouseLeave: () => {
255
+ D(void 0);
256
+ }, children: [
257
+ /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
258
+ backgroundColor: r[0]
259
+ } }),
260
+ /* @__PURE__ */ t.jsx(lt, { size: "sm", marginBottom: "none", leading: "none", children: `<= ${kt(a[0], "NA", j?.precision ?? 2, void 0, void 0, j?.locale || "en", j?.padZeros || !1)}` })
261
+ ] }),
262
+ /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
263
+ D(r[1]);
264
+ }, onMouseLeave: () => {
265
+ D(void 0);
266
+ }, children: [
267
+ /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
268
+ backgroundColor: r[1]
269
+ } }),
270
+ /* @__PURE__ */ t.jsx(lt, { size: "sm", marginBottom: "none", leading: "none", children: `> ${kt(a[0], "NA", j?.precision ?? 2, void 0, void 0, j?.locale || "en", j?.padZeros || !1)}` })
271
+ ] })
272
+ ] })
250
273
  ] })
251
274
  ] }) : /* @__PURE__ */ t.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: () => {
252
275
  J(!0);
253
- }, children: /* @__PURE__ */ t.jsx(to, {}) }) }),
254
- E === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col undp-viz-zoom-buttons", children: [
276
+ }, children: /* @__PURE__ */ t.jsx(eo, {}) }) }),
277
+ z === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col undp-viz-zoom-buttons", children: [
255
278
  /* @__PURE__ */ t.jsx("button", { onClick: () => ue("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: "+" }),
256
279
  /* @__PURE__ */ t.jsx("button", { onClick: () => ue("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: "–" })
257
280
  ] }),
258
- (ie || I) && /* @__PURE__ */ t.jsxs("div", { className: "absolute right-4 top-4 flex flex-col image-download-button gap-2", children: [
259
- ie && /* @__PURE__ */ t.jsx(no, { nodeID: ie, buttonSmall: !0, className: "p-1" }),
260
- I && I.length > 0 && /* @__PURE__ */ t.jsx(io, { csvData: I, buttonSmall: !0, headers: Object.keys(I[0]).map((o) => ({
281
+ (ie || W) && /* @__PURE__ */ t.jsxs("div", { className: "absolute right-4 top-4 flex flex-col image-download-button gap-2", children: [
282
+ ie && /* @__PURE__ */ t.jsx(ro, { nodeID: ie, buttonSmall: !0, className: "p-1" }),
283
+ W && W.length > 0 && /* @__PURE__ */ t.jsx(no, { csvData: W, buttonSmall: !0, headers: Object.keys(W[0]).map((o) => ({
261
284
  label: o,
262
285
  key: o
263
286
  })), className: "p-1" })
264
287
  ] })
265
288
  ] }),
266
- q && G !== void 0 ? /* @__PURE__ */ t.jsx(ro, { body: q, data: G, setData: K, className: re?.modal }) : null,
267
- P && ee && Ce && ce ? /* @__PURE__ */ t.jsx(Kt, { data: P, body: ee, xPos: Ce, yPos: ce, backgroundStyle: Le?.tooltip, className: re?.tooltip }) : null
289
+ X && G !== void 0 ? /* @__PURE__ */ t.jsx(ao, { body: X, data: G, setData: K, className: re?.modal }) : null,
290
+ A && ee && Ce && ce ? /* @__PURE__ */ t.jsx(Jt, { data: A, body: ee, xPos: Ce, yPos: ce, backgroundStyle: Fe?.tooltip, className: re?.tooltip }) : null
268
291
  ] });
269
292
  }
270
- function aa(m) {
293
+ function na(m) {
271
294
  const e = Wt.c(133), {
272
- data: n,
273
- mapData: i,
274
- graphTitle: L,
275
- colors: w,
276
- sources: T,
295
+ data: a,
296
+ mapData: r,
297
+ graphTitle: T,
298
+ colors: N,
299
+ sources: E,
277
300
  graphDescription: v,
278
301
  height: u,
279
302
  width: g,
280
- footNote: $,
303
+ footNote: H,
281
304
  colorDomain: ee,
282
- colorLegendTitle: R,
305
+ colorLegendTitle: q,
283
306
  scaleType: te,
284
307
  scale: be,
285
308
  centerPoint: oe,
286
- padding: De,
287
- mapBorderWidth: Ae,
288
- mapNoDataColor: Fe,
309
+ padding: je,
310
+ mapBorderWidth: _e,
311
+ mapNoDataColor: Le,
289
312
  backgroundColor: b,
290
313
  mapBorderColor: ae,
291
314
  relativeHeight: y,
292
- tooltip: je,
293
- onSeriesMouseOver: q,
294
- isWorldMap: Le,
315
+ tooltip: De,
316
+ onSeriesMouseOver: X,
317
+ isWorldMap: Fe,
295
318
  showColorScale: re,
296
- zoomScaleExtend: O,
297
- zoomTranslateExtend: E,
298
- graphID: C,
299
- highlightedIds: B,
319
+ zoomScaleExtend: I,
320
+ zoomTranslateExtend: z,
321
+ graphID: M,
322
+ highlightedIds: P,
300
323
  onSeriesMouseClick: ne,
301
324
  mapProperty: ke,
302
325
  graphDownload: we,
303
- dataDownload: H,
304
- showAntarctica: X,
305
- language: Y,
306
- minHeight: Te,
307
- theme: $e,
308
- ariaLabel: Z,
326
+ dataDownload: U,
327
+ showAntarctica: Y,
328
+ language: Z,
329
+ minHeight: $e,
330
+ theme: Te,
331
+ ariaLabel: j,
309
332
  resetSelectionOnDoubleClick: ie,
310
- detailsOnClick: I,
311
- styles: r,
333
+ detailsOnClick: W,
334
+ styles: i,
312
335
  classNames: h,
313
- mapProjection: N,
314
- zoomInteraction: z,
336
+ mapProjection: S,
337
+ zoomInteraction: D,
315
338
  animate: se,
316
339
  dimmedOpacity: He,
317
340
  customLayers: J,
318
341
  timeline: G,
319
342
  collapseColorScaleByDefault: K,
320
- projectionRotate: P,
343
+ projectionRotate: A,
321
344
  zoomAndCenterByHighlightedIds: le,
322
345
  rewindCoordinatesInMapData: Ce,
323
346
  mapOverlay: f,
324
347
  numberDisplayOptions: ce
325
- } = m, D = i === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : i, S = $ === 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." : $, M = te === void 0 ? "threshold" : te, de = be === void 0 ? 0.95 : be, Ne = Ae === void 0 ? 0.5 : Ae, U = Fe === void 0 ? ct.light.graphNoData : Fe, W = b === void 0 ? !1 : b, Se = ae === void 0 ? ct.light.grays["gray-500"] : ae, me = Le === void 0 ? !0 : Le, Me = re === void 0 ? !0 : re;
348
+ } = m, k = r === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : r, O = H === 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." : H, B = te === void 0 ? "threshold" : te, de = be === void 0 ? 0.95 : be, Ne = _e === void 0 ? 0.5 : _e, V = Le === void 0 ? dt.light.graphNoData : Le, _ = b === void 0 ? !1 : b, Me = ae === void 0 ? dt.light.grays["gray-500"] : ae, me = Fe === void 0 ? !0 : Fe, Se = re === void 0 ? !0 : re;
326
349
  let pe;
327
- e[0] !== O ? (pe = O === void 0 ? [0.8, 6] : O, e[0] = O, e[1] = pe) : pe = e[1];
328
- const _ = pe, Oe = ke === void 0 ? "ISO3" : ke, V = we === void 0 ? !1 : we, ue = H === void 0 ? !1 : H, o = X === void 0 ? !1 : X, a = Y === void 0 ? "en" : Y, p = Te === void 0 ? 0 : Te, x = $e === void 0 ? "light" : $e, c = ie === void 0 ? !0 : ie, Ee = N === void 0 ? "naturalEarth" : N, Be = z === void 0 ? "button" : z, he = se === void 0 ? !1 : se, dt = He === void 0 ? 0.3 : He;
329
- let Ge;
330
- e[2] !== J ? (Ge = J === void 0 ? [] : J, e[2] = J, e[3] = Ge) : Ge = e[3];
331
- const mt = Ge;
350
+ e[0] !== I ? (pe = I === void 0 ? [0.8, 6] : I, e[0] = I, e[1] = pe) : pe = e[1];
351
+ const L = pe, Oe = ke === void 0 ? "ISO3" : ke, R = we === void 0 ? !1 : we, ue = U === void 0 ? !1 : U, o = Y === void 0 ? !1 : Y, n = Z === void 0 ? "en" : Z, p = $e === void 0 ? 0 : $e, x = Te === void 0 ? "light" : Te, c = ie === void 0 ? !0 : ie, Be = S === void 0 ? "naturalEarth" : S, Ee = D === void 0 ? "button" : D, he = se === void 0 ? !1 : se, mt = He === void 0 ? 0.3 : He;
332
352
  let Ue;
333
- e[4] !== G ? (Ue = G === void 0 ? {
353
+ e[2] !== J ? (Ue = J === void 0 ? [] : J, e[2] = J, e[3] = Ue) : Ue = e[3];
354
+ const pt = Ue;
355
+ let Ge;
356
+ e[4] !== G ? (Ge = G === void 0 ? {
334
357
  enabled: !1,
335
358
  autoplay: !1,
336
359
  showOnlyActiveDate: !0
337
- } : G, e[4] = G, e[5] = Ue) : Ue = e[5];
338
- const s = Ue;
360
+ } : G, e[4] = G, e[5] = Ge) : Ge = e[5];
361
+ const s = Ge;
339
362
  let Ve;
340
- e[6] !== P ? (Ve = P === void 0 ? [0, 0] : P, e[6] = P, e[7] = Ve) : Ve = e[7];
341
- const pt = Ve, ut = le === void 0 ? !1 : le, ht = Ce === void 0 ? !0 : Ce, [Q, Ot] = j(0), [Ie, Et] = j(0), [A, Bt] = j(s.autoplay);
363
+ e[6] !== A ? (Ve = A === void 0 ? [0, 0] : A, e[6] = A, e[7] = Ve) : Ve = e[7];
364
+ const ut = Ve, ht = le === void 0 ? !1 : le, ft = Ce === void 0 ? !0 : Ce, [Q, Bt] = w(0), [Ie, Et] = w(0), [F, It] = w(s.autoplay);
342
365
  let ze;
343
- if (e[8] !== n || e[9] !== s.dateFormat) {
366
+ if (e[8] !== a || e[9] !== s.dateFormat) {
344
367
  let l;
345
- e[11] !== s.dateFormat ? (l = (k) => Tt(`${k.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = s.dateFormat, e[12] = l) : l = e[12], ze = [...new Set(n.filter(So).map(l))], ze.sort(No), e[8] = n, e[9] = s.dateFormat, e[10] = ze;
368
+ e[11] !== s.dateFormat ? (l = (C) => Ft(`${C.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = s.dateFormat, e[12] = l) : l = e[12], ze = [...new Set(a.filter(Mo).map(l))], ze.sort(No), e[8] = a, e[9] = s.dateFormat, e[10] = ze;
346
369
  } else
347
370
  ze = e[10];
348
- const d = ze, [F, ft] = j(s.autoplay ? 0 : d.length - 1), [fe, It] = j(void 0), [gt, zt] = j(void 0), yt = _e(null), kt = _e(null);
371
+ const d = ze, [$, gt] = w(s.autoplay ? 0 : d.length - 1), [fe, zt] = w(void 0), [yt, Pt] = w(void 0), vt = Ae(null), Ct = Ae(null);
349
372
  let Re, qe;
350
373
  e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Re = () => {
351
- const l = new ResizeObserver((k) => {
352
- Ot(k[0].target.clientWidth || 620), Et(k[0].target.clientHeight || 480);
374
+ const l = new ResizeObserver((C) => {
375
+ Bt(C[0].target.clientWidth || 620), Et(C[0].target.clientHeight || 480);
353
376
  });
354
- return yt.current && l.observe(yt.current), () => l.disconnect();
377
+ return vt.current && l.observe(vt.current), () => l.disconnect();
355
378
  }, qe = [], e[13] = Re, e[14] = qe) : (Re = e[13], qe = e[14]), We(Re, qe);
356
379
  let Xe;
357
380
  e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Xe = (l) => {
358
- It(l);
381
+ zt(l);
359
382
  }, e[15] = Xe) : Xe = e[15];
360
- const Ye = Ct(Xe);
383
+ const Ye = Mt(Xe);
361
384
  let Ze;
362
385
  e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ze = (l) => {
363
- zt(l);
386
+ Pt(l);
364
387
  }, e[16] = Ze) : Ze = e[16];
365
- const Pe = Ct(Ze);
388
+ const Pe = Mt(Ze);
366
389
  let Je;
367
- e[17] !== D || e[18] !== Ye ? (Je = () => {
368
- typeof D == "string" ? Mt(D).then((k) => {
369
- Ye(k);
370
- }) : Ye(D);
371
- }, e[17] = D, e[18] = Ye, e[19] = Je) : Je = e[19];
390
+ e[17] !== k || e[18] !== Ye ? (Je = () => {
391
+ typeof k == "string" ? Ot(k).then((C) => {
392
+ Ye(C);
393
+ }) : Ye(k);
394
+ }, e[17] = k, e[18] = Ye, e[19] = Je) : Je = e[19];
372
395
  let Ke;
373
- e[20] !== D ? (Ke = [D], e[20] = D, e[21] = Ke) : Ke = e[21], We(Je, Ke);
396
+ e[20] !== k ? (Ke = [k], e[20] = k, e[21] = Ke) : Ke = e[21], We(Je, Ke);
374
397
  let Qe;
375
398
  e[22] !== f?.mapData || e[23] !== Pe ? (Qe = () => {
376
- f?.mapData || Pe(void 0), typeof f?.mapData == "string" ? Mt(f?.mapData).then((k) => {
377
- Pe(k);
399
+ f?.mapData || Pe(void 0), typeof f?.mapData == "string" ? Ot(f?.mapData).then((C) => {
400
+ Pe(C);
378
401
  }) : Pe(f?.mapData);
379
402
  }, e[22] = f?.mapData, e[23] = Pe, e[24] = Qe) : Qe = e[24];
380
- const vt = f?.mapData;
403
+ const xt = f?.mapData;
381
404
  let et;
382
- e[25] !== vt ? (et = [vt], e[25] = vt, e[26] = et) : et = e[26], We(Qe, et);
405
+ e[25] !== xt ? (et = [xt], e[25] = xt, e[26] = et) : et = e[26], We(Qe, et);
383
406
  let tt;
384
- e[27] !== ee || e[28] !== w?.length || e[29] !== n || e[30] !== M ? (tt = ee || (M === "categorical" ? ho(n, "x") : fo(n.map(Co), w?.length || 4)), e[27] = ee, e[28] = w?.length, e[29] = n, e[30] = M, e[31] = tt) : tt = e[31];
407
+ e[27] !== ee || e[28] !== N?.length || e[29] !== a || e[30] !== B ? (tt = ee || (B === "categorical" ? uo(a, "x") : ho(a.map(Co), N?.length || 4)), e[27] = ee, e[28] = N?.length, e[29] = a, e[30] = B, e[31] = tt) : tt = e[31];
385
408
  const ot = tt;
386
409
  let at, rt;
387
- e[32] !== A || e[33] !== s.speed || e[34] !== d ? (at = () => {
410
+ e[32] !== F || e[33] !== s.speed || e[34] !== d ? (at = () => {
388
411
  const l = setInterval(() => {
389
- ft((k) => k < d.length - 1 ? k + 1 : 0);
412
+ gt((C) => C < d.length - 1 ? C + 1 : 0);
390
413
  }, (s.speed || 2) * 1e3);
391
- return A || clearInterval(l), () => clearInterval(l);
392
- }, rt = [d, A, s.speed], e[32] = A, e[33] = s.speed, e[34] = d, e[35] = at, e[36] = rt) : (at = e[35], rt = e[36]), We(at, rt);
393
- const xt = s.dateFormat || "yyyy";
414
+ return F || clearInterval(l), () => clearInterval(l);
415
+ }, rt = [d, F, s.speed], e[32] = F, e[33] = s.speed, e[34] = d, e[35] = at, e[36] = rt) : (at = e[35], rt = e[36]), We(at, rt);
416
+ const bt = s.dateFormat || "yyyy";
394
417
  let nt;
395
- e[37] !== F || e[38] !== xt || e[39] !== s.showOnlyActiveDate || e[40] !== d ? (nt = _t(d, F, s.showOnlyActiveDate, xt), e[37] = F, e[38] = xt, e[39] = s.showOnlyActiveDate, e[40] = d, e[41] = nt) : nt = e[41];
396
- const it = nt, bt = h?.graphContainer, Dt = r?.graphContainer;
418
+ e[37] !== $ || e[38] !== bt || e[39] !== s.showOnlyActiveDate || e[40] !== d ? (nt = fo(d, $, s.showOnlyActiveDate, bt), e[37] = $, e[38] = bt, e[39] = s.showOnlyActiveDate, e[40] = d, e[41] = nt) : nt = e[41];
419
+ const it = nt, jt = h?.graphContainer, Dt = i?.graphContainer;
397
420
  let ge;
398
- e[42] !== h?.description || e[43] !== h?.title || e[44] !== v || e[45] !== L || e[46] !== r?.description || e[47] !== r?.title || e[48] !== g ? (ge = L || v ? /* @__PURE__ */ t.jsx(uo, { styles: {
399
- title: r?.title,
400
- description: r?.description
421
+ e[42] !== h?.description || e[43] !== h?.title || e[44] !== v || e[45] !== T || e[46] !== i?.description || e[47] !== i?.title || e[48] !== g ? (ge = T || v ? /* @__PURE__ */ t.jsx(po, { styles: {
422
+ title: i?.title,
423
+ description: i?.description
401
424
  }, classNames: {
402
425
  title: h?.title,
403
426
  description: h?.description
404
- }, graphTitle: L, graphDescription: v, width: g }) : null, e[42] = h?.description, e[43] = h?.title, e[44] = v, e[45] = L, e[46] = r?.description, e[47] = r?.title, e[48] = g, e[49] = ge) : ge = e[49];
427
+ }, graphTitle: T, graphDescription: v, width: g }) : null, e[42] = h?.description, e[43] = h?.title, e[44] = v, e[45] = T, e[46] = i?.description, e[47] = i?.title, e[48] = g, e[49] = ge) : ge = e[49];
405
428
  let ye;
406
- e[50] !== F || e[51] !== it || e[52] !== A || e[53] !== s.enabled || e[54] !== d ? (ye = s.enabled && d.length > 0 && it ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
429
+ e[50] !== $ || e[51] !== it || e[52] !== F || e[53] !== s.enabled || e[54] !== d ? (ye = s.enabled && d.length > 0 && it ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
407
430
  /* @__PURE__ */ t.jsx("button", { type: "button", onClick: () => {
408
- Bt(!A);
409
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ t.jsx(oo, {}) : /* @__PURE__ */ t.jsx(ao, {}) }),
410
- /* @__PURE__ */ t.jsx(At, { min: d[0], max: d[d.length - 1], marks: it, step: null, defaultValue: d[d.length - 1], value: d[F], onChangeComplete: (l) => {
411
- ft(d.indexOf(l));
431
+ It(!F);
432
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": F ? "Click to pause animation" : "Click to play animation", children: F ? /* @__PURE__ */ t.jsx(to, {}) : /* @__PURE__ */ t.jsx(oo, {}) }),
433
+ /* @__PURE__ */ t.jsx(At, { min: d[0], max: d[d.length - 1], marks: it, step: null, defaultValue: d[d.length - 1], value: d[$], onChangeComplete: (l) => {
434
+ gt(d.indexOf(l));
412
435
  }, onChange: (l) => {
413
- ft(d.indexOf(l));
436
+ gt(d.indexOf(l));
414
437
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
415
- ] }) : null, e[50] = F, e[51] = it, e[52] = A, e[53] = s.enabled, e[54] = d, e[55] = ye) : ye = e[55];
438
+ ] }) : null, e[50] = $, e[51] = it, e[52] = F, e[53] = s.enabled, e[54] = d, e[55] = ye) : ye = e[55];
416
439
  let ve;
417
- e[56] !== he || e[57] !== oe || e[58] !== h || e[59] !== K || e[60] !== R || e[61] !== w || e[62] !== mt || e[63] !== n || e[64] !== ue || e[65] !== I || e[66] !== dt || e[67] !== ot || e[68] !== V || e[69] !== u || e[70] !== B || e[71] !== F || e[72] !== me || e[73] !== Se || e[74] !== Ne || e[75] !== U || e[76] !== f?.mapBorderColor || e[77] !== f?.mapBorderWidth || e[78] !== Ee || e[79] !== Oe || e[80] !== fe || e[81] !== p || e[82] !== ce || e[83] !== ne || e[84] !== q || e[85] !== gt || e[86] !== pt || e[87] !== y || e[88] !== c || e[89] !== ht || e[90] !== de || e[91] !== M || e[92] !== o || e[93] !== Me || e[94] !== r || e[95] !== Ie || e[96] !== Q || e[97] !== x || e[98] !== s.dateFormat || e[99] !== s.enabled || e[100] !== je || e[101] !== d || e[102] !== g || e[103] !== ut || e[104] !== Be || e[105] !== _ || e[106] !== E ? (ve = /* @__PURE__ */ t.jsx(go, { ref: yt, children: Q && Ie && fe ? /* @__PURE__ */ t.jsx(vo, { data: n.filter((l) => s.enabled ? `${l.date}` === Lt(new Date(d[F]), s.dateFormat || "yyyy") : l), mapData: o ? fe : {
440
+ e[56] !== he || e[57] !== oe || e[58] !== h || e[59] !== K || e[60] !== q || e[61] !== N || e[62] !== pt || e[63] !== a || e[64] !== ue || e[65] !== W || e[66] !== mt || e[67] !== ot || e[68] !== R || e[69] !== u || e[70] !== P || e[71] !== $ || e[72] !== me || e[73] !== Me || e[74] !== Ne || e[75] !== V || e[76] !== f?.mapBorderColor || e[77] !== f?.mapBorderWidth || e[78] !== Be || e[79] !== Oe || e[80] !== fe || e[81] !== p || e[82] !== ce || e[83] !== ne || e[84] !== X || e[85] !== yt || e[86] !== ut || e[87] !== y || e[88] !== c || e[89] !== ft || e[90] !== de || e[91] !== B || e[92] !== o || e[93] !== Se || e[94] !== i || e[95] !== Ie || e[96] !== Q || e[97] !== x || e[98] !== s.dateFormat || e[99] !== s.enabled || e[100] !== De || e[101] !== d || e[102] !== g || e[103] !== ht || e[104] !== Ee || e[105] !== L || e[106] !== z ? (ve = /* @__PURE__ */ t.jsx(go, { ref: vt, children: Q && Ie && fe ? /* @__PURE__ */ t.jsx(vo, { data: a.filter((l) => s.enabled ? `${l.date}` === Lt(new Date(d[$]), s.dateFormat || "yyyy") : l), mapData: o ? fe : {
418
441
  ...fe,
419
442
  features: fe.features.filter(wo)
420
- }, colorDomain: ot, width: Q, height: Ie, scale: de, centerPoint: oe, colors: w || (M === "categorical" ? ct[x].categoricalColors.colors : ct[x].sequentialColors[`neutralColorsx0${ot.length + 1}`]), colorLegendTitle: R, mapBorderWidth: Ne, mapNoDataColor: U, categorical: M === "categorical", mapBorderColor: Se, tooltip: je, onSeriesMouseOver: q, isWorldMap: me, showColorScale: Me, zoomScaleExtend: _, zoomTranslateExtend: E, onSeriesMouseClick: ne, mapProperty: Oe, highlightedIds: B, resetSelectionOnDoubleClick: c, styles: r, overlayMapData: gt, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, classNames: h, detailsOnClick: I, mapProjection: Ee || (me ? "naturalEarth" : "mercator"), zoomInteraction: Be, dimmedOpacity: dt, animate: he === !0 ? {
443
+ }, colorDomain: ot, width: Q, height: Ie, scale: de, centerPoint: oe, colors: N || (B === "categorical" ? dt[x].categoricalColors.colors : dt[x].sequentialColors[`neutralColorsx0${ot.length + 1}`]), colorLegendTitle: q, mapBorderWidth: Ne, mapNoDataColor: V, categorical: B === "categorical", mapBorderColor: Me, tooltip: De, onSeriesMouseOver: X, isWorldMap: me, showColorScale: Se, zoomScaleExtend: L, zoomTranslateExtend: z, onSeriesMouseClick: ne, mapProperty: Oe, highlightedIds: P, resetSelectionOnDoubleClick: c, styles: i, overlayMapData: yt, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, classNames: h, detailsOnClick: W, mapProjection: Be || (me ? "naturalEarth" : "mercator"), zoomInteraction: Ee, dimmedOpacity: mt, animate: he === !0 ? {
421
444
  duration: 0.5,
422
445
  once: !0,
423
446
  amount: 0.5
@@ -425,24 +448,24 @@ function aa(m) {
425
448
  duration: 0,
426
449
  once: !0,
427
450
  amount: 0
428
- }, customLayers: mt, zoomAndCenterByHighlightedIds: ut, collapseColorScaleByDefault: K, projectionRotate: pt, rewindCoordinatesInMapData: ht, numberDisplayOptions: ce, graphDownload: V ? kt : void 0, dataDownload: ue ? n.map(ko).filter(jo).length > 0 ? n.map(Do).filter(bo) : n.filter(xo) : null }) : /* @__PURE__ */ t.jsx("div", { style: {
451
+ }, customLayers: pt, zoomAndCenterByHighlightedIds: ht, collapseColorScaleByDefault: K, projectionRotate: ut, rewindCoordinatesInMapData: ft, numberDisplayOptions: ce, graphDownload: R ? Ct : void 0, dataDownload: ue ? a.map(ko).filter(Do).length > 0 ? a.map(jo).filter(bo) : a.filter(xo) : null }) : /* @__PURE__ */ t.jsx("div", { style: {
429
452
  height: `${Math.max(p, u || (y ? p ? (g || Q) * y > p ? (g || Q) * y : p : (g || Q) * y : Ie))}px`
430
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Ft, { "aria-label": "Loading graph" }) }) }), e[56] = he, e[57] = oe, e[58] = h, e[59] = K, e[60] = R, e[61] = w, e[62] = mt, e[63] = n, e[64] = ue, e[65] = I, e[66] = dt, e[67] = ot, e[68] = V, e[69] = u, e[70] = B, e[71] = F, e[72] = me, e[73] = Se, e[74] = Ne, e[75] = U, e[76] = f?.mapBorderColor, e[77] = f?.mapBorderWidth, e[78] = Ee, e[79] = Oe, e[80] = fe, e[81] = p, e[82] = ce, e[83] = ne, e[84] = q, e[85] = gt, e[86] = pt, e[87] = y, e[88] = c, e[89] = ht, e[90] = de, e[91] = M, e[92] = o, e[93] = Me, e[94] = r, e[95] = Ie, e[96] = Q, e[97] = x, e[98] = s.dateFormat, e[99] = s.enabled, e[100] = je, e[101] = d, e[102] = g, e[103] = ut, e[104] = Be, e[105] = _, e[106] = E, e[107] = ve) : ve = e[107];
453
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(_t, { "aria-label": "Loading graph" }) }) }), e[56] = he, e[57] = oe, e[58] = h, e[59] = K, e[60] = q, e[61] = N, e[62] = pt, e[63] = a, e[64] = ue, e[65] = W, e[66] = mt, e[67] = ot, e[68] = R, e[69] = u, e[70] = P, e[71] = $, e[72] = me, e[73] = Me, e[74] = Ne, e[75] = V, e[76] = f?.mapBorderColor, e[77] = f?.mapBorderWidth, e[78] = Be, e[79] = Oe, e[80] = fe, e[81] = p, e[82] = ce, e[83] = ne, e[84] = X, e[85] = yt, e[86] = ut, e[87] = y, e[88] = c, e[89] = ft, e[90] = de, e[91] = B, e[92] = o, e[93] = Se, e[94] = i, e[95] = Ie, e[96] = Q, e[97] = x, e[98] = s.dateFormat, e[99] = s.enabled, e[100] = De, e[101] = d, e[102] = g, e[103] = ht, e[104] = Ee, e[105] = L, e[106] = z, e[107] = ve) : ve = e[107];
431
454
  let xe;
432
- e[108] !== h?.footnote || e[109] !== h?.source || e[110] !== S || e[111] !== T || e[112] !== r?.footnote || e[113] !== r?.source || e[114] !== g ? (xe = T || S ? /* @__PURE__ */ t.jsx(po, { styles: {
433
- footnote: r?.footnote,
434
- source: r?.source
455
+ e[108] !== h?.footnote || e[109] !== h?.source || e[110] !== O || e[111] !== E || e[112] !== i?.footnote || e[113] !== i?.source || e[114] !== g ? (xe = E || O ? /* @__PURE__ */ t.jsx(mo, { styles: {
456
+ footnote: i?.footnote,
457
+ source: i?.source
435
458
  }, classNames: {
436
459
  footnote: h?.footnote,
437
460
  source: h?.source
438
- }, sources: T, footNote: S, width: g }) : null, e[108] = h?.footnote, e[109] = h?.source, e[110] = S, e[111] = T, e[112] = r?.footnote, e[113] = r?.source, e[114] = g, e[115] = xe) : xe = e[115];
461
+ }, sources: E, footNote: O, width: g }) : null, e[108] = h?.footnote, e[109] = h?.source, e[110] = O, e[111] = E, e[112] = i?.footnote, e[113] = i?.source, e[114] = g, e[115] = xe) : xe = e[115];
439
462
  let st;
440
- return e[116] !== Z || e[117] !== W || e[118] !== C || e[119] !== u || e[120] !== a || e[121] !== p || e[122] !== De || e[123] !== y || e[124] !== bt || e[125] !== Dt || e[126] !== ge || e[127] !== ye || e[128] !== ve || e[129] !== xe || e[130] !== x || e[131] !== g ? (st = /* @__PURE__ */ t.jsxs(yo, { className: bt, style: Dt, id: C, ref: kt, "aria-label": Z, backgroundColor: W, theme: x, language: a, minHeight: p, width: g, height: u, relativeHeight: y, padding: De, children: [
463
+ return e[116] !== j || e[117] !== _ || e[118] !== M || e[119] !== u || e[120] !== n || e[121] !== p || e[122] !== je || e[123] !== y || e[124] !== jt || e[125] !== Dt || e[126] !== ge || e[127] !== ye || e[128] !== ve || e[129] !== xe || e[130] !== x || e[131] !== g ? (st = /* @__PURE__ */ t.jsxs(yo, { className: jt, style: Dt, id: M, ref: Ct, "aria-label": j, backgroundColor: _, theme: x, language: n, minHeight: p, width: g, height: u, relativeHeight: y, padding: je, children: [
441
464
  ge,
442
465
  ye,
443
466
  ve,
444
467
  xe
445
- ] }), e[116] = Z, e[117] = W, e[118] = C, e[119] = u, e[120] = a, e[121] = p, e[122] = De, e[123] = y, e[124] = bt, e[125] = Dt, e[126] = ge, e[127] = ye, e[128] = ve, e[129] = xe, e[130] = x, e[131] = g, e[132] = st) : st = e[132], st;
468
+ ] }), e[116] = j, e[117] = _, e[118] = M, e[119] = u, e[120] = n, e[121] = p, e[122] = je, e[123] = y, e[124] = jt, e[125] = Dt, e[126] = ge, e[127] = ye, e[128] = ve, e[129] = xe, e[130] = x, e[131] = g, e[132] = st) : st = e[132], st;
446
469
  }
447
470
  function xo(m) {
448
471
  return m !== void 0;
@@ -450,10 +473,10 @@ function xo(m) {
450
473
  function bo(m) {
451
474
  return m !== void 0;
452
475
  }
453
- function Do(m) {
476
+ function jo(m) {
454
477
  return m.data;
455
478
  }
456
- function jo(m) {
479
+ function Do(m) {
457
480
  return m !== void 0;
458
481
  }
459
482
  function ko(m) {
@@ -468,10 +491,10 @@ function Co(m) {
468
491
  function No(m, e) {
469
492
  return m - e;
470
493
  }
471
- function So(m) {
494
+ function Mo(m) {
472
495
  return m.date;
473
496
  }
474
497
  export {
475
- aa as ChoroplethMap
498
+ na as ChoroplethMap
476
499
  };
477
500
  //# sourceMappingURL=ChoroplethMap.js.map