@undp/data-viz 2.4.1 → 2.5.1

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 (271) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +11 -9
  4. package/dist/AreaChart.js +320 -322
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/BarGraph.cjs +1 -1
  7. package/dist/BarGraph.cjs.map +1 -1
  8. package/dist/BarGraph.d.ts +15 -25
  9. package/dist/BarGraph.js +1694 -1694
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.cjs.map +1 -1
  13. package/dist/BasicStatCard.d.ts +13 -9
  14. package/dist/BasicStatCard.js +79 -81
  15. package/dist/BasicStatCard.js.map +1 -1
  16. package/dist/BeeSwarmChart.cjs +1 -1
  17. package/dist/BeeSwarmChart.cjs.map +1 -1
  18. package/dist/BeeSwarmChart.d.ts +11 -9
  19. package/dist/BeeSwarmChart.js +335 -336
  20. package/dist/BeeSwarmChart.js.map +1 -1
  21. package/dist/BiVariateChoroplethMap.cjs +1 -1
  22. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  23. package/dist/BiVariateChoroplethMap.d.ts +13 -3
  24. package/dist/BiVariateChoroplethMap.js +309 -304
  25. package/dist/BiVariateChoroplethMap.js.map +1 -1
  26. package/dist/BulletChart.cjs +1 -1
  27. package/dist/BulletChart.cjs.map +1 -1
  28. package/dist/BulletChart.d.ts +11 -5
  29. package/dist/BulletChart.js +560 -559
  30. package/dist/BulletChart.js.map +1 -1
  31. package/dist/ButterflyChart.cjs +1 -1
  32. package/dist/ButterflyChart.cjs.map +1 -1
  33. package/dist/ButterflyChart.d.ts +11 -9
  34. package/dist/ButterflyChart.js +348 -350
  35. package/dist/ButterflyChart.js.map +1 -1
  36. package/dist/ChoroplethMap.cjs +1 -1
  37. package/dist/ChoroplethMap.cjs.map +1 -1
  38. package/dist/ChoroplethMap.d.ts +11 -3
  39. package/dist/ChoroplethMap.js +314 -311
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.d.ts +11 -9
  43. package/dist/CirclePackingGraph.js +1 -1
  44. package/dist/DataCards.cjs +1 -1
  45. package/dist/DataCards.d.ts +1 -1
  46. package/dist/DataCards.js +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.cjs.map +1 -1
  49. package/dist/DataTable.d.ts +4 -5
  50. package/dist/DataTable.js +114 -116
  51. package/dist/DataTable.js.map +1 -1
  52. package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
  53. package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
  54. package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
  55. package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
  56. package/dist/DifferenceLineChart.cjs +1 -1
  57. package/dist/DifferenceLineChart.cjs.map +1 -1
  58. package/dist/DifferenceLineChart.d.ts +11 -9
  59. package/dist/DifferenceLineChart.js +502 -504
  60. package/dist/DifferenceLineChart.js.map +1 -1
  61. package/dist/DonutChart.cjs +1 -1
  62. package/dist/DonutChart.cjs.map +1 -1
  63. package/dist/DonutChart.d.ts +14 -9
  64. package/dist/DonutChart.js +174 -179
  65. package/dist/DonutChart.js.map +1 -1
  66. package/dist/DotDensityMap.cjs +1 -1
  67. package/dist/DotDensityMap.cjs.map +1 -1
  68. package/dist/DotDensityMap.d.ts +1 -1
  69. package/dist/DotDensityMap.js +270 -267
  70. package/dist/DotDensityMap.js.map +1 -1
  71. package/dist/DualAxisLineChart.cjs +1 -1
  72. package/dist/DualAxisLineChart.cjs.map +1 -1
  73. package/dist/DualAxisLineChart.d.ts +13 -9
  74. package/dist/DualAxisLineChart.js +341 -351
  75. package/dist/DualAxisLineChart.js.map +1 -1
  76. package/dist/DumbbellChart.cjs +1 -1
  77. package/dist/DumbbellChart.cjs.map +1 -1
  78. package/dist/DumbbellChart.d.ts +11 -9
  79. package/dist/DumbbellChart.js +592 -593
  80. package/dist/DumbbellChart.js.map +1 -1
  81. package/dist/GeoHubCompareMaps.cjs +1 -1
  82. package/dist/GeoHubCompareMaps.d.ts +1 -1
  83. package/dist/GeoHubCompareMaps.js +1 -1
  84. package/dist/GeoHubMap.cjs +1 -1
  85. package/dist/GeoHubMap.d.ts +1 -1
  86. package/dist/GeoHubMap.js +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  88. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  89. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  90. package/dist/GraphEl-BgkDbq50.cjs +2 -0
  91. package/dist/GraphEl-BgkDbq50.cjs.map +1 -0
  92. package/dist/GraphEl-Ch0uAeZw.js +1830 -0
  93. package/dist/GraphEl-Ch0uAeZw.js.map +1 -0
  94. package/dist/GriddedGraphs.cjs +1 -1
  95. package/dist/GriddedGraphs.d.ts +29 -16
  96. package/dist/GriddedGraphs.js +1 -1
  97. package/dist/GriddedGraphsFromConfig.d.ts +29 -16
  98. package/dist/HeatMap.cjs +1 -1
  99. package/dist/HeatMap.cjs.map +1 -1
  100. package/dist/HeatMap.d.ts +11 -9
  101. package/dist/HeatMap.js +203 -205
  102. package/dist/HeatMap.js.map +1 -1
  103. package/dist/Histogram.cjs +1 -1
  104. package/dist/Histogram.cjs.map +1 -1
  105. package/dist/Histogram.d.ts +11 -5
  106. package/dist/Histogram.js +88 -89
  107. package/dist/Histogram.js.map +1 -1
  108. package/dist/HybridMap.cjs +1 -1
  109. package/dist/HybridMap.cjs.map +1 -1
  110. package/dist/HybridMap.d.ts +11 -3
  111. package/dist/HybridMap.js +339 -336
  112. package/dist/HybridMap.js.map +1 -1
  113. package/dist/ImageDownloadButton.cjs +1 -1
  114. package/dist/ImageDownloadButton.js +1 -1
  115. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  116. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  117. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  118. package/dist/LineChartWithConfidenceInterval.js +393 -395
  119. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  120. package/dist/LinearColorLegend.cjs +1 -1
  121. package/dist/LinearColorLegend.js +1 -1
  122. package/dist/MultiGraphDashboard.d.ts +29 -16
  123. package/dist/MultiGraphDashboardFromConfig.d.ts +29 -16
  124. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  125. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  126. package/dist/MultiLineAltChart.cjs +1 -1
  127. package/dist/MultiLineAltChart.cjs.map +1 -1
  128. package/dist/MultiLineAltChart.d.ts +11 -9
  129. package/dist/MultiLineAltChart.js +411 -413
  130. package/dist/MultiLineAltChart.js.map +1 -1
  131. package/dist/MultiLineChart.cjs +1 -1
  132. package/dist/MultiLineChart.cjs.map +1 -1
  133. package/dist/MultiLineChart.d.ts +11 -9
  134. package/dist/MultiLineChart.js +438 -440
  135. package/dist/MultiLineChart.js.map +1 -1
  136. package/dist/ParetoChart.cjs +1 -1
  137. package/dist/ParetoChart.cjs.map +1 -1
  138. package/dist/ParetoChart.d.ts +13 -13
  139. package/dist/ParetoChart.js +347 -355
  140. package/dist/ParetoChart.js.map +1 -1
  141. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +29 -16
  142. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +29 -16
  143. package/dist/PerformanceIntensiveScrollStory.d.ts +29 -16
  144. package/dist/RadarChart.cjs +1 -1
  145. package/dist/RadarChart.cjs.map +1 -1
  146. package/dist/RadarChart.d.ts +11 -5
  147. package/dist/RadarChart.js +213 -213
  148. package/dist/RadarChart.js.map +1 -1
  149. package/dist/SankeyChart.cjs +1 -1
  150. package/dist/SankeyChart.cjs.map +1 -1
  151. package/dist/SankeyChart.d.ts +11 -9
  152. package/dist/SankeyChart.js +448 -450
  153. package/dist/SankeyChart.js.map +1 -1
  154. package/dist/ScatterPlot.cjs +1 -1
  155. package/dist/ScatterPlot.cjs.map +1 -1
  156. package/dist/ScatterPlot.d.ts +15 -13
  157. package/dist/ScatterPlot.js +477 -483
  158. package/dist/ScatterPlot.js.map +1 -1
  159. package/dist/ScrollStory.d.ts +29 -16
  160. package/dist/SimpleLineChart.cjs +1 -1
  161. package/dist/SimpleLineChart.cjs.map +1 -1
  162. package/dist/SimpleLineChart.d.ts +11 -9
  163. package/dist/SimpleLineChart.js +362 -364
  164. package/dist/SimpleLineChart.js.map +1 -1
  165. package/dist/SingleGraphDashboard.cjs +1 -1
  166. package/dist/SingleGraphDashboard.d.ts +29 -16
  167. package/dist/SingleGraphDashboard.js +1 -1
  168. package/dist/SingleGraphDashboardFromConfig.d.ts +29 -16
  169. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +29 -16
  170. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +29 -16
  171. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  173. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +29 -16
  174. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  175. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  176. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +29 -16
  177. package/dist/SlopeChart.cjs +1 -1
  178. package/dist/SlopeChart.d.ts +1 -1
  179. package/dist/SlopeChart.js +2 -2
  180. package/dist/SparkLine.cjs +1 -1
  181. package/dist/SparkLine.d.ts +1 -1
  182. package/dist/SparkLine.js +1 -1
  183. package/dist/StatCardFromData.cjs +1 -1
  184. package/dist/StatCardFromData.cjs.map +1 -1
  185. package/dist/StatCardFromData.d.ts +11 -9
  186. package/dist/StatCardFromData.js +113 -116
  187. package/dist/StatCardFromData.js.map +1 -1
  188. package/dist/StripChart.cjs +1 -1
  189. package/dist/StripChart.cjs.map +1 -1
  190. package/dist/StripChart.d.ts +11 -9
  191. package/dist/StripChart.js +434 -435
  192. package/dist/StripChart.js.map +1 -1
  193. package/dist/ThreeDGlobe.cjs +1 -1
  194. package/dist/ThreeDGlobe.cjs.map +1 -1
  195. package/dist/ThreeDGlobe.d.ts +11 -3
  196. package/dist/ThreeDGlobe.js +143 -143
  197. package/dist/ThreeDGlobe.js.map +1 -1
  198. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  199. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  200. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  201. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  202. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  203. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  204. package/dist/TreeMapGraph.cjs +1 -1
  205. package/dist/TreeMapGraph.cjs.map +1 -1
  206. package/dist/TreeMapGraph.d.ts +11 -9
  207. package/dist/TreeMapGraph.js +369 -371
  208. package/dist/TreeMapGraph.js.map +1 -1
  209. package/dist/Types.d.ts +29 -16
  210. package/dist/UnitChart.cjs +1 -1
  211. package/dist/UnitChart.cjs.map +1 -1
  212. package/dist/UnitChart.d.ts +11 -5
  213. package/dist/UnitChart.js +118 -119
  214. package/dist/UnitChart.js.map +1 -1
  215. package/dist/WaterfallChart.cjs +1 -1
  216. package/dist/WaterfallChart.cjs.map +1 -1
  217. package/dist/WaterfallChart.d.ts +11 -9
  218. package/dist/WaterfallChart.js +306 -308
  219. package/dist/WaterfallChart.js.map +1 -1
  220. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  221. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  222. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  223. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  224. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  225. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  226. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  227. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  228. package/dist/{imageDownload-Diofs_vY.js → imageDownload-BYsNEtMS.js} +11 -11
  229. package/dist/{imageDownload-Diofs_vY.js.map → imageDownload-BYsNEtMS.js.map} +1 -1
  230. package/dist/{imageDownload-61q6jyJW.cjs → imageDownload-CkMwA7Cw.cjs} +4 -4
  231. package/dist/{imageDownload-61q6jyJW.cjs.map → imageDownload-CkMwA7Cw.cjs.map} +1 -1
  232. package/dist/index-BPyj_6hG.js +375 -0
  233. package/dist/index-BPyj_6hG.js.map +1 -0
  234. package/dist/index-DuLvdHo2.cjs +2 -0
  235. package/dist/index-DuLvdHo2.cjs.map +1 -0
  236. package/dist/index.cjs +1 -1
  237. package/dist/index.d.ts +108 -245
  238. package/dist/index.js +3 -3
  239. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  240. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  241. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  242. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  243. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  244. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  245. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  246. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  247. package/dist/style.css +1 -1
  248. package/dist/utils.cjs +1 -1
  249. package/dist/utils.d.ts +1 -1
  250. package/dist/utils.js +2 -2
  251. package/package.json +2 -2
  252. package/dist/GraphEl-B73N4RIA.js +0 -1906
  253. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  254. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  255. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  256. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  257. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  258. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  259. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  260. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  261. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  262. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  263. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  264. package/dist/index-B0Awa_de.js +0 -377
  265. package/dist/index-B0Awa_de.js.map +0 -1
  266. package/dist/index-CP8cmNzt.cjs +0 -2
  267. package/dist/index-CP8cmNzt.cjs.map +0 -1
  268. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  269. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  270. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  271. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
