@undp/data-viz 2.1.3 → 2.1.5

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 (154) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +279 -272
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs +1 -1
  15. package/dist/BiVariateChoroplethMap.js +1 -1
  16. package/dist/BulletChart.cjs +1 -1
  17. package/dist/BulletChart.cjs.map +1 -1
  18. package/dist/BulletChart.js +298 -287
  19. package/dist/BulletChart.js.map +1 -1
  20. package/dist/ButterflyChart.cjs +1 -1
  21. package/dist/ButterflyChart.cjs.map +1 -1
  22. package/dist/ButterflyChart.js +224 -217
  23. package/dist/ButterflyChart.js.map +1 -1
  24. package/dist/ChoroplethMap.cjs +1 -1
  25. package/dist/ChoroplethMap.js +1 -1
  26. package/dist/CirclePackingGraph.cjs +1 -1
  27. package/dist/CirclePackingGraph.js +2 -2
  28. package/dist/DifferenceLineChart.cjs +1 -1
  29. package/dist/DifferenceLineChart.cjs.map +1 -1
  30. package/dist/DifferenceLineChart.js +404 -397
  31. package/dist/DifferenceLineChart.js.map +1 -1
  32. package/dist/DonutChart.cjs +1 -1
  33. package/dist/DonutChart.cjs.map +1 -1
  34. package/dist/DonutChart.js +116 -113
  35. package/dist/DonutChart.js.map +1 -1
  36. package/dist/DotDensityMap.cjs +1 -1
  37. package/dist/DotDensityMap.js +1 -1
  38. package/dist/DualAxisLineChart.cjs +1 -1
  39. package/dist/DualAxisLineChart.cjs.map +1 -1
  40. package/dist/DualAxisLineChart.js +320 -313
  41. package/dist/DualAxisLineChart.js.map +1 -1
  42. package/dist/DumbbellChart.cjs +1 -1
  43. package/dist/DumbbellChart.cjs.map +1 -1
  44. package/dist/DumbbellChart.js +298 -291
  45. package/dist/DumbbellChart.js.map +1 -1
  46. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  47. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  48. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  49. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  50. package/dist/GraphEl-BixTEyKW.cjs +2 -0
  51. package/dist/GraphEl-BixTEyKW.cjs.map +1 -0
  52. package/dist/{GraphEl-CRrAlbcr.js → GraphEl-Dyu_EIQb.js} +3 -2
  53. package/dist/GraphEl-Dyu_EIQb.js.map +1 -0
  54. package/dist/GriddedGraphs.cjs +1 -1
  55. package/dist/GriddedGraphs.js +2 -2
  56. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  57. package/dist/GriddedGraphsFromConfig.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.cjs.map +1 -1
  60. package/dist/HeatMap.js +179 -172
  61. package/dist/HeatMap.js.map +1 -1
  62. package/dist/Histogram.cjs +1 -1
  63. package/dist/Histogram.js +2 -2
  64. package/dist/HybridMap.cjs +1 -1
  65. package/dist/HybridMap.js +1 -1
  66. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  67. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  68. package/dist/LineChartWithConfidenceInterval.js +368 -361
  69. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  70. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  71. package/dist/MultiGraphDashboardFromConfig.js +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  73. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  74. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  75. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
  76. package/dist/MultiLineAltChart.cjs +1 -1
  77. package/dist/MultiLineAltChart.cjs.map +1 -1
  78. package/dist/MultiLineAltChart.js +327 -320
  79. package/dist/MultiLineAltChart.js.map +1 -1
  80. package/dist/MultiLineChart.cjs +1 -1
  81. package/dist/MultiLineChart.cjs.map +1 -1
  82. package/dist/MultiLineChart.js +374 -367
  83. package/dist/MultiLineChart.js.map +1 -1
  84. package/dist/ParetoChart.cjs +1 -1
  85. package/dist/ParetoChart.cjs.map +1 -1
  86. package/dist/ParetoChart.js +385 -378
  87. package/dist/ParetoChart.js.map +1 -1
  88. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  89. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
  90. package/dist/RadarChart.cjs +1 -1
  91. package/dist/RadarChart.cjs.map +1 -1
  92. package/dist/RadarChart.js +34 -33
  93. package/dist/RadarChart.js.map +1 -1
  94. package/dist/SankeyChart.cjs +1 -1
  95. package/dist/SankeyChart.cjs.map +1 -1
  96. package/dist/SankeyChart.js +176 -169
  97. package/dist/SankeyChart.js.map +1 -1
  98. package/dist/ScatterPlot.cjs +1 -1
  99. package/dist/ScatterPlot.cjs.map +1 -1
  100. package/dist/ScatterPlot.js +366 -359
  101. package/dist/ScatterPlot.js.map +1 -1
  102. package/dist/SimpleLineChart.cjs +1 -1
  103. package/dist/SimpleLineChart.cjs.map +1 -1
  104. package/dist/SimpleLineChart.js +285 -278
  105. package/dist/SimpleLineChart.js.map +1 -1
  106. package/dist/SingleGraphDashboard.cjs +1 -1
  107. package/dist/SingleGraphDashboard.js +2 -2
  108. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  109. package/dist/SingleGraphDashboardFromConfig.js +1 -1
  110. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  111. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
  112. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  113. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  114. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  115. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
  116. package/dist/SlopeChart.cjs +1 -1
  117. package/dist/SlopeChart.cjs.map +1 -1
  118. package/dist/SlopeChart.js +243 -236
  119. package/dist/SlopeChart.js.map +1 -1
  120. package/dist/Spinner-CQZcjzwd.cjs +2 -0
  121. package/dist/Spinner-CQZcjzwd.cjs.map +1 -0
  122. package/dist/{Spinner-D7rnnwnA.js → Spinner-DVBnY6Vg.js} +5 -5
  123. package/dist/Spinner-DVBnY6Vg.js.map +1 -0
  124. package/dist/StripChart.cjs +1 -1
  125. package/dist/StripChart.cjs.map +1 -1
  126. package/dist/StripChart.js +293 -286
  127. package/dist/StripChart.js.map +1 -1
  128. package/dist/ThreeDGlobe.cjs +1 -1
  129. package/dist/ThreeDGlobe.js +1 -1
  130. package/dist/TreeMapGraph.cjs +1 -1
  131. package/dist/TreeMapGraph.cjs.map +1 -1
  132. package/dist/TreeMapGraph.js +222 -215
  133. package/dist/TreeMapGraph.js.map +1 -1
  134. package/dist/index-R1gTfap5.js +337 -0
  135. package/dist/index-R1gTfap5.js.map +1 -0
  136. package/dist/index-WML2dCZ0.cjs +2 -0
  137. package/dist/{index-CF5hnGvG.cjs.map → index-WML2dCZ0.cjs.map} +1 -1
  138. package/dist/index.cjs +1 -1
  139. package/dist/index.d.ts +2 -0
  140. package/dist/index.js +1 -1
  141. package/dist/style.css +1 -1
  142. package/package.json +2 -2
  143. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  144. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  145. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  146. package/dist/GraphEl-BLMih7RN.cjs +0 -2
  147. package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
  148. package/dist/GraphEl-CRrAlbcr.js.map +0 -1
  149. package/dist/Spinner-D7rnnwnA.js.map +0 -1
  150. package/dist/Spinner-DRMBUsX7.cjs +0 -2
  151. package/dist/Spinner-DRMBUsX7.cjs.map +0 -1
  152. package/dist/index-CF5hnGvG.cjs +0 -2
  153. package/dist/index-DPGq3eIL.js +0 -330
  154. package/dist/index-DPGq3eIL.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { c as Te, m as ge, j as o } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as he, useState as Xt, useEffect as $e } from "react";
3
- import { p as w, f as Re } from "./parse-DlCRUFh_.js";
1
+ import { c as Te, m as he, j as o } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as ye, useState as Pt, useEffect as $e } from "react";
3
+ import { p as A, f as Re } from "./parse-DlCRUFh_.js";
4
4
  import { l as He, a as Fe } from "./simple-statistics-flVzqVtt.js";
5
5
  import { o as Ie } from "./index-BZQYSqar.js";
6
6
  import { n as Se } from "./numberFormattingFunction-14YCbkN2.js";
