@undp/data-viz 2.3.17 → 2.4.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 (440) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +2 -0
  4. package/dist/AreaChart.js +356 -354
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/{Axis-Jt_tmhxS.cjs → Axis-BTaS9oPQ.cjs} +2 -2
  7. package/dist/{Axis-Jt_tmhxS.cjs.map → Axis-BTaS9oPQ.cjs.map} +1 -1
  8. package/dist/{Axis-RyGdzLrG.js → Axis-CNZYWzH0.js} +2 -2
  9. package/dist/{Axis-RyGdzLrG.js.map → Axis-CNZYWzH0.js.map} +1 -1
  10. package/dist/{AxisTitle-DGjX1_2v.js → AxisTitle-CyLCqpW6.js} +2 -2
  11. package/dist/{AxisTitle-DGjX1_2v.js.map → AxisTitle-CyLCqpW6.js.map} +1 -1
  12. package/dist/{AxisTitle-DV4n0RxE.cjs → AxisTitle-DP_evhbe.cjs} +2 -2
  13. package/dist/{AxisTitle-DV4n0RxE.cjs.map → AxisTitle-DP_evhbe.cjs.map} +1 -1
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +6 -0
  17. package/dist/BarGraph.js +1735 -1726
  18. package/dist/BarGraph.js.map +1 -1
  19. package/dist/BasicStatCard.cjs +1 -1
  20. package/dist/BasicStatCard.cjs.map +1 -1
  21. package/dist/BasicStatCard.d.ts +2 -0
  22. package/dist/BasicStatCard.js +46 -45
  23. package/dist/BasicStatCard.js.map +1 -1
  24. package/dist/BeeSwarmChart.cjs +1 -1
  25. package/dist/BeeSwarmChart.cjs.map +1 -1
  26. package/dist/BeeSwarmChart.d.ts +2 -0
  27. package/dist/BeeSwarmChart.js +266 -266
  28. package/dist/BeeSwarmChart.js.map +1 -1
  29. package/dist/BiVariateChoroplethMap.cjs +1 -1
  30. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  31. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  32. package/dist/BiVariateChoroplethMap.js +300 -298
  33. package/dist/BiVariateChoroplethMap.js.map +1 -1
  34. package/dist/BulletChart.cjs +1 -1
  35. package/dist/BulletChart.cjs.map +1 -1
  36. package/dist/BulletChart.d.ts +2 -0
  37. package/dist/BulletChart.js +469 -469
  38. package/dist/BulletChart.js.map +1 -1
  39. package/dist/ButterflyChart.cjs +1 -1
  40. package/dist/ButterflyChart.cjs.map +1 -1
  41. package/dist/ButterflyChart.d.ts +2 -0
  42. package/dist/ButterflyChart.js +330 -328
  43. package/dist/ButterflyChart.js.map +1 -1
  44. package/dist/ChoroplethMap.cjs +1 -1
  45. package/dist/ChoroplethMap.cjs.map +1 -1
  46. package/dist/ChoroplethMap.d.ts +2 -0
  47. package/dist/ChoroplethMap.js +303 -301
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +2 -0
  51. package/dist/CirclePackingGraph.js +4 -4
  52. package/dist/ColorLegend.cjs +1 -1
  53. package/dist/ColorLegend.js +2 -2
  54. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  55. package/dist/ColorLegendWithMouseOver.js +2 -2
  56. package/dist/CopyTextButton.cjs +1 -1
  57. package/dist/CopyTextButton.cjs.map +1 -1
  58. package/dist/CopyTextButton.js +7 -9
  59. package/dist/CopyTextButton.js.map +1 -1
  60. package/dist/CsvDownloadButton.cjs +1 -1
  61. package/dist/CsvDownloadButton.js +2 -2
  62. package/dist/DataCards.cjs +1 -1
  63. package/dist/DataCards.cjs.map +1 -1
  64. package/dist/DataCards.js +10 -12
  65. package/dist/DataCards.js.map +1 -1
  66. package/dist/DataTable.cjs +1 -1
  67. package/dist/DataTable.cjs.map +1 -1
  68. package/dist/DataTable.d.ts +2 -0
  69. package/dist/DataTable.js +103 -102
  70. package/dist/DataTable.js.map +1 -1
  71. package/dist/{DetailsModal-C3qlUyFK.js → DetailsModal-B2XBWR7w.js} +4 -4
  72. package/dist/{DetailsModal-C3qlUyFK.js.map → DetailsModal-B2XBWR7w.js.map} +1 -1
  73. package/dist/{DetailsModal-DIRTulvr.cjs → DetailsModal-jmmKRMRM.cjs} +2 -2
  74. package/dist/{DetailsModal-DIRTulvr.cjs.map → DetailsModal-jmmKRMRM.cjs.map} +1 -1
  75. package/dist/DifferenceLineChart.cjs +1 -1
  76. package/dist/DifferenceLineChart.cjs.map +1 -1
  77. package/dist/DifferenceLineChart.d.ts +4 -0
  78. package/dist/DifferenceLineChart.js +441 -437
  79. package/dist/DifferenceLineChart.js.map +1 -1
  80. package/dist/DonutChart.cjs +1 -1
  81. package/dist/DonutChart.cjs.map +1 -1
  82. package/dist/DonutChart.d.ts +4 -0
  83. package/dist/DonutChart.js +146 -142
  84. package/dist/DonutChart.js.map +1 -1
  85. package/dist/DotDensityMap.cjs +1 -1
  86. package/dist/DotDensityMap.cjs.map +1 -1
  87. package/dist/DotDensityMap.js +265 -268
  88. package/dist/DotDensityMap.js.map +1 -1
  89. package/dist/{DropdownSelect-NNpOs7DX.cjs → DropdownSelect-CX1yMemd.cjs} +2 -2
  90. package/dist/DropdownSelect-CX1yMemd.cjs.map +1 -0
  91. package/dist/{DropdownSelect-B2WTeedJ.js → DropdownSelect-Dz7imdTB.js} +6 -9
  92. package/dist/DropdownSelect-Dz7imdTB.js.map +1 -0
  93. package/dist/DualAxisLineChart.cjs +1 -1
  94. package/dist/DualAxisLineChart.cjs.map +1 -1
  95. package/dist/DualAxisLineChart.d.ts +4 -0
  96. package/dist/DualAxisLineChart.js +336 -332
  97. package/dist/DualAxisLineChart.js.map +1 -1
  98. package/dist/DumbbellChart.cjs +1 -1
  99. package/dist/DumbbellChart.cjs.map +1 -1
  100. package/dist/DumbbellChart.d.ts +2 -0
  101. package/dist/DumbbellChart.js +484 -484
  102. package/dist/DumbbellChart.js.map +1 -1
  103. package/dist/{EmptyState-B4c-CrXs.cjs → EmptyState-CFmiFPHz.cjs} +2 -2
  104. package/dist/{EmptyState-B4c-CrXs.cjs.map → EmptyState-CFmiFPHz.cjs.map} +1 -1
  105. package/dist/{EmptyState-B3fPoH6L.js → EmptyState-CaxXCkiN.js} +4 -4
  106. package/dist/{EmptyState-B3fPoH6L.js.map → EmptyState-CaxXCkiN.js.map} +1 -1
  107. package/dist/ExcelDownloadButton.cjs +1 -1
  108. package/dist/ExcelDownloadButton.js +2 -2
  109. package/dist/FootNote.cjs +1 -1
  110. package/dist/FootNote.js +2 -2
  111. package/dist/GeoHubCompareMaps.cjs +1 -1
  112. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  113. package/dist/GeoHubCompareMaps.js +111 -111
  114. package/dist/GeoHubCompareMaps.js.map +1 -1
  115. package/dist/GeoHubMap.cjs +1 -1
  116. package/dist/GeoHubMap.cjs.map +1 -1
  117. package/dist/GeoHubMap.js +71 -71
  118. package/dist/GeoHubMap.js.map +1 -1
  119. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  120. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  121. package/dist/GeoHubMapWithLayerSelection.js +83 -83
  122. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  123. package/dist/{GraphContainer-DwMxWRCi.js → GraphContainer-B8ZqOzKI.js} +2 -2
  124. package/dist/{GraphContainer-DwMxWRCi.js.map → GraphContainer-B8ZqOzKI.js.map} +1 -1
  125. package/dist/{GraphContainer-B1EDxJ0S.cjs → GraphContainer-Cul9b74X.cjs} +2 -2
  126. package/dist/{GraphContainer-B1EDxJ0S.cjs.map → GraphContainer-Cul9b74X.cjs.map} +1 -1
  127. package/dist/GraphDescription.cjs +1 -1
  128. package/dist/GraphDescription.js +2 -2
  129. package/dist/{GraphEl-CnJf8b50.js → GraphEl-B73N4RIA.js} +48 -10
  130. package/dist/GraphEl-B73N4RIA.js.map +1 -0
  131. package/dist/GraphEl-Lt1og0C-.cjs +2 -0
  132. package/dist/GraphEl-Lt1og0C-.cjs.map +1 -0
  133. package/dist/GraphFooter.cjs +1 -1
  134. package/dist/GraphFooter.js +2 -2
  135. package/dist/GraphHeader.cjs +1 -1
  136. package/dist/GraphHeader.js +1 -1
  137. package/dist/GraphTitle.cjs +1 -1
  138. package/dist/GraphTitle.js +2 -2
  139. package/dist/GriddedGraphs.cjs +1 -1
  140. package/dist/GriddedGraphs.d.ts +1 -0
  141. package/dist/GriddedGraphs.js +6 -6
  142. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  143. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  144. package/dist/GriddedGraphsFromConfig.js +2 -2
  145. package/dist/HeatMap.cjs +1 -1
  146. package/dist/HeatMap.cjs.map +1 -1
  147. package/dist/HeatMap.d.ts +4 -0
  148. package/dist/HeatMap.js +158 -155
  149. package/dist/HeatMap.js.map +1 -1
  150. package/dist/Histogram.cjs +1 -1
  151. package/dist/Histogram.cjs.map +1 -1
  152. package/dist/Histogram.d.ts +2 -0
  153. package/dist/Histogram.js +81 -80
  154. package/dist/Histogram.js.map +1 -1
  155. package/dist/HybridMap.cjs +1 -1
  156. package/dist/HybridMap.cjs.map +1 -1
  157. package/dist/HybridMap.d.ts +2 -0
  158. package/dist/HybridMap.js +314 -315
  159. package/dist/HybridMap.js.map +1 -1
  160. package/dist/ImageDownloadButton.cjs +1 -1
  161. package/dist/ImageDownloadButton.js +2 -2
  162. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  163. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  164. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  165. package/dist/LineChartWithConfidenceInterval.js +367 -365
  166. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  167. package/dist/LinearColorLegend.cjs +1 -1
  168. package/dist/LinearColorLegend.cjs.map +1 -1
  169. package/dist/LinearColorLegend.d.ts +1 -0
  170. package/dist/LinearColorLegend.js +38 -37
  171. package/dist/LinearColorLegend.js.map +1 -1
  172. package/dist/{Modal-ZX55hLH-.cjs → Modal-BIErPPKT.cjs} +5 -5
  173. package/dist/{Modal-ZX55hLH-.cjs.map → Modal-BIErPPKT.cjs.map} +1 -1
  174. package/dist/{Modal-BV4rkoLM.js → Modal-CrUYln5V.js} +4 -4
  175. package/dist/{Modal-BV4rkoLM.js.map → Modal-CrUYln5V.js.map} +1 -1
  176. package/dist/MultiGraphDashboard.cjs +1 -1
  177. package/dist/MultiGraphDashboard.d.ts +1 -0
  178. package/dist/MultiGraphDashboard.js +4 -4
  179. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  180. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  181. package/dist/MultiGraphDashboardFromConfig.js +2 -2
  182. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  183. package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
  184. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  185. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
  186. package/dist/MultiLineAltChart.cjs +1 -1
  187. package/dist/MultiLineAltChart.cjs.map +1 -1
  188. package/dist/MultiLineAltChart.d.ts +2 -0
  189. package/dist/MultiLineAltChart.js +419 -420
  190. package/dist/MultiLineAltChart.js.map +1 -1
  191. package/dist/MultiLineChart.cjs +1 -1
  192. package/dist/MultiLineChart.cjs.map +1 -1
  193. package/dist/MultiLineChart.d.ts +4 -0
  194. package/dist/MultiLineChart.js +410 -409
  195. package/dist/MultiLineChart.js.map +1 -1
  196. package/dist/ParetoChart.cjs +1 -1
  197. package/dist/ParetoChart.cjs.map +1 -1
  198. package/dist/ParetoChart.d.ts +2 -0
  199. package/dist/ParetoChart.js +273 -271
  200. package/dist/ParetoChart.js.map +1 -1
  201. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  202. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  203. package/dist/PerformanceIntensiveMultiGraphDashboard.js +4 -4
  204. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  205. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  206. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
  207. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  208. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  209. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  210. package/dist/RadarChart.cjs +1 -1
  211. package/dist/RadarChart.cjs.map +1 -1
  212. package/dist/RadarChart.d.ts +2 -0
  213. package/dist/RadarChart.js +221 -219
  214. package/dist/RadarChart.js.map +1 -1
  215. package/dist/{ReferenceLine-M9aP3dj-.cjs → ReferenceLine-CpU4G01Y.cjs} +2 -2
  216. package/dist/{ReferenceLine-M9aP3dj-.cjs.map → ReferenceLine-CpU4G01Y.cjs.map} +1 -1
  217. package/dist/{ReferenceLine-CNEjAYvv.js → ReferenceLine-D41VuUhE.js} +3 -3
  218. package/dist/{ReferenceLine-CNEjAYvv.js.map → ReferenceLine-D41VuUhE.js.map} +1 -1
  219. package/dist/{RegressionLine-Ci-Dh0w0.cjs → RegressionLine-BFoBiVJk.cjs} +2 -2
  220. package/dist/{RegressionLine-Ci-Dh0w0.cjs.map → RegressionLine-BFoBiVJk.cjs.map} +1 -1
  221. package/dist/{RegressionLine-BDrndQxo.js → RegressionLine-CuwB42I6.js} +4 -4
  222. package/dist/{RegressionLine-BDrndQxo.js.map → RegressionLine-CuwB42I6.js.map} +1 -1
  223. package/dist/SVGDownloadButton.cjs +1 -1
  224. package/dist/SVGDownloadButton.js +2 -2
  225. package/dist/SankeyChart.cjs +1 -1
  226. package/dist/SankeyChart.cjs.map +1 -1
  227. package/dist/SankeyChart.d.ts +2 -0
  228. package/dist/SankeyChart.js +404 -408
  229. package/dist/SankeyChart.js.map +1 -1
  230. package/dist/ScatterPlot.cjs +1 -1
  231. package/dist/ScatterPlot.cjs.map +1 -1
  232. package/dist/ScatterPlot.d.ts +2 -0
  233. package/dist/ScatterPlot.js +444 -445
  234. package/dist/ScatterPlot.js.map +1 -1
  235. package/dist/ScrollStory.cjs +1 -1
  236. package/dist/ScrollStory.d.ts +1 -0
  237. package/dist/ScrollStory.js +3 -3
  238. package/dist/SimpleLineChart.cjs +1 -1
  239. package/dist/SimpleLineChart.cjs.map +1 -1
  240. package/dist/SimpleLineChart.d.ts +2 -0
  241. package/dist/SimpleLineChart.js +360 -358
  242. package/dist/SimpleLineChart.js.map +1 -1
  243. package/dist/SingleGraphDashboard.cjs +1 -1
  244. package/dist/SingleGraphDashboard.d.ts +1 -0
  245. package/dist/SingleGraphDashboard.js +6 -6
  246. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  247. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  248. package/dist/SingleGraphDashboardFromConfig.js +2 -2
  249. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  250. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  251. package/dist/SingleGraphDashboardGeoHubMaps.js +3 -3
  252. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  253. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  254. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
  255. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  256. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  257. package/dist/SingleGraphDashboardThreeDGraphs.js +6 -6
  258. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  259. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  260. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
  261. package/dist/SlopeChart.cjs +1 -1
  262. package/dist/SlopeChart.cjs.map +1 -1
  263. package/dist/SlopeChart.js +259 -262
  264. package/dist/SlopeChart.js.map +1 -1
  265. package/dist/{Source-BOSAl3UX.cjs → Source-PKuwZOn3.cjs} +2 -2
  266. package/dist/{Source-BOSAl3UX.cjs.map → Source-PKuwZOn3.cjs.map} +1 -1
  267. package/dist/{Source-Djkz-7jX.js → Source-QGk8vhkS.js} +3 -3
  268. package/dist/{Source-Djkz-7jX.js.map → Source-QGk8vhkS.js.map} +1 -1
  269. package/dist/Source.cjs +1 -1
  270. package/dist/Source.js +3 -3
  271. package/dist/SparkLine.cjs +1 -1
  272. package/dist/SparkLine.js +3 -3
  273. package/dist/{Spinner-CtJETd5V.js → Spinner-B2IIKg9r.js} +2 -2
  274. package/dist/{Spinner-CtJETd5V.js.map → Spinner-B2IIKg9r.js.map} +1 -1
  275. package/dist/{Spinner-jTMOLuw_.cjs → Spinner-WHzzloYQ.cjs} +2 -2
  276. package/dist/{Spinner-jTMOLuw_.cjs.map → Spinner-WHzzloYQ.cjs.map} +1 -1
  277. package/dist/StatCardFromData.cjs +1 -1
  278. package/dist/StatCardFromData.cjs.map +1 -1
  279. package/dist/StatCardFromData.d.ts +4 -0
  280. package/dist/StatCardFromData.js +97 -95
  281. package/dist/StatCardFromData.js.map +1 -1
  282. package/dist/StripChart.cjs +1 -1
  283. package/dist/StripChart.cjs.map +1 -1
  284. package/dist/StripChart.d.ts +2 -0
  285. package/dist/StripChart.js +343 -343
  286. package/dist/StripChart.js.map +1 -1
  287. package/dist/ThreeDGlobe.cjs +1 -1
  288. package/dist/ThreeDGlobe.cjs.map +1 -1
  289. package/dist/ThreeDGlobe.d.ts +2 -0
  290. package/dist/ThreeDGlobe.js +198 -196
  291. package/dist/ThreeDGlobe.js.map +1 -1
  292. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  293. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  294. package/dist/ThresholdColorLegendWithMouseOver.d.ts +2 -0
  295. package/dist/ThresholdColorLegendWithMouseOver.js +50 -48
  296. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  297. package/dist/{Tooltip-CohiIbLZ.js → Tooltip-Bj-s__cI.js} +3 -3
  298. package/dist/{Tooltip-CohiIbLZ.js.map → Tooltip-Bj-s__cI.js.map} +1 -1
  299. package/dist/{Tooltip-BLa2EfMs.cjs → Tooltip-Hr46paWP.cjs} +2 -2
  300. package/dist/{Tooltip-BLa2EfMs.cjs.map → Tooltip-Hr46paWP.cjs.map} +1 -1
  301. package/dist/TreeMapGraph.cjs +1 -1
  302. package/dist/TreeMapGraph.cjs.map +1 -1
  303. package/dist/TreeMapGraph.d.ts +2 -0
  304. package/dist/TreeMapGraph.js +139 -140
  305. package/dist/TreeMapGraph.js.map +1 -1
  306. package/dist/Types.d.ts +1 -0
  307. package/dist/{Typography-DMVW6JnV.js → Typography-BO0gQDIT.js} +2 -2
  308. package/dist/{Typography-DMVW6JnV.js.map → Typography-BO0gQDIT.js.map} +1 -1
  309. package/dist/{Typography-CZZxlj1W.cjs → Typography-BqmyF1gP.cjs} +2 -2
  310. package/dist/{Typography-CZZxlj1W.cjs.map → Typography-BqmyF1gP.cjs.map} +1 -1
  311. package/dist/UnitChart.cjs +1 -1
  312. package/dist/UnitChart.cjs.map +1 -1
  313. package/dist/UnitChart.d.ts +4 -0
  314. package/dist/UnitChart.js +88 -86
  315. package/dist/UnitChart.js.map +1 -1
  316. package/dist/WaterfallChart.cjs +1 -1
  317. package/dist/WaterfallChart.cjs.map +1 -1
  318. package/dist/WaterfallChart.d.ts +2 -0
  319. package/dist/WaterfallChart.js +257 -258
  320. package/dist/WaterfallChart.js.map +1 -1
  321. package/dist/{XAxesLabels-IwjMJkYS.js → XAxesLabels-B9gkjUiC.js} +3 -3
  322. package/dist/{XAxesLabels-IwjMJkYS.js.map → XAxesLabels-B9gkjUiC.js.map} +1 -1
  323. package/dist/{XAxesLabels-C6o9jJal.cjs → XAxesLabels-C03jHniq.cjs} +2 -2
  324. package/dist/{XAxesLabels-C6o9jJal.cjs.map → XAxesLabels-C03jHniq.cjs.map} +1 -1
  325. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +2 -0
  326. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +1 -0
  327. package/dist/XTicksAndGridLines-gdbGX2rm.js +39 -0
  328. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +1 -0
  329. package/dist/{YAxesLabels-BQ2aCazV.cjs → YAxesLabels-DeENFC2M.cjs} +2 -2
  330. package/dist/{YAxesLabels-BQ2aCazV.cjs.map → YAxesLabels-DeENFC2M.cjs.map} +1 -1
  331. package/dist/{YAxesLabels-DoGvgHdw.js → YAxesLabels-hWEUCTvs.js} +3 -3
  332. package/dist/{YAxesLabels-DoGvgHdw.js.map → YAxesLabels-hWEUCTvs.js.map} +1 -1
  333. package/dist/YTicksAndGridLines-CsNSq9W9.js +39 -0
  334. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +1 -0
  335. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +2 -0
  336. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +1 -0
  337. package/dist/{checkIfMultiple-TOaaUwS7.cjs → checkIfMultiple-CH5tqj4q.cjs} +2 -2
  338. package/dist/checkIfMultiple-CH5tqj4q.cjs.map +1 -0
  339. package/dist/{checkIfMultiple-B97uOUVq.js → checkIfMultiple-Dpyy6BUP.js} +6 -6
  340. package/dist/checkIfMultiple-Dpyy6BUP.js.map +1 -0
  341. package/dist/{customArea-B1LWQBmM.cjs → customArea-BAcQ3pBM.cjs} +2 -2
  342. package/dist/{customArea-B1LWQBmM.cjs.map → customArea-BAcQ3pBM.cjs.map} +1 -1
  343. package/dist/{customArea-Cc2whe6P.js → customArea-D89lETG0.js} +3 -3
  344. package/dist/{customArea-Cc2whe6P.js.map → customArea-D89lETG0.js.map} +1 -1
  345. package/dist/getSliderMarks-BzrpHrHS.cjs +2 -0
  346. package/dist/getSliderMarks-BzrpHrHS.cjs.map +1 -0
  347. package/dist/{getSliderMarks-vXsR8RrR.js → getSliderMarks-X-_goqH9.js} +3 -4
  348. package/dist/getSliderMarks-X-_goqH9.js.map +1 -0
  349. package/dist/{index-CZ0elhKR.js → index-ApTBN0kp.js} +20 -10
  350. package/dist/{index-CZ0elhKR.js.map → index-ApTBN0kp.js.map} +1 -1
  351. package/dist/index-B0Awa_de.js +377 -0
  352. package/dist/index-B0Awa_de.js.map +1 -0
  353. package/dist/{index-sbKVyHS2.cjs → index-BhI7mBJx.cjs} +2 -2
  354. package/dist/{index-sbKVyHS2.cjs.map → index-BhI7mBJx.cjs.map} +1 -1
  355. package/dist/{index-D69M6klB.cjs → index-BuhBhuCq.cjs} +2 -2
  356. package/dist/{index-D69M6klB.cjs.map → index-BuhBhuCq.cjs.map} +1 -1
  357. package/dist/{index-CHPV5EwG-BCLAYDCV.js → index-CHPV5EwG-BzibaIRc.js} +5 -9
  358. package/dist/index-CHPV5EwG-BzibaIRc.js.map +1 -0
  359. package/dist/{index-CHPV5EwG-6v2a2njQ.cjs → index-CHPV5EwG-D4pAp7u0.cjs} +3 -3
  360. package/dist/index-CHPV5EwG-D4pAp7u0.cjs.map +1 -0
  361. package/dist/index-CP8cmNzt.cjs +2 -0
  362. package/dist/index-CP8cmNzt.cjs.map +1 -0
  363. package/dist/{index-Co3YGYe1.js → index-Cv_5q6Rb.js} +3 -3
  364. package/dist/{index-Co3YGYe1.js.map → index-Cv_5q6Rb.js.map} +1 -1
  365. package/dist/{index-D_dtv_T9.js → index-DHVGV8Df.js} +3 -3
  366. package/dist/{index-D_dtv_T9.js.map → index-DHVGV8Df.js.map} +1 -1
  367. package/dist/{index-CoobIWNj.cjs → index-FXfr51ZM.cjs} +2 -2
  368. package/dist/{index-CoobIWNj.cjs.map → index-FXfr51ZM.cjs.map} +1 -1
  369. package/dist/{index-D6CYcVc7-BOa7Dpvf.js → index-Scxs_wcm-BAjU0Cob.js} +16 -16
  370. package/dist/index-Scxs_wcm-BAjU0Cob.js.map +1 -0
  371. package/dist/index-Scxs_wcm-DUDU-Gll.cjs +2 -0
  372. package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +1 -0
  373. package/dist/{index-DoS4bGNa-C3DbPpy3.cjs → index-w64Zl8io-DrMm5QSb.cjs} +2 -2
  374. package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +1 -0
  375. package/dist/{index-DoS4bGNa-Bgab95kx.js → index-w64Zl8io-ihagHOdP.js} +2 -2
  376. package/dist/index-w64Zl8io-ihagHOdP.js.map +1 -0
  377. package/dist/index.cjs +1 -1
  378. package/dist/index.d.ts +92 -17
  379. package/dist/index.js +3 -3
  380. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +2 -0
  381. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +1 -0
  382. package/dist/numberFormattingFunction-DqMf_v1m.js +28 -0
  383. package/dist/numberFormattingFunction-DqMf_v1m.js.map +1 -0
  384. package/dist/{proxy--_f6k3NR.js → proxy-BsxtcZKa.js} +2 -2
  385. package/dist/{proxy--_f6k3NR.js.map → proxy-BsxtcZKa.js.map} +1 -1
  386. package/dist/{proxy-C4-uo6nS.cjs → proxy-CqH8m8IQ.cjs} +2 -2
  387. package/dist/{proxy-C4-uo6nS.cjs.map → proxy-CqH8m8IQ.cjs.map} +1 -1
  388. package/dist/{string2HTML-DUYZT1L9.js → string2HTML-BrFperRM.js} +2 -2
  389. package/dist/{string2HTML-DUYZT1L9.js.map → string2HTML-BrFperRM.js.map} +1 -1
  390. package/dist/{string2HTML-xx9MzTtY.cjs → string2HTML-ZoGd08P_.cjs} +2 -2
  391. package/dist/{string2HTML-xx9MzTtY.cjs.map → string2HTML-ZoGd08P_.cjs.map} +1 -1
  392. package/dist/style.css +1 -1
  393. package/dist/{use-in-view-DqvKAveg.js → use-in-view-KOXq5Kmc.js} +2 -2
  394. package/dist/{use-in-view-DqvKAveg.js.map → use-in-view-KOXq5Kmc.js.map} +1 -1
  395. package/dist/{use-in-view-C3o_ntMv.cjs → use-in-view-dnRv_qqF.cjs} +2 -2
  396. package/dist/{use-in-view-C3o_ntMv.cjs.map → use-in-view-dnRv_qqF.cjs.map} +1 -1
  397. package/dist/utils.cjs +1 -1
  398. package/dist/utils.d.ts +9 -18
  399. package/dist/utils.js +1 -1
  400. package/dist/x-BXShoIAM-BC2sxios.cjs +2 -0
  401. package/dist/x-BXShoIAM-BC2sxios.cjs.map +1 -0
  402. package/dist/{x-BBpi7a_7-BsvWCzYM.js → x-BXShoIAM-D6VWO6z5.js} +3 -5
  403. package/dist/x-BXShoIAM-D6VWO6z5.js.map +1 -0
  404. package/package.json +2 -2
  405. package/dist/DropdownSelect-B2WTeedJ.js.map +0 -1
  406. package/dist/DropdownSelect-NNpOs7DX.cjs.map +0 -1
  407. package/dist/GraphEl-CnJf8b50.js.map +0 -1
  408. package/dist/GraphEl-D_w0Qak4.cjs +0 -2
  409. package/dist/GraphEl-D_w0Qak4.cjs.map +0 -1
  410. package/dist/XTicksAndGridLines-BDmF9etl.js +0 -38
  411. package/dist/XTicksAndGridLines-BDmF9etl.js.map +0 -1
  412. package/dist/XTicksAndGridLines-CekrPykD.cjs +0 -2
  413. package/dist/XTicksAndGridLines-CekrPykD.cjs.map +0 -1
  414. package/dist/YTicksAndGridLines-C3GW1xFG.js +0 -38
  415. package/dist/YTicksAndGridLines-C3GW1xFG.js.map +0 -1
  416. package/dist/YTicksAndGridLines-UzVC5eBM.cjs +0 -2
  417. package/dist/YTicksAndGridLines-UzVC5eBM.cjs.map +0 -1
  418. package/dist/checkIfMultiple-B97uOUVq.js.map +0 -1
  419. package/dist/checkIfMultiple-TOaaUwS7.cjs.map +0 -1
  420. package/dist/getSliderMarks-CIuSoedo.cjs +0 -2
  421. package/dist/getSliderMarks-CIuSoedo.cjs.map +0 -1
  422. package/dist/getSliderMarks-vXsR8RrR.js.map +0 -1
  423. package/dist/index-C6VwVS8W.js +0 -378
  424. package/dist/index-C6VwVS8W.js.map +0 -1
  425. package/dist/index-CHPV5EwG-6v2a2njQ.cjs.map +0 -1
  426. package/dist/index-CHPV5EwG-BCLAYDCV.js.map +0 -1
  427. package/dist/index-D6CYcVc7-BOa7Dpvf.js.map +0 -1
  428. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs +0 -2
  429. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs.map +0 -1
  430. package/dist/index-DoS4bGNa-Bgab95kx.js.map +0 -1
  431. package/dist/index-DoS4bGNa-C3DbPpy3.cjs.map +0 -1
  432. package/dist/index-_TlgeI_i.cjs +0 -2
  433. package/dist/index-_TlgeI_i.cjs.map +0 -1
  434. package/dist/numberFormattingFunction-02t-wJta.cjs +0 -2
  435. package/dist/numberFormattingFunction-02t-wJta.cjs.map +0 -1
  436. package/dist/numberFormattingFunction-14YCbkN2.js +0 -13
  437. package/dist/numberFormattingFunction-14YCbkN2.js.map +0 -1
  438. package/dist/x-BBpi7a_7-BsvWCzYM.js.map +0 -1
  439. package/dist/x-BBpi7a_7-DXYIEFwN.cjs +0 -2
  440. package/dist/x-BBpi7a_7-DXYIEFwN.cjs.map +0 -1
