@undp/data-viz 2.3.15 → 2.3.17
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/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +9 -6
- package/dist/BiVariateChoroplethMap.js +1 -1
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +9 -6
- package/dist/ChoroplethMap.js +1 -1
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/Data/data.json +2627 -0
- package/dist/Data/testMap.json +1 -361
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +7 -5
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{GraphEl-BgNA-xFf.js → GraphEl-CnJf8b50.js} +2 -1
- package/dist/GraphEl-CnJf8b50.js.map +1 -0
- package/dist/{GraphEl-Bl1Hnqnd.cjs → GraphEl-D_w0Qak4.cjs} +2 -2
- package/dist/GraphEl-D_w0Qak4.cjs.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +8 -5
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +8 -5
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +7 -5
- package/dist/HybridMap.js.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +8 -5
- package/dist/MultiGraphDashboardFromConfig.d.ts +8 -5
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +387 -379
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +8 -5
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +8 -5
- package/dist/PerformanceIntensiveScrollStory.d.ts +8 -5
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +396 -400
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +8 -5
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +8 -5
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +8 -5
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +8 -5
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +8 -5
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +8 -5
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +8 -5
- package/dist/Types.d.ts +8 -5
- package/dist/index.d.ts +18 -27
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/GraphEl-BgNA-xFf.js.map +0 -1
- package/dist/GraphEl-Bl1Hnqnd.cjs.map +0 -1
|
@@ -1,587 +1,595 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { p as j, f as
|
|
4
|
-
import { o as
|
|
5
|
-
import { n as
|
|
6
|
-
import { T as
|
|
1
|
+
import { c as Ge, m as Te, j as s } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
|
+
import { useRef as ke, useState as Ut, useEffect as We } from "react";
|
|
3
|
+
import { p as j, f as Re } from "./parse-Dv4of-PN.js";
|
|
4
|
+
import { o as Xe } from "./index-BZQYSqar.js";
|
|
5
|
+
import { n as Ee } from "./numberFormattingFunction-14YCbkN2.js";
|
|
6
|
+
import { T as ze } from "./Tooltip-CohiIbLZ.js";
|
|
7
7
|
import { c as v } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
|
-
import { C as
|
|
9
|
-
import { A as
|
|
10
|
-
import { A as
|
|
11
|
-
import { X as
|
|
12
|
-
import { a as
|
|
13
|
-
import { Y as
|
|
14
|
-
import { H as
|
|
15
|
-
import { Colors as
|
|
16
|
-
import { u as
|
|
17
|
-
import { c as
|
|
18
|
-
import { t as
|
|
19
|
-
import { a as
|
|
20
|
-
import { D as
|
|
21
|
-
import { l as
|
|
22
|
-
import { c as
|
|
23
|
-
import { s as
|
|
24
|
-
import { m as
|
|
25
|
-
import { p as
|
|
26
|
-
import { u as
|
|
27
|
-
import { GraphFooter as
|
|
28
|
-
import { GraphHeader as
|
|
29
|
-
import { E as
|
|
30
|
-
import { ColorLegendWithMouseOver as
|
|
31
|
-
import { a as
|
|
32
|
-
import { g as
|
|
33
|
-
function
|
|
8
|
+
import { C as Ue, g as qe, A as Je } from "./customArea-Cc2whe6P.js";
|
|
9
|
+
import { A as Ke } from "./AxisTitle-DGjX1_2v.js";
|
|
10
|
+
import { A as Qe } from "./Axis-RyGdzLrG.js";
|
|
11
|
+
import { X as Ze } from "./XTicksAndGridLines-BDmF9etl.js";
|
|
12
|
+
import { a as _e } from "./ReferenceLine-CNEjAYvv.js";
|
|
13
|
+
import { Y as to } from "./YTicksAndGridLines-C3GW1xFG.js";
|
|
14
|
+
import { H as eo } from "./index-D_dtv_T9.js";
|
|
15
|
+
import { Colors as B } from "./Colors.js";
|
|
16
|
+
import { u as Se } from "./uniqBy-BHy4I8PK.js";
|
|
17
|
+
import { c as Ye, a as oo } from "./init-BhZylTFx.js";
|
|
18
|
+
import { t as io } from "./time-vyz6Y89P.js";
|
|
19
|
+
import { a as no } from "./linear-DNXM5Pdl.js";
|
|
20
|
+
import { D as ro } from "./delaunay-C1uAf38t.js";
|
|
21
|
+
import { l as so, c as ao } from "./line-DFlZsxI1.js";
|
|
22
|
+
import { c as lo, s as co, a as fo, m as mo } from "./step-BrDul-H4.js";
|
|
23
|
+
import { s as uo } from "./select-DKy99ogv.js";
|
|
24
|
+
import { m as zt } from "./proxy--_f6k3NR.js";
|
|
25
|
+
import { p as ho } from "./pointer-CWRWOsrb.js";
|
|
26
|
+
import { u as po } from "./use-in-view-DqvKAveg.js";
|
|
27
|
+
import { GraphFooter as go } from "./GraphFooter.js";
|
|
28
|
+
import { GraphHeader as xo } from "./GraphHeader.js";
|
|
29
|
+
import { E as yo } from "./EmptyState-B3fPoH6L.js";
|
|
30
|
+
import { ColorLegendWithMouseOver as vo } from "./ColorLegendWithMouseOver.js";
|
|
31
|
+
import { a as wo, G as bo } from "./GraphContainer-DwMxWRCi.js";
|
|
32
|
+
import { g as Oo } from "./getNoOfTicks-CpmRjcRF.js";
|
|
33
|
+
function Co(e, t) {
|
|
34
34
|
return Array.from(t, (n) => e[n]);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Ao(e, ...t) {
|
|
37
37
|
if (typeof e[Symbol.iterator] != "function") throw new TypeError("values is not iterable");
|
|
38
38
|
e = Array.from(e);
|
|
39
39
|
let [n] = t;
|
|
40
40
|
if (n && n.length !== 2 || t.length > 1) {
|
|
41
|
-
const w = Uint32Array.from(e, (M,
|
|
42
|
-
return t.length > 1 ? (t = t.map((M) => e.map(M)), w.sort((M,
|
|
41
|
+
const w = Uint32Array.from(e, (M, m) => m);
|
|
42
|
+
return t.length > 1 ? (t = t.map((M) => e.map(M)), w.sort((M, m) => {
|
|
43
43
|
for (const r of t) {
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
44
|
+
const Ct = Ie(r[M], r[m]);
|
|
45
|
+
if (Ct) return Ct;
|
|
46
46
|
}
|
|
47
|
-
})) : (n = e.map(n), w.sort((M,
|
|
47
|
+
})) : (n = e.map(n), w.sort((M, m) => Ie(n[M], n[m]))), Co(e, w);
|
|
48
48
|
}
|
|
49
|
-
return e.sort(
|
|
49
|
+
return e.sort(Do(n));
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
if (e ===
|
|
51
|
+
function Do(e = Ye) {
|
|
52
|
+
if (e === Ye) return Ie;
|
|
53
53
|
if (typeof e != "function") throw new TypeError("compare is not a function");
|
|
54
54
|
return (t, n) => {
|
|
55
55
|
const w = e(t, n);
|
|
56
56
|
return w || w === 0 ? w : (e(n, n) === 0) - (e(t, t) === 0);
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Ie(e, t) {
|
|
60
60
|
return (e == null || !(e >= e)) - (t == null || !(t >= t)) || (e < t ? -1 : e > t ? 1 : 0);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
const t =
|
|
62
|
+
function Lo(e) {
|
|
63
|
+
const t = Ge.c(128), {
|
|
64
64
|
data: n,
|
|
65
65
|
width: w,
|
|
66
66
|
height: M,
|
|
67
|
-
lineColors:
|
|
67
|
+
lineColors: m,
|
|
68
68
|
dateFormat: r,
|
|
69
|
-
noOfXTicks:
|
|
70
|
-
rightMargin:
|
|
71
|
-
topMargin:
|
|
72
|
-
bottomMargin:
|
|
69
|
+
noOfXTicks: Ct,
|
|
70
|
+
rightMargin: et,
|
|
71
|
+
topMargin: qt,
|
|
72
|
+
bottomMargin: ot,
|
|
73
73
|
suffix: W,
|
|
74
74
|
prefix: x,
|
|
75
|
-
leftMargin:
|
|
76
|
-
tooltip:
|
|
77
|
-
onSeriesMouseOver:
|
|
78
|
-
refValues:
|
|
79
|
-
highlightAreaSettings:
|
|
80
|
-
minValue:
|
|
81
|
-
maxValue:
|
|
75
|
+
leftMargin: A,
|
|
76
|
+
tooltip: At,
|
|
77
|
+
onSeriesMouseOver: it,
|
|
78
|
+
refValues: nt,
|
|
79
|
+
highlightAreaSettings: Jt,
|
|
80
|
+
minValue: z,
|
|
81
|
+
maxValue: Dt,
|
|
82
82
|
highlightedLines: Y,
|
|
83
|
-
animate:
|
|
84
|
-
rtl:
|
|
83
|
+
animate: l,
|
|
84
|
+
rtl: U,
|
|
85
85
|
strokeWidth: S,
|
|
86
86
|
showDots: ae,
|
|
87
|
-
annotations:
|
|
88
|
-
customHighlightAreaSettings:
|
|
89
|
-
yAxisTitle:
|
|
90
|
-
noOfYTicks:
|
|
91
|
-
minDate:
|
|
92
|
-
maxDate:
|
|
93
|
-
curveType:
|
|
94
|
-
styles:
|
|
95
|
-
colorDomain:
|
|
96
|
-
selectedColor:
|
|
97
|
-
classNames:
|
|
87
|
+
annotations: Lt,
|
|
88
|
+
customHighlightAreaSettings: Kt,
|
|
89
|
+
yAxisTitle: jt,
|
|
90
|
+
noOfYTicks: Qt,
|
|
91
|
+
minDate: Mt,
|
|
92
|
+
maxDate: Zt,
|
|
93
|
+
curveType: rt,
|
|
94
|
+
styles: b,
|
|
95
|
+
colorDomain: D,
|
|
96
|
+
selectedColor: $t,
|
|
97
|
+
classNames: C,
|
|
98
98
|
showLabels: de,
|
|
99
|
-
dimmedOpacity:
|
|
99
|
+
dimmedOpacity: N,
|
|
100
100
|
precision: I,
|
|
101
101
|
naLabel: xe,
|
|
102
|
-
customLayers:
|
|
103
|
-
showHighlightedLinesLabels: ye
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
102
|
+
customLayers: q,
|
|
103
|
+
showHighlightedLinesLabels: ye,
|
|
104
|
+
showDateOnHover: _t
|
|
105
|
+
} = e, Tt = ke(null);
|
|
106
|
+
let kt;
|
|
107
|
+
t[0] !== l.amount || t[1] !== l.once ? (kt = {
|
|
108
|
+
once: l.once,
|
|
109
|
+
amount: l.amount
|
|
110
|
+
}, t[0] = l.amount, t[1] = l.once, t[2] = kt) : kt = t[2];
|
|
111
|
+
const u = po(Tt, kt), [$, ve] = Ut(!1);
|
|
112
|
+
let st, at;
|
|
113
|
+
t[3] !== l.duration || t[4] !== $ || t[5] !== u ? (st = () => {
|
|
113
114
|
if (u && !$) {
|
|
114
115
|
const o = setTimeout(() => {
|
|
115
|
-
|
|
116
|
-
}, (
|
|
116
|
+
ve(!0);
|
|
117
|
+
}, (l.duration + 0.5) * 1e3);
|
|
117
118
|
return () => clearTimeout(o);
|
|
118
119
|
}
|
|
119
|
-
}, at = [u, $,
|
|
120
|
-
const
|
|
121
|
-
let
|
|
122
|
-
t[8] !== r ? (
|
|
120
|
+
}, at = [u, $, l.duration], t[3] = l.duration, t[4] = $, t[5] = u, t[6] = st, t[7] = at) : (st = t[6], at = t[7]), We(st, at);
|
|
121
|
+
const we = rt === "linear" ? ao : rt === "step" ? lo : rt === "stepAfter" ? co : rt === "stepBefore" ? fo : mo;
|
|
122
|
+
let g;
|
|
123
|
+
t[8] !== r ? (g = (o) => ({
|
|
123
124
|
...o,
|
|
124
125
|
date: j(`${o.date}`, r, /* @__PURE__ */ new Date())
|
|
125
|
-
}), t[8] = r, t[9] =
|
|
126
|
-
const
|
|
127
|
-
let
|
|
128
|
-
t[10] !== r ? (
|
|
129
|
-
const
|
|
130
|
-
let mt;
|
|
131
|
-
t[12] !== it || t[13] !== ot || t[14] !== Nt || t[15] !== Jt ? (mt = {
|
|
132
|
-
top: Jt,
|
|
133
|
-
bottom: it,
|
|
134
|
-
left: Nt,
|
|
135
|
-
right: ot
|
|
136
|
-
}, t[12] = it, t[13] = ot, t[14] = Nt, t[15] = Jt, t[16] = mt) : mt = t[16];
|
|
137
|
-
const d = mt, fe = Me(null), me = g.map((o) => Ie(l.filter((i) => i.label == o), ["date"], ["asc"]));
|
|
126
|
+
}), t[8] = r, t[9] = g) : g = t[9];
|
|
127
|
+
const a = Xe(n.map(g), ["date"], ["asc"]).filter(ii), be = Se(a, "label", !0);
|
|
128
|
+
let St;
|
|
129
|
+
t[10] !== r ? (St = (o) => j(`${o}`, r, /* @__PURE__ */ new Date()), t[10] = r, t[11] = St) : St = t[11];
|
|
130
|
+
const lt = Ao(Se(n, "date", !0).map(St), oi), [h, ct] = Ut(void 0), [ft, J] = Ut(void 0), [mt, K] = Ut(void 0), Nt = jt ? A + 30 : A;
|
|
138
131
|
let ut;
|
|
139
|
-
|
|
132
|
+
t[12] !== ot || t[13] !== et || t[14] !== Nt || t[15] !== qt ? (ut = {
|
|
133
|
+
top: qt,
|
|
134
|
+
bottom: ot,
|
|
135
|
+
left: Nt,
|
|
136
|
+
right: et
|
|
137
|
+
}, t[12] = ot, t[13] = et, t[14] = Nt, t[15] = qt, t[16] = ut) : ut = t[16];
|
|
138
|
+
const d = ut, le = ke(null), ce = be.map((o) => Xe(a.filter((i) => i.label == o), ["date"], ["asc"]));
|
|
139
|
+
let ht;
|
|
140
|
+
if (t[17] !== r || t[18] !== Jt) {
|
|
140
141
|
let o;
|
|
141
142
|
t[20] !== r ? (o = (i) => ({
|
|
142
143
|
...i,
|
|
143
144
|
coordinates: [i.coordinates[0] === null ? null : j(`${i.coordinates[0]}`, r, /* @__PURE__ */ new Date()), i.coordinates[1] === null ? null : j(`${i.coordinates[1]}`, r, /* @__PURE__ */ new Date())]
|
|
144
|
-
}), t[20] = r, t[21] = o) : o = t[21],
|
|
145
|
+
}), t[20] = r, t[21] = o) : o = t[21], ht = Jt.map(o), t[17] = r, t[18] = Jt, t[19] = ht;
|
|
145
146
|
} else
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
if (t[22] !==
|
|
147
|
+
ht = t[19];
|
|
148
|
+
const Ht = ht;
|
|
149
|
+
let pt;
|
|
150
|
+
if (t[22] !== Kt || t[23] !== r) {
|
|
150
151
|
let o;
|
|
151
152
|
t[25] !== r ? (o = (i) => ({
|
|
152
153
|
...i,
|
|
153
|
-
coordinates: i.coordinates.map((y,
|
|
154
|
-
}), t[25] = r, t[26] = o) : o = t[26],
|
|
154
|
+
coordinates: i.coordinates.map((y, Bt) => Bt % 2 === 0 ? j(`${y}`, r, /* @__PURE__ */ new Date()) : y)
|
|
155
|
+
}), t[25] = r, t[26] = o) : o = t[26], pt = Kt.map(o), t[22] = Kt, t[23] = r, t[24] = pt;
|
|
155
156
|
} else
|
|
156
|
-
|
|
157
|
-
const
|
|
157
|
+
pt = t[24];
|
|
158
|
+
const fe = pt, p = w - d.left - d.right, T = M - d.top - d.bottom, te = Mt ? j(`${Mt}`, r, /* @__PURE__ */ new Date()) : lt[0], me = Zt ? j(`${Zt}`, r, /* @__PURE__ */ new Date()) : lt[lt.length - 1], O = v(z) ? Math.min(...a.map(ei).filter(ti)) ? Math.min(...a.map(_o).filter(Zo)) > 0 ? 0 : Math.min(...a.map(Qo).filter(Ko)) : 0 : z, Q = Math.max(...a.map(Jo).filter(qo)) ? Math.max(...a.map(Uo).filter(zo)) : 0, f = io().domain([te, me]).range([0, p]);
|
|
158
159
|
let Z;
|
|
159
|
-
t[27] !==
|
|
160
|
+
t[27] !== O || t[28] !== z ? (Z = v(z) ? O : z, t[27] = O, t[28] = z, t[29] = Z) : Z = t[29];
|
|
160
161
|
let _;
|
|
161
|
-
t[30] !== Q || t[31] !==
|
|
162
|
-
const c =
|
|
163
|
-
|
|
162
|
+
t[30] !== Q || t[31] !== Dt ? (_ = v(Dt) ? Q > 0 ? Q : 0 : Dt, t[30] = Q, t[31] = Dt, t[32] = _) : _ = t[32];
|
|
163
|
+
const c = no().domain([Z, _]).range([T, 0]).nice(), ue = ro.from(a.filter(Bo), (o) => f(o.date), (o) => c(o.y)).voronoi([0, 0, p < 0 ? 0 : p, T < 0 ? 0 : T]), Vt = so().x((o) => f(o.date)).y((o) => c(o.y)).curve(we), ee = c.ticks(Qt), Wt = f.ticks(Ct);
|
|
164
|
+
We(() => {
|
|
164
165
|
const o = (y) => {
|
|
165
|
-
const
|
|
166
|
-
|
|
166
|
+
const Bt = a[oo(a.map(Fo), f.invert(ho(y)[0]), 0)];
|
|
167
|
+
ct(Bt || a[a.length - 1]), K(y.clientY), J(y.clientX), it?.(Bt || a[a.length - 1]);
|
|
167
168
|
}, i = () => {
|
|
168
|
-
|
|
169
|
+
ct(void 0), J(void 0), K(void 0);
|
|
169
170
|
};
|
|
170
|
-
|
|
171
|
-
}, [
|
|
172
|
-
let
|
|
173
|
-
t[33] !==
|
|
174
|
-
const
|
|
171
|
+
uo(le.current).on("mousemove", o).on("mouseout", i), it?.(void 0);
|
|
172
|
+
}, [f, a, it]);
|
|
173
|
+
let gt;
|
|
174
|
+
t[33] !== l || t[34] !== T || t[35] !== p || t[36] !== Ht || t[37] !== u || t[38] !== f ? (gt = /* @__PURE__ */ s.jsx(eo, { areaSettings: Ht, width: p, height: T, scale: f, animate: l, isInView: u }), t[33] = l, t[34] = T, t[35] = p, t[36] = Ht, t[37] = u, t[38] = f, t[39] = gt) : gt = t[39];
|
|
175
|
+
const dt = b?.yAxis?.gridLines, Yt = b?.yAxis?.labels;
|
|
175
176
|
let L;
|
|
176
|
-
t[40] !==
|
|
177
|
-
gridLines:
|
|
177
|
+
t[40] !== dt || t[41] !== Yt ? (L = {
|
|
178
|
+
gridLines: dt,
|
|
178
179
|
labels: Yt
|
|
179
|
-
}, t[40] =
|
|
180
|
-
const It =
|
|
181
|
-
let
|
|
182
|
-
t[43] !== It || t[44] !== Rt ? (
|
|
180
|
+
}, t[40] = dt, t[41] = Yt, t[42] = L) : L = t[42];
|
|
181
|
+
const It = C?.yAxis?.gridLines, Rt = C?.yAxis?.labels;
|
|
182
|
+
let xt;
|
|
183
|
+
t[43] !== It || t[44] !== Rt ? (xt = {
|
|
183
184
|
gridLines: It,
|
|
184
185
|
labels: Rt
|
|
185
|
-
}, t[43] = It, t[44] = Rt, t[45] =
|
|
186
|
-
const Xt = c(
|
|
187
|
-
let
|
|
188
|
-
t[46] !== I || t[47] !== x || t[48] !== W || t[49] !==
|
|
189
|
-
const
|
|
190
|
-
let wt;
|
|
191
|
-
t[51] !== vt || t[52] !== ge || t[53] !== Pt ? (wt = {
|
|
192
|
-
x: vt,
|
|
193
|
-
y: ge,
|
|
194
|
-
dx: 0,
|
|
195
|
-
dy: Pt
|
|
196
|
-
}, t[51] = vt, t[52] = ge, t[53] = Pt, t[54] = wt) : wt = t[54];
|
|
197
|
-
const Ft = D?.xAxis?.axis, ie = D?.yAxis?.labels;
|
|
198
|
-
let N;
|
|
199
|
-
t[55] !== Ft || t[56] !== ie ? (N = {
|
|
200
|
-
axis: Ft,
|
|
201
|
-
label: ie
|
|
202
|
-
}, t[55] = Ft, t[56] = ie, t[57] = N) : N = t[57];
|
|
203
|
-
const bt = O?.xAxis?.axis, Bt = O?.yAxis?.labels;
|
|
186
|
+
}, t[43] = It, t[44] = Rt, t[45] = xt) : xt = t[45];
|
|
187
|
+
const Xt = c(O < 0 ? 0 : O), yt = c(O < 0 ? 0 : O), Et = 0 - A, Gt = p + d.right, Pt = O < 0 ? 0 : O;
|
|
188
|
+
let k;
|
|
189
|
+
t[46] !== I || t[47] !== x || t[48] !== W || t[49] !== Pt ? (k = Ee(Pt, "NA", I, x, W), t[46] = I, t[47] = x, t[48] = W, t[49] = Pt, t[50] = k) : k = t[50];
|
|
190
|
+
const he = 0 - A, vt = c(O < 0 ? 0 : O), pe = Q < 0 ? "1em" : -5;
|
|
204
191
|
let R;
|
|
205
|
-
t[
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
const
|
|
192
|
+
t[51] !== he || t[52] !== vt || t[53] !== pe ? (R = {
|
|
193
|
+
x: he,
|
|
194
|
+
y: vt,
|
|
195
|
+
dx: 0,
|
|
196
|
+
dy: pe
|
|
197
|
+
}, t[51] = he, t[52] = vt, t[53] = pe, t[54] = R) : R = t[54];
|
|
198
|
+
const ge = C?.xAxis?.axis, Ft = C?.yAxis?.labels;
|
|
199
|
+
let tt;
|
|
200
|
+
t[55] !== ge || t[56] !== Ft ? (tt = {
|
|
201
|
+
axis: ge,
|
|
202
|
+
label: Ft
|
|
203
|
+
}, t[55] = ge, t[56] = Ft, t[57] = tt) : tt = t[57];
|
|
204
|
+
const wt = b?.xAxis?.axis, bt = b?.yAxis?.labels;
|
|
205
|
+
let X;
|
|
206
|
+
t[58] !== wt || t[59] !== bt ? (X = {
|
|
207
|
+
axis: wt,
|
|
208
|
+
label: bt
|
|
209
|
+
}, t[58] = wt, t[59] = bt, t[60] = X) : X = t[60];
|
|
210
|
+
let Ot;
|
|
211
|
+
t[61] !== Xt || t[62] !== yt || t[63] !== Et || t[64] !== Gt || t[65] !== k || t[66] !== R || t[67] !== tt || t[68] !== X ? (Ot = /* @__PURE__ */ s.jsx(Qe, { y1: Xt, y2: yt, x1: Et, x2: Gt, label: k, labelPos: R, classNames: tt, styles: X }), t[61] = Xt, t[62] = yt, t[63] = Et, t[64] = Gt, t[65] = k, t[66] = R, t[67] = tt, t[68] = X, t[69] = Ot) : Ot = t[69];
|
|
212
|
+
const E = 0 - A - 15, G = T / 2, P = b?.yAxis?.title, F = C?.yAxis?.title;
|
|
212
213
|
let H;
|
|
213
|
-
t[70] !==
|
|
214
|
-
let
|
|
215
|
-
t[76] !== r ? (
|
|
216
|
-
const
|
|
217
|
-
let
|
|
218
|
-
t[78] !==
|
|
219
|
-
gridLines:
|
|
220
|
-
labels:
|
|
221
|
-
}, t[78] =
|
|
222
|
-
const
|
|
214
|
+
t[70] !== E || t[71] !== G || t[72] !== P || t[73] !== F || t[74] !== jt ? (H = /* @__PURE__ */ s.jsx(Ke, { x: E, y: G, style: P, className: F, text: jt, rotate90: !0 }), t[70] = E, t[71] = G, t[72] = P, t[73] = F, t[74] = jt, t[75] = H) : H = t[75];
|
|
215
|
+
let V;
|
|
216
|
+
t[76] !== r ? (V = (o) => Re(o, r), t[76] = r, t[77] = V) : V = t[77];
|
|
217
|
+
const oe = Wt.map(V), Oe = Wt.map((o) => f(o)), ie = b?.xAxis?.gridLines, Ne = b?.xAxis?.labels;
|
|
218
|
+
let Ce;
|
|
219
|
+
t[78] !== ie || t[79] !== Ne ? (Ce = {
|
|
220
|
+
gridLines: ie,
|
|
221
|
+
labels: Ne
|
|
222
|
+
}, t[78] = ie, t[79] = Ne, t[80] = Ce) : Ce = t[80];
|
|
223
|
+
const He = C?.xAxis?.gridLines;
|
|
223
224
|
let ne;
|
|
224
|
-
t[81] !==
|
|
225
|
-
const
|
|
225
|
+
t[81] !== He ? (ne = Te("opacity-0", He), t[81] = He, t[82] = ne) : ne = t[82];
|
|
226
|
+
const Ve = C?.xAxis?.labels;
|
|
226
227
|
let re;
|
|
227
|
-
t[83] !==
|
|
228
|
-
let
|
|
229
|
-
t[85] !== ne || t[86] !== re ? (
|
|
228
|
+
t[83] !== Ve ? (re = Te("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Ve), t[83] = Ve, t[84] = re) : re = t[84];
|
|
229
|
+
let Ae;
|
|
230
|
+
t[85] !== ne || t[86] !== re ? (Ae = {
|
|
230
231
|
gridLines: ne,
|
|
231
232
|
labels: re
|
|
232
|
-
}, t[85] = ne, t[86] = re, t[87] =
|
|
233
|
-
let
|
|
234
|
-
t[88] !==
|
|
235
|
-
const
|
|
236
|
-
|
|
233
|
+
}, t[85] = ne, t[86] = re, t[87] = Ae) : Ae = t[87];
|
|
234
|
+
let De;
|
|
235
|
+
t[88] !== q ? (De = q.filter(Eo).map(Xo), t[88] = q, t[89] = De) : De = t[89];
|
|
236
|
+
const Pe = a.filter($o).map((o, i) => /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx("path", { d: ue.renderCell(a.findIndex((y) => y.label === o.label && y.date === o.date)), opacity: 0, onMouseEnter: (y) => {
|
|
237
|
+
ct(o), K(y.clientY), J(y.clientX), it?.(o);
|
|
237
238
|
}, onMouseMove: (y) => {
|
|
238
|
-
|
|
239
|
+
ct(o), K(y.clientY), J(y.clientX);
|
|
239
240
|
}, onMouseLeave: () => {
|
|
240
|
-
|
|
241
|
+
ct(void 0), J(void 0), K(void 0), it?.(void 0);
|
|
241
242
|
} }) }, i));
|
|
242
|
-
let
|
|
243
|
-
t[90] !==
|
|
243
|
+
let Le;
|
|
244
|
+
t[90] !== l || t[91] !== p || t[92] !== u || t[93] !== A || t[94] !== d.right || t[95] !== nt || t[96] !== c ? (Le = nt ? /* @__PURE__ */ s.jsx(s.Fragment, { children: nt.map((o, i) => /* @__PURE__ */ s.jsx(_e, { text: o.text, color: o.color, y: c(o.value), x1: 0 - A, x2: p + d.right, classNames: o.classNames, styles: o.styles, animate: l, isInView: u }, i)) }) : null, t[90] = l, t[91] = p, t[92] = u, t[93] = A, t[94] = d.right, t[95] = nt, t[96] = c, t[97] = Le) : Le = t[97];
|
|
244
245
|
let se;
|
|
245
|
-
if (t[98] !==
|
|
246
|
+
if (t[98] !== l || t[99] !== Lt || t[100] !== r || t[101] !== p || t[102] !== u || t[103] !== d.right || t[104] !== U || t[105] !== f || t[106] !== c) {
|
|
246
247
|
let o;
|
|
247
|
-
t[108] !==
|
|
248
|
-
const
|
|
249
|
-
x: i.xCoordinate ?
|
|
248
|
+
t[108] !== l || t[109] !== r || t[110] !== p || t[111] !== u || t[112] !== d.right || t[113] !== U || t[114] !== f || t[115] !== c ? (o = (i, y) => {
|
|
249
|
+
const Bt = qe({
|
|
250
|
+
x: i.xCoordinate ? f(j(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
|
|
250
251
|
y: i.yCoordinate ? c(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8
|
|
251
252
|
}, {
|
|
252
|
-
x: i.xCoordinate ?
|
|
253
|
+
x: i.xCoordinate ? f(j(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) : 0,
|
|
253
254
|
y: i.yCoordinate ? c(i.yCoordinate) : 0
|
|
254
|
-
}, v(i.connectorRadius) ? 3.5 : i.connectorRadius),
|
|
255
|
-
y1:
|
|
256
|
-
x1:
|
|
255
|
+
}, v(i.connectorRadius) ? 3.5 : i.connectorRadius), Fe = i.showConnector ? {
|
|
256
|
+
y1: Bt.y,
|
|
257
|
+
x1: Bt.x,
|
|
257
258
|
y2: i.yCoordinate ? c(i.yCoordinate) + (i.yOffset || 0) : 0 + (i.yOffset || 0),
|
|
258
|
-
x2: i.xCoordinate ?
|
|
259
|
+
x2: i.xCoordinate ? f(j(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
|
|
259
260
|
cy: i.yCoordinate ? c(i.yCoordinate) : 0,
|
|
260
|
-
cx: i.xCoordinate ?
|
|
261
|
+
cx: i.xCoordinate ? f(j(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) : 0,
|
|
261
262
|
circleRadius: v(i.connectorRadius) ? 3.5 : i.connectorRadius,
|
|
262
263
|
strokeWidth: i.showConnector === !0 ? 2 : Math.min(i.showConnector || 0, 1)
|
|
263
|
-
} : void 0,
|
|
264
|
+
} : void 0, Be = {
|
|
264
265
|
y: i.yCoordinate ? c(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8,
|
|
265
|
-
x:
|
|
266
|
-
width:
|
|
266
|
+
x: U ? 0 : i.xCoordinate ? f(j(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
|
|
267
|
+
width: U ? i.xCoordinate ? f(j(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0) : p + d.right - (i.xCoordinate ? f(j(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0)),
|
|
267
268
|
maxWidth: i.maxWidth,
|
|
268
269
|
fontWeight: i.fontWeight,
|
|
269
270
|
align: i.align
|
|
270
271
|
};
|
|
271
|
-
return /* @__PURE__ */ s.jsx(
|
|
272
|
-
}, t[108] =
|
|
272
|
+
return /* @__PURE__ */ s.jsx(Je, { color: i.color, connectorsSettings: Fe, labelSettings: Be, text: i.text, classNames: i.classNames, styles: i.styles, animate: l, isInView: u }, y);
|
|
273
|
+
}, t[108] = l, t[109] = r, t[110] = p, t[111] = u, t[112] = d.right, t[113] = U, t[114] = f, t[115] = c, t[116] = o) : o = t[116], se = Lt.map(o), t[98] = l, t[99] = Lt, t[100] = r, t[101] = p, t[102] = u, t[103] = d.right, t[104] = U, t[105] = f, t[106] = c, t[107] = se;
|
|
273
274
|
} else
|
|
274
275
|
se = t[107];
|
|
275
|
-
let De;
|
|
276
|
-
t[117] !== se ? (De = /* @__PURE__ */ s.jsx("g", { children: se }), t[117] = se, t[118] = De) : De = t[118];
|
|
277
|
-
let Le;
|
|
278
|
-
t[119] !== U ? (Le = U.filter(jo).map(Lo), t[119] = U, t[120] = Le) : Le = t[120];
|
|
279
276
|
let je;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
277
|
+
t[117] !== se ? (je = /* @__PURE__ */ s.jsx("g", { children: se }), t[117] = se, t[118] = je) : je = t[118];
|
|
278
|
+
let Me;
|
|
279
|
+
t[119] !== q ? (Me = q.filter(Mo).map(jo), t[119] = q, t[120] = Me) : Me = t[120];
|
|
280
|
+
let $e;
|
|
281
|
+
return t[121] !== C?.tooltip || t[122] !== ft || t[123] !== mt || t[124] !== h || t[125] !== b?.tooltip || t[126] !== At ? ($e = h && At && ft && mt ? /* @__PURE__ */ s.jsx(ze, { data: h, body: At, xPos: ft, yPos: mt, backgroundStyle: b?.tooltip, className: C?.tooltip }) : null, t[121] = C?.tooltip, t[122] = ft, t[123] = mt, t[124] = h, t[125] = b?.tooltip, t[126] = At, t[127] = $e) : $e = t[127], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
282
|
+
/* @__PURE__ */ s.jsx(zt.svg, { width: `${w}px`, height: `${M}px`, viewBox: `0 0 ${w} ${M}`, direction: "ltr", ref: Tt, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${d.left},${d.top})`, children: [
|
|
283
|
+
gt,
|
|
284
|
+
/* @__PURE__ */ s.jsx(Ue, { areaSettings: fe, scaleX: f, scaleY: c, animate: l, isInView: u }),
|
|
284
285
|
/* @__PURE__ */ s.jsxs("g", { children: [
|
|
285
|
-
/* @__PURE__ */ s.jsx(
|
|
286
|
-
|
|
286
|
+
/* @__PURE__ */ s.jsx(to, { values: ee.filter(Po), y: ee.filter(Go).map((o) => c(o)), x1: 0 - A, x2: p + d.right, styles: L, classNames: xt, suffix: W, prefix: x, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: I }),
|
|
287
|
+
Ot,
|
|
287
288
|
H
|
|
288
289
|
] }),
|
|
289
|
-
/* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(
|
|
290
|
-
|
|
291
|
-
/* @__PURE__ */ s.jsxs(
|
|
292
|
-
|
|
290
|
+
/* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(Ze, { values: oe, x: Oe, y1: 0, y2: T, styles: Ce, classNames: Ae, suffix: W, prefix: x, labelType: "primary", showGridLines: !0, precision: I }) }),
|
|
291
|
+
De,
|
|
292
|
+
/* @__PURE__ */ s.jsxs(zt.g, { children: [
|
|
293
|
+
ce.map((o) => /* @__PURE__ */ s.jsxs(zt.g, { exit: {
|
|
293
294
|
opacity: 0,
|
|
294
295
|
transition: {
|
|
295
|
-
duration:
|
|
296
|
+
duration: l.duration
|
|
296
297
|
}
|
|
297
298
|
}, variants: {
|
|
298
299
|
initial: {
|
|
299
|
-
opacity:
|
|
300
|
+
opacity: h ? o[0].label === h.label ? 1 : N : $t ? o[0].color && m[D.indexOf(o[0].color)] === $t ? 1 : N : Y.length !== 0 ? Y.indexOf(o[0].label) !== -1 ? 1 : N : 1
|
|
300
301
|
},
|
|
301
302
|
whileInView: {
|
|
302
|
-
opacity:
|
|
303
|
+
opacity: h ? o[0].label === h.label ? 1 : N : $t ? o[0].color && m[D.indexOf(o[0].color)] === $t ? 1 : N : Y.length !== 0 ? Y.indexOf(o[0].label) !== -1 ? 1 : N : 1,
|
|
303
304
|
transition: {
|
|
304
|
-
duration:
|
|
305
|
+
duration: l.duration
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
308
|
}, initial: "initial", animate: u ? "whileInView" : "initial", children: [
|
|
308
|
-
/* @__PURE__ */ s.jsx(
|
|
309
|
+
/* @__PURE__ */ s.jsx(zt.path, { d: Vt(o.filter(Ro)) || "", style: {
|
|
309
310
|
fill: "none",
|
|
310
|
-
strokeWidth:
|
|
311
|
+
strokeWidth: h ? o[0].label === h.label ? S + Math.max(2, 0.5 * S) : S : Y.length !== 0 && Y.indexOf(o[0].label) !== -1 ? S + Math.max(2, 0.5 * S) : S
|
|
311
312
|
}, exit: {
|
|
312
313
|
opacity: 0,
|
|
313
314
|
transition: {
|
|
314
|
-
duration:
|
|
315
|
+
duration: l.duration
|
|
315
316
|
}
|
|
316
317
|
}, variants: {
|
|
317
318
|
initial: {
|
|
318
319
|
pathLength: 0,
|
|
319
|
-
d:
|
|
320
|
+
d: Vt(o.filter(Io)) || "",
|
|
320
321
|
opacity: 1,
|
|
321
|
-
stroke: n.filter(
|
|
322
|
+
stroke: n.filter(Yo).length === 0 ? m[0] : o[0].color ? m[D.indexOf(o[0].color)] : B.gray
|
|
322
323
|
},
|
|
323
324
|
whileInView: {
|
|
324
325
|
pathLength: 1,
|
|
325
|
-
d:
|
|
326
|
+
d: Vt(o.filter(Wo)) || "",
|
|
326
327
|
opacity: 1,
|
|
327
|
-
stroke: n.filter(Vo).length === 0 ?
|
|
328
|
+
stroke: n.filter(Vo).length === 0 ? m[0] : o[0].color ? m[D.indexOf(o[0].color)] : B.gray,
|
|
328
329
|
transition: {
|
|
329
|
-
duration:
|
|
330
|
+
duration: l.duration
|
|
330
331
|
}
|
|
331
332
|
}
|
|
332
333
|
}, initial: "initial", animate: u ? "whileInView" : "initial" }),
|
|
333
|
-
o.map((i, y) => /* @__PURE__ */ s.jsx(
|
|
334
|
+
o.map((i, y) => /* @__PURE__ */ s.jsx(zt.g, { children: v(i.y) ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children: ae ? /* @__PURE__ */ s.jsx(zt.circle, { r: p / o.length < 5 ? 0 : p / o.length < 20 ? 2 : 4, exit: {
|
|
334
335
|
opacity: 0,
|
|
335
336
|
transition: {
|
|
336
|
-
duration:
|
|
337
|
+
duration: l.duration
|
|
337
338
|
}
|
|
338
339
|
}, variants: {
|
|
339
340
|
initial: {
|
|
340
341
|
opacity: 0,
|
|
341
|
-
fill: n.filter(
|
|
342
|
-
cx:
|
|
342
|
+
fill: n.filter(Ho).length === 0 ? m[0] : o[0].color ? m[D.indexOf(o[0].color)] : B.gray,
|
|
343
|
+
cx: f(i.date),
|
|
343
344
|
cy: c(i.y)
|
|
344
345
|
},
|
|
345
346
|
whileInView: {
|
|
346
347
|
opacity: 1,
|
|
347
|
-
fill: n.filter(
|
|
348
|
+
fill: n.filter(No).length === 0 ? m[0] : o[0].color ? m[D.indexOf(o[0].color)] : B.gray,
|
|
348
349
|
transition: {
|
|
349
|
-
duration: $ ?
|
|
350
|
-
delay: $ ? 0 :
|
|
350
|
+
duration: $ ? l.duration : 0.5,
|
|
351
|
+
delay: $ ? 0 : l.duration
|
|
351
352
|
},
|
|
352
|
-
cx:
|
|
353
|
+
cx: f(i.date),
|
|
353
354
|
cy: c(i.y)
|
|
354
355
|
}
|
|
355
356
|
}, initial: "initial", animate: u ? "whileInView" : "initial" }) : null }) }, y)),
|
|
356
|
-
(Y.indexOf(o[0].label) !== -1 && ye ||
|
|
357
|
+
(Y.indexOf(o[0].label) !== -1 && ye || h?.label === o[0].label) && de ? /* @__PURE__ */ s.jsx(zt.text, { className: "text-sm font-bold", dx: 5, dy: 4, exit: {
|
|
357
358
|
opacity: 0,
|
|
358
359
|
transition: {
|
|
359
|
-
duration:
|
|
360
|
+
duration: l.duration
|
|
360
361
|
}
|
|
361
362
|
}, variants: {
|
|
362
363
|
initial: {
|
|
363
364
|
opacity: 0,
|
|
364
|
-
fill: n.filter(So).length === 0 ?
|
|
365
|
-
x:
|
|
365
|
+
fill: n.filter(So).length === 0 ? m[0] : o[0].color ? m[D.indexOf(o[0].color)] : B.gray,
|
|
366
|
+
x: f(o[o.length - 1].date),
|
|
366
367
|
y: c(o[o.length - 1].y)
|
|
367
368
|
},
|
|
368
369
|
whileInView: {
|
|
369
370
|
opacity: 1,
|
|
370
|
-
fill: n.filter(
|
|
371
|
-
x:
|
|
371
|
+
fill: n.filter(ko).length === 0 ? m[0] : o[0].color ? m[D.indexOf(o[0].color)] : B.gray,
|
|
372
|
+
x: f(o[o.length - 1].date),
|
|
372
373
|
y: c(o[o.length - 1].y),
|
|
373
374
|
transition: {
|
|
374
|
-
duration: $ ?
|
|
375
|
-
delay: $ ? 0 :
|
|
375
|
+
duration: $ ? l.duration : 0.5,
|
|
376
|
+
delay: $ ? 0 : l.duration
|
|
376
377
|
}
|
|
377
378
|
}
|
|
378
379
|
}, initial: "initial", animate: u ? "whileInView" : "initial", children: o[0].label }) : null
|
|
379
380
|
] }, o[0].label)),
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
381
|
+
h ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
382
|
+
/* @__PURE__ */ s.jsx("text", { y: c(h.y) - 8, x: f(h.date), className: Te("graph-value text-sm font-bold", C?.graphObjectValues), style: {
|
|
383
|
+
fill: n.filter(To).length === 0 ? m[0] : h.color ? m[D.indexOf(h.color)] : B.gray,
|
|
384
|
+
textAnchor: "middle",
|
|
385
|
+
...b?.graphObjectValues || {}
|
|
386
|
+
}, children: Ee(h.y, xe, I, x, W) }),
|
|
387
|
+
_t && /* @__PURE__ */ s.jsx("text", { y: c(h.y) + 20, x: f(h.date), className: Te("graph-value text-sm fill-primary-gray-500 dark:fill-primary-gray-400", C?.graphObjectValues), style: {
|
|
388
|
+
textAnchor: "middle",
|
|
389
|
+
...b?.graphObjectValues || {}
|
|
390
|
+
}, children: Re(new Date(h.date), r || "yyyy") })
|
|
391
|
+
] }) : null
|
|
385
392
|
] }),
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
393
|
+
Pe,
|
|
394
|
+
Le,
|
|
395
|
+
je,
|
|
396
|
+
Me
|
|
390
397
|
] }) }),
|
|
391
|
-
|
|
398
|
+
$e
|
|
392
399
|
] });
|
|
393
400
|
}
|
|
394
|
-
function
|
|
401
|
+
function jo(e) {
|
|
395
402
|
return e.layer;
|
|
396
403
|
}
|
|
397
|
-
function
|
|
404
|
+
function Mo(e) {
|
|
398
405
|
return e.position === "after";
|
|
399
406
|
}
|
|
400
|
-
function
|
|
407
|
+
function $o(e) {
|
|
401
408
|
return !v(e.y);
|
|
402
409
|
}
|
|
403
|
-
function
|
|
410
|
+
function To(e) {
|
|
404
411
|
return e.color;
|
|
405
412
|
}
|
|
406
|
-
function
|
|
413
|
+
function ko(e) {
|
|
407
414
|
return e.color;
|
|
408
415
|
}
|
|
409
416
|
function So(e) {
|
|
410
417
|
return e.color;
|
|
411
418
|
}
|
|
412
|
-
function
|
|
419
|
+
function No(e) {
|
|
413
420
|
return e.color;
|
|
414
421
|
}
|
|
415
|
-
function
|
|
422
|
+
function Ho(e) {
|
|
416
423
|
return e.color;
|
|
417
424
|
}
|
|
418
425
|
function Vo(e) {
|
|
419
426
|
return e.color;
|
|
420
427
|
}
|
|
421
|
-
function Ho(e) {
|
|
422
|
-
return !v(e.y);
|
|
423
|
-
}
|
|
424
428
|
function Wo(e) {
|
|
425
|
-
return e.
|
|
429
|
+
return !v(e.y);
|
|
426
430
|
}
|
|
427
431
|
function Yo(e) {
|
|
428
|
-
return
|
|
432
|
+
return e.color;
|
|
429
433
|
}
|
|
430
434
|
function Io(e) {
|
|
431
435
|
return !v(e.y);
|
|
432
436
|
}
|
|
433
437
|
function Ro(e) {
|
|
434
|
-
return e.
|
|
438
|
+
return !v(e.y);
|
|
435
439
|
}
|
|
436
440
|
function Xo(e) {
|
|
437
|
-
return e.
|
|
441
|
+
return e.layer;
|
|
438
442
|
}
|
|
439
443
|
function Eo(e) {
|
|
440
|
-
return e
|
|
444
|
+
return e.position === "before";
|
|
441
445
|
}
|
|
442
446
|
function Go(e) {
|
|
443
447
|
return e !== 0;
|
|
444
448
|
}
|
|
445
449
|
function Po(e) {
|
|
446
|
-
return e
|
|
450
|
+
return e !== 0;
|
|
447
451
|
}
|
|
448
452
|
function Fo(e) {
|
|
449
|
-
return
|
|
453
|
+
return e.date;
|
|
450
454
|
}
|
|
451
455
|
function Bo(e) {
|
|
452
|
-
return !v(e);
|
|
456
|
+
return !v(e.date) && !v(e.y);
|
|
453
457
|
}
|
|
454
458
|
function zo(e) {
|
|
455
|
-
return e
|
|
459
|
+
return !v(e);
|
|
456
460
|
}
|
|
457
461
|
function Uo(e) {
|
|
458
|
-
return
|
|
462
|
+
return e.y;
|
|
459
463
|
}
|
|
460
464
|
function qo(e) {
|
|
461
|
-
return e
|
|
465
|
+
return !v(e);
|
|
462
466
|
}
|
|
463
467
|
function Jo(e) {
|
|
464
|
-
return
|
|
468
|
+
return e.y;
|
|
465
469
|
}
|
|
466
470
|
function Ko(e) {
|
|
467
|
-
return e
|
|
471
|
+
return !v(e);
|
|
468
472
|
}
|
|
469
473
|
function Qo(e) {
|
|
470
|
-
return
|
|
474
|
+
return e.y;
|
|
471
475
|
}
|
|
472
476
|
function Zo(e) {
|
|
473
|
-
return e
|
|
477
|
+
return !v(e);
|
|
474
478
|
}
|
|
475
479
|
function _o(e) {
|
|
476
|
-
return
|
|
480
|
+
return e.y;
|
|
477
481
|
}
|
|
478
482
|
function ti(e) {
|
|
483
|
+
return !v(e);
|
|
484
|
+
}
|
|
485
|
+
function ei(e) {
|
|
479
486
|
return e.y;
|
|
480
487
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
488
|
+
function oi(e, t) {
|
|
489
|
+
return Ye(e, t);
|
|
483
490
|
}
|
|
484
|
-
function
|
|
491
|
+
function ii(e) {
|
|
485
492
|
return !v(e.y);
|
|
486
493
|
}
|
|
487
|
-
function
|
|
488
|
-
const t =
|
|
494
|
+
function Fi(e) {
|
|
495
|
+
const t = Ge.c(108), {
|
|
489
496
|
data: n,
|
|
490
497
|
graphTitle: w,
|
|
491
498
|
showNAColor: M,
|
|
492
|
-
colors:
|
|
499
|
+
colors: m,
|
|
493
500
|
colorDomain: r,
|
|
494
|
-
suffix:
|
|
495
|
-
sources:
|
|
496
|
-
prefix:
|
|
497
|
-
graphDescription:
|
|
501
|
+
suffix: Ct,
|
|
502
|
+
sources: et,
|
|
503
|
+
prefix: qt,
|
|
504
|
+
graphDescription: ot,
|
|
498
505
|
height: W,
|
|
499
506
|
width: x,
|
|
500
|
-
footNote:
|
|
501
|
-
noOfXTicks:
|
|
502
|
-
dateFormat:
|
|
503
|
-
padding:
|
|
504
|
-
backgroundColor:
|
|
505
|
-
leftMargin:
|
|
506
|
-
rightMargin:
|
|
507
|
+
footNote: A,
|
|
508
|
+
noOfXTicks: At,
|
|
509
|
+
dateFormat: it,
|
|
510
|
+
padding: nt,
|
|
511
|
+
backgroundColor: Jt,
|
|
512
|
+
leftMargin: z,
|
|
513
|
+
rightMargin: Dt,
|
|
507
514
|
topMargin: Y,
|
|
508
|
-
bottomMargin:
|
|
509
|
-
showColorScale:
|
|
515
|
+
bottomMargin: l,
|
|
516
|
+
showColorScale: U,
|
|
510
517
|
tooltip: S,
|
|
511
518
|
relativeHeight: ae,
|
|
512
|
-
onSeriesMouseOver:
|
|
513
|
-
showLabels:
|
|
514
|
-
showHighlightedLinesLabels:
|
|
515
|
-
refValues:
|
|
516
|
-
highlightAreaSettings:
|
|
517
|
-
graphID:
|
|
518
|
-
minValue:
|
|
519
|
-
maxValue:
|
|
520
|
-
highlightedLines:
|
|
521
|
-
graphDownload:
|
|
522
|
-
dataDownload:
|
|
519
|
+
onSeriesMouseOver: Lt,
|
|
520
|
+
showLabels: Kt,
|
|
521
|
+
showHighlightedLinesLabels: jt,
|
|
522
|
+
refValues: Qt,
|
|
523
|
+
highlightAreaSettings: Mt,
|
|
524
|
+
graphID: Zt,
|
|
525
|
+
minValue: rt,
|
|
526
|
+
maxValue: b,
|
|
527
|
+
highlightedLines: D,
|
|
528
|
+
graphDownload: $t,
|
|
529
|
+
dataDownload: C,
|
|
523
530
|
animate: de,
|
|
524
|
-
language:
|
|
531
|
+
language: N,
|
|
525
532
|
colorLegendTitle: I,
|
|
526
533
|
minHeight: xe,
|
|
527
|
-
strokeWidth:
|
|
534
|
+
strokeWidth: q,
|
|
528
535
|
showDots: ye,
|
|
529
|
-
annotations:
|
|
530
|
-
customHighlightAreaSettings:
|
|
531
|
-
theme:
|
|
532
|
-
ariaLabel:
|
|
533
|
-
yAxisTitle:
|
|
534
|
-
noOfYTicks:
|
|
535
|
-
minDate:
|
|
536
|
-
maxDate:
|
|
537
|
-
curveType:
|
|
538
|
-
styles:
|
|
539
|
-
classNames:
|
|
540
|
-
dimmedOpacity:
|
|
541
|
-
precision:
|
|
542
|
-
customLayers:
|
|
543
|
-
naLabel:
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
536
|
+
annotations: _t,
|
|
537
|
+
customHighlightAreaSettings: Tt,
|
|
538
|
+
theme: kt,
|
|
539
|
+
ariaLabel: u,
|
|
540
|
+
yAxisTitle: $,
|
|
541
|
+
noOfYTicks: ve,
|
|
542
|
+
minDate: st,
|
|
543
|
+
maxDate: at,
|
|
544
|
+
curveType: we,
|
|
545
|
+
styles: g,
|
|
546
|
+
classNames: a,
|
|
547
|
+
dimmedOpacity: be,
|
|
548
|
+
precision: St,
|
|
549
|
+
customLayers: lt,
|
|
550
|
+
naLabel: h,
|
|
551
|
+
showDateOnHover: ct
|
|
552
|
+
} = e, ft = M === void 0 ? !0 : M, J = Ct === void 0 ? "" : Ct, mt = qt === void 0 ? "" : qt, K = At === void 0 ? 10 : At, Nt = it === void 0 ? "yyyy" : it, ut = Jt === void 0 ? !1 : Jt, d = z === void 0 ? 30 : z, le = Dt === void 0 ? 50 : Dt, ce = Y === void 0 ? 20 : Y, ht = l === void 0 ? 25 : l, Ht = U === void 0 ? !0 : U, pt = Kt === void 0 ? !0 : Kt, fe = jt === void 0 ? !1 : jt;
|
|
553
|
+
let p;
|
|
554
|
+
t[0] !== Qt ? (p = Qt === void 0 ? [] : Qt, t[0] = Qt, t[1] = p) : p = t[1];
|
|
555
|
+
const T = p;
|
|
556
|
+
let te;
|
|
557
|
+
t[2] !== Mt ? (te = Mt === void 0 ? [] : Mt, t[2] = Mt, t[3] = te) : te = t[3];
|
|
558
|
+
const me = te;
|
|
559
|
+
let O;
|
|
560
|
+
t[4] !== D ? (O = D === void 0 ? [] : D, t[4] = D, t[5] = O) : O = t[5];
|
|
561
|
+
const Q = O, f = $t === void 0 ? !1 : $t, Z = C === void 0 ? !1 : C, _ = de === void 0 ? !1 : de, c = N === void 0 ? "en" : N, ue = xe === void 0 ? 0 : xe, Vt = q === void 0 ? 2 : q, ee = ye === void 0 ? !0 : ye;
|
|
554
562
|
let Wt;
|
|
555
|
-
t[6] !==
|
|
556
|
-
const
|
|
557
|
-
let
|
|
558
|
-
t[8] !==
|
|
559
|
-
const Yt =
|
|
560
|
-
let
|
|
561
|
-
t[10] !==
|
|
562
|
-
const Et =
|
|
563
|
-
let
|
|
564
|
-
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
565
|
-
const
|
|
566
|
-
|
|
563
|
+
t[6] !== _t ? (Wt = _t === void 0 ? [] : _t, t[6] = _t, t[7] = Wt) : Wt = t[7];
|
|
564
|
+
const gt = Wt;
|
|
565
|
+
let dt;
|
|
566
|
+
t[8] !== Tt ? (dt = Tt === void 0 ? [] : Tt, t[8] = Tt, t[9] = dt) : dt = t[9];
|
|
567
|
+
const Yt = dt, L = kt === void 0 ? "light" : kt, It = ve === void 0 ? 5 : ve, Rt = we === void 0 ? "curve" : we, xt = be === void 0 ? 0.3 : be, Xt = St === void 0 ? 2 : St;
|
|
568
|
+
let yt;
|
|
569
|
+
t[10] !== lt ? (yt = lt === void 0 ? [] : lt, t[10] = lt, t[11] = yt) : yt = t[11];
|
|
570
|
+
const Et = yt, Gt = h === void 0 ? "NA" : h, Pt = ct === void 0 ? !1 : ct, [k, he] = Ut(0), [vt, pe] = Ut(0), [R, ge] = Ut(void 0), Ft = ke(null), tt = ke(null);
|
|
571
|
+
let wt, bt;
|
|
572
|
+
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (wt = () => {
|
|
573
|
+
const Oe = new ResizeObserver((ie) => {
|
|
574
|
+
he(ie[0].target.clientWidth || 620), pe(ie[0].target.clientHeight || 480);
|
|
567
575
|
});
|
|
568
|
-
return Ft.current &&
|
|
569
|
-
}, bt = [], t[12] =
|
|
570
|
-
const
|
|
571
|
-
let
|
|
572
|
-
t[14] !==
|
|
573
|
-
title: l?.title,
|
|
574
|
-
description: l?.description
|
|
575
|
-
}, classNames: {
|
|
576
|
+
return Ft.current && Oe.observe(Ft.current), () => Oe.disconnect();
|
|
577
|
+
}, bt = [], t[12] = wt, t[13] = bt) : (wt = t[12], bt = t[13]), We(wt, bt);
|
|
578
|
+
const X = a?.graphContainer, Ot = g?.graphContainer;
|
|
579
|
+
let E;
|
|
580
|
+
t[14] !== a?.description || t[15] !== a?.title || t[16] !== n || t[17] !== Z || t[18] !== ot || t[19] !== f || t[20] !== w || t[21] !== g?.description || t[22] !== g?.title || t[23] !== x ? (E = w || ot || f || Z ? /* @__PURE__ */ s.jsx(xo, { styles: {
|
|
576
581
|
title: g?.title,
|
|
577
582
|
description: g?.description
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
t[35] !== n.length ? (E = n.length === 0 && /* @__PURE__ */ s.jsx(xo, {}), t[35] = n.length, t[36] = E) : E = t[36];
|
|
583
|
+
}, classNames: {
|
|
584
|
+
title: a?.title,
|
|
585
|
+
description: a?.description
|
|
586
|
+
}, graphTitle: w, graphDescription: ot, width: x, graphDownload: f ? tt : void 0, dataDownload: Z ? n.map(mi).filter(fi).length > 0 ? n.map(ci).filter(li) : n.filter(ai) : null }) : null, t[14] = a?.description, t[15] = a?.title, t[16] = n, t[17] = Z, t[18] = ot, t[19] = f, t[20] = w, t[21] = g?.description, t[22] = g?.title, t[23] = x, t[24] = E) : E = t[24];
|
|
583
587
|
let G;
|
|
584
|
-
t[
|
|
588
|
+
t[25] !== a?.colorLegend || t[26] !== r || t[27] !== I || t[28] !== m || t[29] !== n || t[30] !== Ht || t[31] !== ft || t[32] !== L || t[33] !== x ? (G = Ht && n.filter(si).length !== 0 && n.length > 0 ? /* @__PURE__ */ s.jsx(vo, { width: x, colorLegendTitle: I, colors: m || B[L].categoricalColors.colors, colorDomain: r || Se(n, "color", !0), setSelectedColor: ge, showNAColor: ft, className: a?.colorLegend }) : null, t[25] = a?.colorLegend, t[26] = r, t[27] = I, t[28] = m, t[29] = n, t[30] = Ht, t[31] = ft, t[32] = L, t[33] = x, t[34] = G) : G = t[34];
|
|
589
|
+
let P;
|
|
590
|
+
t[35] !== n.length ? (P = n.length === 0 && /* @__PURE__ */ s.jsx(yo, {}), t[35] = n.length, t[36] = P) : P = t[36];
|
|
591
|
+
let F;
|
|
592
|
+
t[37] !== _ || t[38] !== gt || t[39] !== ht || t[40] !== a || t[41] !== r || t[42] !== m || t[43] !== Rt || t[44] !== Yt || t[45] !== Et || t[46] !== n || t[47] !== Nt || t[48] !== xt || t[49] !== me || t[50] !== Q || t[51] !== c || t[52] !== d || t[53] !== at || t[54] !== b || t[55] !== st || t[56] !== rt || t[57] !== Gt || t[58] !== K || t[59] !== It || t[60] !== Lt || t[61] !== Xt || t[62] !== mt || t[63] !== T || t[64] !== le || t[65] !== R || t[66] !== Pt || t[67] !== ee || t[68] !== fe || t[69] !== pt || t[70] !== Vt || t[71] !== g || t[72] !== J || t[73] !== vt || t[74] !== k || t[75] !== L || t[76] !== S || t[77] !== ce || t[78] !== $ ? (F = k && vt && n.length > 0 ? /* @__PURE__ */ s.jsx(Lo, { data: n, lineColors: n.filter(ri).length === 0 ? m ? [m] : [B.primaryColors["blue-600"]] : m || B[L].categoricalColors.colors, width: k, height: vt, dateFormat: Nt, noOfXTicks: K ?? Oo(k), leftMargin: d, rightMargin: le, topMargin: ce, bottomMargin: ht, tooltip: S, onSeriesMouseOver: Lt, suffix: J, prefix: mt, highlightAreaSettings: me, refValues: T, minValue: rt, maxValue: b, highlightedLines: Q, showHighlightedLinesLabels: fe, animate: _ === !0 ? {
|
|
585
593
|
duration: 0.5,
|
|
586
594
|
once: !0,
|
|
587
595
|
amount: 0.5
|
|
@@ -589,30 +597,27 @@ function Pi(e) {
|
|
|
589
597
|
duration: 0,
|
|
590
598
|
once: !0,
|
|
591
599
|
amount: 0
|
|
592
|
-
}, rtl: c === "he" || c === "ar", strokeWidth:
|
|
593
|
-
let P;
|
|
594
|
-
t[79] !== E || t[80] !== G ? (P = /* @__PURE__ */ s.jsxs(vo, { ref: Ft, children: [
|
|
595
|
-
E,
|
|
596
|
-
G
|
|
597
|
-
] }), t[79] = E, t[80] = G, t[81] = P) : P = t[81];
|
|
600
|
+
}, rtl: c === "he" || c === "ar", strokeWidth: Vt, showDots: ee, annotations: gt, customHighlightAreaSettings: Yt, yAxisTitle: $, noOfYTicks: It, minDate: st, maxDate: at, curveType: Rt, styles: g, classNames: a, selectedColor: R, showLabels: pt, colorDomain: n.filter(ni).length === 0 ? [] : r || Se(n, "color", !0), dimmedOpacity: xt, precision: Xt, customLayers: Et, naLabel: Gt, showDateOnHover: Pt }) : null, t[37] = _, t[38] = gt, t[39] = ht, t[40] = a, t[41] = r, t[42] = m, t[43] = Rt, t[44] = Yt, t[45] = Et, t[46] = n, t[47] = Nt, t[48] = xt, t[49] = me, t[50] = Q, t[51] = c, t[52] = d, t[53] = at, t[54] = b, t[55] = st, t[56] = rt, t[57] = Gt, t[58] = K, t[59] = It, t[60] = Lt, t[61] = Xt, t[62] = mt, t[63] = T, t[64] = le, t[65] = R, t[66] = Pt, t[67] = ee, t[68] = fe, t[69] = pt, t[70] = Vt, t[71] = g, t[72] = J, t[73] = vt, t[74] = k, t[75] = L, t[76] = S, t[77] = ce, t[78] = $, t[79] = F) : F = t[79];
|
|
598
601
|
let H;
|
|
599
|
-
t[
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
},
|
|
602
|
+
t[80] !== P || t[81] !== F ? (H = /* @__PURE__ */ s.jsxs(wo, { ref: Ft, children: [
|
|
603
|
+
P,
|
|
604
|
+
F
|
|
605
|
+
] }), t[80] = P, t[81] = F, t[82] = H) : H = t[82];
|
|
606
|
+
let V;
|
|
607
|
+
t[83] !== a?.footnote || t[84] !== a?.source || t[85] !== A || t[86] !== et || t[87] !== g?.footnote || t[88] !== g?.source || t[89] !== x ? (V = et || A ? /* @__PURE__ */ s.jsx(go, { styles: {
|
|
603
608
|
footnote: g?.footnote,
|
|
604
609
|
source: g?.source
|
|
605
|
-
},
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
610
|
+
}, classNames: {
|
|
611
|
+
footnote: a?.footnote,
|
|
612
|
+
source: a?.source
|
|
613
|
+
}, sources: et, footNote: A, width: x }) : null, t[83] = a?.footnote, t[84] = a?.source, t[85] = A, t[86] = et, t[87] = g?.footnote, t[88] = g?.source, t[89] = x, t[90] = V) : V = t[90];
|
|
614
|
+
let oe;
|
|
615
|
+
return t[91] !== u || t[92] !== ut || t[93] !== Zt || t[94] !== W || t[95] !== c || t[96] !== ue || t[97] !== nt || t[98] !== ae || t[99] !== X || t[100] !== Ot || t[101] !== E || t[102] !== G || t[103] !== H || t[104] !== V || t[105] !== L || t[106] !== x ? (oe = /* @__PURE__ */ s.jsxs(bo, { className: X, style: Ot, id: Zt, ref: tt, "aria-label": u, backgroundColor: ut, theme: L, language: c, minHeight: ue, width: x, height: W, relativeHeight: ae, padding: nt, children: [
|
|
616
|
+
E,
|
|
617
|
+
G,
|
|
618
|
+
H,
|
|
619
|
+
V
|
|
620
|
+
] }), t[91] = u, t[92] = ut, t[93] = Zt, t[94] = W, t[95] = c, t[96] = ue, t[97] = nt, t[98] = ae, t[99] = X, t[100] = Ot, t[101] = E, t[102] = G, t[103] = H, t[104] = V, t[105] = L, t[106] = x, t[107] = oe) : oe = t[107], oe;
|
|
616
621
|
}
|
|
617
622
|
function ni(e) {
|
|
618
623
|
return e.color;
|
|
@@ -621,21 +626,24 @@ function ri(e) {
|
|
|
621
626
|
return e.color;
|
|
622
627
|
}
|
|
623
628
|
function si(e) {
|
|
624
|
-
return e
|
|
629
|
+
return e.color;
|
|
625
630
|
}
|
|
626
631
|
function ai(e) {
|
|
627
632
|
return e !== void 0;
|
|
628
633
|
}
|
|
629
634
|
function li(e) {
|
|
630
|
-
return e
|
|
635
|
+
return e !== void 0;
|
|
631
636
|
}
|
|
632
637
|
function ci(e) {
|
|
633
|
-
return e
|
|
638
|
+
return e.data;
|
|
634
639
|
}
|
|
635
640
|
function fi(e) {
|
|
641
|
+
return e !== void 0;
|
|
642
|
+
}
|
|
643
|
+
function mi(e) {
|
|
636
644
|
return e.data;
|
|
637
645
|
}
|
|
638
646
|
export {
|
|
639
|
-
|
|
647
|
+
Fi as MultiLineAltChart
|
|
640
648
|
};
|
|
641
649
|
//# sourceMappingURL=MultiLineAltChart.js.map
|