7
7
  import { T as We } from "./Tooltip-Dj5eVppQ.js";
8
- import { c as bt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
+ import { c as Ot } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
9
  import { g as Ye, A as Xe, C as Ge } from "./customArea-BUhPiPT6.js";
10
10
  import { A as Pe } from "./Axis-CRyfcLjc.js";
11
11
  import { A as Ee } from "./AxisTitle-jeI7am8o.js";
@@ -22,192 +22,192 @@ import { s as ni } from "./select-DKy99ogv.js";
22
22
  import { a as si } from "./init-BhZylTFx.js";
23
23
  import { p as ai } from "./pointer-CWRWOsrb.js";
24
24
  import { u as ri } from "./use-in-view-Cxa7y1TH.js";
25
- import { m as _t } from "./proxy-BxkFHwUw.js";
25
+ import { m as ee } from "./proxy-BxkFHwUw.js";
26
26
  import { GraphFooter as li } from "./GraphFooter.js";
27
27
  import { GraphHeader as ci } from "./GraphHeader.js";
28
28
  import { Colors as mi } from "./Colors.js";
29
- import { E as fi } from "./EmptyState-BZo1BbAn.js";
29
+ import { E as fi } from "./EmptyState-C7ZXkZWd.js";
30
30
  import { a as ui, G as pi } from "./GraphContainer-CRqzdKu2.js";
31
31
  import { g as xi } from "./getNoOfTicks-CpmRjcRF.js";
32
32
  function di(i) {
33
33
  const t = Te.c(110), {
34
- data: A,
35
- width: Y,
36
- height: nt,
37
- lineColor: X,
34
+ data: y,
35
+ width: G,
36
+ height: st,
37
+ lineColor: P,
38
38
  suffix: b,
39
- prefix: T,
39
+ prefix: V,
40
40
  dateFormat: n,
41
- highlightAreaSettings: st,
41
+ highlightAreaSettings: at,
42
42
  showValues: C,
43
- noOfXTicks: Ct,
44
- rightMargin: jt,
45
- leftMargin: O,
46
- topMargin: Ot,
47
- bottomMargin: at,
48
- tooltip: rt,
49
- onSeriesMouseOver: Dt,
50
- refValues: Gt,
51
- minValue: Pt,
52
- maxValue: lt,
43
+ noOfXTicks: jt,
44
+ rightMargin: Dt,
45
+ leftMargin: D,
46
+ topMargin: Lt,
47
+ bottomMargin: rt,
48
+ tooltip: lt,
49
+ onSeriesMouseOver: kt,
50
+ refValues: Et,
51
+ minValue: Bt,
52
+ maxValue: ct,
53
53
  animate: s,
54
- rtl: Lt,
55
- strokeWidth: ct,
56
- showDots: kt,
57
- annotations: Et,
58
- customHighlightAreaSettings: mt,
59
- regressionLine: ft,
60
- yAxisTitle: G,
61
- noOfYTicks: Bt,
62
- maxDate: zt,
63
- minDate: Ut,
64
- curveType: ut,
54
+ rtl: $t,
55
+ strokeWidth: mt,
56
+ showDots: St,
57
+ annotations: zt,
58
+ customHighlightAreaSettings: ft,
59
+ regressionLine: ut,
60
+ yAxisTitle: E,
61
+ noOfYTicks: Ut,
62
+ maxDate: qt,
63
+ minDate: Jt,
64
+ curveType: pt,
65
65
  styles: d,
66
66
  classNames: p,
67
- precision: N,
68
- customLayers: M
69
- } = i, qt = he(null);
70
- let V;
71
- t[0] !== s.amount || t[1] !== s.once ? (V = {
67
+ precision: R,
68
+ customLayers: H
69
+ } = i, Kt = ye(null);
70
+ let F;
71
+ t[0] !== s.amount || t[1] !== s.once ? (F = {
72
72
  once: s.once,
73
73
  amount: s.amount
74
- }, t[0] = s.amount, t[1] = s.once, t[2] = V) : V = t[2];
75
- const f = ri(qt, V), [j, Jt] = Xt(!1);
76
- let pt, P;
77
- t[3] !== s.duration || t[4] !== j || t[5] !== f ? (pt = () => {
78
- if (f && !j) {
74
+ }, t[0] = s.amount, t[1] = s.once, t[2] = F) : F = t[2];
75
+ const f = ri(Kt, F), [O, Qt] = Pt(!1);
76
+ let xt, B;
77
+ t[3] !== s.duration || t[4] !== O || t[5] !== f ? (xt = () => {
78
+ if (f && !O) {
79
79
  const e = setTimeout(() => {
80
- Jt(!0);
80
+ Qt(!0);
81
81
  }, (s.duration + 0.5) * 1e3);
82
82
  return () => clearTimeout(e);
83
83
  }
84
- }, P = [f, j, s.duration], t[3] = s.duration, t[4] = j, t[5] = f, t[6] = pt, t[7] = P) : (pt = t[6], P = t[7]), $e(pt, P);
85
- const te = ut === "linear" ? _e : ut === "step" ? ti : ut === "stepAfter" ? ei : ut === "stepBefore" ? ii : oi, [D, u] = Xt(void 0), [c, Kt] = Xt(void 0), [R, $t] = Xt(void 0), xt = G ? O + 30 : O;
86
- let E;
87
- t[8] !== at || t[9] !== jt || t[10] !== xt || t[11] !== Ot ? (E = {
88
- top: Ot,
89
- bottom: at,
90
- left: xt,
91
- right: jt
92
- }, t[8] = at, t[9] = jt, t[10] = xt, t[11] = Ot, t[12] = E) : E = t[12];
93
- const y = E, B = he(null);
84
+ }, B = [f, O, s.duration], t[3] = s.duration, t[4] = O, t[5] = f, t[6] = xt, t[7] = B) : (xt = t[6], B = t[7]), $e(xt, B);
85
+ const ie = pt === "linear" ? _e : pt === "step" ? ti : pt === "stepAfter" ? ei : pt === "stepBefore" ? ii : oi, [L, u] = Pt(void 0), [c, Zt] = Pt(void 0), [I, Tt] = Pt(void 0), dt = E ? D + 30 : D;
94
86
  let z;
95
- t[13] !== n ? (z = (e) => ({
87
+ t[8] !== rt || t[9] !== Dt || t[10] !== dt || t[11] !== Lt ? (z = {
88
+ top: Lt,
89
+ bottom: rt,
90
+ left: dt,
91
+ right: Dt
92
+ }, t[8] = rt, t[9] = Dt, t[10] = dt, t[11] = Lt, t[12] = z) : z = t[12];
93
+ const v = z, U = ye(null);
94
+ let q;
95
+ t[13] !== n ? (q = (e) => ({
96
96
  ...e,
97
- date: w(`${e.date}`, n, /* @__PURE__ */ new Date())
98
- }), t[13] = n, t[14] = z) : z = t[14];
99
- const r = Ie(A.map(z), ["date"], ["asc"]);
100
- let U;
101
- if (t[15] !== n || t[16] !== st) {
97
+ date: A(`${e.date}`, n, /* @__PURE__ */ new Date())
98
+ }), t[13] = n, t[14] = q) : q = t[14];
99
+ const r = Ie(y.map(q), ["date"], ["asc"]);
100
+ let J;
101
+ if (t[15] !== n || t[16] !== at) {
102
102
  let e;
103
103
  t[18] !== n ? (e = (h) => ({
104
104
  ...h,
105
- coordinates: [h.coordinates[0] === null ? null : w(`${h.coordinates[0]}`, n, /* @__PURE__ */ new Date()), h.coordinates[1] === null ? null : w(`${h.coordinates[1]}`, n, /* @__PURE__ */ new Date())]
106
- }), t[18] = n, t[19] = e) : e = t[19], U = st.map(e), t[15] = n, t[16] = st, t[17] = U;
105
+ coordinates: [h.coordinates[0] === null ? null : A(`${h.coordinates[0]}`, n, /* @__PURE__ */ new Date()), h.coordinates[1] === null ? null : A(`${h.coordinates[1]}`, n, /* @__PURE__ */ new Date())]
106
+ }), t[18] = n, t[19] = e) : e = t[19], J = at.map(e), t[15] = n, t[16] = at, t[17] = J;
107
107
  } else
