@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,510 +1,508 @@
1
- import { c as Ce, j as i, m as ue } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as ye, useState as St, useEffect as ve } from "react";
3
- import { g as $e, N as ke } from "./getSliderMarks-X-_goqH9.js";
4
- import { f as Ve, p as Ne } from "./parse-Dv4of-PN.js";
5
- import { i as be } from "./index-Bwrro8-q.js";
6
- import { n as we } from "./numberFormattingFunction-DqMf_v1m.js";
7
- import { T as Oe } from "./Tooltip-Bj-s__cI.js";
8
- import { X as Ae } from "./XTicksAndGridLines-gdbGX2rm.js";
9
- import { A as je } from "./Axis-CNZYWzH0.js";
10
- import { Y as De } from "./YAxesLabels-hWEUCTvs.js";
11
- import { R as Be } from "./ReferenceLine-D41VuUhE.js";
12
- import { D as Te } from "./DetailsModal-B2XBWR7w.js";
13
- import { b as Se } from "./band-DYty33LD.js";
14
- import { a as Le } from "./linear-DNXM5Pdl.js";
15
- import { m as Tt } from "./proxy-BsxtcZKa.js";
16
- import { u as Fe } from "./use-in-view-KOXq5Kmc.js";
17
- import { A as pe } from "./index-Cv_5q6Rb.js";
18
- import { GraphFooter as Ie } from "./GraphFooter.js";
19
- import { GraphHeader as Ge } from "./GraphHeader.js";
20
- import { ColorLegend as Re } from "./ColorLegend.js";
21
- import { Colors as Me } from "./Colors.js";
22
- import { E as Pe } from "./EmptyState-CaxXCkiN.js";
23
- import { P as Ee, e as Xe } from "./index-ApTBN0kp.js";
24
- import { c as ge } from "./checkIfNullOrUndefined-DmfiKkNw.js";
25
- import { c as He } from "./ensureCompleteData-CDIukSG6.js";
26
- import { a as Ye, G as We } from "./GraphContainer-B8ZqOzKI.js";
27
- function ze(a) {
28
- const t = Ce.c(142), {
1
+ import { c as ve, j as i, m as re } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as de, useState as It, useEffect as fe } from "react";
3
+ import { g as we, N as Ae } from "./getSliderMarks-X-_goqH9.js";
4
+ import { f as je, p as Be } from "./parse-Dv4of-PN.js";
5
+ import { i as ue } from "./index-Bwrro8-q.js";
6
+ import { n as xe } from "./numberFormattingFunction-BUUV_luR.js";
7
+ import { T as Le } from "./Tooltip-3EYDVa3w.js";
8
+ import { X as he } from "./XTicksAndGridLines-CkYwVshF.js";
9
+ import { A as pe } from "./Axis-CNZYWzH0.js";
10
+ import { Y as Me } from "./YAxesLabels-hWEUCTvs.js";
11
+ import { R as ge } from "./ReferenceLine-D41VuUhE.js";
12
+ import { D as Ce } from "./DetailsModal-GqEbGHY2.js";
13
+ import { b as $e } from "./band-DYty33LD.js";
14
+ import { a as ye } from "./linear-DNXM5Pdl.js";
15
+ import { m as Ft } from "./proxy-BsxtcZKa.js";
16
+ import { u as ke } from "./use-in-view-KOXq5Kmc.js";
17
+ import { A as ce } from "./index-Cv_5q6Rb.js";
18
+ import { GraphFooter as Ve } from "./GraphFooter.js";
19
+ import { GraphHeader as Ne } from "./GraphHeader.js";
20
+ import { ColorLegend as Oe } from "./ColorLegend.js";
21
+ import { Colors as be } from "./Colors.js";
22
+ import { E as De } from "./EmptyState-CaxXCkiN.js";
23
+ import { P as Te, e as Se } from "./index-ApTBN0kp.js";
24
+ import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
25
+ import { c as Fe } from "./ensureCompleteData-CDIukSG6.js";
26
+ import { a as Ie, G as Ge } from "./GraphContainer-B8ZqOzKI.js";
27
+ function Re(a) {
28
+ const t = ve.c(143), {
29
29
  data: l,
30
- width: j,
31
- height: v,
32
- barColors: u,
33
- centerGap: b,
34
- refValues: p,
35
- maxValue: rt,
36
- minValue: Bt,
37
- showValues: ct,
38
- axisTitles: mt,
39
- rightMargin: Kt,
40
- leftMargin: Qt,
41
- topMargin: H,
42
- bottomMargin: Zt,
43
- tooltip: Ft,
44
- onSeriesMouseOver: dt,
45
- barPadding: It,
46
- truncateBy: Lt,
47
- onSeriesMouseClick: k,
48
- showTicks: Mt,
49
- suffix: ft,
50
- prefix: ut,
51
- resetSelectionOnDoubleClick: Ct,
52
- detailsOnClick: D,
30
+ width: $,
31
+ height: A,
32
+ barColors: f,
33
+ centerGap: j,
34
+ refValues: h,
35
+ maxValue: mt,
36
+ minValue: jt,
37
+ showValues: dt,
38
+ axisTitles: ft,
39
+ rightMargin: Qt,
40
+ leftMargin: _t,
41
+ topMargin: J,
42
+ bottomMargin: te,
43
+ tooltip: Gt,
44
+ onSeriesMouseOver: ut,
45
+ barPadding: Rt,
46
+ truncateBy: Bt,
47
+ onSeriesMouseClick: D,
48
+ showTicks: Lt,
49
+ suffix: xt,
50
+ prefix: ht,
51
+ resetSelectionOnDoubleClick: Mt,
52
+ detailsOnClick: F,
53
53
  styles: n,
54
54
  classNames: s,
55
- noOfTicks: B,
55
+ noOfTicks: k,
56
56
  animate: d,
57
- precision: xt,
58
- customLayers: T,
59
- minValueLeftBar: S,
60
- minValueRightBar: F,
61
- naLabel: Gt,
62
- hideAxisLine: Rt,
63
- locale: ht
64
- } = a, _t = ye(null);
65
- let Pt;
66
- t[0] !== d.amount || t[1] !== d.once ? (Pt = {
57
+ precision: pt,
58
+ customLayers: I,
59
+ minValueLeftBar: G,
60
+ minValueRightBar: R,
61
+ naLabel: Pt,
62
+ hideAxisLine: Ct,
63
+ locale: gt,
64
+ padZeros: yt
65
+ } = a, ee = de(null);
66
+ let Et;
67
+ t[0] !== d.amount || t[1] !== d.once ? (Et = {
67
68
  once: d.once,
68
69
  amount: d.amount
69
- }, t[0] = d.amount, t[1] = d.once, t[2] = Pt) : Pt = t[2];
70
- const V = Fe(_t, Pt), [$t, pt] = St(void 0), [N, x] = St(void 0), [f, gt] = St(void 0), [Et, yt] = St(void 0);
71
- let vt;
72
- t[3] !== Zt || t[4] !== Qt || t[5] !== Kt || t[6] !== H ? (vt = {
73
- top: H,
74
- bottom: Zt,
75
- left: Qt,
76
- right: Kt
77
- }, t[3] = Zt, t[4] = Qt, t[5] = Kt, t[6] = H, t[7] = vt) : vt = t[7];
78
- const m = vt, I = j - m.left - m.right, L = v - m.top - m.bottom;
79
- let bt, G, M, Y, W, z, q, U, C, w, J, K, Q, Z;
80
- if (t[8] !== d || t[9] !== u[0] || t[10] !== u[1] || t[11] !== It || t[12] !== b || t[13] !== s?.graphObjectValues || t[14] !== s?.xAxis?.gridLines || t[15] !== s?.xAxis?.labels || t[16] !== s?.yAxis?.axis || t[17] !== s?.yAxis?.labels || t[18] !== T || t[19] !== l || t[20] !== D || t[21] !== L || t[22] !== I || t[23] !== v || t[24] !== Rt || t[25] !== V || t[26] !== ht || t[27] !== m.bottom || t[28] !== m.left || t[29] !== m.top || t[30] !== rt || t[31] !== Bt || t[32] !== S || t[33] !== F || t[34] !== N || t[35] !== Gt || t[36] !== B || t[37] !== k || t[38] !== dt || t[39] !== xt || t[40] !== ut || t[41] !== p || t[42] !== Ct || t[43] !== Mt || t[44] !== ct || t[45] !== n?.graphObjectValues || t[46] !== n?.xAxis?.gridLines || t[47] !== n?.xAxis?.labels || t[48] !== n?.yAxis?.axis || t[49] !== n?.yAxis?.labels || t[50] !== ft || t[51] !== H || t[52] !== Lt || t[53] !== j) {
81
- const wt = l.map(ii), O = Se().domain(wt.map(ei)).range([L, 0]).paddingInner(It), h = Le().domain([Bt, rt]).range([0, (I - b) / 2]).nice(), re = h.ticks(B), c = Le().domain([Bt, rt]).range([(I - b) / 2, 0]).nice(), ce = c.ticks(B);
82
- M = Tt.svg, Q = `${j}px`, Z = `${v}px`, Y = `0 0 ${j} ${v}`, W = "ltr", z = _t, C = `translate(${m.left},${m.top})`, t[68] !== T ? (w = T.filter(ti).map(_e), t[68] = T, t[69] = w) : w = t[69];
83
- const At = s?.yAxis?.axis;
84
- let r;
85
- t[70] !== At ? (r = {
86
- axis: At
87
- }, t[70] = At, t[71] = r) : r = t[71];
88
- const $ = n?.yAxis?.axis;
89
- let Ot;
90
- t[72] !== $ ? (Ot = {
91
- axis: $
92
- }, t[72] = $, t[73] = Ot) : Ot = t[73], J = /* @__PURE__ */ i.jsxs("g", { transform: "translate(0,0)", children: [
93
- Mt ? /* @__PURE__ */ i.jsx(Ae, { values: ce.filter(Ze), x: ce.filter(Qe).map((e) => c(e)), y1: 0 - H, y2: L + m.bottom, styles: {
70
+ }, t[0] = d.amount, t[1] = d.once, t[2] = Et) : Et = t[2];
71
+ const V = ke(ee, Et), [u, c] = It(void 0), [P, $t] = It(void 0), [bt, E] = It(void 0), [Xt, vt] = It(void 0);
72
+ let p;
73
+ t[3] !== te || t[4] !== _t || t[5] !== Qt || t[6] !== J ? (p = {
74
+ top: J,
75
+ bottom: te,
76
+ left: _t,
77
+ right: Qt
78
+ }, t[3] = te, t[4] = _t, t[5] = Qt, t[6] = J, t[7] = p) : p = t[7];
79
+ const m = p, B = $ - m.left - m.right, L = A - m.top - m.bottom;
80
+ let K, Q, _, tt, N, O, et, it, at, T, X, st, lt, ot;
81
+ if (t[8] !== d || t[9] !== f[0] || t[10] !== f[1] || t[11] !== Rt || t[12] !== j || t[13] !== s?.graphObjectValues || t[14] !== s?.xAxis?.gridLines || t[15] !== s?.xAxis?.labels || t[16] !== s?.yAxis?.axis || t[17] !== s?.yAxis?.labels || t[18] !== I || t[19] !== l || t[20] !== F || t[21] !== L || t[22] !== B || t[23] !== A || t[24] !== Ct || t[25] !== V || t[26] !== gt || t[27] !== m.bottom || t[28] !== m.left || t[29] !== m.top || t[30] !== mt || t[31] !== jt || t[32] !== G || t[33] !== R || t[34] !== P || t[35] !== Pt || t[36] !== k || t[37] !== D || t[38] !== ut || t[39] !== yt || t[40] !== pt || t[41] !== ht || t[42] !== h || t[43] !== Mt || t[44] !== Lt || t[45] !== dt || t[46] !== n?.graphObjectValues || t[47] !== n?.xAxis?.gridLines || t[48] !== n?.xAxis?.labels || t[49] !== n?.yAxis?.axis || t[50] !== n?.yAxis?.labels || t[51] !== xt || t[52] !== J || t[53] !== Bt || t[54] !== $) {
82
+ const M = l.map(Ue), C = $e().domain(M.map(qe)).range([L, 0]).paddingInner(Rt), g = ye().domain([jt, mt]).range([0, (B - j) / 2]).nice(), oe = g.ticks(k), x = ye().domain([jt, mt]).range([(B - j) / 2, 0]).nice(), qt = x.ticks(k);
83
+ _ = Ft.svg, lt = `${$}px`, ot = `${A}px`, tt = `0 0 ${$} ${A}`, N = "ltr", O = ee, at = `translate(${m.left},${m.top})`, t[69] !== I ? (T = I.filter(ze).map(Ze), t[69] = I, t[70] = T) : T = t[70];
84
+ const Dt = s?.yAxis?.axis;
85
+ let wt;
86
+ t[71] !== Dt ? (wt = {
87
+ axis: Dt
88
+ }, t[71] = Dt, t[72] = wt) : wt = t[72];
89
+ const Ut = n?.yAxis?.axis;
90
+ let At;
91
+ t[73] !== Ut ? (At = {
92
+ axis: Ut
93
+ }, t[73] = Ut, t[74] = At) : At = t[74], X = /* @__PURE__ */ i.jsxs("g", { transform: "translate(0,0)", children: [
94
+ Lt ? /* @__PURE__ */ i.jsx(he, { values: qt.filter(We), x: qt.filter(Ye).map((e) => x(e)), y1: 0 - J, y2: L + m.bottom, styles: {
94
95
  gridLines: n?.xAxis?.gridLines,
95
96
  labels: n?.xAxis?.labels
96
97
  }, classNames: {
97
98
  gridLines: s?.xAxis?.gridLines,
98
99
  labels: s?.xAxis?.labels
99
- }, suffix: ft, prefix: ut, labelType: "secondary", showGridLines: !0, leftLabel: !0, precision: xt, locale: ht }) : null,
100
- /* @__PURE__ */ i.jsxs(pe, { children: [
101
- wt.map((e, g) => /* @__PURE__ */ i.jsxs(Tt.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (A) => {
102
- pt(e), yt(A.clientY), gt(A.clientX), dt?.(e);
100
+ }, suffix: xt, prefix: ht, labelType: "secondary", showGridLines: !0, leftLabel: !0, precision: pt, padZeros: yt, locale: gt }) : null,
101
+ /* @__PURE__ */ i.jsxs(ce, { children: [
102
+ M.map((e, y) => /* @__PURE__ */ i.jsxs(Ft.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (b) => {
103
+ c(e), vt(b.clientY), E(b.clientX), ut?.(e);
103
104
  }, onClick: () => {
104
- (k || D) && (be(N, e) && Ct ? (x(void 0), k?.(void 0)) : (x(e), k?.(e)));
105
- }, onMouseMove: (A) => {
106
- pt(e), yt(A.clientY), gt(A.clientX);
105
+ (D || F) && (ue(P, e) && Mt ? ($t(void 0), D?.(void 0)) : ($t(e), D?.(e)));
106
+ }, onMouseMove: (b) => {
107
+ c(e), vt(b.clientY), E(b.clientX);
107
108
  }, onMouseLeave: () => {
108
- pt(void 0), gt(void 0), yt(void 0), dt?.(void 0);
109
+ c(void 0), E(void 0), vt(void 0), ut?.(void 0);
109
110
  }, children: [
110
- e.leftBar ? /* @__PURE__ */ i.jsx(Tt.rect, { y: O(`${g}`), style: {
111
- fill: u[0]
112
- }, height: O.bandwidth(), variants: {
111
+ e.leftBar ? /* @__PURE__ */ i.jsx(Ft.rect, { y: C(`${y}`), style: {
112
+ fill: f[0]
113
+ }, height: C.bandwidth(), variants: {
113
114
  initial: {
114
- x: c(0),
115
+ x: x(0),
115
116
  width: 0
116
117
  },
117
118
  whileInView: {
118
- x: e.leftBar < 0 ? c(0) : c(e.leftBar),
119
- width: e.leftBar < 0 ? c(e.leftBar) - c(0) : c(0) - c(e.leftBar),
119
+ x: e.leftBar < 0 ? x(0) : x(e.leftBar),
120
+ width: e.leftBar < 0 ? x(e.leftBar) - x(0) : x(0) - x(e.leftBar),
120
121
  transition: {
121
122
  duration: d.duration
122
123
  }
123
124
  }
124
125
  }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
125
- x: c(0),
126
+ x: x(0),
126
127
  width: 0,
127
128
  transition: {
128
129
  duration: d.duration
129
130
  }
130
131
  } }) : null,
131
- ct ? /* @__PURE__ */ i.jsx(Tt.text, { y: O(`${g}`) + O.bandwidth() / 2, style: {
132
+ dt ? /* @__PURE__ */ i.jsx(Ft.text, { y: C(`${y}`) + C.bandwidth() / 2, style: {
132
133
  textAnchor: e.leftBar && e.leftBar > 0 ? "end" : "start",
133
134
  ...n?.graphObjectValues || {}
134
- }, dx: e.leftBar && e.leftBar > 0 ? -5 : 5, dy: "0.33em", className: ue("graph-value text-sm", s?.graphObjectValues), exit: {
135
+ }, dx: e.leftBar && e.leftBar > 0 ? -5 : 5, dy: "0.33em", className: re("graph-value text-sm", s?.graphObjectValues), exit: {
135
136
  opacity: 0,
136
137
  transition: {
137
138
  duration: d.duration
138
139
  }
139
140
  }, variants: {
140
141
  initial: {
141
- x: c(0),
142
+ x: x(0),
142
143
  opacity: 0,
143
- fill: u[0]
144
+ fill: f[0]
144
145
  },
145
146
  whileInView: {
146
- x: e.leftBar ? c(e.leftBar) : c(S < 0 ? 0 : S),
147
+ x: e.leftBar ? x(e.leftBar) : x(G < 0 ? 0 : G),
147
148
  opacity: 1,
148
- fill: u[0],
149
+ fill: f[0],
149
150
  transition: {
150
151
  duration: d.duration
151
152
  }
152
153
  }
153
- }, initial: "initial", animate: V ? "whileInView" : "initial", children: we(e.leftBar, Gt, xt, ut, ft, ht) }) : null
154
+ }, initial: "initial", animate: V ? "whileInView" : "initial", children: xe(e.leftBar, Pt, pt, ht, xt, gt, yt) }) : null
154
155
  ] }, e.label)),
155
- /* @__PURE__ */ i.jsx(je, { hideAxisLine: Rt, y1: -2.5, y2: L + m.bottom, x1: c(S < 0 ? 0 : S), x2: c(S < 0 ? 0 : S), classNames: r, styles: Ot }),
156
- p ? /* @__PURE__ */ i.jsx(i.Fragment, { children: p.map((e, g) => /* @__PURE__ */ i.jsx(Be, { text: e.text, color: e.color, x: c(e.value), y1: 0 - m.top, y2: L + m.bottom, textSide: "left", classNames: e.classNames, styles: e.styles, animate: d, isInView: V }, g)) }) : null
156
+ /* @__PURE__ */ i.jsx(pe, { hideAxisLine: Ct, y1: -2.5, y2: L + m.bottom, x1: x(G < 0 ? 0 : G), x2: x(G < 0 ? 0 : G), classNames: wt, styles: At }),
157
+ h ? /* @__PURE__ */ i.jsx(i.Fragment, { children: h.map((e, y) => /* @__PURE__ */ i.jsx(ge, { text: e.text, color: e.color, x: x(e.value), y1: 0 - m.top, y2: L + m.bottom, textSide: "left", classNames: e.classNames, styles: e.styles, animate: d, isInView: V }, y)) }) : null
157
158
  ] })
158
159
  ] });
159
- const qt = s?.yAxis?.axis;
160
- let Ut;
161
- t[74] !== qt ? (Ut = {
162
- axis: qt
163
- }, t[74] = qt, t[75] = Ut) : Ut = t[75];
164
- const Dt = n?.yAxis?.axis;
165
- let jt;
166
- t[76] !== Dt ? (jt = {
167
- axis: Dt
168
- }, t[76] = Dt, t[77] = jt) : jt = t[77], K = /* @__PURE__ */ i.jsxs("g", { transform: `translate(${(I + b) / 2},0)`, children: [
169
- Mt ? /* @__PURE__ */ i.jsx(Ae, { values: re.filter(Ke), x: re.filter(Je).map((e) => h(e)), y1: 0 - H, y2: L + m.bottom, styles: {
160
+ const Tt = s?.yAxis?.axis;
161
+ let St;
162
+ t[75] !== Tt ? (St = {
163
+ axis: Tt
164
+ }, t[75] = Tt, t[76] = St) : St = t[76];
165
+ const Jt = n?.yAxis?.axis;
166
+ let U;
167
+ t[77] !== Jt ? (U = {
168
+ axis: Jt
169
+ }, t[77] = Jt, t[78] = U) : U = t[78], st = /* @__PURE__ */ i.jsxs("g", { transform: `translate(${(B + j) / 2},0)`, children: [
170
+ Lt ? /* @__PURE__ */ i.jsx(he, { values: oe.filter(He), x: oe.filter(Xe).map((e) => g(e)), y1: 0 - J, y2: L + m.bottom, styles: {
170
171
  gridLines: n?.xAxis?.gridLines,
171
172
  labels: n?.xAxis?.labels
172
173
  }, classNames: {
173
174
  gridLines: s?.xAxis?.gridLines,
174
175
  labels: s?.xAxis?.labels
175
- }, suffix: ft, prefix: ut, labelType: "secondary", showGridLines: !0, precision: xt, locale: ht }) : null,
176
- /* @__PURE__ */ i.jsxs(pe, { children: [
177
- wt.map((e, g) => /* @__PURE__ */ i.jsxs(Tt.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (A) => {
178
- pt(e), yt(A.clientY), gt(A.clientX), dt?.(e);
176
+ }, suffix: xt, prefix: ht, labelType: "secondary", showGridLines: !0, precision: pt, padZeros: yt, locale: gt }) : null,
177
+ /* @__PURE__ */ i.jsxs(ce, { children: [
178
+ M.map((e, y) => /* @__PURE__ */ i.jsxs(Ft.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (b) => {
179
+ c(e), vt(b.clientY), E(b.clientX), ut?.(e);
179
180
  }, onClick: () => {
180
- (k || D) && (be(N, e) && Ct ? (x(void 0), k?.(void 0)) : (x(e), k?.(e)));
181
- }, onMouseMove: (A) => {
182
- pt(e), yt(A.clientY), gt(A.clientX);
181
+ (D || F) && (ue(P, e) && Mt ? ($t(void 0), D?.(void 0)) : ($t(e), D?.(e)));
182
+ }, onMouseMove: (b) => {
183
+ c(e), vt(b.clientY), E(b.clientX);
183
184
  }, onMouseLeave: () => {
184
- pt(void 0), gt(void 0), yt(void 0), dt?.(void 0);
185
+ c(void 0), E(void 0), vt(void 0), ut?.(void 0);
185
186
  }, children: [
186
- e.rightBar ? /* @__PURE__ */ i.jsx(Tt.rect, { y: O(`${g}`), style: {
187
- fill: u[1]
188
- }, height: O.bandwidth(), exit: {
189
- x: h(0),
187
+ e.rightBar ? /* @__PURE__ */ i.jsx(Ft.rect, { y: C(`${y}`), style: {
188
+ fill: f[1]
189
+ }, height: C.bandwidth(), exit: {
190
+ x: g(0),
190
191
  width: 0,
191
192
  transition: {
192
193
  duration: d.duration
193
194
  }
194
195
  }, variants: {
195
196
  initial: {
196
- x: h(0),
197
+ x: g(0),
197
198
  width: 0
198
199
  },
199
200
  whileInView: {
200
- x: e.rightBar >= 0 ? h(0) : h(e.rightBar),
201
- width: e.rightBar >= 0 ? h(e.rightBar) - h(0) : h(0) - h(e.rightBar),
201
+ x: e.rightBar >= 0 ? g(0) : g(e.rightBar),
202
+ width: e.rightBar >= 0 ? g(e.rightBar) - g(0) : g(0) - g(e.rightBar),
202
203
  transition: {
203
204
  duration: d.duration
204
205
  }
205
206
  }
206
207
  }, initial: "initial", animate: V ? "whileInView" : "initial" }) : null,
207
- ct ? /* @__PURE__ */ i.jsx(Tt.text, { y: O(`${g}`) + O.bandwidth() / 2, style: {
208
+ dt ? /* @__PURE__ */ i.jsx(Ft.text, { y: C(`${y}`) + C.bandwidth() / 2, style: {
208
209
  textAnchor: e.rightBar && e.rightBar < 0 ? "end" : "start",
209
210
  ...n?.graphObjectValues || {}
210
- }, className: ue("graph-value text-sm", s?.graphObjectValues), dx: e.rightBar && e.rightBar < 0 ? -5 : 5, dy: "0.33em", exit: {
211
+ }, className: re("graph-value text-sm", s?.graphObjectValues), dx: e.rightBar && e.rightBar < 0 ? -5 : 5, dy: "0.33em", exit: {
211
212
  opacity: 0,
212
213
  transition: {
213
214
  duration: d.duration
214
215
  }
215
216
  }, variants: {
216
217
  initial: {
217
- x: h(0),
218
+ x: g(0),
218
219
  opacity: 0,
219
- fill: u[1]
220
+ fill: f[1]
220
221
  },
221
222
  whileInView: {
222
- x: e.rightBar ? h(e.rightBar) : h(F < 0 ? 0 : F),
223
+ x: e.rightBar ? g(e.rightBar) : g(R < 0 ? 0 : R),
223
224
  opacity: 1,
224
- fill: u[1],
225
+ fill: f[1],
225
226
  transition: {
226
227
  duration: d.duration
227
228
  }
228
229
  }
229
- }, initial: "initial", animate: V ? "whileInView" : "initial", children: we(e.rightBar, Gt, xt, ut, ft, ht) }) : null
230
- ] }, g)),
231
- /* @__PURE__ */ i.jsx(je, { hideAxisLine: Rt, y1: -2.5, y2: L + m.bottom, x1: h(F < 0 ? 0 : F), x2: h(F < 0 ? 0 : F), classNames: Ut, styles: jt }),
232
- p ? /* @__PURE__ */ i.jsx(i.Fragment, { children: p.map((e, g) => /* @__PURE__ */ i.jsx(Be, { text: e.text, color: e.color, x: h(e.value), y1: 0 - m.top, y2: L + m.bottom, textSide: "right", classNames: e.classNames, styles: e.styles, animate: d, isInView: V }, g)) }) : null
230
+ }, initial: "initial", animate: V ? "whileInView" : "initial", children: xe(e.rightBar, Pt, pt, ht, xt, gt, yt) }) : null
231
+ ] }, y)),
232
+ /* @__PURE__ */ i.jsx(pe, { hideAxisLine: Ct, y1: -2.5, y2: L + m.bottom, x1: g(R < 0 ? 0 : R), x2: g(R < 0 ? 0 : R), classNames: St, styles: U }),
233
+ h ? /* @__PURE__ */ i.jsx(i.Fragment, { children: h.map((e, y) => /* @__PURE__ */ i.jsx(ge, { text: e.text, color: e.color, x: g(e.value), y1: 0 - m.top, y2: L + m.bottom, textSide: "right", classNames: e.classNames, styles: e.styles, animate: d, isInView: V }, y)) }) : null
233
234
  ] })
234
- ] }), G = pe, bt = Tt.g, q = `translate(${I / 2},0)`, U = wt.map((e, g) => /* @__PURE__ */ i.jsx(De, { value: `${e.label}`.length < Lt ? `${e.label}` : `${`${e.label}`.substring(0, Lt)}...`, y: O(`${e.id}`), x: 0 - b / 2, width: b, height: O.bandwidth(), alignment: "center", style: n?.yAxis?.labels, className: s?.yAxis?.labels, animate: d, isInView: V }, g)), t[8] = d, t[9] = u[0], t[10] = u[1], t[11] = It, t[12] = b, t[13] = s?.graphObjectValues, t[14] = s?.xAxis?.gridLines, t[15] = s?.xAxis?.labels, t[16] = s?.yAxis?.axis, t[17] = s?.yAxis?.labels, t[18] = T, t[19] = l, t[20] = D, t[21] = L, t[22] = I, t[23] = v, t[24] = Rt, t[25] = V, t[26] = ht, t[27] = m.bottom, t[28] = m.left, t[29] = m.top, t[30] = rt, t[31] = Bt, t[32] = S, t[33] = F, t[34] = N, t[35] = Gt, t[36] = B, t[37] = k, t[38] = dt, t[39] = xt, t[40] = ut, t[41] = p, t[42] = Ct, t[43] = Mt, t[44] = ct, t[45] = n?.graphObjectValues, t[46] = n?.xAxis?.gridLines, t[47] = n?.xAxis?.labels, t[48] = n?.yAxis?.axis, t[49] = n?.yAxis?.labels, t[50] = ft, t[51] = H, t[52] = Lt, t[53] = j, t[54] = bt, t[55] = G, t[56] = M, t[57] = Y, t[58] = W, t[59] = z, t[60] = q, t[61] = U, t[62] = C, t[63] = w, t[64] = J, t[65] = K, t[66] = Q, t[67] = Z;
235
+ ] }), Q = ce, K = Ft.g, et = `translate(${B / 2},0)`, it = M.map((e, y) => /* @__PURE__ */ i.jsx(Me, { value: `${e.label}`.length < Bt ? `${e.label}` : `${`${e.label}`.substring(0, Bt)}...`, y: C(`${e.id}`), x: 0 - j / 2, width: j, height: C.bandwidth(), alignment: "center", style: n?.yAxis?.labels, className: s?.yAxis?.labels, animate: d, isInView: V }, y)), t[8] = d, t[9] = f[0], t[10] = f[1], t[11] = Rt, t[12] = j, t[13] = s?.graphObjectValues, t[14] = s?.xAxis?.gridLines, t[15] = s?.xAxis?.labels, t[16] = s?.yAxis?.axis, t[17] = s?.yAxis?.labels, t[18] = I, t[19] = l, t[20] = F, t[21] = L, t[22] = B, t[23] = A, t[24] = Ct, t[25] = V, t[26] = gt, t[27] = m.bottom, t[28] = m.left, t[29] = m.top, t[30] = mt, t[31] = jt, t[32] = G, t[33] = R, t[34] = P, t[35] = Pt, t[36] = k, t[37] = D, t[38] = ut, t[39] = yt, t[40] = pt, t[41] = ht, t[42] = h, t[43] = Mt, t[44] = Lt, t[45] = dt, t[46] = n?.graphObjectValues, t[47] = n?.xAxis?.gridLines, t[48] = n?.xAxis?.labels, t[49] = n?.yAxis?.axis, t[50] = n?.yAxis?.labels, t[51] = xt, t[52] = J, t[53] = Bt, t[54] = $, t[55] = K, t[56] = Q, t[57] = _, t[58] = tt, t[59] = N, t[60] = O, t[61] = et, t[62] = it, t[63] = at, t[64] = T, t[65] = X, t[66] = st, t[67] = lt, t[68] = ot;
235
236
  } else
236
- bt = t[54], G = t[55], M = t[56], Y = t[57], W = t[58], z = t[59], q = t[60], U = t[61], C = t[62], w = t[63], J = t[64], K = t[65], Q = t[66], Z = t[67];
237
- let R;
238
- t[78] !== bt || t[79] !== q || t[80] !== U ? (R = /* @__PURE__ */ i.jsx(bt, { transform: q, children: U }), t[78] = bt, t[79] = q, t[80] = U, t[81] = R) : R = t[81];
239
- let _;
240
- t[82] !== G || t[83] !== R ? (_ = /* @__PURE__ */ i.jsx(G, { children: R }), t[82] = G, t[83] = R, t[84] = _) : _ = t[84];
241
- const Xt = `translate(0,${L})`, Ht = n?.yAxis?.title;
242
- let tt;
243
- t[85] !== u[0] || t[86] !== Ht ? (tt = {
244
- fill: u[0],
237
+ K = t[55], Q = t[56], _ = t[57], tt = t[58], N = t[59], O = t[60], et = t[61], it = t[62], at = t[63], T = t[64], X = t[65], st = t[66], lt = t[67], ot = t[68];
238
+ let H;
239
+ t[79] !== K || t[80] !== et || t[81] !== it ? (H = /* @__PURE__ */ i.jsx(K, { transform: et, children: it }), t[79] = K, t[80] = et, t[81] = it, t[82] = H) : H = t[82];
240
+ let Y;
241
+ t[83] !== Q || t[84] !== H ? (Y = /* @__PURE__ */ i.jsx(Q, { children: H }), t[83] = Q, t[84] = H, t[85] = Y) : Y = t[85];
242
+ const Ht = `translate(0,${L})`, Yt = n?.yAxis?.title;
243
+ let nt;
244
+ t[86] !== f[0] || t[87] !== Yt ? (nt = {
245
+ fill: f[0],
245
246
  textAnchor: "end",
246
- ...Ht
247
- }, t[85] = u[0], t[86] = Ht, t[87] = tt) : tt = t[87];
248
- const Yt = s?.yAxis?.title;
249
- let P;
250
- t[88] !== Yt ? (P = ue("text-base", Yt), t[88] = Yt, t[89] = P) : P = t[89];
251
- const kt = I / 2 - b / 2;
252
- let et;
253
- t[90] !== mt[0] || t[91] !== tt || t[92] !== P || t[93] !== kt ? (et = /* @__PURE__ */ i.jsx("text", { style: tt, className: P, x: kt, y: 0, dx: -5, dy: 20, children: mt[0] }), t[90] = mt[0], t[91] = tt, t[92] = P, t[93] = kt, t[94] = et) : et = t[94];
254
- const Wt = n?.yAxis?.title;
255
- let it;
256
- t[95] !== u[1] || t[96] !== Wt ? (it = {
257
- fill: u[1],
247
+ ...Yt
248
+ }, t[86] = f[0], t[87] = Yt, t[88] = nt) : nt = t[88];
249
+ const Wt = s?.yAxis?.title;
250
+ let rt;
251
+ t[89] !== Wt ? (rt = re("text-base", Wt), t[89] = Wt, t[90] = rt) : rt = t[90];
252
+ const kt = B / 2 - j / 2;
253
+ let W;
254
+ t[91] !== ft[0] || t[92] !== nt || t[93] !== rt || t[94] !== kt ? (W = /* @__PURE__ */ i.jsx("text", { style: nt, className: rt, x: kt, y: 0, dx: -5, dy: 20, children: ft[0] }), t[91] = ft[0], t[92] = nt, t[93] = rt, t[94] = kt, t[95] = W) : W = t[95];
255
+ const Zt = n?.yAxis?.title;
256
+ let Z;
257
+ t[96] !== f[1] || t[97] !== Zt ? (Z = {
258
+ fill: f[1],
258
259
  textAnchor: "start",
259
- ...Wt
260
- }, t[95] = u[1], t[96] = Wt, t[97] = it) : it = t[97];
261
- const zt = s?.yAxis?.title;
262
- let at;
263
- t[98] !== zt ? (at = ue("text-base", zt), t[98] = zt, t[99] = at) : at = t[99];
264
- const Vt = I / 2 + b / 2;
265
- let st;
266
- t[100] !== mt[1] || t[101] !== it || t[102] !== at || t[103] !== Vt ? (st = /* @__PURE__ */ i.jsx("text", { style: it, className: at, x: Vt, y: 0, dx: 5, dy: 20, children: mt[1] }), t[100] = mt[1], t[101] = it, t[102] = at, t[103] = Vt, t[104] = st) : st = t[104];
267
- let E;
268
- t[105] !== Xt || t[106] !== et || t[107] !== st ? (E = /* @__PURE__ */ i.jsxs("g", { transform: Xt, children: [
269
- et,
270
- st
271
- ] }), t[105] = Xt, t[106] = et, t[107] = st, t[108] = E) : E = t[108];
272
- let ot;
273
- t[109] !== T ? (ot = T.filter(Ue).map(qe), t[109] = T, t[110] = ot) : ot = t[110];
274
- let X;
275
- t[111] !== _ || t[112] !== E || t[113] !== ot || t[114] !== C || t[115] !== w || t[116] !== J || t[117] !== K ? (X = /* @__PURE__ */ i.jsxs("g", { transform: C, children: [
276
- w,
277
- J,
278
- K,
279
- _,
280
- E,
281
- ot
282
- ] }), t[111] = _, t[112] = E, t[113] = ot, t[114] = C, t[115] = w, t[116] = J, t[117] = K, t[118] = X) : X = t[118];
283
- let o;
284
- t[119] !== M || t[120] !== Y || t[121] !== W || t[122] !== z || t[123] !== X || t[124] !== Q || t[125] !== Z ? (o = /* @__PURE__ */ i.jsx(M, { width: Q, height: Z, viewBox: Y, direction: W, ref: z, children: X }), t[119] = M, t[120] = Y, t[121] = W, t[122] = z, t[123] = X, t[124] = Q, t[125] = Z, t[126] = o) : o = t[126];
285
- let lt;
286
- t[127] !== s?.tooltip || t[128] !== f || t[129] !== Et || t[130] !== $t || t[131] !== n?.tooltip || t[132] !== Ft ? (lt = $t && Ft && f && Et ? /* @__PURE__ */ i.jsx(Oe, { data: $t, body: Ft, xPos: f, yPos: Et, backgroundStyle: n?.tooltip, className: s?.tooltip }) : null, t[127] = s?.tooltip, t[128] = f, t[129] = Et, t[130] = $t, t[131] = n?.tooltip, t[132] = Ft, t[133] = lt) : lt = t[133];
287
- let nt;
288
- t[134] !== s?.modal || t[135] !== D || t[136] !== N ? (nt = D && N !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: D, data: N, setData: x, className: s?.modal }) : null, t[134] = s?.modal, t[135] = D, t[136] = N, t[137] = nt) : nt = t[137];
260
+ ...Zt
261
+ }, t[96] = f[1], t[97] = Zt, t[98] = Z) : Z = t[98];
262
+ const o = s?.yAxis?.title;
263
+ let ct;
264
+ t[99] !== o ? (ct = re("text-base", o), t[99] = o, t[100] = ct) : ct = t[100];
265
+ const zt = B / 2 + j / 2;
266
+ let z;
267
+ t[101] !== ft[1] || t[102] !== Z || t[103] !== ct || t[104] !== zt ? (z = /* @__PURE__ */ i.jsx("text", { style: Z, className: ct, x: zt, y: 0, dx: 5, dy: 20, children: ft[1] }), t[101] = ft[1], t[102] = Z, t[103] = ct, t[104] = zt, t[105] = z) : z = t[105];
268
+ let Vt;
269
+ t[106] !== Ht || t[107] !== W || t[108] !== z ? (Vt = /* @__PURE__ */ i.jsxs("g", { transform: Ht, children: [
270
+ W,
271
+ z
272
+ ] }), t[106] = Ht, t[107] = W, t[108] = z, t[109] = Vt) : Vt = t[109];
273
+ let q;
274
+ t[110] !== I ? (q = I.filter(Ee).map(Pe), t[110] = I, t[111] = q) : q = t[111];
289
275
  let Nt;
290
- return t[138] !== o || t[139] !== lt || t[140] !== nt ? (Nt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
291
- o,
292
- lt,
293
- nt
294
- ] }), t[138] = o, t[139] = lt, t[140] = nt, t[141] = Nt) : Nt = t[141], Nt;
276
+ t[112] !== Y || t[113] !== Vt || t[114] !== q || t[115] !== at || t[116] !== T || t[117] !== X || t[118] !== st ? (Nt = /* @__PURE__ */ i.jsxs("g", { transform: at, children: [
277
+ T,
278
+ X,
279
+ st,
280
+ Y,
281
+ Vt,
282
+ q
283
+ ] }), t[112] = Y, t[113] = Vt, t[114] = q, t[115] = at, t[116] = T, t[117] = X, t[118] = st, t[119] = Nt) : Nt = t[119];
284
+ let w;
285
+ t[120] !== _ || t[121] !== tt || t[122] !== N || t[123] !== O || t[124] !== Nt || t[125] !== lt || t[126] !== ot ? (w = /* @__PURE__ */ i.jsx(_, { width: lt, height: ot, viewBox: tt, direction: N, ref: O, children: Nt }), t[120] = _, t[121] = tt, t[122] = N, t[123] = O, t[124] = Nt, t[125] = lt, t[126] = ot, t[127] = w) : w = t[127];
286
+ let Ot;
287
+ t[128] !== s?.tooltip || t[129] !== bt || t[130] !== Xt || t[131] !== u || t[132] !== n?.tooltip || t[133] !== Gt ? (Ot = u && Gt && bt && Xt ? /* @__PURE__ */ i.jsx(Le, { data: u, body: Gt, xPos: bt, yPos: Xt, backgroundStyle: n?.tooltip, className: s?.tooltip }) : null, t[128] = s?.tooltip, t[129] = bt, t[130] = Xt, t[131] = u, t[132] = n?.tooltip, t[133] = Gt, t[134] = Ot) : Ot = t[134];
288
+ let S;
289
+ t[135] !== s?.modal || t[136] !== F || t[137] !== P ? (S = F && P !== void 0 ? /* @__PURE__ */ i.jsx(Ce, { body: F, data: P, setData: $t, className: s?.modal }) : null, t[135] = s?.modal, t[136] = F, t[137] = P, t[138] = S) : S = t[138];
290
+ let r;
291
+ return t[139] !== w || t[140] !== Ot || t[141] !== S ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
292
+ w,
293
+ Ot,
294
+ S
295
+ ] }), t[139] = w, t[140] = Ot, t[141] = S, t[142] = r) : r = t[142], r;
295
296
  }
296
- function qe(a) {
297
+ function Pe(a) {
297
298
  return a.layer;
298
299
  }
299
- function Ue(a) {
300
+ function Ee(a) {
300
301
  return a.position === "after";
301
302
  }
302
- function Je(a) {
303
+ function Xe(a) {
303
304
  return a !== 0;
304
305
  }
305
- function Ke(a) {
306
+ function He(a) {
306
307
  return a !== 0;
307
308
  }
308
- function Qe(a) {
309
+ function Ye(a) {
309
310
  return a !== 0;
310
311
  }
311
- function Ze(a) {
312
+ function We(a) {
312
313
  return a !== 0;
313
314
  }
314
- function _e(a) {
315
+ function Ze(a) {
315
316
  return a.layer;
316
317
  }
317
- function ti(a) {
318
+ function ze(a) {
318
319
  return a.position === "before";
319
320
  }
320
- function ei(a) {
321
+ function qe(a) {
321
322
  return `${a.id}`;
322
323
  }
323
- function ii(a, t) {
324
+ function Ue(a, t) {
324
325
  return {
325
326
  ...a,
326
327
  id: `${t}`
327
328
  };
328
329
  }
329
- function ne(a, t, l, j) {
330
- const v = a.map((p) => p[t]).filter((p) => !ge(p)), u = ge(l) ? Math.min(...v) >= 0 ? 0 : Math.min(...v) : l, b = ge(j) ? Math.max(...v) < 0 ? 0 : Math.max(...v) : j;
330
+ function le(a, t, l, $) {
331
+ const A = a.map((h) => h[t]).filter((h) => !me(h)), f = me(l) ? Math.min(...A) >= 0 ? 0 : Math.min(...A) : l, j = me($) ? Math.max(...A) < 0 ? 0 : Math.max(...A) : $;
331
332
  return {
332
- min: u,
333
- max: b
333
+ min: f,
334
+ max: j
334
335
  };
335
336
  }
336
- function Fi(a) {
337
- const t = Ce.c(120), {
337
+ function ki(a) {
338
+ const t = ve.c(121), {
338
339
  data: l,
339
- graphTitle: j,
340
- sources: v,
341
- graphDescription: u,
342
- height: b,
343
- width: p,
344
- footNote: rt,
345
- padding: Bt,
346
- barColors: ct,
347
- backgroundColor: mt,
348
- leftMargin: Kt,
349
- rightMargin: Qt,
350
- topMargin: H,
351
- bottomMargin: Zt,
352
- rightBarTitle: Ft,
353
- leftBarTitle: dt,
354
- tooltip: It,
355
- relativeHeight: Lt,
356
- onSeriesMouseOver: k,
357
- graphID: Mt,
358
- barPadding: ft,
359
- truncateBy: ut,
360
- onSeriesMouseClick: Ct,
361
- centerGap: D,
340
+ graphTitle: $,
341
+ sources: A,
342
+ graphDescription: f,
343
+ height: j,
344
+ width: h,
345
+ footNote: mt,
346
+ padding: jt,
347
+ barColors: dt,
348
+ backgroundColor: ft,
349
+ leftMargin: Qt,
350
+ rightMargin: _t,
351
+ topMargin: J,
352
+ bottomMargin: te,
353
+ rightBarTitle: Gt,
354
+ leftBarTitle: ut,
355
+ tooltip: Rt,
356
+ relativeHeight: Bt,
357
+ onSeriesMouseOver: D,
358
+ graphID: Lt,
359
+ barPadding: xt,
360
+ truncateBy: ht,
361
+ onSeriesMouseClick: Mt,
362
+ centerGap: F,
362
363
  showValues: n,
363
364
  maxValue: s,
364
- minValue: B,
365
+ minValue: k,
365
366
  refValues: d,
366
- suffix: xt,
367
- prefix: T,
368
- showTicks: S,
369
- showColorScale: F,
370
- graphDownload: Gt,
371
- dataDownload: Rt,
372
- language: ht,
373
- colorLegendTitle: _t,
374
- minHeight: Pt,
375
- theme: V,
376
- ariaLabel: $t,
377
- resetSelectionOnDoubleClick: pt,
378
- detailsOnClick: N,
379
- styles: x,
380
- classNames: f,
381
- noOfTicks: gt,
382
- animate: Et,
383
- precision: yt,
384
- customLayers: vt,
385
- timeline: m,
386
- naLabel: I,
387
- hideAxisLine: L,
388
- locale: bt
367
+ showTicks: pt,
368
+ showColorScale: I,
369
+ graphDownload: G,
370
+ dataDownload: R,
371
+ language: Pt,
372
+ colorLegendTitle: Ct,
373
+ minHeight: gt,
374
+ theme: yt,
375
+ ariaLabel: ee,
376
+ resetSelectionOnDoubleClick: Et,
377
+ detailsOnClick: V,
378
+ styles: u,
379
+ classNames: c,
380
+ noOfTicks: P,
381
+ animate: $t,
382
+ customLayers: bt,
383
+ timeline: E,
384
+ naLabel: Xt,
385
+ hideAxisLine: vt,
386
+ numberDisplayOptions: p
389
387
  } = a;
390
- let G;
391
- t[0] !== ct ? (G = ct === void 0 ? [Me.light.categoricalColors.colors[0], Me.light.categoricalColors.colors[1]] : ct, t[0] = ct, t[1] = G) : G = t[1];
392
- const M = G, Y = mt === void 0 ? !1 : mt, W = Kt === void 0 ? 20 : Kt, z = Qt === void 0 ? 20 : Qt, q = H === void 0 ? 25 : H, U = Zt === void 0 ? 30 : Zt, C = Ft === void 0 ? "Right bar graph" : Ft, w = dt === void 0 ? "Left bar graph" : dt, J = ft === void 0 ? 0.25 : ft, K = ut === void 0 ? 999 : ut, Q = D === void 0 ? 100 : D, Z = n === void 0 ? !0 : n;
393
- let R;
394
- t[2] !== d ? (R = d === void 0 ? [] : d, t[2] = d, t[3] = R) : R = t[3];
395
- const _ = R, Xt = xt === void 0 ? "" : xt, Ht = T === void 0 ? "" : T, tt = S === void 0 ? !0 : S, Yt = F === void 0 ? !1 : F, P = Gt === void 0 ? !1 : Gt, kt = Rt === void 0 ? !1 : Rt, et = ht === void 0 ? "en" : ht, Wt = Pt === void 0 ? 0 : Pt, it = V === void 0 ? "light" : V, zt = pt === void 0 ? !0 : pt, at = gt === void 0 ? 5 : gt, Vt = Et === void 0 ? !1 : Et, st = yt === void 0 ? 2 : yt;
396
- let E;
397
- t[4] !== vt ? (E = vt === void 0 ? [] : vt, t[4] = vt, t[5] = E) : E = t[5];
398
- const ot = E;
388
+ let m;
389
+ t[0] !== dt ? (m = dt === void 0 ? [be.light.categoricalColors.colors[0], be.light.categoricalColors.colors[1]] : dt, t[0] = dt, t[1] = m) : m = t[1];
390
+ const B = m, L = ft === void 0 ? !1 : ft, K = Qt === void 0 ? 20 : Qt, Q = _t === void 0 ? 20 : _t, _ = J === void 0 ? 25 : J, tt = te === void 0 ? 30 : te, N = Gt === void 0 ? "Right bar graph" : Gt, O = ut === void 0 ? "Left bar graph" : ut, et = xt === void 0 ? 0.25 : xt, it = ht === void 0 ? 999 : ht, at = F === void 0 ? 100 : F, T = n === void 0 ? !0 : n;
399
391
  let X;
400
- t[6] !== m ? (X = m === void 0 ? {
392
+ t[2] !== d ? (X = d === void 0 ? [] : d, t[2] = d, t[3] = X) : X = t[3];
393
+ const st = X, lt = pt === void 0 ? !0 : pt, ot = I === void 0 ? !1 : I, H = G === void 0 ? !1 : G, Y = R === void 0 ? !1 : R, Ht = Pt === void 0 ? "en" : Pt, Yt = gt === void 0 ? 0 : gt, nt = yt === void 0 ? "light" : yt, Wt = Et === void 0 ? !0 : Et, rt = P === void 0 ? 5 : P, kt = $t === void 0 ? !1 : $t;
394
+ let W;
395
+ t[4] !== bt ? (W = bt === void 0 ? [] : bt, t[4] = bt, t[5] = W) : W = t[5];
396
+ const Zt = W;
397
+ let Z;
398
+ t[6] !== E ? (Z = E === void 0 ? {
401
399
  enabled: !1,
402
400
  autoplay: !1,
403
401
  showOnlyActiveDate: !0
404
- } : m, t[6] = m, t[7] = X) : X = t[7];
405
- const o = X, lt = I === void 0 ? "NA" : I, nt = L === void 0 ? !1 : L, Nt = bt === void 0 ? "en" : bt, [wt, O] = St(0), [h, re] = St(0), [c, ce] = St(o.autoplay);
406
- let At;
402
+ } : E, t[6] = E, t[7] = Z) : Z = t[7];
403
+ const o = Z, ct = Xt === void 0 ? "NA" : Xt, zt = vt === void 0 ? !1 : vt, [z, Vt] = It(0), [q, Nt] = It(0), [w, Ot] = It(o.autoplay);
404
+ let S;
407
405
  if (t[8] !== l || t[9] !== o.dateFormat) {
408
- let y;
409
- t[11] !== o.dateFormat ? (y = (Jt) => Ne(`${Jt.date}`, o.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[11] = o.dateFormat, t[12] = y) : y = t[12], At = [...new Set(l.filter(ci).map(y))], At.sort(ri), t[8] = l, t[9] = o.dateFormat, t[10] = At;
406
+ let v;
407
+ t[11] !== o.dateFormat ? (v = (Kt) => Be(`${Kt.date}`, o.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[11] = o.dateFormat, t[12] = v) : v = t[12], S = [...new Set(l.filter(ii).map(v))], S.sort(ei), t[8] = l, t[9] = o.dateFormat, t[10] = S;
410
408
  } else
411
- At = t[10];
412
- const r = At, [$, Ot] = St(o.autoplay ? 0 : r.length - 1), qt = ye(null), Ut = ye(null);
413
- let Dt, jt;
414
- t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Dt = () => {
415
- const y = new ResizeObserver((Jt) => {
416
- O(Jt[0].target.clientWidth || 620), re(Jt[0].target.clientHeight || 480);
409
+ S = t[10];
410
+ const r = S, [M, C] = It(o.autoplay ? 0 : r.length - 1), g = de(null), oe = de(null);
411
+ let x, qt;
412
+ t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
413
+ const v = new ResizeObserver((Kt) => {
414
+ Vt(Kt[0].target.clientWidth || 620), Nt(Kt[0].target.clientHeight || 480);
417
415
  });
418
- return qt.current && y.observe(qt.current), () => y.disconnect();
419
- }, jt = [], t[13] = Dt, t[14] = jt) : (Dt = t[13], jt = t[14]), ve(Dt, jt);
420
- let e, g;
421
- t[15] !== c || t[16] !== o.speed || t[17] !== r ? (e = () => {
422
- const y = setInterval(() => {
423
- Ot((Jt) => Jt < r.length - 1 ? Jt + 1 : 0);
416
+ return g.current && v.observe(g.current), () => v.disconnect();
417
+ }, qt = [], t[13] = x, t[14] = qt) : (x = t[13], qt = t[14]), fe(x, qt);
418
+ let Dt, wt;
419
+ t[15] !== w || t[16] !== o.speed || t[17] !== r ? (Dt = () => {
420
+ const v = setInterval(() => {
421
+ C((Kt) => Kt < r.length - 1 ? Kt + 1 : 0);
424
422
  }, (o.speed || 2) * 1e3);
425
- return c || clearInterval(y), () => clearInterval(y);
426
- }, g = [r, c, o.speed], t[15] = c, t[16] = o.speed, t[17] = r, t[18] = e, t[19] = g) : (e = t[18], g = t[19]), ve(e, g);
427
- const A = o.dateFormat || "yyyy";
428
- let me;
429
- t[20] !== $ || t[21] !== A || t[22] !== o.showOnlyActiveDate || t[23] !== r ? (me = $e(r, $, o.showOnlyActiveDate, A), t[20] = $, t[21] = A, t[22] = o.showOnlyActiveDate, t[23] = r, t[24] = me) : me = t[24];
430
- const de = me, xe = f?.graphContainer, he = x?.graphContainer;
431
- let te;
432
- t[25] !== f?.description || t[26] !== f?.title || t[27] !== l || t[28] !== kt || t[29] !== u || t[30] !== P || t[31] !== j || t[32] !== x?.description || t[33] !== x?.title || t[34] !== p ? (te = j || u || P || kt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
433
- title: x?.title,
434
- description: x?.description
423
+ return w || clearInterval(v), () => clearInterval(v);
424
+ }, wt = [r, w, o.speed], t[15] = w, t[16] = o.speed, t[17] = r, t[18] = Dt, t[19] = wt) : (Dt = t[18], wt = t[19]), fe(Dt, wt);
425
+ const Ut = o.dateFormat || "yyyy";
426
+ let At;
427
+ t[20] !== M || t[21] !== Ut || t[22] !== o.showOnlyActiveDate || t[23] !== r ? (At = we(r, M, o.showOnlyActiveDate, Ut), t[20] = M, t[21] = Ut, t[22] = o.showOnlyActiveDate, t[23] = r, t[24] = At) : At = t[24];
428
+ const Tt = At, St = c?.graphContainer, Jt = u?.graphContainer;
429
+ let U;
430
+ t[25] !== c?.description || t[26] !== c?.title || t[27] !== l || t[28] !== Y || t[29] !== f || t[30] !== H || t[31] !== $ || t[32] !== u?.description || t[33] !== u?.title || t[34] !== h ? (U = $ || f || H || Y ? /* @__PURE__ */ i.jsx(Ne, { styles: {
431
+ title: u?.title,
432
+ description: u?.description
435
433
  }, classNames: {
436
- title: f?.title,
437
- description: f?.description
438
- }, graphTitle: j, graphDescription: u, width: p, graphDownload: P ? Ut : void 0, dataDownload: kt ? l.map(ni).filter(li).length > 0 ? l.map(oi).filter(si) : l.filter(ai) : null }) : null, t[25] = f?.description, t[26] = f?.title, t[27] = l, t[28] = kt, t[29] = u, t[30] = P, t[31] = j, t[32] = x?.description, t[33] = x?.title, t[34] = p, t[35] = te) : te = t[35];
439
- let ee;
440
- t[36] !== $ || t[37] !== de || t[38] !== c || t[39] !== o.enabled || t[40] !== r ? (ee = o.enabled && r.length > 0 && de ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
434
+ title: c?.title,
435
+ description: c?.description
436
+ }, graphTitle: $, graphDescription: f, width: h, graphDownload: H ? oe : void 0, dataDownload: Y ? l.map(ti).filter(_e).length > 0 ? l.map(Qe).filter(Ke) : l.filter(Je) : null }) : null, t[25] = c?.description, t[26] = c?.title, t[27] = l, t[28] = Y, t[29] = f, t[30] = H, t[31] = $, t[32] = u?.description, t[33] = u?.title, t[34] = h, t[35] = U) : U = t[35];
437
+ let e;
438
+ t[36] !== M || t[37] !== Tt || t[38] !== w || t[39] !== o.enabled || t[40] !== r ? (e = o.enabled && r.length > 0 && Tt ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
441
439
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
442
- ce(!c);
443
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": c ? "Click to pause animation" : "Click to play animation", children: c ? /* @__PURE__ */ i.jsx(Ee, {}) : /* @__PURE__ */ i.jsx(Xe, {}) }),
444
- /* @__PURE__ */ i.jsx(ke, { min: r[0], max: r[r.length - 1], marks: de, step: null, defaultValue: r[r.length - 1], value: r[$], onChangeComplete: (y) => {
445
- Ot(r.indexOf(y));
446
- }, onChange: (y) => {
447
- Ot(r.indexOf(y));
440
+ Ot(!w);
441
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": w ? "Click to pause animation" : "Click to play animation", children: w ? /* @__PURE__ */ i.jsx(Te, {}) : /* @__PURE__ */ i.jsx(Se, {}) }),
442
+ /* @__PURE__ */ i.jsx(Ae, { min: r[0], max: r[r.length - 1], marks: Tt, step: null, defaultValue: r[r.length - 1], value: r[M], onChangeComplete: (v) => {
443
+ C(r.indexOf(v));
444
+ }, onChange: (v) => {
445
+ C(r.indexOf(v));
448
446
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
449
- ] }) : null, t[36] = $, t[37] = de, t[38] = c, t[39] = o.enabled, t[40] = r, t[41] = ee) : ee = t[41];
447
+ ] }) : null, t[36] = M, t[37] = Tt, t[38] = w, t[39] = o.enabled, t[40] = r, t[41] = e) : e = t[41];
448
+ let y;
449
+ t[42] !== B || t[43] !== c?.colorLegend || t[44] !== Ct || t[45] !== l.length || t[46] !== O || t[47] !== N || t[48] !== ot ? (y = ot && l.length > 0 ? /* @__PURE__ */ i.jsx(Oe, { colorLegendTitle: Ct, colorDomain: [O, N], colors: B, showNAColor: !1, className: c?.colorLegend }) : null, t[42] = B, t[43] = c?.colorLegend, t[44] = Ct, t[45] = l.length, t[46] = O, t[47] = N, t[48] = ot, t[49] = y) : y = t[49];
450
+ let b;
451
+ t[50] !== l.length ? (b = l.length === 0 && /* @__PURE__ */ i.jsx(De, {}), t[50] = l.length, t[51] = b) : b = t[51];
450
452
  let ie;
451
- t[42] !== M || t[43] !== f?.colorLegend || t[44] !== _t || t[45] !== l.length || t[46] !== w || t[47] !== C || t[48] !== Yt ? (ie = Yt && l.length > 0 ? /* @__PURE__ */ i.jsx(Re, { colorLegendTitle: _t, colorDomain: [w, C], colors: M, showNAColor: !1, className: f?.colorLegend }) : null, t[42] = M, t[43] = f?.colorLegend, t[44] = _t, t[45] = l.length, t[46] = w, t[47] = C, t[48] = Yt, t[49] = ie) : ie = t[49];
452
- let ae;
453
- t[50] !== l.length ? (ae = l.length === 0 && /* @__PURE__ */ i.jsx(Pe, {}), t[50] = l.length, t[51] = ae) : ae = t[51];
454
- let se;
455
- t[52] !== Vt || t[53] !== M || t[54] !== J || t[55] !== U || t[56] !== Q || t[57] !== f || t[58] !== ot || t[59] !== l || t[60] !== N || t[61] !== nt || t[62] !== $ || t[63] !== w || t[64] !== W || t[65] !== Nt || t[66] !== s || t[67] !== B || t[68] !== lt || t[69] !== at || t[70] !== Ct || t[71] !== k || t[72] !== st || t[73] !== Ht || t[74] !== _ || t[75] !== zt || t[76] !== C || t[77] !== z || t[78] !== tt || t[79] !== Z || t[80] !== x || t[81] !== Xt || t[82] !== h || t[83] !== wt || t[84] !== o.dateFormat || t[85] !== o.enabled || t[86] !== It || t[87] !== q || t[88] !== K || t[89] !== r ? (se = wt && h && l.length > 0 ? /* @__PURE__ */ i.jsx(ze, { hideAxisLine: nt, data: He(l, o.dateFormat || "yyyy").filter((y) => o.enabled ? `${y.date}` === Ve(new Date(r[$]), o.dateFormat || "yyyy") : y), barColors: M, width: wt, centerGap: Q, height: h, truncateBy: K, leftMargin: W, rightMargin: z, topMargin: q, bottomMargin: U, axisTitles: [w, C], tooltip: It, onSeriesMouseOver: k, barPadding: J, refValues: _, maxValue: Math.max(ne(l, "leftBar", B, s).max, ne(l, "rightBar", B, s).max), minValue: Math.min(ne(l, "leftBar", B, s).min, ne(l, "rightBar", B, s).min), minValueLeftBar: ne(l, "leftBar", B, s).min, minValueRightBar: ne(l, "rightBar", B, s).min, showValues: Z, onSeriesMouseClick: Ct, showTicks: tt, suffix: Xt, prefix: Ht, resetSelectionOnDoubleClick: zt, detailsOnClick: N, styles: x, classNames: f, noOfTicks: at, animate: Vt === !0 ? {
453
+ t[52] !== kt || t[53] !== B || t[54] !== et || t[55] !== tt || t[56] !== at || t[57] !== c || t[58] !== Zt || t[59] !== l || t[60] !== V || t[61] !== zt || t[62] !== M || t[63] !== O || t[64] !== K || t[65] !== s || t[66] !== k || t[67] !== ct || t[68] !== rt || t[69] !== p?.locale || t[70] !== p?.padZeros || t[71] !== p?.precision || t[72] !== p?.prefix || t[73] !== p?.suffix || t[74] !== Mt || t[75] !== D || t[76] !== st || t[77] !== Wt || t[78] !== N || t[79] !== Q || t[80] !== lt || t[81] !== T || t[82] !== u || t[83] !== q || t[84] !== z || t[85] !== o.dateFormat || t[86] !== o.enabled || t[87] !== Rt || t[88] !== _ || t[89] !== it || t[90] !== r ? (ie = z && q && l.length > 0 ? /* @__PURE__ */ i.jsx(Re, { hideAxisLine: zt, data: Fe(l, o.dateFormat || "yyyy").filter((v) => o.enabled ? `${v.date}` === je(new Date(r[M]), o.dateFormat || "yyyy") : v), barColors: B, width: z, centerGap: at, height: q, truncateBy: it, leftMargin: K, rightMargin: Q, topMargin: _, bottomMargin: tt, axisTitles: [O, N], tooltip: Rt, onSeriesMouseOver: D, barPadding: et, refValues: st, maxValue: Math.max(le(l, "leftBar", k, s).max, le(l, "rightBar", k, s).max), minValue: Math.min(le(l, "leftBar", k, s).min, le(l, "rightBar", k, s).min), minValueLeftBar: le(l, "leftBar", k, s).min, minValueRightBar: le(l, "rightBar", k, s).min, showValues: T, onSeriesMouseClick: Mt, showTicks: lt, resetSelectionOnDoubleClick: Wt, detailsOnClick: V, styles: u, classNames: c, noOfTicks: rt, animate: kt === !0 ? {
456
454
  duration: 0.5,
457
455
  once: !0,
458
456
  amount: 0.5
459
- } : Vt || {
457
+ } : kt || {
460
458
  duration: 0,
461
459
  once: !0,
462
460
  amount: 0
463
- }, precision: st, customLayers: ot, naLabel: lt, locale: Nt }) : null, t[52] = Vt, t[53] = M, t[54] = J, t[55] = U, t[56] = Q, t[57] = f, t[58] = ot, t[59] = l, t[60] = N, t[61] = nt, t[62] = $, t[63] = w, t[64] = W, t[65] = Nt, t[66] = s, t[67] = B, t[68] = lt, t[69] = at, t[70] = Ct, t[71] = k, t[72] = st, t[73] = Ht, t[74] = _, t[75] = zt, t[76] = C, t[77] = z, t[78] = tt, t[79] = Z, t[80] = x, t[81] = Xt, t[82] = h, t[83] = wt, t[84] = o.dateFormat, t[85] = o.enabled, t[86] = It, t[87] = q, t[88] = K, t[89] = r, t[90] = se) : se = t[90];
464
- let oe;
465
- t[91] !== ae || t[92] !== se ? (oe = /* @__PURE__ */ i.jsxs(Ye, { ref: qt, children: [
461
+ }, customLayers: Zt, naLabel: ct, locale: p?.locale || "en", padZeros: p?.padZeros || !1, suffix: p?.suffix || "", prefix: p?.prefix || "", precision: p?.precision ?? 2 }) : null, t[52] = kt, t[53] = B, t[54] = et, t[55] = tt, t[56] = at, t[57] = c, t[58] = Zt, t[59] = l, t[60] = V, t[61] = zt, t[62] = M, t[63] = O, t[64] = K, t[65] = s, t[66] = k, t[67] = ct, t[68] = rt, t[69] = p?.locale, t[70] = p?.padZeros, t[71] = p?.precision, t[72] = p?.prefix, t[73] = p?.suffix, t[74] = Mt, t[75] = D, t[76] = st, t[77] = Wt, t[78] = N, t[79] = Q, t[80] = lt, t[81] = T, t[82] = u, t[83] = q, t[84] = z, t[85] = o.dateFormat, t[86] = o.enabled, t[87] = Rt, t[88] = _, t[89] = it, t[90] = r, t[91] = ie) : ie = t[91];
462
+ let ae;
463
+ t[92] !== b || t[93] !== ie ? (ae = /* @__PURE__ */ i.jsxs(Ie, { ref: g, children: [
464
+ b,
465
+ ie
466
+ ] }), t[92] = b, t[93] = ie, t[94] = ae) : ae = t[94];
467
+ let se;
468
+ t[95] !== c?.footnote || t[96] !== c?.source || t[97] !== mt || t[98] !== A || t[99] !== u?.footnote || t[100] !== u?.source || t[101] !== h ? (se = A || mt ? /* @__PURE__ */ i.jsx(Ve, { styles: {
469
+ footnote: u?.footnote,
470
+ source: u?.source
471
+ }, classNames: {
472
+ footnote: c?.footnote,
473
+ source: c?.source
474
+ }, sources: A, footNote: mt, width: h }) : null, t[95] = c?.footnote, t[96] = c?.source, t[97] = mt, t[98] = A, t[99] = u?.footnote, t[100] = u?.source, t[101] = h, t[102] = se) : se = t[102];
475
+ let ne;
476
+ return t[103] !== ee || t[104] !== L || t[105] !== Lt || t[106] !== j || t[107] !== Ht || t[108] !== Yt || t[109] !== jt || t[110] !== Bt || t[111] !== St || t[112] !== Jt || t[113] !== U || t[114] !== e || t[115] !== y || t[116] !== ae || t[117] !== se || t[118] !== nt || t[119] !== h ? (ne = /* @__PURE__ */ i.jsxs(Ge, { className: St, style: Jt, id: Lt, ref: oe, "aria-label": ee, backgroundColor: L, theme: nt, language: Ht, minHeight: Yt, width: h, height: j, relativeHeight: Bt, padding: jt, children: [
477
+ U,
478
+ e,
479
+ y,
466
480
  ae,
467
481
  se
468
- ] }), t[91] = ae, t[92] = se, t[93] = oe) : oe = t[93];
469
- let le;
470
- t[94] !== f?.footnote || t[95] !== f?.source || t[96] !== rt || t[97] !== v || t[98] !== x?.footnote || t[99] !== x?.source || t[100] !== p ? (le = v || rt ? /* @__PURE__ */ i.jsx(Ie, { styles: {
471
- footnote: x?.footnote,
472
- source: x?.source
473
- }, classNames: {
474
- footnote: f?.footnote,
475
- source: f?.source
476
- }, sources: v, footNote: rt, width: p }) : null, t[94] = f?.footnote, t[95] = f?.source, t[96] = rt, t[97] = v, t[98] = x?.footnote, t[99] = x?.source, t[100] = p, t[101] = le) : le = t[101];
477
- let fe;
478
- return t[102] !== $t || t[103] !== Y || t[104] !== Mt || t[105] !== b || t[106] !== et || t[107] !== Wt || t[108] !== Bt || t[109] !== Lt || t[110] !== xe || t[111] !== he || t[112] !== te || t[113] !== ee || t[114] !== ie || t[115] !== oe || t[116] !== le || t[117] !== it || t[118] !== p ? (fe = /* @__PURE__ */ i.jsxs(We, { className: xe, style: he, id: Mt, ref: Ut, "aria-label": $t, backgroundColor: Y, theme: it, language: et, minHeight: Wt, width: p, height: b, relativeHeight: Lt, padding: Bt, children: [
479
- te,
480
- ee,
481
- ie,
482
- oe,
483
- le
484
- ] }), t[102] = $t, t[103] = Y, t[104] = Mt, t[105] = b, t[106] = et, t[107] = Wt, t[108] = Bt, t[109] = Lt, t[110] = xe, t[111] = he, t[112] = te, t[113] = ee, t[114] = ie, t[115] = oe, t[116] = le, t[117] = it, t[118] = p, t[119] = fe) : fe = t[119], fe;
482
+ ] }), t[103] = ee, t[104] = L, t[105] = Lt, t[106] = j, t[107] = Ht, t[108] = Yt, t[109] = jt, t[110] = Bt, t[111] = St, t[112] = Jt, t[113] = U, t[114] = e, t[115] = y, t[116] = ae, t[117] = se, t[118] = nt, t[119] = h, t[120] = ne) : ne = t[120], ne;
485
483
  }
486
- function ai(a) {
484
+ function Je(a) {
487
485
  return a !== void 0;
488
486
  }
489
- function si(a) {
487
+ function Ke(a) {
490
488
  return a !== void 0;
491
489
  }
492
- function oi(a) {
490
+ function Qe(a) {
493
491
  return a.data;
494
492
  }
495
- function li(a) {
493
+ function _e(a) {
496
494
  return a !== void 0;
497
495
  }
498
- function ni(a) {
496
+ function ti(a) {
499
497
  return a.data;
500
498
  }
501
- function ri(a, t) {
499
+ function ei(a, t) {
502
500
  return a - t;
503
501
  }
504
- function ci(a) {
502
+ function ii(a) {
505
503
  return a.date;
506
504
  }
507
505
  export {
508
- Fi as ButterflyChart
506
+ ki as ButterflyChart
509
507
  };
510
508
  //# sourceMappingURL=ButterflyChart.js.map