@@ -1,122 +1,122 @@
1
- import { j as o, m as wt, c as _t } from "./index-CHPV5EwG-BCLAYDCV.js";
2
- import { useMemo as jt, useState as D, useRef as $e, useEffect as Pe, useEffectEvent as kt } from "react";
3
- import { f as Pt, p as $t } from "./parse-Dv4of-PN.js";
4
- import { g as It, N as zt } from "./getSliderMarks-vXsR8RrR.js";
5
- import { w as Wt } from "./Spinner-CtJETd5V.js";
6
- import { i as Lt } from "./index-Bwrro8-q.js";
7
- import { i as Ct, z as Vt, a as At, g as Ft, b as Rt, c as Tt, d as Gt, e as Ut, f as Ht } from "./index-CKpKc9DR.js";
8
- import { _ as qt } from "./Typography-DMVW6JnV.js";
9
- import { i as Xt } from "./index-DCsFBfJ_.js";
10
- import { T as Yt } from "./Tooltip-CohiIbLZ.js";
11
- import { Colors as k } from "./Colors.js";
12
- import { X as Kt, P as Zt, e as Jt } from "./index-CZ0elhKR.js";
13
- import { D as Qt } from "./DetailsModal-C3qlUyFK.js";
14
- import { s as eo } from "./pow-BXYLJHCq.js";
15
- import { s as bt } from "./select-DKy99ogv.js";
16
- import { m as it } from "./proxy--_f6k3NR.js";
17
- import { u as to } from "./use-in-view-DqvKAveg.js";
18
- import { A as oo } from "./index-Co3YGYe1.js";
19
- import { GraphFooter as ao } from "./GraphFooter.js";
20
- import { GraphHeader as ro } from "./GraphHeader.js";
21
- import { f as Ot } from "./fetchAndParseData-BAXhgTDM.js";
22
- import { c as io } from "./checkIfNullOrUndefined-DmfiKkNw.js";
1
+ import { j as o, m as bt, c as Et } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useMemo as Dt, useState as D, useRef as $e, useEffect as Ie, useEffectEvent as jt } from "react";
3
+ import { f as Bt, p as _t } from "./parse-Dv4of-PN.js";
4
+ import { g as It, N as $t } from "./getSliderMarks-X-_goqH9.js";
5
+ import { w as Pt } from "./Spinner-B2IIKg9r.js";
6
+ import { i as zt } from "./index-Bwrro8-q.js";
7
+ import { i as wt, z as Wt, a as Lt, g as Vt, b as At, c as Ft, d as Rt, e as Tt, f as Gt } from "./index-CKpKc9DR.js";
8
+ import { _ as Ut } from "./Typography-BO0gQDIT.js";
9
+ import { i as Ht } from "./index-DCsFBfJ_.js";
10
+ import { T as qt } from "./Tooltip-Bj-s__cI.js";
11
+ import { Colors as w } from "./Colors.js";
12
+ import { X as Xt, E as Yt, P as Kt, e as Zt } from "./index-ApTBN0kp.js";
13
+ import { D as Jt } from "./DetailsModal-B2XBWR7w.js";
14
+ import { s as Qt } from "./pow-BXYLJHCq.js";
15
+ import { s as vt } from "./select-DKy99ogv.js";
16
+ import { m as nt } from "./proxy-BsxtcZKa.js";
17
+ import { u as eo } from "./use-in-view-KOXq5Kmc.js";
18
+ import { A as to } from "./index-Cv_5q6Rb.js";
19
+ import { GraphFooter as oo } from "./GraphFooter.js";
20
+ import { GraphHeader as ao } from "./GraphHeader.js";
21
+ import { f as Ct } from "./fetchAndParseData-BAXhgTDM.js";
22
+ import { c as ro } from "./checkIfNullOrUndefined-DmfiKkNw.js";
23
23
  import { u as no } from "./uniqBy-BHy4I8PK.js";