108
- U = t[17];
109
- const dt = U;
110
- let q;
111
- if (t[20] !== mt || t[21] !== n) {
108
+ J = t[17];
109
+ const gt = J;
110
+ let K;
111
+ if (t[20] !== ft || t[21] !== n) {
112
112
  let e;
113
113
  t[23] !== n ? (e = (h) => ({
114
114
  ...h,
115
- coordinates: h.coordinates.map((W, Yt) => Yt % 2 === 0 ? w(`${W}`, n, /* @__PURE__ */ new Date()) : W)
116
- }), t[23] = n, t[24] = e) : e = t[24], q = mt.map(e), t[20] = mt, t[21] = n, t[22] = q;
115
+ coordinates: h.coordinates.map((X, Gt) => Gt % 2 === 0 ? A(`${X}`, n, /* @__PURE__ */ new Date()) : X)
116
+ }), t[23] = n, t[24] = e) : e = t[24], K = ft.map(e), t[20] = ft, t[21] = n, t[22] = K;
117
117
  } else
118
- q = t[22];
119
- const St = q, m = Y - y.left - y.right, g = nt - y.top - y.bottom, Tt = Ut ? w(`${Ut}`, n, /* @__PURE__ */ new Date()) : r[0].date, Nt = zt ? w(`${zt}`, n, /* @__PURE__ */ new Date()) : r[r.length - 1].date, x = bt(Pt) ? Math.min(...r.map(Mi).filter(Ni)) !== 1 / 0 ? Math.min(...r.map(Ti).filter(Si)) > 0 ? 0 : Math.min(...r.map($i).filter(ki)) : 0 : Pt, L = Math.max(...r.map(Li).filter(Di)) !== 1 / 0 ? Math.max(...r.map(Oi).filter(ji)) : 0, a = Ke().domain([Tt, Nt]).range([0, m]);
120
- let J;
121
- t[25] !== L || t[26] !== lt ? (J = bt(lt) ? L > 0 ? L : 0 : lt, t[25] = L, t[26] = lt, t[27] = J) : J = t[27];
122
- const l = Qe().domain([x, J]).range([g, 0]).nice(), Mt = Ze().x((e) => a(e.date)).y((e) => l(e.y)).curve(te), gt = l.ticks(Bt), Vt = a.ticks(Ct);
118
+ K = t[22];
119
+ const Mt = K, m = G - v.left - v.right, g = st - v.top - v.bottom, Nt = Jt ? A(`${Jt}`, n, /* @__PURE__ */ new Date()) : r[0].date, Vt = qt ? A(`${qt}`, n, /* @__PURE__ */ new Date()) : r[r.length - 1].date, x = Ot(Bt) ? Math.min(...r.map(Ni).filter(Mi)) !== 1 / 0 ? Math.min(...r.map(Ti).filter(Si)) > 0 ? 0 : Math.min(...r.map($i).filter(ki)) : 0 : Bt, k = Math.max(...r.map(Li).filter(Di)) !== 1 / 0 ? Math.max(...r.map(ji).filter(Oi)) : 0, a = Ke().domain([Nt, Vt]).range([0, m]);
120
+ let Q;
121
+ t[25] !== k || t[26] !== ct ? (Q = Ot(ct) ? k > 0 ? k : 0 : ct, t[25] = k, t[26] = ct, t[27] = Q) : Q = t[27];
122
+ const l = Qe().domain([x, Q]).range([g, 0]).nice(), Rt = Ze().x((e) => a(e.date)).y((e) => l(e.y)).curve(ie), ht = l.ticks(Ut), Ht = a.ticks(jt);
123
123
  $e(() => {
124
- const e = (W) => {
125
- const Yt = r[si(r.map(Ci), a.invert(ai(W)[0]), 0)];
126
- u(Yt || r[r.length - 1]), Dt?.(Yt || r[r.length - 1]), $t(W.clientY), Kt(W.clientX);
124
+ const e = (X) => {
125
+ const Gt = r[si(r.map(Ci), a.invert(ai(X)[0]), 0)];
126
+ u(Gt || r[r.length - 1]), kt?.(Gt || r[r.length - 1]), Tt(X.clientY), Zt(X.clientX);
127
127
  }, h = () => {
128
- u(void 0), Kt(void 0), $t(void 0), Dt?.(void 0);
128
+ u(void 0), Zt(void 0), Tt(void 0), kt?.(void 0);
129
129
  };
130
- ni(B.current).on("mousemove", e).on("mouseout", h);
131
- }, [a, r, Dt]);
132
- const Rt = He(r.filter(bi).map((e) => [a(e.date), l(e.y)])), Ht = Fe(Rt);
133
- let K;
134
- t[28] !== s || t[29] !== g || t[30] !== m || t[31] !== dt || t[32] !== f || t[33] !== a ? (K = /* @__PURE__ */ o.jsx(Je, { areaSettings: dt, width: m, height: g, scale: a, animate: s, isInView: f }), t[28] = s, t[29] = g, t[30] = m, t[31] = dt, t[32] = f, t[33] = a, t[34] = K) : K = t[34];
135
- const ht = d?.yAxis?.gridLines, yt = d?.yAxis?.labels;
136
- let Q;
137
- t[35] !== ht || t[36] !== yt ? (Q = {
138
- gridLines: ht,
139
- labels: yt
140
- }, t[35] = ht, t[36] = yt, t[37] = Q) : Q = t[37];
141
- const vt = p?.yAxis?.gridLines, Z = p?.yAxis?.labels;
130
+ ni(U.current).on("mousemove", e).on("mouseout", h);
131
+ }, [a, r, kt]);
132
+ const Ft = He(r.filter(bi).map((e) => [a(e.date), l(e.y)])), It = Fe(Ft);
133
+ let Z;
134
+ t[28] !== s || t[29] !== g || t[30] !== m || t[31] !== gt || t[32] !== f || t[33] !== a ? (Z = /* @__PURE__ */ o.jsx(Je, { areaSettings: gt, width: m, height: g, scale: a, animate: s, isInView: f }), t[28] = s, t[29] = g, t[30] = m, t[31] = gt, t[32] = f, t[33] = a, t[34] = Z) : Z = t[34];
135
+ const yt = d?.yAxis?.gridLines, vt = d?.yAxis?.labels;
142
136
  let _;
