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