@undp/data-viz 2.0.9 → 2.1.0

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 (204) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.d.ts +2 -0
  3. package/dist/AreaChart.js +1 -1
  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 +1188 -1213
  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 +126 -131
  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 +404 -413
  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 +179 -184
  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 +268 -273
  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 +1 -1
  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 +198 -203
  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 +1 -1
  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 +364 -373
  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-ebgfxefq.js} +3 -3
  72. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.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 +111 -116
  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 +1 -1
  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 +202 -207
  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 +1 -1
  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.d.ts +2 -0
  108. package/dist/MultiLineAltChart.js +1 -1
  109. package/dist/MultiLineChart.cjs +1 -1
  110. package/dist/MultiLineChart.d.ts +2 -0
  111. package/dist/MultiLineChart.js +1 -1
  112. package/dist/ParetoChart.cjs +1 -1
  113. package/dist/ParetoChart.cjs.map +1 -1
  114. package/dist/ParetoChart.d.ts +2 -0
  115. package/dist/ParetoChart.js +187 -192
  116. package/dist/ParetoChart.js.map +1 -1
  117. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  118. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  122. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  123. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  124. package/dist/RadarChart.cjs +1 -1
  125. package/dist/RadarChart.cjs.map +1 -1
  126. package/dist/RadarChart.d.ts +2 -0
  127. package/dist/RadarChart.js +158 -163
  128. package/dist/RadarChart.js.map +1 -1
  129. package/dist/SankeyChart.cjs +1 -1
  130. package/dist/SankeyChart.cjs.map +1 -1
  131. package/dist/SankeyChart.d.ts +2 -0
  132. package/dist/SankeyChart.js +172 -177
  133. package/dist/SankeyChart.js.map +1 -1
  134. package/dist/ScatterPlot.cjs +1 -1
  135. package/dist/ScatterPlot.cjs.map +1 -1
  136. package/dist/ScatterPlot.d.ts +2 -0
  137. package/dist/ScatterPlot.js +222 -227
  138. package/dist/ScatterPlot.js.map +1 -1
  139. package/dist/ScrollStory.d.ts +2 -0
  140. package/dist/SimpleLineChart.cjs +1 -1
  141. package/dist/SimpleLineChart.d.ts +2 -0
  142. package/dist/SimpleLineChart.js +1 -1
  143. package/dist/SingleGraphDashboard.cjs +1 -1
  144. package/dist/SingleGraphDashboard.cjs.map +1 -1
  145. package/dist/SingleGraphDashboard.d.ts +2 -0
  146. package/dist/SingleGraphDashboard.js +24 -24
  147. package/dist/SingleGraphDashboard.js.map +1 -1
  148. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  149. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  150. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  151. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  152. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  153. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  154. package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
  155. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  156. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  157. package/dist/SlopeChart.cjs +1 -1
  158. package/dist/SlopeChart.cjs.map +1 -1
  159. package/dist/SlopeChart.d.ts +2 -0
  160. package/dist/SlopeChart.js +182 -187
  161. package/dist/SlopeChart.js.map +1 -1
  162. package/dist/SparkLine.cjs +1 -1
  163. package/dist/SparkLine.d.ts +2 -0
  164. package/dist/SparkLine.js +1 -1
  165. package/dist/StatCardFromData.d.ts +2 -0
  166. package/dist/StripChart.cjs +1 -1
  167. package/dist/StripChart.cjs.map +1 -1
  168. package/dist/StripChart.d.ts +2 -0
  169. package/dist/StripChart.js +249 -258
  170. package/dist/StripChart.js.map +1 -1
  171. package/dist/ThreeDGlobe.cjs +1 -1
  172. package/dist/ThreeDGlobe.cjs.map +1 -1
  173. package/dist/ThreeDGlobe.d.ts +2 -0
  174. package/dist/ThreeDGlobe.js +142 -147
  175. package/dist/ThreeDGlobe.js.map +1 -1
  176. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  177. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  178. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  179. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  180. package/dist/TreeMapGraph.cjs +1 -1
  181. package/dist/TreeMapGraph.cjs.map +1 -1
  182. package/dist/TreeMapGraph.d.ts +2 -0
  183. package/dist/TreeMapGraph.js +159 -164
  184. package/dist/TreeMapGraph.js.map +1 -1
  185. package/dist/Types.d.ts +2 -0
  186. package/dist/UnitChart.d.ts +2 -0
  187. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  188. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  189. package/dist/index-BBV4tAeA.js +330 -0
  190. package/dist/index-BBV4tAeA.js.map +1 -0
  191. package/dist/index-CF5hnGvG.cjs +2 -0
  192. package/dist/index-CF5hnGvG.cjs.map +1 -0
  193. package/dist/index.cjs +1 -1
  194. package/dist/index.d.ts +2 -0
  195. package/dist/index.js +1 -1
  196. package/package.json +1 -1
  197. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  198. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  199. package/dist/Tooltip-CwWUegPB.js +0 -43
  200. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  201. package/dist/index-B2LQV7Tk.js +0 -335
  202. package/dist/index-B2LQV7Tk.js.map +0 -1
  203. package/dist/index-xRHRLDIp.cjs +0 -2
  204. package/dist/index-xRHRLDIp.cjs.map +0 -1
@@ -1,140 +1,139 @@
1
- import { c as ve, j as i, m as de } from "./index-CHPV5EwG-Curnpaqc.js";
1
+ import { c as be, j as i, m as de } from "./index-CHPV5EwG-Curnpaqc.js";
2
2
  import { o as we } from "./index-BZQYSqar.js";
3
- import { p as Se, f as Ae } from "./parse-DlCRUFh_.js";
4
- import { useRef as me, useState as vt, useEffect as ke } from "react";
5
- import { g as Pe, N as Fe } from "./getSliderMarks-HIDJ0_Cd.js";
3
+ import { p as Te, f as Ae } from "./parse-DlCRUFh_.js";
4
+ import { useRef as me, useState as bt, useEffect as ke } from "react";
5
+ import { g as Se, N as Pe } from "./getSliderMarks-HIDJ0_Cd.js";
6
6
  import { i as Ce } from "./index-Bwrro8-q.js";
7
- import { l as Me } from "./Modal-DGcuAHyK.js";
8
7
  import { n as ge } from "./numberFormattingFunction-14YCbkN2.js";