143
- t[38] !== vt || t[39] !== Z ? (_ = {
144
- gridLines: vt,
145
- labels: Z
146
- }, t[38] = vt, t[39] = Z, t[40] = _) : _ = t[40];
147
- const H = l(x < 0 ? 0 : x), Qt = l(x < 0 ? 0 : x), tt = 0 - O, Zt = m + y.right, wt = x < 0 ? 0 : x;
148
- let F;
149
- t[41] !== N || t[42] !== T || t[43] !== b || t[44] !== wt ? (F = Se(wt, "NA", N, T, b), t[41] = N, t[42] = T, t[43] = b, t[44] = wt, t[45] = F) : F = t[45];
150
- const et = 0 - O, it = l(x < 0 ? 0 : x), At = L < 0 ? "1em" : -5;
151
- let k;
152
- t[46] !== et || t[47] !== it || t[48] !== At ? (k = {
153
- x: et,
154
- y: it,
137
+ t[35] !== yt || t[36] !== vt ? (_ = {
138
+ gridLines: yt,
139
+ labels: vt
140
+ }, t[35] = yt, t[36] = vt, t[37] = _) : _ = t[37];
141
+ const wt = p?.yAxis?.gridLines, tt = p?.yAxis?.labels;
142
+ let et;
143
+ t[38] !== wt || t[39] !== tt ? (et = {
144
+ gridLines: wt,
145
+ labels: tt
146
+ }, t[38] = wt, t[39] = tt, t[40] = et) : et = t[40];
147
+ const W = l(x < 0 ? 0 : x), _t = l(x < 0 ? 0 : x), it = 0 - D, te = m + v.right, At = x < 0 ? 0 : x;
148
+ let Y;
149
+ t[41] !== R || t[42] !== V || t[43] !== b || t[44] !== At ? (Y = Se(At, "NA", R, V, b), t[41] = R, t[42] = V, t[43] = b, t[44] = At, t[45] = Y) : Y = t[45];
150
+ const ot = 0 - D, nt = l(x < 0 ? 0 : x), bt = k < 0 ? "1em" : -5;
151
+ let $;
152
+ t[46] !== ot || t[47] !== nt || t[48] !== bt ? ($ = {
153
+ x: ot,
154
+ y: nt,
155
155
  dx: 0,
156
- dy: At
157
- }, t[46] = et, t[47] = it, t[48] = At, t[49] = k) : k = t[49];
158
- const $ = p?.xAxis?.axis, S = p?.yAxis?.labels;
159
- let v;
160
- t[50] !== $ || t[51] !== S ? (v = {
161
- axis: $,
162
- label: S
163
- }, t[50] = $, t[51] = S, t[52] = v) : v = t[52];
164
- const ot = d?.xAxis?.axis, Ft = d?.yAxis?.labels;
165
- let I;
166
- t[53] !== ot || t[54] !== Ft ? (I = {
167
- axis: ot,
168
- label: Ft
169
- }, t[53] = ot, t[54] = Ft, t[55] = I) : I = t[55];
170
- let ee;
171
- t[56] !== H || t[57] !== Qt || t[58] !== tt || t[59] !== Zt || t[60] !== F || t[61] !== k || t[62] !== v || t[63] !== I ? (ee = /* @__PURE__ */ o.jsx(Pe, { y1: H, y2: Qt, x1: tt, x2: Zt, label: F, labelPos: k, classNames: v, styles: I }), t[56] = H, t[57] = Qt, t[58] = tt, t[59] = Zt, t[60] = F, t[61] = k, t[62] = v, t[63] = I, t[64] = ee) : ee = t[64];
172
- const ye = 0 - O - 15, ve = g / 2, we = d?.yAxis?.title, Ae = p?.yAxis?.title;
173
- let ie;
174
- t[65] !== ye || t[66] !== ve || t[67] !== we || t[68] !== Ae || t[69] !== G ? (ie = /* @__PURE__ */ o.jsx(Ee, { x: ye, y: ve, style: we, className: Ae, text: G, rotate90: !0 }), t[65] = ye, t[66] = ve, t[67] = we, t[68] = Ae, t[69] = G, t[70] = ie) : ie = t[70];
156
+ dy: bt
157
+ }, t[46] = ot, t[47] = nt, t[48] = bt, t[49] = $) : $ = t[49];
158
+ const S = p?.xAxis?.axis, T = p?.yAxis?.labels;
159
+ let w;
160
+ t[50] !== S || t[51] !== T ? (w = {
161
+ axis: S,
162
+ label: T
163
+ }, t[50] = S, t[51] = T, t[52] = w) : w = t[52];
164
+ const M = d?.xAxis?.axis, N = d?.yAxis?.labels;
165
+ let j;
166
+ t[53] !== M || t[54] !== N ? (j = {
167
+ axis: M,
168
+ label: N
169
+ }, t[53] = M, t[54] = N, t[55] = j) : j = t[55];
170
+ let Ct;
171
+ t[56] !== W || t[57] !== _t || t[58] !== it || t[59] !== te || t[60] !== Y || t[61] !== $ || t[62] !== w || t[63] !== j ? (Ct = /* @__PURE__ */ o.jsx(Pe, { y1: W, y2: _t, x1: it, x2: te, label: Y, labelPos: $, classNames: w, styles: j }), t[56] = W, t[57] = _t, t[58] = it, t[59] = te, t[60] = Y, t[61] = $, t[62] = w, t[63] = j, t[64] = Ct) : Ct = t[64];
172
+ const Wt = 0 - D - 15, ve = g / 2, we = d?.yAxis?.title, Ae = p?.yAxis?.title;
175
173
  let oe;
176
- t[71] !== n ? (oe = (e) => Re(e, n), t[71] = n, t[72] = oe) : oe = t[72];
177
- const Ne = Vt.map(oe), Me = Vt.map((e) => a(e)), be = d?.xAxis?.gridLines, Ce = d?.xAxis?.labels;
174
+ t[65] !== Wt || t[66] !== ve || t[67] !== we || t[68] !== Ae || t[69] !== E ? (oe = /* @__PURE__ */ o.jsx(Ee, { x: Wt, y: ve, style: we, className: Ae, text: E, rotate90: !0 }), t[65] = Wt, t[66] = ve, t[67] = we, t[68] = Ae, t[69] = E, t[70] = oe) : oe = t[70];
178
175
  let ne;
