@undp/data-viz 2.1.3 → 2.1.4
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.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.js +279 -272
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +298 -287
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +404 -397
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.js +42 -39
- package/dist/DonutChart.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
- package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
- package/dist/{GraphEl-CRrAlbcr.js → GraphEl-oZwZiTHI.js} +3 -2
- package/dist/GraphEl-oZwZiTHI.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +368 -361
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +327 -320
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +374 -367
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +385 -378
- package/dist/ParetoChart.js.map +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +34 -33
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +176 -169
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +366 -359
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +285 -278
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +243 -236
- package/dist/SlopeChart.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/index-Blvf-Q3U.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
- package/dist/index-D1RrKgK6.js +337 -0
- package/dist/index-D1RrKgK6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-BLMih7RN.cjs +0 -2
- package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
- package/dist/GraphEl-CRrAlbcr.js.map +0 -1
- package/dist/index-CF5hnGvG.cjs +0 -2
- package/dist/index-DPGq3eIL.js +0 -330
- package/dist/index-DPGq3eIL.js.map +0 -1
package/dist/SimpleLineChart.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as Te, m as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { p as
|
|
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
|
|
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
|
|
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-
|
|
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:
|
|
35
|
-
width:
|
|
36
|
-
height:
|
|
37
|
-
lineColor:
|
|
34
|
+
data: y,
|
|
35
|
+
width: G,
|
|
36
|
+
height: st,
|
|
37
|
+
lineColor: P,
|
|
38
38
|
suffix: b,
|
|
39
|
-
prefix:
|
|
39
|
+
prefix: V,
|
|
40
40
|
dateFormat: n,
|
|
41
|
-
highlightAreaSettings:
|
|
41
|
+
highlightAreaSettings: at,
|
|
42
42
|
showValues: C,
|
|
43
|
-
noOfXTicks:
|
|
44
|
-
rightMargin:
|
|
45
|
-
leftMargin:
|
|
46
|
-
topMargin:
|
|
47
|
-
bottomMargin:
|
|
48
|
-
tooltip:
|
|
49
|
-
onSeriesMouseOver:
|
|
50
|
-
refValues:
|
|
51
|
-
minValue:
|
|
52
|
-
maxValue:
|
|
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:
|
|
55
|
-
strokeWidth:
|
|
56
|
-
showDots:
|
|
57
|
-
annotations:
|
|
58
|
-
customHighlightAreaSettings:
|
|
59
|
-
regressionLine:
|
|
60
|
-
yAxisTitle:
|
|
61
|
-
noOfYTicks:
|
|
62
|
-
maxDate:
|
|
63
|
-
minDate:
|
|
64
|
-
curveType:
|
|
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:
|
|
68
|
-
customLayers:
|
|
69
|
-
} = i,
|
|
70
|
-
let
|
|
71
|
-
t[0] !== s.amount || t[1] !== s.once ? (
|
|
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] =
|
|
75
|
-
const f = ri(
|
|
76
|
-
let
|
|
77
|
-
t[3] !== s.duration || t[4] !==
|
|
78
|
-
if (f && !
|
|
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
|
-
|
|
80
|
+
Qt(!0);
|
|
81
81
|
}, (s.duration + 0.5) * 1e3);
|
|
82
82
|
return () => clearTimeout(e);
|
|
83
83
|
}
|
|
84
|
-
},
|
|
85
|
-
const
|
|
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[
|
|
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:
|
|
98
|
-
}), t[13] = n, t[14] =
|
|
99
|
-
const r = Ie(
|
|
100
|
-
let
|
|
101
|
-
if (t[15] !== n || t[16] !==
|
|
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 :
|
|
106
|
-
}), t[18] = n, t[19] = e) : e = t[19],
|
|
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
|
-
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
if (t[20] !==
|
|
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((
|
|
116
|
-
}), t[23] = n, t[24] = e) : e = t[24],
|
|
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
|
-
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
t[25] !==
|
|
122
|
-
const l = Qe().domain([x,
|
|
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 = (
|
|
125
|
-
const
|
|
126
|
-
u(
|
|
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),
|
|
128
|
+
u(void 0), Zt(void 0), Tt(void 0), kt?.(void 0);
|
|
129
129
|
};
|
|
130
|
-
ni(
|
|
131
|
-
}, [a, r,
|
|
132
|
-
const
|
|
133
|
-
let
|
|
134
|
-
t[28] !== s || t[29] !== g || t[30] !== m || t[31] !==
|
|
135
|
-
const
|
|
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[
|
|
144
|
-
gridLines:
|
|
145
|
-
labels:
|
|
146
|
-
}, t[
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
t[
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
t[
|
|
153
|
-
|
|
154
|
-
|
|
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:
|
|
157
|
-
}, t[46] =
|
|
158
|
-
const
|
|
159
|
-
let
|
|
160
|
-
t[50] !==
|
|
161
|
-
axis:
|
|
162
|
-
label:
|
|
163
|
-
}, t[50] =
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
t[53] !==
|
|
167
|
-
axis:
|
|
168
|
-
label:
|
|
169
|
-
}, t[53] =
|
|
170
|
-
let
|
|
171
|
-
t[56] !==
|
|
172
|
-
const
|
|
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[
|
|
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[
|
|
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] =
|
|
183
|
-
const
|
|
184
|
-
let
|
|
185
|
-
t[76] !==
|
|
186
|
-
const
|
|
187
|
-
let
|
|
188
|
-
t[78] !==
|
|
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[
|
|
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[
|
|
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[
|
|
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] =
|
|
209
|
-
const De = r.map((e, h) => /* @__PURE__ */ o.jsx(
|
|
210
|
-
|
|
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:
|
|
220
|
+
fill: P
|
|
221
221
|
},
|
|
222
222
|
whileInView: {
|
|
223
223
|
opacity: 1,
|
|
224
|
-
fill:
|
|
224
|
+
fill: P,
|
|
225
225
|
transition: {
|
|
226
|
-
duration:
|
|
227
|
-
delay:
|
|
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(
|
|
233
|
+
C ? /* @__PURE__ */ o.jsx(ee.text, { dy: -8, style: {
|
|
234
234
|
textAnchor: "middle",
|
|
235
235
|
...d?.graphObjectValues || {}
|
|
236
|
-
}, className:
|
|
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:
|
|
253
|
-
delay:
|
|
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",
|
|
256
|
+
}, initial: "initial", animate: f ? "whileInView" : "initial", children: Se(e.y, "NA", R, V, b) }) : null
|
|
257
257
|
] }) }, h));
|
|
258
|
-
let
|
|
259
|
-
t[90] !== De ? (
|
|
260
|
-
const Le =
|
|
261
|
-
const
|
|
262
|
-
x: e.xCoordinate ? a(
|
|
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(
|
|
265
|
+
x: e.xCoordinate ? a(A(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
|
|
266
266
|
y: e.yCoordinate ? l(e.yCoordinate) : 0
|
|
267
|
-
},
|
|
268
|
-
y1:
|
|
269
|
-
x1:
|
|
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(
|
|
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(
|
|
274
|
-
circleRadius:
|
|
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:
|
|
279
|
-
width:
|
|
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:
|
|
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[
|
|
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[
|
|
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[
|
|
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] =
|
|
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
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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:
|
|
307
|
-
|
|
308
|
-
|
|
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:
|
|
311
|
-
|
|
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(
|
|
313
|
+
/* @__PURE__ */ o.jsx(ee.path, { style: le, exit: ce, variants: {
|
|
314
314
|
initial: {
|
|
315
315
|
pathLength: 0,
|
|
316
|
-
d:
|
|
316
|
+
d: Rt(r) || "",
|
|
317
317
|
opacity: 1
|
|
318
318
|
},
|
|
319
319
|
whileInView: {
|
|
320
320
|
pathLength: 1,
|
|
321
|
-
d:
|
|
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
|
-
|
|
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
|
-
|
|
334
|
+
pe,
|
|
335
|
+
de
|
|
336
336
|
] }) }),
|
|
337
|
-
|
|
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 !
|
|
359
|
+
return !Ot(i.date) && !Ot(i.y);
|
|
360
360
|
}
|
|
361
361
|
function Ci(i) {
|
|
362
362
|
return i.date;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Oi(i) {
|
|
365
365
|
return i != null;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
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
|
|
388
|
+
function Mi(i) {
|
|
389
389
|
return i != null;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Ni(i) {
|
|
392
392
|
return i.y;
|
|
393
393
|
}
|
|
394
394
|
function ho(i) {
|
|
395
|
-
const t = Te.c(
|
|
396
|
-
data:
|
|
397
|
-
graphTitle:
|
|
398
|
-
lineColor:
|
|
399
|
-
suffix:
|
|
395
|
+
const t = Te.c(88), {
|
|
396
|
+
data: y,
|
|
397
|
+
graphTitle: G,
|
|
398
|
+
lineColor: st,
|
|
399
|
+
suffix: P,
|
|
400
400
|
sources: b,
|
|
401
|
-
prefix:
|
|
401
|
+
prefix: V,
|
|
402
402
|
graphDescription: n,
|
|
403
|
-
height:
|
|
403
|
+
height: at,
|
|
404
404
|
width: C,
|
|
405
|
-
footNote:
|
|
406
|
-
noOfXTicks:
|
|
407
|
-
dateFormat:
|
|
408
|
-
showValues:
|
|
409
|
-
padding:
|
|
410
|
-
backgroundColor:
|
|
411
|
-
leftMargin:
|
|
412
|
-
rightMargin:
|
|
413
|
-
topMargin:
|
|
414
|
-
bottomMargin:
|
|
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:
|
|
417
|
-
onSeriesMouseOver:
|
|
418
|
-
highlightAreaSettings:
|
|
419
|
-
graphID:
|
|
420
|
-
minValue:
|
|
421
|
-
maxValue:
|
|
422
|
-
maxDate:
|
|
423
|
-
minDate:
|
|
424
|
-
graphDownload:
|
|
425
|
-
dataDownload:
|
|
426
|
-
animate:
|
|
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:
|
|
430
|
-
strokeWidth:
|
|
431
|
-
showDots:
|
|
432
|
-
annotations:
|
|
429
|
+
minHeight: R,
|
|
430
|
+
strokeWidth: H,
|
|
431
|
+
showDots: Kt,
|
|
432
|
+
annotations: F,
|
|
433
433
|
customHighlightAreaSettings: f,
|
|
434
|
-
theme:
|
|
435
|
-
ariaLabel:
|
|
436
|
-
regressionLine:
|
|
437
|
-
yAxisTitle:
|
|
438
|
-
noOfYTicks:
|
|
439
|
-
curveType:
|
|
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:
|
|
443
|
-
customLayers:
|
|
444
|
-
} = i,
|
|
445
|
-
let
|
|
446
|
-
t[0] !==
|
|
447
|
-
const m =
|
|
448
|
-
let
|
|
449
|
-
t[2] !== p ? (
|
|
450
|
-
const a =
|
|
451
|
-
let
|
|
452
|
-
t[4] !==
|
|
453
|
-
const
|
|
454
|
-
let
|
|
455
|
-
t[6] !== f ? (
|
|
456
|
-
const
|
|
457
|
-
let
|
|
458
|
-
t[8] !==
|
|
459
|
-
const
|
|
460
|
-
let
|
|
461
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
462
|
-
const
|
|
463
|
-
|
|
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
|
|
466
|
-
},
|
|
467
|
-
const
|
|
468
|
-
let
|
|
469
|
-
t[12] !== c?.description || t[13] !== c?.title || t[14] !==
|
|
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:
|
|
476
|
-
let
|
|
477
|
-
t[23] !==
|
|
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
|
-
} :
|
|
483
|
+
} : Vt || {
|
|
482
484
|
duration: 0,
|
|
483
485
|
once: !0,
|
|
484
486
|
amount: 0
|
|
485
|
-
}, rtl: x === "he" || x === "ar", strokeWidth: l, showDots:
|
|
486
|
-
let
|
|
487
|
-
t[
|
|
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:
|
|
494
|
-
let
|
|
495
|
-
return t[
|
|
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
|
-
|
|
499
|
-
|
|
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;
|