9
- import { T as Oe } from "./Tooltip-CwWUegPB.js";
10
- import { c as Lt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { s as Le } from "./string2HTML-DhG75NqA.js";
12
- import { A as $e } from "./AxisTitle-jeI7am8o.js";
13
- import { A as We } from "./Axis-CRyfcLjc.js";
14
- import { X as Be } from "./XAxesLabels-Dy8E1SEo.js";
15
- import { Y as Ve } from "./YTicksAndGridLines-Blepl7XF.js";
16
- import { R as He, a as Xe } from "./ReferenceLine-2XCwHXQ4.js";
8
+ import { T as Me } from "./Tooltip-Dj5eVppQ.js";
9
+ import { c as $t } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
+ import { A as Oe } from "./AxisTitle-jeI7am8o.js";
11
+ import { A as Fe } from "./Axis-CRyfcLjc.js";
12
+ import { X as We } from "./XAxesLabels-Dy8E1SEo.js";
13
+ import { Y as $e } from "./YTicksAndGridLines-Blepl7XF.js";
14
+ import { R as Be, a as Xe } from "./ReferenceLine-2XCwHXQ4.js";
17
15
  import { X as Ye } from "./XTicksAndGridLines-CObVFSm4.js";
18
16
  import { Y as Ee } from "./YAxesLabels-a57ZRv-0.js";
19
- import { a as je } from "./linear-BwnDd9KF.js";
20
- import { b as Ie } from "./band-CyHaVft5.js";
21
- import { u as Ne } from "./use-in-view-Cxa7y1TH.js";
17
+ import { D as Ve } from "./DetailsModal-0Ry5nXiC.js";
18
+ import { a as Le } from "./linear-BwnDd9KF.js";
19
+ import { b as je } from "./band-CyHaVft5.js";
20
+ import { u as Ie } from "./use-in-view-Cxa7y1TH.js";
22
21
  import { m as Ot } from "./proxy-BxkFHwUw.js";
23
- import { A as Te } from "./index-BqfRwk1n.js";
22
+ import { A as Ne } from "./index-BqfRwk1n.js";
24
23
  import { e as ye } from "./ensureCompleteData-DNKEGRiP.js";
25
24
  import { u as Ge } from "./uniqBy-BHy4I8PK.js";
26
- import { a as Re, G as ze } from "./GraphContainer-CRqzdKu2.js";
27
- import { GraphHeader as qe } from "./GraphHeader.js";
28
- import { P as Ue, e as Je } from "./index-D491FEn1.js";
29
- import { GraphFooter as Ke } from "./GraphFooter.js";
30
- import { ColorLegendWithMouseOver as Qe } from "./ColorLegendWithMouseOver.js";
31
- import { E as Ze } from "./EmptyState-BZo1BbAn.js";
32
- import { Colors as _e } from "./Colors.js";
33
- import { s as ti } from "./sort-BIvMlUH1.js";
34
- import { a as ei } from "./init-BJFW6EwE.js";
35
- function ii(e) {
36
- const t = ve.c(139), {
37
- data: f,
25
+ import { a as He, G as Re } from "./GraphContainer-CRqzdKu2.js";
26
+ import { GraphHeader as ze } from "./GraphHeader.js";
27
+ import { P as qe, e as Ue } from "./index-D491FEn1.js";
28
+ import { GraphFooter as Je } from "./GraphFooter.js";
29
+ import { ColorLegendWithMouseOver as Ke } from "./ColorLegendWithMouseOver.js";
30
+ import { E as Qe } from "./EmptyState-BZo1BbAn.js";
31
+ import { Colors as Ze } from "./Colors.js";
32
+ import { s as _e } from "./sort-BIvMlUH1.js";
33
+ import { a as ti } from "./init-BJFW6EwE.js";
34
+ function ei(e) {
35
+ const t = be.c(140), {
36
+ data: p,
38
37
  leftMargin: Ft,
39
38
  rightMargin: ie,
40
39
  topMargin: Wt,
41
40
  bottomMargin: Bt,
42
41
  dotColors: b,
43
- barPadding: $t,
44
- showTicks: Ht,
45
- truncateBy: Xt,
46
- width: Vt,
42
+ barPadding: Vt,
43
+ showTicks: Xt,
44
+ truncateBy: Yt,
45
+ width: Lt,
47
46
  height: jt,
48
- radius: nt,
47
+ radius: et,
49
48
  showLabels: ct,
50
- tooltip: g,
49
+ tooltip: y,
51
50
  onSeriesMouseOver: P,
52
- maxValue: Yt,
53
- minValue: L,
54
- onSeriesMouseClick: R,
55
- showValues: Et,
56
- suffix: at,
51
+ maxValue: Et,
52
+ minValue: O,
53
+ onSeriesMouseClick: G,
54
+ showValues: Gt,
55
+ suffix: it,
57
56
  prefix: F,
58
57
  selectedColor: $,
59
- arrowConnector: k,
58
+ arrowConnector: A,
60
59
  connectorStrokeWidth: qt,
61
60
  maxBarThickness: dt,
62
- minBarThickness: bt,
63
- resetSelectionOnDoubleClick: Gt,
64
- detailsOnClick: x,
61
+ minBarThickness: vt,
62
+ resetSelectionOnDoubleClick: Ht,
63
+ detailsOnClick: V,
65
64
  axisTitle: W,
66
65
  noOfTicks: Ut,
67
66
  valueColor: wt,
68
- styles: n,
69
- classNames: a,
70
- labelOrder: V,
67
+ styles: a,
68
+ classNames: n,
69
+ labelOrder: L,
71
70
  refValues: At,
72
71
  animate: u,
73
72
  precision: d,
74
73
  customLayers: I,
75
74
  highlightedDataPoints: j,
76
75
  dimmedOpacity: mt
77
- } = e, v = Ft === void 0 ? 20 : Ft, Jt = ie === void 0 ? 20 : ie, It = Wt === void 0 ? 20 : Wt, kt = Bt === void 0 ? 25 : Bt, ne = me(null);
76
+ } = e, g = Ft === void 0 ? 20 : Ft, Jt = ie === void 0 ? 20 : ie, It = Wt === void 0 ? 20 : Wt, kt = Bt === void 0 ? 25 : Bt, ne = me(null);
78
77
  let Kt;
79
78
  t[0] !== u.amount || t[1] !== u.once ? (Kt = {
80
79
  once: u.once,
81
80
  amount: u.amount
82
81
  }, t[0] = u.amount, t[1] = u.once, t[2] = Kt) : Kt = t[2];
83
- const N = Ne(ne, Kt), z = W ? v + 30 : v;
82
+ const N = Ie(ne, Kt), H = W ? g + 30 : g;
84
83
  let Nt;
85
- t[3] !== kt || t[4] !== Jt || t[5] !== z || t[6] !== It ? (Nt = {
84
+ t[3] !== kt || t[4] !== Jt || t[5] !== H || t[6] !== It ? (Nt = {
86
85
  top: It,
87
86
  bottom: kt,
88
- left: z,
87
+ left: H,
89
88
  right: Jt
90
- }, t[3] = kt, t[4] = Jt, t[5] = z, t[6] = It, t[7] = Nt) : Nt = t[7];
91
- const r = Nt, o = Vt - r.left - r.right, ot = jt - r.top - r.bottom, [st, Tt] = vt(void 0), [B, H] = vt(void 0), [Dt, ut] = vt(void 0), [xt, St] = vt(void 0);
92
- let pt, X, Y, q, C, T, M, U, J, K, Q, w, A, Z, _;
93
- if (t[8] !== u || t[9] !== k || t[10] !== W || t[11] !== $t || t[12] !== a?.dataConnectors || t[13] !== a?.graphObjectValues || t[14] !== a?.xAxis?.axis || t[15] !== a?.xAxis?.labels || t[16] !== a?.yAxis?.gridLines || t[17] !== a?.yAxis?.labels || t[18] !== a?.yAxis?.title || t[19] !== qt || t[20] !== I || t[21] !== f || t[22] !== x || t[23] !== mt || t[24] !== b || t[25] !== ot || t[26] !== o || t[27] !== jt || t[28] !== j || t[29] !== N || t[30] !== V || t[31] !== v || t[32] !== r.bottom || t[33] !== r.left || t[34] !== r.right || t[35] !== r.top || t[36] !== dt || t[37] !== Yt || t[38] !== bt || t[39] !== L || t[40] !== B || t[41] !== Ut || t[42] !== R || t[43] !== P || t[44] !== d || t[45] !== F || t[46] !== nt || t[47] !== At || t[48] !== Gt || t[49] !== $ || t[50] !== ct || t[51] !== Ht || t[52] !== Et || t[53] !== n?.dataConnectors || t[54] !== n?.graphObjectValues || t[55] !== n?.xAxis?.axis || t[56] !== n?.xAxis?.labels || t[57] !== n?.yAxis?.gridLines || t[58] !== n?.yAxis?.labels || t[59] !== n?.yAxis?.title || t[60] !== at || t[61] !== Xt || t[62] !== wt || t[63] !== Vt) {
89
+ }, t[3] = kt, t[4] = Jt, t[5] = H, t[6] = It, t[7] = Nt) : Nt = t[7];
90
+ const l = Nt, o = Lt - l.left - l.right, nt = jt - l.top - l.bottom, [at, Dt] = bt(void 0), [ot, st] = bt(void 0), [Tt, ut] = bt(void 0), [xt, St] = bt(void 0);
91
+ let pt, B, X, R, k, D, C, z, q, U, J, v, w, K, Q;
92
+ if (t[8] !== u || t[9] !== A || t[10] !== W || t[11] !== Vt || t[12] !== n?.dataConnectors || t[13] !== n?.graphObjectValues || t[14] !== n?.xAxis?.axis || t[15] !== n?.xAxis?.labels || t[16] !== n?.yAxis?.gridLines || t[17] !== n?.yAxis?.labels || t[18] !== n?.yAxis?.title || t[19] !== qt || t[20] !== I || t[21] !== p || t[22] !== V || t[23] !== mt || t[24] !== b || t[25] !== nt || t[26] !== o || t[27] !== jt || t[28] !== j || t[29] !== N || t[30] !== L || t[31] !== g || t[32] !== l.bottom || t[33] !== l.left || t[34] !== l.right || t[35] !== l.top || t[36] !== dt || t[37] !== Et || t[38] !== vt || t[39] !== O || t[40] !== ot || t[41] !== Ut || t[42] !== G || t[43] !== P || t[44] !== d || t[45] !== F || t[46] !== et || t[47] !== At || t[48] !== Ht || t[49] !== $ || t[50] !== ct || t[51] !== Xt || t[52] !== Gt || t[53] !== a?.dataConnectors || t[54] !== a?.graphObjectValues || t[55] !== a?.xAxis?.axis || t[56] !== a?.xAxis?.labels || t[57] !== a?.yAxis?.gridLines || t[58] !== a?.yAxis?.labels || t[59] !== a?.yAxis?.title || t[60] !== it || t[61] !== Yt || t[62] !== wt || t[63] !== Lt) {
94
93
  let ht;
95
- t[79] !== V ? (ht = (l, lt) => ({
96
- ...l,
97
- id: V ? `${l.label}` : `${lt}`
98
- }), t[79] = V, t[80] = ht) : ht = t[80];
99
- const Ct = f.map(ht), Qt = V || Ct.map(xi), E = je().domain([L, Yt]).range([ot, 0]).nice(), h = Ie().domain(Qt).range([0, bt ? Math.max(o, bt * Ct.length) : dt ? Math.min(o, dt * Ct.length) : o]).paddingInner($t), yt = E.ticks(Ut);
100
- X = Ot.svg, M = `${Vt}px`, U = `${jt}px`, J = `0 0 ${Vt} ${jt}`, K = "ltr", Q = ne, t[81] !== k ? (w = k ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[81] = k, t[82] = w) : w = t[82], _ = `translate(${r.left},${r.top})`;
101
- const Zt = E(L < 0 ? 0 : L), ae = E(L < 0 ? 0 : L), _t = L < 0 ? 0 : L;
102
- let p;
103
- t[83] !== d || t[84] !== F || t[85] !== at || t[86] !== _t ? (p = ge(_t, "NA", d, F, at), t[83] = d, t[84] = F, t[85] = at, t[86] = _t, t[87] = p) : p = t[87];
104
- const Rt = a?.xAxis?.axis, te = a?.yAxis?.labels;
94
+ t[79] !== L ? (ht = (r, rt) => ({
95
+ ...r,
96
+ id: L ? `${r.label}` : `${rt}`
97
+ }), t[79] = L, t[80] = ht) : ht = t[80];
98
+ const Ct = p.map(ht), Qt = L || Ct.map(ui), Y = Le().domain([O, Et]).range([nt, 0]).nice(), f = je().domain(Qt).range([0, vt ? Math.max(o, vt * Ct.length) : dt ? Math.min(o, dt * Ct.length) : o]).paddingInner(Vt), yt = Y.ticks(Ut);
99
+ B = Ot.svg, C = `${Lt}px`, z = `${jt}px`, q = `0 0 ${Lt} ${jt}`, U = "ltr", J = ne, t[81] !== A ? (v = A ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[81] = A, t[82] = v) : v = t[82], Q = `translate(${l.left},${l.top})`;
100
+ const Zt = Y(O < 0 ? 0 : O), ae = Y(O < 0 ? 0 : O), _t = O < 0 ? 0 : O;
101
+ let x;
102
+ t[83] !== d || t[84] !== F || t[85] !== it || t[86] !== _t ? (x = ge(_t, "NA", d, F, it), t[83] = d, t[84] = F, t[85] = it, t[86] = _t, t[87] = x) : x = t[87];
103
+ const Rt = n?.xAxis?.axis, te = n?.yAxis?.labels;
105
104
  let Mt;
106
105
  t[88] !== Rt || t[89] !== te ? (Mt = {
107
106
  axis: Rt,
108
107
  label: te
109
108
  }, t[88] = Rt, t[89] = te, t[90] = Mt) : Mt = t[90];
110
- const ee = n?.xAxis?.axis, rt = n?.yAxis?.labels;
109
+ const ee = a?.xAxis?.axis, lt = a?.yAxis?.labels;
111
110
  let s;
112
- t[91] !== ee || t[92] !== rt ? (s = {
111
+ t[91] !== ee || t[92] !== lt ? (s = {
113
112
  axis: ee,
114
- label: rt
115
- }, t[91] = ee, t[92] = rt, t[93] = s) : s = t[93], Y = /* @__PURE__ */ i.jsx(We, { y1: Zt, y2: ae, x1: 0 - v, x2: o + r.right, label: p, labelPos: {
116
- x: 0 - v,
113
+ label: lt
114
+ }, t[91] = ee, t[92] = lt, t[93] = s) : s = t[93], X = /* @__PURE__ */ i.jsx(Fe, { y1: Zt, y2: ae, x1: 0 - g, x2: o + l.right, label: x, labelPos: {
115
+ x: 0 - g,
117
116
  dx: 0,
118
- dy: Yt < 0 ? "1em" : -5,
119
- y: E(L < 0 ? 0 : L)
120
- }, classNames: Mt, styles: s }), q = Ht ? /* @__PURE__ */ i.jsx(Ve, { values: yt.filter(ui), y: yt.filter(mi).map((l) => E(l)), x1: 0 - v, x2: o + r.right, styles: {
121
- gridLines: n?.yAxis?.gridLines,
122
- labels: n?.yAxis?.labels
123
- }, classNames: {
117
+ dy: Et < 0 ? "1em" : -5,
118
+ y: Y(O < 0 ? 0 : O)
119
+ }, classNames: Mt, styles: s }), R = Xt ? /* @__PURE__ */ i.jsx($e, { values: yt.filter(mi), y: yt.filter(di).map((r) => Y(r)), x1: 0 - g, x2: o + l.right, styles: {
124
120
  gridLines: a?.yAxis?.gridLines,
125
121
  labels: a?.yAxis?.labels
126
- }, suffix: at, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
127
- const m = 0 - v - 15, y = ot / 2, gt = n?.yAxis?.title, re = a?.yAxis?.title;
128
- t[94] !== W || t[95] !== m || t[96] !== y || t[97] !== gt || t[98] !== re ? (C = /* @__PURE__ */ i.jsx($e, { x: m, y, style: gt, className: re, text: W, rotate90: !0 }), t[94] = W, t[95] = m, t[96] = y, t[97] = gt, t[98] = re, t[99] = C) : C = t[99], t[100] !== I ? (T = I.filter(di).map(ci), t[100] = I, t[101] = T) : T = t[101], pt = Te, A = Ct.map((l) => /* @__PURE__ */ i.jsxs(Ot.g, { className: "undp-viz-g-with-hover", variants: {
122
+ }, classNames: {
123
+ gridLines: n?.yAxis?.gridLines,
124
+ labels: n?.yAxis?.labels
125
+ }, suffix: it, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
126
+ const m = 0 - g - 15, h = nt / 2, gt = a?.yAxis?.title, le = n?.yAxis?.title;
127
+ t[94] !== W || t[95] !== m || t[96] !== h || t[97] !== gt || t[98] !== le ? (k = /* @__PURE__ */ i.jsx(Oe, { x: m, y: h, style: gt, className: le, text: W, rotate90: !0 }), t[94] = W, t[95] = m, t[96] = h, t[97] = gt, t[98] = le, t[99] = k) : k = t[99], t[100] !== I ? (D = I.filter(ci).map(ri), t[100] = I, t[101] = D) : D = t[101], pt = Ne, w = Ct.map((r) => /* @__PURE__ */ i.jsxs(Ot.g, { className: "undp-viz-g-with-hover", variants: {
129
128
  initial: {
130
- x: h(`${l.id}`) + h.bandwidth() / 2,
129
+ x: f(`${r.id}`) + f.bandwidth() / 2,
131
130
  y: 0,
132
- opacity: j.length !== 0 ? j.indexOf(l.label) !== -1 ? 0.85 : mt : 0.85
131
+ opacity: j.length !== 0 ? j.indexOf(r.label) !== -1 ? 0.85 : mt : 0.85
133
132
  },
134
133
  whileInView: {
135
- x: h(`${l.id}`) + h.bandwidth() / 2,
134
+ x: f(`${r.id}`) + f.bandwidth() / 2,
136
135
  y: 0,
137
- opacity: j.length !== 0 ? j.indexOf(l.label) !== -1 ? 0.85 : mt : 0.85,
136
+ opacity: j.length !== 0 ? j.indexOf(r.label) !== -1 ? 0.85 : mt : 0.85,
138
137
  transition: {
139
138
  duration: u.duration
140
139
  }
@@ -145,12 +144,12 @@ function ii(e) {
145
144
  duration: u.duration
146
145
  }
147
146
  }, children: [
148
- ct ? /* @__PURE__ */ i.jsx(Be, { value: `${l.label}`.length < Xt ? `${l.label}` : `${`${l.label}`.substring(0, Xt)}...`, y: ot + 5, x: 0 - h.bandwidth() / 2, width: h.bandwidth(), height: r.bottom, style: n?.xAxis?.labels, className: a?.xAxis?.labels, alignment: "top", animate: u, isInView: N }) : null,
147
+ ct ? /* @__PURE__ */ i.jsx(We, { value: `${r.label}`.length < Yt ? `${r.label}` : `${`${r.label}`.substring(0, Yt)}...`, y: nt + 5, x: 0 - f.bandwidth() / 2, width: f.bandwidth(), height: l.bottom, style: a?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: u, isInView: N }) : null,
149
148
  /* @__PURE__ */ i.jsx(Ot.line, { x1: 0, x2: 0, style: {
150
149
  strokeWidth: qt,
151
- ...n?.dataConnectors || {},
150
+ ...a?.dataConnectors || {},
152
151
  opacity: $ ? 0.3 : 1
153
- }, className: de("stroke-primary-gray-600 dark:stroke-primary-gray-300", a?.dataConnectors), markerEnd: k && l.x.indexOf(Math.min(...l.x.filter(li))) === 0 ? "url(#arrow)" : "", markerStart: k && l.x.indexOf(Math.min(...l.x.filter(ri))) === l.x.length - 1 ? "url(#arrow)" : "", exit: {
152
+ }, className: de("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: A && r.x.indexOf(Math.min(...r.x.filter(li))) === 0 ? "url(#arrow)" : "", markerStart: A && r.x.indexOf(Math.min(...r.x.filter(si))) === r.x.length - 1 ? "url(#arrow)" : "", exit: {
154
153
  opacity: 0,
155
154
  transition: {
156
155
  duration: u.duration
@@ -161,39 +160,39 @@ function ii(e) {
161
160
  y2: 0
162
161
  },
163
162
  whileInView: {
164
- y1: E(Math.min(...l.x.filter(si))) + nt,
165
- y2: E(Math.max(...l.x.filter(oi))) - nt,
163
+ y1: Y(Math.min(...r.x.filter(oi))) + et,
164
+ y2: Y(Math.max(...r.x.filter(ai))) - et,
166
165
  transition: {
167
166
  duration: u.duration
168
167
  }
169
168
  }
170
169
  }, initial: "initial", animate: N ? "whileInView" : "initial" }),
171
- l.x.map((lt, G) => /* @__PURE__ */ i.jsx(Ot.g, { onMouseEnter: (zt) => {
172
- Tt({
173
- ...l,
174
- xIndex: G
170
+ r.x.map((rt, E) => /* @__PURE__ */ i.jsx(Ot.g, { onMouseEnter: (zt) => {
171
+ Dt({
172
+ ...r,
173
+ xIndex: E
175
174
  }), St(zt.clientY), ut(zt.clientX), P?.({
176
- ...l,
177
- xIndex: G
175
+ ...r,
176
+ xIndex: E
178
177
  });
179
178
  }, onClick: () => {
180
- (R || x) && (Ce(B, {
181
- ...l,
182
- xIndex: G
183
- }) && Gt ? (H(void 0), R?.(void 0)) : (H({
184
- ...l,
185
- xIndex: G
186
- }), R && R({
187
- ...l,
188
- xIndex: G
179
+ (G || V) && (Ce(ot, {
180
+ ...r,
181
+ xIndex: E
182
+ }) && Ht ? (st(void 0), G?.(void 0)) : (st({
183
+ ...r,
184
+ xIndex: E
185
+ }), G && G({
186
+ ...r,
187
+ xIndex: E
189
188
  })));
190
189
  }, onMouseMove: (zt) => {
191
- Tt({
192
- ...l,
193
- xIndex: G
190
+ Dt({
191
+ ...r,
192
+ xIndex: E
194
193
  }), St(zt.clientY), ut(zt.clientX);
195
194
  }, onMouseLeave: () => {
196
- Tt(void 0), ut(void 0), St(void 0), P?.(void 0);
195
+ Dt(void 0), ut(void 0), St(void 0), P?.(void 0);
197
196
  }, exit: {
198
197
  opacity: 0,
199
198
  transition: {
@@ -201,19 +200,19 @@ function ii(e) {
201
200
  }
202
201
  }, variants: {
203
202
  initial: {
204
- opacity: $ ? b[G] === $ ? 1 : 0.3 : 1
203
+ opacity: $ ? b[E] === $ ? 1 : 0.3 : 1
205
204
  },
206
205
  whileInView: {
207
- opacity: $ ? b[G] === $ ? 1 : 0.3 : 1,
206
+ opacity: $ ? b[E] === $ ? 1 : 0.3 : 1,
208
207
  transition: {
209
208
  duration: u.duration
210
209
  }
211
210
  }
212
- }, initial: "initial", animate: N ? "whileInView" : "initial", children: Lt(lt) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
213
- /* @__PURE__ */ i.jsx(Ot.circle, { cx: 0, r: nt, style: {
214
- fill: b[G],
211
+ }, initial: "initial", animate: N ? "whileInView" : "initial", children: $t(rt) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
212
+ /* @__PURE__ */ i.jsx(Ot.circle, { cx: 0, r: et, style: {
213
+ fill: b[E],
215
214
  fillOpacity: 0.85,
216
- stroke: b[G],
215
+ stroke: b[E],
217
216
  strokeWidth: 1
218
217
  }, exit: {
219
218
  opacity: 0,
@@ -222,223 +221,219 @@ function ii(e) {
222
221
  }
223
222
  }, variants: {
224
223
  initial: {
225
- cy: E(0),
224
+ cy: Y(0),
226
225
  opacity: 0
227
226
  },
228
227
  whileInView: {
229
- cy: E(lt || 0),
230
- opacity: Lt(lt) ? 0 : 1,
228
+ cy: Y(rt || 0),
229
+ opacity: $t(rt) ? 0 : 1,
231
230
  transition: {
232
231
  duration: u.duration
233
232
  }
234
233
  }
235
234
  }, initial: "initial", animate: N ? "whileInView" : "initial" }),
236
- Et ? /* @__PURE__ */ i.jsx(Ot.text, { x: 0, style: {
235
+ Gt ? /* @__PURE__ */ i.jsx(Ot.text, { x: 0, style: {
237
236
  textAnchor: "start",
238
- ...n?.graphObjectValues || {}
239
- }, className: de("graph-value text-sm font-bold", Lt(lt) ? "opacity-0" : "opacity-100", a?.graphObjectValues), dx: nt + 3, dy: "0.33em", exit: {
237
+ ...a?.graphObjectValues || {}
238
+ }, className: de("graph-value text-sm font-bold", $t(rt) ? "opacity-0" : "opacity-100", n?.graphObjectValues), dx: et + 3, dy: "0.33em", exit: {
240
239
  opacity: 0,
241
240
  transition: {
242
241
  duration: u.duration
243
242
  }
244
243
  }, variants: {
245
244
  initial: {
246
- y: E(0),
245
+ y: Y(0),
247
246
  opacity: 0,
248
- fill: wt || b[G]
247
+ fill: wt || b[E]
249
248
  },
250
249
  whileInView: {
251
- y: E(lt || 0),
252
- fill: wt || b[G],
250
+ y: Y(rt || 0),
251
+ fill: wt || b[E],
253
252
  opacity: 1,
254
253
  transition: {
255
254
  duration: u.duration
256
255
  }
257
256
  }
258
- }, initial: "initial", animate: N ? "whileInView" : "initial", children: ge(lt, "NA", d, F, at) }) : null
259
- ] }) }, G))
260
- ] }, l.label)), Z = At ? /* @__PURE__ */ i.jsx(i.Fragment, { children: At.map((l, lt) => /* @__PURE__ */ i.jsx(Xe, { text: l.text, color: l.color, y: E(l.value), x1: 0 - v, x2: o + r.right, classNames: l.classNames, styles: l.styles, animate: u, isInView: N }, lt)) }) : null, t[8] = u, t[9] = k, t[10] = W, t[11] = $t, t[12] = a?.dataConnectors, t[13] = a?.graphObjectValues, t[14] = a?.xAxis?.axis, t[15] = a?.xAxis?.labels, t[16] = a?.yAxis?.gridLines, t[17] = a?.yAxis?.labels, t[18] = a?.yAxis?.title, t[19] = qt, t[20] = I, t[21] = f, t[22] = x, t[23] = mt, t[24] = b, t[25] = ot, t[26] = o, t[27] = jt, t[28] = j, t[29] = N, t[30] = V, t[31] = v, t[32] = r.bottom, t[33] = r.left, t[34] = r.right, t[35] = r.top, t[36] = dt, t[37] = Yt, t[38] = bt, t[39] = L, t[40] = B, t[41] = Ut, t[42] = R, t[43] = P, t[44] = d, t[45] = F, t[46] = nt, t[47] = At, t[48] = Gt, t[49] = $, t[50] = ct, t[51] = Ht, t[52] = Et, t[53] = n?.dataConnectors, t[54] = n?.graphObjectValues, t[55] = n?.xAxis?.axis, t[56] = n?.xAxis?.labels, t[57] = n?.yAxis?.gridLines, t[58] = n?.yAxis?.labels, t[59] = n?.yAxis?.title, t[60] = at, t[61] = Xt, t[62] = wt, t[63] = Vt, t[64] = pt, t[65] = X, t[66] = Y, t[67] = q, t[68] = C, t[69] = T, t[70] = M, t[71] = U, t[72] = J, t[73] = K, t[74] = Q, t[75] = w, t[76] = A, t[77] = Z, t[78] = _;
257
+ }, initial: "initial", animate: N ? "whileInView" : "initial", children: ge(rt, "NA", d, F, it) }) : null
258
+ ] }) }, E))
259
+ ] }, r.label)), K = At ? /* @__PURE__ */ i.jsx(i.Fragment, { children: At.map((r, rt) => /* @__PURE__ */ i.jsx(Xe, { text: r.text, color: r.color, y: Y(r.value), x1: 0 - g, x2: o + l.right, classNames: r.classNames, styles: r.styles, animate: u, isInView: N }, rt)) }) : null, t[8] = u, t[9] = A, t[10] = W, t[11] = Vt, t[12] = n?.dataConnectors, t[13] = n?.graphObjectValues, t[14] = n?.xAxis?.axis, t[15] = n?.xAxis?.labels, t[16] = n?.yAxis?.gridLines, t[17] = n?.yAxis?.labels, t[18] = n?.yAxis?.title, t[19] = qt, t[20] = I, t[21] = p, t[22] = V, t[23] = mt, t[24] = b, t[25] = nt, t[26] = o, t[27] = jt, t[28] = j, t[29] = N, t[30] = L, t[31] = g, t[32] = l.bottom, t[33] = l.left, t[34] = l.right, t[35] = l.top, t[36] = dt, t[37] = Et, t[38] = vt, t[39] = O, t[40] = ot, t[41] = Ut, t[42] = G, t[43] = P, t[44] = d, t[45] = F, t[46] = et, t[47] = At, t[48] = Ht, t[49] = $, t[50] = ct, t[51] = Xt, t[52] = Gt, t[53] = a?.dataConnectors, t[54] = a?.graphObjectValues, t[55] = a?.xAxis?.axis, t[56] = a?.xAxis?.labels, t[57] = a?.yAxis?.gridLines, t[58] = a?.yAxis?.labels, t[59] = a?.yAxis?.title, t[60] = it, t[61] = Yt, t[62] = wt, t[63] = Lt, t[64] = pt, t[65] = B, t[66] = X, t[67] = R, t[68] = k, t[69] = D, t[70] = C, t[71] = z, t[72] = q, t[73] = U, t[74] = J, t[75] = v, t[76] = w, t[77] = K, t[78] = Q;
261
260
  } else
262
- pt = t[64], X = t[65], Y = t[66], q = t[67], C = t[68], T = t[69], M = t[70], U = t[71], J = t[72], K = t[73], Q = t[74], w = t[75], A = t[76], Z = t[77], _ = t[78];
263
- let tt;
264
- t[102] !== pt || t[103] !== A || t[104] !== Z ? (tt = /* @__PURE__ */ i.jsxs(pt, { children: [
265
- A,
266
- Z
267
- ] }), t[102] = pt, t[103] = A, t[104] = Z, t[105] = tt) : tt = t[105];
268
- let O;
269
- t[106] !== I ? (O = I.filter(ai).map(ni), t[106] = I, t[107] = O) : O = t[107];
270
- let D;
271
- t[108] !== Y || t[109] !== q || t[110] !== C || t[111] !== T || t[112] !== tt || t[113] !== O || t[114] !== _ ? (D = /* @__PURE__ */ i.jsxs("g", { transform: _, children: [
272
- Y,
273
- q,
274
- C,
275
- T,
276
- tt,
277
- O
278
- ] }), t[108] = Y, t[109] = q, t[110] = C, t[111] = T, t[112] = tt, t[113] = O, t[114] = _, t[115] = D) : D = t[115];
279
- let S;
280
- t[116] !== X || t[117] !== M || t[118] !== U || t[119] !== J || t[120] !== K || t[121] !== Q || t[122] !== w || t[123] !== D ? (S = /* @__PURE__ */ i.jsxs(X, { width: M, height: U, viewBox: J, direction: K, ref: Q, children: [
261
+ pt = t[64], B = t[65], X = t[66], R = t[67], k = t[68], D = t[69], C = t[70], z = t[71], q = t[72], U = t[73], J = t[74], v = t[75], w = t[76], K = t[77], Q = t[78];
262
+ let Z;
263
+ t[102] !== pt || t[103] !== w || t[104] !== K ? (Z = /* @__PURE__ */ i.jsxs(pt, { children: [
281
264
  w,
282
- D
283
- ] }), t[116] = X, t[117] = M, t[118] = U, t[119] = J, t[120] = K, t[121] = Q, t[122] = w, t[123] = D, t[124] = S) : S = t[124];
284
- let et;
285
- t[125] !== a?.tooltip || t[126] !== Dt || t[127] !== xt || t[128] !== st || t[129] !== n?.tooltip || t[130] !== g ? (et = st && g && Dt && xt ? /* @__PURE__ */ i.jsx(Oe, { data: st, body: g, xPos: Dt, yPos: xt, backgroundStyle: n?.tooltip, className: a?.tooltip }) : null, t[125] = a?.tooltip, t[126] = Dt, t[127] = xt, t[128] = st, t[129] = n?.tooltip, t[130] = g, t[131] = et) : et = t[131];
286
- let it;
287
- t[132] !== x || t[133] !== B ? (it = x && B !== void 0 ? /* @__PURE__ */ i.jsx(Me, { open: B !== void 0, onClose: () => {
288
- H(void 0);
289
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof x == "string" ? {
290
- __html: Le(x, B)
291
- } : void 0, children: typeof x == "function" ? x(B) : null }) }) : null, t[132] = x, t[133] = B, t[134] = it) : it = t[134];
265
+ K
266
+ ] }), t[102] = pt, t[103] = w, t[104] = K, t[105] = Z) : Z = t[105];
267
+ let M;
268
+ t[106] !== I ? (M = I.filter(ni).map(ii), t[106] = I, t[107] = M) : M = t[107];
269
+ let T;
270
+ t[108] !== X || t[109] !== R || t[110] !== k || t[111] !== D || t[112] !== Z || t[113] !== M || t[114] !== Q ? (T = /* @__PURE__ */ i.jsxs("g", { transform: Q, children: [
271
+ X,
272
+ R,
273
+ k,
274
+ D,
275
+ Z,
276
+ M
277
+ ] }), t[108] = X, t[109] = R, t[110] = k, t[111] = D, t[112] = Z, t[113] = M, t[114] = Q, t[115] = T) : T = t[115];
278
+ let S;
279
+ t[116] !== B || t[117] !== C || t[118] !== z || t[119] !== q || t[120] !== U || t[121] !== J || t[122] !== v || t[123] !== T ? (S = /* @__PURE__ */ i.jsxs(B, { width: C, height: z, viewBox: q, direction: U, ref: J, children: [
280
+ v,
281
+ T
282
+ ] }), t[116] = B, t[117] = C, t[118] = z, t[119] = q, t[120] = U, t[121] = J, t[122] = v, t[123] = T, t[124] = S) : S = t[124];
283
+ let _;
284
+ t[125] !== n?.tooltip || t[126] !== Tt || t[127] !== xt || t[128] !== at || t[129] !== a?.tooltip || t[130] !== y ? (_ = at && y && Tt && xt ? /* @__PURE__ */ i.jsx(Me, { data: at, body: y, xPos: Tt, yPos: xt, backgroundStyle: a?.tooltip, className: n?.tooltip }) : null, t[125] = n?.tooltip, t[126] = Tt, t[127] = xt, t[128] = at, t[129] = a?.tooltip, t[130] = y, t[131] = _) : _ = t[131];
285
+ let tt;
286
+ t[132] !== n?.modal || t[133] !== V || t[134] !== ot ? (tt = V && ot !== void 0 ? /* @__PURE__ */ i.jsx(Ve, { body: V, data: ot, setData: st, className: n?.modal }) : null, t[132] = n?.modal, t[133] = V, t[134] = ot, t[135] = tt) : tt = t[135];
292
287
  let ft;
293
- return t[135] !== S || t[136] !== et || t[137] !== it ? (ft = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
288
+ return t[136] !== S || t[137] !== _ || t[138] !== tt ? (ft = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
294
289
  S,
295
- et,
296
- it
297
- ] }), t[135] = S, t[136] = et, t[137] = it, t[138] = ft) : ft = t[138], ft;
290
+ _,
291
+ tt
292
+ ] }), t[136] = S, t[137] = _, t[138] = tt, t[139] = ft) : ft = t[139], ft;
298
293
  }
299
- function ni(e) {
294
+ function ii(e) {
300
295
  return e.layer;
301
296
  }
302
- function ai(e) {
297
+ function ni(e) {
303
298
  return e.position === "after";
304
299
  }
305
- function oi(e) {
300
+ function ai(e) {
306
301
  return e !== null;
307
302
  }
308
- function si(e) {
303
+ function oi(e) {
309
304
  return e !== null;
310
305
  }
311
- function ri(e) {
306
+ function si(e) {
312
307
  return e !== null;
313
308
  }
314
309
  function li(e) {
315
310
  return e !== null;
316
311
  }
317
- function ci(e) {
312
+ function ri(e) {
318
313
  return e.layer;
319
314
  }
320
- function di(e) {
315
+ function ci(e) {
321
316
  return e.position === "before";
322
317
  }
323
- function mi(e) {
318
+ function di(e) {
324
319
  return e !== 0;
325
320
  }
326
- function ui(e) {
321
+ function mi(e) {
327
322
  return e !== 0;
328
323
  }
329
- function xi(e) {
324
+ function ui(e) {
330
325
  return `${e.id}`;
331
326
  }
332
- function pi(e) {
333
- const t = ve.c(132), {
334
- data: f,
327
+ function xi(e) {
328
+ const t = be.c(133), {
329
+ data: p,
335
330
  leftMargin: Ft,
336
331
  rightMargin: ie,
337
332
  topMargin: Wt,
338
333
  bottomMargin: Bt,
339
334
  dotColors: b,
340
- suffix: $t,
341
- prefix: Ht,
342
- barPadding: Xt,
343
- showValues: Vt,
335
+ suffix: Vt,
336
+ prefix: Xt,
337
+ barPadding: Yt,
338
+ showValues: Lt,
344
339
  showTicks: jt,
345
- truncateBy: nt,
340
+ truncateBy: et,
346
341
  width: ct,
347
- height: g,
342
+ height: y,
348
343
  radius: P,
349
- showLabels: Yt,
350
- tooltip: L,
351
- onSeriesMouseOver: R,
352
- maxValue: Et,
353
- minValue: at,
344
+ showLabels: Et,
345
+ tooltip: O,
346
+ onSeriesMouseOver: G,
347
+ maxValue: Gt,
348
+ minValue: it,
354
349
  onSeriesMouseClick: F,
355
350
  selectedColor: $,
356
- arrowConnector: k,
351
+ arrowConnector: A,
357
352
  connectorStrokeWidth: qt,
358
353
  maxBarThickness: dt,
359
- minBarThickness: bt,
360
- resetSelectionOnDoubleClick: Gt,
361
- detailsOnClick: x,
354
+ minBarThickness: vt,
355
+ resetSelectionOnDoubleClick: Ht,
356
+ detailsOnClick: V,
362
357
  axisTitle: W,
363
358
  noOfTicks: Ut,
364
359
  valueColor: wt,
365
- styles: n,
366
- classNames: a,
367
- labelOrder: V,
360
+ styles: a,
361
+ classNames: n,
362
+ labelOrder: L,
368
363
  refValues: At,
369
364
  rtl: u,
370
365
  animate: d,
371
366
  precision: I,
372
367
  customLayers: j,
373
368
  highlightedDataPoints: mt,
374
- dimmedOpacity: v
369
+ dimmedOpacity: g
375
370
  } = e, Jt = Ft === void 0 ? 100 : Ft, It = ie === void 0 ? 40 : ie, kt = Wt === void 0 ? 20 : Wt, ne = Bt === void 0 ? 10 : Bt, Kt = me(null);
376
371
  let N;
377
372
  t[0] !== d.amount || t[1] !== d.once ? (N = {
378
373
  once: d.once,
379
374
  amount: d.amount
380
375
  }, t[0] = d.amount, t[1] = d.once, t[2] = N) : N = t[2];
381
- const z = Ne(Kt, N), Nt = W ? kt + 25 : kt;
382
- let r;
383
- t[3] !== ne || t[4] !== Jt || t[5] !== It || t[6] !== Nt ? (r = {
376
+ const H = Ie(Kt, N), Nt = W ? kt + 25 : kt;
377
+ let l;
378
+ t[3] !== ne || t[4] !== Jt || t[5] !== It || t[6] !== Nt ? (l = {
384
379
  top: Nt,
385
380
  bottom: ne,
386
381
  left: Jt,
387
382
  right: It
388
- }, t[3] = ne, t[4] = Jt, t[5] = It, t[6] = Nt, t[7] = r) : r = t[7];
389
- const o = r, ot = ct - o.left - o.right, st = g - o.top - o.bottom, [Tt, B] = vt(void 0), [H, Dt] = vt(void 0), [ut, xt] = vt(void 0), [St, pt] = vt(void 0);
390
- let X, Y, q, C, T, M, U, J, K, Q, w, A, Z, _, tt;
391
- if (t[8] !== d || t[9] !== k || t[10] !== W || t[11] !== Xt || t[12] !== a?.dataConnectors || t[13] !== a?.graphObjectValues || t[14] !== a?.xAxis?.gridLines || t[15] !== a?.xAxis?.labels || t[16] !== a?.xAxis?.title || t[17] !== a?.yAxis?.gridLines || t[18] !== a?.yAxis?.labels || t[19] !== qt || t[20] !== j || t[21] !== f || t[22] !== x || t[23] !== v || t[24] !== b || t[25] !== st || t[26] !== ot || t[27] !== g || t[28] !== mt || t[29] !== z || t[30] !== V || t[31] !== o.bottom || t[32] !== o.left || t[33] !== o.top || t[34] !== dt || t[35] !== Et || t[36] !== bt || t[37] !== at || t[38] !== H || t[39] !== Ut || t[40] !== F || t[41] !== R || t[42] !== I || t[43] !== Ht || t[44] !== P || t[45] !== At || t[46] !== Gt || t[47] !== u || t[48] !== $ || t[49] !== Yt || t[50] !== jt || t[51] !== Vt || t[52] !== n?.dataConnectors || t[53] !== n?.graphObjectValues || t[54] !== n?.xAxis?.gridLines || t[55] !== n?.xAxis?.labels || t[56] !== n?.xAxis?.title || t[57] !== n?.yAxis?.gridLines || t[58] !== n?.yAxis?.labels || t[59] !== $t || t[60] !== kt || t[61] !== nt || t[62] !== wt || t[63] !== ct) {
383
+ }, t[3] = ne, t[4] = Jt, t[5] = It, t[6] = Nt, t[7] = l) : l = t[7];
384
+ const o = l, nt = ct - o.left - o.right, at = y - o.top - o.bottom, [Dt, ot] = bt(void 0), [st, Tt] = bt(void 0), [ut, xt] = bt(void 0), [St, pt] = bt(void 0);
385
+ let B, X, R, k, D, C, z, q, U, J, v, w, K, Q, Z;
386
+ if (t[8] !== d || t[9] !== A || t[10] !== W || t[11] !== Yt || t[12] !== n?.dataConnectors || t[13] !== n?.graphObjectValues || t[14] !== n?.xAxis?.gridLines || t[15] !== n?.xAxis?.labels || t[16] !== n?.xAxis?.title || t[17] !== n?.yAxis?.gridLines || t[18] !== n?.yAxis?.labels || t[19] !== qt || t[20] !== j || t[21] !== p || t[22] !== V || t[23] !== g || t[24] !== b || t[25] !== at || t[26] !== nt || t[27] !== y || t[28] !== mt || t[29] !== H || t[30] !== L || t[31] !== o.bottom || t[32] !== o.left || t[33] !== o.top || t[34] !== dt || t[35] !== Gt || t[36] !== vt || t[37] !== it || t[38] !== st || t[39] !== Ut || t[40] !== F || t[41] !== G || t[42] !== I || t[43] !== Xt || t[44] !== P || t[45] !== At || t[46] !== Ht || t[47] !== u || t[48] !== $ || t[49] !== Et || t[50] !== jt || t[51] !== Lt || t[52] !== a?.dataConnectors || t[53] !== a?.graphObjectValues || t[54] !== a?.xAxis?.gridLines || t[55] !== a?.xAxis?.labels || t[56] !== a?.xAxis?.title || t[57] !== a?.yAxis?.gridLines || t[58] !== a?.yAxis?.labels || t[59] !== Vt || t[60] !== kt || t[61] !== et || t[62] !== wt || t[63] !== ct) {
392
387
  let Ct;
393
- t[79] !== V ? (Ct = (s, m) => ({
388
+ t[79] !== L ? (Ct = (s, m) => ({
394
389
  ...s,
395
- id: V ? `${s.label}` : `${m}`
396
- }), t[79] = V, t[80] = Ct) : Ct = t[80];
397
- const Qt = f.map(Ct), E = V || Qt.map(Mi), h = je().domain([at, Et]).range([0, ot]).nice(), yt = Ie().domain(E).range([0, bt ? Math.max(st, bt * Qt.length) : dt ? Math.min(st, dt * Qt.length) : st]).paddingInner(Xt), Zt = h.ticks(Ut);
398
- Y = Ot.svg, U = `${ct}px`, J = `${g}px`, K = `0 0 ${ct} ${g}`, Q = "ltr", w = Kt, t[81] !== k ? (A = k ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[81] = k, t[82] = A) : A = t[82], tt = `translate(${o.left},${o.top})`, q = jt ? /* @__PURE__ */ i.jsx(Ye, { values: Zt.filter(Ci), x: Zt.filter(ki).map((s) => h(s)), y1: 0 - kt, y2: st + o.bottom, styles: {
399
- gridLines: n?.xAxis?.gridLines,
400
- labels: n?.xAxis?.labels
401
- }, classNames: {
390
+ id: L ? `${s.label}` : `${m}`
391
+ }), t[79] = L, t[80] = Ct) : Ct = t[80];
392
+ const Qt = p.map(Ct), Y = L || Qt.map(Ci), f = Le().domain([it, Gt]).range([0, nt]).nice(), yt = je().domain(Y).range([0, vt ? Math.max(at, vt * Qt.length) : dt ? Math.min(at, dt * Qt.length) : at]).paddingInner(Yt), Zt = f.ticks(Ut);
393
+ X = Ot.svg, z = `${ct}px`, q = `${y}px`, U = `0 0 ${ct} ${y}`, J = "ltr", v = Kt, t[81] !== A ? (w = A ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[81] = A, t[82] = w) : w = t[82], Z = `translate(${o.left},${o.top})`, R = jt ? /* @__PURE__ */ i.jsx(Ye, { values: Zt.filter(ki), x: Zt.filter(Ai).map((s) => f(s)), y1: 0 - kt, y2: at + o.bottom, styles: {
402
394
  gridLines: a?.xAxis?.gridLines,
403
395
  labels: a?.xAxis?.labels
404
- }, suffix: $t, prefix: Ht, labelType: "secondary", showGridLines: !0, precision: I }) : null;
405
- const ae = ot / 2, _t = 0 - o.top + 15, p = n?.xAxis?.title, Rt = a?.xAxis?.title;
406
- t[83] !== W || t[84] !== ae || t[85] !== _t || t[86] !== p || t[87] !== Rt ? (C = /* @__PURE__ */ i.jsx($e, { x: ae, y: _t, style: p, className: Rt, text: W }), t[83] = W, t[84] = ae, t[85] = _t, t[86] = p, t[87] = Rt, t[88] = C) : C = t[88];
407
- const te = n?.yAxis?.gridLines;
396
+ }, classNames: {
397
+ gridLines: n?.xAxis?.gridLines,
398
+ labels: n?.xAxis?.labels
399
+ }, suffix: Vt, prefix: Xt, labelType: "secondary", showGridLines: !0, precision: I }) : null;
400
+ const ae = nt / 2, _t = 0 - o.top + 15, x = a?.xAxis?.title, Rt = n?.xAxis?.title;
401
+ t[83] !== W || t[84] !== ae || t[85] !== _t || t[86] !== x || t[87] !== Rt ? (k = /* @__PURE__ */ i.jsx(Oe, { x: ae, y: _t, style: x, className: Rt, text: W }), t[83] = W, t[84] = ae, t[85] = _t, t[86] = x, t[87] = Rt, t[88] = k) : k = t[88];
402
+ const te = a?.yAxis?.gridLines;
408
403
  let Mt;
409
404
  t[89] !== te ? (Mt = {
410
405
  gridLines: te
411
406
  }, t[89] = te, t[90] = Mt) : Mt = t[90];
412
- const ee = a?.yAxis?.gridLines;
413
- let rt;
414
- t[91] !== ee ? (rt = {
407
+ const ee = n?.yAxis?.gridLines;
408
+ let lt;
409
+ t[91] !== ee ? (lt = {
415
410
  gridLines: ee
416
- }, t[91] = ee, t[92] = rt) : rt = t[92], T = /* @__PURE__ */ i.jsx(Ve, { y: Qt.map((s) => yt(`${s.id}`) + yt.bandwidth() / 2), x1: 0, x2: ot, styles: Mt, classNames: rt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: I }), t[93] !== j ? (M = j.filter(Ai).map(wi), t[93] = j, t[94] = M) : M = t[94], X = Te, Z = Qt.map((s) => /* @__PURE__ */ i.jsxs(Ot.g, { className: "undp-viz-g-with-hover", variants: {
411
+ }, t[91] = ee, t[92] = lt) : lt = t[92], D = /* @__PURE__ */ i.jsx($e, { y: Qt.map((s) => yt(`${s.id}`) + yt.bandwidth() / 2), x1: 0, x2: nt, styles: Mt, classNames: lt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: I }), t[93] !== j ? (C = j.filter(wi).map(vi), t[93] = j, t[94] = C) : C = t[94], B = Ne, K = Qt.map((s) => /* @__PURE__ */ i.jsxs(Ot.g, { className: "undp-viz-g-with-hover", variants: {
417
412
  initial: {
418
413
  x: 0,
419
414
  y: yt(`${s.id}`) + yt.bandwidth() / 2,
420
- opacity: mt.length !== 0 ? mt.indexOf(s.label) !== -1 ? 0.85 : v : 0.85
415
+ opacity: mt.length !== 0 ? mt.indexOf(s.label) !== -1 ? 0.85 : g : 0.85
421
416
  },
422
417
  whileInView: {
423
418
  x: 0,
424
419
  y: yt(`${s.id}`) + yt.bandwidth() / 2,
425
- opacity: mt.length !== 0 ? mt.indexOf(s.label) !== -1 ? 0.85 : v : 0.85,
420
+ opacity: mt.length !== 0 ? mt.indexOf(s.label) !== -1 ? 0.85 : g : 0.85,
426
421
  transition: {
427
422
  duration: d.duration
428
423
  }
429
424
  }
430
- }, initial: "initial", animate: z ? "whileInView" : "initial", exit: {
425
+ }, initial: "initial", animate: H ? "whileInView" : "initial", exit: {
431
426
  opacity: 0,
432
427
  transition: {
433
428
  duration: d.duration
434
429
  }
435
430
  }, children: [
436
- Yt ? /* @__PURE__ */ i.jsx(Ee, { value: `${s.label}`.length < nt ? `${s.label}` : `${`${s.label}`.substring(0, nt)}...`, y: 0 - yt.bandwidth() / 2, x: 0 - o.left, width: o.left, height: yt.bandwidth(), alignment: "right", style: n?.yAxis?.labels, className: a?.yAxis?.labels, animate: d, isInView: z }) : null,
431
+ Et ? /* @__PURE__ */ i.jsx(Ee, { value: `${s.label}`.length < et ? `${s.label}` : `${`${s.label}`.substring(0, et)}...`, y: 0 - yt.bandwidth() / 2, x: 0 - o.left, width: o.left, height: yt.bandwidth(), alignment: "right", style: a?.yAxis?.labels, className: n?.yAxis?.labels, animate: d, isInView: H }) : null,
437
432
  /* @__PURE__ */ i.jsx(Ot.line, { y1: 0, y2: 0, style: {
438
433
  strokeWidth: qt,
439
- ...n?.dataConnectors || {},
434
+ ...a?.dataConnectors || {},
440
435
  opacity: $ ? 0.3 : 1
441
- }, className: de("stroke-primary-gray-600 dark:stroke-primary-gray-300", a?.dataConnectors), markerEnd: k && s.x.indexOf(Math.min(...s.x.filter(bi))) === 0 ? "url(#arrow)" : "", markerStart: k && s.x.indexOf(Math.min(...s.x.filter(vi))) === s.x.length - 1 ? "url(#arrow)" : "", exit: {
436
+ }, className: de("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: A && s.x.indexOf(Math.min(...s.x.filter(bi))) === 0 ? "url(#arrow)" : "", markerStart: A && s.x.indexOf(Math.min(...s.x.filter(gi))) === s.x.length - 1 ? "url(#arrow)" : "", exit: {
442
437
  opacity: 0,
443
438
  transition: {
444
439
  duration: d.duration
@@ -449,39 +444,39 @@ function pi(e) {
449
444
  x2: 0
450
445
  },
451
446
  whileInView: {
452
- x1: h(Math.min(...s.x.filter(gi))) + P,
453
- x2: h(Math.max(...s.x.filter(yi))) - P,
447
+ x1: f(Math.min(...s.x.filter(yi))) + P,
448
+ x2: f(Math.max(...s.x.filter(hi))) - P,
454
449
  transition: {
455
450
  duration: d.duration
456
451
  }
457
452
  }
458
- }, initial: "initial", animate: z ? "whileInView" : "initial" }),
459
- s.x.map((m, y) => /* @__PURE__ */ i.jsx(Ot.g, { onMouseEnter: (gt) => {
460
- B({
453
+ }, initial: "initial", animate: H ? "whileInView" : "initial" }),
454
+ s.x.map((m, h) => /* @__PURE__ */ i.jsx(Ot.g, { onMouseEnter: (gt) => {
455
+ ot({
461
456
  ...s,
462
- xIndex: y
463
- }), pt(gt.clientY), xt(gt.clientX), R?.({
457
+ xIndex: h
458
+ }), pt(gt.clientY), xt(gt.clientX), G?.({
464
459
  ...s,
465
- xIndex: y
460
+ xIndex: h
466
461
  });
467
462
  }, onClick: () => {
468
- (F || x) && (Ce(H, {
463
+ (F || V) && (Ce(st, {
469
464
  ...s,
470
- xIndex: y
471
- }) && Gt ? (Dt(void 0), F?.(void 0)) : (Dt({
465
+ xIndex: h
466
+ }) && Ht ? (Tt(void 0), F?.(void 0)) : (Tt({
472
467
  ...s,
473
- xIndex: y
468
+ xIndex: h
474
469
  }), F && F({
475
470
  ...s,
476
- xIndex: y
471
+ xIndex: h
477
472
  })));
478
473
  }, onMouseMove: (gt) => {
479
- B({
474
+ ot({
480
475
  ...s,
481
- xIndex: y
476
+ xIndex: h
482
477
  }), pt(gt.clientY), xt(gt.clientX);
483
478
  }, onMouseLeave: () => {
484
- B(void 0), xt(void 0), pt(void 0), R?.(void 0);
479
+ ot(void 0), xt(void 0), pt(void 0), G?.(void 0);
485
480
  }, exit: {
486
481
  opacity: 0,
487
482
  transition: {
@@ -489,21 +484,21 @@ function pi(e) {
489
484
  }
490
485
  }, variants: {
491
486
  initial: {
492
- opacity: $ ? b[y] === $ ? 1 : 0.3 : 1
487
+ opacity: $ ? b[h] === $ ? 1 : 0.3 : 1
493
488
  },
494
489
  whileInView: {
495
- opacity: $ ? b[y] === $ ? 1 : 0.3 : 1,
490
+ opacity: $ ? b[h] === $ ? 1 : 0.3 : 1,
496
491
  transition: {
497
492
  duration: d.duration
498
493
  }
499
494
  }
500
- }, initial: "initial", animate: z ? "whileInView" : "initial", children: Lt(m) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
495
+ }, initial: "initial", animate: H ? "whileInView" : "initial", children: $t(m) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
501
496
  /* @__PURE__ */ i.jsx(Ot.circle, { cy: 0, r: P, style: {
502
- fill: b[y],
497
+ fill: b[h],
503
498
  fillOpacity: 0.85,
504
- stroke: b[y],
499
+ stroke: b[h],
505
500
  strokeWidth: 1,
506
- opacity: Lt(m) ? 0 : 1
501
+ opacity: $t(m) ? 0 : 1
507
502
  }, exit: {
508
503
  opacity: 0,
509
504
  transition: {
@@ -511,221 +506,217 @@ function pi(e) {
511
506
  }
512
507
  }, variants: {
513
508
  initial: {
514
- cx: h(0),
509
+ cx: f(0),
515
510
  opacity: 0
516
511
  },
517
512
  whileInView: {
518
- cx: h(m || 0),
519
- opacity: Lt(m) ? 0 : 1,
513
+ cx: f(m || 0),
514
+ opacity: $t(m) ? 0 : 1,
520
515
  transition: {
521
516
  duration: d.duration
522
517
  }
523
518
  }
524
- }, initial: "initial", animate: z ? "whileInView" : "initial" }),
525
- Vt ? /* @__PURE__ */ i.jsx(Ot.text, { y: 0, style: {
519
+ }, initial: "initial", animate: H ? "whileInView" : "initial" }),
520
+ Lt ? /* @__PURE__ */ i.jsx(Ot.text, { y: 0, style: {
526
521
  textAnchor: "middle",
527
- ...n?.graphObjectValues || {}
528
- }, dx: 0, dy: 0 - P - 3, className: de("graph-value text-sm font-bold", Lt(m) ? "0opacity-0" : "opacity-100", a?.graphObjectValues), exit: {
522
+ ...a?.graphObjectValues || {}
523
+ }, dx: 0, dy: 0 - P - 3, className: de("graph-value text-sm font-bold", $t(m) ? "0opacity-0" : "opacity-100", n?.graphObjectValues), exit: {
529
524
  opacity: 0,
530
525
  transition: {
531
526
  duration: d.duration
532
527
  }
533
528
  }, variants: {
534
529
  initial: {
535
- x: h(0),
530
+ x: f(0),
536
531
  opacity: 0,
537
- fill: wt || b[y]
532
+ fill: wt || b[h]
538
533
  },
539
534
  whileInView: {
540
- x: h(m || 0),
541
- fill: wt || b[y],
535
+ x: f(m || 0),
536
+ fill: wt || b[h],
542
537
  opacity: 1,
543
538
  transition: {
544
539
  duration: d.duration
545
540
  }
546
541
  }
547
- }, initial: "initial", animate: z ? "whileInView" : "initial", children: ge(m, "NA", I, Ht, $t) }) : null
548
- ] }) }, y))
549
- ] }, s.label)), _ = At ? /* @__PURE__ */ i.jsx(i.Fragment, { children: At.map((s, m) => /* @__PURE__ */ i.jsx(He, { text: s.text, color: s.color, x: h(s.value), y1: 0 - o.top, y2: st + o.bottom, textSide: h(s.value) > ot * 0.75 || u ? "left" : "right", classNames: s.classNames, styles: s.styles, animate: d, isInView: z }, m)) }) : null, t[8] = d, t[9] = k, t[10] = W, t[11] = Xt, t[12] = a?.dataConnectors, t[13] = a?.graphObjectValues, t[14] = a?.xAxis?.gridLines, t[15] = a?.xAxis?.labels, t[16] = a?.xAxis?.title, t[17] = a?.yAxis?.gridLines, t[18] = a?.yAxis?.labels, t[19] = qt, t[20] = j, t[21] = f, t[22] = x, t[23] = v, t[24] = b, t[25] = st, t[26] = ot, t[27] = g, t[28] = mt, t[29] = z, t[30] = V, t[31] = o.bottom, t[32] = o.left, t[33] = o.top, t[34] = dt, t[35] = Et, t[36] = bt, t[37] = at, t[38] = H, t[39] = Ut, t[40] = F, t[41] = R, t[42] = I, t[43] = Ht, t[44] = P, t[45] = At, t[46] = Gt, t[47] = u, t[48] = $, t[49] = Yt, t[50] = jt, t[51] = Vt, t[52] = n?.dataConnectors, t[53] = n?.graphObjectValues, t[54] = n?.xAxis?.gridLines, t[55] = n?.xAxis?.labels, t[56] = n?.xAxis?.title, t[57] = n?.yAxis?.gridLines, t[58] = n?.yAxis?.labels, t[59] = $t, t[60] = kt, t[61] = nt, t[62] = wt, t[63] = ct, t[64] = X, t[65] = Y, t[66] = q, t[67] = C, t[68] = T, t[69] = M, t[70] = U, t[71] = J, t[72] = K, t[73] = Q, t[74] = w, t[75] = A, t[76] = Z, t[77] = _, t[78] = tt;
542
+ }, initial: "initial", animate: H ? "whileInView" : "initial", children: ge(m, "NA", I, Xt, Vt) }) : null
543
+ ] }) }, h))
544
+ ] }, s.label)), Q = At ? /* @__PURE__ */ i.jsx(i.Fragment, { children: At.map((s, m) => /* @__PURE__ */ i.jsx(Be, { text: s.text, color: s.color, x: f(s.value), y1: 0 - o.top, y2: at + o.bottom, textSide: f(s.value) > nt * 0.75 || u ? "left" : "right", classNames: s.classNames, styles: s.styles, animate: d, isInView: H }, m)) }) : null, t[8] = d, t[9] = A, t[10] = W, t[11] = Yt, t[12] = n?.dataConnectors, t[13] = n?.graphObjectValues, t[14] = n?.xAxis?.gridLines, t[15] = n?.xAxis?.labels, t[16] = n?.xAxis?.title, t[17] = n?.yAxis?.gridLines, t[18] = n?.yAxis?.labels, t[19] = qt, t[20] = j, t[21] = p, t[22] = V, t[23] = g, t[24] = b, t[25] = at, t[26] = nt, t[27] = y, t[28] = mt, t[29] = H, t[30] = L, t[31] = o.bottom, t[32] = o.left, t[33] = o.top, t[34] = dt, t[35] = Gt, t[36] = vt, t[37] = it, t[38] = st, t[39] = Ut, t[40] = F, t[41] = G, t[42] = I, t[43] = Xt, t[44] = P, t[45] = At, t[46] = Ht, t[47] = u, t[48] = $, t[49] = Et, t[50] = jt, t[51] = Lt, t[52] = a?.dataConnectors, t[53] = a?.graphObjectValues, t[54] = a?.xAxis?.gridLines, t[55] = a?.xAxis?.labels, t[56] = a?.xAxis?.title, t[57] = a?.yAxis?.gridLines, t[58] = a?.yAxis?.labels, t[59] = Vt, t[60] = kt, t[61] = et, t[62] = wt, t[63] = ct, t[64] = B, t[65] = X, t[66] = R, t[67] = k, t[68] = D, t[69] = C, t[70] = z, t[71] = q, t[72] = U, t[73] = J, t[74] = v, t[75] = w, t[76] = K, t[77] = Q, t[78] = Z;
550
545
  } else
551
- X = t[64], Y = t[65], q = t[66], C = t[67], T = t[68], M = t[69], U = t[70], J = t[71], K = t[72], Q = t[73], w = t[74], A = t[75], Z = t[76], _ = t[77], tt = t[78];
552
- let O;
553
- t[95] !== X || t[96] !== Z || t[97] !== _ ? (O = /* @__PURE__ */ i.jsxs(X, { children: [
554
- Z,
555
- _
556
- ] }), t[95] = X, t[96] = Z, t[97] = _, t[98] = O) : O = t[98];
557
- let D;
558
- t[99] !== j ? (D = j.filter(hi).map(fi), t[99] = j, t[100] = D) : D = t[100];
546
+ B = t[64], X = t[65], R = t[66], k = t[67], D = t[68], C = t[69], z = t[70], q = t[71], U = t[72], J = t[73], v = t[74], w = t[75], K = t[76], Q = t[77], Z = t[78];
547
+ let M;
548
+ t[95] !== B || t[96] !== K || t[97] !== Q ? (M = /* @__PURE__ */ i.jsxs(B, { children: [
549
+ K,
550
+ Q
551
+ ] }), t[95] = B, t[96] = K, t[97] = Q, t[98] = M) : M = t[98];
552
+ let T;
553
+ t[99] !== j ? (T = j.filter(fi).map(pi), t[99] = j, t[100] = T) : T = t[100];
559
554
  let S;
560
- t[101] !== q || t[102] !== C || t[103] !== T || t[104] !== M || t[105] !== O || t[106] !== D || t[107] !== tt ? (S = /* @__PURE__ */ i.jsxs("g", { transform: tt, children: [
561
- q,
555
+ t[101] !== R || t[102] !== k || t[103] !== D || t[104] !== C || t[105] !== M || t[106] !== T || t[107] !== Z ? (S = /* @__PURE__ */ i.jsxs("g", { transform: Z, children: [
556
+ R,
557
+ k,
558
+ D,
562
559
  C,
563
- T,
564
560
  M,
565
- O,
566
- D
567
- ] }), t[101] = q, t[102] = C, t[103] = T, t[104] = M, t[105] = O, t[106] = D, t[107] = tt, t[108] = S) : S = t[108];
568
- let et;
569
- t[109] !== Y || t[110] !== U || t[111] !== J || t[112] !== K || t[113] !== Q || t[114] !== w || t[115] !== A || t[116] !== S ? (et = /* @__PURE__ */ i.jsxs(Y, { width: U, height: J, viewBox: K, direction: Q, ref: w, children: [
570
- A,
561
+ T
562
+ ] }), t[101] = R, t[102] = k, t[103] = D, t[104] = C, t[105] = M, t[106] = T, t[107] = Z, t[108] = S) : S = t[108];
563
+ let _;
564
+ t[109] !== X || t[110] !== z || t[111] !== q || t[112] !== U || t[113] !== J || t[114] !== v || t[115] !== w || t[116] !== S ? (_ = /* @__PURE__ */ i.jsxs(X, { width: z, height: q, viewBox: U, direction: J, ref: v, children: [
565
+ w,
571
566
  S
572
- ] }), t[109] = Y, t[110] = U, t[111] = J, t[112] = K, t[113] = Q, t[114] = w, t[115] = A, t[116] = S, t[117] = et) : et = t[117];
573
- let it;
574
- t[118] !== a?.tooltip || t[119] !== ut || t[120] !== St || t[121] !== Tt || t[122] !== n?.tooltip || t[123] !== L ? (it = Tt && L && ut && St ? /* @__PURE__ */ i.jsx(Oe, { data: Tt, body: L, xPos: ut, yPos: St, backgroundStyle: n?.tooltip, className: a?.tooltip }) : null, t[118] = a?.tooltip, t[119] = ut, t[120] = St, t[121] = Tt, t[122] = n?.tooltip, t[123] = L, t[124] = it) : it = t[124];
567
+ ] }), t[109] = X, t[110] = z, t[111] = q, t[112] = U, t[113] = J, t[114] = v, t[115] = w, t[116] = S, t[117] = _) : _ = t[117];
568
+ let tt;
569
+ t[118] !== n?.tooltip || t[119] !== ut || t[120] !== St || t[121] !== Dt || t[122] !== a?.tooltip || t[123] !== O ? (tt = Dt && O && ut && St ? /* @__PURE__ */ i.jsx(Me, { data: Dt, body: O, xPos: ut, yPos: St, backgroundStyle: a?.tooltip, className: n?.tooltip }) : null, t[118] = n?.tooltip, t[119] = ut, t[120] = St, t[121] = Dt, t[122] = a?.tooltip, t[123] = O, t[124] = tt) : tt = t[124];
575
570
  let ft;
576
- t[125] !== x || t[126] !== H ? (ft = x && H !== void 0 ? /* @__PURE__ */ i.jsx(Me, { open: H !== void 0, onClose: () => {
577
- Dt(void 0);
578
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof x == "string" ? {
579
- __html: Le(x, H)
580
- } : void 0, children: typeof x == "function" ? x(H) : null }) }) : null, t[125] = x, t[126] = H, t[127] = ft) : ft = t[127];
571
+ t[125] !== n?.modal || t[126] !== V || t[127] !== st ? (ft = V && st !== void 0 ? /* @__PURE__ */ i.jsx(Ve, { body: V, data: st, setData: Tt, className: n?.modal }) : null, t[125] = n?.modal, t[126] = V, t[127] = st, t[128] = ft) : ft = t[128];
581
572
  let ht;
582
- return t[128] !== et || t[129] !== it || t[130] !== ft ? (ht = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
583
- et,
584
- it,
573
+ return t[129] !== _ || t[130] !== tt || t[131] !== ft ? (ht = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
574
+ _,
575
+ tt,
585
576
  ft
586
- ] }), t[128] = et, t[129] = it, t[130] = ft, t[131] = ht) : ht = t[131], ht;
577
+ ] }), t[129] = _, t[130] = tt, t[131] = ft, t[132] = ht) : ht = t[132], ht;
587
578
  }
588
- function fi(e) {
579
+ function pi(e) {
589
580
  return e.layer;
590
581
  }
591
- function hi(e) {
582
+ function fi(e) {
592
583
  return e.position === "after";
593
584
  }
594
- function yi(e) {
585
+ function hi(e) {
595
586
  return e !== null;
596
587
  }
597
- function gi(e) {
588
+ function yi(e) {
598
589
  return e !== null;
599
590
  }
600
- function vi(e) {
591
+ function gi(e) {
601
592
  return e !== null;
602
593
  }
603
594
  function bi(e) {
604
595
  return e !== null;
605
596
  }
606
- function wi(e) {
597
+ function vi(e) {
607
598
  return e.layer;
608
599
  }
609
- function Ai(e) {
600
+ function wi(e) {
610
601
  return e.position === "before";
611
602
  }
612
- function ki(e, t) {
603
+ function Ai(e, t) {
613
604
  return t !== 0;
614
605
  }
615
- function Ci(e, t) {
606
+ function ki(e, t) {
616
607
  return t !== 0;
617
608
  }
618
- function Mi(e) {
609
+ function Ci(e) {
619
610
  return `${e.id}`;
620
611
  }
621
- function Mn(e) {
622
- const t = ve.c(43), {
623
- data: f,
612
+ function kn(e) {
613
+ const t = be.c(43), {
614
+ data: p,
624
615
  graphTitle: Ft,
625
616
  colors: ie,
626
617
  sources: Wt,
627
618
  graphDescription: Bt,
628
619
  barPadding: b,
629
- showTicks: $t,
630
- leftMargin: Ht,
631
- rightMargin: Xt,
632
- topMargin: Vt,
620
+ showTicks: Vt,
621
+ leftMargin: Xt,
622
+ rightMargin: Yt,
623
+ topMargin: Lt,
633
624
  bottomMargin: jt,
634
- truncateBy: nt,
625
+ truncateBy: et,
635
626
  height: ct,
636
- width: g,
627
+ width: y,
637
628
  footNote: P,
638
- colorDomain: Yt,
639
- colorLegendTitle: L,
640
- padding: R,
641
- backgroundColor: Et,
642
- radius: at,
629
+ colorDomain: Et,
630
+ colorLegendTitle: O,
631
+ padding: G,
632
+ backgroundColor: Gt,
633
+ radius: it,
643
634
  tooltip: F,
644
635
  showLabels: $,
645
- relativeHeight: k,
636
+ relativeHeight: A,
646
637
  onSeriesMouseOver: qt,
647
638
  graphID: dt,
648
- suffix: bt,
649
- prefix: Gt,
650
- maxValue: x,
639
+ suffix: vt,
640
+ prefix: Ht,
641
+ maxValue: V,
651
642
  minValue: W,
652
643
  onSeriesMouseClick: Ut,
653
644
  graphDownload: wt,
654
- dataDownload: n,
655
- showValues: a,
656
- sortParameter: V,
645
+ dataDownload: a,
646
+ showValues: n,
647
+ sortParameter: L,
657
648
  arrowConnector: At,
658
649
  connectorStrokeWidth: u,
659
650
  language: d,
660
651
  minHeight: I,
661
652
  theme: j,
662
653
  maxBarThickness: mt,
663
- maxNumberOfBars: v,
654
+ maxNumberOfBars: g,
664
655
  minBarThickness: Jt,
665
656
  ariaLabel: It,
666
657
  resetSelectionOnDoubleClick: kt,
667
658
  detailsOnClick: ne,
668
659
  axisTitle: Kt,
669
660
  noOfTicks: N,
670
- valueColor: z,
661
+ valueColor: H,
671
662
  orientation: Nt,
672
- styles: r,
663
+ styles: l,
673
664
  classNames: o,
674
- labelOrder: ot,
675
- refValues: st,
676
- filterNA: Tt,
677
- animate: B,
678
- precision: H,
679
- showColorScale: Dt,
665
+ labelOrder: nt,
666
+ refValues: at,
667
+ filterNA: Dt,
668
+ animate: ot,
669
+ precision: st,
670
+ showColorScale: Tt,
680
671
  customLayers: ut,
681
672
  highlightedDataPoints: xt,
682
673
  dimmedOpacity: St,
683
674
  timeline: pt,
684
- sortData: X
685
- } = e, Y = ie === void 0 ? _e.light.categoricalColors.colors : ie, q = b === void 0 ? 0.25 : b, C = $t === void 0 ? !0 : $t, T = nt === void 0 ? 999 : nt, M = Et === void 0 ? !0 : Et, U = at === void 0 ? 3 : at, J = $ === void 0 ? !0 : $, K = bt === void 0 ? "" : bt, Q = Gt === void 0 ? "" : Gt, w = wt === void 0 ? !1 : wt, A = n === void 0 ? !1 : n, Z = a === void 0 ? !0 : a, _ = At === void 0 ? !1 : At, tt = u === void 0 ? 2 : u, O = d === void 0 ? "en" : d, D = I === void 0 ? 0 : I, S = j === void 0 ? "light" : j, et = kt === void 0 ? !0 : kt, it = N === void 0 ? 5 : N, ft = Nt === void 0 ? "vertical" : Nt, ht = Tt === void 0 ? !0 : Tt, Ct = B === void 0 ? !1 : B, Qt = H === void 0 ? 2 : H, E = Dt === void 0 ? !0 : Dt;
686
- let h;
687
- t[0] !== ut ? (h = ut === void 0 ? [] : ut, t[0] = ut, t[1] = h) : h = t[1];
688
- const yt = h;
675
+ sortData: B
676
+ } = e, X = ie === void 0 ? Ze.light.categoricalColors.colors : ie, R = b === void 0 ? 0.25 : b, k = Vt === void 0 ? !0 : Vt, D = et === void 0 ? 999 : et, C = Gt === void 0 ? !0 : Gt, z = it === void 0 ? 3 : it, q = $ === void 0 ? !0 : $, U = vt === void 0 ? "" : vt, J = Ht === void 0 ? "" : Ht, v = wt === void 0 ? !1 : wt, w = a === void 0 ? !1 : a, K = n === void 0 ? !0 : n, Q = At === void 0 ? !1 : At, Z = u === void 0 ? 2 : u, M = d === void 0 ? "en" : d, T = I === void 0 ? 0 : I, S = j === void 0 ? "light" : j, _ = kt === void 0 ? !0 : kt, tt = N === void 0 ? 5 : N, ft = Nt === void 0 ? "vertical" : Nt, ht = Dt === void 0 ? !0 : Dt, Ct = ot === void 0 ? !1 : ot, Qt = st === void 0 ? 2 : st, Y = Tt === void 0 ? !0 : Tt;
677
+ let f;
678
+ t[0] !== ut ? (f = ut === void 0 ? [] : ut, t[0] = ut, t[1] = f) : f = t[1];
679
+ const yt = f;
689
680
  let Zt;
690
681
  t[2] !== xt ? (Zt = xt === void 0 ? [] : xt, t[2] = xt, t[3] = Zt) : Zt = t[3];
691
- const ae = Zt, _t = St === void 0 ? 0.3 : St, p = pt === void 0 ? {
682
+ const ae = Zt, _t = St === void 0 ? 0.3 : St, x = pt === void 0 ? {
692
683
  enabled: !1,
693
684
  autoplay: !1,
694
685
  showOnlyActiveDate: !0
695
- } : pt, [Rt, te] = vt(0), [Mt, ee] = vt(0), [rt, s] = vt(p.autoplay), m = ti(Ge(f, "date", !0).map((c) => Se(`${c}`, p.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Ei), [y, gt] = vt(p.autoplay ? 0 : m.length - 1), [re, l] = vt(void 0), lt = me(null), G = me(null);
696
- let zt, le;
686
+ } : pt, [Rt, te] = bt(0), [Mt, ee] = bt(0), [lt, s] = bt(x.autoplay), m = _e(Ge(p, "date", !0).map((c) => Te(`${c}`, x.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Ei), [h, gt] = bt(x.autoplay ? 0 : m.length - 1), [le, r] = bt(void 0), rt = me(null), E = me(null);
687
+ let zt, re;
697
688
  t[4] === Symbol.for("react.memo_cache_sentinel") ? (zt = () => {
698
689
  const c = new ResizeObserver((Pt) => {
699
690
  te(Pt[0].target.clientWidth || 620), ee(Pt[0].target.clientHeight || 480);
700
691
  });
701
- return lt.current && c.observe(lt.current), () => c.disconnect();
702
- }, le = [], t[4] = zt, t[5] = le) : (zt = t[4], le = t[5]), ke(zt, le), ke(() => {
692
+ return rt.current && c.observe(rt.current), () => c.disconnect();
693
+ }, re = [], t[4] = zt, t[5] = re) : (zt = t[4], re = t[5]), ke(zt, re), ke(() => {
703
694
  const c = setInterval(() => {
704
695
  gt((Pt) => Pt < m.length - 1 ? Pt + 1 : 0);
705
- }, (p.speed || 2) * 1e3);
706
- return rt || clearInterval(c), () => clearInterval(c);
707
- }, [m, rt, p.speed]);
708
- const be = Pe(m, y, p.showOnlyActiveDate, p.dateFormat || "yyyy"), De = ft === "horizontal" ? pi : ii, ue = ze, xe = o?.graphContainer, pe = r?.graphContainer;
696
+ }, (x.speed || 2) * 1e3);
697
+ return lt || clearInterval(c), () => clearInterval(c);
698
+ }, [m, lt, x.speed]);
699
+ const ve = Se(m, h, x.showOnlyActiveDate, x.dateFormat || "yyyy"), De = ft === "horizontal" ? xi : ei, ue = Re, xe = o?.graphContainer, pe = l?.graphContainer;
709
700
  let oe;
710
- t[6] !== o?.description || t[7] !== o?.title || t[8] !== f || t[9] !== A || t[10] !== Bt || t[11] !== w || t[12] !== Ft || t[13] !== r?.description || t[14] !== r?.title || t[15] !== g ? (oe = Ft || Bt || w || A ? /* @__PURE__ */ i.jsx(qe, { styles: {
711
- title: r?.title,
712
- description: r?.description
701
+ t[6] !== o?.description || t[7] !== o?.title || t[8] !== p || t[9] !== w || t[10] !== Bt || t[11] !== v || t[12] !== Ft || t[13] !== l?.description || t[14] !== l?.title || t[15] !== y ? (oe = Ft || Bt || v || w ? /* @__PURE__ */ i.jsx(ze, { styles: {
702
+ title: l?.title,
703
+ description: l?.description
713
704
  }, classNames: {
714
705
  title: o?.title,
715
706
  description: o?.description
716
- }, graphTitle: Ft, graphDescription: Bt, width: g, graphDownload: w ? G : void 0, dataDownload: A ? f.map(Yi).filter(Xi).length > 0 ? f.map(Hi).filter(Bi) : f.filter(Wi) : null }) : null, t[6] = o?.description, t[7] = o?.title, t[8] = f, t[9] = A, t[10] = Bt, t[11] = w, t[12] = Ft, t[13] = r?.description, t[14] = r?.title, t[15] = g, t[16] = oe) : oe = t[16];
717
- const fe = p.enabled && m.length > 0 && be ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
707
+ }, graphTitle: Ft, graphDescription: Bt, width: y, graphDownload: v ? E : void 0, dataDownload: w ? p.map(Yi).filter(Xi).length > 0 ? p.map(Bi).filter(Wi) : p.filter(Fi) : null }) : null, t[6] = o?.description, t[7] = o?.title, t[8] = p, t[9] = w, t[10] = Bt, t[11] = v, t[12] = Ft, t[13] = l?.description, t[14] = l?.title, t[15] = y, t[16] = oe) : oe = t[16];
708
+ const fe = x.enabled && m.length > 0 && ve ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
718
709
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
719
- s(!rt);
720
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": rt ? "Click to pause animation" : "Click to play animation", children: rt ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
721
- /* @__PURE__ */ i.jsx(Fe, { min: m[0], max: m[m.length - 1], marks: be, step: null, defaultValue: m[m.length - 1], value: m[y], onChangeComplete: (c) => {
710
+ s(!lt);
711
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": lt ? "Click to pause animation" : "Click to play animation", children: lt ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
712
+ /* @__PURE__ */ i.jsx(Pe, { min: m[0], max: m[m.length - 1], marks: ve, step: null, defaultValue: m[m.length - 1], value: m[h], onChangeComplete: (c) => {
722
713
  gt(m.indexOf(c));
723
714
  }, onChange: (c) => {
724
715
  gt(m.indexOf(c));
725
716
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
726
- ] }) : null, he = f.length === 0 ? /* @__PURE__ */ i.jsx(Ze, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
727
- E ? /* @__PURE__ */ i.jsx(Qe, { width: g, colorDomain: Yt, colors: Y, colorLegendTitle: L, setSelectedColor: l, showNAColor: !1, className: o?.colorLegend }) : null,
728
- /* @__PURE__ */ i.jsx(Re, { ref: lt, children: Rt && Mt ? /* @__PURE__ */ i.jsx(De, { data: V !== void 0 ? V === "diff" ? we(ye(f, p.dateFormat || "yyyy").filter((c) => p.enabled ? c.date === Ae(new Date(m[y]), p.dateFormat || "yyyy") : c).filter((c) => ht ? !c.x.every(Fi) : c), Pi, [X || "asc"]).filter((c, Pt) => v ? Pt < v : !0) : we(ye(f, p.dateFormat || "yyyy").filter((c) => p.enabled ? c.date === Ae(new Date(m[y]), p.dateFormat || "yyyy") : c).filter((c) => ht ? !c.x.every(Si) : c), (c) => Lt(c.x[V]) ? -1 / 0 : c.x[V], [X || "asc"]).filter((c, Pt) => v ? Pt < v : !0) : ye(f, p.dateFormat || "yyyy").filter((c) => ht ? !c.x.every(Di) : c).filter((c, Pt) => v ? Pt < v : !0), dotColors: Y, width: Rt, height: Mt, radius: U, barPadding: q, showTicks: C, leftMargin: Ht, rightMargin: Xt, topMargin: Vt, bottomMargin: jt, truncateBy: T, showLabels: J, showValues: Z, tooltip: F, suffix: K, prefix: Q, onSeriesMouseOver: qt, maxValue: Lt(x) ? Math.max(...f.map(Ni)) < 0 ? 0 : Math.max(...f.map(ji)) : x, minValue: Lt(W) ? Math.min(...f.map($i)) > 0 ? 0 : Math.min(...f.map(Oi)) : W, onSeriesMouseClick: Ut, selectedColor: re, arrowConnector: _, connectorStrokeWidth: tt, maxBarThickness: mt, minBarThickness: Jt, resetSelectionOnDoubleClick: et, detailsOnClick: ne, axisTitle: Kt, noOfTicks: it, valueColor: z, styles: r, classNames: o, labelOrder: ot, refValues: st, animate: Ct === !0 ? {
717
+ ] }) : null, he = p.length === 0 ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
718
+ Y ? /* @__PURE__ */ i.jsx(Ke, { width: y, colorDomain: Et, colors: X, colorLegendTitle: O, setSelectedColor: r, showNAColor: !1, className: o?.colorLegend }) : null,
719
+ /* @__PURE__ */ i.jsx(He, { ref: rt, children: Rt && Mt ? /* @__PURE__ */ i.jsx(De, { data: L !== void 0 ? L === "diff" ? we(ye(p, x.dateFormat || "yyyy").filter((c) => x.enabled ? c.date === Ae(new Date(m[h]), x.dateFormat || "yyyy") : c).filter((c) => ht ? !c.x.every(Pi) : c), Si, [B || "asc"]).filter((c, Pt) => g ? Pt < g : !0) : we(ye(p, x.dateFormat || "yyyy").filter((c) => x.enabled ? c.date === Ae(new Date(m[h]), x.dateFormat || "yyyy") : c).filter((c) => ht ? !c.x.every(Ti) : c), (c) => $t(c.x[L]) ? -1 / 0 : c.x[L], [B || "asc"]).filter((c, Pt) => g ? Pt < g : !0) : ye(p, x.dateFormat || "yyyy").filter((c) => ht ? !c.x.every(Di) : c).filter((c, Pt) => g ? Pt < g : !0), dotColors: X, width: Rt, height: Mt, radius: z, barPadding: R, showTicks: k, leftMargin: Xt, rightMargin: Yt, topMargin: Lt, bottomMargin: jt, truncateBy: D, showLabels: q, showValues: K, tooltip: F, suffix: U, prefix: J, onSeriesMouseOver: qt, maxValue: $t(V) ? Math.max(...p.map(Ii)) < 0 ? 0 : Math.max(...p.map(Li)) : V, minValue: $t(W) ? Math.min(...p.map($i)) > 0 ? 0 : Math.min(...p.map(Mi)) : W, onSeriesMouseClick: Ut, selectedColor: le, arrowConnector: Q, connectorStrokeWidth: Z, maxBarThickness: mt, minBarThickness: Jt, resetSelectionOnDoubleClick: _, detailsOnClick: ne, axisTitle: Kt, noOfTicks: tt, valueColor: H, styles: l, classNames: o, labelOrder: nt, refValues: at, animate: Ct === !0 ? {
729
720
  duration: 0.5,
730
721
  once: !0,
731
722
  amount: 0.5
@@ -733,28 +724,28 @@ function Mn(e) {
733
724
  duration: 0,
734
725
  once: !0,
735
726
  amount: 0
736
- }, precision: Qt, customLayers: yt, highlightedDataPoints: ae, dimmedOpacity: _t, rtl: O === "ar" || O === "he" }) : null })
727
+ }, precision: Qt, customLayers: yt, highlightedDataPoints: ae, dimmedOpacity: _t, rtl: M === "ar" || M === "he" }) : null })
737
728
  ] });
738
729
  let se;
739
- t[17] !== o?.footnote || t[18] !== o?.source || t[19] !== P || t[20] !== Wt || t[21] !== r?.footnote || t[22] !== r?.source || t[23] !== g ? (se = Wt || P ? /* @__PURE__ */ i.jsx(Ke, { styles: {
740
- footnote: r?.footnote,
741
- source: r?.source
730
+ t[17] !== o?.footnote || t[18] !== o?.source || t[19] !== P || t[20] !== Wt || t[21] !== l?.footnote || t[22] !== l?.source || t[23] !== y ? (se = Wt || P ? /* @__PURE__ */ i.jsx(Je, { styles: {
731
+ footnote: l?.footnote,
732
+ source: l?.source
742
733
  }, classNames: {
743
734
  footnote: o?.footnote,
744
735
  source: o?.source
745
- }, sources: Wt, footNote: P, width: g }) : null, t[17] = o?.footnote, t[18] = o?.source, t[19] = P, t[20] = Wt, t[21] = r?.footnote, t[22] = r?.source, t[23] = g, t[24] = se) : se = t[24];
736
+ }, sources: Wt, footNote: P, width: y }) : null, t[17] = o?.footnote, t[18] = o?.source, t[19] = P, t[20] = Wt, t[21] = l?.footnote, t[22] = l?.source, t[23] = y, t[24] = se) : se = t[24];
746
737
  let ce;
747
- return t[25] !== ue || t[26] !== It || t[27] !== M || t[28] !== dt || t[29] !== ct || t[30] !== O || t[31] !== D || t[32] !== R || t[33] !== k || t[34] !== xe || t[35] !== pe || t[36] !== oe || t[37] !== fe || t[38] !== he || t[39] !== se || t[40] !== S || t[41] !== g ? (ce = /* @__PURE__ */ i.jsxs(ue, { className: xe, style: pe, id: dt, ref: G, "aria-label": It, backgroundColor: M, theme: S, language: O, minHeight: D, width: g, height: ct, relativeHeight: k, padding: R, children: [
738
+ return t[25] !== ue || t[26] !== It || t[27] !== C || t[28] !== dt || t[29] !== ct || t[30] !== M || t[31] !== T || t[32] !== G || t[33] !== A || t[34] !== xe || t[35] !== pe || t[36] !== oe || t[37] !== fe || t[38] !== he || t[39] !== se || t[40] !== S || t[41] !== y ? (ce = /* @__PURE__ */ i.jsxs(ue, { className: xe, style: pe, id: dt, ref: E, "aria-label": It, backgroundColor: C, theme: S, language: M, minHeight: T, width: y, height: ct, relativeHeight: A, padding: G, children: [
748
739
  oe,
749
740
  fe,
750
741
  he,
751
742
  se
752
- ] }), t[25] = ue, t[26] = It, t[27] = M, t[28] = dt, t[29] = ct, t[30] = O, t[31] = D, t[32] = R, t[33] = k, t[34] = xe, t[35] = pe, t[36] = oe, t[37] = fe, t[38] = he, t[39] = se, t[40] = S, t[41] = g, t[42] = ce) : ce = t[42], ce;
743
+ ] }), t[25] = ue, t[26] = It, t[27] = C, t[28] = dt, t[29] = ct, t[30] = M, t[31] = T, t[32] = G, t[33] = A, t[34] = xe, t[35] = pe, t[36] = oe, t[37] = fe, t[38] = he, t[39] = se, t[40] = S, t[41] = y, t[42] = ce) : ce = t[42], ce;
753
744
  }
754
- function Oi(e) {
755
- return Math.min(...e.x.filter(Li));
745
+ function Mi(e) {
746
+ return Math.min(...e.x.filter(Oi));
756
747
  }
757
- function Li(e) {
748
+ function Oi(e) {
758
749
  return e !== null;
759
750
  }
760
751
  function $i(e) {
@@ -763,37 +754,37 @@ function $i(e) {
763
754
  function Vi(e) {
764
755
  return e !== null;
765
756
  }
757
+ function Li(e) {
758
+ return Math.max(...e.x.filter(ji));
759
+ }
766
760
  function ji(e) {
767
- return Math.max(...e.x.filter(Ii));
761
+ return e !== null;
768
762
  }
769
763
  function Ii(e) {
770
- return e !== null;
764
+ return Math.max(...e.x.filter(Ni));
771
765
  }
772
766
  function Ni(e) {
773
- return Math.max(...e.x.filter(Ti));
774
- }
775
- function Ti(e) {
776
767
  return e !== null;
777
768
  }
778
769
  function Di(e) {
779
770
  return e == null;
780
771
  }
781
- function Si(e) {
772
+ function Ti(e) {
782
773
  return e == null;
783
774
  }
775
+ function Si(e) {
776
+ return $t(e.x[e.x.length - 1]) || $t(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
777
+ }
784
778
  function Pi(e) {
785
- return Lt(e.x[e.x.length - 1]) || Lt(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
779
+ return e == null;
786
780
  }
787
781
  function Fi(e) {
788
- return e == null;
782
+ return e !== void 0;
789
783
  }
790
784
  function Wi(e) {
791
785
  return e !== void 0;
792
786
  }
793
787
  function Bi(e) {
794
- return e !== void 0;
795
- }
796
- function Hi(e) {
797
788
  return e.data;
798
789
  }
799
790
  function Xi(e) {
@@ -803,9 +794,9 @@ function Yi(e) {
803
794
  return e.data;
804
795
  }
805
796
  function Ei(e, t) {
806
- return ei(e, t);
797
+ return ti(e, t);
807
798
  }
808
799
  export {
809
- Mn as DumbbellChart
800
+ kn as DumbbellChart
810
801
  };
811
802
  //# sourceMappingURL=DumbbellChart.js.map