179
- t[73] !== be || t[74] !== Ce ? (ne = {
176
+ t[71] !== n ? (ne = (e) => Re(e, n), t[71] = n, t[72] = ne) : ne = t[72];
177
+ const Me = Ht.map(ne), Ne = Ht.map((e) => a(e)), be = d?.xAxis?.gridLines, Ce = d?.xAxis?.labels;
178
+ let se;
179
+ t[73] !== be || t[74] !== Ce ? (se = {
180
180
  gridLines: be,
181
181
  labels: Ce
182
- }, t[73] = be, t[74] = Ce, t[75] = ne) : ne = t[75];
183
- const je = p?.xAxis?.gridLines;
184
- let It;
185
- t[76] !== je ? (It = ge("opacity-0", je), t[76] = je, t[77] = It) : It = t[77];
186
- const Oe = p?.xAxis?.labels;
187
- let Wt;
188
- t[78] !== Oe ? (Wt = ge("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Oe), t[78] = Oe, t[79] = Wt) : Wt = t[79];
189
- let se;
190
- t[80] !== It || t[81] !== Wt ? (se = {
191
- gridLines: It,
192
- labels: Wt
193
- }, t[80] = It, t[81] = Wt, t[82] = se) : se = t[82];
182
+ }, t[73] = be, t[74] = Ce, t[75] = se) : se = t[75];
183
+ const Oe = p?.xAxis?.gridLines;
184
+ let Yt;
185
+ t[76] !== Oe ? (Yt = he("opacity-0", Oe), t[76] = Oe, t[77] = Yt) : Yt = t[77];
186
+ const je = p?.xAxis?.labels;
187
+ let Xt;
188
+ t[78] !== je ? (Xt = he("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", je), t[78] = je, t[79] = Xt) : Xt = t[79];
194
189
  let ae;
195
- t[83] !== M ? (ae = M.filter(vi).map(yi), t[83] = M, t[84] = ae) : ae = t[84];
190
+ t[80] !== Yt || t[81] !== Xt ? (ae = {
191
+ gridLines: Yt,
192
+ labels: Xt
193
+ }, t[80] = Yt, t[81] = Xt, t[82] = ae) : ae = t[82];
196
194
  let re;
197
- t[85] !== X || t[86] !== ct ? (re = {
198
- stroke: X,
199
- fill: "none",
200
- strokeWidth: ct
201
- }, t[85] = X, t[86] = ct, t[87] = re) : re = t[87];
195
+ t[83] !== H ? (re = H.filter(vi).map(yi), t[83] = H, t[84] = re) : re = t[84];
202
196
  let le;
203
- t[88] !== s.duration ? (le = {
197
+ t[85] !== P || t[86] !== mt ? (le = {
198
+ stroke: P,
199
+ fill: "none",
200
+ strokeWidth: mt
201
+ }, t[85] = P, t[86] = mt, t[87] = le) : le = t[87];
202
+ let ce;
203
+ t[88] !== s.duration ? (ce = {
204
204
  opacity: 0,
205
205
  transition: {
206
206
  duration: s.duration
207
207
  }
208
- }, t[88] = s.duration, t[89] = le) : le = t[89];
209
- const De = r.map((e, h) => /* @__PURE__ */ o.jsx(_t.g, { children: bt(e.y) ? null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
210
- kt ? /* @__PURE__ */ o.jsx(_t.circle, { r: m / r.length < 5 ? 0 : m / r.length < 20 ? 2 : 4, exit: {
208
+ }, t[88] = s.duration, t[89] = ce) : ce = t[89];
209
+ const De = r.map((e, h) => /* @__PURE__ */ o.jsx(ee.g, { children: Ot(e.y) ? null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
210
+ St ? /* @__PURE__ */ o.jsx(ee.circle, { r: m / r.length < 5 ? 0 : m / r.length < 20 ? 2 : 4, exit: {
211
211
  opacity: 0,
212
212
  transition: {
213
213
  duration: s.duration
@@ -217,23 +217,23 @@ function di(i) {
217
217
  opacity: 0,
218
218
  cx: a(e.date),
219
219
  cy: l(e.y),
220
- fill: X
220
+ fill: P
221
221
  },
222
222
  whileInView: {
223
223
  opacity: 1,
224
- fill: X,
224
+ fill: P,
225
225
  transition: {
226
- duration: j ? s.duration : 0.5,
227
- delay: j ? 0 : s.duration
226
+ duration: O ? s.duration : 0.5,
227
+ delay: O ? 0 : s.duration
228
228
  },
229
229
  cx: a(e.date),
230
230
  cy: l(e.y)
231
231
  }
232
232
  }, initial: "initial", animate: f ? "whileInView" : "initial" }) : null,
233
- C ? /* @__PURE__ */ o.jsx(_t.text, { dy: -8, style: {
233
+ C ? /* @__PURE__ */ o.jsx(ee.text, { dy: -8, style: {
234
234
  textAnchor: "middle",
235
235
  ...d?.graphObjectValues || {}
236
- }, className: ge("graph-value text-xs font-bold", p?.graphObjectValues), exit: {
236
+ }, className: he("graph-value text-xs font-bold", p?.graphObjectValues), exit: {
237
237
  opacity: 0,
238
238
  transition: {
239
239
  duration: s.duration
@@ -249,92 +249,92 @@ function di(i) {
249
249
  x: a(e.date),
250
250
  y: l(e.y),
251
251
  transition: {
252
- duration: j ? s.duration : 0.5,
253
- delay: j ? 0 : s.duration
252
+ duration: O ? s.duration : 0.5,
253
+ delay: O ? 0 : s.duration
254
254
  }
255
255
  }
256
- }, initial: "initial", animate: f ? "whileInView" : "initial", children: Se(e.y, "NA", N, T, b) }) : null
256
+ }, initial: "initial", animate: f ? "whileInView" : "initial", children: Se(e.y, "NA", R, V, b) }) : null
257
257
  ] }) }, h));
258
- let ce;
259
- t[90] !== De ? (ce = /* @__PURE__ */ o.jsx("g", { children: De }), t[90] = De, t[91] = ce) : ce = t[91];
260
- const Le = Et.map((e, h) => {
261
- const W = Ye({
262
- x: e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
258
+ let me;
259
+ t[90] !== De ? (me = /* @__PURE__ */ o.jsx("g", { children: De }), t[90] = De, t[91] = me) : me = t[91];
260
+ const Le = zt.map((e, h) => {
261
+ const X = Ye({
262
+ x: e.xCoordinate ? a(A(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
263
263
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
264
264
  }, {
265
- x: e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
265
+ x: e.xCoordinate ? a(A(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
266
266
  y: e.yCoordinate ? l(e.yCoordinate) : 0
267
- }, bt(e.connectorRadius) ? 3.5 : e.connectorRadius), Yt = e.showConnector ? {
268
- y1: W.y,
269
- x1: W.x,
267
+ }, Ot(e.connectorRadius) ? 3.5 : e.connectorRadius), Gt = e.showConnector ? {
268
+ y1: X.y,
269
+ x1: X.x,
270
270
  y2: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
271
- x2: e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
271
+ x2: e.xCoordinate ? a(A(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
272
272
  cy: e.yCoordinate ? l(e.yCoordinate) : 0,
273
- cx: e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
274
- circleRadius: bt(e.connectorRadius) ? 3.5 : e.connectorRadius,
273
+ cx: e.xCoordinate ? a(A(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
274
+ circleRadius: Ot(e.connectorRadius) ? 3.5 : e.connectorRadius,
275
275
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
276
276
  } : void 0, Ve = {
277
277
  y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
278
- x: Lt ? 0 : e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
279
- width: Lt ? e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : m + y.right - (e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
278
+ x: $t ? 0 : e.xCoordinate ? a(A(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
279
+ width: $t ? e.xCoordinate ? a(A(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : m + v.right - (e.xCoordinate ? a(A(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
280
280
  maxWidth: e.maxWidth,
281
281
  fontWeight: e.fontWeight,
282
282
  align: e.align
283
283
  };
284
- return /* @__PURE__ */ o.jsx(Xe, { color: e.color, connectorsSettings: Yt, labelSettings: Ve, text: e.text, classNames: e.classNames, styles: e.styles, animate: s, isInView: f }, h);
284
+ return /* @__PURE__ */ o.jsx(Xe, { color: e.color, connectorsSettings: Gt, labelSettings: Ve, text: e.text, classNames: e.classNames, styles: e.styles, animate: s, isInView: f }, h);
285
285
  });
286
- let me;
287
- t[92] !== Le ? (me = /* @__PURE__ */ o.jsx("g", { children: Le }), t[92] = Le, t[93] = me) : me = t[93];
288
- const ke = ft ? /* @__PURE__ */ o.jsx(Ue, { x1: 0, x2: m, y1: Ht(0), y2: Ht(m), graphHeight: g, graphWidth: m, className: p?.regLine, style: d?.regLine, color: typeof ft == "string" ? ft : void 0, animate: s, isInView: f }) : null;
289
286
  let fe;
290
- t[94] !== ke ? (fe = /* @__PURE__ */ o.jsx("g", { children: ke }), t[94] = ke, t[95] = fe) : fe = t[95];
287
+ t[92] !== Le ? (fe = /* @__PURE__ */ o.jsx("g", { children: Le }), t[92] = Le, t[93] = fe) : fe = t[93];
288
+ const ke = ut ? /* @__PURE__ */ o.jsx(Ue, { x1: 0, x2: m, y1: It(0), y2: It(m), graphHeight: g, graphWidth: m, className: p?.regLine, style: d?.regLine, color: typeof ut == "string" ? ut : void 0, animate: s, isInView: f }) : null;
291
289
  let ue;
292
- t[96] !== M ? (ue = M.filter(hi).map(gi), t[96] = M, t[97] = ue) : ue = t[97];
290
+ t[94] !== ke ? (ue = /* @__PURE__ */ o.jsx("g", { children: ke }), t[94] = ke, t[95] = ue) : ue = t[95];
293
291
  let pe;
294
- t[98] === Symbol.for("react.memo_cache_sentinel") ? (pe = {
292
+ t[96] !== H ? (pe = H.filter(hi).map(gi), t[96] = H, t[97] = pe) : pe = t[97];
293
+ let xe;
294
+ t[98] === Symbol.for("react.memo_cache_sentinel") ? (xe = {
295
295
  fill: "none",
296
296
  pointerEvents: "all"
297
- }, t[98] = pe) : pe = t[98];
298
- let xe;
299
- t[99] !== B || t[100] !== g || t[101] !== m ? (xe = /* @__PURE__ */ o.jsx("rect", { ref: B, style: pe, width: m, height: g }), t[99] = B, t[100] = g, t[101] = m, t[102] = xe) : xe = t[102];
297
+ }, t[98] = xe) : xe = t[98];
300
298
  let de;
301
- return t[103] !== p?.tooltip || t[104] !== c || t[105] !== R || t[106] !== D || t[107] !== d?.tooltip || t[108] !== rt ? (de = D && rt && c && R ? /* @__PURE__ */ o.jsx(We, { data: D, body: rt, xPos: c, yPos: R, backgroundStyle: d?.tooltip, className: p?.tooltip }) : null, t[103] = p?.tooltip, t[104] = c, t[105] = R, t[106] = D, t[107] = d?.tooltip, t[108] = rt, t[109] = de) : de = t[109], /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
302
- /* @__PURE__ */ o.jsx(_t.svg, { width: `${Y}px`, height: `${nt}px`, viewBox: `0 0 ${Y} ${nt}`, direction: "ltr", ref: qt, children: /* @__PURE__ */ o.jsxs("g", { transform: `translate(${y.left},${y.top})`, children: [
303
- K,
304
- /* @__PURE__ */ o.jsx(Ge, { areaSettings: St, scaleX: a, scaleY: l, animate: s, isInView: f }),
299
+ t[99] !== U || t[100] !== g || t[101] !== m ? (de = /* @__PURE__ */ o.jsx("rect", { ref: U, style: xe, width: m, height: g }), t[99] = U, t[100] = g, t[101] = m, t[102] = de) : de = t[102];
300
+ let ge;
301
+ return t[103] !== p?.tooltip || t[104] !== c || t[105] !== I || t[106] !== L || t[107] !== d?.tooltip || t[108] !== lt ? (ge = L && lt && c && I ? /* @__PURE__ */ o.jsx(We, { data: L, body: lt, xPos: c, yPos: I, backgroundStyle: d?.tooltip, className: p?.tooltip }) : null, t[103] = p?.tooltip, t[104] = c, t[105] = I, t[106] = L, t[107] = d?.tooltip, t[108] = lt, t[109] = ge) : ge = t[109], /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
302
+ /* @__PURE__ */ o.jsx(ee.svg, { width: `${G}px`, height: `${st}px`, viewBox: `0 0 ${G} ${st}`, direction: "ltr", ref: Kt, children: /* @__PURE__ */ o.jsxs("g", { transform: `translate(${v.left},${v.top})`, children: [
303
+ Z,
304
+ /* @__PURE__ */ o.jsx(Ge, { areaSettings: Mt, scaleX: a, scaleY: l, animate: s, isInView: f }),
305
305
  /* @__PURE__ */ o.jsxs("g", { children: [
306
- /* @__PURE__ */ o.jsx(qe, { values: gt.filter(Ai), y: gt.filter(wi).map((e) => l(e)), x1: 0 - O, x2: m + y.right, styles: Q, classNames: _, suffix: b, prefix: T, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: N }),
307
- ee,
308
- ie
306
+ /* @__PURE__ */ o.jsx(qe, { values: ht.filter(Ai), y: ht.filter(wi).map((e) => l(e)), x1: 0 - D, x2: m + v.right, styles: _, classNames: et, suffix: b, prefix: V, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: R }),
307
+ Ct,
308
+ oe
309
309
  ] }),
310
- /* @__PURE__ */ o.jsx(Be, { values: Ne, x: Me, y1: 0, y2: g, styles: ne, classNames: se, suffix: b, prefix: T, labelType: "primary", showGridLines: !0, precision: N }),
311
- ae,
310
+ /* @__PURE__ */ o.jsx(Be, { values: Me, x: Ne, y1: 0, y2: g, styles: se, classNames: ae, suffix: b, prefix: V, labelType: "primary", showGridLines: !0, precision: R }),
311
+ re,
312
312
  /* @__PURE__ */ o.jsxs("g", { children: [
313
- /* @__PURE__ */ o.jsx(_t.path, { style: re, exit: le, variants: {
313
+ /* @__PURE__ */ o.jsx(ee.path, { style: le, exit: ce, variants: {
314
314
  initial: {
315
315
  pathLength: 0,
316
- d: Mt(r) || "",
316
+ d: Rt(r) || "",
317
317
  opacity: 1
318
318
  },
319
319
  whileInView: {
320
320
  pathLength: 1,
321
- d: Mt(r) || "",
321
+ d: Rt(r) || "",
322
322
  opacity: 1,
323
323
  transition: {
324
324
  duration: s.duration
325
325
  }
326
326
  }
327
327
  }, initial: "initial", animate: f ? "whileInView" : "initial" }),
328
- D ? /* @__PURE__ */ o.jsx("line", { y1: 0, y2: g, x1: a(D.date), x2: a(D.date), className: ge("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", p?.mouseOverLine), style: d?.mouseOverLine }) : null
328
+ L ? /* @__PURE__ */ o.jsx("line", { y1: 0, y2: g, x1: a(L.date), x2: a(L.date), className: he("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", p?.mouseOverLine), style: d?.mouseOverLine }) : null
329
329
  ] }),
330
- ce,
331
- Gt ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Gt.map((e, h) => /* @__PURE__ */ o.jsx(ze, { text: e.text, color: e.color, y: l(e.value), x1: 0 - O, x2: m + y.right, classNames: e.classNames, styles: e.styles, animate: s, isInView: f }, h)) }) : null,
332
330
  me,
331
+ Et ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Et.map((e, h) => /* @__PURE__ */ o.jsx(ze, { text: e.text, color: e.color, y: l(e.value), x1: 0 - D, x2: m + v.right, classNames: e.classNames, styles: e.styles, animate: s, isInView: f }, h)) }) : null,
333
332
  fe,
334
333
  ue,
335
- xe
334
+ pe,
335
+ de
336
336
  ] }) }),
337
- de
337
+ ge
338
338
  ] });
339
339
  }
340
340
  function gi(i) {
@@ -356,15 +356,15 @@ function Ai(i) {
356
356
  return i !== 0;
357
357
  }
358
358
  function bi(i) {
359
- return !bt(i.date) && !bt(i.y);
359
+ return !Ot(i.date) && !Ot(i.y);
360
360
  }
361
361
  function Ci(i) {
362
362
  return i.date;
363
363
  }
364
- function ji(i) {
364
+ function Oi(i) {
365
365
  return i != null;
366
366
  }
367
- function Oi(i) {
367
+ function ji(i) {
368
368
  return i.y;
369
369
  }
370
370
  function Di(i) {
@@ -385,118 +385,125 @@ function Si(i) {
385
385
  function Ti(i) {
386
386
  return i.y;
387
387
  }
388
- function Ni(i) {
388
+ function Mi(i) {
389
389
  return i != null;
390
390
  }
391
- function Mi(i) {
391
+ function Ni(i) {
392
392
  return i.y;
393
393
  }
394
394
  function ho(i) {
395
- const t = Te.c(83), {
396
- data: A,
397
- graphTitle: Y,
398
- lineColor: nt,
399
- suffix: X,
395
+ const t = Te.c(88), {
396
+ data: y,
397
+ graphTitle: G,
398
+ lineColor: st,
399
+ suffix: P,
400
400
  sources: b,
401
- prefix: T,
401
+ prefix: V,
402
402
  graphDescription: n,
403
- height: st,
403
+ height: at,
404
404
  width: C,
405
- footNote: Ct,
406
- noOfXTicks: jt,
407
- dateFormat: O,
408
- showValues: Ot,
409
- padding: at,
410
- backgroundColor: rt,
411
- leftMargin: Dt,
412
- rightMargin: Gt,
413
- topMargin: Pt,
414
- bottomMargin: lt,
405
+ footNote: jt,
406
+ noOfXTicks: Dt,
407
+ dateFormat: D,
408
+ showValues: Lt,
409
+ padding: rt,
410
+ backgroundColor: lt,
411
+ leftMargin: kt,
412
+ rightMargin: Et,
413
+ topMargin: Bt,
414
+ bottomMargin: ct,
415
415
  relativeHeight: s,
416
- tooltip: Lt,
417
- onSeriesMouseOver: ct,
418
- highlightAreaSettings: kt,
419
- graphID: Et,
420
- minValue: mt,
421
- maxValue: ft,
422
- maxDate: G,
423
- minDate: Bt,
424
- graphDownload: zt,
425
- dataDownload: Ut,
426
- animate: ut,
416
+ tooltip: $t,
417
+ onSeriesMouseOver: mt,
418
+ highlightAreaSettings: St,
419
+ graphID: zt,
420
+ minValue: ft,
421
+ maxValue: ut,
422
+ maxDate: E,
423
+ minDate: Ut,
424
+ graphDownload: qt,
425
+ dataDownload: Jt,
426
+ animate: pt,
427
427
  language: d,
428
428
  refValues: p,
429
- minHeight: N,
430
- strokeWidth: M,
431
- showDots: qt,
432
- annotations: V,
429
+ minHeight: R,
430
+ strokeWidth: H,
431
+ showDots: Kt,
432
+ annotations: F,
433
433
  customHighlightAreaSettings: f,
434
- theme: j,
435
- ariaLabel: Jt,
436
- regressionLine: pt,
437
- yAxisTitle: P,
438
- noOfYTicks: te,
439
- curveType: D,
434
+ theme: O,
435
+ ariaLabel: Qt,
436
+ regressionLine: xt,
437
+ yAxisTitle: B,
438
+ noOfYTicks: ie,
439
+ curveType: L,
440
440
  styles: u,
441
441
  classNames: c,
442
- precision: Kt,
443
- customLayers: R
444
- } = i, $t = X === void 0 ? "" : X, xt = T === void 0 ? "" : T, E = jt === void 0 ? 10 : jt, y = O === void 0 ? "yyyy" : O, B = Ot === void 0 ? !1 : Ot, z = rt === void 0 ? !1 : rt, r = Dt === void 0 ? 30 : Dt, U = Gt === void 0 ? 30 : Gt, dt = Pt === void 0 ? 20 : Pt, q = lt === void 0 ? 25 : lt;
445
- let St;
446
- t[0] !== kt ? (St = kt === void 0 ? [] : kt, t[0] = kt, t[1] = St) : St = t[1];
447
- const m = St, g = zt === void 0 ? !1 : zt, Tt = Ut === void 0 ? !1 : Ut, Nt = ut === void 0 ? !1 : ut, x = d === void 0 ? "en" : d;
448
- let L;
449
- t[2] !== p ? (L = p === void 0 ? [] : p, t[2] = p, t[3] = L) : L = t[3];
450
- const a = L, J = N === void 0 ? 0 : N, l = M === void 0 ? 2 : M, Mt = qt === void 0 ? !0 : qt;
451
- let gt;
452
- t[4] !== V ? (gt = V === void 0 ? [] : V, t[4] = V, t[5] = gt) : gt = t[5];
453
- const Vt = gt;
454
- let Rt;
455
- t[6] !== f ? (Rt = f === void 0 ? [] : f, t[6] = f, t[7] = Rt) : Rt = t[7];
456
- const Ht = Rt, K = j === void 0 ? "light" : j, ht = pt === void 0 ? !1 : pt, yt = te === void 0 ? 5 : te, Q = D === void 0 ? "curve" : D, vt = Kt === void 0 ? 2 : Kt;
457
- let Z;
458
- t[8] !== R ? (Z = R === void 0 ? [] : R, t[8] = R, t[9] = Z) : Z = t[9];
459
- const _ = Z, [H, Qt] = Xt(0), [tt, Zt] = Xt(0), wt = he(null), F = he(null);
460
- let et, it;
461
- t[10] === Symbol.for("react.memo_cache_sentinel") ? (et = () => {
462
- const Ft = new ResizeObserver((I) => {
463
- Qt(I[0].target.clientWidth || 620), Zt(I[0].target.clientHeight || 480);
442
+ precision: Zt,
443
+ customLayers: I
444
+ } = i, Tt = P === void 0 ? "" : P, dt = V === void 0 ? "" : V, z = Dt === void 0 ? 10 : Dt, v = D === void 0 ? "yyyy" : D, U = Lt === void 0 ? !1 : Lt, q = lt === void 0 ? !1 : lt, r = kt === void 0 ? 30 : kt, J = Et === void 0 ? 30 : Et, gt = Bt === void 0 ? 20 : Bt, K = ct === void 0 ? 25 : ct;
445
+ let Mt;
446
+ t[0] !== St ? (Mt = St === void 0 ? [] : St, t[0] = St, t[1] = Mt) : Mt = t[1];
447
+ const m = Mt, g = qt === void 0 ? !1 : qt, Nt = Jt === void 0 ? !1 : Jt, Vt = pt === void 0 ? !1 : pt, x = d === void 0 ? "en" : d;
448
+ let k;
449
+ t[2] !== p ? (k = p === void 0 ? [] : p, t[2] = p, t[3] = k) : k = t[3];
450
+ const a = k, Q = R === void 0 ? 0 : R, l = H === void 0 ? 2 : H, Rt = Kt === void 0 ? !0 : Kt;
451
+ let ht;
452
+ t[4] !== F ? (ht = F === void 0 ? [] : F, t[4] = F, t[5] = ht) : ht = t[5];
453
+ const Ht = ht;
454
+ let Ft;
455
+ t[6] !== f ? (Ft = f === void 0 ? [] : f, t[6] = f, t[7] = Ft) : Ft = t[7];
456
+ const It = Ft, Z = O === void 0 ? "light" : O, yt = xt === void 0 ? !1 : xt, vt = ie === void 0 ? 5 : ie, _ = L === void 0 ? "curve" : L, wt = Zt === void 0 ? 2 : Zt;
457
+ let tt;
458
+ t[8] !== I ? (tt = I === void 0 ? [] : I, t[8] = I, t[9] = tt) : tt = t[9];
459
+ const et = tt, [W, _t] = Pt(0), [it, te] = Pt(0), At = ye(null), Y = ye(null);
460
+ let ot, nt;
461
+ t[10] === Symbol.for("react.memo_cache_sentinel") ? (ot = () => {
462
+ const Ct = new ResizeObserver((Wt) => {
463
+ _t(Wt[0].target.clientWidth || 620), te(Wt[0].target.clientHeight || 480);
464
464
  });
465
- return wt.current && Ft.observe(wt.current), () => Ft.disconnect();
466
- }, it = [], t[10] = et, t[11] = it) : (et = t[10], it = t[11]), $e(et, it);
467
- const At = c?.graphContainer, k = u?.graphContainer;
468
- let $;
469
- t[12] !== c?.description || t[13] !== c?.title || t[14] !== A || t[15] !== Tt || t[16] !== n || t[17] !== g || t[18] !== Y || t[19] !== u?.description || t[20] !== u?.title || t[21] !== C ? ($ = Y || n || g || Tt ? /* @__PURE__ */ o.jsx(ci, { styles: {
465
+ return At.current && Ct.observe(At.current), () => Ct.disconnect();
466
+ }, nt = [], t[10] = ot, t[11] = nt) : (ot = t[10], nt = t[11]), $e(ot, nt);
467
+ const bt = c?.graphContainer, $ = u?.graphContainer;
468
+ let S;
469
+ t[12] !== c?.description || t[13] !== c?.title || t[14] !== y || t[15] !== Nt || t[16] !== n || t[17] !== g || t[18] !== G || t[19] !== u?.description || t[20] !== u?.title || t[21] !== C ? (S = G || n || g || Nt ? /* @__PURE__ */ o.jsx(ci, { styles: {
470
470
  title: u?.title,
471
471
  description: u?.description
472
472
  }, classNames: {
473
473
  title: c?.title,
474
474
  description: c?.description
475
- }, graphTitle: Y, graphDescription: n, width: C, graphDownload: g ? F : void 0, dataDownload: Tt ? A.map(Ii).filter(Fi).length > 0 ? A.map(Hi).filter(Ri) : A.filter(Vi) : null }) : null, t[12] = c?.description, t[13] = c?.title, t[14] = A, t[15] = Tt, t[16] = n, t[17] = g, t[18] = Y, t[19] = u?.description, t[20] = u?.title, t[21] = C, t[22] = $) : $ = t[22];
476
- let S;
477
- t[23] !== Nt || t[24] !== Vt || t[25] !== q || t[26] !== c || t[27] !== Q || t[28] !== Ht || t[29] !== _ || t[30] !== A || t[31] !== y || t[32] !== m || t[33] !== x || t[34] !== r || t[35] !== nt || t[36] !== G || t[37] !== ft || t[38] !== Bt || t[39] !== mt || t[40] !== E || t[41] !== yt || t[42] !== ct || t[43] !== vt || t[44] !== xt || t[45] !== a || t[46] !== ht || t[47] !== U || t[48] !== Mt || t[49] !== B || t[50] !== l || t[51] !== u || t[52] !== $t || t[53] !== tt || t[54] !== H || t[55] !== Lt || t[56] !== dt || t[57] !== P ? (S = A.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: /* @__PURE__ */ o.jsx(fi, {}) }) : /* @__PURE__ */ o.jsx(ui, { ref: wt, children: H && tt ? /* @__PURE__ */ o.jsx(di, { data: A, lineColor: nt || mi.primaryColors["blue-600"], width: H, height: tt, suffix: $t, prefix: xt, dateFormat: y, showValues: B, noOfXTicks: E ?? xi(H), leftMargin: r, rightMargin: U, topMargin: dt, bottomMargin: q, tooltip: Lt, highlightAreaSettings: m, onSeriesMouseOver: ct, refValues: a, minValue: mt, maxValue: ft, animate: Nt === !0 ? {
475
+ }, graphTitle: G, graphDescription: n, width: C, graphDownload: g ? Y : void 0, dataDownload: Nt ? y.map(Ii).filter(Fi).length > 0 ? y.map(Hi).filter(Ri) : y.filter(Vi) : null }) : null, t[12] = c?.description, t[13] = c?.title, t[14] = y, t[15] = Nt, t[16] = n, t[17] = g, t[18] = G, t[19] = u?.description, t[20] = u?.title, t[21] = C, t[22] = S) : S = t[22];
476
+ let T;
477
+ t[23] !== y.length ? (T = y.length === 0 && /* @__PURE__ */ o.jsx(fi, {}), t[23] = y.length, t[24] = T) : T = t[24];
478
+ let w;
479
+ t[25] !== Vt || t[26] !== Ht || t[27] !== K || t[28] !== c || t[29] !== _ || t[30] !== It || t[31] !== et || t[32] !== y || t[33] !== v || t[34] !== m || t[35] !== x || t[36] !== r || t[37] !== st || t[38] !== E || t[39] !== ut || t[40] !== Ut || t[41] !== ft || t[42] !== z || t[43] !== vt || t[44] !== mt || t[45] !== wt || t[46] !== dt || t[47] !== a || t[48] !== yt || t[49] !== J || t[50] !== Rt || t[51] !== U || t[52] !== l || t[53] !== u || t[54] !== Tt || t[55] !== it || t[56] !== W || t[57] !== $t || t[58] !== gt || t[59] !== B ? (w = W && it && y.length > 0 ? /* @__PURE__ */ o.jsx(di, { data: y, lineColor: st || mi.primaryColors["blue-600"], width: W, height: it, suffix: Tt, prefix: dt, dateFormat: v, showValues: U, noOfXTicks: z ?? xi(W), leftMargin: r, rightMargin: J, topMargin: gt, bottomMargin: K, tooltip: $t, highlightAreaSettings: m, onSeriesMouseOver: mt, refValues: a, minValue: ft, maxValue: ut, animate: Vt === !0 ? {
478
480
  duration: 0.5,
479
481
  once: !0,
480
482
  amount: 0.5
481
- } : Nt || {
483
+ } : Vt || {
482
484
  duration: 0,
483
485
  once: !0,
484
486
  amount: 0
485
- }, rtl: x === "he" || x === "ar", strokeWidth: l, showDots: Mt, annotations: Vt, customHighlightAreaSettings: Ht, regressionLine: ht, yAxisTitle: P, noOfYTicks: yt, maxDate: G, minDate: Bt, curveType: Q, styles: u, classNames: c, precision: vt, customLayers: _ }) : null }), t[23] = Nt, t[24] = Vt, t[25] = q, t[26] = c, t[27] = Q, t[28] = Ht, t[29] = _, t[30] = A, t[31] = y, t[32] = m, t[33] = x, t[34] = r, t[35] = nt, t[36] = G, t[37] = ft, t[38] = Bt, t[39] = mt, t[40] = E, t[41] = yt, t[42] = ct, t[43] = vt, t[44] = xt, t[45] = a, t[46] = ht, t[47] = U, t[48] = Mt, t[49] = B, t[50] = l, t[51] = u, t[52] = $t, t[53] = tt, t[54] = H, t[55] = Lt, t[56] = dt, t[57] = P, t[58] = S) : S = t[58];
486
- let v;
487
- t[59] !== c?.footnote || t[60] !== c?.source || t[61] !== Ct || t[62] !== b || t[63] !== u?.footnote || t[64] !== u?.source || t[65] !== C ? (v = b || Ct ? /* @__PURE__ */ o.jsx(li, { styles: {
487
+ }, rtl: x === "he" || x === "ar", strokeWidth: l, showDots: Rt, annotations: Ht, customHighlightAreaSettings: It, regressionLine: yt, yAxisTitle: B, noOfYTicks: vt, maxDate: E, minDate: Ut, curveType: _, styles: u, classNames: c, precision: wt, customLayers: et }) : null, t[25] = Vt, t[26] = Ht, t[27] = K, t[28] = c, t[29] = _, t[30] = It, t[31] = et, t[32] = y, t[33] = v, t[34] = m, t[35] = x, t[36] = r, t[37] = st, t[38] = E, t[39] = ut, t[40] = Ut, t[41] = ft, t[42] = z, t[43] = vt, t[44] = mt, t[45] = wt, t[46] = dt, t[47] = a, t[48] = yt, t[49] = J, t[50] = Rt, t[51] = U, t[52] = l, t[53] = u, t[54] = Tt, t[55] = it, t[56] = W, t[57] = $t, t[58] = gt, t[59] = B, t[60] = w) : w = t[60];
488
+ let M;
489
+ t[61] !== T || t[62] !== w ? (M = /* @__PURE__ */ o.jsxs(ui, { ref: At, children: [
490
+ T,
491
+ w
492
+ ] }), t[61] = T, t[62] = w, t[63] = M) : M = t[63];
493
+ let N;
494
+ t[64] !== c?.footnote || t[65] !== c?.source || t[66] !== jt || t[67] !== b || t[68] !== u?.footnote || t[69] !== u?.source || t[70] !== C ? (N = b || jt ? /* @__PURE__ */ o.jsx(li, { styles: {
488
495
  footnote: u?.footnote,
489
496
  source: u?.source
490
497
  }, classNames: {
491
498
  footnote: c?.footnote,
492
499
  source: c?.source
493
- }, sources: b, footNote: Ct, width: C }) : null, t[59] = c?.footnote, t[60] = c?.source, t[61] = Ct, t[62] = b, t[63] = u?.footnote, t[64] = u?.source, t[65] = C, t[66] = v) : v = t[66];
494
- let ot;
495
- return t[67] !== Jt || t[68] !== z || t[69] !== Et || t[70] !== st || t[71] !== x || t[72] !== J || t[73] !== at || t[74] !== s || t[75] !== At || t[76] !== k || t[77] !== $ || t[78] !== S || t[79] !== v || t[80] !== K || t[81] !== C ? (ot = /* @__PURE__ */ o.jsxs(pi, { className: At, style: k, id: Et, ref: F, "aria-label": Jt, backgroundColor: z, theme: K, language: x, minHeight: J, width: C, height: st, relativeHeight: s, padding: at, children: [
496
- $,
500
+ }, sources: b, footNote: jt, width: C }) : null, t[64] = c?.footnote, t[65] = c?.source, t[66] = jt, t[67] = b, t[68] = u?.footnote, t[69] = u?.source, t[70] = C, t[71] = N) : N = t[71];
501
+ let j;
502
+ return t[72] !== Qt || t[73] !== q || t[74] !== zt || t[75] !== at || t[76] !== x || t[77] !== Q || t[78] !== rt || t[79] !== s || t[80] !== bt || t[81] !== $ || t[82] !== S || t[83] !== M || t[84] !== N || t[85] !== Z || t[86] !== C ? (j = /* @__PURE__ */ o.jsxs(pi, { className: bt, style: $, id: zt, ref: Y, "aria-label": Qt, backgroundColor: q, theme: Z, language: x, minHeight: Q, width: C, height: at, relativeHeight: s, padding: rt, children: [
497
503
  S,
498
- v
499
- ] }), t[67] = Jt, t[68] = z, t[69] = Et, t[70] = st, t[71] = x, t[72] = J, t[73] = at, t[74] = s, t[75] = At, t[76] = k, t[77] = $, t[78] = S, t[79] = v, t[80] = K, t[81] = C, t[82] = ot) : ot = t[82], ot;
504
+ M,
505
+ N
506
+ ] }), t[72] = Qt, t[73] = q, t[74] = zt, t[75] = at, t[76] = x, t[77] = Q, t[78] = rt, t[79] = s, t[80] = bt, t[81] = $, t[82] = S, t[83] = M, t[84] = N, t[85] = Z, t[86] = C, t[87] = j) : j = t[87], j;
500
507
  }
501
508
  function Vi(i) {
502
509
  return i !== void 0;