@undp/data-viz 2.3.17 → 2.3.19

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 (438) 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 +1687 -1675
  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 +268 -265
  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 +526 -523
  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 +146 -146
  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 +547 -544
  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-D8WRC8-j.cjs +2 -0
  130. package/dist/GraphEl-D8WRC8-j.cjs.map +1 -0
  131. package/dist/{GraphEl-CnJf8b50.js → GraphEl-Dorm_qQE.js} +48 -10
  132. package/dist/GraphEl-Dorm_qQE.js.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 +283 -281
  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 +434 -432
  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 +398 -394
  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 +220 -218
  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 +439 -437
  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 +425 -423
  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.js +10 -10
  263. package/dist/{Source-BOSAl3UX.cjs → Source-PKuwZOn3.cjs} +2 -2
  264. package/dist/{Source-BOSAl3UX.cjs.map → Source-PKuwZOn3.cjs.map} +1 -1
  265. package/dist/{Source-Djkz-7jX.js → Source-QGk8vhkS.js} +3 -3
  266. package/dist/{Source-Djkz-7jX.js.map → Source-QGk8vhkS.js.map} +1 -1
  267. package/dist/Source.cjs +1 -1
  268. package/dist/Source.js +3 -3
  269. package/dist/SparkLine.cjs +1 -1
  270. package/dist/SparkLine.js +3 -3
  271. package/dist/{Spinner-CtJETd5V.js → Spinner-B2IIKg9r.js} +2 -2
  272. package/dist/{Spinner-CtJETd5V.js.map → Spinner-B2IIKg9r.js.map} +1 -1
  273. package/dist/{Spinner-jTMOLuw_.cjs → Spinner-WHzzloYQ.cjs} +2 -2
  274. package/dist/{Spinner-jTMOLuw_.cjs.map → Spinner-WHzzloYQ.cjs.map} +1 -1
  275. package/dist/StatCardFromData.cjs +1 -1
  276. package/dist/StatCardFromData.cjs.map +1 -1
  277. package/dist/StatCardFromData.d.ts +4 -0
  278. package/dist/StatCardFromData.js +97 -95
  279. package/dist/StatCardFromData.js.map +1 -1
  280. package/dist/StripChart.cjs +1 -1
  281. package/dist/StripChart.cjs.map +1 -1
  282. package/dist/StripChart.d.ts +2 -0
  283. package/dist/StripChart.js +360 -357
  284. package/dist/StripChart.js.map +1 -1
  285. package/dist/ThreeDGlobe.cjs +1 -1
  286. package/dist/ThreeDGlobe.cjs.map +1 -1
  287. package/dist/ThreeDGlobe.d.ts +2 -0
  288. package/dist/ThreeDGlobe.js +198 -196
  289. package/dist/ThreeDGlobe.js.map +1 -1
  290. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  291. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  292. package/dist/ThresholdColorLegendWithMouseOver.d.ts +2 -0
  293. package/dist/ThresholdColorLegendWithMouseOver.js +50 -48
  294. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  295. package/dist/{Tooltip-CohiIbLZ.js → Tooltip-Bj-s__cI.js} +3 -3
  296. package/dist/{Tooltip-CohiIbLZ.js.map → Tooltip-Bj-s__cI.js.map} +1 -1
  297. package/dist/{Tooltip-BLa2EfMs.cjs → Tooltip-Hr46paWP.cjs} +2 -2
  298. package/dist/{Tooltip-BLa2EfMs.cjs.map → Tooltip-Hr46paWP.cjs.map} +1 -1
  299. package/dist/TreeMapGraph.cjs +1 -1
  300. package/dist/TreeMapGraph.cjs.map +1 -1
  301. package/dist/TreeMapGraph.d.ts +2 -0
  302. package/dist/TreeMapGraph.js +219 -217
  303. package/dist/TreeMapGraph.js.map +1 -1
  304. package/dist/Types.d.ts +1 -0
  305. package/dist/{Typography-DMVW6JnV.js → Typography-BO0gQDIT.js} +2 -2
  306. package/dist/{Typography-DMVW6JnV.js.map → Typography-BO0gQDIT.js.map} +1 -1
  307. package/dist/{Typography-CZZxlj1W.cjs → Typography-BqmyF1gP.cjs} +2 -2
  308. package/dist/{Typography-CZZxlj1W.cjs.map → Typography-BqmyF1gP.cjs.map} +1 -1
  309. package/dist/UnitChart.cjs +1 -1
  310. package/dist/UnitChart.cjs.map +1 -1
  311. package/dist/UnitChart.d.ts +4 -0
  312. package/dist/UnitChart.js +88 -86
  313. package/dist/UnitChart.js.map +1 -1
  314. package/dist/WaterfallChart.cjs +1 -1
  315. package/dist/WaterfallChart.cjs.map +1 -1
  316. package/dist/WaterfallChart.d.ts +2 -0
  317. package/dist/WaterfallChart.js +243 -241
  318. package/dist/WaterfallChart.js.map +1 -1
  319. package/dist/{XAxesLabels-IwjMJkYS.js → XAxesLabels-B9gkjUiC.js} +3 -3
  320. package/dist/{XAxesLabels-IwjMJkYS.js.map → XAxesLabels-B9gkjUiC.js.map} +1 -1
  321. package/dist/{XAxesLabels-C6o9jJal.cjs → XAxesLabels-C03jHniq.cjs} +2 -2
  322. package/dist/{XAxesLabels-C6o9jJal.cjs.map → XAxesLabels-C03jHniq.cjs.map} +1 -1
  323. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +2 -0
  324. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +1 -0
  325. package/dist/XTicksAndGridLines-gdbGX2rm.js +39 -0
  326. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +1 -0
  327. package/dist/{YAxesLabels-BQ2aCazV.cjs → YAxesLabels-DeENFC2M.cjs} +2 -2
  328. package/dist/{YAxesLabels-BQ2aCazV.cjs.map → YAxesLabels-DeENFC2M.cjs.map} +1 -1
  329. package/dist/{YAxesLabels-DoGvgHdw.js → YAxesLabels-hWEUCTvs.js} +3 -3
  330. package/dist/{YAxesLabels-DoGvgHdw.js.map → YAxesLabels-hWEUCTvs.js.map} +1 -1
  331. package/dist/YTicksAndGridLines-CsNSq9W9.js +39 -0
  332. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +1 -0
  333. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +2 -0
  334. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +1 -0
  335. package/dist/{checkIfMultiple-TOaaUwS7.cjs → checkIfMultiple-CH5tqj4q.cjs} +2 -2
  336. package/dist/checkIfMultiple-CH5tqj4q.cjs.map +1 -0
  337. package/dist/{checkIfMultiple-B97uOUVq.js → checkIfMultiple-Dpyy6BUP.js} +6 -6
  338. package/dist/checkIfMultiple-Dpyy6BUP.js.map +1 -0
  339. package/dist/{customArea-B1LWQBmM.cjs → customArea-BAcQ3pBM.cjs} +2 -2
  340. package/dist/{customArea-B1LWQBmM.cjs.map → customArea-BAcQ3pBM.cjs.map} +1 -1
  341. package/dist/{customArea-Cc2whe6P.js → customArea-D89lETG0.js} +3 -3
  342. package/dist/{customArea-Cc2whe6P.js.map → customArea-D89lETG0.js.map} +1 -1
  343. package/dist/getSliderMarks-BzrpHrHS.cjs +2 -0
  344. package/dist/getSliderMarks-BzrpHrHS.cjs.map +1 -0
  345. package/dist/{getSliderMarks-vXsR8RrR.js → getSliderMarks-X-_goqH9.js} +3 -4
  346. package/dist/getSliderMarks-X-_goqH9.js.map +1 -0
  347. package/dist/{index-CZ0elhKR.js → index-ApTBN0kp.js} +20 -10
  348. package/dist/{index-CZ0elhKR.js.map → index-ApTBN0kp.js.map} +1 -1
  349. package/dist/index-Bdo_HXb_.cjs +2 -0
  350. package/dist/index-Bdo_HXb_.cjs.map +1 -0
  351. package/dist/{index-sbKVyHS2.cjs → index-BhI7mBJx.cjs} +2 -2
  352. package/dist/{index-sbKVyHS2.cjs.map → index-BhI7mBJx.cjs.map} +1 -1
  353. package/dist/{index-D69M6klB.cjs → index-BuhBhuCq.cjs} +2 -2
  354. package/dist/{index-D69M6klB.cjs.map → index-BuhBhuCq.cjs.map} +1 -1
  355. package/dist/index-CGrBpeUa.js +380 -0
  356. package/dist/index-CGrBpeUa.js.map +1 -0
  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-Co3YGYe1.js → index-Cv_5q6Rb.js} +3 -3
  362. package/dist/{index-Co3YGYe1.js.map → index-Cv_5q6Rb.js.map} +1 -1
  363. package/dist/{index-D_dtv_T9.js → index-DHVGV8Df.js} +3 -3
  364. package/dist/{index-D_dtv_T9.js.map → index-DHVGV8Df.js.map} +1 -1
  365. package/dist/{index-CoobIWNj.cjs → index-FXfr51ZM.cjs} +2 -2
  366. package/dist/{index-CoobIWNj.cjs.map → index-FXfr51ZM.cjs.map} +1 -1
  367. package/dist/{index-D6CYcVc7-BOa7Dpvf.js → index-Scxs_wcm-BAjU0Cob.js} +16 -16
  368. package/dist/index-Scxs_wcm-BAjU0Cob.js.map +1 -0
  369. package/dist/index-Scxs_wcm-DUDU-Gll.cjs +2 -0
  370. package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +1 -0
  371. package/dist/{index-DoS4bGNa-C3DbPpy3.cjs → index-w64Zl8io-DrMm5QSb.cjs} +2 -2
  372. package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +1 -0
  373. package/dist/{index-DoS4bGNa-Bgab95kx.js → index-w64Zl8io-ihagHOdP.js} +2 -2
  374. package/dist/index-w64Zl8io-ihagHOdP.js.map +1 -0
  375. package/dist/index.cjs +1 -1
  376. package/dist/index.d.ts +92 -17
  377. package/dist/index.js +3 -3
  378. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +2 -0
  379. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +1 -0
  380. package/dist/numberFormattingFunction-DqMf_v1m.js +28 -0
  381. package/dist/numberFormattingFunction-DqMf_v1m.js.map +1 -0
  382. package/dist/{proxy--_f6k3NR.js → proxy-BsxtcZKa.js} +2 -2
  383. package/dist/{proxy--_f6k3NR.js.map → proxy-BsxtcZKa.js.map} +1 -1
  384. package/dist/{proxy-C4-uo6nS.cjs → proxy-CqH8m8IQ.cjs} +2 -2
  385. package/dist/{proxy-C4-uo6nS.cjs.map → proxy-CqH8m8IQ.cjs.map} +1 -1
  386. package/dist/{string2HTML-DUYZT1L9.js → string2HTML-BrFperRM.js} +2 -2
  387. package/dist/{string2HTML-DUYZT1L9.js.map → string2HTML-BrFperRM.js.map} +1 -1
  388. package/dist/{string2HTML-xx9MzTtY.cjs → string2HTML-ZoGd08P_.cjs} +2 -2
  389. package/dist/{string2HTML-xx9MzTtY.cjs.map → string2HTML-ZoGd08P_.cjs.map} +1 -1
  390. package/dist/style.css +1 -1
  391. package/dist/{use-in-view-DqvKAveg.js → use-in-view-KOXq5Kmc.js} +2 -2
  392. package/dist/{use-in-view-DqvKAveg.js.map → use-in-view-KOXq5Kmc.js.map} +1 -1
  393. package/dist/{use-in-view-C3o_ntMv.cjs → use-in-view-dnRv_qqF.cjs} +2 -2
  394. package/dist/{use-in-view-C3o_ntMv.cjs.map → use-in-view-dnRv_qqF.cjs.map} +1 -1
  395. package/dist/utils.cjs +1 -1
  396. package/dist/utils.d.ts +9 -18
  397. package/dist/utils.js +1 -1
  398. package/dist/x-BXShoIAM-BC2sxios.cjs +2 -0
  399. package/dist/x-BXShoIAM-BC2sxios.cjs.map +1 -0
  400. package/dist/{x-BBpi7a_7-BsvWCzYM.js → x-BXShoIAM-D6VWO6z5.js} +3 -5
  401. package/dist/x-BXShoIAM-D6VWO6z5.js.map +1 -0
  402. package/package.json +2 -2
  403. package/dist/DropdownSelect-B2WTeedJ.js.map +0 -1
  404. package/dist/DropdownSelect-NNpOs7DX.cjs.map +0 -1
  405. package/dist/GraphEl-CnJf8b50.js.map +0 -1
  406. package/dist/GraphEl-D_w0Qak4.cjs +0 -2
  407. package/dist/GraphEl-D_w0Qak4.cjs.map +0 -1
  408. package/dist/XTicksAndGridLines-BDmF9etl.js +0 -38
  409. package/dist/XTicksAndGridLines-BDmF9etl.js.map +0 -1
  410. package/dist/XTicksAndGridLines-CekrPykD.cjs +0 -2
  411. package/dist/XTicksAndGridLines-CekrPykD.cjs.map +0 -1
  412. package/dist/YTicksAndGridLines-C3GW1xFG.js +0 -38
  413. package/dist/YTicksAndGridLines-C3GW1xFG.js.map +0 -1
  414. package/dist/YTicksAndGridLines-UzVC5eBM.cjs +0 -2
  415. package/dist/YTicksAndGridLines-UzVC5eBM.cjs.map +0 -1
  416. package/dist/checkIfMultiple-B97uOUVq.js.map +0 -1
  417. package/dist/checkIfMultiple-TOaaUwS7.cjs.map +0 -1
  418. package/dist/getSliderMarks-CIuSoedo.cjs +0 -2
  419. package/dist/getSliderMarks-CIuSoedo.cjs.map +0 -1
  420. package/dist/getSliderMarks-vXsR8RrR.js.map +0 -1
  421. package/dist/index-C6VwVS8W.js +0 -378
  422. package/dist/index-C6VwVS8W.js.map +0 -1
  423. package/dist/index-CHPV5EwG-6v2a2njQ.cjs.map +0 -1
  424. package/dist/index-CHPV5EwG-BCLAYDCV.js.map +0 -1
  425. package/dist/index-D6CYcVc7-BOa7Dpvf.js.map +0 -1
  426. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs +0 -2
  427. package/dist/index-D6CYcVc7-CTEcAtiQ.cjs.map +0 -1
  428. package/dist/index-DoS4bGNa-Bgab95kx.js.map +0 -1
  429. package/dist/index-DoS4bGNa-C3DbPpy3.cjs.map +0 -1
  430. package/dist/index-_TlgeI_i.cjs +0 -2
  431. package/dist/index-_TlgeI_i.cjs.map +0 -1
  432. package/dist/numberFormattingFunction-02t-wJta.cjs +0 -2
  433. package/dist/numberFormattingFunction-02t-wJta.cjs.map +0 -1
  434. package/dist/numberFormattingFunction-14YCbkN2.js +0 -13
  435. package/dist/numberFormattingFunction-14YCbkN2.js.map +0 -1
  436. package/dist/x-BBpi7a_7-BsvWCzYM.js.map +0 -1
  437. package/dist/x-BBpi7a_7-DXYIEFwN.cjs +0 -2
  438. package/dist/x-BBpi7a_7-DXYIEFwN.cjs.map +0 -1
