@undp/data-viz 1.5.7 → 1.5.9

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 (342) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +13 -13
  3. package/dist/{Axis-Ddg-seDi.js → Axis-4gUOL8B7.js} +2 -2
  4. package/dist/{Axis-Ddg-seDi.js.map → Axis-4gUOL8B7.js.map} +1 -1
  5. package/dist/{Axis-DE7dSn1_.cjs → Axis-CkNn1wit.cjs} +2 -2
  6. package/dist/{Axis-DE7dSn1_.cjs.map → Axis-CkNn1wit.cjs.map} +1 -1
  7. package/dist/{AxisTitle-CK9YeovX.cjs → AxisTitle-Wkz-xeQL.cjs} +2 -2
  8. package/dist/{AxisTitle-CK9YeovX.cjs.map → AxisTitle-Wkz-xeQL.cjs.map} +1 -1
  9. package/dist/{AxisTitle-BmHLMRJZ.js → AxisTitle-v6_xcXZ-.js} +2 -2
  10. package/dist/{AxisTitle-BmHLMRJZ.js.map → AxisTitle-v6_xcXZ-.js.map} +1 -1
  11. package/dist/BarGraph.cjs +1 -1
  12. package/dist/BarGraph.cjs.map +1 -1
  13. package/dist/BarGraph.js +666 -664
  14. package/dist/BarGraph.js.map +1 -1
  15. package/dist/BasicStatCard.cjs +1 -1
  16. package/dist/BasicStatCard.js +2 -2
  17. package/dist/BeeSwarmChart.cjs +1 -1
  18. package/dist/BeeSwarmChart.js +42 -42
  19. package/dist/BiVariateChoroplethMap.cjs +1 -1
  20. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  21. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  22. package/dist/BiVariateChoroplethMap.js +257 -264
  23. package/dist/BiVariateChoroplethMap.js.map +1 -1
  24. package/dist/BulletChart.cjs +1 -1
  25. package/dist/BulletChart.cjs.map +1 -1
  26. package/dist/BulletChart.js +223 -221
  27. package/dist/BulletChart.js.map +1 -1
  28. package/dist/ButterflyChart.cjs +1 -1
  29. package/dist/ButterflyChart.cjs.map +1 -1
  30. package/dist/ButterflyChart.js +84 -82
  31. package/dist/ButterflyChart.js.map +1 -1
  32. package/dist/ChoroplethMap.cjs +1 -1
  33. package/dist/ChoroplethMap.cjs.map +1 -1
  34. package/dist/ChoroplethMap.d.ts +2 -0
  35. package/dist/ChoroplethMap.js +296 -304
  36. package/dist/ChoroplethMap.js.map +1 -1
  37. package/dist/CirclePackingGraph.cjs +1 -1
  38. package/dist/CirclePackingGraph.js +3 -3
  39. package/dist/ColorLegend.cjs +1 -1
  40. package/dist/ColorLegend.js +2 -2
  41. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  42. package/dist/ColorLegendWithMouseOver.js +2 -2
  43. package/dist/CopyTextButton.cjs +4 -4
  44. package/dist/CopyTextButton.cjs.map +1 -1
  45. package/dist/CopyTextButton.js +27 -27
  46. package/dist/CopyTextButton.js.map +1 -1
  47. package/dist/CsvDownloadButton.cjs +1 -1
  48. package/dist/CsvDownloadButton.js +2 -2
  49. package/dist/DataCards.cjs +3 -3
  50. package/dist/DataCards.cjs.map +1 -1
  51. package/dist/DataCards.js +16 -16
  52. package/dist/DataCards.js.map +1 -1
  53. package/dist/DataTable.cjs +1 -1
  54. package/dist/DataTable.js +3 -3
  55. package/dist/DifferenceLineChart.cjs +1 -1
  56. package/dist/DifferenceLineChart.cjs.map +1 -1
  57. package/dist/DifferenceLineChart.js +133 -131
  58. package/dist/DifferenceLineChart.js.map +1 -1
  59. package/dist/DonutChart.cjs +1 -1
  60. package/dist/DonutChart.js +20 -20
  61. package/dist/DotDensityMap.cjs +1 -1
  62. package/dist/DotDensityMap.cjs.map +1 -1
  63. package/dist/DotDensityMap.d.ts +2 -0
  64. package/dist/DotDensityMap.js +282 -289
  65. package/dist/DotDensityMap.js.map +1 -1
  66. package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-6kjXM6oW.js} +2 -2
  67. package/dist/DropdownSelect-6kjXM6oW.js.map +1 -0
  68. package/dist/{DropdownSelect-DBDM64B5.cjs → DropdownSelect-vt8yiB-g.cjs} +5 -5
  69. package/dist/DropdownSelect-vt8yiB-g.cjs.map +1 -0
  70. package/dist/DualAxisLineChart.cjs +1 -1
  71. package/dist/DualAxisLineChart.cjs.map +1 -1
  72. package/dist/DualAxisLineChart.js +141 -121
  73. package/dist/DualAxisLineChart.js.map +1 -1
  74. package/dist/DumbbellChart.cjs +1 -1
  75. package/dist/DumbbellChart.cjs.map +1 -1
  76. package/dist/DumbbellChart.js +307 -307
  77. package/dist/DumbbellChart.js.map +1 -1
  78. package/dist/{EmptyState-DdTp-Mdn.js → EmptyState-36lXXyui.js} +4 -4
  79. package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-36lXXyui.js.map} +1 -1
  80. package/dist/{EmptyState-d8_8SxeW.cjs → EmptyState-B8IpKGcL.cjs} +2 -2
  81. package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-B8IpKGcL.cjs.map} +1 -1
  82. package/dist/ExcelDownloadButton.cjs +1 -1
  83. package/dist/ExcelDownloadButton.js +2 -2
  84. package/dist/FootNote.cjs +1 -1
  85. package/dist/FootNote.js +2 -2
  86. package/dist/GeoHubCompareMaps.cjs +1 -1
  87. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  88. package/dist/GeoHubCompareMaps.js +65 -80
  89. package/dist/GeoHubCompareMaps.js.map +1 -1
  90. package/dist/GeoHubMap.cjs +1 -1
  91. package/dist/GeoHubMap.cjs.map +1 -1
  92. package/dist/GeoHubMap.js +95 -125
  93. package/dist/GeoHubMap.js.map +1 -1
  94. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  95. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  96. package/dist/GeoHubMapWithLayerSelection.js +73 -88
  97. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  98. package/dist/GraphDescription.cjs +1 -1
  99. package/dist/GraphDescription.js +2 -2
  100. package/dist/{GraphEl-CqWzvOyr.js → GraphEl-2IiUDxjR.js} +15 -12
  101. package/dist/GraphEl-2IiUDxjR.js.map +1 -0
  102. package/dist/GraphEl-qrlfGPe3.cjs +2 -0
  103. package/dist/GraphEl-qrlfGPe3.cjs.map +1 -0
  104. package/dist/GraphFooter.cjs +1 -1
  105. package/dist/GraphFooter.js +1 -1
  106. package/dist/GraphHeader.cjs +1 -1
  107. package/dist/GraphHeader.js +1 -1
  108. package/dist/GraphTitle.cjs +1 -1
  109. package/dist/GraphTitle.js +2 -2
  110. package/dist/GriddedGraphs.cjs +1 -1
  111. package/dist/GriddedGraphs.d.ts +1 -0
  112. package/dist/GriddedGraphs.js +5 -5
  113. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  114. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  115. package/dist/GriddedGraphsFromConfig.js +2 -2
  116. package/dist/HeatMap.cjs +1 -1
  117. package/dist/HeatMap.js +19 -19
  118. package/dist/Histogram.cjs +1 -1
  119. package/dist/Histogram.js +3 -3
  120. package/dist/ImageDownloadButton.cjs +1 -1
  121. package/dist/ImageDownloadButton.js +2 -2
  122. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  123. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  124. package/dist/LineChartWithConfidenceInterval.js +204 -184
  125. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  126. package/dist/LinearColorLegend.cjs +1 -1
  127. package/dist/LinearColorLegend.js +2 -2
  128. package/dist/{Modal-DVVwpKhP.js → Modal-Cg8daIlV.js} +198 -187
  129. package/dist/Modal-Cg8daIlV.js.map +1 -0
  130. package/dist/Modal-CuuJdWkD.cjs +46 -0
  131. package/dist/Modal-CuuJdWkD.cjs.map +1 -0
  132. package/dist/MultiGraphDashboard.cjs +1 -1
  133. package/dist/MultiGraphDashboard.d.ts +1 -0
  134. package/dist/MultiGraphDashboard.js +3 -3
  135. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  136. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  137. package/dist/MultiGraphDashboardFromConfig.js +2 -2
  138. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  139. package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
  140. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  141. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
  142. package/dist/MultiLineAltChart.cjs +1 -1
  143. package/dist/MultiLineAltChart.cjs.map +1 -1
  144. package/dist/MultiLineAltChart.js +172 -173
  145. package/dist/MultiLineAltChart.js.map +1 -1
  146. package/dist/MultiLineChart.cjs +1 -1
  147. package/dist/MultiLineChart.cjs.map +1 -1
  148. package/dist/MultiLineChart.js +89 -78
  149. package/dist/MultiLineChart.js.map +1 -1
  150. package/dist/ParetoChart.cjs +1 -1
  151. package/dist/ParetoChart.cjs.map +1 -1
  152. package/dist/ParetoChart.js +186 -181
  153. package/dist/ParetoChart.js.map +1 -1
  154. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  155. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  156. package/dist/PerformanceIntensiveMultiGraphDashboard.js +3 -3
  157. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  158. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  159. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
  160. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  161. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  162. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  163. package/dist/RadarChart.cjs +1 -1
  164. package/dist/RadarChart.cjs.map +1 -1
  165. package/dist/RadarChart.js +256 -244
  166. package/dist/RadarChart.js.map +1 -1
  167. package/dist/{ReferenceLine-CfAW3vKJ.js → ReferenceLine-CPMaAX0r.js} +3 -3
  168. package/dist/{ReferenceLine-CfAW3vKJ.js.map → ReferenceLine-CPMaAX0r.js.map} +1 -1
  169. package/dist/{ReferenceLine-CFVBBN__.cjs → ReferenceLine-D04j-zeV.cjs} +2 -2
  170. package/dist/{ReferenceLine-CFVBBN__.cjs.map → ReferenceLine-D04j-zeV.cjs.map} +1 -1
  171. package/dist/{RegressionLine-mH7UKOPi.js → RegressionLine-CW7iViH2.js} +13 -12
  172. package/dist/RegressionLine-CW7iViH2.js.map +1 -0
  173. package/dist/RegressionLine-D-49RaHa.cjs +2 -0
  174. package/dist/RegressionLine-D-49RaHa.cjs.map +1 -0
  175. package/dist/SVGDownloadButton.cjs +1 -1
  176. package/dist/SVGDownloadButton.js +2 -2
  177. package/dist/SankeyChart.cjs +1 -1
  178. package/dist/SankeyChart.js +27 -27
  179. package/dist/ScatterPlot.cjs +1 -1
  180. package/dist/ScatterPlot.cjs.map +1 -1
  181. package/dist/ScatterPlot.js +145 -144
  182. package/dist/ScatterPlot.js.map +1 -1
  183. package/dist/ScrollStory.cjs +1 -1
  184. package/dist/ScrollStory.d.ts +1 -0
  185. package/dist/ScrollStory.js +3 -3
  186. package/dist/SimpleLineChart.cjs +1 -1
  187. package/dist/SimpleLineChart.cjs.map +1 -1
  188. package/dist/SimpleLineChart.js +53 -48
  189. package/dist/SimpleLineChart.js.map +1 -1
  190. package/dist/SingleGraphDashboard.cjs +1 -1
  191. package/dist/SingleGraphDashboard.d.ts +1 -0
  192. package/dist/SingleGraphDashboard.js +6 -6
  193. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  194. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  195. package/dist/SingleGraphDashboardFromConfig.js +2 -2
  196. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  197. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  198. package/dist/SingleGraphDashboardGeoHubMaps.js +2 -2
  199. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  200. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  201. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
  202. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  203. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  204. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  205. package/dist/SingleGraphDashboardThreeDGraphs.js +14 -13
  206. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  207. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  208. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  209. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
  210. package/dist/SlopeChart.cjs +1 -1
  211. package/dist/SlopeChart.cjs.map +1 -1
  212. package/dist/SlopeChart.js +137 -133
  213. package/dist/SlopeChart.js.map +1 -1
  214. package/dist/Source.cjs +1 -1
  215. package/dist/Source.js +2 -2
  216. package/dist/SparkLine.cjs +1 -1
  217. package/dist/SparkLine.js +2 -2
  218. package/dist/{Spinner-C85UF28E.js → Spinner-Bpz70q_g.js} +2 -2
  219. package/dist/{Spinner-C85UF28E.js.map → Spinner-Bpz70q_g.js.map} +1 -1
  220. package/dist/{Spinner-DA6Z5E4n.cjs → Spinner-C6wLp85s.cjs} +2 -2
  221. package/dist/{Spinner-DA6Z5E4n.cjs.map → Spinner-C6wLp85s.cjs.map} +1 -1
  222. package/dist/StatCardFromData.cjs +1 -1
  223. package/dist/StatCardFromData.js +2 -2
  224. package/dist/StripChart.cjs +1 -1
  225. package/dist/StripChart.cjs.map +1 -1
  226. package/dist/StripChart.js +307 -295
  227. package/dist/StripChart.js.map +1 -1
  228. package/dist/ThreeDGlobe.cjs +1 -1
  229. package/dist/ThreeDGlobe.cjs.map +1 -1
  230. package/dist/ThreeDGlobe.d.ts +2 -0
  231. package/dist/ThreeDGlobe.js +220 -228
  232. package/dist/ThreeDGlobe.js.map +1 -1
  233. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  234. package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
  235. package/dist/{Tooltip-CVCGWyzw.js → Tooltip-6LIdPQGC.js} +2 -2
  236. package/dist/{Tooltip-CVCGWyzw.js.map → Tooltip-6LIdPQGC.js.map} +1 -1
  237. package/dist/{Tooltip-De16GWhY.cjs → Tooltip-Cpv0QohJ.cjs} +2 -2
  238. package/dist/{Tooltip-De16GWhY.cjs.map → Tooltip-Cpv0QohJ.cjs.map} +1 -1
  239. package/dist/TreeMapGraph.cjs +1 -1
  240. package/dist/TreeMapGraph.js +24 -24
  241. package/dist/Types.d.ts +1 -0
  242. package/dist/{Typography-k-kOjICQ.cjs → Typography-BDULiwlF.cjs} +2 -2
  243. package/dist/{Typography-k-kOjICQ.cjs.map → Typography-BDULiwlF.cjs.map} +1 -1
  244. package/dist/{Typography-Ctgfl1J5.js → Typography-LmZ9LEpe.js} +2 -2
  245. package/dist/{Typography-Ctgfl1J5.js.map → Typography-LmZ9LEpe.js.map} +1 -1
  246. package/dist/UnitChart.cjs +1 -1
  247. package/dist/UnitChart.cjs.map +1 -1
  248. package/dist/UnitChart.js +25 -26
  249. package/dist/UnitChart.js.map +1 -1
  250. package/dist/{XAxesLabels-Drf7M3YK.cjs → XAxesLabels-CLZnBgSr.cjs} +2 -2
  251. package/dist/{XAxesLabels-Drf7M3YK.cjs.map → XAxesLabels-CLZnBgSr.cjs.map} +1 -1
  252. package/dist/{XAxesLabels-loO78vUO.js → XAxesLabels-SOSmso5J.js} +3 -3
  253. package/dist/{XAxesLabels-loO78vUO.js.map → XAxesLabels-SOSmso5J.js.map} +1 -1
  254. package/dist/{XTicksAndGridLines-Bn9u5gOM.js → XTicksAndGridLines-DuydSnZ_.js} +2 -2
  255. package/dist/{XTicksAndGridLines-Bn9u5gOM.js.map → XTicksAndGridLines-DuydSnZ_.js.map} +1 -1
  256. package/dist/{XTicksAndGridLines-CCzXIV8d.cjs → XTicksAndGridLines-RKy7BVCO.cjs} +2 -2
  257. package/dist/{XTicksAndGridLines-CCzXIV8d.cjs.map → XTicksAndGridLines-RKy7BVCO.cjs.map} +1 -1
  258. package/dist/{YAxesLabels-DECkMgq8.js → YAxesLabels-DlDyLvhi.js} +3 -3
  259. package/dist/{YAxesLabels-DECkMgq8.js.map → YAxesLabels-DlDyLvhi.js.map} +1 -1
  260. package/dist/{YAxesLabels-yRFFdx1s.cjs → YAxesLabels-Dqd259-t.cjs} +2 -2
  261. package/dist/{YAxesLabels-yRFFdx1s.cjs.map → YAxesLabels-Dqd259-t.cjs.map} +1 -1
  262. package/dist/{YTicksAndGridLines-B6ah7CRf.js → YTicksAndGridLines-7t4MKtGw.js} +2 -2
  263. package/dist/{YTicksAndGridLines-B6ah7CRf.js.map → YTicksAndGridLines-7t4MKtGw.js.map} +1 -1
  264. package/dist/{YTicksAndGridLines-DBDuz6vb.cjs → YTicksAndGridLines-qGpRo_t1.cjs} +2 -2
  265. package/dist/{YTicksAndGridLines-DBDuz6vb.cjs.map → YTicksAndGridLines-qGpRo_t1.cjs.map} +1 -1
  266. package/dist/checkIfMultiple-Dko_cBvE.cjs +12 -0
  267. package/dist/checkIfMultiple-Dko_cBvE.cjs.map +1 -0
  268. package/dist/{checkIfMultiple-ChTJk2Tk.js → checkIfMultiple-u2SmbiCf.js} +11 -11
  269. package/dist/checkIfMultiple-u2SmbiCf.js.map +1 -0
  270. package/dist/{customArea-CK768gCn.cjs → customArea-1G1S78s_.cjs} +2 -2
  271. package/dist/{customArea-CK768gCn.cjs.map → customArea-1G1S78s_.cjs.map} +1 -1
  272. package/dist/{customArea-B-dWU0zZ.js → customArea-x4L4xwLl.js} +3 -3
  273. package/dist/{customArea-B-dWU0zZ.js.map → customArea-x4L4xwLl.js.map} +1 -1
  274. package/dist/getCentroidCoordinates-Dfk6IqEG.js.map +1 -1
  275. package/dist/getCentroidCoordinates-DxTBqzp2.cjs.map +1 -1
  276. package/dist/getSliderMarks-CUxPy36E.cjs +6 -0
  277. package/dist/getSliderMarks-CUxPy36E.cjs.map +1 -0
  278. package/dist/{getSliderMarks-9cNoRkDx.js → getSliderMarks-_pYOWEtO.js} +3 -3
  279. package/dist/getSliderMarks-_pYOWEtO.js.map +1 -0
  280. package/dist/{index-BYzIB5V6.cjs → index-BHe3wsWF.cjs} +2 -2
  281. package/dist/{index-BYzIB5V6.cjs.map → index-BHe3wsWF.cjs.map} +1 -1
  282. package/dist/{index-DKCxu1Gh.js → index-Bw_eHBVN.js} +3 -3
  283. package/dist/{index-DKCxu1Gh.js.map → index-Bw_eHBVN.js.map} +1 -1
  284. package/dist/{index-BW_-wD2k.cjs → index-C0bpbS4F.cjs} +2 -2
  285. package/dist/{index-BW_-wD2k.cjs.map → index-C0bpbS4F.cjs.map} +1 -1
  286. package/dist/{index-37q0ULNQ.js → index-CE9pmfxt.js} +17 -17
  287. package/dist/{index-37q0ULNQ.js.map → index-CE9pmfxt.js.map} +1 -1
  288. package/dist/{index-CVlCtJbC.cjs → index-CEJwW3lL.cjs} +2 -2
  289. package/dist/{index-CVlCtJbC.cjs.map → index-CEJwW3lL.cjs.map} +1 -1
  290. package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-DBWUSD9b.js} +539 -543
  291. package/dist/index-CHPV5EwG-DBWUSD9b.js.map +1 -0
  292. package/dist/index-CHPV5EwG-DjM48pIC.cjs +44 -0
  293. package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +1 -0
  294. package/dist/{index-BW8iNx7E.cjs → index-Cm8NIdOO.cjs} +2 -2
  295. package/dist/{index-BW8iNx7E.cjs.map → index-Cm8NIdOO.cjs.map} +1 -1
  296. package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-BuI_jX5Z.js} +3 -3
  297. package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-BuI_jX5Z.js.map} +1 -1
  298. package/dist/index-Cw8sCyo_-gxT8ADyn.cjs +2 -0
  299. package/dist/index-Cw8sCyo_-gxT8ADyn.cjs.map +1 -0
  300. package/dist/{index-CNvov0eg.js → index-Cwgh7i7X.js} +3 -3
  301. package/dist/{index-CNvov0eg.js.map → index-Cwgh7i7X.js.map} +1 -1
  302. package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-BKklH89r.js} +2 -2
  303. package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-BKklH89r.js.map} +1 -1
  304. package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-RIk2GRHD.cjs} +2 -2
  305. package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-RIk2GRHD.cjs.map} +1 -1
  306. package/dist/{index-BmCqpO1B.js → index-zZjQEHlm.js} +2 -2
  307. package/dist/{index-BmCqpO1B.js.map → index-zZjQEHlm.js.map} +1 -1
  308. package/dist/index.cjs +1 -1
  309. package/dist/index.d.ts +9 -0
  310. package/dist/index.js +1 -1
  311. package/dist/{proxy-CkpFesk1.js → proxy-BYIC9BuT.js} +2 -2
  312. package/dist/{proxy-CkpFesk1.js.map → proxy-BYIC9BuT.js.map} +1 -1
  313. package/dist/{proxy-BHRoeZgd.cjs → proxy-CKadx4lC.cjs} +2 -2
  314. package/dist/{proxy-BHRoeZgd.cjs.map → proxy-CKadx4lC.cjs.map} +1 -1
  315. package/dist/style.css +1 -1
  316. package/dist/{use-in-view-sQJZ_xDO.cjs → use-in-view-CEwlc_dd.cjs} +2 -2
  317. package/dist/{use-in-view-sQJZ_xDO.cjs.map → use-in-view-CEwlc_dd.cjs.map} +1 -1
  318. package/dist/{use-in-view-yS6jzJAp.js → use-in-view-DR-UTB96.js} +2 -2
  319. package/dist/{use-in-view-yS6jzJAp.js.map → use-in-view-DR-UTB96.js.map} +1 -1
  320. package/package.json +4 -4
  321. package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
  322. package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
  323. package/dist/GraphEl-C6yjl1VM.cjs +0 -2
  324. package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
  325. package/dist/GraphEl-CqWzvOyr.js.map +0 -1
  326. package/dist/Modal-DVVwpKhP.js.map +0 -1
  327. package/dist/Modal-tXZlLE5s.cjs +0 -46
  328. package/dist/Modal-tXZlLE5s.cjs.map +0 -1
  329. package/dist/RegressionLine-mH7UKOPi.js.map +0 -1
  330. package/dist/RegressionLine-xKdiJ8sw.cjs +0 -2
  331. package/dist/RegressionLine-xKdiJ8sw.cjs.map +0 -1
  332. package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
  333. package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
  334. package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
  335. package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
  336. package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
  337. package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
  338. package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
  339. package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
  340. package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
  341. package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
  342. package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