@@ -1,547 +1,539 @@
1
- import { c as he, j as s, m as le } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as me, useState as te, useEffect as ge } from "react";
3
- import { i as fe } from "./index-Bwrro8-q.js";
4
- import { n as ae } from "./numberFormattingFunction-DqMf_v1m.js";
5
- import { T as ye } from "./Tooltip-Bj-s__cI.js";
6
- import { c as xe } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
- import { A as ue } from "./Axis-CNZYWzH0.js";
8
- import { A as pe } from "./AxisTitle-CyLCqpW6.js";
9
- import { X as ve } from "./XAxesLabels-B9gkjUiC.js";
10
- import { D as be } from "./DetailsModal-B2XBWR7w.js";
11
- import { b as Ae } from "./band-DYty33LD.js";
12
- import { a as de } from "./linear-DNXM5Pdl.js";
13
- import { l as we, c as je } from "./line-DFlZsxI1.js";
14
- import { c as Me, s as Ce, a as ke, m as Le } from "./step-BrDul-H4.js";
15
- import { m as Bt } from "./proxy-BsxtcZKa.js";
16
- import { u as $e } from "./use-in-view-KOXq5Kmc.js";
17
- import { A as Ne } from "./index-Cv_5q6Rb.js";
18
- import { GraphFooter as Se } from "./GraphFooter.js";
19
- import { GraphHeader as Oe } from "./GraphHeader.js";
20
- import { ColorLegend as Ve } from "./ColorLegend.js";
21
- import { Colors as re } from "./Colors.js";
22
- import { E as De } from "./EmptyState-CaxXCkiN.js";
23
- import { a as Te, G as Ie } from "./GraphContainer-B8ZqOzKI.js";
24
- function Pe(e) {
25
- const t = he.c(158), {
26
- data: p,
27
- width: H,
28
- height: W,
29
- barColor: d,
30
- lineColor: f,
31
- axisTitles: u,
32
- sameAxes: A,
33
- rightMargin: ee,
34
- leftMargin: ie,
35
- topMargin: Gt,
36
- bottomMargin: Rt,
37
- tooltip: kt,
38
- showValues: Lt,
39
- onSeriesMouseOver: st,
40
- barPadding: Ft,
41
- truncateBy: $t,
42
- showLabels: zt,
43
- onSeriesMouseClick: O,
44
- resetSelectionOnDoubleClick: pt,
45
- detailsOnClick: $,
46
- noOfTicks: dt,
47
- lineSuffix: ht,
48
- barSuffix: Nt,
49
- linePrefix: St,
50
- barPrefix: Ot,
51
- curveType: Vt,
1
+ import { c as xe, j as n, m as ee } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as ae, useState as Bt, useEffect as pe } from "react";
3
+ import { i as ce } from "./index-Bwrro8-q.js";
4
+ import { n as ie } from "./numberFormattingFunction-BUUV_luR.js";
5
+ import { T as fe } from "./Tooltip-3EYDVa3w.js";
6
+ import { c as re } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
+ import { A as le } from "./Axis-CNZYWzH0.js";
8
+ import { A as ue } from "./AxisTitle-CyLCqpW6.js";
9
+ import { X as de } from "./XAxesLabels-B9gkjUiC.js";
10
+ import { D as he } from "./DetailsModal-GqEbGHY2.js";
11
+ import { b as ge } from "./band-DYty33LD.js";
12
+ import { a as me } from "./linear-DNXM5Pdl.js";
13
+ import { l as ye, c as be } from "./line-DFlZsxI1.js";
14
+ import { c as ve, s as Ae, a as we, m as je } from "./step-BrDul-H4.js";
15
+ import { m as Vt } from "./proxy-BsxtcZKa.js";
16
+ import { u as Me } from "./use-in-view-KOXq5Kmc.js";
17
+ import { A as Ce } from "./index-Cv_5q6Rb.js";
18
+ import { GraphFooter as ke } from "./GraphFooter.js";
19
+ import { GraphHeader as Le } from "./GraphHeader.js";
20
+ import { ColorLegend as Ne } from "./ColorLegend.js";
21
+ import { Colors as oe } from "./Colors.js";
22
+ import { E as Oe } from "./EmptyState-CaxXCkiN.js";
23
+ import { a as $e, G as De } from "./GraphContainer-B8ZqOzKI.js";
24
+ function Ve(e) {
25
+ const t = xe.c(162), {
26
+ data: h,
27
+ width: Z,
28
+ height: B,
29
+ barColor: g,
30
+ lineColor: d,
31
+ axisTitles: x,
32
+ sameAxes: j,
33
+ rightMargin: Gt,
34
+ leftMargin: zt,
35
+ topMargin: Tt,
36
+ bottomMargin: It,
37
+ tooltip: wt,
38
+ showValues: jt,
39
+ onSeriesMouseOver: at,
40
+ barPadding: St,
41
+ truncateBy: Mt,
42
+ showLabels: Pt,
43
+ onSeriesMouseClick: T,
44
+ resetSelectionOnDoubleClick: dt,
45
+ detailsOnClick: O,
46
+ noOfTicks: ht,
47
+ curveType: gt,
52
48
  styles: o,
53
- classNames: n,
54
- animate: r,
55
- precision: B,
56
- customLayers: V,
57
- naLabel: lt,
58
- showAxisLabels: N,
59
- locale: at
60
- } = e, qt = me(null);
61
- let Dt;
62
- t[0] !== r.amount || t[1] !== r.once ? (Dt = {
63
- once: r.once,
64
- amount: r.amount
65
- }, t[0] = r.amount, t[1] = r.once, t[2] = Dt) : Dt = t[2];
66
- const D = $e(qt, Dt), Ut = Vt === "linear" ? je : Vt === "step" ? Me : Vt === "stepAfter" ? Ce : Vt === "stepBefore" ? ke : Le, [Tt, rt] = te(void 0), [T, gt] = te(void 0), [m, l] = te(void 0), [It, ct] = te(void 0), yt = ie + 50, Jt = ee + 65;
67
- let Pt;
68
- t[3] !== Rt || t[4] !== yt || t[5] !== Jt || t[6] !== Gt ? (Pt = {
69
- top: Gt,
70
- bottom: Rt,
71
- left: yt,
72
- right: Jt
73
- }, t[3] = Rt, t[4] = yt, t[5] = Jt, t[6] = Gt, t[7] = Pt) : Pt = t[7];
74
- const c = Pt, g = H - c.left - c.right, a = W - c.top - c.bottom;
75
- let w, G, R, S, F, z, q, j, M, I, P, U, J, K, Q;
76
- if (t[8] !== r || t[9] !== u || t[10] !== d || t[11] !== Ft || t[12] !== Ot || t[13] !== Nt || t[14] !== n?.graphObjectValues || t[15] !== n?.xAxis?.axis || t[16] !== n?.xAxis?.labels || t[17] !== n?.yAxis?.gridLines || t[18] !== n?.yAxis?.labels || t[19] !== n?.yAxis?.title || t[20] !== Ut || t[21] !== V || t[22] !== p || t[23] !== $ || t[24] !== a || t[25] !== g || t[26] !== W || t[27] !== D || t[28] !== f || t[29] !== St || t[30] !== ht || t[31] !== at || t[32] !== c.bottom || t[33] !== c.left || t[34] !== c.right || t[35] !== c.top || t[36] !== T || t[37] !== lt || t[38] !== dt || t[39] !== O || t[40] !== st || t[41] !== B || t[42] !== pt || t[43] !== A || t[44] !== N || t[45] !== zt || t[46] !== Lt || t[47] !== o?.graphObjectValues || t[48] !== o?.xAxis?.axis || t[49] !== o?.xAxis?.labels || t[50] !== o?.yAxis?.gridLines || t[51] !== o?.yAxis?.labels || t[52] !== o?.yAxis?.title || t[53] !== $t || t[54] !== H) {
77
- const x = p.map(ui), y = Ae().domain(x.map(ci)).range([0, g]).paddingInner(Ft), Yt = Math.min(...x.map(ri).filter(ai)) !== 1 / 0 ? Math.min(...x.map(li).filter(si)) > 0 ? 0 : Math.min(...x.map(ni).filter(oi)) : 0, bt = Math.min(...x.map(ii).filter(ei)) !== 1 / 0 ? Math.min(...x.map(ti).filter(_e)) > 0 ? 0 : Math.min(...x.map(Ze).filter(Qe)) : 0, At = Math.max(...x.map(Ke).filter(Je)) !== 1 / 0 ? Math.max(...x.map(Ue).filter(qe)) : 0, ut = Math.max(...x.map(ze).filter(Fe)) !== 1 / 0 ? Math.max(...x.map(Re).filter(Ge)) : 0, Kt = Yt < bt ? Yt : bt, wt = At > ut ? At : ut, h = de().domain([A ? Kt : Yt, A ? wt > 0 ? wt : 0 : At > 0 ? At : 0]).range([a, 0]).nice(), v = de().domain([A ? Kt : bt, A ? wt > 0 ? wt : 0 : ut > 0 ? ut : 0]).range([a, 0]).nice(), Qt = we().defined(Be).x((i) => y(`${i.id}`) + y.bandwidth() / 2).y((i) => v(i.line)).curve(Ut), Zt = h.ticks(dt), ce = v.ticks(dt);
78
- G = Bt.svg, F = `${H}px`, z = `${W}px`, q = `0 0 ${H} ${W}`, j = "ltr", M = qt, J = `translate(${c.left},${c.top})`;
79
- const jt = n?.xAxis?.axis;
80
- let Mt;
81
- t[70] !== jt ? (Mt = {
82
- axis: jt
83
- }, t[70] = jt, t[71] = Mt) : Mt = t[71];
84
- let ot;
85
- t[72] !== o?.xAxis?.axis ? (ot = o?.xAxis?.axis || {}, t[72] = o?.xAxis?.axis, t[73] = ot) : ot = t[73];
86
- let mt;
87
- t[74] !== d || t[75] !== ot ? (mt = {
49
+ classNames: s,
50
+ animate: c,
51
+ customLayers: I,
52
+ naLabel: rt,
53
+ showAxisLabels: $,
54
+ lineNumberDisplayOptions: m,
55
+ barNumberDisplayOptions: u
56
+ } = e, Rt = ae(null);
57
+ let Ct;
58
+ t[0] !== c.amount || t[1] !== c.once ? (Ct = {
59
+ once: c.once,
60
+ amount: c.amount
61
+ }, t[0] = c.amount, t[1] = c.once, t[2] = Ct) : Ct = t[2];
62
+ const D = Me(Rt, Ct), Yt = gt === "linear" ? be : gt === "step" ? ve : gt === "stepAfter" ? Ae : gt === "stepBefore" ? we : je, [yt, ct] = Bt(void 0), [S, bt] = Bt(void 0), [f, l] = Bt(void 0), [kt, P] = Bt(void 0), Et = zt + 50, Xt = Gt + 65;
63
+ let Lt;
64
+ t[3] !== It || t[4] !== Et || t[5] !== Xt || t[6] !== Tt ? (Lt = {
65
+ top: Tt,
66
+ bottom: It,
67
+ left: Et,
68
+ right: Xt
69
+ }, t[3] = It, t[4] = Et, t[5] = Xt, t[6] = Tt, t[7] = Lt) : Lt = t[7];
70
+ const r = Lt, y = Z - r.left - r.right, a = B - r.top - r.bottom;
71
+ let M, G, R, V, F, z, q, C, k, Y, E, U, J, K, Q;
72
+ if (t[8] !== c || t[9] !== x || t[10] !== g || t[11] !== u?.locale || t[12] !== u?.padZeros || t[13] !== u?.precision || t[14] !== u?.prefix || t[15] !== u?.suffix || t[16] !== St || t[17] !== s?.graphObjectValues || t[18] !== s?.xAxis?.axis || t[19] !== s?.xAxis?.labels || t[20] !== s?.yAxis?.gridLines || t[21] !== s?.yAxis?.labels || t[22] !== s?.yAxis?.title || t[23] !== Yt || t[24] !== I || t[25] !== h || t[26] !== O || t[27] !== a || t[28] !== y || t[29] !== B || t[30] !== D || t[31] !== d || t[32] !== m?.locale || t[33] !== m?.padZeros || t[34] !== m?.precision || t[35] !== m?.prefix || t[36] !== m?.suffix || t[37] !== r.bottom || t[38] !== r.left || t[39] !== r.right || t[40] !== r.top || t[41] !== S || t[42] !== rt || t[43] !== ht || t[44] !== T || t[45] !== at || t[46] !== dt || t[47] !== j || t[48] !== $ || t[49] !== Pt || t[50] !== jt || t[51] !== o?.graphObjectValues || t[52] !== o?.xAxis?.axis || t[53] !== o?.xAxis?.labels || t[54] !== o?.yAxis?.gridLines || t[55] !== o?.yAxis?.labels || t[56] !== o?.yAxis?.title || t[57] !== Mt || t[58] !== Z) {
73
+ const p = h.map(li), v = ge().domain(p.map(ni)).range([0, y]).paddingInner(St), Nt = Math.min(...p.map(si).filter(oi)) !== 1 / 0 ? Math.min(...p.map(ii).filter(ei)) > 0 ? 0 : Math.min(...p.map(ti).filter(_e)) : 0, Ot = Math.min(...p.map(Qe).filter(Ke)) !== 1 / 0 ? Math.min(...p.map(Je).filter(Ue)) > 0 ? 0 : Math.min(...p.map(qe).filter(ze)) : 0, vt = Math.max(...p.map(Fe).filter(Re)) !== 1 / 0 ? Math.max(...p.map(Ge).filter(Be)) : 0, mt = Math.max(...p.map(Ze).filter(We)) !== 1 / 0 ? Math.max(...p.map(He).filter(Xe)) : 0, qt = Nt < Ot ? Nt : Ot, xt = vt > mt ? vt : mt, b = me().domain([j ? qt : Nt, j ? xt > 0 ? xt : 0 : vt > 0 ? vt : 0]).range([a, 0]).nice(), A = me().domain([j ? qt : Ot, j ? xt > 0 ? xt : 0 : mt > 0 ? mt : 0]).range([a, 0]).nice(), Ft = ye().defined(Ee).x((i) => v(`${i.id}`) + v.bandwidth() / 2).y((i) => A(i.line)).curve(Yt), Ht = b.ticks(ht), Wt = A.ticks(ht);
74
+ G = Vt.svg, F = `${Z}px`, z = `${B}px`, q = `0 0 ${Z} ${B}`, C = "ltr", k = Rt, J = `translate(${r.left},${r.top})`;
75
+ const $t = s?.xAxis?.axis;
76
+ let st;
77
+ t[74] !== $t ? (st = {
78
+ axis: $t
79
+ }, t[74] = $t, t[75] = st) : st = t[75];
80
+ let L;
81
+ t[76] !== o?.xAxis?.axis ? (L = o?.xAxis?.axis || {}, t[76] = o?.xAxis?.axis, t[77] = L) : L = t[77];
82
+ let N;
83
+ t[78] !== g || t[79] !== L ? (N = {
88
84
  axis: {
89
- stroke: d,
90
- ...ot
85
+ stroke: g,
86
+ ...L
91
87
  }
92
- }, t[74] = d, t[75] = ot, t[76] = mt) : mt = t[76];
93
- let xt;
94
- t[77] !== a || t[78] !== Mt || t[79] !== mt ? (xt = /* @__PURE__ */ s.jsx(ue, { y1: 0, y2: a, x1: -15, x2: -15, classNames: Mt, styles: mt }), t[77] = a, t[78] = Mt, t[79] = mt, t[80] = xt) : xt = t[80];
95
- let ft;
96
- t[81] !== u || t[82] !== d || t[83] !== n?.yAxis?.title || t[84] !== a || t[85] !== c.left || t[86] !== N || t[87] !== o?.yAxis?.title ? (ft = N ? /* @__PURE__ */ s.jsx(pe, { x: 10 - c.left, y: a / 2, style: {
97
- fill: d,
88
+ }, t[78] = g, t[79] = L, t[80] = N) : N = t[80];
89
+ let X;
90
+ t[81] !== a || t[82] !== st || t[83] !== N ? (X = /* @__PURE__ */ n.jsx(le, { y1: 0, y2: a, x1: -15, x2: -15, classNames: st, styles: N }), t[81] = a, t[82] = st, t[83] = N, t[84] = X) : X = t[84];
91
+ let H;
92
+ t[85] !== x || t[86] !== g || t[87] !== s?.yAxis?.title || t[88] !== a || t[89] !== r.left || t[90] !== $ || t[91] !== o?.yAxis?.title ? (H = $ ? /* @__PURE__ */ n.jsx(ue, { x: 10 - r.left, y: a / 2, style: {
93
+ fill: g,
98
94
  ...o?.yAxis?.title || {}
99
- }, className: n?.yAxis?.title, text: u[0].length > 100 ? `${u[0].substring(0, 100)}...` : u[0], rotate90: !0 }) : null, t[81] = u, t[82] = d, t[83] = n?.yAxis?.title, t[84] = a, t[85] = c.left, t[86] = N, t[87] = o?.yAxis?.title, t[88] = ft) : ft = t[88], K = /* @__PURE__ */ s.jsxs("g", { children: [
100
- Zt.map((i, Wt) => /* @__PURE__ */ s.jsxs("g", { children: [
101
- /* @__PURE__ */ s.jsx("line", { y1: h(i), y2: h(i), x1: -15, x2: -20, style: {
102
- stroke: d,
95
+ }, className: s?.yAxis?.title, text: x[0].length > 100 ? `${x[0].substring(0, 100)}...` : x[0], rotate90: !0 }) : null, t[85] = x, t[86] = g, t[87] = s?.yAxis?.title, t[88] = a, t[89] = r.left, t[90] = $, t[91] = o?.yAxis?.title, t[92] = H) : H = t[92], K = /* @__PURE__ */ n.jsxs("g", { children: [
96
+ Ht.map((i, Dt) => /* @__PURE__ */ n.jsxs("g", { children: [
97
+ /* @__PURE__ */ n.jsx("line", { y1: b(i), y2: b(i), x1: -15, x2: -20, style: {
98
+ stroke: g,
103
99
  strokeWidth: 1,
104
100
  ...o?.yAxis?.gridLines || {}
105
- }, className: n?.yAxis?.gridLines }),
106
- /* @__PURE__ */ s.jsx("text", { x: -25, y: h(i), dy: "0.33em", className: le("text-xs", n?.yAxis?.labels), style: {
101
+ }, className: s?.yAxis?.gridLines }),
102
+ /* @__PURE__ */ n.jsx("text", { x: -25, y: b(i), dy: "0.33em", className: ee("text-xs", s?.yAxis?.labels), style: {
107
103
  textAnchor: "end",
108
- fill: d,
104
+ fill: g,
109
105
  ...o?.yAxis?.labels || {}
110
- }, children: ae(i, lt, B, Ot, Nt, at) })
111
- ] }, Wt)),
112
- xt,
113
- ft
106
+ }, children: ie(i, rt, u?.precision ?? 2, u?.prefix, u?.suffix, u?.locale, u?.padZeros) })
107
+ ] }, Dt)),
108
+ X,
109
+ H
114
110
  ] });
115
- const Et = g + 15, Xt = g + 15, nt = n?.xAxis?.axis;
116
- let C;
117
- t[89] !== nt ? (C = {
118
- axis: nt
119
- }, t[89] = nt, t[90] = C) : C = t[90];
120
- let k;
121
- t[91] !== o?.xAxis?.axis ? (k = o?.xAxis?.axis || {}, t[91] = o?.xAxis?.axis, t[92] = k) : k = t[92];
122
- let L;
123
- t[93] !== f || t[94] !== k ? (L = {
111
+ const nt = y + 15, lt = y + 15, At = s?.xAxis?.axis;
112
+ let pt;
113
+ t[93] !== At ? (pt = {
114
+ axis: At
115
+ }, t[93] = At, t[94] = pt) : pt = t[94];
116
+ let ft;
117
+ t[95] !== o?.xAxis?.axis ? (ft = o?.xAxis?.axis || {}, t[95] = o?.xAxis?.axis, t[96] = ft) : ft = t[96];
118
+ let Zt;
119
+ t[97] !== d || t[98] !== ft ? (Zt = {
124
120
  axis: {
125
- stroke: f,
126
- ...k
121
+ stroke: d,
122
+ ...ft
127
123
  }
128
- }, t[93] = f, t[94] = k, t[95] = L) : L = t[95];
129
- let Y;
130
- t[96] !== a || t[97] !== Et || t[98] !== Xt || t[99] !== C || t[100] !== L ? (Y = /* @__PURE__ */ s.jsx(ue, { y1: 0, y2: a, x1: Et, x2: Xt, classNames: C, styles: L }), t[96] = a, t[97] = Et, t[98] = Xt, t[99] = C, t[100] = L, t[101] = Y) : Y = t[101];
131
- let E;
132
- t[102] !== u || t[103] !== n?.yAxis?.title || t[104] !== a || t[105] !== g || t[106] !== f || t[107] !== c.right || t[108] !== N || t[109] !== o?.yAxis?.title ? (E = N ? /* @__PURE__ */ s.jsx(pe, { x: g + c.right - 15, y: a / 2, style: {
133
- fill: f,
124
+ }, t[97] = d, t[98] = ft, t[99] = Zt) : Zt = t[99];
125
+ let Ut;
126
+ t[100] !== a || t[101] !== nt || t[102] !== lt || t[103] !== pt || t[104] !== Zt ? (Ut = /* @__PURE__ */ n.jsx(le, { y1: 0, y2: a, x1: nt, x2: lt, classNames: pt, styles: Zt }), t[100] = a, t[101] = nt, t[102] = lt, t[103] = pt, t[104] = Zt, t[105] = Ut) : Ut = t[105];
127
+ let Jt;
128
+ t[106] !== x || t[107] !== s?.yAxis?.title || t[108] !== a || t[109] !== y || t[110] !== d || t[111] !== r.right || t[112] !== $ || t[113] !== o?.yAxis?.title ? (Jt = $ ? /* @__PURE__ */ n.jsx(ue, { x: y + r.right - 15, y: a / 2, style: {
129
+ fill: d,
134
130
  ...o?.yAxis?.title || {}
135
- }, className: n?.yAxis?.title, text: u[1].length > 100 ? `${u[1].substring(0, 100)}...` : u[1], rotate90: !0 }) : null, t[102] = u, t[103] = n?.yAxis?.title, t[104] = a, t[105] = g, t[106] = f, t[107] = c.right, t[108] = N, t[109] = o?.yAxis?.title, t[110] = E) : E = t[110], Q = /* @__PURE__ */ s.jsxs("g", { children: [
136
- ce.map((i, Wt) => /* @__PURE__ */ s.jsxs("g", { children: [
137
- /* @__PURE__ */ s.jsx("line", { y1: v(i), y2: v(i), x1: g + 15, x2: g + 20, style: {
138
- stroke: f,
131
+ }, className: s?.yAxis?.title, text: x[1].length > 100 ? `${x[1].substring(0, 100)}...` : x[1], rotate90: !0 }) : null, t[106] = x, t[107] = s?.yAxis?.title, t[108] = a, t[109] = y, t[110] = d, t[111] = r.right, t[112] = $, t[113] = o?.yAxis?.title, t[114] = Jt) : Jt = t[114], Q = /* @__PURE__ */ n.jsxs("g", { children: [
132
+ Wt.map((i, Dt) => /* @__PURE__ */ n.jsxs("g", { children: [
133
+ /* @__PURE__ */ n.jsx("line", { y1: A(i), y2: A(i), x1: y + 15, x2: y + 20, style: {
134
+ stroke: d,
139
135
  strokeWidth: 1,
140
136
  ...o?.yAxis?.gridLines || {}
141
- }, className: n?.yAxis?.gridLines }),
142
- /* @__PURE__ */ s.jsx("text", { x: g + 25, y: v(i), dy: "0.33em", dx: -2, style: {
137
+ }, className: s?.yAxis?.gridLines }),
138
+ /* @__PURE__ */ n.jsx("text", { x: y + 25, y: A(i), dy: "0.33em", dx: -2, style: {
143
139
  textAnchor: "start",
144
- fill: f,
140
+ fill: d,
145
141
  ...o?.yAxis?.labels || {}
146
- }, className: le("text-xs", n?.yAxis?.labels), children: ae(i, lt, B, St, ht, at) })
147
- ] }, Wt)),
148
- Y,
149
- E
142
+ }, className: ee("text-xs", s?.yAxis?.labels), children: ie(i, rt, m?.precision ?? 2, m?.prefix, m?.suffix, m?.locale, m?.padZeros) })
143
+ ] }, Dt)),
144
+ Ut,
145
+ Jt
150
146
  ] });
151
- const Ct = n?.xAxis?.axis;
152
- let Ht;
153
- t[111] !== Ct ? (Ht = {
154
- axis: Ct
155
- }, t[111] = Ct, t[112] = Ht) : Ht = t[112];
156
- const _t = o?.xAxis?.axis;
157
- let oe;
158
- t[113] !== _t ? (oe = {
159
- axis: _t
160
- }, t[113] = _t, t[114] = oe) : oe = t[114], R = /* @__PURE__ */ s.jsx(ue, { y1: A ? h(0) : a, y2: A ? h(0) : a, x1: -15, x2: g + 15, classNames: Ht, styles: oe }), t[115] !== V ? (S = V.filter(We).map(He), t[115] = V, t[116] = S) : S = t[116], w = Ne, I = x.map((i, Wt) => /* @__PURE__ */ s.jsxs(Bt.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (X) => {
161
- rt(i), ct(X.clientY), l(X.clientX), st?.(i);
147
+ const se = s?.xAxis?.axis;
148
+ let Kt;
149
+ t[115] !== se ? (Kt = {
150
+ axis: se
151
+ }, t[115] = se, t[116] = Kt) : Kt = t[116];
152
+ const ne = o?.xAxis?.axis;
153
+ let Qt;
154
+ t[117] !== ne ? (Qt = {
155
+ axis: ne
156
+ }, t[117] = ne, t[118] = Qt) : Qt = t[118], R = /* @__PURE__ */ n.jsx(le, { y1: j ? b(0) : a, y2: j ? b(0) : a, x1: -15, x2: y + 15, classNames: Kt, styles: Qt }), t[119] !== I ? (V = I.filter(Ye).map(Pe), t[119] = I, t[120] = V) : V = t[120], M = Ce, Y = p.map((i, Dt) => /* @__PURE__ */ n.jsxs(Vt.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (W) => {
157
+ ct(i), P(W.clientY), l(W.clientX), at?.(i);
162
158
  }, onClick: () => {
163
- (O || $) && (fe(T, i) && pt ? (gt(void 0), O?.(void 0)) : (gt(i), O?.(i)));
164
- }, onMouseMove: (X) => {
165
- rt(i), ct(X.clientY), l(X.clientX);
159
+ (T || O) && (ce(S, i) && dt ? (bt(void 0), T?.(void 0)) : (bt(i), T?.(i)));
160
+ }, onMouseMove: (W) => {
161
+ ct(i), P(W.clientY), l(W.clientX);
166
162
  }, onMouseLeave: () => {
167
- rt(void 0), l(void 0), ct(void 0), st?.(void 0);
163
+ ct(void 0), l(void 0), P(void 0), at?.(void 0);
168
164
  }, children: [
169
- /* @__PURE__ */ s.jsx(Bt.rect, { variants: {
165
+ /* @__PURE__ */ n.jsx(Vt.rect, { variants: {
170
166
  initial: {
171
- attrY: h(0),
167
+ attrY: b(0),
172
168
  height: 0,
173
169
  opacity: 1,
174
- fill: d
170
+ fill: g
175
171
  },
176
172
  whileInView: {
177
- attrY: i.bar ? i.bar > 0 ? h(i.bar) : h(0) : 0,
178
- height: i.bar ? Math.abs(h(i.bar) - h(0)) : 0,
173
+ attrY: i.bar ? i.bar > 0 ? b(i.bar) : b(0) : 0,
174
+ height: i.bar ? Math.abs(b(i.bar) - b(0)) : 0,
179
175
  opacity: 1,
180
- fill: d,
176
+ fill: g,
181
177
  transition: {
182
- duration: r.duration
178
+ duration: c.duration
183
179
  }
184
180
  }
185
181
  }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
186
- attrY: h(0),
182
+ attrY: b(0),
187
183
  height: 0,
188
184
  opacity: 0,
189
185
  transition: {
190
- duration: r.duration
186
+ duration: c.duration
191
187
  }
192
- }, x: y(`${Wt}`), width: y.bandwidth() }),
193
- Lt && !xe(i.bar) ? /* @__PURE__ */ s.jsx(Bt.text, { x: y(`${i.id}`) + y.bandwidth() / 2, exit: {
194
- attrY: h(0),
188
+ }, x: v(`${Dt}`), width: v.bandwidth() }),
189
+ jt && !re(i.bar) ? /* @__PURE__ */ n.jsx(Vt.text, { x: v(`${i.id}`) + v.bandwidth() / 2, exit: {
190
+ attrY: b(0),
195
191
  opacity: 0,
196
192
  transition: {
197
- duration: r.duration
193
+ duration: c.duration
198
194
  }
199
195
  }, variants: {
200
196
  initial: {
201
- attrY: h(0),
197
+ attrY: b(0),
202
198
  opacity: 0,
203
- fill: d
199
+ fill: g
204
200
  },
205
201
  whileInView: {
206
- attrY: h(i.bar || 0),
202
+ attrY: b(i.bar || 0),
207
203
  opacity: 1,
208
- fill: d,
204
+ fill: g,
209
205
  transition: {
210
- duration: r.duration
206
+ duration: c.duration
211
207
  }
212
208
  }
213
209
  }, initial: "initial", animate: D ? "whileInView" : "initial", style: {
214
210
  textAnchor: "middle",
215
211
  ...o?.graphObjectValues || {}
216
- }, className: le("graph-value text-sm", n?.graphObjectValues), dy: i.bar ? i.bar >= 0 ? "-5px" : "1em" : "-5px", children: ae(i.bar, lt, B, Ot, Nt, at) }) : null,
217
- zt ? /* @__PURE__ */ s.jsx(ve, { value: `${i.label}`.length < $t ? `${i.label}` : `${`${i.label}`.substring(0, $t)}...`, y: a + 5, x: y(`${i.id}`), width: y.bandwidth(), height: c.bottom, style: o?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: r, isInView: D }) : null
212
+ }, className: ee("graph-value text-sm", s?.graphObjectValues), dy: i.bar ? i.bar >= 0 ? "-5px" : "1em" : "-5px", children: ie(i.bar, rt, u?.precision ?? 2, u?.prefix, u?.suffix, u?.locale, u?.padZeros) }) : null,
213
+ Pt ? /* @__PURE__ */ n.jsx(de, { value: `${i.label}`.length < Mt ? `${i.label}` : `${`${i.label}`.substring(0, Mt)}...`, y: a + 5, x: v(`${i.id}`), width: v.bandwidth(), height: r.bottom, style: o?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: c, isInView: D }) : null
218
214
  ] }, i.label));
219
- let ne;
220
- t[117] !== r.duration ? (ne = {
215
+ let _t;
216
+ t[121] !== c.duration ? (_t = {
221
217
  opacity: 0,
222
218
  transition: {
223
- duration: r.duration
219
+ duration: c.duration
224
220
  }
225
- }, t[117] = r.duration, t[118] = ne) : ne = t[118];
226
- let se;
227
- t[119] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (se = {
221
+ }, t[121] = c.duration, t[122] = _t) : _t = t[122];
222
+ let te;
223
+ t[123] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = {
228
224
  fill: "none",
229
225
  strokeWidth: 2
230
- }, t[119] = se) : se = t[119], P = /* @__PURE__ */ s.jsx(Bt.path, { exit: ne, variants: {
226
+ }, t[123] = te) : te = t[123], E = /* @__PURE__ */ n.jsx(Vt.path, { exit: _t, variants: {
231
227
  initial: {
232
- d: Qt(x.map(Xe)),
228
+ d: Ft(p.map(Se)),
233
229
  opacity: 0,
234
- stroke: f
230
+ stroke: d
235
231
  },
236
232
  whileInView: {
237
- d: Qt(x),
233
+ d: Ft(p),
238
234
  opacity: 1,
239
- stroke: f,
235
+ stroke: d,
240
236
  transition: {
241
- duration: r.duration
237
+ duration: c.duration
242
238
  }
243
239
  }
244
- }, initial: "initial", animate: D ? "whileInView" : "initial", style: se }), U = x.map((i, Wt) => /* @__PURE__ */ s.jsx("g", { children: xe(i.line) ? null : /* @__PURE__ */ s.jsxs("g", { onMouseEnter: (X) => {
245
- rt(i), ct(X.clientY), l(X.clientX), st?.(i);
240
+ }, initial: "initial", animate: D ? "whileInView" : "initial", style: te }), U = p.map((i, Dt) => /* @__PURE__ */ n.jsx("g", { children: re(i.line) ? null : /* @__PURE__ */ n.jsxs("g", { onMouseEnter: (W) => {
241
+ ct(i), P(W.clientY), l(W.clientX), at?.(i);
246
242
  }, onClick: () => {
247
- (O || $) && (fe(T, i) && pt ? (gt(void 0), O?.(void 0)) : (gt(i), O?.(i)));
248
- }, onMouseMove: (X) => {
249
- rt(i), ct(X.clientY), l(X.clientX);
243
+ (T || O) && (ce(S, i) && dt ? (bt(void 0), T?.(void 0)) : (bt(i), T?.(i)));
244
+ }, onMouseMove: (W) => {
245
+ ct(i), P(W.clientY), l(W.clientX);
250
246
  }, onMouseLeave: () => {
251
- rt(void 0), l(void 0), ct(void 0), st?.(void 0);
247
+ ct(void 0), l(void 0), P(void 0), at?.(void 0);
252
248
  }, children: [
253
- /* @__PURE__ */ s.jsx(Bt.circle, { exit: {
254
- cy: v(0),
249
+ /* @__PURE__ */ n.jsx(Vt.circle, { exit: {
250
+ cy: A(0),
255
251
  opacity: 0,
256
252
  transition: {
257
- duration: r.duration
253
+ duration: c.duration
258
254
  }
259
255
  }, variants: {
260
256
  initial: {
261
- cy: v(0),
257
+ cy: A(0),
262
258
  opacity: 0,
263
- fill: f
259
+ fill: d
264
260
  },
265
261
  whileInView: {
266
- cy: v(i.line),
262
+ cy: A(i.line),
267
263
  opacity: 1,
268
- fill: f,
264
+ fill: d,
269
265
  transition: {
270
- duration: r.duration
266
+ duration: c.duration
271
267
  }
272
268
  }
273
- }, initial: "initial", animate: D ? "whileInView" : "initial", cx: y(i.id) + y.bandwidth() / 2, r: g / x.length < 5 ? 0 : g / x.length < 20 ? 2 : 4 }),
274
- Lt ? /* @__PURE__ */ s.jsx(Bt.text, { x: y(`${i.id}`) + y.bandwidth() / 2, exit: {
275
- y: v(0),
269
+ }, initial: "initial", animate: D ? "whileInView" : "initial", cx: v(i.id) + v.bandwidth() / 2, r: y / p.length < 5 ? 0 : y / p.length < 20 ? 2 : 4 }),
270
+ jt ? /* @__PURE__ */ n.jsx(Vt.text, { x: v(`${i.id}`) + v.bandwidth() / 2, exit: {
271
+ y: A(0),
276
272
  opacity: 0,
277
273
  transition: {
278
- duration: r.duration
274
+ duration: c.duration
279
275
  }
280
276
  }, style: {
281
277
  textAnchor: "middle",
282
278
  ...o?.graphObjectValues || {}
283
279
  }, variants: {
284
280
  initial: {
285
- y: v(0),
281
+ y: A(0),
286
282
  opacity: 0,
287
- fill: f
283
+ fill: d
288
284
  },
289
285
  whileInView: {
290
- y: v(i.line),
286
+ y: A(i.line),
291
287
  opacity: 1,
292
- fill: f,
288
+ fill: d,
293
289
  transition: {
294
- duration: r.duration
290
+ duration: c.duration
295
291
  }
296
292
  }
297
- }, initial: "initial", animate: D ? "whileInView" : "initial", className: le("graph-value text-sm", n?.graphObjectValues), dy: "-5px", children: ae(i.line, lt, B, St, ht, at) }) : null
298
- ] }) }, Wt)), t[8] = r, t[9] = u, t[10] = d, t[11] = Ft, t[12] = Ot, t[13] = Nt, t[14] = n?.graphObjectValues, t[15] = n?.xAxis?.axis, t[16] = n?.xAxis?.labels, t[17] = n?.yAxis?.gridLines, t[18] = n?.yAxis?.labels, t[19] = n?.yAxis?.title, t[20] = Ut, t[21] = V, t[22] = p, t[23] = $, t[24] = a, t[25] = g, t[26] = W, t[27] = D, t[28] = f, t[29] = St, t[30] = ht, t[31] = at, t[32] = c.bottom, t[33] = c.left, t[34] = c.right, t[35] = c.top, t[36] = T, t[37] = lt, t[38] = dt, t[39] = O, t[40] = st, t[41] = B, t[42] = pt, t[43] = A, t[44] = N, t[45] = zt, t[46] = Lt, t[47] = o?.graphObjectValues, t[48] = o?.xAxis?.axis, t[49] = o?.xAxis?.labels, t[50] = o?.yAxis?.gridLines, t[51] = o?.yAxis?.labels, t[52] = o?.yAxis?.title, t[53] = $t, t[54] = H, t[55] = w, t[56] = G, t[57] = R, t[58] = S, t[59] = F, t[60] = z, t[61] = q, t[62] = j, t[63] = M, t[64] = I, t[65] = P, t[66] = U, t[67] = J, t[68] = K, t[69] = Q;
293
+ }, initial: "initial", animate: D ? "whileInView" : "initial", className: ee("graph-value text-sm", s?.graphObjectValues), dy: "-5px", children: ie(i.line, rt, m?.precision ?? 2, m?.prefix, m?.suffix, m?.locale, m?.padZeros) }) : null
294
+ ] }) }, Dt)), t[8] = c, t[9] = x, t[10] = g, t[11] = u?.locale, t[12] = u?.padZeros, t[13] = u?.precision, t[14] = u?.prefix, t[15] = u?.suffix, t[16] = St, t[17] = s?.graphObjectValues, t[18] = s?.xAxis?.axis, t[19] = s?.xAxis?.labels, t[20] = s?.yAxis?.gridLines, t[21] = s?.yAxis?.labels, t[22] = s?.yAxis?.title, t[23] = Yt, t[24] = I, t[25] = h, t[26] = O, t[27] = a, t[28] = y, t[29] = B, t[30] = D, t[31] = d, t[32] = m?.locale, t[33] = m?.padZeros, t[34] = m?.precision, t[35] = m?.prefix, t[36] = m?.suffix, t[37] = r.bottom, t[38] = r.left, t[39] = r.right, t[40] = r.top, t[41] = S, t[42] = rt, t[43] = ht, t[44] = T, t[45] = at, t[46] = dt, t[47] = j, t[48] = $, t[49] = Pt, t[50] = jt, t[51] = o?.graphObjectValues, t[52] = o?.xAxis?.axis, t[53] = o?.xAxis?.labels, t[54] = o?.yAxis?.gridLines, t[55] = o?.yAxis?.labels, t[56] = o?.yAxis?.title, t[57] = Mt, t[58] = Z, t[59] = M, t[60] = G, t[61] = R, t[62] = V, t[63] = F, t[64] = z, t[65] = q, t[66] = C, t[67] = k, t[68] = Y, t[69] = E, t[70] = U, t[71] = J, t[72] = K, t[73] = Q;
299
295
  } else
300
- w = t[55], G = t[56], R = t[57], S = t[58], F = t[59], z = t[60], q = t[61], j = t[62], M = t[63], I = t[64], P = t[65], U = t[66], J = t[67], K = t[68], Q = t[69];
301
- let Z;
302
- t[120] !== w || t[121] !== I || t[122] !== P || t[123] !== U ? (Z = /* @__PURE__ */ s.jsxs(w, { children: [
303
- I,
304
- P,
305
- U
306
- ] }), t[120] = w, t[121] = I, t[122] = P, t[123] = U, t[124] = Z) : Z = t[124];
307
- let b;
308
- t[125] !== V ? (b = V.filter(Ee).map(Ye), t[125] = V, t[126] = b) : b = t[126];
296
+ M = t[59], G = t[60], R = t[61], V = t[62], F = t[63], z = t[64], q = t[65], C = t[66], k = t[67], Y = t[68], E = t[69], U = t[70], J = t[71], K = t[72], Q = t[73];
309
297
  let _;
310
- t[127] !== R || t[128] !== S || t[129] !== Z || t[130] !== b || t[131] !== J || t[132] !== K || t[133] !== Q ? (_ = /* @__PURE__ */ s.jsxs("g", { transform: J, children: [
298
+ t[124] !== M || t[125] !== Y || t[126] !== E || t[127] !== U ? (_ = /* @__PURE__ */ n.jsxs(M, { children: [
299
+ Y,
300
+ E,
301
+ U
302
+ ] }), t[124] = M, t[125] = Y, t[126] = E, t[127] = U, t[128] = _) : _ = t[128];
303
+ let w;
304
+ t[129] !== I ? (w = I.filter(Ie).map(Te), t[129] = I, t[130] = w) : w = t[130];
305
+ let tt;
306
+ t[131] !== R || t[132] !== V || t[133] !== _ || t[134] !== w || t[135] !== J || t[136] !== K || t[137] !== Q ? (tt = /* @__PURE__ */ n.jsxs("g", { transform: J, children: [
311
307
  K,
312
308
  Q,
313
309
  R,
314
- S,
315
- Z,
316
- b
317
- ] }), t[127] = R, t[128] = S, t[129] = Z, t[130] = b, t[131] = J, t[132] = K, t[133] = Q, t[134] = _) : _ = t[134];
318
- let tt;
319
- t[135] !== G || t[136] !== F || t[137] !== z || t[138] !== q || t[139] !== j || t[140] !== M || t[141] !== _ ? (tt = /* @__PURE__ */ s.jsx(G, { width: F, height: z, viewBox: q, direction: j, ref: M, children: _ }), t[135] = G, t[136] = F, t[137] = z, t[138] = q, t[139] = j, t[140] = M, t[141] = _, t[142] = tt) : tt = t[142];
310
+ V,
311
+ _,
312
+ w
313
+ ] }), t[131] = R, t[132] = V, t[133] = _, t[134] = w, t[135] = J, t[136] = K, t[137] = Q, t[138] = tt) : tt = t[138];
320
314
  let et;
321
- t[143] !== n?.tooltip || t[144] !== m || t[145] !== It || t[146] !== Tt || t[147] !== o?.tooltip || t[148] !== kt ? (et = Tt && kt && m && It ? /* @__PURE__ */ s.jsx(ye, { data: Tt, body: kt, xPos: m, yPos: It, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[143] = n?.tooltip, t[144] = m, t[145] = It, t[146] = Tt, t[147] = o?.tooltip, t[148] = kt, t[149] = et) : et = t[149];
315
+ t[139] !== G || t[140] !== F || t[141] !== z || t[142] !== q || t[143] !== C || t[144] !== k || t[145] !== tt ? (et = /* @__PURE__ */ n.jsx(G, { width: F, height: z, viewBox: q, direction: C, ref: k, children: tt }), t[139] = G, t[140] = F, t[141] = z, t[142] = q, t[143] = C, t[144] = k, t[145] = tt, t[146] = et) : et = t[146];
322
316
  let it;
323
- t[150] !== n?.modal || t[151] !== $ || t[152] !== T ? (it = $ && T !== void 0 ? /* @__PURE__ */ s.jsx(be, { body: $, data: T, setData: gt, className: n?.modal }) : null, t[150] = n?.modal, t[151] = $, t[152] = T, t[153] = it) : it = t[153];
324
- let vt;
325
- return t[154] !== tt || t[155] !== et || t[156] !== it ? (vt = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
326
- tt,
317
+ t[147] !== s?.tooltip || t[148] !== f || t[149] !== kt || t[150] !== yt || t[151] !== o?.tooltip || t[152] !== wt ? (it = yt && wt && f && kt ? /* @__PURE__ */ n.jsx(fe, { data: yt, body: wt, xPos: f, yPos: kt, backgroundStyle: o?.tooltip, className: s?.tooltip }) : null, t[147] = s?.tooltip, t[148] = f, t[149] = kt, t[150] = yt, t[151] = o?.tooltip, t[152] = wt, t[153] = it) : it = t[153];
318
+ let ot;
319
+ t[154] !== s?.modal || t[155] !== O || t[156] !== S ? (ot = O && S !== void 0 ? /* @__PURE__ */ n.jsx(he, { body: O, data: S, setData: bt, className: s?.modal }) : null, t[154] = s?.modal, t[155] = O, t[156] = S, t[157] = ot) : ot = t[157];
320
+ let ut;
321
+ return t[158] !== et || t[159] !== it || t[160] !== ot ? (ut = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
327
322
  et,
328
- it
329
- ] }), t[154] = tt, t[155] = et, t[156] = it, t[157] = vt) : vt = t[157], vt;
323
+ it,
324
+ ot
325
+ ] }), t[158] = et, t[159] = it, t[160] = ot, t[161] = ut) : ut = t[161], ut;
330
326
  }
331
- function Ye(e) {
327
+ function Te(e) {
332
328
  return e.layer;
333
329
  }
334
- function Ee(e) {
330
+ function Ie(e) {
335
331
  return e.position === "after";
336
332
  }
337
- function Xe(e) {
333
+ function Se(e) {
338
334
  return {
339
335
  ...e,
340
336
  line: 0
341
337
  };
342
338
  }
343
- function He(e) {
339
+ function Pe(e) {
344
340
  return e.layer;
345
341
  }
346
- function We(e) {
342
+ function Ye(e) {
347
343
  return e.position === "before";
348
344
  }
349
- function Be(e) {
350
- return !xe(e.line);
345
+ function Ee(e) {
346
+ return !re(e.line);
351
347
  }
352
- function Ge(e) {
348
+ function Xe(e) {
353
349
  return e != null;
354
350
  }
355
- function Re(e) {
351
+ function He(e) {
356
352
  return e.line;
357
353
  }
358
- function Fe(e) {
354
+ function We(e) {
359
355
  return e != null;
360
356
  }
361
- function ze(e) {
357
+ function Ze(e) {
362
358
  return e.line;
363
359
  }
364
- function qe(e) {
360
+ function Be(e) {
365
361
  return e != null;
366
362
  }
367
- function Ue(e) {
363
+ function Ge(e) {
368
364
  return e.bar;
369
365
  }
370
- function Je(e) {
366
+ function Re(e) {
371
367
  return e != null;
372
368
  }
373
- function Ke(e) {
369
+ function Fe(e) {
374
370
  return e.bar;
375
371
  }
376
- function Qe(e) {
372
+ function ze(e) {
377
373
  return e != null;
378
374
  }
379
- function Ze(e) {
375
+ function qe(e) {
380
376
  return e.line;
381
377
  }
382
- function _e(e) {
378
+ function Ue(e) {
383
379
  return e != null;
384
380
  }
385
- function ti(e) {
381
+ function Je(e) {
386
382
  return e.line;
387
383
  }
388
- function ei(e) {
384
+ function Ke(e) {
389
385
  return e != null;
390
386
  }
391
- function ii(e) {
387
+ function Qe(e) {
392
388
  return e.line;
393
389
  }
394
- function oi(e) {
390
+ function _e(e) {
395
391
  return e != null;
396
392
  }
397
- function ni(e) {
393
+ function ti(e) {
398
394
  return e.bar;
399
395
  }
400
- function si(e) {
396
+ function ei(e) {
401
397
  return e != null;
402
398
  }
403
- function li(e) {
399
+ function ii(e) {
404
400
  return e.bar;
405
401
  }
406
- function ai(e) {
402
+ function oi(e) {
407
403
  return e != null;
408
404
  }
409
- function ri(e) {
405
+ function si(e) {
410
406
  return e.bar;
411
407
  }
412
- function ci(e) {
408
+ function ni(e) {
413
409
  return `${e.id}`;
414
410
  }
415
- function ui(e, t) {
411
+ function li(e, t) {
416
412
  return {
417
413
  ...e,
418
414
  id: `${t}`
419
415
  };
420
416
  }
421
- function Xi(e) {
422
- const t = he.c(91), {
423
- data: p,
424
- graphTitle: H,
425
- sources: W,
426
- graphDescription: d,
427
- height: f,
428
- width: u,
429
- footNote: A,
430
- padding: ee,
431
- lineColor: ie,
432
- barColor: Gt,
433
- sameAxes: Rt,
434
- backgroundColor: kt,
435
- leftMargin: Lt,
436
- rightMargin: st,
437
- topMargin: Ft,
438
- bottomMargin: $t,
439
- lineAxisTitle: zt,
440
- barAxisTitle: O,
441
- tooltip: pt,
442
- relativeHeight: $,
443
- onSeriesMouseOver: dt,
444
- graphID: ht,
445
- graphDownload: Nt,
446
- dataDownload: St,
447
- barPadding: Ot,
448
- truncateBy: Vt,
449
- showLabels: o,
450
- onSeriesMouseClick: n,
451
- language: r,
452
- colorLegendTitle: B,
453
- minHeight: V,
454
- theme: lt,
455
- ariaLabel: N,
456
- resetSelectionOnDoubleClick: at,
457
- detailsOnClick: qt,
458
- showValues: Dt,
459
- noOfTicks: D,
460
- lineSuffix: Ut,
461
- barSuffix: Tt,
462
- linePrefix: rt,
463
- barPrefix: T,
464
- curveType: gt,
465
- styles: m,
417
+ function Si(e) {
418
+ const t = xe.c(87), {
419
+ data: h,
420
+ graphTitle: Z,
421
+ sources: B,
422
+ graphDescription: g,
423
+ height: d,
424
+ width: x,
425
+ footNote: j,
426
+ padding: Gt,
427
+ lineColor: zt,
428
+ barColor: Tt,
429
+ sameAxes: It,
430
+ backgroundColor: wt,
431
+ leftMargin: jt,
432
+ rightMargin: at,
433
+ topMargin: St,
434
+ bottomMargin: Mt,
435
+ lineAxisTitle: Pt,
436
+ barAxisTitle: T,
437
+ tooltip: dt,
438
+ relativeHeight: O,
439
+ onSeriesMouseOver: ht,
440
+ graphID: gt,
441
+ graphDownload: o,
442
+ dataDownload: s,
443
+ barPadding: c,
444
+ truncateBy: I,
445
+ showLabels: rt,
446
+ onSeriesMouseClick: $,
447
+ language: m,
448
+ colorLegendTitle: u,
449
+ minHeight: Rt,
450
+ theme: Ct,
451
+ ariaLabel: D,
452
+ resetSelectionOnDoubleClick: Yt,
453
+ detailsOnClick: yt,
454
+ showValues: ct,
455
+ noOfTicks: S,
456
+ curveType: bt,
457
+ styles: f,
466
458
  classNames: l,
467
- animate: It,
468
- precision: ct,
469
- customLayers: yt,
470
- naLabel: Jt,
471
- showColorScale: Pt,
472
- showAxisLabels: c,
473
- locale: g
474
- } = e, a = ie === void 0 ? re.light.categoricalColors.colors[1] : ie, w = Gt === void 0 ? re.light.categoricalColors.colors[0] : Gt, G = Rt === void 0 ? !1 : Rt, R = kt === void 0 ? !1 : kt, S = Lt === void 0 ? 80 : Lt, F = st === void 0 ? 80 : st, z = Ft === void 0 ? 20 : Ft, q = $t === void 0 ? 25 : $t, j = zt === void 0 ? "Line chart" : zt, M = O === void 0 ? "Bar graph" : O, I = Nt === void 0 ? !1 : Nt, P = St === void 0 ? !1 : St, U = Ot === void 0 ? 0.25 : Ot, J = Vt === void 0 ? 999 : Vt, K = o === void 0 ? !0 : o, Q = r === void 0 ? "en" : r, Z = V === void 0 ? 0 : V, b = lt === void 0 ? "light" : lt, _ = at === void 0 ? !0 : at, tt = Dt === void 0 ? !0 : Dt, et = D === void 0 ? 5 : D, it = Ut === void 0 ? "" : Ut, vt = Tt === void 0 ? "" : Tt, x = rt === void 0 ? "" : rt, y = T === void 0 ? "" : T, Yt = gt === void 0 ? "curve" : gt, bt = It === void 0 ? !1 : It, At = ct === void 0 ? 2 : ct;
475
- let ut;
476
- t[0] !== yt ? (ut = yt === void 0 ? [] : yt, t[0] = yt, t[1] = ut) : ut = t[1];
477
- const Kt = ut, wt = Jt === void 0 ? "NA" : Jt, h = Pt === void 0 ? !0 : Pt, v = c === void 0 ? !0 : c, Qt = g === void 0 ? "en" : g, [Zt, ce] = te(0), [jt, Mt] = te(0), ot = me(null), mt = me(null);
478
- let xt, ft;
479
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xt = () => {
480
- const Ht = new ResizeObserver((_t) => {
481
- ce(_t[0].target.clientWidth || 620), Mt(_t[0].target.clientHeight || 480);
459
+ animate: kt,
460
+ customLayers: P,
461
+ naLabel: Et,
462
+ showColorScale: Xt,
463
+ showAxisLabels: Lt,
464
+ lineNumberDisplayOptions: r,
465
+ barNumberDisplayOptions: y
466
+ } = e, a = zt === void 0 ? oe.light.categoricalColors.colors[1] : zt, M = Tt === void 0 ? oe.light.categoricalColors.colors[0] : Tt, G = It === void 0 ? !1 : It, R = wt === void 0 ? !1 : wt, V = jt === void 0 ? 80 : jt, F = at === void 0 ? 80 : at, z = St === void 0 ? 20 : St, q = Mt === void 0 ? 25 : Mt, C = Pt === void 0 ? "Line chart" : Pt, k = T === void 0 ? "Bar graph" : T, Y = o === void 0 ? !1 : o, E = s === void 0 ? !1 : s, U = c === void 0 ? 0.25 : c, J = I === void 0 ? 999 : I, K = rt === void 0 ? !0 : rt, Q = m === void 0 ? "en" : m, _ = Rt === void 0 ? 0 : Rt, w = Ct === void 0 ? "light" : Ct, tt = Yt === void 0 ? !0 : Yt, et = ct === void 0 ? !0 : ct, it = S === void 0 ? 5 : S, ot = bt === void 0 ? "curve" : bt, ut = kt === void 0 ? !1 : kt;
467
+ let p;
468
+ t[0] !== P ? (p = P === void 0 ? [] : P, t[0] = P, t[1] = p) : p = t[1];
469
+ const v = p, Nt = Et === void 0 ? "NA" : Et, Ot = Xt === void 0 ? !0 : Xt, vt = Lt === void 0 ? !0 : Lt, [mt, qt] = Bt(0), [xt, b] = Bt(0), A = ae(null), Ft = ae(null);
470
+ let Ht, Wt;
471
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ht = () => {
472
+ const pt = new ResizeObserver((ft) => {
473
+ qt(ft[0].target.clientWidth || 620), b(ft[0].target.clientHeight || 480);
482
474
  });
483
- return ot.current && Ht.observe(ot.current), () => Ht.disconnect();
484
- }, ft = [], t[2] = xt, t[3] = ft) : (xt = t[2], ft = t[3]), ge(xt, ft);
485
- const Et = l?.graphContainer, Xt = m?.graphContainer;
486
- let nt;
487
- t[4] !== l?.description || t[5] !== l?.title || t[6] !== p || t[7] !== P || t[8] !== d || t[9] !== I || t[10] !== H || t[11] !== m?.description || t[12] !== m?.title || t[13] !== u ? (nt = H || d || I || P ? /* @__PURE__ */ s.jsx(Oe, { styles: {
488
- title: m?.title,
489
- description: m?.description
475
+ return A.current && pt.observe(A.current), () => pt.disconnect();
476
+ }, Wt = [], t[2] = Ht, t[3] = Wt) : (Ht = t[2], Wt = t[3]), pe(Ht, Wt);
477
+ const $t = l?.graphContainer, st = f?.graphContainer;
478
+ let L;
479
+ t[4] !== l?.description || t[5] !== l?.title || t[6] !== h || t[7] !== E || t[8] !== g || t[9] !== Y || t[10] !== Z || t[11] !== f?.description || t[12] !== f?.title || t[13] !== x ? (L = Z || g || Y || E ? /* @__PURE__ */ n.jsx(Le, { styles: {
480
+ title: f?.title,
481
+ description: f?.description
490
482
  }, classNames: {
491
483
  title: l?.title,
492
484
  description: l?.description
493
- }, graphTitle: H, graphDescription: d, width: u, graphDownload: I ? mt : void 0, dataDownload: P ? p.map(di).filter(pi).length > 0 ? p.map(fi).filter(xi) : p.filter(mi) : null }) : null, t[4] = l?.description, t[5] = l?.title, t[6] = p, t[7] = P, t[8] = d, t[9] = I, t[10] = H, t[11] = m?.description, t[12] = m?.title, t[13] = u, t[14] = nt) : nt = t[14];
494
- let C;
495
- t[15] !== M || t[16] !== w || t[17] !== l?.colorLegend || t[18] !== B || t[19] !== p.length || t[20] !== j || t[21] !== a || t[22] !== h || t[23] !== b ? (C = !h && p.length > 0 ? null : /* @__PURE__ */ s.jsx(Ve, { colorDomain: [M, j], colors: [w || re[b].categoricalColors.colors[0], a || re[b].categoricalColors.colors[1]], colorLegendTitle: B, showNAColor: !1, className: l?.colorLegend }), t[15] = M, t[16] = w, t[17] = l?.colorLegend, t[18] = B, t[19] = p.length, t[20] = j, t[21] = a, t[22] = h, t[23] = b, t[24] = C) : C = t[24];
496
- let k;
497
- t[25] !== p.length ? (k = p.length === 0 && /* @__PURE__ */ s.jsx(De, {}), t[25] = p.length, t[26] = k) : k = t[26];
498
- let L;
499
- t[27] !== bt || t[28] !== M || t[29] !== w || t[30] !== U || t[31] !== y || t[32] !== vt || t[33] !== q || t[34] !== l || t[35] !== Yt || t[36] !== Kt || t[37] !== p || t[38] !== qt || t[39] !== S || t[40] !== j || t[41] !== a || t[42] !== x || t[43] !== it || t[44] !== Qt || t[45] !== wt || t[46] !== et || t[47] !== n || t[48] !== dt || t[49] !== At || t[50] !== _ || t[51] !== F || t[52] !== G || t[53] !== v || t[54] !== K || t[55] !== tt || t[56] !== m || t[57] !== jt || t[58] !== Zt || t[59] !== pt || t[60] !== z || t[61] !== J ? (L = Zt && jt && p.length > 0 ? /* @__PURE__ */ s.jsx(Pe, { data: p, sameAxes: G, lineColor: a, barColor: w, width: Zt, height: jt, truncateBy: J, leftMargin: S, rightMargin: F, topMargin: z, bottomMargin: q, axisTitles: [M, j], tooltip: pt, onSeriesMouseOver: dt, barPadding: U, showLabels: K, onSeriesMouseClick: n, resetSelectionOnDoubleClick: _, detailsOnClick: qt, noOfTicks: et, lineSuffix: it, barSuffix: vt, linePrefix: x, barPrefix: y, curveType: Yt, showValues: tt, styles: m, classNames: l, animate: bt === !0 ? {
485
+ }, graphTitle: Z, graphDescription: g, width: x, graphDownload: Y ? Ft : void 0, dataDownload: E ? h.map(mi).filter(ui).length > 0 ? h.map(ci).filter(ri) : h.filter(ai) : null }) : null, t[4] = l?.description, t[5] = l?.title, t[6] = h, t[7] = E, t[8] = g, t[9] = Y, t[10] = Z, t[11] = f?.description, t[12] = f?.title, t[13] = x, t[14] = L) : L = t[14];
486
+ let N;
487
+ t[15] !== k || t[16] !== M || t[17] !== l?.colorLegend || t[18] !== u || t[19] !== h.length || t[20] !== C || t[21] !== a || t[22] !== Ot || t[23] !== w ? (N = !Ot && h.length > 0 ? null : /* @__PURE__ */ n.jsx(Ne, { colorDomain: [k, C], colors: [M || oe[w].categoricalColors.colors[0], a || oe[w].categoricalColors.colors[1]], colorLegendTitle: u, showNAColor: !1, className: l?.colorLegend }), t[15] = k, t[16] = M, t[17] = l?.colorLegend, t[18] = u, t[19] = h.length, t[20] = C, t[21] = a, t[22] = Ot, t[23] = w, t[24] = N) : N = t[24];
488
+ let X;
489
+ t[25] !== h.length ? (X = h.length === 0 && /* @__PURE__ */ n.jsx(Oe, {}), t[25] = h.length, t[26] = X) : X = t[26];
490
+ let H;
491
+ t[27] !== ut || t[28] !== k || t[29] !== M || t[30] !== y || t[31] !== U || t[32] !== q || t[33] !== l || t[34] !== ot || t[35] !== v || t[36] !== h || t[37] !== yt || t[38] !== V || t[39] !== C || t[40] !== a || t[41] !== r || t[42] !== Nt || t[43] !== it || t[44] !== $ || t[45] !== ht || t[46] !== tt || t[47] !== F || t[48] !== G || t[49] !== vt || t[50] !== K || t[51] !== et || t[52] !== f || t[53] !== xt || t[54] !== mt || t[55] !== dt || t[56] !== z || t[57] !== J ? (H = mt && xt && h.length > 0 ? /* @__PURE__ */ n.jsx(Ve, { data: h, sameAxes: G, lineColor: a, barColor: M, width: mt, height: xt, truncateBy: J, leftMargin: V, rightMargin: F, topMargin: z, bottomMargin: q, axisTitles: [k, C], tooltip: dt, onSeriesMouseOver: ht, barPadding: U, showLabels: K, onSeriesMouseClick: $, resetSelectionOnDoubleClick: tt, detailsOnClick: yt, noOfTicks: it, curveType: ot, showValues: et, styles: f, classNames: l, animate: ut === !0 ? {
500
492
  duration: 0.5,
501
493
  once: !0,
502
494
  amount: 0.5
503
- } : bt || {
495
+ } : ut || {
504
496
  duration: 0,
505
497
  once: !0,
506
498
  amount: 0
507
- }, precision: At, customLayers: Kt, naLabel: wt, showAxisLabels: v, locale: Qt }) : null, t[27] = bt, t[28] = M, t[29] = w, t[30] = U, t[31] = y, t[32] = vt, t[33] = q, t[34] = l, t[35] = Yt, t[36] = Kt, t[37] = p, t[38] = qt, t[39] = S, t[40] = j, t[41] = a, t[42] = x, t[43] = it, t[44] = Qt, t[45] = wt, t[46] = et, t[47] = n, t[48] = dt, t[49] = At, t[50] = _, t[51] = F, t[52] = G, t[53] = v, t[54] = K, t[55] = tt, t[56] = m, t[57] = jt, t[58] = Zt, t[59] = pt, t[60] = z, t[61] = J, t[62] = L) : L = t[62];
508
- let Y;
509
- t[63] !== k || t[64] !== L ? (Y = /* @__PURE__ */ s.jsxs(Te, { ref: ot, children: [
510
- k,
511
- L
512
- ] }), t[63] = k, t[64] = L, t[65] = Y) : Y = t[65];
513
- let E;
514
- t[66] !== l?.footnote || t[67] !== l?.source || t[68] !== A || t[69] !== W || t[70] !== m?.footnote || t[71] !== m?.source || t[72] !== u ? (E = W || A ? /* @__PURE__ */ s.jsx(Se, { styles: {
515
- footnote: m?.footnote,
516
- source: m?.source
499
+ }, customLayers: v, naLabel: Nt, showAxisLabels: vt, lineNumberDisplayOptions: r, barNumberDisplayOptions: y }) : null, t[27] = ut, t[28] = k, t[29] = M, t[30] = y, t[31] = U, t[32] = q, t[33] = l, t[34] = ot, t[35] = v, t[36] = h, t[37] = yt, t[38] = V, t[39] = C, t[40] = a, t[41] = r, t[42] = Nt, t[43] = it, t[44] = $, t[45] = ht, t[46] = tt, t[47] = F, t[48] = G, t[49] = vt, t[50] = K, t[51] = et, t[52] = f, t[53] = xt, t[54] = mt, t[55] = dt, t[56] = z, t[57] = J, t[58] = H) : H = t[58];
500
+ let nt;
501
+ t[59] !== X || t[60] !== H ? (nt = /* @__PURE__ */ n.jsxs($e, { ref: A, children: [
502
+ X,
503
+ H
504
+ ] }), t[59] = X, t[60] = H, t[61] = nt) : nt = t[61];
505
+ let lt;
506
+ t[62] !== l?.footnote || t[63] !== l?.source || t[64] !== j || t[65] !== B || t[66] !== f?.footnote || t[67] !== f?.source || t[68] !== x ? (lt = B || j ? /* @__PURE__ */ n.jsx(ke, { styles: {
507
+ footnote: f?.footnote,
508
+ source: f?.source
517
509
  }, classNames: {
518
510
  footnote: l?.footnote,
519
511
  source: l?.source
520
- }, sources: W, footNote: A, width: u }) : null, t[66] = l?.footnote, t[67] = l?.source, t[68] = A, t[69] = W, t[70] = m?.footnote, t[71] = m?.source, t[72] = u, t[73] = E) : E = t[73];
521
- let Ct;
522
- return t[74] !== N || t[75] !== R || t[76] !== ht || t[77] !== f || t[78] !== Q || t[79] !== Z || t[80] !== ee || t[81] !== $ || t[82] !== Et || t[83] !== Xt || t[84] !== nt || t[85] !== C || t[86] !== Y || t[87] !== E || t[88] !== b || t[89] !== u ? (Ct = /* @__PURE__ */ s.jsxs(Ie, { className: Et, style: Xt, id: ht, ref: mt, "aria-label": N, backgroundColor: R, theme: b, language: Q, minHeight: Z, width: u, height: f, relativeHeight: $, padding: ee, children: [
512
+ }, sources: B, footNote: j, width: x }) : null, t[62] = l?.footnote, t[63] = l?.source, t[64] = j, t[65] = B, t[66] = f?.footnote, t[67] = f?.source, t[68] = x, t[69] = lt) : lt = t[69];
513
+ let At;
514
+ return t[70] !== D || t[71] !== R || t[72] !== gt || t[73] !== d || t[74] !== Q || t[75] !== _ || t[76] !== Gt || t[77] !== O || t[78] !== $t || t[79] !== st || t[80] !== L || t[81] !== N || t[82] !== nt || t[83] !== lt || t[84] !== w || t[85] !== x ? (At = /* @__PURE__ */ n.jsxs(De, { className: $t, style: st, id: gt, ref: Ft, "aria-label": D, backgroundColor: R, theme: w, language: Q, minHeight: _, width: x, height: d, relativeHeight: O, padding: Gt, children: [
515
+ L,
516
+ N,
523
517
  nt,
524
- C,
525
- Y,
526
- E
527
- ] }), t[74] = N, t[75] = R, t[76] = ht, t[77] = f, t[78] = Q, t[79] = Z, t[80] = ee, t[81] = $, t[82] = Et, t[83] = Xt, t[84] = nt, t[85] = C, t[86] = Y, t[87] = E, t[88] = b, t[89] = u, t[90] = Ct) : Ct = t[90], Ct;
518
+ lt
519
+ ] }), t[70] = D, t[71] = R, t[72] = gt, t[73] = d, t[74] = Q, t[75] = _, t[76] = Gt, t[77] = O, t[78] = $t, t[79] = st, t[80] = L, t[81] = N, t[82] = nt, t[83] = lt, t[84] = w, t[85] = x, t[86] = At) : At = t[86], At;
528
520
  }
529
- function mi(e) {
521
+ function ai(e) {
530
522
  return e !== void 0;
531
523
  }
532
- function xi(e) {
524
+ function ri(e) {
533
525
  return e !== void 0;
534
526
  }
535
- function fi(e) {
527
+ function ci(e) {
536
528
  return e.data;
537
529
  }
538
- function pi(e) {
530
+ function ui(e) {
539
531
  return e !== void 0;
540
532
  }
541
- function di(e) {
533
+ function mi(e) {
542
534
  return e.data;
543
535
  }
544
536
  export {
545
- Xi as ParetoChart
537
+ Si as ParetoChart
546
538
  };
547
539
  //# sourceMappingURL=ParetoChart.js.map