@@ -1,172 +1,173 @@
1
- import { c as Jt, j as a, m as Yt } from "./index-CHPV5EwG-BCLAYDCV.js";
2
- import { useRef as Bt, useState as Ot, useEffect as si } from "react";
3
- import { i as ti } from "./index-Bwrro8-q.js";
4
- import { o as ii } from "./index-BZQYSqar.js";
5
- import { T as ei } from "./Tooltip-CohiIbLZ.js";
1
+ import { c as Qt, j as a, m as Yt } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as qt, useState as Ot, useEffect as ui } from "react";
3
+ import { i as ei } from "./index-Bwrro8-q.js";
4
+ import { o as oi } from "./index-BZQYSqar.js";
5
+ import { T as ni } from "./Tooltip-Bj-s__cI.js";
6
6
  import { c as U } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
- import { n as Gt } from "./numberFormattingFunction-14YCbkN2.js";
8
- import { Colors as h } from "./Colors.js";
9
- import { D as oi } from "./DetailsModal-C3qlUyFK.js";
10
- import { a as ni } from "./linear-DNXM5Pdl.js";
11
- import { m as et } from "./proxy--_f6k3NR.js";
12
- import { u as ri } from "./use-in-view-DqvKAveg.js";
13
- import { A as li } from "./index-Co3YGYe1.js";
14
- import { u as _t } from "./uniqBy-BHy4I8PK.js";
15
- import { a as ci, G as ui } from "./GraphContainer-DwMxWRCi.js";
16
- import { E as fi } from "./EmptyState-B3fPoH6L.js";
17
- import { ColorLegendWithMouseOver as pi } from "./ColorLegendWithMouseOver.js";
18
- import { GraphFooter as mi } from "./GraphFooter.js";
19
- import { GraphHeader as hi } from "./GraphHeader.js";
20
- function ai(i, t) {
7
+ import { n as Gt } from "./numberFormattingFunction-DqMf_v1m.js";
8
+ import { Colors as d } from "./Colors.js";
9
+ import { D as ri } from "./DetailsModal-B2XBWR7w.js";
10
+ import { a as li } from "./linear-DNXM5Pdl.js";
11
+ import { m as ot } from "./proxy-BsxtcZKa.js";
12
+ import { u as ai } from "./use-in-view-KOXq5Kmc.js";
13
+ import { A as si } from "./index-Cv_5q6Rb.js";
14
+ import { u as ii } from "./uniqBy-BHy4I8PK.js";
15
+ import { a as fi, G as pi } from "./GraphContainer-B8ZqOzKI.js";
16
+ import { E as mi } from "./EmptyState-CaxXCkiN.js";
17
+ import { ColorLegendWithMouseOver as hi } from "./ColorLegendWithMouseOver.js";
18
+ import { GraphFooter as di } from "./GraphFooter.js";
19
+ import { GraphHeader as gi } from "./GraphHeader.js";
20
+ function ci(i, t) {
21
21
  if (i < 2) return [];
22
22
  const o = t / (i - 1);
23
23
  return Array.from({
24
24
  length: i
25
- }, ($, v) => v * o);
25
+ }, (A, v) => v * o);
26
26
  }