@@ -1,124 +1,127 @@
1
- import { j as e, m as je } from "./index-CHPV5EwG-BPSP-7Jg.js";
2
- import { useState as b, useRef as ae, useEffect as pe } from "react";
3
- import { g as we, x as $e } from "./getSliderMarks-9cNoRkDx.js";
4
- import { y as Ne } from "./Spinner-C85UF28E.js";
5
- import { p as Ce, f as Me } from "./parse-DlCRUFh_.js";
6
- import { i as De } from "./index-Bwrro8-q.js";
7
- import { z as Se, t as Oe, g as Ee, a as Pe, b as Ie, c as Le, d as ze } from "./zoom-QipiAl5W.js";
8
- import { X as We } from "./Modal-DVVwpKhP.js";
9
- import { u as ke } from "./Typography-Ctgfl1J5.js";
10
- import { t as Te } from "./index-9tDEUqOZ.js";
11
- import { n as Be } from "./numberFormattingFunction-14YCbkN2.js";
12
- import { T as Ae } from "./Tooltip-CVCGWyzw.js";
13
- import { s as Ve } from "./string2HTML-oFCROsus.js";
14
- import { c as Fe } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
- import { X as He, P as qe, f as Xe } from "./index-BmCqpO1B.js";
16
- import { o as _e } from "./ordinal-w9Lu4Stb.js";
17
- import { t as Ue } from "./threshold-DFfqcDMa.js";
18
- import { s as be } from "./select-DKy99ogv.js";
19
- import { u as Ge } from "./use-in-view-yS6jzJAp.js";
20
- import { m as de } from "./proxy-CkpFesk1.js";
21
- import { A as Re } from "./index-CNvov0eg.js";
22
- import { GraphFooter as Ye } from "./GraphFooter.js";
23
- import { GraphHeader as Je } from "./GraphHeader.js";
24
- import { Colors as me } from "./Colors.js";
25
- import { f as Ke } from "./fetchAndParseData-sapWbnYk.js";
26
- import { g as Ze } from "./getUniqValue-DiCh_MOD.js";
27
- import { g as Qe } from "./getJenks-BbngDoBQ.js";
28
- import { u as et } from "./uniqBy-BHy4I8PK.js";
29
- import { s as tt } from "./sort-DfK1b0F5.js";
30
- import { c as rt } from "./init-BhZylTFx.js";
31
- function at(he) {
1
+ import { j as e, m as we } from "./index-CHPV5EwG-DBWUSD9b.js";
2
+ import { useState as v, useRef as oe, useEffect as pe } from "react";
3
+ import { g as $e, x as Ne } from "./getSliderMarks-_pYOWEtO.js";
4
+ import { y as Ce } from "./Spinner-Bpz70q_g.js";
5
+ import { p as De, f as Me } from "./parse-DlCRUFh_.js";
6
+ import { i as Se } from "./index-Bwrro8-q.js";
7
+ import { z as Oe, t as Ee, g as Pe, a as Ie, b as Le, c as ze, d as We } from "./zoom-QipiAl5W.js";
8
+ import { G as Te } from "./Modal-Cg8daIlV.js";
9
+ import { u as je } from "./Typography-LmZ9LEpe.js";
10
+ import { t as Be } from "./index-9tDEUqOZ.js";
11
+ import { n as Ae } from "./numberFormattingFunction-14YCbkN2.js";
12
+ import { T as Ve } from "./Tooltip-6LIdPQGC.js";
13
+ import { s as Fe } from "./string2HTML-oFCROsus.js";
14
+ import { c as He } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
+ import { X as qe, P as _e, f as Ue } from "./index-zZjQEHlm.js";
16
+ import { o as Ge } from "./ordinal-w9Lu4Stb.js";
17
+ import { t as Xe } from "./threshold-DFfqcDMa.js";
18
+ import { s as ke } from "./select-DKy99ogv.js";
19
+ import { u as Ye } from "./use-in-view-DR-UTB96.js";
20
+ import { m as me } from "./proxy-BYIC9BuT.js";
21
+ import { A as Re } from "./index-Cwgh7i7X.js";
22
+ import { GraphFooter as Je } from "./GraphFooter.js";
23
+ import { GraphHeader as Ke } from "./GraphHeader.js";
24
+ import { Colors as de } from "./Colors.js";
25
+ import { f as Ze } from "./fetchAndParseData-sapWbnYk.js";
26
+ import { g as Qe } from "./getUniqValue-DiCh_MOD.js";
27
+ import { g as et } from "./getJenks-BbngDoBQ.js";
28
+ import { u as tt } from "./uniqBy-BHy4I8PK.js";
29
+ import { s as rt } from "./sort-DfK1b0F5.js";
30
+ import { c as at } from "./init-BhZylTFx.js";
31
+ function ot(he) {
32
32
  const {
33
- data: k,
33
+ data: b,
34
34
  colorDomain: g,
35
35
  colors: c,
36
36
  mapData: x,
37
- colorLegendTitle: V,
38
- categorical: E,
37
+ colorLegendTitle: F,
38
+ categorical: S,
39
39
  height: h,
40
40
  width: s,
41
- scale: oe,
42
- centerPoint: T,
43
- tooltip: ie,
44
- mapBorderWidth: P,
45
- mapBorderColor: F,
46
- mapNoDataColor: R,
47
- onSeriesMouseOver: Y,
41
+ scale: ie,
42
+ centerPoint: z,
43
+ tooltip: ne,
44
+ mapBorderWidth: O,
45
+ mapBorderColor: H,
46
+ mapNoDataColor: K,
47
+ onSeriesMouseOver: Z,
48
48
  showColorScale: ge,
49
49
  zoomScaleExtend: ue,
50
- zoomTranslateExtend: I,
51
- highlightedIds: H,
52
- onSeriesMouseClick: f,
53
- mapProperty: q,
50
+ zoomTranslateExtend: E,
51
+ highlightedIds: q,
52
+ onSeriesMouseClick: y,
53
+ mapProperty: _,
54
54
  resetSelectionOnDoubleClick: fe,
55
55
  detailsOnClick: C,
56
56
  styles: ye,
57
57
  classNames: xe,
58
- mapProjection: X,
59
- zoomInteraction: B,
60
- animate: j,
61
- dimmedOpacity: _,
62
- customLayers: ne
63
- } = he, [w, M] = b(void 0), J = ae(null), [K, v] = b(!(s < 680)), [D, Z] = b(void 0), [U, Q] = b(void 0), [S, $] = b(void 0), [se, ee] = b(void 0), L = ae(null), te = Ge(L, {
64
- once: j.once,
65
- amount: j.amount
66
- }), le = ae(null), y = E ? _e().domain(g).range(c) : Ue().domain(g).range(c);
58
+ mapProjection: U,
59
+ zoomInteraction: W,
60
+ animate: k,
61
+ dimmedOpacity: G,
62
+ customLayers: se,
63
+ collapseColorScaleByDefault: Q
64
+ } = he, [j, P] = v(void 0), T = oe(null), [w, X] = v(
65
+ Q === void 0 ? !(s < 680) : !Q
66
+ ), [B, ee] = v(void 0), [Y, $] = v(void 0), [D, te] = v(void 0), [le, R] = v(void 0), A = oe(null), re = Ye(A, {
67
+ once: k.once,
68
+ amount: k.amount
69
+ }), u = oe(null), ve = S ? Ge().domain(g).range(c) : Xe().domain(g).range(c);
67
70
  pe(() => {
68
- const r = be(le.current), l = be(L.current), m = (o) => {
69
- if (B === "noZoom") return !1;
70
- if (B === "button") return !o.type.includes("wheel");
71
+ const r = ke(u.current), l = ke(A.current), d = (o) => {
72
+ if (W === "noZoom") return !1;
73
+ if (W === "button") return !o.type.includes("wheel");
71
74
  const n = o.type === "wheel", t = o.type.startsWith("touch"), a = o.type === "mousedown" || o.type === "mousemove";
72
- return t ? !0 : n ? B === "scroll" ? !0 : o.ctrlKey : a && !o.button && !o.ctrlKey;
73
- }, i = Se().scaleExtent(ue).translateExtent(
74
- I || [
75
+ return t ? !0 : n ? W === "scroll" ? !0 : o.ctrlKey : a && !o.button && !o.ctrlKey;
76
+ }, i = Oe().scaleExtent(ue).translateExtent(
77
+ E || [
75
78
  [-20, -20],
76
79
  [s + 20, h + 20]
77
80
  ]
78
- ).filter(m).on("zoom", ({ transform: o }) => {
81
+ ).filter(d).on("zoom", ({ transform: o }) => {
79
82
  r.attr("transform", o);
80
83
  });
81
- l.call(i), J.current = i;
82
- }, [h, s, B]);
83
- const u = Oe(x), z = Te(x), re = u[2] - u[0], ce = u[3] - u[1], A = s * 190 / 960 * 360 / re, ve = h * 190 / 678 * 180 / ce, d = oe * Math.min(A, ve), N = X === "mercator" ? Ee().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "equalEarth" ? Pe().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "naturalEarth" ? Ie().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "orthographic" ? Le().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : ze().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d), G = (r) => {
84
- if (!L.current || !J.current) return;
85
- be(L.current).call(J.current.scaleBy, r === "in" ? 1.2 : 1 / 1.2);
84
+ l.call(i), T.current = i;
85
+ }, [h, s, W]);
86
+ const f = Ee(x), I = Be(x), ae = f[2] - f[0], ce = f[3] - f[1], V = s * 190 / 960 * 360 / ae, be = h * 190 / 678 * 180 / ce, m = ie * Math.min(V, be), N = U === "mercator" ? Pe().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "equalEarth" ? Ie().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "naturalEarth" ? Le().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "orthographic" ? ze().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : We().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m), J = (r) => {
87
+ if (!A.current || !T.current) return;
88
+ ke(A.current).call(T.current.scaleBy, r === "in" ? 1.2 : 1 / 1.2);
86
89
  };
87
90
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
88
91
  /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
89
92
  /* @__PURE__ */ e.jsx(
90
- de.svg,
93
+ me.svg,
91
94
  {
92
95
  width: `${s}px`,
93
96
  height: `${h}px`,
94
97
  viewBox: `0 0 ${s} ${h}`,
95
- ref: L,
98
+ ref: A,
96
99
  direction: "ltr",
97
- children: /* @__PURE__ */ e.jsxs("g", { ref: le, children: [
98
- ne.filter((r) => r.position === "before").map((r) => r.layer),
100
+ children: /* @__PURE__ */ e.jsxs("g", { ref: u, children: [
101
+ se.filter((r) => r.position === "before").map((r) => r.layer),
99
102
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
100
- x.features.map((r, l) => k.findIndex((i) => i.id === r.properties[q]) !== -1 ? null : /* @__PURE__ */ e.jsx(
103
+ x.features.map((r, l) => b.findIndex((i) => i.id === r.properties[_]) !== -1 ? null : /* @__PURE__ */ e.jsx(
101
104
  "g",
102
105
  {
103
- opacity: w ? _ : H.length !== 0 ? H.indexOf(r.properties[q]) !== -1 ? 1 : _ : 1,
106
+ opacity: j ? G : q.length !== 0 ? q.indexOf(r.properties[_]) !== -1 ? 1 : G : 1,
104
107
  children: r.geometry.type === "MultiPolygon" ? (
105
108
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
106
109
  r.geometry.coordinates.map((i, o) => {
107
110
  let n = "";
108
111
  return i.forEach((t) => {
109
112
  let a = " M";
110
- t.forEach((p, W) => {
111
- const O = N([p[0], p[1]]);
112
- W !== t.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
113
+ t.forEach((p, L) => {
114
+ const M = N([p[0], p[1]]);
115
+ L !== t.length - 1 ? a = `${a}${M[0]} ${M[1]}L` : a = `${a}${M[0]} ${M[1]}`;
113
116
  }), n += a;
114
117
  }), /* @__PURE__ */ e.jsx(
115
118
  "path",
116
119
  {
117
120
  d: n,
118
121
  style: {
119
- stroke: F,
120
- strokeWidth: P,
121
- fill: R
122
+ stroke: H,
123
+ strokeWidth: O,
124
+ fill: K
122
125
  }
123
126
  },
124
127
  o
@@ -136,9 +139,9 @@ function at(he) {
136
139
  {
137
140
  d: n,
138
141
  style: {
139
- stroke: F,
140
- strokeWidth: P,
141
- fill: R
142
+ stroke: H,
143
+ strokeWidth: O,
144
+ fill: K
142
145
  }
143
146
  },
144
147
  o
@@ -148,38 +151,38 @@ function at(he) {
148
151
  },
149
152
  l
150
153
  )),
151
- /* @__PURE__ */ e.jsx(Re, { children: k.map((r) => {
154
+ /* @__PURE__ */ e.jsx(Re, { children: b.map((r) => {
152
155
  const l = x.features.findIndex(
153
156
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
- (i) => r.id === i.properties[q]
155
- ), m = Fe(r.x) ? R : (
157
+ (i) => r.id === i.properties[_]
158
+ ), d = He(r.x) ? K : (
156
159
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
157
- y(r.x)
160
+ ve(r.x)
158
161
  );
159
162
  return /* @__PURE__ */ e.jsx(
160
- de.g,
163
+ me.g,
161
164
  {
162
165
  variants: {
163
166
  initial: { opacity: 0 },
164
167
  whileInView: {
165
- opacity: w ? w === m ? 1 : _ : H.length !== 0 ? H.indexOf(r.id) !== -1 ? 1 : _ : 1,
166
- transition: { duration: j.duration }
168
+ opacity: j ? j === d ? 1 : G : q.length !== 0 ? q.indexOf(r.id) !== -1 ? 1 : G : 1,
169
+ transition: { duration: k.duration }
167
170
  }
168
171
  },
169
172
  initial: "initial",
170
- animate: te ? "whileInView" : "initial",
171
- exit: { opacity: 0, transition: { duration: j.duration } },
173
+ animate: re ? "whileInView" : "initial",
174
+ exit: { opacity: 0, transition: { duration: k.duration } },
172
175
  onMouseEnter: (i) => {
173
- Q(r), ee(i.clientY), $(i.clientX), Y?.(r);
176
+ $(r), R(i.clientY), te(i.clientX), Z?.(r);
174
177
  },
175
178
  onMouseMove: (i) => {
176
- Q(r), ee(i.clientY), $(i.clientX);
179
+ $(r), R(i.clientY), te(i.clientX);
177
180
  },
178
181
  onMouseLeave: () => {
179
- Q(void 0), $(void 0), ee(void 0), Y?.(void 0);
182
+ $(void 0), te(void 0), R(void 0), Z?.(void 0);
180
183
  },
181
184
  onClick: () => {
182
- (f || C) && (De(D, r) && fe ? (Z(void 0), f?.(void 0)) : (Z(r), f?.(r)));
185
+ (y || C) && (Se(B, r) && fe ? (ee(void 0), y?.(void 0)) : (ee(r), y?.(r)));
183
186
  },
184
187
  children: l === -1 ? null : x.features[l].geometry.type === "MultiPolygon" ? x.features[l].geometry.coordinates.map(
185
188
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -187,28 +190,28 @@ function at(he) {
187
190
  let n = "";
188
191
  return i.forEach((t) => {
189
192
  let a = " M";
190
- t.forEach((p, W) => {
191
- const O = N([p[0], p[1]]);
192
- W !== t.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
193
+ t.forEach((p, L) => {
194
+ const M = N([p[0], p[1]]);
195
+ L !== t.length - 1 ? a = `${a}${M[0]} ${M[1]}L` : a = `${a}${M[0]} ${M[1]}`;
193
196
  }), n += a;
194
197
  }), /* @__PURE__ */ e.jsx(
195
- de.path,
198
+ me.path,
196
199
  {
197
200
  d: n,
198
201
  variants: {
199
- initial: { fill: m, opacity: 0 },
202
+ initial: { fill: d, opacity: 0 },
200
203
  whileInView: {
201
- fill: m,
204
+ fill: d,
202
205
  opacity: 1,
203
- transition: { duration: j.duration }
206
+ transition: { duration: k.duration }
204
207
  }
205
208
  },
206
209
  initial: "initial",
207
- animate: te ? "whileInView" : "initial",
208
- exit: { opacity: 0, transition: { duration: j.duration } },
210
+ animate: re ? "whileInView" : "initial",
211
+ exit: { opacity: 0, transition: { duration: k.duration } },
209
212
  style: {
210
- stroke: F,
211
- strokeWidth: P
213
+ stroke: H,
214
+ strokeWidth: O
212
215
  }
213
216
  },
214
217
  `${r.id}-${o}`
@@ -222,23 +225,23 @@ function at(he) {
222
225
  const p = N([t[0], t[1]]);
223
226
  a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
224
227
  }), /* @__PURE__ */ e.jsx(
225
- de.path,
228
+ me.path,
226
229
  {
227
230
  d: n,
228
231
  variants: {
229
- initial: { fill: m, opacity: 0 },
232
+ initial: { fill: d, opacity: 0 },
230
233
  whileInView: {
231
- fill: m,
234
+ fill: d,
232
235
  opacity: 1,
233
- transition: { duration: j.duration }
236
+ transition: { duration: k.duration }
234
237
  }
235
238
  },
236
239
  initial: "initial",
237
- animate: te ? "whileInView" : "initial",
238
- exit: { opacity: 0, transition: { duration: j.duration } },
240
+ animate: re ? "whileInView" : "initial",
241
+ exit: { opacity: 0, transition: { duration: k.duration } },
239
242
  style: {
240
- stroke: F,
241
- strokeWidth: P
243
+ stroke: H,
244
+ strokeWidth: O
242
245
  }
243
246
  },
244
247
  `${r.id}-${o}`
@@ -249,18 +252,18 @@ function at(he) {
249
252
  r.id
250
253
  );
251
254
  }) }),
252
- U ? x.features.filter(
255
+ Y ? x.features.filter(
253
256
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
254
- (r) => r.properties[q] === U.id
257
+ (r) => r.properties[_] === Y.id
255
258
  ).map((r, l) => /* @__PURE__ */ e.jsx("g", { children: r.geometry.type === "MultiPolygon" ? (
256
259
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
257
- r.geometry.coordinates.map((m, i) => {
260
+ r.geometry.coordinates.map((d, i) => {
258
261
  let o = "";
259
- return m.forEach((n) => {
262
+ return d.forEach((n) => {
260
263
  let t = " M";
261
264
  n.forEach((a, p) => {
262
- const W = N([a[0], a[1]]);
263
- p !== n.length - 1 ? t = `${t}${W[0]} ${W[1]}L` : t = `${t}${W[0]} ${W[1]}`;
265
+ const L = N([a[0], a[1]]);
266
+ p !== n.length - 1 ? t = `${t}${L[0]} ${L[1]}L` : t = `${t}${L[0]} ${L[1]}`;
264
267
  }), o += t;
265
268
  }), /* @__PURE__ */ e.jsx(
266
269
  "path",
@@ -278,11 +281,11 @@ function at(he) {
278
281
  })
279
282
  ) : (
280
283
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
281
- r.geometry.coordinates.map((m, i) => {
284
+ r.geometry.coordinates.map((d, i) => {
282
285
  let o = "M";
283
- return m.forEach((n, t) => {
286
+ return d.forEach((n, t) => {
284
287
  const a = N([n[0], n[1]]);
285
- t !== m.length - 1 ? o = `${o}${a[0]} ${a[1]}L` : o = `${o}${a[0]} ${a[1]}`;
288
+ t !== d.length - 1 ? o = `${o}${a[0]} ${a[1]}L` : o = `${o}${a[0]} ${a[1]}`;
286
289
  }), /* @__PURE__ */ e.jsx(
287
290
  "path",
288
291
  {
@@ -298,44 +301,31 @@ function at(he) {
298
301
  );
299
302
  })
300
303
  ) }, l)) : null,
301
- ne.filter((r) => r.position === "after").map((r) => r.layer)
304
+ se.filter((r) => r.position === "after").map((r) => r.layer)
302
305
  ] })
303
306
  }
304
307
  ),
305
- ge === !1 ? null : /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 bottom-4", children: K ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
308
+ ge === !1 ? null : /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 bottom-4 map-color-legend", children: w ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
306
309
  /* @__PURE__ */ e.jsx(
307
310
  "div",
308
311
  {
309
- style: {
310
- backgroundColor: "rgba(240,240,240, 0.7)",
311
- border: "1px solid var(--gray-400)",
312
- borderRadius: "999px",
313
- width: "24px",
314
- height: "24px",
315
- padding: "3px",
316
- cursor: "pointer",
317
- zIndex: 10,
318
- position: "absolute",
319
- right: "-0.75rem",
320
- top: "-0.75rem"
321
- },
312
+ 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]",
322
313
  onClick: () => {
323
- v(!1);
314
+ X(!1);
324
315
  },
325
- children: /* @__PURE__ */ e.jsx(He, {})
316
+ children: /* @__PURE__ */ e.jsx(qe, {})
326
317
  }
327
318
  ),
328
319
  /* @__PURE__ */ e.jsxs(
329
320
  "div",
330
321
  {
331
- className: "p-2",
322
+ className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]",
332
323
  style: {
333
- backgroundColor: "rgba(240,240,240, 0.7)",
334
- width: E ? void 0 : "340px"
324
+ width: S ? void 0 : "340px"
335
325
  },
336
326
  children: [
337
- V && V !== "" ? /* @__PURE__ */ e.jsx(
338
- ke,
327
+ F && F !== "" ? /* @__PURE__ */ e.jsx(
328
+ je,
339
329
  {
340
330
  size: "xs",
341
331
  marginBottom: "xs",
@@ -345,18 +335,18 @@ function at(he) {
345
335
  WebkitLineClamp: "1",
346
336
  WebkitBoxOrient: "vertical"
347
337
  },
348
- children: V
338
+ children: F
349
339
  }
350
340
  ) : null,
351
- E ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: g.map((r, l) => /* @__PURE__ */ e.jsxs(
341
+ S ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: g.map((r, l) => /* @__PURE__ */ e.jsxs(
352
342
  "div",
353
343
  {
354
344
  className: "flex gap-2 items-center",
355
345
  onMouseOver: () => {
356
- M(c[l % c.length]);
346
+ P(c[l % c.length]);
357
347
  },
358
348
  onMouseLeave: () => {
359
- M(void 0);
349
+ P(void 0);
360
350
  },
361
351
  children: [
362
352
  /* @__PURE__ */ e.jsx(
@@ -366,7 +356,7 @@ function at(he) {
366
356
  style: { backgroundColor: c[l % c.length] }
367
357
  }
368
358
  ),
369
- /* @__PURE__ */ e.jsx(ke, { size: "sm", marginBottom: "none", leading: "none", children: r })
359
+ /* @__PURE__ */ e.jsx(je, { size: "sm", marginBottom: "none", leading: "none", children: r })
370
360
  ]
371
361
  },
372
362
  l
@@ -375,10 +365,10 @@ function at(he) {
375
365
  "g",
376
366
  {
377
367
  onMouseOver: () => {
378
- M(c[l]);
368
+ P(c[l]);
379
369
  },
380
370
  onMouseLeave: () => {
381
- M(void 0);
371
+ P(void 0);
382
372
  },
383
373
  className: "cursor-pointer",
384
374
  children: [
@@ -389,10 +379,10 @@ function at(he) {
389
379
  y: 1,
390
380
  width: 320 / c.length - 2,
391
381
  height: 8,
392
- className: w === c[l] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "",
382
+ className: j === c[l] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "",
393
383
  style: {
394
384
  fill: c[l],
395
- ...w === c[l] ? {} : { stroke: c[l] }
385
+ ...j === c[l] ? {} : { stroke: c[l] }
396
386
  }
397
387
  }
398
388
  ),
@@ -403,7 +393,7 @@ function at(he) {
403
393
  y: 25,
404
394
  className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
405
395
  style: { textAnchor: "middle" },
406
- children: Be(r, "NA")
396
+ children: Ae(r, "NA")
407
397
  }
408
398
  )
409
399
  ]
@@ -414,19 +404,19 @@ function at(he) {
414
404
  "rect",
415
405
  {
416
406
  onMouseOver: () => {
417
- M(c[g.length]);
407
+ P(c[g.length]);
418
408
  },
419
409
  onMouseLeave: () => {
420
- M(void 0);
410
+ P(void 0);
421
411
  },
422
412
  x: g.length * 320 / c.length + 1,
423
413
  y: 1,
424
414
  width: 320 / c.length - 2,
425
415
  height: 8,
426
- className: `cursor-pointer ${w === c[g.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`,
416
+ className: `cursor-pointer ${j === c[g.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`,
427
417
  style: {
428
418
  fill: c[g.length],
429
- ...w === c[g.length] ? {} : { stroke: c[g.length] }
419
+ ...j === c[g.length] ? {} : { stroke: c[g.length] }
430
420
  }
431
421
  }
432
422
  ) })
@@ -438,217 +428,218 @@ function at(he) {
438
428
  "button",
439
429
  {
440
430
  type: "button",
441
- className: "mb-0 border-0 bg-transparent p-0 self-start",
431
+ className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button",
442
432
  onClick: () => {
443
- v(!0);
433
+ X(!0);
444
434
  },
445
- children: /* @__PURE__ */ e.jsx("div", { className: "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-550 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
435
+ children: /* @__PURE__ */ e.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" })
446
436
  }
447
437
  ) }),
448
- B === "button" && /* @__PURE__ */ e.jsxs("div", { className: "absolute left-4 top-4 flex flex-col", children: [
438
+ W === "button" && /* @__PURE__ */ e.jsxs("div", { className: "absolute left-4 top-4 flex flex-col", children: [
449
439
  /* @__PURE__ */ e.jsx(
450
440
  "button",
451
441
  {
452
- onClick: () => G("in"),
453
- 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-400 dark:bg-primary-gray-600 dark:text-primary-gray-100",
442
+ onClick: () => J("in"),
443
+ 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",
454
444
  children: "+"
455
445
  }
456
446
  ),
457
447
  /* @__PURE__ */ e.jsx(
458
448
  "button",
459
449
  {
460
- onClick: () => G("out"),
461
- 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-400 dark:bg-primary-gray-600 dark:text-primary-gray-100",
450
+ onClick: () => J("out"),
451
+ 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",
462
452
  children: "–"
463
453
  }
464
454
  )
465
455
  ] })
466
456
  ] }),
467
- C && D !== void 0 ? /* @__PURE__ */ e.jsx(
468
- We,
457
+ C && B !== void 0 ? /* @__PURE__ */ e.jsx(
458
+ Te,
469
459
  {
470
- open: D !== void 0,
460
+ open: B !== void 0,
471
461
  onClose: () => {
472
- Z(void 0);
462
+ ee(void 0);
473
463
  },
474
464
  children: /* @__PURE__ */ e.jsx(
475
465
  "div",
476
466
  {
477
467
  className: "graph-modal-content m-0",
478
- dangerouslySetInnerHTML: typeof C == "string" ? { __html: Ve(C, D) } : void 0,
479
- children: typeof C == "function" ? C(D) : null
468
+ dangerouslySetInnerHTML: typeof C == "string" ? { __html: Fe(C, B) } : void 0,
469
+ children: typeof C == "function" ? C(B) : null
480
470
  }
481
471
  )
482
472
  }
483
473
  ) : null,
484
- U && ie && S && se ? /* @__PURE__ */ e.jsx(
485
- Ae,
474
+ Y && ne && D && le ? /* @__PURE__ */ e.jsx(
475
+ Ve,
486
476
  {
487
- data: U,
488
- body: ie,
489
- xPos: S,
490
- yPos: se,
477
+ data: Y,
478
+ body: ne,
479
+ xPos: D,
480
+ yPos: le,
491
481
  backgroundStyle: ye?.tooltip,
492
482
  className: xe?.tooltip
493
483
  }
494
484
  ) : null
495
485
  ] });
496
486
  }
497
- function Lt(he) {
487
+ function zt(he) {
498
488
  const {
499
- data: k,
489
+ data: b,
500
490
  mapData: g = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json",
501
491
  graphTitle: c,
502
492
  colors: x,
503
- sources: V,
504
- graphDescription: E,
493
+ sources: F,
494
+ graphDescription: S,
505
495
  height: h,
506
496
  width: s,
507
- footNote: oe = "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.",
508
- colorDomain: T,
509
- colorLegendTitle: ie,
510
- scaleType: P = "threshold",
511
- scale: F = 0.95,
512
- centerPoint: R,
513
- padding: Y,
497
+ footNote: ie = "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.",
498
+ colorDomain: z,
499
+ colorLegendTitle: ne,
500
+ scaleType: O = "threshold",
501
+ scale: H = 0.95,
502
+ centerPoint: K,
503
+ padding: Z,
514
504
  mapBorderWidth: ge = 0.5,
515
- mapNoDataColor: ue = me.light.graphNoData,
516
- backgroundColor: I = !1,
517
- mapBorderColor: H = me.light.grays["gray-500"],
518
- relativeHeight: f,
519
- tooltip: q,
505
+ mapNoDataColor: ue = de.light.graphNoData,
506
+ backgroundColor: E = !1,
507
+ mapBorderColor: q = de.light.grays["gray-500"],
508
+ relativeHeight: y,
509
+ tooltip: _,
520
510
  onSeriesMouseOver: fe,
521
511
  isWorldMap: C = !0,
522
512
  showColorScale: ye = !0,
523
513
  zoomScaleExtend: xe = [0.8, 6],
524
- zoomTranslateExtend: X,
525
- graphID: B,
526
- highlightedIds: j = [],
527
- onSeriesMouseClick: _,
528
- mapProperty: ne = "ISO3",
529
- graphDownload: w = !1,
530
- dataDownload: M = !1,
531
- showAntarctica: J = !1,
532
- language: K = "en",
533
- minHeight: v = 0,
534
- theme: D = "light",
535
- ariaLabel: Z,
536
- resetSelectionOnDoubleClick: U = !0,
537
- detailsOnClick: Q,
538
- styles: S,
539
- classNames: $,
540
- mapProjection: se,
541
- zoomInteraction: ee = "button",
542
- animate: L = !1,
543
- dimmedOpacity: te = 0.3,
544
- customLayers: le = [],
545
- timeline: y = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 }
546
- } = he, [u, z] = b(0), [re, ce] = b(0), [A, ve] = b(y.autoplay), d = tt(
547
- et(k, "date", !0).map(
548
- (t) => Ce(`${t}`, y.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
514
+ zoomTranslateExtend: U,
515
+ graphID: W,
516
+ highlightedIds: k = [],
517
+ onSeriesMouseClick: G,
518
+ mapProperty: se = "ISO3",
519
+ graphDownload: Q = !1,
520
+ dataDownload: j = !1,
521
+ showAntarctica: P = !1,
522
+ language: T = "en",
523
+ minHeight: w = 0,
524
+ theme: X = "light",
525
+ ariaLabel: B,
526
+ resetSelectionOnDoubleClick: ee = !0,
527
+ detailsOnClick: Y,
528
+ styles: $,
529
+ classNames: D,
530
+ mapProjection: te,
531
+ zoomInteraction: le = "button",
532
+ animate: R = !1,
533
+ dimmedOpacity: A = 0.3,
534
+ customLayers: re = [],
535
+ timeline: u = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
536
+ collapseColorScaleByDefault: ve
537
+ } = he, [f, I] = v(0), [ae, ce] = v(0), [V, be] = v(u.autoplay), m = rt(
538
+ tt(b, "date", !0).map(
539
+ (t) => De(`${t}`, u.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
549
540
  ),
550
- (t, a) => rt(t, a)
551
- ), [N, G] = b(y.autoplay ? 0 : d.length - 1), [r, l] = b(void 0), m = ae(null), i = ae(null);
541
+ (t, a) => at(t, a)
542
+ ), [N, J] = v(u.autoplay ? 0 : m.length - 1), [r, l] = v(void 0), d = oe(null), i = oe(null);
552
543
  pe(() => {
553
544
  const t = new ResizeObserver((a) => {
554
- z(s || a[0].target.clientWidth || 760), ce(h || a[0].target.clientHeight || 480);
545
+ I(s || a[0].target.clientWidth || 760), ce(h || a[0].target.clientHeight || 480);
555
546
  });
556
- return m.current && (ce(m.current.clientHeight || 480), z(m.current.clientWidth || 760), s || t.observe(m.current)), () => t.disconnect();
547
+ return d.current && (ce(d.current.clientHeight || 480), I(d.current.clientWidth || 760), s || t.observe(d.current)), () => t.disconnect();
557
548
  }, [s, h]), pe(() => {
558
- typeof g == "string" ? Ke(g).then((a) => {
549
+ typeof g == "string" ? Ze(g).then((a) => {
559
550
  l(a);
560
551
  }) : l(g);
561
552
  }, [g]);
562
- const o = T || (P === "categorical" ? Ze(k, "x") : Qe(
563
- k.map((t) => t.x),
553
+ const o = z || (O === "categorical" ? Qe(b, "x") : et(
554
+ b.map((t) => t.x),
564
555
  x?.length || 4
565
556
  ));
566
557
  pe(() => {
567
558
  const t = setInterval(
568
559
  () => {
569
- G((a) => a < d.length - 1 ? a + 1 : 0);
560
+ J((a) => a < m.length - 1 ? a + 1 : 0);
570
561
  },
571
- (y.speed || 2) * 1e3
562
+ (u.speed || 2) * 1e3
572
563
  );
573
- return A || clearInterval(t), () => clearInterval(t);
574
- }, [d, A, y.speed]);
575
- const n = we(
576
- d,
564
+ return V || clearInterval(t), () => clearInterval(t);
565
+ }, [m, V, u.speed]);
566
+ const n = $e(
567
+ m,
577
568
  N,
578
- y.showOnlyActiveDate,
579
- y.dateFormat || "yyyy"
569
+ u.showOnlyActiveDate,
570
+ u.dateFormat || "yyyy"
580
571
  );
581
572
  return /* @__PURE__ */ e.jsx(
582
573
  "div",
583
574
  {
584
- className: `${D || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
585
- dir: K === "he" || K === "ar" ? "rtl" : void 0,
575
+ className: `${X || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
576
+ dir: T === "he" || T === "ar" ? "rtl" : void 0,
586
577
  children: /* @__PURE__ */ e.jsx(
587
578
  "div",
588
579
  {
589
- className: je(
590
- `${I ? I === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${K || "en"}`,
580
+ className: we(
581
+ `${E ? E === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${T || "en"}`,
591
582
  s ? "w-fit" : "w-full",
592
- $?.graphContainer
583
+ D?.graphContainer
593
584
  ),
594
585
  style: {
595
- ...S?.graphContainer || {},
596
- ...I && I !== !0 ? { backgroundColor: I } : {}
586
+ ...$?.graphContainer || {},
587
+ ...E && E !== !0 ? { backgroundColor: E } : {}
597
588
  },
598
- id: B,
589
+ id: W,
599
590
  ref: i,
600
- "aria-label": Z || `${c ? `The graph shows ${c}. ` : ""}This is a choropleth map where geographic areas are colored in proportion to a specific variable.${E ? ` ${E}` : ""}`,
591
+ "aria-label": B || `${c ? `The graph shows ${c}. ` : ""}This is a choropleth map where geographic areas are colored in proportion to a specific variable.${S ? ` ${S}` : ""}`,
601
592
  children: /* @__PURE__ */ e.jsx(
602
593
  "div",
603
594
  {
604
595
  className: "flex grow",
605
- style: { padding: I ? Y || "1rem" : Y || 0 },
596
+ style: { padding: E ? Z || "1rem" : Z || 0 },
606
597
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
607
- c || E || w || M ? /* @__PURE__ */ e.jsx(
608
- Je,
598
+ c || S || Q || j ? /* @__PURE__ */ e.jsx(
599
+ Ke,
609
600
  {
610
601
  styles: {
611
- title: S?.title,
612
- description: S?.description
613
- },
614
- classNames: {
615
602
  title: $?.title,
616
603
  description: $?.description
617
604
  },
605
+ classNames: {
606
+ title: D?.title,
607
+ description: D?.description
608
+ },
618
609
  graphTitle: c,
619
- graphDescription: E,
610
+ graphDescription: S,
620
611
  width: s,
621
- graphDownload: w ? i.current : void 0,
622
- dataDownload: M ? k.map((t) => t.data).filter((t) => t !== void 0).length > 0 ? k.map((t) => t.data).filter((t) => t !== void 0) : k.filter((t) => t !== void 0) : null
612
+ graphDownload: Q ? i.current : void 0,
613
+ dataDownload: j ? b.map((t) => t.data).filter((t) => t !== void 0).length > 0 ? b.map((t) => t.data).filter((t) => t !== void 0) : b.filter((t) => t !== void 0) : null
623
614
  }
624
615
  ) : null,
625
- y.enabled && d.length > 0 && n ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
616
+ u.enabled && m.length > 0 && n ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
626
617
  /* @__PURE__ */ e.jsx(
627
618
  "button",
628
619
  {
629
620
  type: "button",
630
621
  onClick: () => {
631
- ve(!A);
622
+ be(!V);
632
623
  },
633
624
  className: "p-0 border-0 cursor-pointer bg-transparent",
634
- "aria-label": A ? "Click to pause animation" : "Click to play animation",
635
- children: A ? /* @__PURE__ */ e.jsx(qe, {}) : /* @__PURE__ */ e.jsx(Xe, {})
625
+ "aria-label": V ? "Click to pause animation" : "Click to play animation",
626
+ children: V ? /* @__PURE__ */ e.jsx(_e, {}) : /* @__PURE__ */ e.jsx(Ue, {})
636
627
  }
637
628
  ),
638
629
  /* @__PURE__ */ e.jsx(
639
- $e,
630
+ Ne,
640
631
  {
641
- min: d[0],
642
- max: d[d.length - 1],
632
+ min: m[0],
633
+ max: m[m.length - 1],
643
634
  marks: n,
644
635
  step: null,
645
- defaultValue: d[d.length - 1],
646
- value: d[N],
636
+ defaultValue: m[m.length - 1],
637
+ value: m[N],
647
638
  onChangeComplete: (t) => {
648
- G(d.indexOf(t));
639
+ J(m.indexOf(t));
649
640
  },
650
641
  onChange: (t) => {
651
- G(d.indexOf(t));
642
+ J(m.indexOf(t));
652
643
  },
653
644
  "aria-label": "Time slider. Use arrow keys to adjust selected time period."
654
645
  }
@@ -658,15 +649,15 @@ function Lt(he) {
658
649
  "div",
659
650
  {
660
651
  className: "flex flex-col grow justify-center leading-0",
661
- ref: m,
652
+ ref: d,
662
653
  "aria-label": "Map area",
663
- children: (s || u) && (h || re) && r ? /* @__PURE__ */ e.jsx(
664
- at,
654
+ children: (s || f) && (h || ae) && r ? /* @__PURE__ */ e.jsx(
655
+ ot,
665
656
  {
666
- data: k.filter(
667
- (t) => y.enabled ? t.date === Me(new Date(d[N]), y.dateFormat || "yyyy") : t
657
+ data: b.filter(
658
+ (t) => u.enabled ? t.date === Me(new Date(m[N]), u.dateFormat || "yyyy") : t
668
659
  ),
669
- mapData: J ? r : {
660
+ mapData: P ? r : {
670
661
  ...r,
671
662
  features: r.features.filter(
672
663
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -674,63 +665,64 @@ function Lt(he) {
674
665
  )
675
666
  },
676
667
  colorDomain: o,
677
- width: s || u,
668
+ width: s || f,
678
669
  height: Math.max(
679
- v,
680
- h || (f ? v ? (s || u) * f > v ? (s || u) * f : v : (s || u) * f : re)
670
+ w,
671
+ h || (y ? w ? (s || f) * y > w ? (s || f) * y : w : (s || f) * y : ae)
681
672
  ),
682
- scale: F,
683
- centerPoint: R,
684
- colors: x || (P === "categorical" ? me[D].sequentialColors[`neutralColorsx0${o.length}`] : me[D].sequentialColors[`neutralColorsx0${o.length + 1}`]),
685
- colorLegendTitle: ie,
673
+ scale: H,
674
+ centerPoint: K,
675
+ colors: x || (O === "categorical" ? de[X].sequentialColors[`neutralColorsx0${o.length}`] : de[X].sequentialColors[`neutralColorsx0${o.length + 1}`]),
676
+ colorLegendTitle: ne,
686
677
  mapBorderWidth: ge,
687
678
  mapNoDataColor: ue,
688
- categorical: P === "categorical",
689
- mapBorderColor: H,
690
- tooltip: q,
679
+ categorical: O === "categorical",
680
+ mapBorderColor: q,
681
+ tooltip: _,
691
682
  onSeriesMouseOver: fe,
692
683
  isWorldMap: C,
693
684
  showColorScale: ye,
694
685
  zoomScaleExtend: xe,
695
- zoomTranslateExtend: X,
696
- onSeriesMouseClick: _,
697
- mapProperty: ne,
698
- highlightedIds: j,
699
- resetSelectionOnDoubleClick: U,
700
- styles: S,
701
- classNames: $,
702
- detailsOnClick: Q,
703
- mapProjection: se || (C ? "naturalEarth" : "mercator"),
704
- zoomInteraction: ee,
705
- dimmedOpacity: te,
706
- animate: L === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : L || { duration: 0, once: !0, amount: 0 },
707
- customLayers: le
686
+ zoomTranslateExtend: U,
687
+ onSeriesMouseClick: G,
688
+ mapProperty: se,
689
+ highlightedIds: k,
690
+ resetSelectionOnDoubleClick: ee,
691
+ styles: $,
692
+ classNames: D,
693
+ detailsOnClick: Y,
694
+ mapProjection: te || (C ? "naturalEarth" : "mercator"),
695
+ zoomInteraction: le,
696
+ dimmedOpacity: A,
697
+ animate: R === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : R || { duration: 0, once: !0, amount: 0 },
698
+ customLayers: re,
699
+ collapseColorScaleByDefault: ve
708
700
  }
709
701
  ) : /* @__PURE__ */ e.jsx(
710
702
  "div",
711
703
  {
712
704
  style: {
713
705
  height: `${Math.max(
714
- v,
715
- h || (f ? v ? (s || u) * f > v ? (s || u) * f : v : (s || u) * f : re)
706
+ w,
707
+ h || (y ? w ? (s || f) * y > w ? (s || f) * y : w : (s || f) * y : ae)
716
708
  )}px`
717
709
  },
718
710
  className: "flex items-center justify-center",
719
- children: /* @__PURE__ */ e.jsx(Ne, { "aria-label": "Loading graph" })
711
+ children: /* @__PURE__ */ e.jsx(Ce, { "aria-label": "Loading graph" })
720
712
  }
721
713
  )
722
714
  }
723
715
  ),
724
- V || oe ? /* @__PURE__ */ e.jsx(
725
- Ye,
716
+ F || ie ? /* @__PURE__ */ e.jsx(
717
+ Je,
726
718
  {
727
- styles: { footnote: S?.footnote, source: S?.source },
719
+ styles: { footnote: $?.footnote, source: $?.source },
728
720
  classNames: {
729
- footnote: $?.footnote,
730
- source: $?.source
721
+ footnote: D?.footnote,
722
+ source: D?.source
731
723
  },
732
- sources: V,
733
- footNote: oe,
724
+ sources: F,
725
+ footNote: ie,
734
726
  width: s
735
727
  }
736
728
  ) : null
@@ -743,6 +735,6 @@ function Lt(he) {
743
735
  );
744
736
  }
745
737
  export {
746
- Lt as ChoroplethMap
738
+ zt as ChoroplethMap
747
739
  };
748
740
  //# sourceMappingURL=ChoroplethMap.js.map