24
- import { a as lo, G as so } from "./GraphContainer-DwMxWRCi.js";
25
- function co(i) {
24
+ import { a as io, G as lo } from "./GraphContainer-B8ZqOzKI.js";
25
+ function so(n) {
26
26
  const {
27
27
  data: e,
28
28
  colors: a,
29
- mapData: Q,
30
- colorLegendTitle: _,
31
- colorDomain: g,
32
- radius: N,
33
- height: h,
34
- width: m,
35
- scale: u,
36
- centerPoint: P,
37
- tooltip: ee,
38
- showLabels: ge,
39
- mapBorderWidth: ye,
40
- mapBorderColor: ve,
41
- mapNoDataColor: xe,
42
- onSeriesMouseOver: te,
43
- showColorScale: Ie,
29
+ mapData: K,
30
+ colorLegendTitle: B,
31
+ colorDomain: y,
32
+ radius: S,
33
+ height: g,
34
+ width: p,
35
+ scale: h,
36
+ centerPoint: _,
37
+ tooltip: Z,
38
+ showLabels: he,
39
+ mapBorderWidth: ge,
40
+ mapBorderColor: ye,
41
+ mapNoDataColor: ve,
42
+ onSeriesMouseOver: J,
43
+ showColorScale: Pe,
44
44
  zoomScaleExtend: ze,
45
45
  zoomTranslateExtend: We,
46
- highlightedDataPoints: be,
47
- onSeriesMouseClick: oe,
48
- resetSelectionOnDoubleClick: De,
46
+ highlightedDataPoints: xe,
47
+ onSeriesMouseClick: Q,
48
+ resetSelectionOnDoubleClick: be,
49
49
  detailsOnClick: v,
50
- styles: ae,
51
- classNames: L,
52
- mapProjection: V,
50
+ styles: ee,
51
+ classNames: W,
52
+ mapProjection: L,
53
53
  zoomInteraction: C,
54
54
  animate: x,
55
- dimmedOpacity: re,
56
- customLayers: A,
57
- maxRadiusValue: we,
55
+ dimmedOpacity: te,
56
+ customLayers: oe,
57
+ maxRadiusValue: De,
58
58
  collapseColorScaleByDefault: je,
59
- projectionRotate: $,
60
- rewindCoordinatesInMapData: F,
61
- overlayMapData: R,
59
+ projectionRotate: I,
60
+ rewindCoordinatesInMapData: V,
61
+ overlayMapData: A,
62
62
  overlayMapBorderColor: Le,
63
63
  overlayMapBorderWidth: Ve
64
- } = i, T = jt(() => F ? Ct(Q, {
64
+ } = n, F = Dt(() => V ? wt(K, {
65
65
  reverse: !0
66
- }) : Q, [Q, F]), Ae = jt(() => !F || !R ? R : Ct(R, {
66
+ }) : K, [K, V]), Ae = Dt(() => !V || !A ? A : wt(A, {
67
67
  reverse: !0
68
- }), [R, F]), [ie, c] = D(void 0), [p, ke] = D(je === void 0 ? !(m < 680) : !je), ne = $e(null), [le, se] = D(void 0), [G, I] = D(void 0), [U, H] = D(void 0), [q, ce] = D(void 0), d = $e(null), b = to(d, {
68
+ }), [A, V]), [ae, d] = D(void 0), [u, we] = D(je === void 0 ? !(p < 680) : !je), re = $e(null), [ne, ie] = D(void 0), [R, $] = D(void 0), [T, G] = D(void 0), [U, le] = D(void 0), m = $e(null), b = eo(m, {
69
69
  once: x.once,
70
70
  amount: x.amount
71
- }), X = $e(null), O = e.filter((t) => t.radius === void 0 || t.radius === null).length !== e.length ? eo().domain([0, we]).range([0.25, N]).nice() : void 0;
72
- Pe(() => {
73
- const t = bt(X.current), f = bt(d.current), r = (y) => {
71
+ }), H = $e(null), k = e.filter((t) => t.radius === void 0 || t.radius === null).length !== e.length ? Qt().domain([0, De]).range([0.25, S]).nice() : void 0;
72
+ Ie(() => {
73
+ const t = vt(H.current), f = vt(m.current), r = (c) => {
74
74
  if (C === "noZoom") return !1;
75
- if (C === "button") return !y.type.includes("wheel");
76
- const Me = y.type === "wheel", w = y.type.startsWith("touch"), W = y.type === "mousedown" || y.type === "mousemove";
77
- return w ? !0 : Me ? C === "scroll" ? !0 : y.ctrlKey : W && !y.button && !y.ctrlKey;
78
- }, Z = Vt().scaleExtent(ze).translateExtent(We || [[-20, -20], [m + 20, h + 20]]).filter(r).on("zoom", ({
79
- transform: y
75
+ if (C === "button") return !c.type.includes("wheel");
76
+ const z = c.type === "wheel", Me = c.type.startsWith("touch"), Ne = c.type === "mousedown" || c.type === "mousemove";
77
+ return Me ? !0 : z ? C === "scroll" ? !0 : c.ctrlKey : Ne && !c.button && !c.ctrlKey;
78
+ }, ce = Wt().scaleExtent(ze).translateExtent(We || [[-20, -20], [p + 20, g + 20]]).filter(r).on("zoom", ({
79
+ transform: c
80
80
  }) => {
81
- t.attr("transform", y);
81
+ t.attr("transform", c);
82
82
  });
83
- f.call(Z), ne.current = Z;
84
- }, [h, m, C]);
85
- const z = At(T), M = Xt(T), Ce = (z[2] - z[0]) * 1.15, Oe = (z[3] - z[1]) * 1.15, Se = m * 190 / 960 * 360 / Ce, Ne = h * 190 / 678 * 180 / Oe, S = u * Math.min(Se, Ne), Y = V === "mercator" ? Ft().rotate($).center(P || M.geometry.coordinates).translate([m / 2, h / 2]).scale(S) : V === "equalEarth" ? Rt().rotate($).center(P || M.geometry.coordinates).translate([m / 2, h / 2]).scale(S) : V === "naturalEarth" ? Tt().rotate($).center(P || M.geometry.coordinates).translate([m / 2, h / 2]).scale(S) : V === "orthographic" ? Gt().rotate($).center(P || M.geometry.coordinates).translate([m / 2, h / 2]).scale(S) : Ut().rotate($).center(P || M.geometry.coordinates).translate([m / 2, h / 2]).scale(S), K = Ht().projection(Y), de = (t) => {
86
- if (!d.current || !ne.current) return;
87
- bt(d.current).call(ne.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
83
+ f.call(ce), re.current = ce;
84
+ }, [g, p, C]);
85
+ const P = Lt(F), M = Ht(F), Ce = (P[2] - P[0]) * 1.15, ke = (P[3] - P[1]) * 1.15, Oe = p * 190 / 960 * 360 / Ce, Se = g * 190 / 678 * 180 / ke, O = h * Math.min(Oe, Se), q = L === "mercator" ? Vt().rotate(I).center(_ || M.geometry.coordinates).translate([p / 2, g / 2]).scale(O) : L === "equalEarth" ? At().rotate(I).center(_ || M.geometry.coordinates).translate([p / 2, g / 2]).scale(O) : L === "naturalEarth" ? Ft().rotate(I).center(_ || M.geometry.coordinates).translate([p / 2, g / 2]).scale(O) : L === "orthographic" ? Rt().rotate(I).center(_ || M.geometry.coordinates).translate([p / 2, g / 2]).scale(O) : Tt().rotate(I).center(_ || M.geometry.coordinates).translate([p / 2, g / 2]).scale(O), X = Gt().projection(q), se = (t) => {
86
+ if (!m.current || !re.current) return;
87
+ vt(m.current).call(re.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
88
88
  };
89
89
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
90
90
  /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
91
- /* @__PURE__ */ o.jsx(it.svg, { width: `${m}px`, height: `${h}px`, viewBox: `0 0 ${m} ${h}`, ref: d, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: X, children: [
92
- A.filter((t) => t.position === "before").map((t) => t.layer),
93
- T.features.map((t, f) => {
94
- const r = K(t);
91
+ /* @__PURE__ */ o.jsx(nt.svg, { width: `${p}px`, height: `${g}px`, viewBox: `0 0 ${p} ${g}`, ref: m, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: H, children: [
92
+ oe.filter((t) => t.position === "before").map((t) => t.layer),
93
+ F.features.map((t, f) => {
94
+ const r = X(t);
95
95
  return r ? /* @__PURE__ */ o.jsx("path", { d: r, style: {
96
- stroke: ve,
97
- strokeWidth: ye,
98
- fill: xe,
96
+ stroke: ye,
97
+ strokeWidth: ge,
98
+ fill: ve,
99
99
  vectorEffect: "non-scaling-stroke"
100
100
  } }, f) : null;
101
101
  }),
102
102
  Ae?.features.map((t, f) => {
103
- const r = K(t);
103
+ const r = X(t);
104
104
  return r ? /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("path", { d: r, style: {
105
- stroke: Le || ve,
106
- strokeWidth: Ve || ye + 1,
105
+ stroke: Le || ye,
106
+ strokeWidth: Ve || ge + 1,
107
107
  fill: "none",
108
108
  pointerEvents: "none",
109
109
  vectorEffect: "non-scaling-stroke"
110
110
  } }) }, f) : null;
111
111
  }),
112
- /* @__PURE__ */ o.jsx(oo, { children: e.map((t) => {
113
- const f = e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[g.indexOf(`${t.color}`)] : k.gray;
114
- return /* @__PURE__ */ o.jsxs(it.g, { className: "undp-map-dots", variants: {
112
+ /* @__PURE__ */ o.jsx(to, { children: e.map((t) => {
113
+ const f = e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[y.indexOf(`${t.color}`)] : w.gray;
114
+ return /* @__PURE__ */ o.jsxs(nt.g, { className: "undp-map-dots", variants: {
115
115
  initial: {
116
116
  opacity: 0
117
117
  },
118
118
  whileInView: {
119
- opacity: ie ? ie === f ? 1 : re : be.length !== 0 ? be.indexOf(t.label || "") !== -1 ? 1 : re : 1,
119
+ opacity: ae ? ae === f ? 1 : te : xe ? xe.indexOf(t.label || "") !== -1 ? 1 : te : 1,
120
120
  transition: {
121
121
  duration: x.duration
122
122
  }
@@ -127,24 +127,24 @@ function co(i) {
127
127
  duration: x.duration
128
128
  }
129
129
  }, onMouseEnter: (r) => {
130
- I(t), ce(r.clientY), H(r.clientX), te?.(t);
130
+ $(t), le(r.clientY), G(r.clientX), J?.(t);
131
131
  }, onMouseMove: (r) => {
132
- I(t), ce(r.clientY), H(r.clientX);
132
+ $(t), le(r.clientY), G(r.clientX);
133
133
  }, onMouseLeave: () => {
134
- I(void 0), H(void 0), ce(void 0), te?.(void 0);
134
+ $(void 0), G(void 0), le(void 0), J?.(void 0);
135
135
  }, onClick: () => {
136
- (oe || v) && (Lt(le, t) && De ? (se(void 0), oe?.(void 0)) : (se(t), oe?.(t)));
137
- }, transform: `translate(${Y([t.long, t.lat])[0]},${Y([t.long, t.lat])[1]})`, children: [
138
- /* @__PURE__ */ o.jsx(it.circle, { cx: 0, cy: 0, variants: {
136
+ (Q || v) && (zt(ne, t) && be ? (ie(void 0), Q?.(void 0)) : (ie(t), Q?.(t)));
137
+ }, transform: `translate(${q([t.long, t.lat])[0]},${q([t.long, t.lat])[1]})`, children: [
138
+ /* @__PURE__ */ o.jsx(nt.circle, { cx: 0, cy: 0, variants: {
139
139
  initial: {
140
140
  r: 0,
141
- fill: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[g.indexOf(`${t.color}`)] : k.gray,
142
- stroke: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[g.indexOf(`${t.color}`)] : k.gray
141
+ fill: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[y.indexOf(`${t.color}`)] : w.gray,
142
+ stroke: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[y.indexOf(`${t.color}`)] : w.gray
143
143
  },
144
144
  whileInView: {
145
- r: O ? O(t.radius || 0) : N,
146
- fill: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[g.indexOf(`${t.color}`)] : k.gray,
147
- stroke: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[g.indexOf(`${t.color}`)] : k.gray,
145
+ r: k ? k(t.radius || 0) : S,
146
+ fill: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[y.indexOf(`${t.color}`)] : w.gray,
147
+ stroke: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[y.indexOf(`${t.color}`)] : w.gray,
148
148
  transition: {
149
149
  duration: x.duration
150
150
  }
@@ -158,219 +158,216 @@ function co(i) {
158
158
  fillOpacity: 0.8,
159
159
  vectorEffect: "non-scaling-stroke"
160
160
  } }),
161
- ge && t.label ? /* @__PURE__ */ o.jsx(it.text, { variants: {
161
+ he && t.label ? /* @__PURE__ */ o.jsx(nt.text, { variants: {
162
162
  initial: {
163
163
  opacity: 0,
164
- x: O ? O(t.radius || 0) : N,
165
- fill: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[g.indexOf(`${t.color}`)] : k.gray
164
+ x: k ? k(t.radius || 0) : S,
165
+ fill: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[y.indexOf(`${t.color}`)] : w.gray
166
166
  },
167
167
  whileInView: {
168
168
  opacity: 1,
169
- x: O ? O(t.radius || 0) : N,
169
+ x: k ? k(t.radius || 0) : S,
170
170
  transition: {
171
171
  duration: x.duration
172
172
  },
173
- fill: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[g.indexOf(`${t.color}`)] : k.gray
173
+ fill: e.filter((r) => r.color).length === 0 ? a[0] : t.color ? a[y.indexOf(`${t.color}`)] : w.gray
174
174
  }
175
175
  }, initial: "initial", animate: b ? "whileInView" : "initial", exit: {
176
176
  opacity: 0,
177
177
  transition: {
178
178
  duration: x.duration
179
179
  }
180
- }, y: 0, className: wt("graph-value text-sm", L?.graphObjectValues), style: {
180
+ }, y: 0, className: bt("graph-value text-sm", W?.graphObjectValues), style: {
181
181
  textAnchor: "start",
182
182
  vectorEffect: "non-scaling-stroke",
183
- ...ae?.graphObjectValues || {}
183
+ ...ee?.graphObjectValues || {}
184
184
  }, dx: 4, dy: 5, children: t.label }) : null
185
185
  ] }, t.label || `${t.lat}-${t.long}`);
186
186
  }) }),
187
- A.filter((t) => t.position === "after").map((t) => t.layer)
187
+ oe.filter((t) => t.position === "after").map((t) => t.layer)
188
188
  ] }) }),
189
- e.filter((t) => t.color).length === 0 || Ie === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: wt("absolute left-4 bottom-4 map-color-legend", L?.colorLegend), children: p ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
189
+ e.filter((t) => t.color).length === 0 || Pe === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: bt("absolute left-4 bottom-4 map-color-legend", W?.colorLegend), children: u ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
190
190
  /* @__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: () => {
191
- ke(!1);
192
- }, children: /* @__PURE__ */ o.jsx(Kt, {}) }),
191
+ we(!1);
192
+ }, children: /* @__PURE__ */ o.jsx(Xt, {}) }),
193
193
  /* @__PURE__ */ o.jsxs("div", { className: "p-2", style: {
194
194
  backgroundColor: "rgba(240,240,240, 0.7)"
195
195
  }, children: [
196
- _ && _ !== "" ? /* @__PURE__ */ o.jsx("p", { className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
196
+ B && B !== "" ? /* @__PURE__ */ o.jsx("p", { className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
197
197
  display: "-webkit-box",
198
198
  WebkitLineClamp: "1",
199
199
  WebkitBoxOrient: "vertical"
200
- }, children: _ }) : null,
201
- /* @__PURE__ */ o.jsx("div", { className: "flex flex-col gap-3", children: g.map((t, f) => /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
202
- c(a[f % a.length]);
200
+ }, children: B }) : null,
201
+ /* @__PURE__ */ o.jsx("div", { className: "flex flex-col gap-3", children: y.map((t, f) => /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
202
+ d(a[f % a.length]);
203
203
  }, onMouseLeave: () => {
204
- c(void 0);
204
+ d(void 0);
205
205
  }, children: [
206
206
  /* @__PURE__ */ o.jsx("div", { className: "w-2 h-2 rounded-full", style: {
207
207
  backgroundColor: a[f % a.length]
208
208
  } }),
209
- /* @__PURE__ */ o.jsx(qt, { size: "sm", marginBottom: "none", leading: "none", children: t })
209
+ /* @__PURE__ */ o.jsx(Ut, { size: "sm", marginBottom: "none", leading: "none", children: t })
210
210
  ] }, f)) })
211
211
  ] })
212
- ] }) : /* @__PURE__ */ o.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start", onClick: () => {
213
- ke(!0);
214
- }, children: /* @__PURE__ */ o.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" }) }) }),
212
+ ] }) : /* @__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: () => {
213
+ we(!0);
214
+ }, children: /* @__PURE__ */ o.jsx(Yt, {}) }) }),
215
215
  C === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
216
- /* @__PURE__ */ o.jsx("button", { onClick: () => de("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: "+" }),
217
- /* @__PURE__ */ o.jsx("button", { onClick: () => de("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: "–" })
216
+ /* @__PURE__ */ o.jsx("button", { onClick: () => se("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: "+" }),
217
+ /* @__PURE__ */ o.jsx("button", { onClick: () => se("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: "–" })
218
218
  ] })
219
219
  ] }),
220
- v && le !== void 0 ? /* @__PURE__ */ o.jsx(Qt, { body: v, data: le, setData: se, className: L?.modal }) : null,
221
- G && ee && U && q ? /* @__PURE__ */ o.jsx(Yt, { data: G, body: ee, xPos: U, yPos: q, backgroundStyle: ae?.tooltip, className: L?.tooltip }) : null
220
+ v && ne !== void 0 ? /* @__PURE__ */ o.jsx(Jt, { body: v, data: ne, setData: ie, className: W?.modal }) : null,
221
+ R && Z && T && U ? /* @__PURE__ */ o.jsx(qt, { data: R, body: Z, xPos: T, yPos: U, backgroundStyle: ee?.tooltip, className: W?.tooltip }) : null
222
222
  ] });
223
223
  }
224
- function qo(i) {
225
- const e = _t.c(130), {
224
+ function Ho(n) {
225
+ const e = Et.c(128), {
226
226
  data: a,
227
- mapData: Q,
228
- graphTitle: _,
229
- colors: g,
230
- sources: N,
231
- graphDescription: h,
232
- height: m,
233
- width: u,
234
- footNote: P,
235
- colorLegendTitle: ee,
236
- colorDomain: ge,
237
- radius: ye,
238
- scale: ve,
239
- centerPoint: xe,
240
- padding: te,
241
- mapBorderWidth: Ie,
227
+ mapData: K,
228
+ graphTitle: B,
229
+ colors: y,
230
+ sources: S,
231
+ graphDescription: g,
232
+ height: p,
233
+ width: h,
234
+ footNote: _,
235
+ colorLegendTitle: Z,
236
+ colorDomain: he,
237
+ radius: ge,
238
+ scale: ye,
239
+ centerPoint: ve,
240
+ padding: J,
241
+ mapBorderWidth: Pe,
242
242
  mapNoDataColor: ze,
243
243
  backgroundColor: We,
244
- showLabels: be,
245
- mapBorderColor: oe,
246
- tooltip: De,
244
+ showLabels: xe,
245
+ mapBorderColor: Q,
246
+ tooltip: be,
247
247
  relativeHeight: v,
248
- onSeriesMouseOver: ae,
249
- isWorldMap: L,
250
- showColorScale: V,
248
+ onSeriesMouseOver: ee,
249
+ isWorldMap: W,
250
+ showColorScale: L,
251
251
  zoomScaleExtend: C,
252
252
  zoomTranslateExtend: x,
253
- graphID: re,
254
- highlightedDataPoints: A,
255
- onSeriesMouseClick: we,
253
+ graphID: te,
254
+ highlightedDataPoints: oe,
255
+ onSeriesMouseClick: De,
256
256
  graphDownload: je,
257
- dataDownload: $,
258
- showAntarctica: F,
259
- language: R,
257
+ dataDownload: I,
258
+ showAntarctica: V,
259
+ language: A,
260
260
  minHeight: Le,
261
261
  theme: Ve,
262
- ariaLabel: T,
262
+ ariaLabel: F,
263
263
  resetSelectionOnDoubleClick: Ae,
264
- detailsOnClick: ie,
265
- styles: c,
266
- classNames: p,
267
- mapProjection: ke,
268
- zoomInteraction: ne,
269
- animate: le,
270
- dimmedOpacity: se,
271
- customLayers: G,
272
- maxRadiusValue: I,
273
- timeline: U,
274
- collapseColorScaleByDefault: H,
275
- projectionRotate: q,
276
- rewindCoordinatesInMapData: ce,
277
- mapOverlay: d
278
- } = i, b = Q === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : Q, X = P === 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." : P, O = ye === void 0 ? 5 : ye, z = ve === void 0 ? 0.95 : ve, M = Ie === void 0 ? 0.5 : Ie, Ce = ze === void 0 ? k.light.graphNoData : ze, Oe = We === void 0 ? !1 : We, Se = be === void 0 ? !1 : be, Ne = oe === void 0 ? k.light.grays["gray-500"] : oe, S = L === void 0 ? !0 : L, Y = V === void 0 ? !0 : V;
279
- let K;
280
- e[0] !== C ? (K = C === void 0 ? [0.8, 6] : C, e[0] = C, e[1] = K) : K = e[1];
281
- const de = K;
282
- let t;
283
- e[2] !== A ? (t = A === void 0 ? [] : A, e[2] = A, e[3] = t) : t = e[3];
284
- const f = t, r = je === void 0 ? !1 : je, Z = $ === void 0 ? !1 : $, y = F === void 0 ? !1 : F, Me = R === void 0 ? "en" : R, w = Le === void 0 ? 0 : Le, W = Ve === void 0 ? "light" : Ve, nt = Ae === void 0 ? !0 : Ae, lt = ke === void 0 ? "naturalEarth" : ke, st = ne === void 0 ? "button" : ne, Fe = le === void 0 ? !1 : le, ct = se === void 0 ? 0.3 : se;
264
+ detailsOnClick: ae,
265
+ styles: d,
266
+ classNames: u,
267
+ mapProjection: we,
268
+ zoomInteraction: re,
269
+ animate: ne,
270
+ dimmedOpacity: ie,
271
+ customLayers: R,
272
+ maxRadiusValue: $,
273
+ timeline: T,
274
+ collapseColorScaleByDefault: G,
275
+ projectionRotate: U,
276
+ rewindCoordinatesInMapData: le,
277
+ mapOverlay: m
278
+ } = n, b = K === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : K, 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." : _, k = ge === void 0 ? 5 : ge, P = ye === void 0 ? 0.95 : ye, M = Pe === void 0 ? 0.5 : Pe, Ce = ze === void 0 ? w.light.graphNoData : ze, ke = We === void 0 ? !1 : We, Oe = xe === void 0 ? !1 : xe, Se = Q === void 0 ? w.light.grays["gray-500"] : Q, O = W === void 0 ? !0 : W, q = L === void 0 ? !0 : L;
279
+ let X;
280
+ e[0] !== C ? (X = C === void 0 ? [0.8, 6] : C, e[0] = C, e[1] = X) : X = e[1];
281
+ const se = X, t = je === void 0 ? !1 : je, f = I === void 0 ? !1 : I, r = V === void 0 ? !1 : V, ce = A === void 0 ? "en" : A, c = Le === void 0 ? 0 : Le, z = Ve === void 0 ? "light" : Ve, Me = Ae === void 0 ? !0 : Ae, Ne = we === void 0 ? "naturalEarth" : we, it = re === void 0 ? "button" : re, Fe = ne === void 0 ? !1 : ne, lt = ie === void 0 ? 0.3 : ie;
285
282
  let Re;
286
- e[4] !== G ? (Re = G === void 0 ? [] : G, e[4] = G, e[5] = Re) : Re = e[5];
287
- const dt = Re;
283
+ e[2] !== R ? (Re = R === void 0 ? [] : R, e[2] = R, e[3] = Re) : Re = e[3];
284
+ const st = Re;
288
285
  let Te;
289
- e[6] !== U ? (Te = U === void 0 ? {
286
+ e[4] !== T ? (Te = T === void 0 ? {
290
287
  enabled: !1,
291
288
  autoplay: !1,
292
289
  showOnlyActiveDate: !0
293
- } : U, e[6] = U, e[7] = Te) : Te = e[7];
294
- const n = Te;
290
+ } : T, e[4] = T, e[5] = Te) : Te = e[5];
291
+ const i = Te;
295
292
  let Ge;
296
- e[8] !== q ? (Ge = q === void 0 ? [0, 0] : q, e[8] = q, e[9] = Ge) : Ge = e[9];
297
- const mt = Ge, pt = ce === void 0 ? !0 : ce, [J, St] = D(0), [Ee, Nt] = D(0), [E, Mt] = D(n.autoplay);
293
+ e[6] !== U ? (Ge = U === void 0 ? [0, 0] : U, e[6] = U, e[7] = Ge) : Ge = e[7];
294
+ const ct = Ge, dt = le === void 0 ? !0 : le, [Y, kt] = D(0), [Ee, Ot] = D(0), [N, St] = D(i.autoplay);
298
295
  let Be;
299
- if (e[10] !== a || e[11] !== n.dateFormat) {
296
+ if (e[8] !== a || e[9] !== i.dateFormat) {
300
297
  let l;
301
- e[13] !== n.dateFormat ? (l = (j) => $t(`${j.date}`, n.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[13] = n.dateFormat, e[14] = l) : l = e[14], Be = [...new Set(a.filter(wo).map(l))], Be.sort(Do), e[10] = a, e[11] = n.dateFormat, e[12] = Be;
298
+ e[11] !== i.dateFormat ? (l = (j) => _t(`${j.date}`, i.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = i.dateFormat, e[12] = l) : l = e[12], Be = [...new Set(a.filter(Do).map(l))], Be.sort(bo), e[8] = a, e[9] = i.dateFormat, e[10] = Be;
302
299
  } else
303
- Be = e[12];
304
- const s = Be, [B, ut] = D(n.autoplay ? 0 : s.length - 1), [me, Et] = D(void 0), [ft, Bt] = D(void 0), ht = $e(null), Dt = $e(null);
300
+ Be = e[10];
301
+ const s = Be, [E, mt] = D(i.autoplay ? 0 : s.length - 1), [de, Mt] = D(void 0), [pt, Nt] = D(void 0), ut = $e(null), xt = $e(null);
305
302
  let Ue, He;
306
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ue = () => {
303
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ue = () => {
307
304
  const l = new ResizeObserver((j) => {
308
- St(j[0].target.clientWidth || 620), Nt(j[0].target.clientHeight || 480);
305
+ kt(j[0].target.clientWidth || 620), Ot(j[0].target.clientHeight || 480);
309
306
  });
310
- return ht.current && l.observe(ht.current), () => l.disconnect();
311
- }, He = [], e[15] = Ue, e[16] = He) : (Ue = e[15], He = e[16]), Pe(Ue, He);
307
+ return ut.current && l.observe(ut.current), () => l.disconnect();
308
+ }, He = [], e[13] = Ue, e[14] = He) : (Ue = e[13], He = e[14]), Ie(Ue, He);
312
309
  let qe;
313
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qe = (l) => {
314
- Et(l);
315
- }, e[17] = qe) : qe = e[17];
316
- const Xe = kt(qe);
310
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qe = (l) => {
311
+ Mt(l);
312
+ }, e[15] = qe) : qe = e[15];
313
+ const Xe = jt(qe);
317
314
  let Ye;
318
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ye = (l) => {
319
- Bt(l);
320
- }, e[18] = Ye) : Ye = e[18];
321
- const _e = kt(Ye);
315
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ye = (l) => {
316
+ Nt(l);
317
+ }, e[16] = Ye) : Ye = e[16];
318
+ const _e = jt(Ye);
322
319
  let Ke;
323
- e[19] !== b || e[20] !== Xe ? (Ke = () => {
324
- typeof b == "string" ? Ot(b).then((j) => {
320
+ e[17] !== b || e[18] !== Xe ? (Ke = () => {
321
+ typeof b == "string" ? Ct(b).then((j) => {
325
322
  Xe(j);
326
323
  }) : Xe(b);
327
- }, e[19] = b, e[20] = Xe, e[21] = Ke) : Ke = e[21];
324
+ }, e[17] = b, e[18] = Xe, e[19] = Ke) : Ke = e[19];
328
325
  let Ze;
329
- e[22] !== b ? (Ze = [b], e[22] = b, e[23] = Ze) : Ze = e[23], Pe(Ke, Ze);
326
+ e[20] !== b ? (Ze = [b], e[20] = b, e[21] = Ze) : Ze = e[21], Ie(Ke, Ze);
330
327
  let Je;
331
- e[24] !== d?.mapData || e[25] !== _e ? (Je = () => {
332
- d?.mapData || _e(void 0), typeof d?.mapData == "string" ? Ot(d?.mapData).then((j) => {
328
+ e[22] !== m?.mapData || e[23] !== _e ? (Je = () => {
329
+ m?.mapData || _e(void 0), typeof m?.mapData == "string" ? Ct(m?.mapData).then((j) => {
333
330
  _e(j);
334
- }) : _e(d?.mapData);
335
- }, e[24] = d?.mapData, e[25] = _e, e[26] = Je) : Je = e[26];
336
- const gt = d?.mapData;
331
+ }) : _e(m?.mapData);
332
+ }, e[22] = m?.mapData, e[23] = _e, e[24] = Je) : Je = e[24];
333
+ const ft = m?.mapData;
337
334
  let Qe;
338
- e[27] !== gt ? (Qe = [gt], e[27] = gt, e[28] = Qe) : Qe = e[28], Pe(Je, Qe);
335
+ e[25] !== ft ? (Qe = [ft], e[25] = ft, e[26] = Qe) : Qe = e[26], Ie(Je, Qe);
339
336
  let et, tt;
340
- e[29] !== E || e[30] !== n.speed || e[31] !== s ? (et = () => {
337
+ e[27] !== N || e[28] !== i.speed || e[29] !== s ? (et = () => {
341
338
  const l = setInterval(() => {
342
- ut((j) => j < s.length - 1 ? j + 1 : 0);
343
- }, (n.speed || 2) * 1e3);
344
- return E || clearInterval(l), () => clearInterval(l);
345
- }, tt = [s, E, n.speed], e[29] = E, e[30] = n.speed, e[31] = s, e[32] = et, e[33] = tt) : (et = e[32], tt = e[33]), Pe(et, tt);
346
- const yt = n.dateFormat || "yyyy";
339
+ mt((j) => j < s.length - 1 ? j + 1 : 0);
340
+ }, (i.speed || 2) * 1e3);
341
+ return N || clearInterval(l), () => clearInterval(l);
342
+ }, tt = [s, N, i.speed], e[27] = N, e[28] = i.speed, e[29] = s, e[30] = et, e[31] = tt) : (et = e[30], tt = e[31]), Ie(et, tt);
343
+ const ht = i.dateFormat || "yyyy";
347
344
  let ot;
348
- e[34] !== B || e[35] !== yt || e[36] !== n.showOnlyActiveDate || e[37] !== s ? (ot = It(s, B, n.showOnlyActiveDate, yt), e[34] = B, e[35] = yt, e[36] = n.showOnlyActiveDate, e[37] = s, e[38] = ot) : ot = e[38];
349
- const at = ot, vt = p?.graphContainer, xt = c?.graphContainer;
350
- let pe;
351
- e[39] !== p?.description || e[40] !== p?.title || e[41] !== a || e[42] !== Z || e[43] !== h || e[44] !== r || e[45] !== _ || e[46] !== c?.description || e[47] !== c?.title || e[48] !== u ? (pe = _ || h || r || Z ? /* @__PURE__ */ o.jsx(ro, { styles: {
352
- title: c?.title,
353
- description: c?.description
345
+ e[32] !== E || e[33] !== ht || e[34] !== i.showOnlyActiveDate || e[35] !== s ? (ot = It(s, E, i.showOnlyActiveDate, ht), e[32] = E, e[33] = ht, e[34] = i.showOnlyActiveDate, e[35] = s, e[36] = ot) : ot = e[36];
346
+ const at = ot, gt = u?.graphContainer, yt = d?.graphContainer;
347
+ let me;
348
+ e[37] !== u?.description || e[38] !== u?.title || e[39] !== a || e[40] !== f || e[41] !== g || e[42] !== t || e[43] !== B || e[44] !== d?.description || e[45] !== d?.title || e[46] !== h ? (me = B || g || t || f ? /* @__PURE__ */ o.jsx(ao, { styles: {
349
+ title: d?.title,
350
+ description: d?.description
354
351
  }, classNames: {
355
- title: p?.title,
356
- description: p?.description
357
- }, graphTitle: _, graphDescription: h, width: u, graphDownload: r ? Dt : void 0, dataDownload: Z ? a.map(bo).filter(xo).length > 0 ? a.map(vo).filter(yo) : a.filter(go) : null }) : null, e[39] = p?.description, e[40] = p?.title, e[41] = a, e[42] = Z, e[43] = h, e[44] = r, e[45] = _, e[46] = c?.description, e[47] = c?.title, e[48] = u, e[49] = pe) : pe = e[49];
358
- let ue;
359
- e[50] !== B || e[51] !== at || e[52] !== E || e[53] !== n.enabled || e[54] !== s ? (ue = n.enabled && s.length > 0 && at ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
352
+ title: u?.title,
353
+ description: u?.description
354
+ }, graphTitle: B, graphDescription: g, width: h, graphDownload: t ? xt : void 0, dataDownload: f ? a.map(xo).filter(vo).length > 0 ? a.map(yo).filter(go) : a.filter(ho) : null }) : null, e[37] = u?.description, e[38] = u?.title, e[39] = a, e[40] = f, e[41] = g, e[42] = t, e[43] = B, e[44] = d?.description, e[45] = d?.title, e[46] = h, e[47] = me) : me = e[47];
355
+ let pe;
356
+ e[48] !== E || e[49] !== at || e[50] !== N || e[51] !== i.enabled || e[52] !== s ? (pe = i.enabled && s.length > 0 && at ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
360
357
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
361
- Mt(!E);
362
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": E ? "Click to pause animation" : "Click to play animation", children: E ? /* @__PURE__ */ o.jsx(Zt, {}) : /* @__PURE__ */ o.jsx(Jt, {}) }),
363
- /* @__PURE__ */ o.jsx(zt, { min: s[0], max: s[s.length - 1], marks: at, step: null, defaultValue: s[s.length - 1], value: s[B], onChangeComplete: (l) => {
364
- ut(s.indexOf(l));
358
+ St(!N);
359
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": N ? "Click to pause animation" : "Click to play animation", children: N ? /* @__PURE__ */ o.jsx(Kt, {}) : /* @__PURE__ */ o.jsx(Zt, {}) }),
360
+ /* @__PURE__ */ o.jsx($t, { min: s[0], max: s[s.length - 1], marks: at, step: null, defaultValue: s[s.length - 1], value: s[E], onChangeComplete: (l) => {
361
+ mt(s.indexOf(l));
365
362
  }, onChange: (l) => {
366
- ut(s.indexOf(l));
363
+ mt(s.indexOf(l));
367
364
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
368
- ] }) : null, e[50] = B, e[51] = at, e[52] = E, e[53] = n.enabled, e[54] = s, e[55] = ue) : ue = e[55];
369
- let fe;
370
- e[56] !== Fe || e[57] !== xe || e[58] !== p || e[59] !== H || e[60] !== ge || e[61] !== ee || e[62] !== g || e[63] !== dt || e[64] !== a || e[65] !== ie || e[66] !== ct || e[67] !== m || e[68] !== f || e[69] !== B || e[70] !== S || e[71] !== Ne || e[72] !== M || e[73] !== Ce || e[74] !== d?.mapBorderColor || e[75] !== d?.mapBorderWidth || e[76] !== lt || e[77] !== me || e[78] !== I || e[79] !== w || e[80] !== we || e[81] !== ae || e[82] !== ft || e[83] !== mt || e[84] !== O || e[85] !== v || e[86] !== nt || e[87] !== pt || e[88] !== z || e[89] !== y || e[90] !== Y || e[91] !== Se || e[92] !== c || e[93] !== Ee || e[94] !== J || e[95] !== W || e[96] !== n.dateFormat || e[97] !== n.enabled || e[98] !== De || e[99] !== s || e[100] !== u || e[101] !== st || e[102] !== de || e[103] !== x ? (fe = /* @__PURE__ */ o.jsx(lo, { ref: ht, children: J && Ee && me ? /* @__PURE__ */ o.jsx(co, { data: a.filter((l) => n.enabled ? `${l.date}` === Pt(new Date(s[B]), n.dateFormat || "yyyy") : l), mapData: y ? me : {
371
- ...me,
372
- features: me.features.filter(ho)
373
- }, colorDomain: a.filter(fo).length === 0 ? [] : ge || no(a, "color", !0), width: J, height: Ee, scale: z, centerPoint: xe, colors: a.filter(uo).length === 0 ? g ? [g] : [k.primaryColors["blue-600"]] : g || k[W].categoricalColors.colors, colorLegendTitle: ee, radius: O, overlayMapData: ft, overlayMapBorderColor: d?.mapBorderColor, overlayMapBorderWidth: d?.mapBorderWidth, mapBorderWidth: M, mapNoDataColor: Ce, mapBorderColor: Ne, tooltip: De, onSeriesMouseOver: ae, showLabels: Se, isWorldMap: S, showColorScale: Y, zoomScaleExtend: de, zoomTranslateExtend: x, onSeriesMouseClick: we, highlightedDataPoints: f, resetSelectionOnDoubleClick: nt, styles: c, classNames: p, zoomInteraction: st, detailsOnClick: ie, mapProjection: lt || (S ? "naturalEarth" : "mercator"), animate: Fe === !0 ? {
365
+ ] }) : null, e[48] = E, e[49] = at, e[50] = N, e[51] = i.enabled, e[52] = s, e[53] = pe) : pe = e[53];
366
+ let ue;
367
+ e[54] !== Fe || e[55] !== ve || e[56] !== u || e[57] !== G || e[58] !== he || e[59] !== Z || e[60] !== y || e[61] !== st || e[62] !== a || e[63] !== ae || e[64] !== lt || e[65] !== p || e[66] !== oe || e[67] !== E || e[68] !== O || e[69] !== Se || e[70] !== M || e[71] !== Ce || e[72] !== m?.mapBorderColor || e[73] !== m?.mapBorderWidth || e[74] !== Ne || e[75] !== de || e[76] !== $ || e[77] !== c || e[78] !== De || e[79] !== ee || e[80] !== pt || e[81] !== ct || e[82] !== k || e[83] !== v || e[84] !== Me || e[85] !== dt || e[86] !== P || e[87] !== r || e[88] !== q || e[89] !== Oe || e[90] !== d || e[91] !== Ee || e[92] !== Y || e[93] !== z || e[94] !== i.dateFormat || e[95] !== i.enabled || e[96] !== be || e[97] !== s || e[98] !== h || e[99] !== it || e[100] !== se || e[101] !== x ? (ue = /* @__PURE__ */ o.jsx(io, { ref: ut, children: Y && Ee && de ? /* @__PURE__ */ o.jsx(so, { data: a.filter((l) => i.enabled ? `${l.date}` === Bt(new Date(s[E]), i.dateFormat || "yyyy") : l), mapData: r ? de : {
368
+ ...de,
369
+ features: de.features.filter(fo)
370
+ }, colorDomain: a.filter(uo).length === 0 ? [] : he || no(a, "color", !0), width: Y, height: Ee, scale: P, centerPoint: ve, colors: a.filter(po).length === 0 ? y ? [y] : [w.primaryColors["blue-600"]] : y || w[z].categoricalColors.colors, colorLegendTitle: Z, radius: k, overlayMapData: pt, overlayMapBorderColor: m?.mapBorderColor, overlayMapBorderWidth: m?.mapBorderWidth, mapBorderWidth: M, mapNoDataColor: Ce, mapBorderColor: Se, tooltip: be, onSeriesMouseOver: ee, showLabels: Oe, isWorldMap: O, showColorScale: q, zoomScaleExtend: se, zoomTranslateExtend: x, onSeriesMouseClick: De, highlightedDataPoints: oe, resetSelectionOnDoubleClick: Me, styles: d, classNames: u, zoomInteraction: it, detailsOnClick: ae, mapProjection: Ne || (O ? "naturalEarth" : "mercator"), animate: Fe === !0 ? {
374
371
  duration: 0.5,
375
372
  once: !0,
376
373
  amount: 0.5
@@ -378,62 +375,62 @@ function qo(i) {
378
375
  duration: 0,
379
376
  once: !0,
380
377
  amount: 0
381
- }, dimmedOpacity: ct, customLayers: dt, maxRadiusValue: io(I) ? Math.max(...a.map(po).filter(mo)) : I, collapseColorScaleByDefault: H, projectionRotate: mt, rewindCoordinatesInMapData: pt }) : /* @__PURE__ */ o.jsx("div", { style: {
382
- height: `${Math.max(w, m || (v ? w ? (u || J) * v > w ? (u || J) * v : w : (u || J) * v : Ee))}px`
383
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(Wt, { "aria-label": "Loading graph" }) }) }), e[56] = Fe, e[57] = xe, e[58] = p, e[59] = H, e[60] = ge, e[61] = ee, e[62] = g, e[63] = dt, e[64] = a, e[65] = ie, e[66] = ct, e[67] = m, e[68] = f, e[69] = B, e[70] = S, e[71] = Ne, e[72] = M, e[73] = Ce, e[74] = d?.mapBorderColor, e[75] = d?.mapBorderWidth, e[76] = lt, e[77] = me, e[78] = I, e[79] = w, e[80] = we, e[81] = ae, e[82] = ft, e[83] = mt, e[84] = O, e[85] = v, e[86] = nt, e[87] = pt, e[88] = z, e[89] = y, e[90] = Y, e[91] = Se, e[92] = c, e[93] = Ee, e[94] = J, e[95] = W, e[96] = n.dateFormat, e[97] = n.enabled, e[98] = De, e[99] = s, e[100] = u, e[101] = st, e[102] = de, e[103] = x, e[104] = fe) : fe = e[104];
384
- let he;
385
- e[105] !== p?.footnote || e[106] !== p?.source || e[107] !== X || e[108] !== N || e[109] !== c?.footnote || e[110] !== c?.source || e[111] !== u ? (he = N || X ? /* @__PURE__ */ o.jsx(ao, { styles: {
386
- footnote: c?.footnote,
387
- source: c?.source
378
+ }, dimmedOpacity: lt, customLayers: st, maxRadiusValue: ro($) ? Math.max(...a.map(mo).filter(co)) : $, collapseColorScaleByDefault: G, projectionRotate: ct, rewindCoordinatesInMapData: dt }) : /* @__PURE__ */ o.jsx("div", { style: {
379
+ height: `${Math.max(c, p || (v ? c ? (h || Y) * v > c ? (h || Y) * v : c : (h || Y) * v : Ee))}px`
380
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(Pt, { "aria-label": "Loading graph" }) }) }), e[54] = Fe, e[55] = ve, e[56] = u, e[57] = G, e[58] = he, e[59] = Z, e[60] = y, e[61] = st, e[62] = a, e[63] = ae, e[64] = lt, e[65] = p, e[66] = oe, e[67] = E, e[68] = O, e[69] = Se, e[70] = M, e[71] = Ce, e[72] = m?.mapBorderColor, e[73] = m?.mapBorderWidth, e[74] = Ne, e[75] = de, e[76] = $, e[77] = c, e[78] = De, e[79] = ee, e[80] = pt, e[81] = ct, e[82] = k, e[83] = v, e[84] = Me, e[85] = dt, e[86] = P, e[87] = r, e[88] = q, e[89] = Oe, e[90] = d, e[91] = Ee, e[92] = Y, e[93] = z, e[94] = i.dateFormat, e[95] = i.enabled, e[96] = be, e[97] = s, e[98] = h, e[99] = it, e[100] = se, e[101] = x, e[102] = ue) : ue = e[102];
381
+ let fe;
382
+ e[103] !== u?.footnote || e[104] !== u?.source || e[105] !== H || e[106] !== S || e[107] !== d?.footnote || e[108] !== d?.source || e[109] !== h ? (fe = S || H ? /* @__PURE__ */ o.jsx(oo, { styles: {
383
+ footnote: d?.footnote,
384
+ source: d?.source
388
385
  }, classNames: {
389
- footnote: p?.footnote,
390
- source: p?.source
391
- }, sources: N, footNote: X, width: u }) : null, e[105] = p?.footnote, e[106] = p?.source, e[107] = X, e[108] = N, e[109] = c?.footnote, e[110] = c?.source, e[111] = u, e[112] = he) : he = e[112];
386
+ footnote: u?.footnote,
387
+ source: u?.source
388
+ }, sources: S, footNote: H, width: h }) : null, e[103] = u?.footnote, e[104] = u?.source, e[105] = H, e[106] = S, e[107] = d?.footnote, e[108] = d?.source, e[109] = h, e[110] = fe) : fe = e[110];
392
389
  let rt;
393
- return e[113] !== T || e[114] !== Oe || e[115] !== re || e[116] !== m || e[117] !== Me || e[118] !== w || e[119] !== te || e[120] !== v || e[121] !== vt || e[122] !== xt || e[123] !== pe || e[124] !== ue || e[125] !== fe || e[126] !== he || e[127] !== W || e[128] !== u ? (rt = /* @__PURE__ */ o.jsxs(so, { className: vt, style: xt, id: re, ref: Dt, "aria-label": T, backgroundColor: Oe, theme: W, language: Me, minHeight: w, width: u, height: m, relativeHeight: v, padding: te, children: [
390
+ return e[111] !== F || e[112] !== ke || e[113] !== te || e[114] !== p || e[115] !== ce || e[116] !== c || e[117] !== J || e[118] !== v || e[119] !== gt || e[120] !== yt || e[121] !== me || e[122] !== pe || e[123] !== ue || e[124] !== fe || e[125] !== z || e[126] !== h ? (rt = /* @__PURE__ */ o.jsxs(lo, { className: gt, style: yt, id: te, ref: xt, "aria-label": F, backgroundColor: ke, theme: z, language: ce, minHeight: c, width: h, height: p, relativeHeight: v, padding: J, children: [
391
+ me,
394
392
  pe,
395
393
  ue,
396
- fe,
397
- he
398
- ] }), e[113] = T, e[114] = Oe, e[115] = re, e[116] = m, e[117] = Me, e[118] = w, e[119] = te, e[120] = v, e[121] = vt, e[122] = xt, e[123] = pe, e[124] = ue, e[125] = fe, e[126] = he, e[127] = W, e[128] = u, e[129] = rt) : rt = e[129], rt;
394
+ fe
395
+ ] }), e[111] = F, e[112] = ke, e[113] = te, e[114] = p, e[115] = ce, e[116] = c, e[117] = J, e[118] = v, e[119] = gt, e[120] = yt, e[121] = me, e[122] = pe, e[123] = ue, e[124] = fe, e[125] = z, e[126] = h, e[127] = rt) : rt = e[127], rt;
399
396
  }
400
- function mo(i) {
401
- return i != null;
397
+ function co(n) {
398
+ return n != null;
402
399
  }
403
- function po(i) {
404
- return i.radius;
400
+ function mo(n) {
401
+ return n.radius;
405
402
  }
406
- function uo(i) {
407
- return i.color;
403
+ function po(n) {
404
+ return n.color;
408
405
  }
409
- function fo(i) {
410
- return i.color;
406
+ function uo(n) {
407
+ return n.color;
411
408
  }
412
- function ho(i) {
413
- return i.properties?.NAME !== "Antarctica";
409
+ function fo(n) {
410
+ return n.properties?.NAME !== "Antarctica";
414
411
  }
415
- function go(i) {
416
- return i !== void 0;
412
+ function ho(n) {
413
+ return n !== void 0;
417
414
  }
418
- function yo(i) {
419
- return i !== void 0;
415
+ function go(n) {
416
+ return n !== void 0;
420
417
  }
421
- function vo(i) {
422
- return i.data;
418
+ function yo(n) {
419
+ return n.data;
423
420
  }
424
- function xo(i) {
425
- return i !== void 0;
421
+ function vo(n) {
422
+ return n !== void 0;
426
423
  }
427
- function bo(i) {
428
- return i.data;
424
+ function xo(n) {
425
+ return n.data;
429
426
  }
430
- function Do(i, e) {
431
- return i - e;
427
+ function bo(n, e) {
428
+ return n - e;
432
429
  }
433
- function wo(i) {
434
- return i.date;
430
+ function Do(n) {
431
+ return n.date;
435
432
  }
436
433
  export {
437
- qo as DotDensityMap
434
+ Ho as DotDensityMap
438
435
  };
439
436
  //# sourceMappingURL=DotDensityMap.js.map