27
- function di(i) {
28
- const t = Jt.c(101), {
27
+ function xi(i) {
28
+ const t = Qt.c(102), {
29
29
  data: o,
30
- width: $,
30
+ width: A,
31
31
  height: v,
32
32
  colors: n,
33
33
  colorDomain: l,
34
- radius: c,
34
+ radius: u,
35
35
  leftMargin: C,
36
36
  rightMargin: bt,
37
- topMargin: pt,
38
- bottomMargin: It,
39
- tooltip: mt,
40
- onSeriesMouseOver: ot,
37
+ topMargin: mt,
38
+ bottomMargin: kt,
39
+ tooltip: ht,
40
+ onSeriesMouseOver: nt,
41
41
  highlightedDataPoints: r,
42
- selectedColor: nt,
43
- minValue: S,
44
- maxValue: T,
42
+ selectedColor: rt,
43
+ minValue: N,
44
+ maxValue: S,
45
45
  onSeriesMouseClick: J,
46
- noOfTicks: rt,
46
+ noOfTicks: lt,
47
47
  prefix: K,
48
- suffix: lt,
48
+ suffix: at,
49
49
  stripType: b,
50
50
  highlightColor: x,
51
- dotOpacity: gt,
51
+ dotOpacity: vt,
52
52
  resetSelectionOnDoubleClick: Q,
53
53
  detailsOnClick: O,
54
54
  styles: f,
55
55
  classNames: w,
56
56
  valueColor: p,
57
57
  animate: m,
58
- dimmedOpacity: _,
59
- precision: tt,
60
- customLayers: j,
61
- showDataMinMax: wt
62
- } = i, xt = C === void 0 ? 20 : C, Mt = bt === void 0 ? 20 : bt, Vt = pt === void 0 ? 10 : pt, jt = It === void 0 ? 10 : It, kt = Bt(null);
63
- let at;
64
- t[0] !== m.amount || t[1] !== m.once ? (at = {
58
+ dimmedOpacity: tt,
59
+ precision: it,
60
+ customLayers: V,
61
+ showDataMinMax: wt,
62
+ locale: Z
63
+ } = i, Mt = C === void 0 ? 20 : C, Vt = bt === void 0 ? 20 : bt, jt = mt === void 0 ? 10 : mt, Ct = kt === void 0 ? 10 : kt, $t = qt(null);
64
+ let st;
65
+ t[0] !== m.amount || t[1] !== m.once ? (st = {
65
66
  once: m.once,
66
67
  amount: m.amount
67
- }, t[0] = m.amount, t[1] = m.once, t[2] = at) : at = t[2];
68
- const M = ri(kt, at), [ht, yt] = Ot(void 0), [D, d] = Ot(void 0), [u, Ct] = Ot(void 0), [dt, Dt] = Ot(void 0);
69
- let it;
70
- t[3] !== jt || t[4] !== xt || t[5] !== Mt || t[6] !== Vt ? (it = {
71
- top: Vt,
72
- bottom: jt,
73
- left: xt,
74
- right: Mt
75
- }, t[3] = jt, t[4] = xt, t[5] = Mt, t[6] = Vt, t[7] = it) : it = t[7];
76
- const g = it, B = $ - g.left - g.right, q = v - g.top - g.bottom;
77
- let E, I, V, L, k, A, P, H, W, X, Y, G;
78
- if (t[8] !== m.duration || t[9] !== w?.graphObjectValues || t[10] !== w?.yAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== O || t[16] !== _ || t[17] !== gt || t[18] !== q || t[19] !== B || t[20] !== v || t[21] !== x || t[22] !== r || t[23] !== M || t[24] !== g.left || t[25] !== g.top || t[26] !== T || t[27] !== S || t[28] !== D || t[29] !== rt || t[30] !== J || t[31] !== ot || t[32] !== tt || t[33] !== K || t[34] !== c || t[35] !== Q || t[36] !== nt || t[37] !== wt || t[38] !== b || t[39] !== f?.graphObjectValues || t[40] !== f?.yAxis?.labels || t[41] !== lt || t[42] !== p || t[43] !== $) {
79
- const At = o.map(Ri);
80
- let ct;
81
- t[56] !== r ? (ct = (e) => {
82
- const s = (r || []).indexOf(e.label);
83
- return s === -1 ? 1 / 0 : s;
84
- }, t[56] = r, t[57] = ct) : ct = t[57];
85
- const Tt = ii(At, [ct], ["desc"]);
86
- let ut;
87
- t[58] !== o || t[59] !== T ? (ut = U(T) ? Math.max(...o.filter(zi).map(Gi)) < 0 ? 0 : Math.max(...o.filter(Yi).map(Xi)) : T, t[58] = o, t[59] = T, t[60] = ut) : ut = t[60];
88
- const Nt = ut;
89
- let vt;
90
- t[61] !== o || t[62] !== S ? (vt = U(S) ? Math.min(...o.filter(Wi).map(Hi)) >= 0 ? 0 : Math.min(...o.filter(Pi).map(Li)) : S, t[61] = o, t[62] = S, t[63] = vt) : vt = t[63];
91
- const $t = vt, ft = ni().domain([$t, Nt]).range([q, 0]).nice(), St = ai(rt, q);
92
- I = et.svg, L = `${$}px`, k = `${v}px`, A = `0 0 ${$} ${v}`, P = "ltr", H = kt, G = `translate(${g.left},${g.top})`, t[64] !== j ? (V = j.filter(Ei).map(Ti), t[64] = j, t[65] = V) : V = t[65], E = li, W = Tt.map((e) => /* @__PURE__ */ a.jsxs(et.g, { className: "undp-viz-g-with-hover", variants: {
68
+ }, t[0] = m.amount, t[1] = m.once, t[2] = st) : st = t[2];
69
+ const j = ai($t, st), [ct, Dt] = Ot(void 0), [s, h] = Ot(void 0), [dt, It] = Ot(void 0), [gt, xt] = Ot(void 0);
70
+ let yt;
71
+ t[3] !== Ct || t[4] !== Mt || t[5] !== Vt || t[6] !== jt ? (yt = {
72
+ top: jt,
73
+ bottom: Ct,
74
+ left: Mt,
75
+ right: Vt
76
+ }, t[3] = Ct, t[4] = Mt, t[5] = Vt, t[6] = jt, t[7] = yt) : yt = t[7];
77
+ const g = yt, F = A - g.left - g.right, B = v - g.top - g.bottom;
78
+ let T, D, M, E, I, k, L, P, H, W, X, Y;
79
+ if (t[8] !== m.duration || t[9] !== w?.graphObjectValues || t[10] !== w?.yAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== V || t[14] !== o || t[15] !== O || t[16] !== tt || t[17] !== vt || t[18] !== B || t[19] !== F || t[20] !== v || t[21] !== x || t[22] !== r || t[23] !== j || t[24] !== Z || t[25] !== g.left || t[26] !== g.top || t[27] !== S || t[28] !== N || t[29] !== s || t[30] !== lt || t[31] !== J || t[32] !== nt || t[33] !== it || t[34] !== K || t[35] !== u || t[36] !== Q || t[37] !== rt || t[38] !== wt || t[39] !== b || t[40] !== f?.graphObjectValues || t[41] !== f?.yAxis?.labels || t[42] !== at || t[43] !== p || t[44] !== A) {
80
+ const At = o.map(Bi);
81
+ let ft;
82
+ t[57] !== r ? (ft = (e) => {
83
+ const c = (r || []).indexOf(e.label);
84
+ return c === -1 ? 1 / 0 : c;
85
+ }, t[57] = r, t[58] = ft) : ft = t[58];
86
+ const Nt = oi(At, [ft], ["desc"]);
87
+ let pt;
88
+ t[59] !== o || t[60] !== S ? (pt = U(S) ? Math.max(...o.filter(Fi).map(Ri)) < 0 ? 0 : Math.max(...o.filter(zi).map(Gi)) : S, t[59] = o, t[60] = S, t[61] = pt) : pt = t[61];
89
+ const St = pt;
90
+ let et;
91
+ t[62] !== o || t[63] !== N ? (et = U(N) ? Math.min(...o.filter(Yi).map(Xi)) >= 0 ? 0 : Math.min(...o.filter(Wi).map(Hi)) : N, t[62] = o, t[63] = N, t[64] = et) : et = t[64];
92
+ const zt = et, q = li().domain([zt, St]).range([B, 0]).nice(), Tt = ci(lt, B);
93
+ D = ot.svg, E = `${A}px`, I = `${v}px`, k = `0 0 ${A} ${v}`, L = "ltr", P = $t, Y = `translate(${g.left},${g.top})`, t[65] !== V ? (M = V.filter(Pi).map(Li), t[65] = V, t[66] = M) : M = t[66], T = si, H = Nt.map((e) => /* @__PURE__ */ a.jsxs(ot.g, { className: "undp-viz-g-with-hover", variants: {
93
94
  initial: {
94
95
  opacity: 0,
95
- x: B / 2,
96
- y: ft(0)
96
+ x: F / 2,
97
+ y: q(0)
97
98
  },
98
99
  whileInView: {
99
- x: B / 2,
100
- y: ft(e.position),
101
- opacity: nt ? e.color && n[l.indexOf(e.color)] === nt ? 0.95 : _ : r.length !== 0 ? r.indexOf(e.label) !== -1 ? 0.95 : _ : gt,
100
+ x: F / 2,
101
+ y: q(e.position),
102
+ opacity: rt ? e.color && n[l.indexOf(e.color)] === rt ? 0.95 : tt : r.length !== 0 ? r.indexOf(e.label) !== -1 ? 0.95 : tt : vt,
102
103
  transition: {
103
104
  duration: m.duration
104
105
  }
105
106
  }
106
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
107
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
107
108
  opacity: 0,
108
109
  transition: {
109
110
  duration: m.duration
110
111
  }
111
- }, onMouseEnter: (s) => {
112
- yt(e), Dt(s.clientY), Ct(s.clientX), ot?.(e);
112
+ }, onMouseEnter: (c) => {
113
+ Dt(e), xt(c.clientY), It(c.clientX), nt?.(e);
113
114
  }, onClick: () => {
114
- (J || O) && (ti(D, e) && Q ? (d(void 0), J?.(void 0)) : (d(e), J?.(e)));
115
- }, onMouseMove: (s) => {
116
- yt(e), Dt(s.clientY), Ct(s.clientX);
115
+ (J || O) && (ei(s, e) && Q ? (h(void 0), J?.(void 0)) : (h(e), J?.(e)));
116
+ }, onMouseMove: (c) => {
117
+ Dt(e), xt(c.clientY), It(c.clientX);
117
118
  }, onMouseLeave: () => {
118
- yt(void 0), Ct(void 0), Dt(void 0), ot?.(void 0);
119
+ Dt(void 0), It(void 0), xt(void 0), nt?.(void 0);
119
120
  }, children: [
120
- b === "dot" ? /* @__PURE__ */ a.jsx(et.circle, { cy: 0, cx: 0, variants: {
121
+ b === "dot" ? /* @__PURE__ */ a.jsx(ot.circle, { cy: 0, cx: 0, variants: {
121
122
  initial: {
122
- fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Si).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter($i).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
123
+ fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Ei).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Ti).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray
123
124
  },
124
125
  whileInView: {
125
- fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Ni).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ai).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
126
+ fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Si).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Ni).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray,
126
127
  transition: {
127
128
  duration: m.duration
128
129
  }
129
130
  }
130
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
131
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
131
132
  opacity: 0,
132
133
  transition: {
133
134
  duration: m.duration
134
135
  }
135
- }, r: c }) : /* @__PURE__ */ a.jsx(et.rect, { y: -1, height: 2, variants: {
136
+ }, r: u }) : /* @__PURE__ */ a.jsx(ot.rect, { y: -1, height: 2, variants: {
136
137
  initial: {
137
- x: 0 - c,
138
- width: c * 2,
139
- fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(ki).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ii).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
138
+ x: 0 - u,
139
+ width: u * 2,
140
+ fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Ai).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter($i).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray
140
141
  },
141
142
  whileInView: {
142
- x: 0 - c,
143
- width: c * 2,
144
- fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Di).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ci).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
143
+ x: 0 - u,
144
+ width: u * 2,
145
+ fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(ki).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Ii).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray,
145
146
  transition: {
146
147
  duration: m.duration
147
148
  }
148
149
  }
149
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
150
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
150
151
  opacity: 0,
151
152
  transition: {
152
153
  duration: m.duration
153
154
  }
154
155
  } }),
155
- r.length !== 0 && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(et.text, { y: 0, dy: "0.33em", variants: {
156
+ r.length !== 0 && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(ot.text, { y: 0, dy: "0.33em", variants: {
156
157
  initial: {
157
158
  opacity: 0,
158
- x: 0 + c + 3,
159
- fill: p || (x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(ji).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Vi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray)
159
+ x: 0 + u + 3,
160
+ fill: p || (x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Di).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Ci).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray)
160
161
  },
161
162
  whileInView: {
162
163
  opacity: 1,
163
- x: 0 + c + 3,
164
- fill: p || (x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Mi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(wi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray),
164
+ x: 0 + u + 3,
165
+ fill: p || (x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(ji).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Vi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray),
165
166
  transition: {
166
167
  duration: m.duration
167
168
  }
168
169
  }
169
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
170
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
170
171
  opacity: 0,
171
172
  transition: {
172
173
  duration: m.duration
@@ -174,39 +175,39 @@ function di(i) {
174
175
  }, style: {
175
176
  textAnchor: "start",
176
177
  ...f?.graphObjectValues || {}
177
- }, className: Yt("graph-value text-sm font-bold", w?.graphObjectValues), children: Gt(e.position, "NA", tt, K, lt) }) : null
178
- ] }, e.label)), X = wt ? [Math.min(...o.filter(bi).map(Oi)), Math.max(...o.filter(vi).map(yi))].map((e, s) => /* @__PURE__ */ a.jsx(et.g, { variants: {
178
+ }, className: Yt("graph-value text-sm font-bold", w?.graphObjectValues), children: Gt(e.position, void 0, it, K, at, Z) }) : null
179
+ ] }, e.label)), W = wt ? [Math.min(...o.filter(Mi).map(wi)), Math.max(...o.filter(bi).map(Oi))].map((e, c) => /* @__PURE__ */ a.jsx(ot.g, { variants: {
179
180
  initial: {
180
181
  opacity: 0,
181
- x: B / 2,
182
- y: ft(0)
182
+ x: F / 2,
183
+ y: q(0)
183
184
  },
184
185
  whileInView: {
185
- x: B / 2,
186
- y: ft(e),
186
+ x: F / 2,
187
+ y: q(e),
187
188
  opacity: 1,
188
189
  transition: {
189
190
  duration: m.duration
190
191
  }
191
192
  }
192
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
193
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
193
194
  opacity: 0,
194
195
  transition: {
195
196
  duration: m.duration
196
197
  }
197
- }, children: /* @__PURE__ */ a.jsx(et.text, { y: 0, dy: "0.33em", variants: {
198
+ }, children: /* @__PURE__ */ a.jsx(ot.text, { y: 0, dy: "0.33em", variants: {
198
199
  initial: {
199
200
  opacity: 0,
200
- x: 0 + c + 3
201
+ x: 0 + u + 3
201
202
  },
202
203
  whileInView: {
203
204
  opacity: 1,
204
- x: 0 + c + 3,
205
+ x: 0 + u + 3,
205
206
  transition: {
206
207
  duration: m.duration
207
208
  }
208
209
  }
209
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
210
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
210
211
  opacity: 0,
211
212
  transition: {
212
213
  duration: m.duration
@@ -214,50 +215,44 @@ function di(i) {
214
215
  }, style: {
215
216
  textAnchor: "start",
216
217
  ...f?.graphObjectValues || {}
217
- }, className: Yt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", w?.graphObjectValues), children: Gt(e, "NA", tt, K, lt) }, s) }, s)) : null, Y = St.map((e, s) => /* @__PURE__ */ a.jsx("text", { y: e, x: B / 2 + c + 5, style: {
218
+ }, className: Yt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", w?.graphObjectValues), children: Gt(e, void 0, it, K, at, Z) }, c) }, c)) : null, X = Tt.map((e, c) => /* @__PURE__ */ a.jsx("text", { y: e, x: F / 2 + u + 5, style: {
218
219
  textAnchor: "start",
219
220
  ...f?.yAxis?.labels || {}
220
- }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", w?.yAxis?.labels), children: Gt(ft.invert(e), "NA", tt, K, lt) }, s)), t[8] = m.duration, t[9] = w?.graphObjectValues, t[10] = w?.yAxis?.labels, t[11] = l, t[12] = n, t[13] = j, t[14] = o, t[15] = O, t[16] = _, t[17] = gt, t[18] = q, t[19] = B, t[20] = v, t[21] = x, t[22] = r, t[23] = M, t[24] = g.left, t[25] = g.top, t[26] = T, t[27] = S, t[28] = D, t[29] = rt, t[30] = J, t[31] = ot, t[32] = tt, t[33] = K, t[34] = c, t[35] = Q, t[36] = nt, t[37] = wt, t[38] = b, t[39] = f?.graphObjectValues, t[40] = f?.yAxis?.labels, t[41] = lt, t[42] = p, t[43] = $, t[44] = E, t[45] = I, t[46] = V, t[47] = L, t[48] = k, t[49] = A, t[50] = P, t[51] = H, t[52] = W, t[53] = X, t[54] = Y, t[55] = G;
221
+ }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", w?.yAxis?.labels), children: Gt(q.invert(e), void 0, it, K, at, Z) }, c)), t[8] = m.duration, t[9] = w?.graphObjectValues, t[10] = w?.yAxis?.labels, t[11] = l, t[12] = n, t[13] = V, t[14] = o, t[15] = O, t[16] = tt, t[17] = vt, t[18] = B, t[19] = F, t[20] = v, t[21] = x, t[22] = r, t[23] = j, t[24] = Z, t[25] = g.left, t[26] = g.top, t[27] = S, t[28] = N, t[29] = s, t[30] = lt, t[31] = J, t[32] = nt, t[33] = it, t[34] = K, t[35] = u, t[36] = Q, t[37] = rt, t[38] = wt, t[39] = b, t[40] = f?.graphObjectValues, t[41] = f?.yAxis?.labels, t[42] = at, t[43] = p, t[44] = A, t[45] = T, t[46] = D, t[47] = M, t[48] = E, t[49] = I, t[50] = k, t[51] = L, t[52] = P, t[53] = H, t[54] = W, t[55] = X, t[56] = Y;
221
222
  } else
222
- E = t[44], I = t[45], V = t[46], L = t[47], k = t[48], A = t[49], P = t[50], H = t[51], W = t[52], X = t[53], Y = t[54], G = t[55];
223
- let z;
224
- t[66] !== E || t[67] !== W || t[68] !== X || t[69] !== Y ? (z = /* @__PURE__ */ a.jsxs(E, { children: [
223
+ T = t[45], D = t[46], M = t[47], E = t[48], I = t[49], k = t[50], L = t[51], P = t[52], H = t[53], W = t[54], X = t[55], Y = t[56];
224
+ let G;
225
+ t[67] !== T || t[68] !== H || t[69] !== W || t[70] !== X ? (G = /* @__PURE__ */ a.jsxs(T, { children: [
226
+ H,
225
227
  W,
226
- X,
227
- Y
228
- ] }), t[66] = E, t[67] = W, t[68] = X, t[69] = Y, t[70] = z) : z = t[70];
228
+ X
229
+ ] }), t[67] = T, t[68] = H, t[69] = W, t[70] = X, t[71] = G) : G = t[71];
229
230
  let y;
230
- t[71] !== j ? (y = j.filter(xi).map(gi), t[71] = j, t[72] = y) : y = t[72];
231
- let R;
232
- t[73] !== V || t[74] !== z || t[75] !== y || t[76] !== G ? (R = /* @__PURE__ */ a.jsxs("g", { transform: G, children: [
233
- V,
234
- z,
231
+ t[72] !== V ? (y = V.filter(vi).map(yi), t[72] = V, t[73] = y) : y = t[73];
232
+ let z;
233
+ t[74] !== M || t[75] !== G || t[76] !== y || t[77] !== Y ? (z = /* @__PURE__ */ a.jsxs("g", { transform: Y, children: [
234
+ M,
235
+ G,
235
236
  y
236
- ] }), t[73] = V, t[74] = z, t[75] = y, t[76] = G, t[77] = R) : R = t[77];
237
- let Z;
238
- t[78] !== I || t[79] !== L || t[80] !== k || t[81] !== A || t[82] !== P || t[83] !== H || t[84] !== R ? (Z = /* @__PURE__ */ a.jsx(I, { width: L, height: k, viewBox: A, direction: P, ref: H, children: R }), t[78] = I, t[79] = L, t[80] = k, t[81] = A, t[82] = P, t[83] = H, t[84] = R, t[85] = Z) : Z = t[85];
239
- let N;
240
- t[86] !== w?.tooltip || t[87] !== u || t[88] !== dt || t[89] !== ht || t[90] !== f?.tooltip || t[91] !== mt ? (N = ht && mt && u && dt ? /* @__PURE__ */ a.jsx(ei, { data: ht, body: mt, xPos: u, yPos: dt, backgroundStyle: f?.tooltip, className: w?.tooltip }) : null, t[86] = w?.tooltip, t[87] = u, t[88] = dt, t[89] = ht, t[90] = f?.tooltip, t[91] = mt, t[92] = N) : N = t[92];
241
- let F;
242
- t[93] !== w?.modal || t[94] !== O || t[95] !== D ? (F = O && D !== void 0 ? /* @__PURE__ */ a.jsx(oi, { body: O, data: D, setData: d, className: w?.modal }) : null, t[93] = w?.modal, t[94] = O, t[95] = D, t[96] = F) : F = t[96];
243
- let st;
244
- return t[97] !== Z || t[98] !== N || t[99] !== F ? (st = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
245
- Z,
246
- N,
247
- F
248
- ] }), t[97] = Z, t[98] = N, t[99] = F, t[100] = st) : st = t[100], st;
249
- }
250
- function gi(i) {
251
- return i.layer;
252
- }
253
- function xi(i) {
254
- return i.position === "after";
237
+ ] }), t[74] = M, t[75] = G, t[76] = y, t[77] = Y, t[78] = z) : z = t[78];
238
+ let _;
239
+ t[79] !== D || t[80] !== E || t[81] !== I || t[82] !== k || t[83] !== L || t[84] !== P || t[85] !== z ? (_ = /* @__PURE__ */ a.jsx(D, { width: E, height: I, viewBox: k, direction: L, ref: P, children: z }), t[79] = D, t[80] = E, t[81] = I, t[82] = k, t[83] = L, t[84] = P, t[85] = z, t[86] = _) : _ = t[86];
240
+ let $;
241
+ t[87] !== w?.tooltip || t[88] !== dt || t[89] !== gt || t[90] !== ct || t[91] !== f?.tooltip || t[92] !== ht ? ($ = ct && ht && dt && gt ? /* @__PURE__ */ a.jsx(ni, { data: ct, body: ht, xPos: dt, yPos: gt, backgroundStyle: f?.tooltip, className: w?.tooltip }) : null, t[87] = w?.tooltip, t[88] = dt, t[89] = gt, t[90] = ct, t[91] = f?.tooltip, t[92] = ht, t[93] = $) : $ = t[93];
242
+ let R;
243
+ t[94] !== w?.modal || t[95] !== O || t[96] !== s ? (R = O && s !== void 0 ? /* @__PURE__ */ a.jsx(ri, { body: O, data: s, setData: h, className: w?.modal }) : null, t[94] = w?.modal, t[95] = O, t[96] = s, t[97] = R) : R = t[97];
244
+ let ut;
245
+ return t[98] !== _ || t[99] !== $ || t[100] !== R ? (ut = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
246
+ _,
247
+ $,
248
+ R
249
+ ] }), t[98] = _, t[99] = $, t[100] = R, t[101] = ut) : ut = t[101], ut;
255
250
  }
256
251
  function yi(i) {
257
- return i.position;
252
+ return i.layer;
258
253
  }
259
254
  function vi(i) {
260
- return !U(i.position);
255
+ return i.position === "after";
261
256
  }
262
257
  function Oi(i) {
263
258
  return i.position;
@@ -266,10 +261,10 @@ function bi(i) {
266
261
  return !U(i.position);
267
262
  }
268
263
  function wi(i) {
269
- return i.color;
264
+ return i.position;
270
265
  }
271
266
  function Mi(i) {
272
- return i.color;
267
+ return !U(i.position);
273
268
  }
274
269
  function Vi(i) {
275
270
  return i.color;
@@ -289,29 +284,29 @@ function Ii(i) {
289
284
  function ki(i) {
290
285
  return i.color;
291
286
  }
292
- function Ai(i) {
287
+ function $i(i) {
293
288
  return i.color;
294
289
  }
295
- function Ni(i) {
290
+ function Ai(i) {
296
291
  return i.color;
297
292
  }
298
- function $i(i) {
293
+ function Ni(i) {
299
294
  return i.color;
300
295
  }
301
296
  function Si(i) {
302
297
  return i.color;
303
298
  }
304
299
  function Ti(i) {
305
- return i.layer;
300
+ return i.color;
306
301
  }
307
302
  function Ei(i) {
308
- return i.position === "before";
303
+ return i.color;
309
304
  }
310
305
  function Li(i) {
311
- return i.position;
306
+ return i.layer;
312
307
  }
313
308
  function Pi(i) {
314
- return !U(i.position);
309
+ return i.position === "before";
315
310
  }
316
311
  function Hi(i) {
317
312
  return i.position;
@@ -331,155 +326,162 @@ function Gi(i) {
331
326
  function zi(i) {
332
327
  return !U(i.position);
333
328
  }
334
- function Ri(i, t) {
329
+ function Ri(i) {
330
+ return i.position;
331
+ }
332
+ function Fi(i) {
333
+ return !U(i.position);
334
+ }
335
+ function Bi(i, t) {
335
336
  return {
336
337
  ...i,
337
338
  id: `${t}`
338
339
  };
339
340
  }
340
- function Fi(i) {
341
- const t = Jt.c(101), {
341
+ function qi(i) {
342
+ const t = Qt.c(102), {
342
343
  data: o,
343
- width: $,
344
+ width: A,
344
345
  height: v,
345
346
  colors: n,
346
347
  colorDomain: l,
347
- radius: c,
348
+ radius: u,
348
349
  leftMargin: C,
349
350
  rightMargin: bt,
350
- topMargin: pt,
351
- bottomMargin: It,
352
- tooltip: mt,
353
- onSeriesMouseOver: ot,
351
+ topMargin: mt,
352
+ bottomMargin: kt,
353
+ tooltip: ht,
354
+ onSeriesMouseOver: nt,
354
355
  highlightedDataPoints: r,
355
- selectedColor: nt,
356
- minValue: S,
357
- maxValue: T,
356
+ selectedColor: rt,
357
+ minValue: N,
358
+ maxValue: S,
358
359
  onSeriesMouseClick: J,
359
- prefix: rt,
360
+ prefix: lt,
360
361
  suffix: K,
361
- stripType: lt,
362
+ stripType: at,
362
363
  highlightColor: b,
363
364
  dotOpacity: x,
364
- resetSelectionOnDoubleClick: gt,
365
+ resetSelectionOnDoubleClick: vt,
365
366
  detailsOnClick: Q,
366
367
  styles: O,
367
368
  classNames: f,
368
369
  valueColor: w,
369
370
  animate: p,
370
371
  noOfTicks: m,
371
- dimmedOpacity: _,
372
- precision: tt,
373
- customLayers: j,
374
- showDataMinMax: wt
375
- } = i, xt = C === void 0 ? 5 : C, Mt = bt === void 0 ? 5 : bt, Vt = pt === void 0 ? 10 : pt, jt = It === void 0 ? 10 : It, kt = Bt(null);
376
- let at;
377
- t[0] !== p.amount || t[1] !== p.once ? (at = {
372
+ dimmedOpacity: tt,
373
+ precision: it,
374
+ customLayers: V,
375
+ showDataMinMax: wt,
376
+ locale: Z
377
+ } = i, Mt = C === void 0 ? 5 : C, Vt = bt === void 0 ? 5 : bt, jt = mt === void 0 ? 10 : mt, Ct = kt === void 0 ? 10 : kt, $t = qt(null);
378
+ let st;
379
+ t[0] !== p.amount || t[1] !== p.once ? (st = {
378
380
  once: p.once,
379
381
  amount: p.amount
380
- }, t[0] = p.amount, t[1] = p.once, t[2] = at) : at = t[2];
381
- const M = ri(kt, at), [ht, yt] = Ot(void 0), [D, d] = Ot(void 0), [u, Ct] = Ot(void 0), [dt, Dt] = Ot(void 0);
382
- let it;
383
- t[3] !== jt || t[4] !== xt || t[5] !== Mt || t[6] !== Vt ? (it = {
384
- top: Vt,
385
- bottom: jt,
386
- left: xt,
387
- right: Mt
388
- }, t[3] = jt, t[4] = xt, t[5] = Mt, t[6] = Vt, t[7] = it) : it = t[7];
389
- const g = it, B = $ - g.left - g.right, q = v - g.top - g.bottom;
390
- let E, I, V, L, k, A, P, H, W, X, Y, G;
391
- if (t[8] !== p.duration || t[9] !== f?.graphObjectValues || t[10] !== f?.xAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== Q || t[16] !== _ || t[17] !== x || t[18] !== q || t[19] !== B || t[20] !== v || t[21] !== b || t[22] !== r || t[23] !== M || t[24] !== g.left || t[25] !== g.top || t[26] !== T || t[27] !== S || t[28] !== D || t[29] !== m || t[30] !== J || t[31] !== ot || t[32] !== tt || t[33] !== rt || t[34] !== c || t[35] !== gt || t[36] !== nt || t[37] !== wt || t[38] !== lt || t[39] !== O?.graphObjectValues || t[40] !== O?.xAxis?.labels || t[41] !== K || t[42] !== w || t[43] !== $) {
392
- const At = o.map(Oe);
393
- let ct;
394
- t[56] !== r ? (ct = (e) => {
395
- const s = (r || []).indexOf(e.label);
396
- return s === -1 ? 1 / 0 : s;
397
- }, t[56] = r, t[57] = ct) : ct = t[57];
398
- const Tt = ii(At, [ct], ["desc"]);
399
- let ut;
400
- t[58] !== o || t[59] !== T ? (ut = U(T) ? Math.max(...o.filter(ve).map(ye)) < 0 ? 0 : Math.max(...o.filter(xe).map(ge)) : T, t[58] = o, t[59] = T, t[60] = ut) : ut = t[60];
401
- const Nt = ut;
402
- let vt;
403
- t[61] !== o || t[62] !== S ? (vt = U(S) ? Math.min(...o.filter(de).map(he)) >= 0 ? 0 : Math.min(...o.filter(me).map(pe)) : S, t[61] = o, t[62] = S, t[63] = vt) : vt = t[63];
404
- const $t = vt, ft = ni().domain([$t, Nt]).range([0, B]).nice(), St = ai(m, B);
405
- I = et.svg, L = `${$}px`, k = `${v}px`, A = `0 0 ${$} ${v}`, P = "ltr", H = kt, G = `translate(${g.left},${g.top})`, t[64] !== j ? (V = j.filter(fe).map(ue), t[64] = j, t[65] = V) : V = t[65], E = li, W = Tt.map((e) => /* @__PURE__ */ a.jsxs(et.g, { className: "undp-viz-g-with-hover", variants: {
382
+ }, t[0] = p.amount, t[1] = p.once, t[2] = st) : st = t[2];
383
+ const j = ai($t, st), [ct, Dt] = Ot(void 0), [s, h] = Ot(void 0), [dt, It] = Ot(void 0), [gt, xt] = Ot(void 0);
384
+ let yt;
385
+ t[3] !== Ct || t[4] !== Mt || t[5] !== Vt || t[6] !== jt ? (yt = {
386
+ top: jt,
387
+ bottom: Ct,
388
+ left: Mt,
389
+ right: Vt
390
+ }, t[3] = Ct, t[4] = Mt, t[5] = Vt, t[6] = jt, t[7] = yt) : yt = t[7];
391
+ const g = yt, F = A - g.left - g.right, B = v - g.top - g.bottom;
392
+ let T, D, M, E, I, k, L, P, H, W, X, Y;
393
+ if (t[8] !== p.duration || t[9] !== f?.graphObjectValues || t[10] !== f?.xAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== V || t[14] !== o || t[15] !== Q || t[16] !== tt || t[17] !== x || t[18] !== B || t[19] !== F || t[20] !== v || t[21] !== b || t[22] !== r || t[23] !== j || t[24] !== Z || t[25] !== g.left || t[26] !== g.top || t[27] !== S || t[28] !== N || t[29] !== s || t[30] !== m || t[31] !== J || t[32] !== nt || t[33] !== it || t[34] !== lt || t[35] !== u || t[36] !== vt || t[37] !== rt || t[38] !== wt || t[39] !== at || t[40] !== O?.graphObjectValues || t[41] !== O?.xAxis?.labels || t[42] !== K || t[43] !== w || t[44] !== A) {
394
+ const At = o.map(we);
395
+ let ft;
396
+ t[57] !== r ? (ft = (e) => {
397
+ const c = (r || []).indexOf(e.label);
398
+ return c === -1 ? 1 / 0 : c;
399
+ }, t[57] = r, t[58] = ft) : ft = t[58];
400
+ const Nt = oi(At, [ft], ["desc"]);
401
+ let pt;
402
+ t[59] !== o || t[60] !== S ? (pt = U(S) ? Math.max(...o.filter(be).map(Oe)) < 0 ? 0 : Math.max(...o.filter(ve).map(ye)) : S, t[59] = o, t[60] = S, t[61] = pt) : pt = t[61];
403
+ const St = pt;
404
+ let et;
405
+ t[62] !== o || t[63] !== N ? (et = U(N) ? Math.min(...o.filter(xe).map(ge)) >= 0 ? 0 : Math.min(...o.filter(de).map(he)) : N, t[62] = o, t[63] = N, t[64] = et) : et = t[64];
406
+ const zt = et, q = li().domain([zt, St]).range([0, F]).nice(), Tt = ci(m, F);
407
+ D = ot.svg, E = `${A}px`, I = `${v}px`, k = `0 0 ${A} ${v}`, L = "ltr", P = $t, Y = `translate(${g.left},${g.top})`, t[65] !== V ? (M = V.filter(me).map(pe), t[65] = V, t[66] = M) : M = t[66], T = si, H = Nt.map((e) => /* @__PURE__ */ a.jsxs(ot.g, { className: "undp-viz-g-with-hover", variants: {
406
408
  initial: {
407
409
  opacity: 0,
408
- x: ft(0),
409
- y: q / 2
410
+ x: q(0),
411
+ y: B / 2
410
412
  },
411
413
  whileInView: {
412
- x: ft(e.position),
413
- y: q / 2,
414
- opacity: nt ? e.color && n[l.indexOf(e.color)] === nt ? 0.95 : _ : r.length !== 0 ? r.indexOf(e.label) !== -1 ? 0.95 : _ : x,
414
+ x: q(e.position),
415
+ y: B / 2,
416
+ opacity: rt ? e.color && n[l.indexOf(e.color)] === rt ? 0.95 : tt : r.length !== 0 ? r.indexOf(e.label) !== -1 ? 0.95 : tt : x,
415
417
  transition: {
416
418
  duration: p.duration
417
419
  }
418
420
  }
419
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
421
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
420
422
  opacity: 0,
421
423
  transition: {
422
424
  duration: p.duration
423
425
  }
424
- }, onMouseEnter: (s) => {
425
- yt(e), Dt(s.clientY), Ct(s.clientX), ot?.(e);
426
+ }, onMouseEnter: (c) => {
427
+ Dt(e), xt(c.clientY), It(c.clientX), nt?.(e);
426
428
  }, onClick: () => {
427
- (J || Q) && (ti(D, e) && gt ? (d(void 0), J?.(void 0)) : (d(e), J?.(e)));
428
- }, onMouseMove: (s) => {
429
- yt(e), Dt(s.clientY), Ct(s.clientX);
429
+ (J || Q) && (ei(s, e) && vt ? (h(void 0), J?.(void 0)) : (h(e), J?.(e)));
430
+ }, onMouseMove: (c) => {
431
+ Dt(e), xt(c.clientY), It(c.clientX);
430
432
  }, onMouseLeave: () => {
431
- yt(void 0), Ct(void 0), Dt(void 0), ot?.(void 0);
433
+ Dt(void 0), It(void 0), xt(void 0), nt?.(void 0);
432
434
  }, children: [
433
- lt === "dot" ? /* @__PURE__ */ a.jsx(et.circle, { cy: 0, cx: 0, variants: {
435
+ at === "dot" ? /* @__PURE__ */ a.jsx(ot.circle, { cy: 0, cx: 0, variants: {
434
436
  initial: {
435
- fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ce).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(se).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
437
+ fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(fe).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(ue).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray
436
438
  },
437
439
  whileInView: {
438
- fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ae).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(le).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
440
+ fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ce).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(se).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray,
439
441
  transition: {
440
442
  duration: p.duration
441
443
  }
442
444
  }
443
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
445
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
444
446
  opacity: 0,
445
447
  transition: {
446
448
  duration: p.duration
447
449
  }
448
- }, r: c }) : /* @__PURE__ */ a.jsx(et.rect, { x: -1, width: 2, variants: {
450
+ }, r: u }) : /* @__PURE__ */ a.jsx(ot.rect, { x: -1, width: 2, variants: {
449
451
  initial: {
450
- y: 0 - c,
451
- height: c * 2,
452
- fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(re).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(ne).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
452
+ y: 0 - u,
453
+ height: u * 2,
454
+ fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ae).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(le).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray
453
455
  },
454
456
  whileInView: {
455
- y: 0 - c,
456
- height: c * 2,
457
- fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(oe).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(ee).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
457
+ y: 0 - u,
458
+ height: u * 2,
459
+ fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(re).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(ne).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray,
458
460
  transition: {
459
461
  duration: p.duration
460
462
  }
461
463
  }
462
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
464
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
463
465
  opacity: 0,
464
466
  transition: {
465
467
  duration: p.duration
466
468
  }
467
469
  } }),
468
- r.length !== 0 && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(et.text, { x: 0, variants: {
470
+ r.length !== 0 && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(ot.text, { x: 0, variants: {
469
471
  initial: {
470
472
  opacity: 0,
471
- y: 0 - c - 5,
472
- fill: w || (b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ie).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(te).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray)
473
+ y: 0 - u - 5,
474
+ fill: w || (b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(oe).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(ee).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray)
473
475
  },
474
476
  whileInView: {
475
477
  opacity: 1,
476
- y: 0 - c - 5,
477
- fill: w || (b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(_i).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Zi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray),
478
+ y: 0 - u - 5,
479
+ fill: w || (b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ie).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(te).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray),
478
480
  transition: {
479
481
  duration: p.duration
480
482
  }
481
483
  }
482
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
484
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
483
485
  opacity: 0,
484
486
  transition: {
485
487
  duration: p.duration
@@ -487,39 +489,39 @@ function Fi(i) {
487
489
  }, style: {
488
490
  textAnchor: "middle",
489
491
  ...O?.graphObjectValues || {}
490
- }, className: Yt("graph-value text-sm font-bold", f?.graphObjectValues), children: Gt(e.position, "NA", tt, rt, K) }) : null
491
- ] }, e.label)), X = wt ? [Math.min(...o.filter(Qi).map(Ki)), Math.max(...o.filter(Ji).map(Ui))].map((e, s) => /* @__PURE__ */ a.jsx(et.g, { variants: {
492
+ }, className: Yt("graph-value text-sm font-bold", f?.graphObjectValues), children: Gt(e.position, void 0, it, lt, K, Z) }) : null
493
+ ] }, e.label)), W = wt ? [Math.min(...o.filter(_i).map(Zi)), Math.max(...o.filter(Qi).map(Ki))].map((e, c) => /* @__PURE__ */ a.jsx(ot.g, { variants: {
492
494
  initial: {
493
495
  opacity: 0,
494
- x: ft(0),
495
- y: q / 2
496
+ x: q(0),
497
+ y: B / 2
496
498
  },
497
499
  whileInView: {
498
- x: ft(e),
499
- y: q / 2,
500
+ x: q(e),
501
+ y: B / 2,
500
502
  opacity: 1,
501
503
  transition: {
502
504
  duration: p.duration
503
505
  }
504
506
  }
505
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
507
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
506
508
  opacity: 0,
507
509
  transition: {
508
510
  duration: p.duration
509
511
  }
510
- }, children: /* @__PURE__ */ a.jsx(et.text, { x: 0, variants: {
512
+ }, children: /* @__PURE__ */ a.jsx(ot.text, { x: 0, variants: {
511
513
  initial: {
512
514
  opacity: 0,
513
- y: 0 - c - 5
515
+ y: 0 - u - 5
514
516
  },
515
517
  whileInView: {
516
518
  opacity: 1,
517
- y: 0 - c - 5,
519
+ y: 0 - u - 5,
518
520
  transition: {
519
521
  duration: p.duration
520
522
  }
521
523
  }
522
- }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
524
+ }, initial: "initial", animate: j ? "whileInView" : "initial", exit: {
523
525
  opacity: 0,
524
526
  transition: {
525
527
  duration: p.duration
@@ -527,50 +529,44 @@ function Fi(i) {
527
529
  }, style: {
528
530
  textAnchor: "middle",
529
531
  ...O?.graphObjectValues || {}
530
- }, className: Yt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", f?.graphObjectValues), children: Gt(e, "NA", tt, rt, K) }) }, s)) : null, Y = St.map((e, s) => /* @__PURE__ */ a.jsx("text", { x: e, y: q / 2 + c, style: {
531
- textAnchor: s === 0 ? "start" : s === St.length - 1 ? "end" : "middle",
532
+ }, className: Yt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", f?.graphObjectValues), children: Gt(e, void 0, it, lt, K, Z) }) }, c)) : null, X = Tt.map((e, c) => /* @__PURE__ */ a.jsx("text", { x: e, y: B / 2 + u, style: {
533
+ textAnchor: c === 0 ? "start" : c === Tt.length - 1 ? "end" : "middle",
532
534
  ...O?.xAxis?.labels || {}
533
- }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", f?.xAxis?.labels), dy: "1em", children: Gt(ft.invert(e), "NA", tt, rt, K) }, s)), t[8] = p.duration, t[9] = f?.graphObjectValues, t[10] = f?.xAxis?.labels, t[11] = l, t[12] = n, t[13] = j, t[14] = o, t[15] = Q, t[16] = _, t[17] = x, t[18] = q, t[19] = B, t[20] = v, t[21] = b, t[22] = r, t[23] = M, t[24] = g.left, t[25] = g.top, t[26] = T, t[27] = S, t[28] = D, t[29] = m, t[30] = J, t[31] = ot, t[32] = tt, t[33] = rt, t[34] = c, t[35] = gt, t[36] = nt, t[37] = wt, t[38] = lt, t[39] = O?.graphObjectValues, t[40] = O?.xAxis?.labels, t[41] = K, t[42] = w, t[43] = $, t[44] = E, t[45] = I, t[46] = V, t[47] = L, t[48] = k, t[49] = A, t[50] = P, t[51] = H, t[52] = W, t[53] = X, t[54] = Y, t[55] = G;
535
+ }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", f?.xAxis?.labels), dy: "1em", children: Gt(q.invert(e), void 0, it, lt, K, Z) }, c)), t[8] = p.duration, t[9] = f?.graphObjectValues, t[10] = f?.xAxis?.labels, t[11] = l, t[12] = n, t[13] = V, t[14] = o, t[15] = Q, t[16] = tt, t[17] = x, t[18] = B, t[19] = F, t[20] = v, t[21] = b, t[22] = r, t[23] = j, t[24] = Z, t[25] = g.left, t[26] = g.top, t[27] = S, t[28] = N, t[29] = s, t[30] = m, t[31] = J, t[32] = nt, t[33] = it, t[34] = lt, t[35] = u, t[36] = vt, t[37] = rt, t[38] = wt, t[39] = at, t[40] = O?.graphObjectValues, t[41] = O?.xAxis?.labels, t[42] = K, t[43] = w, t[44] = A, t[45] = T, t[46] = D, t[47] = M, t[48] = E, t[49] = I, t[50] = k, t[51] = L, t[52] = P, t[53] = H, t[54] = W, t[55] = X, t[56] = Y;
534
536
  } else
535
- E = t[44], I = t[45], V = t[46], L = t[47], k = t[48], A = t[49], P = t[50], H = t[51], W = t[52], X = t[53], Y = t[54], G = t[55];
536
- let z;
537
- t[66] !== E || t[67] !== W || t[68] !== X || t[69] !== Y ? (z = /* @__PURE__ */ a.jsxs(E, { children: [
537
+ T = t[45], D = t[46], M = t[47], E = t[48], I = t[49], k = t[50], L = t[51], P = t[52], H = t[53], W = t[54], X = t[55], Y = t[56];
538
+ let G;
539
+ t[67] !== T || t[68] !== H || t[69] !== W || t[70] !== X ? (G = /* @__PURE__ */ a.jsxs(T, { children: [
540
+ H,
538
541
  W,
539
- X,
540
- Y
541
- ] }), t[66] = E, t[67] = W, t[68] = X, t[69] = Y, t[70] = z) : z = t[70];
542
+ X
543
+ ] }), t[67] = T, t[68] = H, t[69] = W, t[70] = X, t[71] = G) : G = t[71];
542
544
  let y;
543
- t[71] !== j ? (y = j.filter(qi).map(Bi), t[71] = j, t[72] = y) : y = t[72];
544
- let R;
545
- t[73] !== V || t[74] !== z || t[75] !== y || t[76] !== G ? (R = /* @__PURE__ */ a.jsxs("g", { transform: G, children: [
546
- V,
547
- z,
545
+ t[72] !== V ? (y = V.filter(Ji).map(Ui), t[72] = V, t[73] = y) : y = t[73];
546
+ let z;
547
+ t[74] !== M || t[75] !== G || t[76] !== y || t[77] !== Y ? (z = /* @__PURE__ */ a.jsxs("g", { transform: Y, children: [
548
+ M,
549
+ G,
548
550
  y
549
- ] }), t[73] = V, t[74] = z, t[75] = y, t[76] = G, t[77] = R) : R = t[77];
550
- let Z;
551
- t[78] !== I || t[79] !== L || t[80] !== k || t[81] !== A || t[82] !== P || t[83] !== H || t[84] !== R ? (Z = /* @__PURE__ */ a.jsx(I, { width: L, height: k, viewBox: A, direction: P, ref: H, children: R }), t[78] = I, t[79] = L, t[80] = k, t[81] = A, t[82] = P, t[83] = H, t[84] = R, t[85] = Z) : Z = t[85];
552
- let N;
553
- t[86] !== f?.tooltip || t[87] !== u || t[88] !== dt || t[89] !== ht || t[90] !== O?.tooltip || t[91] !== mt ? (N = ht && mt && u && dt ? /* @__PURE__ */ a.jsx(ei, { data: ht, body: mt, xPos: u, yPos: dt, backgroundStyle: O?.tooltip, className: f?.tooltip }) : null, t[86] = f?.tooltip, t[87] = u, t[88] = dt, t[89] = ht, t[90] = O?.tooltip, t[91] = mt, t[92] = N) : N = t[92];
554
- let F;
555
- t[93] !== f?.modal || t[94] !== Q || t[95] !== D ? (F = Q && D !== void 0 ? /* @__PURE__ */ a.jsx(oi, { body: Q, data: D, setData: d, className: f?.modal }) : null, t[93] = f?.modal, t[94] = Q, t[95] = D, t[96] = F) : F = t[96];
556
- let st;
557
- return t[97] !== Z || t[98] !== N || t[99] !== F ? (st = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
558
- Z,
559
- N,
560
- F
561
- ] }), t[97] = Z, t[98] = N, t[99] = F, t[100] = st) : st = t[100], st;
562
- }
563
- function Bi(i) {
564
- return i.layer;
565
- }
566
- function qi(i) {
567
- return i.position === "after";
551
+ ] }), t[74] = M, t[75] = G, t[76] = y, t[77] = Y, t[78] = z) : z = t[78];
552
+ let _;
553
+ t[79] !== D || t[80] !== E || t[81] !== I || t[82] !== k || t[83] !== L || t[84] !== P || t[85] !== z ? (_ = /* @__PURE__ */ a.jsx(D, { width: E, height: I, viewBox: k, direction: L, ref: P, children: z }), t[79] = D, t[80] = E, t[81] = I, t[82] = k, t[83] = L, t[84] = P, t[85] = z, t[86] = _) : _ = t[86];
554
+ let $;
555
+ t[87] !== f?.tooltip || t[88] !== dt || t[89] !== gt || t[90] !== ct || t[91] !== O?.tooltip || t[92] !== ht ? ($ = ct && ht && dt && gt ? /* @__PURE__ */ a.jsx(ni, { data: ct, body: ht, xPos: dt, yPos: gt, backgroundStyle: O?.tooltip, className: f?.tooltip }) : null, t[87] = f?.tooltip, t[88] = dt, t[89] = gt, t[90] = ct, t[91] = O?.tooltip, t[92] = ht, t[93] = $) : $ = t[93];
556
+ let R;
557
+ t[94] !== f?.modal || t[95] !== Q || t[96] !== s ? (R = Q && s !== void 0 ? /* @__PURE__ */ a.jsx(ri, { body: Q, data: s, setData: h, className: f?.modal }) : null, t[94] = f?.modal, t[95] = Q, t[96] = s, t[97] = R) : R = t[97];
558
+ let ut;
559
+ return t[98] !== _ || t[99] !== $ || t[100] !== R ? (ut = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
560
+ _,
561
+ $,
562
+ R
563
+ ] }), t[98] = _, t[99] = $, t[100] = R, t[101] = ut) : ut = t[101], ut;
568
564
  }
569
565
  function Ui(i) {
570
- return i.position;
566
+ return i.layer;
571
567
  }
572
568
  function Ji(i) {
573
- return !U(i.position);
569
+ return i.position === "after";
574
570
  }
575
571
  function Ki(i) {
576
572
  return i.position;
@@ -579,10 +575,10 @@ function Qi(i) {
579
575
  return !U(i.position);
580
576
  }
581
577
  function Zi(i) {
582
- return i.color;
578
+ return i.position;
583
579
  }
584
580
  function _i(i) {
585
- return i.color;
581
+ return !U(i.position);
586
582
  }
587
583
  function te(i) {
588
584
  return i.color;
@@ -615,16 +611,16 @@ function ce(i) {
615
611
  return i.color;
616
612
  }
617
613
  function ue(i) {
618
- return i.layer;
614
+ return i.color;
619
615
  }
620
616
  function fe(i) {
621
- return i.position === "before";
617
+ return i.color;
622
618
  }
623
619
  function pe(i) {
624
- return i.position;
620
+ return i.layer;
625
621
  }
626
622
  function me(i) {
627
- return !U(i.position);
623
+ return i.position === "before";
628
624
  }
629
625
  function he(i) {
630
626
  return i.position;
@@ -644,147 +640,154 @@ function ye(i) {
644
640
  function ve(i) {
645
641
  return !U(i.position);
646
642
  }
647
- function Oe(i, t) {
643
+ function Oe(i) {
644
+ return i.position;
645
+ }
646
+ function be(i) {
647
+ return !U(i.position);
648
+ }
649
+ function we(i, t) {
648
650
  return {
649
651
  ...i,
650
652
  id: `${t}`
651
653
  };
652
654
  }
653
- function Ue(i) {
654
- const t = Jt.c(93), {
655
+ function Ke(i) {
656
+ const t = Qt.c(94), {
655
657
  data: o,
656
- graphTitle: $,
658
+ graphTitle: A,
657
659
  colors: v,
658
660
  sources: n,
659
661
  graphDescription: l,
660
- height: c,
662
+ height: u,
661
663
  width: C,
662
664
  footNote: bt,
663
- colorDomain: pt,
664
- colorLegendTitle: It,
665
- radius: mt,
666
- padding: ot,
665
+ colorDomain: mt,
666
+ colorLegendTitle: kt,
667
+ radius: ht,
668
+ padding: nt,
667
669
  backgroundColor: r,
668
- leftMargin: nt,
669
- rightMargin: S,
670
- topMargin: T,
670
+ leftMargin: rt,
671
+ rightMargin: N,
672
+ topMargin: S,
671
673
  bottomMargin: J,
672
- tooltip: rt,
674
+ tooltip: lt,
673
675
  relativeHeight: K,
674
- onSeriesMouseOver: lt,
676
+ onSeriesMouseOver: at,
675
677
  showColorScale: b,
676
678
  highlightedDataPoints: x,
677
- graphID: gt,
679
+ graphID: vt,
678
680
  minValue: Q,
679
681
  maxValue: O,
680
682
  onSeriesMouseClick: f,
681
683
  noOfTicks: w,
682
684
  graphDownload: p,
683
685
  dataDownload: m,
684
- prefix: _,
685
- suffix: tt,
686
- stripType: j,
686
+ prefix: tt,
687
+ suffix: it,
688
+ stripType: V,
687
689
  language: wt,
688
- highlightColor: xt,
690
+ highlightColor: Z,
689
691
  dotOpacity: Mt,
690
692
  showNAColor: Vt,
691
693
  minHeight: jt,
692
- theme: kt,
693
- ariaLabel: at,
694
- valueColor: M,
695
- resetSelectionOnDoubleClick: ht,
696
- detailsOnClick: yt,
697
- orientation: D,
698
- styles: d,
699
- classNames: u,
700
- animate: Ct,
701
- dimmedOpacity: dt,
702
- precision: Dt,
703
- customLayers: it,
704
- showDataMinMax: g
705
- } = i, B = mt === void 0 ? 5 : mt, q = r === void 0 ? !1 : r, E = b === void 0 ? !0 : b;
706
- let I;
707
- t[0] !== x ? (I = x === void 0 ? [] : x, t[0] = x, t[1] = I) : I = t[1];
708
- const V = I, L = w === void 0 ? 2 : w, k = p === void 0 ? !1 : p, A = m === void 0 ? !1 : m, P = _ === void 0 ? "" : _, H = tt === void 0 ? "" : tt, W = j === void 0 ? "dot" : j, X = wt === void 0 ? "en" : wt, Y = Mt === void 0 ? 0.3 : Mt, G = Vt === void 0 ? !0 : Vt, z = jt === void 0 ? 0 : jt, y = kt === void 0 ? "light" : kt, R = ht === void 0 ? !0 : ht, Z = D === void 0 ? "vertical" : D, N = Ct === void 0 ? !1 : Ct, F = dt === void 0 ? 0.3 : dt, st = Dt === void 0 ? 2 : Dt;
694
+ theme: Ct,
695
+ ariaLabel: $t,
696
+ valueColor: st,
697
+ resetSelectionOnDoubleClick: j,
698
+ detailsOnClick: ct,
699
+ orientation: Dt,
700
+ styles: s,
701
+ classNames: h,
702
+ animate: dt,
703
+ dimmedOpacity: It,
704
+ precision: gt,
705
+ customLayers: xt,
706
+ showDataMinMax: yt,
707
+ locale: g
708
+ } = i, F = ht === void 0 ? 5 : ht, B = r === void 0 ? !1 : r, T = b === void 0 ? !0 : b;
709
+ let D;
710
+ t[0] !== x ? (D = x === void 0 ? [] : x, t[0] = x, t[1] = D) : D = t[1];
711
+ const M = D, E = w === void 0 ? 2 : w, I = p === void 0 ? !1 : p, k = m === void 0 ? !1 : m, L = tt === void 0 ? "" : tt, P = it === void 0 ? "" : it, H = V === void 0 ? "dot" : V, W = wt === void 0 ? "en" : wt, X = Mt === void 0 ? 0.3 : Mt, Y = Vt === void 0 ? !0 : Vt, G = jt === void 0 ? 0 : jt, y = Ct === void 0 ? "light" : Ct, z = j === void 0 ? !0 : j, _ = Dt === void 0 ? "vertical" : Dt, $ = dt === void 0 ? !1 : dt, R = It === void 0 ? 0.3 : It, ut = gt === void 0 ? 2 : gt;
709
712
  let At;
710
- t[2] !== it ? (At = it === void 0 ? [] : it, t[2] = it, t[3] = At) : At = t[3];
711
- const ct = At, Tt = g === void 0 ? !1 : g, ut = Z === "horizontal" ? Fi : di, [Nt, vt] = Ot(0), [$t, ft] = Ot(0), [St, e] = Ot(void 0), s = Bt(null), Kt = Bt(null);
712
- let zt, Rt;
713
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zt = () => {
714
- const Qt = new ResizeObserver((Zt) => {
715
- vt(Zt[0].target.clientWidth || 620), ft(Zt[0].target.clientHeight || 480);
713
+ t[2] !== xt ? (At = xt === void 0 ? [] : xt, t[2] = xt, t[3] = At) : At = t[3];
714
+ const ft = At, Nt = yt === void 0 ? !1 : yt, pt = g === void 0 ? "en" : g, St = _ === "horizontal" ? qi : xi, [et, zt] = Ot(0), [q, Tt] = Ot(0), [e, c] = Ot(void 0), Ut = qt(null), Zt = qt(null);
715
+ let Rt, Ft;
716
+ t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Rt = () => {
717
+ const _t = new ResizeObserver((ti) => {
718
+ zt(ti[0].target.clientWidth || 620), Tt(ti[0].target.clientHeight || 480);
716
719
  });
717
- return s.current && Qt.observe(s.current), () => Qt.disconnect();
718
- }, Rt = [], t[4] = zt, t[5] = Rt) : (zt = t[4], Rt = t[5]), si(zt, Rt);
719
- const qt = u?.graphContainer, Ut = d?.graphContainer;
720
+ return Ut.current && _t.observe(Ut.current), () => _t.disconnect();
721
+ }, Ft = [], t[4] = Rt, t[5] = Ft) : (Rt = t[4], Ft = t[5]), ui(Rt, Ft);
722
+ const Jt = h?.graphContainer, Kt = s?.graphContainer;
720
723
  let Et;
721
- t[6] !== u?.description || t[7] !== u?.title || t[8] !== o || t[9] !== A || t[10] !== l || t[11] !== k || t[12] !== $ || t[13] !== d?.description || t[14] !== d?.title || t[15] !== C ? (Et = $ || l || k || A ? /* @__PURE__ */ a.jsx(hi, { styles: {
722
- title: d?.title,
723
- description: d?.description
724
+ t[6] !== h?.description || t[7] !== h?.title || t[8] !== o || t[9] !== k || t[10] !== l || t[11] !== I || t[12] !== A || t[13] !== s?.description || t[14] !== s?.title || t[15] !== C ? (Et = A || l || I || k ? /* @__PURE__ */ a.jsx(gi, { styles: {
725
+ title: s?.title,
726
+ description: s?.description
724
727
  }, classNames: {
725
- title: u?.title,
726
- description: u?.description
727
- }, graphTitle: $, graphDescription: l, width: C, graphDownload: k ? Kt : void 0, dataDownload: A ? o.map(Ie).filter(De).length > 0 ? o.map(Ce).filter(je) : o.filter(Ve) : null }) : null, t[6] = u?.description, t[7] = u?.title, t[8] = o, t[9] = A, t[10] = l, t[11] = k, t[12] = $, t[13] = d?.description, t[14] = d?.title, t[15] = C, t[16] = Et) : Et = t[16];
728
+ title: h?.title,
729
+ description: h?.description
730
+ }, graphTitle: A, graphDescription: l, width: C, graphDownload: I ? Zt : void 0, dataDownload: k ? o.map($e).filter(ke).length > 0 ? o.map(Ie).filter(De) : o.filter(Ce) : null }) : null, t[6] = h?.description, t[7] = h?.title, t[8] = o, t[9] = k, t[10] = l, t[11] = I, t[12] = A, t[13] = s?.description, t[14] = s?.title, t[15] = C, t[16] = Et) : Et = t[16];
728
731
  let Lt;
729
- t[17] !== u?.colorLegend || t[18] !== pt || t[19] !== It || t[20] !== v || t[21] !== o || t[22] !== E || t[23] !== G || t[24] !== y || t[25] !== C ? (Lt = E !== !1 && o.filter(Me).length !== 0 && o.length > 0 ? /* @__PURE__ */ a.jsx(pi, { width: C, colorLegendTitle: It, colors: v || h[y].categoricalColors.colors, colorDomain: pt || _t(o, "color", !0), setSelectedColor: e, showNAColor: G, className: u?.colorLegend }) : null, t[17] = u?.colorLegend, t[18] = pt, t[19] = It, t[20] = v, t[21] = o, t[22] = E, t[23] = G, t[24] = y, t[25] = C, t[26] = Lt) : Lt = t[26];
732
+ t[17] !== h?.colorLegend || t[18] !== mt || t[19] !== kt || t[20] !== v || t[21] !== o || t[22] !== T || t[23] !== Y || t[24] !== y || t[25] !== C ? (Lt = T !== !1 && o.filter(je).length !== 0 && o.length > 0 ? /* @__PURE__ */ a.jsx(hi, { width: C, colorLegendTitle: kt, colors: v || d[y].categoricalColors.colors, colorDomain: mt || ii(o, "color", !0), setSelectedColor: c, showNAColor: Y, className: h?.colorLegend }) : null, t[17] = h?.colorLegend, t[18] = mt, t[19] = kt, t[20] = v, t[21] = o, t[22] = T, t[23] = Y, t[24] = y, t[25] = C, t[26] = Lt) : Lt = t[26];
730
733
  let Pt;
731
- t[27] !== o.length ? (Pt = o.length === 0 && /* @__PURE__ */ a.jsx(fi, {}), t[27] = o.length, t[28] = Pt) : Pt = t[28];
734
+ t[27] !== o.length ? (Pt = o.length === 0 && /* @__PURE__ */ a.jsx(mi, {}), t[27] = o.length, t[28] = Pt) : Pt = t[28];
732
735
  let Ht;
733
- t[29] !== ut || t[30] !== N || t[31] !== J || t[32] !== u || t[33] !== pt || t[34] !== v || t[35] !== ct || t[36] !== o || t[37] !== yt || t[38] !== F || t[39] !== Y || t[40] !== xt || t[41] !== V || t[42] !== nt || t[43] !== O || t[44] !== Q || t[45] !== L || t[46] !== f || t[47] !== lt || t[48] !== st || t[49] !== P || t[50] !== B || t[51] !== R || t[52] !== S || t[53] !== St || t[54] !== Tt || t[55] !== W || t[56] !== d || t[57] !== H || t[58] !== $t || t[59] !== Nt || t[60] !== y || t[61] !== rt || t[62] !== T || t[63] !== M ? (Ht = Nt && $t && o.length > 0 ? /* @__PURE__ */ a.jsx(ut, { data: o, width: Nt, showDataMinMax: Tt, height: $t, colorDomain: o.filter(we).length === 0 ? [] : pt || _t(o, "color", !0), colors: o.filter(be).length === 0 ? v ? [v] : [h.primaryColors["blue-600"]] : v || h[y].categoricalColors.colors, selectedColor: St, radius: B, leftMargin: nt, rightMargin: S, topMargin: T, bottomMargin: J, tooltip: rt, onSeriesMouseOver: lt, highlightedDataPoints: V, minValue: Q, maxValue: O, onSeriesMouseClick: f, prefix: P, suffix: H, stripType: W, highlightColor: xt, dotOpacity: Y, resetSelectionOnDoubleClick: R, detailsOnClick: yt, styles: d, classNames: u, valueColor: M, animate: N === !0 ? {
736
+ t[29] !== St || t[30] !== $ || t[31] !== J || t[32] !== h || t[33] !== mt || t[34] !== v || t[35] !== ft || t[36] !== o || t[37] !== ct || t[38] !== R || t[39] !== X || t[40] !== Z || t[41] !== M || t[42] !== rt || t[43] !== pt || t[44] !== O || t[45] !== Q || t[46] !== E || t[47] !== f || t[48] !== at || t[49] !== ut || t[50] !== L || t[51] !== F || t[52] !== z || t[53] !== N || t[54] !== e || t[55] !== Nt || t[56] !== H || t[57] !== s || t[58] !== P || t[59] !== q || t[60] !== et || t[61] !== y || t[62] !== lt || t[63] !== S || t[64] !== st ? (Ht = et && q && o.length > 0 ? /* @__PURE__ */ a.jsx(St, { data: o, width: et, showDataMinMax: Nt, height: q, colorDomain: o.filter(Ve).length === 0 ? [] : mt || ii(o, "color", !0), colors: o.filter(Me).length === 0 ? v ? [v] : [d.primaryColors["blue-600"]] : v || d[y].categoricalColors.colors, selectedColor: e, radius: F, leftMargin: rt, rightMargin: N, topMargin: S, bottomMargin: J, tooltip: lt, onSeriesMouseOver: at, highlightedDataPoints: M, minValue: Q, maxValue: O, onSeriesMouseClick: f, prefix: L, suffix: P, stripType: H, highlightColor: Z, dotOpacity: X, resetSelectionOnDoubleClick: z, detailsOnClick: ct, styles: s, classNames: h, valueColor: st, animate: $ === !0 ? {
734
737
  duration: 0.5,
735
738
  once: !0,
736
739
  amount: 0.5
737
- } : N || {
740
+ } : $ || {
738
741
  duration: 0,
739
742
  once: !0,
740
743
  amount: 0
741
- }, noOfTicks: L, dimmedOpacity: F, precision: st, customLayers: ct }) : null, t[29] = ut, t[30] = N, t[31] = J, t[32] = u, t[33] = pt, t[34] = v, t[35] = ct, t[36] = o, t[37] = yt, t[38] = F, t[39] = Y, t[40] = xt, t[41] = V, t[42] = nt, t[43] = O, t[44] = Q, t[45] = L, t[46] = f, t[47] = lt, t[48] = st, t[49] = P, t[50] = B, t[51] = R, t[52] = S, t[53] = St, t[54] = Tt, t[55] = W, t[56] = d, t[57] = H, t[58] = $t, t[59] = Nt, t[60] = y, t[61] = rt, t[62] = T, t[63] = M, t[64] = Ht) : Ht = t[64];
744
+ }, noOfTicks: E, dimmedOpacity: R, precision: ut, customLayers: ft, locale: pt }) : null, t[29] = St, t[30] = $, t[31] = J, t[32] = h, t[33] = mt, t[34] = v, t[35] = ft, t[36] = o, t[37] = ct, t[38] = R, t[39] = X, t[40] = Z, t[41] = M, t[42] = rt, t[43] = pt, t[44] = O, t[45] = Q, t[46] = E, t[47] = f, t[48] = at, t[49] = ut, t[50] = L, t[51] = F, t[52] = z, t[53] = N, t[54] = e, t[55] = Nt, t[56] = H, t[57] = s, t[58] = P, t[59] = q, t[60] = et, t[61] = y, t[62] = lt, t[63] = S, t[64] = st, t[65] = Ht) : Ht = t[65];
742
745
  let Wt;
743
- t[65] !== Pt || t[66] !== Ht ? (Wt = /* @__PURE__ */ a.jsxs(ci, { ref: s, children: [
746
+ t[66] !== Pt || t[67] !== Ht ? (Wt = /* @__PURE__ */ a.jsxs(fi, { ref: Ut, children: [
744
747
  Pt,
745
748
  Ht
746
- ] }), t[65] = Pt, t[66] = Ht, t[67] = Wt) : Wt = t[67];
749
+ ] }), t[66] = Pt, t[67] = Ht, t[68] = Wt) : Wt = t[68];
747
750
  let Xt;
748
- t[68] !== u?.footnote || t[69] !== u?.source || t[70] !== bt || t[71] !== n || t[72] !== d?.footnote || t[73] !== d?.source || t[74] !== C ? (Xt = n || bt ? /* @__PURE__ */ a.jsx(mi, { styles: {
749
- footnote: d?.footnote,
750
- source: d?.source
751
+ t[69] !== h?.footnote || t[70] !== h?.source || t[71] !== bt || t[72] !== n || t[73] !== s?.footnote || t[74] !== s?.source || t[75] !== C ? (Xt = n || bt ? /* @__PURE__ */ a.jsx(di, { styles: {
752
+ footnote: s?.footnote,
753
+ source: s?.source
751
754
  }, classNames: {
752
- footnote: u?.footnote,
753
- source: u?.source
754
- }, sources: n, footNote: bt, width: C }) : null, t[68] = u?.footnote, t[69] = u?.source, t[70] = bt, t[71] = n, t[72] = d?.footnote, t[73] = d?.source, t[74] = C, t[75] = Xt) : Xt = t[75];
755
- let Ft;
756
- return t[76] !== at || t[77] !== q || t[78] !== gt || t[79] !== c || t[80] !== X || t[81] !== z || t[82] !== ot || t[83] !== K || t[84] !== qt || t[85] !== Ut || t[86] !== Et || t[87] !== Lt || t[88] !== Wt || t[89] !== Xt || t[90] !== y || t[91] !== C ? (Ft = /* @__PURE__ */ a.jsxs(ui, { className: qt, style: Ut, id: gt, ref: Kt, "aria-label": at, backgroundColor: q, theme: y, language: X, minHeight: z, width: C, height: c, relativeHeight: K, padding: ot, children: [
755
+ footnote: h?.footnote,
756
+ source: h?.source
757
+ }, sources: n, footNote: bt, width: C }) : null, t[69] = h?.footnote, t[70] = h?.source, t[71] = bt, t[72] = n, t[73] = s?.footnote, t[74] = s?.source, t[75] = C, t[76] = Xt) : Xt = t[76];
758
+ let Bt;
759
+ return t[77] !== $t || t[78] !== B || t[79] !== vt || t[80] !== u || t[81] !== W || t[82] !== G || t[83] !== nt || t[84] !== K || t[85] !== Jt || t[86] !== Kt || t[87] !== Et || t[88] !== Lt || t[89] !== Wt || t[90] !== Xt || t[91] !== y || t[92] !== C ? (Bt = /* @__PURE__ */ a.jsxs(pi, { className: Jt, style: Kt, id: vt, ref: Zt, "aria-label": $t, backgroundColor: B, theme: y, language: W, minHeight: G, width: C, height: u, relativeHeight: K, padding: nt, children: [
757
760
  Et,
758
761
  Lt,
759
762
  Wt,
760
763
  Xt
761
- ] }), t[76] = at, t[77] = q, t[78] = gt, t[79] = c, t[80] = X, t[81] = z, t[82] = ot, t[83] = K, t[84] = qt, t[85] = Ut, t[86] = Et, t[87] = Lt, t[88] = Wt, t[89] = Xt, t[90] = y, t[91] = C, t[92] = Ft) : Ft = t[92], Ft;
764
+ ] }), t[77] = $t, t[78] = B, t[79] = vt, t[80] = u, t[81] = W, t[82] = G, t[83] = nt, t[84] = K, t[85] = Jt, t[86] = Kt, t[87] = Et, t[88] = Lt, t[89] = Wt, t[90] = Xt, t[91] = y, t[92] = C, t[93] = Bt) : Bt = t[93], Bt;
762
765
  }
763
- function be(i) {
766
+ function Me(i) {
764
767
  return i.color;
765
768
  }
766
- function we(i) {
769
+ function Ve(i) {
767
770
  return i.color;
768
771
  }
769
- function Me(i) {
772
+ function je(i) {
770
773
  return i.color;
771
774
  }
772
- function Ve(i) {
775
+ function Ce(i) {
773
776
  return i !== void 0;
774
777
  }
775
- function je(i) {
778
+ function De(i) {
776
779
  return i !== void 0;
777
780
  }
778
- function Ce(i) {
781
+ function Ie(i) {
779
782
  return i.data;
780
783
  }
781
- function De(i) {
784
+ function ke(i) {
782
785
  return i !== void 0;
783
786
  }
784
- function Ie(i) {
787
+ function $e(i) {
785
788
  return i.data;
786
789
  }
787
790
  export {
788
- Ue as StripChart
791
+ Ke as StripChart
789
792
  };
790
793
  //# sourceMappingURL=StripChart.js.map