@undp/data-viz 2.3.19 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +1360 -1363
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +302 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +4 -4
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +591 -594
- package/dist/BulletChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +4 -4
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +255 -258
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +553 -556
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{GraphEl-Dorm_qQE.js → GraphEl-B73N4RIA.js} +2 -2
- package/dist/{GraphEl-Dorm_qQE.js.map → GraphEl-B73N4RIA.js.map} +1 -1
- package/dist/{GraphEl-D8WRC8-j.cjs → GraphEl-Lt1og0C-.cjs} +2 -2
- package/dist/{GraphEl-D8WRC8-j.cjs.map → GraphEl-Lt1og0C-.cjs.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +310 -313
- package/dist/HybridMap.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +269 -272
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +319 -322
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +3 -3
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +274 -280
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +341 -344
- package/dist/ScatterPlot.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 +251 -254
- package/dist/SlopeChart.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +292 -295
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.js +3 -3
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +196 -199
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.js +274 -277
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/index-B0Awa_de.js +377 -0
- package/dist/index-B0Awa_de.js.map +1 -0
- package/dist/index-CP8cmNzt.cjs +2 -0
- package/dist/index-CP8cmNzt.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-Bdo_HXb_.cjs +0 -2
- package/dist/index-Bdo_HXb_.cjs.map +0 -1
- package/dist/index-CGrBpeUa.js +0 -380
- package/dist/index-CGrBpeUa.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as Pe, m as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { p as
|
|
1
|
+
import { c as Pe, m as Te, j as s } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { useRef as ke, useState as qt, useEffect as Ye } from "react";
|
|
3
|
+
import { p as L, f as Xe } from "./parse-Dv4of-PN.js";
|
|
4
4
|
import { o as Ee } from "./index-BZQYSqar.js";
|
|
5
5
|
import { n as Ge } from "./numberFormattingFunction-DqMf_v1m.js";
|
|
6
6
|
import { T as Ue } from "./Tooltip-Bj-s__cI.js";
|
|
@@ -12,8 +12,8 @@ import { X as _e } from "./XTicksAndGridLines-gdbGX2rm.js";
|
|
|
12
12
|
import { a as to } from "./ReferenceLine-D41VuUhE.js";
|
|
13
13
|
import { Y as eo } from "./YTicksAndGridLines-CsNSq9W9.js";
|
|
14
14
|
import { H as oo } from "./index-DHVGV8Df.js";
|
|
15
|
-
import { Colors as
|
|
16
|
-
import { u as
|
|
15
|
+
import { Colors as q } from "./Colors.js";
|
|
16
|
+
import { u as Se } from "./uniqBy-BHy4I8PK.js";
|
|
17
17
|
import { c as Ie, a as io } from "./init-BhZylTFx.js";
|
|
18
18
|
import { t as no } from "./time-vyz6Y89P.js";
|
|
19
19
|
import { a as ro } from "./linear-DNXM5Pdl.js";
|
|
@@ -38,13 +38,13 @@ function Do(e, ...t) {
|
|
|
38
38
|
e = Array.from(e);
|
|
39
39
|
let [n] = t;
|
|
40
40
|
if (n && n.length !== 2 || t.length > 1) {
|
|
41
|
-
const b = Uint32Array.from(e, (
|
|
42
|
-
return t.length > 1 ? (t = t.map((
|
|
41
|
+
const b = Uint32Array.from(e, (j, c) => c);
|
|
42
|
+
return t.length > 1 ? (t = t.map((j) => e.map(j)), b.sort((j, c) => {
|
|
43
43
|
for (const r of t) {
|
|
44
|
-
const Dt = Re(r[
|
|
44
|
+
const Dt = Re(r[j], r[c]);
|
|
45
45
|
if (Dt) return Dt;
|
|
46
46
|
}
|
|
47
|
-
})) : (n = e.map(n), b.sort((
|
|
47
|
+
})) : (n = e.map(n), b.sort((j, c) => Re(n[j], n[c]))), Ao(e, b);
|
|
48
48
|
}
|
|
49
49
|
return e.sort(Lo(n));
|
|
50
50
|
}
|
|
@@ -63,253 +63,253 @@ function jo(e) {
|
|
|
63
63
|
const t = Pe.c(129), {
|
|
64
64
|
data: n,
|
|
65
65
|
width: b,
|
|
66
|
-
height:
|
|
67
|
-
lineColors:
|
|
66
|
+
height: j,
|
|
67
|
+
lineColors: c,
|
|
68
68
|
dateFormat: r,
|
|
69
69
|
noOfXTicks: Dt,
|
|
70
|
-
rightMargin:
|
|
70
|
+
rightMargin: nt,
|
|
71
71
|
topMargin: Jt,
|
|
72
|
-
bottomMargin:
|
|
73
|
-
suffix:
|
|
72
|
+
bottomMargin: rt,
|
|
73
|
+
suffix: R,
|
|
74
74
|
prefix: x,
|
|
75
75
|
leftMargin: D,
|
|
76
76
|
tooltip: Lt,
|
|
77
|
-
onSeriesMouseOver:
|
|
78
|
-
refValues:
|
|
77
|
+
onSeriesMouseOver: st,
|
|
78
|
+
refValues: at,
|
|
79
79
|
highlightAreaSettings: Kt,
|
|
80
|
-
minValue:
|
|
80
|
+
minValue: J,
|
|
81
81
|
maxValue: jt,
|
|
82
|
-
highlightedLines:
|
|
82
|
+
highlightedLines: X,
|
|
83
83
|
animate: a,
|
|
84
|
-
rtl:
|
|
85
|
-
strokeWidth:
|
|
86
|
-
showDots:
|
|
84
|
+
rtl: K,
|
|
85
|
+
strokeWidth: S,
|
|
86
|
+
showDots: le,
|
|
87
87
|
annotations: Mt,
|
|
88
88
|
customHighlightAreaSettings: Qt,
|
|
89
89
|
yAxisTitle: $t,
|
|
90
90
|
noOfYTicks: Zt,
|
|
91
91
|
minDate: Tt,
|
|
92
92
|
maxDate: _t,
|
|
93
|
-
curveType:
|
|
93
|
+
curveType: lt,
|
|
94
94
|
styles: O,
|
|
95
|
-
colorDomain:
|
|
95
|
+
colorDomain: M,
|
|
96
96
|
selectedColor: kt,
|
|
97
97
|
classNames: A,
|
|
98
|
-
showLabels:
|
|
99
|
-
dimmedOpacity:
|
|
100
|
-
precision:
|
|
101
|
-
naLabel:
|
|
102
|
-
customLayers:
|
|
103
|
-
showHighlightedLinesLabels:
|
|
98
|
+
showLabels: xe,
|
|
99
|
+
dimmedOpacity: N,
|
|
100
|
+
precision: E,
|
|
101
|
+
naLabel: ye,
|
|
102
|
+
customLayers: Q,
|
|
103
|
+
showHighlightedLinesLabels: ve,
|
|
104
104
|
showDateOnHover: te,
|
|
105
|
-
locale:
|
|
106
|
-
} = e,
|
|
107
|
-
let
|
|
108
|
-
t[0] !== a.amount || t[1] !== a.once ? (
|
|
105
|
+
locale: H
|
|
106
|
+
} = e, ce = ke(null);
|
|
107
|
+
let ct;
|
|
108
|
+
t[0] !== a.amount || t[1] !== a.once ? (ct = {
|
|
109
109
|
once: a.once,
|
|
110
110
|
amount: a.amount
|
|
111
|
-
}, t[0] = a.amount, t[1] = a.once, t[2] =
|
|
112
|
-
const m = go(
|
|
113
|
-
let
|
|
114
|
-
t[3] !== a.duration || t[4] !==
|
|
115
|
-
if (m && !
|
|
111
|
+
}, t[0] = a.amount, t[1] = a.once, t[2] = ct) : ct = t[2];
|
|
112
|
+
const m = go(ce, ct), [V, fe] = qt(!1);
|
|
113
|
+
let ft, St;
|
|
114
|
+
t[3] !== a.duration || t[4] !== V || t[5] !== m ? (ft = () => {
|
|
115
|
+
if (m && !V) {
|
|
116
116
|
const o = setTimeout(() => {
|
|
117
|
-
|
|
117
|
+
fe(!0);
|
|
118
118
|
}, (a.duration + 0.5) * 1e3);
|
|
119
119
|
return () => clearTimeout(o);
|
|
120
120
|
}
|
|
121
|
-
}, St = [m,
|
|
122
|
-
const v =
|
|
121
|
+
}, St = [m, V, a.duration], t[3] = a.duration, t[4] = V, t[5] = m, t[6] = ft, t[7] = St) : (ft = t[6], St = t[7]), Ye(ft, St);
|
|
122
|
+
const v = lt === "linear" ? lo : lt === "step" ? co : lt === "stepAfter" ? fo : lt === "stepBefore" ? mo : uo;
|
|
123
123
|
let u;
|
|
124
124
|
t[8] !== r ? (u = (o) => ({
|
|
125
125
|
...o,
|
|
126
|
-
date:
|
|
126
|
+
date: L(`${o.date}`, r, /* @__PURE__ */ new Date())
|
|
127
127
|
}), t[8] = r, t[9] = u) : u = t[9];
|
|
128
|
-
const g = Ee(n.map(u), ["date"], ["asc"]).filter(ni),
|
|
129
|
-
let
|
|
130
|
-
t[10] !== r ? (
|
|
131
|
-
const ee = Do(
|
|
132
|
-
let
|
|
133
|
-
t[12] !==
|
|
128
|
+
const g = Ee(n.map(u), ["date"], ["asc"]).filter(ni), we = Se(g, "label", !0);
|
|
129
|
+
let Z;
|
|
130
|
+
t[10] !== r ? (Z = (o) => L(`${o}`, r, /* @__PURE__ */ new Date()), t[10] = r, t[11] = Z) : Z = t[11];
|
|
131
|
+
const ee = Do(Se(n, "date", !0).map(Z), ii), [h, mt] = qt(void 0), [ut, _] = qt(void 0), [ht, tt] = qt(void 0), Nt = $t ? D + 30 : D;
|
|
132
|
+
let pt;
|
|
133
|
+
t[12] !== rt || t[13] !== nt || t[14] !== Nt || t[15] !== Jt ? (pt = {
|
|
134
134
|
top: Jt,
|
|
135
|
-
bottom:
|
|
135
|
+
bottom: rt,
|
|
136
136
|
left: Nt,
|
|
137
|
-
right:
|
|
138
|
-
}, t[12] =
|
|
139
|
-
const d =
|
|
140
|
-
let
|
|
137
|
+
right: nt
|
|
138
|
+
}, t[12] = rt, t[13] = nt, t[14] = Nt, t[15] = Jt, t[16] = pt) : pt = t[16];
|
|
139
|
+
const d = pt, me = ke(null), ue = we.map((o) => Ee(g.filter((i) => i.label == o), ["date"], ["asc"]));
|
|
140
|
+
let gt;
|
|
141
141
|
if (t[17] !== r || t[18] !== Kt) {
|
|
142
142
|
let o;
|
|
143
143
|
t[20] !== r ? (o = (i) => ({
|
|
144
144
|
...i,
|
|
145
|
-
coordinates: [i.coordinates[0] === null ? null :
|
|
146
|
-
}), t[20] = r, t[21] = o) : o = t[21],
|
|
145
|
+
coordinates: [i.coordinates[0] === null ? null : L(`${i.coordinates[0]}`, r, /* @__PURE__ */ new Date()), i.coordinates[1] === null ? null : L(`${i.coordinates[1]}`, r, /* @__PURE__ */ new Date())]
|
|
146
|
+
}), t[20] = r, t[21] = o) : o = t[21], gt = Kt.map(o), t[17] = r, t[18] = Kt, t[19] = gt;
|
|
147
147
|
} else
|
|
148
|
-
|
|
149
|
-
const Ht =
|
|
150
|
-
let
|
|
148
|
+
gt = t[19];
|
|
149
|
+
const Ht = gt;
|
|
150
|
+
let dt;
|
|
151
151
|
if (t[22] !== Qt || t[23] !== r) {
|
|
152
152
|
let o;
|
|
153
153
|
t[25] !== r ? (o = (i) => ({
|
|
154
154
|
...i,
|
|
155
|
-
coordinates: i.coordinates.map((y, zt) => zt % 2 === 0 ?
|
|
156
|
-
}), t[25] = r, t[26] = o) : o = t[26],
|
|
155
|
+
coordinates: i.coordinates.map((y, zt) => zt % 2 === 0 ? L(`${y}`, r, /* @__PURE__ */ new Date()) : y)
|
|
156
|
+
}), t[25] = r, t[26] = o) : o = t[26], dt = Qt.map(o), t[22] = Qt, t[23] = r, t[24] = dt;
|
|
157
157
|
} else
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
t[27] !== C || t[28] !==
|
|
162
|
-
let
|
|
163
|
-
t[30] !==
|
|
164
|
-
const
|
|
158
|
+
dt = t[24];
|
|
159
|
+
const he = dt, p = b - d.left - d.right, T = j - d.top - d.bottom, oe = Tt ? L(`${Tt}`, r, /* @__PURE__ */ new Date()) : ee[0], pe = _t ? L(`${_t}`, r, /* @__PURE__ */ new Date()) : ee[ee.length - 1], C = w(J) ? Math.min(...g.map(oi).filter(ei)) ? Math.min(...g.map(ti).filter(_o)) > 0 ? 0 : Math.min(...g.map(Zo).filter(Qo)) : 0 : J, G = Math.max(...g.map(Ko).filter(Jo)) ? Math.max(...g.map(qo).filter(Uo)) : 0, l = no().domain([oe, pe]).range([0, p]);
|
|
160
|
+
let k;
|
|
161
|
+
t[27] !== C || t[28] !== J ? (k = w(J) ? C : J, t[27] = C, t[28] = J, t[29] = k) : k = t[29];
|
|
162
|
+
let xt;
|
|
163
|
+
t[30] !== G || t[31] !== jt ? (xt = w(jt) ? G > 0 ? G : 0 : jt, t[30] = G, t[31] = jt, t[32] = xt) : xt = t[32];
|
|
164
|
+
const f = ro().domain([k, xt]).range([T, 0]).nice(), ge = so.from(g.filter(zo), (o) => l(o.date), (o) => f(o.y)).voronoi([0, 0, p < 0 ? 0 : p, T < 0 ? 0 : T]), yt = ao().x((o) => l(o.date)).y((o) => f(o.y)).curve(v), ie = f.ticks(Zt), Vt = l.ticks(Dt);
|
|
165
165
|
Ye(() => {
|
|
166
166
|
const o = (y) => {
|
|
167
|
-
const zt = g[io(g.map(Bo),
|
|
168
|
-
|
|
167
|
+
const zt = g[io(g.map(Bo), l.invert(po(y)[0]), 0)];
|
|
168
|
+
mt(zt || g[g.length - 1]), tt(y.clientY), _(y.clientX), st?.(zt || g[g.length - 1]);
|
|
169
169
|
}, i = () => {
|
|
170
|
-
|
|
170
|
+
mt(void 0), _(void 0), tt(void 0);
|
|
171
171
|
};
|
|
172
|
-
ho(
|
|
173
|
-
}, [
|
|
174
|
-
let
|
|
175
|
-
t[33] !== a || t[34] !== T || t[35] !== p || t[36] !== Ht || t[37] !== m || t[38] !==
|
|
176
|
-
const
|
|
177
|
-
let
|
|
178
|
-
t[40] !==
|
|
179
|
-
gridLines:
|
|
180
|
-
labels:
|
|
181
|
-
}, t[40] =
|
|
182
|
-
const
|
|
183
|
-
let
|
|
184
|
-
t[43] !==
|
|
185
|
-
gridLines:
|
|
186
|
-
labels:
|
|
187
|
-
}, t[43] =
|
|
188
|
-
const
|
|
189
|
-
let E;
|
|
190
|
-
t[46] !== N || t[47] !== X || t[48] !== x || t[49] !== I || t[50] !== Pt ? (E = Ge(Pt, void 0, X, x, I, N), t[46] = N, t[47] = X, t[48] = x, t[49] = I, t[50] = Pt, t[51] = E) : E = t[51];
|
|
191
|
-
const ot = 0 - D, ve = l(C < 0 ? 0 : C), wt = _ < 0 ? "1em" : -5;
|
|
172
|
+
ho(me.current).on("mousemove", o).on("mouseout", i), st?.(void 0);
|
|
173
|
+
}, [l, g, st]);
|
|
174
|
+
let vt;
|
|
175
|
+
t[33] !== a || t[34] !== T || t[35] !== p || t[36] !== Ht || t[37] !== m || t[38] !== l ? (vt = /* @__PURE__ */ s.jsx(oo, { areaSettings: Ht, width: p, height: T, scale: l, animate: a, isInView: m }), t[33] = a, t[34] = T, t[35] = p, t[36] = Ht, t[37] = m, t[38] = l, t[39] = vt) : vt = t[39];
|
|
176
|
+
const $ = O?.yAxis?.gridLines, Wt = O?.yAxis?.labels;
|
|
177
|
+
let wt;
|
|
178
|
+
t[40] !== $ || t[41] !== Wt ? (wt = {
|
|
179
|
+
gridLines: $,
|
|
180
|
+
labels: Wt
|
|
181
|
+
}, t[40] = $, t[41] = Wt, t[42] = wt) : wt = t[42];
|
|
182
|
+
const Yt = A?.yAxis?.gridLines, It = A?.yAxis?.labels;
|
|
183
|
+
let et;
|
|
184
|
+
t[43] !== Yt || t[44] !== It ? (et = {
|
|
185
|
+
gridLines: Yt,
|
|
186
|
+
labels: It
|
|
187
|
+
}, t[43] = Yt, t[44] = It, t[45] = et) : et = t[45];
|
|
188
|
+
const Rt = f(C < 0 ? 0 : C), Xt = f(C < 0 ? 0 : C), Et = 0 - D, Gt = p + d.right, ot = C < 0 ? 0 : C;
|
|
192
189
|
let bt;
|
|
193
|
-
t[
|
|
194
|
-
|
|
195
|
-
y: ve,
|
|
196
|
-
dx: 0,
|
|
197
|
-
dy: wt
|
|
198
|
-
}, t[52] = ot, t[53] = ve, t[54] = wt, t[55] = bt) : bt = t[55];
|
|
199
|
-
const Ft = A?.xAxis?.axis, we = A?.yAxis?.labels;
|
|
200
|
-
let G;
|
|
201
|
-
t[56] !== Ft || t[57] !== we ? (G = {
|
|
202
|
-
axis: Ft,
|
|
203
|
-
label: we
|
|
204
|
-
}, t[56] = Ft, t[57] = we, t[58] = G) : G = t[58];
|
|
205
|
-
const ne = O?.xAxis?.axis, Ot = O?.yAxis?.labels;
|
|
206
|
-
let V;
|
|
207
|
-
t[59] !== ne || t[60] !== Ot ? (V = {
|
|
208
|
-
axis: ne,
|
|
209
|
-
label: Ot
|
|
210
|
-
}, t[59] = ne, t[60] = Ot, t[61] = V) : V = t[61];
|
|
190
|
+
t[46] !== H || t[47] !== E || t[48] !== x || t[49] !== R || t[50] !== ot ? (bt = Ge(ot, void 0, E, x, R, H), t[46] = H, t[47] = E, t[48] = x, t[49] = R, t[50] = ot, t[51] = bt) : bt = t[51];
|
|
191
|
+
const Ot = 0 - D, de = f(C < 0 ? 0 : C), Pt = G < 0 ? "1em" : -5;
|
|
211
192
|
let Ct;
|
|
212
|
-
t[
|
|
213
|
-
|
|
193
|
+
t[52] !== Ot || t[53] !== de || t[54] !== Pt ? (Ct = {
|
|
194
|
+
x: Ot,
|
|
195
|
+
y: de,
|
|
196
|
+
dx: 0,
|
|
197
|
+
dy: Pt
|
|
198
|
+
}, t[52] = Ot, t[53] = de, t[54] = Pt, t[55] = Ct) : Ct = t[55];
|
|
199
|
+
const Ft = A?.xAxis?.axis, ne = A?.yAxis?.labels;
|
|
214
200
|
let W;
|
|
215
|
-
t[
|
|
201
|
+
t[56] !== Ft || t[57] !== ne ? (W = {
|
|
202
|
+
axis: Ft,
|
|
203
|
+
label: ne
|
|
204
|
+
}, t[56] = Ft, t[57] = ne, t[58] = W) : W = t[58];
|
|
205
|
+
const At = O?.xAxis?.axis, Bt = O?.yAxis?.labels;
|
|
206
|
+
let P;
|
|
207
|
+
t[59] !== At || t[60] !== Bt ? (P = {
|
|
208
|
+
axis: At,
|
|
209
|
+
label: Bt
|
|
210
|
+
}, t[59] = At, t[60] = Bt, t[61] = P) : P = t[61];
|
|
216
211
|
let Y;
|
|
217
|
-
t[
|
|
218
|
-
const
|
|
219
|
-
let
|
|
220
|
-
t[
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
212
|
+
t[62] !== Rt || t[63] !== Xt || t[64] !== Et || t[65] !== Gt || t[66] !== bt || t[67] !== Ct || t[68] !== W || t[69] !== P ? (Y = /* @__PURE__ */ s.jsx(Ze, { y1: Rt, y2: Xt, x1: Et, x2: Gt, label: bt, labelPos: Ct, classNames: W, styles: P }), t[62] = Rt, t[63] = Xt, t[64] = Et, t[65] = Gt, t[66] = bt, t[67] = Ct, t[68] = W, t[69] = P, t[70] = Y) : Y = t[70];
|
|
213
|
+
const F = 0 - D - 15, B = T / 2, z = O?.yAxis?.title, U = A?.yAxis?.title;
|
|
214
|
+
let I;
|
|
215
|
+
t[71] !== F || t[72] !== B || t[73] !== z || t[74] !== U || t[75] !== $t ? (I = /* @__PURE__ */ s.jsx(Qe, { x: F, y: B, style: z, className: U, text: $t, rotate90: !0 }), t[71] = F, t[72] = B, t[73] = z, t[74] = U, t[75] = $t, t[76] = I) : I = t[76];
|
|
216
|
+
let it;
|
|
217
|
+
t[77] !== r ? (it = (o) => Xe(o, r), t[77] = r, t[78] = it) : it = t[78];
|
|
218
|
+
const be = Vt.map(it), Oe = Vt.map((o) => l(o)), Ne = O?.xAxis?.gridLines, He = O?.xAxis?.labels;
|
|
219
|
+
let Ce;
|
|
220
|
+
t[79] !== Ne || t[80] !== He ? (Ce = {
|
|
221
|
+
gridLines: Ne,
|
|
222
|
+
labels: He
|
|
223
|
+
}, t[79] = Ne, t[80] = He, t[81] = Ce) : Ce = t[81];
|
|
224
224
|
const Ve = A?.xAxis?.gridLines;
|
|
225
|
-
let
|
|
226
|
-
t[82] !== Ve ? (
|
|
225
|
+
let re;
|
|
226
|
+
t[82] !== Ve ? (re = Te("opacity-0", Ve), t[82] = Ve, t[83] = re) : re = t[83];
|
|
227
227
|
const We = A?.xAxis?.labels;
|
|
228
|
-
let
|
|
229
|
-
t[84] !== We ? (
|
|
230
|
-
let
|
|
231
|
-
t[86] !==
|
|
232
|
-
gridLines:
|
|
233
|
-
labels:
|
|
234
|
-
}, t[86] =
|
|
235
|
-
let
|
|
236
|
-
t[89] !==
|
|
237
|
-
const Fe = g.filter(To).map((o, i) => /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx("path", { d:
|
|
238
|
-
|
|
228
|
+
let se;
|
|
229
|
+
t[84] !== We ? (se = Te("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", We), t[84] = We, t[85] = se) : se = t[85];
|
|
230
|
+
let Ae;
|
|
231
|
+
t[86] !== re || t[87] !== se ? (Ae = {
|
|
232
|
+
gridLines: re,
|
|
233
|
+
labels: se
|
|
234
|
+
}, t[86] = re, t[87] = se, t[88] = Ae) : Ae = t[88];
|
|
235
|
+
let De;
|
|
236
|
+
t[89] !== Q ? (De = Q.filter(Go).map(Eo), t[89] = Q, t[90] = De) : De = t[90];
|
|
237
|
+
const Fe = g.filter(To).map((o, i) => /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx("path", { d: ge.renderCell(g.findIndex((y) => y.label === o.label && y.date === o.date)), opacity: 0, onMouseEnter: (y) => {
|
|
238
|
+
mt(o), tt(y.clientY), _(y.clientX), st?.(o);
|
|
239
239
|
}, onMouseMove: (y) => {
|
|
240
|
-
|
|
240
|
+
mt(o), tt(y.clientY), _(y.clientX);
|
|
241
241
|
}, onMouseLeave: () => {
|
|
242
|
-
|
|
242
|
+
mt(void 0), _(void 0), tt(void 0), st?.(void 0);
|
|
243
243
|
} }) }, i));
|
|
244
|
-
let
|
|
245
|
-
t[91] !== a || t[92] !== p || t[93] !== m || t[94] !== D || t[95] !== d.right || t[96] !==
|
|
246
|
-
let
|
|
247
|
-
if (t[99] !== a || t[100] !== Mt || t[101] !== r || t[102] !== p || t[103] !== m || t[104] !== d.right || t[105] !==
|
|
244
|
+
let Le;
|
|
245
|
+
t[91] !== a || t[92] !== p || t[93] !== m || t[94] !== D || t[95] !== d.right || t[96] !== at || t[97] !== f ? (Le = at ? /* @__PURE__ */ s.jsx(s.Fragment, { children: at.map((o, i) => /* @__PURE__ */ s.jsx(to, { text: o.text, color: o.color, y: f(o.value), x1: 0 - D, x2: p + d.right, classNames: o.classNames, styles: o.styles, animate: a, isInView: m }, i)) }) : null, t[91] = a, t[92] = p, t[93] = m, t[94] = D, t[95] = d.right, t[96] = at, t[97] = f, t[98] = Le) : Le = t[98];
|
|
246
|
+
let ae;
|
|
247
|
+
if (t[99] !== a || t[100] !== Mt || t[101] !== r || t[102] !== p || t[103] !== m || t[104] !== d.right || t[105] !== K || t[106] !== l || t[107] !== f) {
|
|
248
248
|
let o;
|
|
249
|
-
t[109] !== a || t[110] !== r || t[111] !== p || t[112] !== m || t[113] !== d.right || t[114] !==
|
|
249
|
+
t[109] !== a || t[110] !== r || t[111] !== p || t[112] !== m || t[113] !== d.right || t[114] !== K || t[115] !== l || t[116] !== f ? (o = (i, y) => {
|
|
250
250
|
const zt = Je({
|
|
251
|
-
x: i.xCoordinate ?
|
|
252
|
-
y: i.yCoordinate ?
|
|
251
|
+
x: i.xCoordinate ? l(L(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
|
|
252
|
+
y: i.yCoordinate ? f(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8
|
|
253
253
|
}, {
|
|
254
|
-
x: i.xCoordinate ?
|
|
255
|
-
y: i.yCoordinate ?
|
|
254
|
+
x: i.xCoordinate ? l(L(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) : 0,
|
|
255
|
+
y: i.yCoordinate ? f(i.yCoordinate) : 0
|
|
256
256
|
}, w(i.connectorRadius) ? 3.5 : i.connectorRadius), Be = i.showConnector ? {
|
|
257
257
|
y1: zt.y,
|
|
258
258
|
x1: zt.x,
|
|
259
|
-
y2: i.yCoordinate ?
|
|
260
|
-
x2: i.xCoordinate ?
|
|
261
|
-
cy: i.yCoordinate ?
|
|
262
|
-
cx: i.xCoordinate ?
|
|
259
|
+
y2: i.yCoordinate ? f(i.yCoordinate) + (i.yOffset || 0) : 0 + (i.yOffset || 0),
|
|
260
|
+
x2: i.xCoordinate ? l(L(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
|
|
261
|
+
cy: i.yCoordinate ? f(i.yCoordinate) : 0,
|
|
262
|
+
cx: i.xCoordinate ? l(L(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) : 0,
|
|
263
263
|
circleRadius: w(i.connectorRadius) ? 3.5 : i.connectorRadius,
|
|
264
264
|
strokeWidth: i.showConnector === !0 ? 2 : Math.min(i.showConnector || 0, 1)
|
|
265
265
|
} : void 0, ze = {
|
|
266
|
-
y: i.yCoordinate ?
|
|
267
|
-
x:
|
|
268
|
-
width:
|
|
266
|
+
y: i.yCoordinate ? f(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8,
|
|
267
|
+
x: K ? 0 : i.xCoordinate ? l(L(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
|
|
268
|
+
width: K ? i.xCoordinate ? l(L(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0) : p + d.right - (i.xCoordinate ? l(L(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0)),
|
|
269
269
|
maxWidth: i.maxWidth,
|
|
270
270
|
fontWeight: i.fontWeight,
|
|
271
271
|
align: i.align
|
|
272
272
|
};
|
|
273
273
|
return /* @__PURE__ */ s.jsx(Ke, { color: i.color, connectorsSettings: Be, labelSettings: ze, text: i.text, classNames: i.classNames, styles: i.styles, animate: a, isInView: m }, y);
|
|
274
|
-
}, t[109] = a, t[110] = r, t[111] = p, t[112] = m, t[113] = d.right, t[114] =
|
|
274
|
+
}, t[109] = a, t[110] = r, t[111] = p, t[112] = m, t[113] = d.right, t[114] = K, t[115] = l, t[116] = f, t[117] = o) : o = t[117], ae = Mt.map(o), t[99] = a, t[100] = Mt, t[101] = r, t[102] = p, t[103] = m, t[104] = d.right, t[105] = K, t[106] = l, t[107] = f, t[108] = ae;
|
|
275
275
|
} else
|
|
276
|
-
|
|
276
|
+
ae = t[108];
|
|
277
|
+
let je;
|
|
278
|
+
t[118] !== ae ? (je = /* @__PURE__ */ s.jsx("g", { children: ae }), t[118] = ae, t[119] = je) : je = t[119];
|
|
279
|
+
let Me;
|
|
280
|
+
t[120] !== Q ? (Me = Q.filter($o).map(Mo), t[120] = Q, t[121] = Me) : Me = t[121];
|
|
277
281
|
let $e;
|
|
278
|
-
t[
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
return t[122] !== A?.tooltip || t[123] !== mt || t[124] !== ut || t[125] !== h || t[126] !== O?.tooltip || t[127] !== Lt ? (ke = h && Lt && mt && ut ? /* @__PURE__ */ s.jsx(Ue, { data: h, body: Lt, xPos: mt, yPos: ut, backgroundStyle: O?.tooltip, className: A?.tooltip }) : null, t[122] = A?.tooltip, t[123] = mt, t[124] = ut, t[125] = h, t[126] = O?.tooltip, t[127] = Lt, t[128] = ke) : ke = t[128], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
283
|
-
/* @__PURE__ */ s.jsx(Ut.svg, { width: `${b}px`, height: `${$}px`, viewBox: `0 0 ${b} ${$}`, direction: "ltr", ref: ue, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${d.left},${d.top})`, children: [
|
|
284
|
-
dt,
|
|
285
|
-
/* @__PURE__ */ s.jsx(qe, { areaSettings: de, scaleX: c, scaleY: l, animate: a, isInView: m }),
|
|
282
|
+
return t[122] !== A?.tooltip || t[123] !== ut || t[124] !== ht || t[125] !== h || t[126] !== O?.tooltip || t[127] !== Lt ? ($e = h && Lt && ut && ht ? /* @__PURE__ */ s.jsx(Ue, { data: h, body: Lt, xPos: ut, yPos: ht, backgroundStyle: O?.tooltip, className: A?.tooltip }) : null, t[122] = A?.tooltip, t[123] = ut, t[124] = ht, t[125] = h, t[126] = O?.tooltip, t[127] = Lt, t[128] = $e) : $e = t[128], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
283
|
+
/* @__PURE__ */ s.jsx(Ut.svg, { width: `${b}px`, height: `${j}px`, viewBox: `0 0 ${b} ${j}`, direction: "ltr", ref: ce, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${d.left},${d.top})`, children: [
|
|
284
|
+
vt,
|
|
285
|
+
/* @__PURE__ */ s.jsx(qe, { areaSettings: he, scaleX: l, scaleY: f, animate: a, isInView: m }),
|
|
286
286
|
/* @__PURE__ */ s.jsxs("g", { children: [
|
|
287
|
-
/* @__PURE__ */ s.jsx(eo, { values: ie.filter(Fo), y: ie.filter(Po).map((o) =>
|
|
288
|
-
|
|
289
|
-
|
|
287
|
+
/* @__PURE__ */ s.jsx(eo, { values: ie.filter(Fo), y: ie.filter(Po).map((o) => f(o)), x1: 0 - D, x2: p + d.right, styles: wt, classNames: et, suffix: R, prefix: x, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: E, locale: H }),
|
|
288
|
+
Y,
|
|
289
|
+
I
|
|
290
290
|
] }),
|
|
291
|
-
/* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(_e, { values:
|
|
292
|
-
|
|
291
|
+
/* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(_e, { values: be, x: Oe, y1: 0, y2: T, styles: Ce, classNames: Ae, suffix: R, prefix: x, labelType: "primary", showGridLines: !0, precision: E, locale: H }) }),
|
|
292
|
+
De,
|
|
293
293
|
/* @__PURE__ */ s.jsxs(Ut.g, { children: [
|
|
294
|
-
|
|
294
|
+
ue.map((o) => /* @__PURE__ */ s.jsxs(Ut.g, { exit: {
|
|
295
295
|
opacity: 0,
|
|
296
296
|
transition: {
|
|
297
297
|
duration: a.duration
|
|
298
298
|
}
|
|
299
299
|
}, variants: {
|
|
300
300
|
initial: {
|
|
301
|
-
opacity: h ? o[0].label === h.label ? 1 :
|
|
301
|
+
opacity: h ? o[0].label === h.label ? 1 : N : kt ? o[0].color && c[M.indexOf(o[0].color)] === kt ? 1 : N : X ? X.indexOf(o[0].label) !== -1 ? 1 : N : 1
|
|
302
302
|
},
|
|
303
303
|
whileInView: {
|
|
304
|
-
opacity: h ? o[0].label === h.label ? 1 :
|
|
304
|
+
opacity: h ? o[0].label === h.label ? 1 : N : kt ? o[0].color && c[M.indexOf(o[0].color)] === kt ? 1 : N : X ? X.indexOf(o[0].label) !== -1 ? 1 : N : 1,
|
|
305
305
|
transition: {
|
|
306
306
|
duration: a.duration
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
}, initial: "initial", animate: m ? "whileInView" : "initial", children: [
|
|
310
|
-
/* @__PURE__ */ s.jsx(Ut.path, { d:
|
|
310
|
+
/* @__PURE__ */ s.jsx(Ut.path, { d: yt(o.filter(Xo)) || "", style: {
|
|
311
311
|
fill: "none",
|
|
312
|
-
strokeWidth: h ? o[0].label === h.label ?
|
|
312
|
+
strokeWidth: h ? o[0].label === h.label ? S + Math.max(2, 0.5 * S) : S : X && X.indexOf(o[0].label) !== -1 ? S + Math.max(2, 0.5 * S) : S
|
|
313
313
|
}, exit: {
|
|
314
314
|
opacity: 0,
|
|
315
315
|
transition: {
|
|
@@ -318,21 +318,21 @@ function jo(e) {
|
|
|
318
318
|
}, variants: {
|
|
319
319
|
initial: {
|
|
320
320
|
pathLength: 0,
|
|
321
|
-
d:
|
|
321
|
+
d: yt(o.filter(Ro)) || "",
|
|
322
322
|
opacity: 1,
|
|
323
|
-
stroke: n.filter(Io).length === 0 ?
|
|
323
|
+
stroke: n.filter(Io).length === 0 ? c[0] : o[0].color ? c[M.indexOf(o[0].color)] : q.gray
|
|
324
324
|
},
|
|
325
325
|
whileInView: {
|
|
326
326
|
pathLength: 1,
|
|
327
|
-
d:
|
|
327
|
+
d: yt(o.filter(Yo)) || "",
|
|
328
328
|
opacity: 1,
|
|
329
|
-
stroke: n.filter(Wo).length === 0 ?
|
|
329
|
+
stroke: n.filter(Wo).length === 0 ? c[0] : o[0].color ? c[M.indexOf(o[0].color)] : q.gray,
|
|
330
330
|
transition: {
|
|
331
331
|
duration: a.duration
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
}, initial: "initial", animate: m ? "whileInView" : "initial" }),
|
|
335
|
-
o.map((i, y) => /* @__PURE__ */ s.jsx(Ut.g, { children: w(i.y) ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children:
|
|
335
|
+
o.map((i, y) => /* @__PURE__ */ s.jsx(Ut.g, { children: w(i.y) ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children: le ? /* @__PURE__ */ s.jsx(Ut.circle, { r: p / o.length < 5 ? 0 : p / o.length < 20 ? 2 : 4, exit: {
|
|
336
336
|
opacity: 0,
|
|
337
337
|
transition: {
|
|
338
338
|
duration: a.duration
|
|
@@ -340,22 +340,22 @@ function jo(e) {
|
|
|
340
340
|
}, variants: {
|
|
341
341
|
initial: {
|
|
342
342
|
opacity: 0,
|
|
343
|
-
fill: n.filter(Vo).length === 0 ?
|
|
344
|
-
cx:
|
|
345
|
-
cy:
|
|
343
|
+
fill: n.filter(Vo).length === 0 ? c[0] : o[0].color ? c[M.indexOf(o[0].color)] : q.gray,
|
|
344
|
+
cx: l(i.date),
|
|
345
|
+
cy: f(i.y)
|
|
346
346
|
},
|
|
347
347
|
whileInView: {
|
|
348
348
|
opacity: 1,
|
|
349
|
-
fill: n.filter(Ho).length === 0 ?
|
|
349
|
+
fill: n.filter(Ho).length === 0 ? c[0] : o[0].color ? c[M.indexOf(o[0].color)] : q.gray,
|
|
350
350
|
transition: {
|
|
351
|
-
duration:
|
|
352
|
-
delay:
|
|
351
|
+
duration: V ? a.duration : 0.5,
|
|
352
|
+
delay: V ? 0 : a.duration
|
|
353
353
|
},
|
|
354
|
-
cx:
|
|
355
|
-
cy:
|
|
354
|
+
cx: l(i.date),
|
|
355
|
+
cy: f(i.y)
|
|
356
356
|
}
|
|
357
357
|
}, initial: "initial", animate: m ? "whileInView" : "initial" }) : null }) }, y)),
|
|
358
|
-
(
|
|
358
|
+
((X || []).indexOf(o[0].label) !== -1 && ve || h?.label === o[0].label) && xe ? /* @__PURE__ */ s.jsx(Ut.text, { className: "text-sm font-bold", dx: 5, dy: 4, exit: {
|
|
359
359
|
opacity: 0,
|
|
360
360
|
transition: {
|
|
361
361
|
duration: a.duration
|
|
@@ -363,40 +363,40 @@ function jo(e) {
|
|
|
363
363
|
}, variants: {
|
|
364
364
|
initial: {
|
|
365
365
|
opacity: 0,
|
|
366
|
-
fill: n.filter(No).length === 0 ?
|
|
367
|
-
x:
|
|
368
|
-
y:
|
|
366
|
+
fill: n.filter(No).length === 0 ? c[0] : o[0].color ? c[M.indexOf(o[0].color)] : q.gray,
|
|
367
|
+
x: l(o[o.length - 1].date),
|
|
368
|
+
y: f(o[o.length - 1].y)
|
|
369
369
|
},
|
|
370
370
|
whileInView: {
|
|
371
371
|
opacity: 1,
|
|
372
|
-
fill: n.filter(So).length === 0 ?
|
|
373
|
-
x:
|
|
374
|
-
y:
|
|
372
|
+
fill: n.filter(So).length === 0 ? c[0] : o[0].color ? c[M.indexOf(o[0].color)] : q.gray,
|
|
373
|
+
x: l(o[o.length - 1].date),
|
|
374
|
+
y: f(o[o.length - 1].y),
|
|
375
375
|
transition: {
|
|
376
|
-
duration:
|
|
377
|
-
delay:
|
|
376
|
+
duration: V ? a.duration : 0.5,
|
|
377
|
+
delay: V ? 0 : a.duration
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
}, initial: "initial", animate: m ? "whileInView" : "initial", children: o[0].label }) : null
|
|
381
381
|
] }, o[0].label)),
|
|
382
382
|
h ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
383
|
-
/* @__PURE__ */ s.jsx("text", { y:
|
|
384
|
-
fill: n.filter(ko).length === 0 ?
|
|
383
|
+
/* @__PURE__ */ s.jsx("text", { y: f(h.y) - 8, x: l(h.date), className: Te("graph-value text-sm font-bold", A?.graphObjectValues), style: {
|
|
384
|
+
fill: n.filter(ko).length === 0 ? c[0] : h.color ? c[M.indexOf(h.color)] : q.gray,
|
|
385
385
|
textAnchor: "middle",
|
|
386
386
|
...O?.graphObjectValues || {}
|
|
387
|
-
}, children: Ge(h.y,
|
|
388
|
-
te && /* @__PURE__ */ s.jsx("text", { y:
|
|
387
|
+
}, children: Ge(h.y, ye, E, x, R, H) }),
|
|
388
|
+
te && /* @__PURE__ */ s.jsx("text", { y: f(h.y) + 20, x: l(h.date), className: Te("graph-value text-sm fill-primary-gray-500 dark:fill-primary-gray-400", A?.graphObjectValues), style: {
|
|
389
389
|
textAnchor: "middle",
|
|
390
390
|
...O?.graphObjectValues || {}
|
|
391
391
|
}, children: Xe(new Date(h.date), r || "yyyy") })
|
|
392
392
|
] }) : null
|
|
393
393
|
] }),
|
|
394
394
|
Fe,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
395
|
+
Le,
|
|
396
|
+
je,
|
|
397
|
+
Me
|
|
398
398
|
] }) }),
|
|
399
|
-
|
|
399
|
+
$e
|
|
400
400
|
] });
|
|
401
401
|
}
|
|
402
402
|
function Mo(e) {
|
|
@@ -493,133 +493,130 @@ function ni(e) {
|
|
|
493
493
|
return !w(e.y);
|
|
494
494
|
}
|
|
495
495
|
function Bi(e) {
|
|
496
|
-
const t = Pe.c(
|
|
496
|
+
const t = Pe.c(107), {
|
|
497
497
|
data: n,
|
|
498
498
|
graphTitle: b,
|
|
499
|
-
showNAColor:
|
|
500
|
-
colors:
|
|
499
|
+
showNAColor: j,
|
|
500
|
+
colors: c,
|
|
501
501
|
colorDomain: r,
|
|
502
502
|
suffix: Dt,
|
|
503
|
-
sources:
|
|
503
|
+
sources: nt,
|
|
504
504
|
prefix: Jt,
|
|
505
|
-
graphDescription:
|
|
506
|
-
height:
|
|
505
|
+
graphDescription: rt,
|
|
506
|
+
height: R,
|
|
507
507
|
width: x,
|
|
508
508
|
footNote: D,
|
|
509
509
|
noOfXTicks: Lt,
|
|
510
|
-
dateFormat:
|
|
511
|
-
padding:
|
|
510
|
+
dateFormat: st,
|
|
511
|
+
padding: at,
|
|
512
512
|
backgroundColor: Kt,
|
|
513
|
-
leftMargin:
|
|
513
|
+
leftMargin: J,
|
|
514
514
|
rightMargin: jt,
|
|
515
|
-
topMargin:
|
|
515
|
+
topMargin: X,
|
|
516
516
|
bottomMargin: a,
|
|
517
|
-
showColorScale:
|
|
518
|
-
tooltip:
|
|
519
|
-
relativeHeight:
|
|
517
|
+
showColorScale: K,
|
|
518
|
+
tooltip: S,
|
|
519
|
+
relativeHeight: le,
|
|
520
520
|
onSeriesMouseOver: Mt,
|
|
521
521
|
showLabels: Qt,
|
|
522
522
|
showHighlightedLinesLabels: $t,
|
|
523
523
|
refValues: Zt,
|
|
524
524
|
highlightAreaSettings: Tt,
|
|
525
525
|
graphID: _t,
|
|
526
|
-
minValue:
|
|
526
|
+
minValue: lt,
|
|
527
527
|
maxValue: O,
|
|
528
|
-
highlightedLines:
|
|
528
|
+
highlightedLines: M,
|
|
529
529
|
graphDownload: kt,
|
|
530
530
|
dataDownload: A,
|
|
531
|
-
animate:
|
|
532
|
-
language:
|
|
533
|
-
colorLegendTitle:
|
|
534
|
-
minHeight:
|
|
535
|
-
strokeWidth:
|
|
536
|
-
showDots:
|
|
531
|
+
animate: xe,
|
|
532
|
+
language: N,
|
|
533
|
+
colorLegendTitle: E,
|
|
534
|
+
minHeight: ye,
|
|
535
|
+
strokeWidth: Q,
|
|
536
|
+
showDots: ve,
|
|
537
537
|
annotations: te,
|
|
538
|
-
customHighlightAreaSettings:
|
|
539
|
-
theme:
|
|
540
|
-
ariaLabel:
|
|
538
|
+
customHighlightAreaSettings: H,
|
|
539
|
+
theme: ce,
|
|
540
|
+
ariaLabel: ct,
|
|
541
541
|
yAxisTitle: m,
|
|
542
|
-
noOfYTicks:
|
|
543
|
-
minDate:
|
|
544
|
-
maxDate:
|
|
542
|
+
noOfYTicks: V,
|
|
543
|
+
minDate: fe,
|
|
544
|
+
maxDate: ft,
|
|
545
545
|
curveType: St,
|
|
546
546
|
styles: v,
|
|
547
547
|
classNames: u,
|
|
548
548
|
dimmedOpacity: g,
|
|
549
|
-
precision:
|
|
550
|
-
customLayers:
|
|
549
|
+
precision: we,
|
|
550
|
+
customLayers: Z,
|
|
551
551
|
naLabel: ee,
|
|
552
552
|
showDateOnHover: h,
|
|
553
|
-
locale:
|
|
554
|
-
} = e,
|
|
553
|
+
locale: mt
|
|
554
|
+
} = e, ut = j === void 0 ? !0 : j, _ = Dt === void 0 ? "" : Dt, ht = Jt === void 0 ? "" : Jt, tt = Lt === void 0 ? 10 : Lt, Nt = st === void 0 ? "yyyy" : st, pt = Kt === void 0 ? !1 : Kt, d = J === void 0 ? 30 : J, me = jt === void 0 ? 50 : jt, ue = X === void 0 ? 20 : X, gt = a === void 0 ? 25 : a, Ht = K === void 0 ? !0 : K, dt = Qt === void 0 ? !0 : Qt, he = $t === void 0 ? !1 : $t;
|
|
555
555
|
let p;
|
|
556
556
|
t[0] !== Zt ? (p = Zt === void 0 ? [] : Zt, t[0] = Zt, t[1] = p) : p = t[1];
|
|
557
557
|
const T = p;
|
|
558
558
|
let oe;
|
|
559
559
|
t[2] !== Tt ? (oe = Tt === void 0 ? [] : Tt, t[2] = Tt, t[3] = oe) : oe = t[3];
|
|
560
|
-
const xe =
|
|
561
|
-
let
|
|
562
|
-
t[4] !==
|
|
563
|
-
const
|
|
564
|
-
let
|
|
565
|
-
t[6] !==
|
|
566
|
-
const
|
|
567
|
-
let
|
|
568
|
-
t[8] !==
|
|
569
|
-
const
|
|
570
|
-
let
|
|
571
|
-
t[10]
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ot = () => {
|
|
575
|
-
const se = new ResizeObserver((ae) => {
|
|
576
|
-
ve(ae[0].target.clientWidth || 620), bt(ae[0].target.clientHeight || 480);
|
|
560
|
+
const pe = oe, C = kt === void 0 ? !1 : kt, G = A === void 0 ? !1 : A, l = xe === void 0 ? !1 : xe, k = N === void 0 ? "en" : N, xt = ye === void 0 ? 0 : ye, f = Q === void 0 ? 2 : Q, ge = ve === void 0 ? !0 : ve;
|
|
561
|
+
let yt;
|
|
562
|
+
t[4] !== te ? (yt = te === void 0 ? [] : te, t[4] = te, t[5] = yt) : yt = t[5];
|
|
563
|
+
const ie = yt;
|
|
564
|
+
let Vt;
|
|
565
|
+
t[6] !== H ? (Vt = H === void 0 ? [] : H, t[6] = H, t[7] = Vt) : Vt = t[7];
|
|
566
|
+
const vt = Vt, $ = ce === void 0 ? "light" : ce, Wt = V === void 0 ? 5 : V, wt = St === void 0 ? "curve" : St, Yt = g === void 0 ? 0.3 : g, It = we === void 0 ? 2 : we;
|
|
567
|
+
let et;
|
|
568
|
+
t[8] !== Z ? (et = Z === void 0 ? [] : Z, t[8] = Z, t[9] = et) : et = t[9];
|
|
569
|
+
const Rt = et, Xt = ee === void 0 ? "NA" : ee, Et = h === void 0 ? !1 : h, Gt = mt === void 0 ? "en" : mt, [ot, bt] = qt(0), [Ot, de] = qt(0), [Pt, Ct] = qt(void 0), Ft = ke(null), ne = ke(null);
|
|
570
|
+
let W, At;
|
|
571
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = () => {
|
|
572
|
+
const be = new ResizeObserver((Oe) => {
|
|
573
|
+
bt(Oe[0].target.clientWidth || 620), de(Oe[0].target.clientHeight || 480);
|
|
577
574
|
});
|
|
578
|
-
return
|
|
579
|
-
},
|
|
580
|
-
const
|
|
581
|
-
let
|
|
582
|
-
t[
|
|
575
|
+
return Ft.current && be.observe(Ft.current), () => be.disconnect();
|
|
576
|
+
}, At = [], t[10] = W, t[11] = At) : (W = t[10], At = t[11]), Ye(W, At);
|
|
577
|
+
const Bt = u?.graphContainer, P = v?.graphContainer;
|
|
578
|
+
let Y;
|
|
579
|
+
t[12] !== u?.description || t[13] !== u?.title || t[14] !== n || t[15] !== G || t[16] !== rt || t[17] !== C || t[18] !== b || t[19] !== v?.description || t[20] !== v?.title || t[21] !== x ? (Y = b || rt || C || G ? /* @__PURE__ */ s.jsx(yo, { styles: {
|
|
583
580
|
title: v?.title,
|
|
584
581
|
description: v?.description
|
|
585
582
|
}, classNames: {
|
|
586
583
|
title: u?.title,
|
|
587
584
|
description: u?.description
|
|
588
|
-
}, graphTitle: b, graphDescription:
|
|
585
|
+
}, graphTitle: b, graphDescription: rt, width: x, graphDownload: C ? ne : void 0, dataDownload: G ? n.map(ui).filter(mi).length > 0 ? n.map(fi).filter(ci) : n.filter(li) : null }) : null, t[12] = u?.description, t[13] = u?.title, t[14] = n, t[15] = G, t[16] = rt, t[17] = C, t[18] = b, t[19] = v?.description, t[20] = v?.title, t[21] = x, t[22] = Y) : Y = t[22];
|
|
589
586
|
let F;
|
|
590
|
-
t[
|
|
587
|
+
t[23] !== u?.colorLegend || t[24] !== r || t[25] !== E || t[26] !== c || t[27] !== n || t[28] !== Ht || t[29] !== ut || t[30] !== $ || t[31] !== x ? (F = Ht && n.filter(ai).length !== 0 && n.length > 0 ? /* @__PURE__ */ s.jsx(wo, { width: x, colorLegendTitle: E, colors: c || q[$].categoricalColors.colors, colorDomain: r || Se(n, "color", !0), setSelectedColor: Ct, showNAColor: ut, className: u?.colorLegend }) : null, t[23] = u?.colorLegend, t[24] = r, t[25] = E, t[26] = c, t[27] = n, t[28] = Ht, t[29] = ut, t[30] = $, t[31] = x, t[32] = F) : F = t[32];
|
|
591
588
|
let B;
|
|
592
|
-
t[
|
|
593
|
-
let
|
|
594
|
-
t[37] !==
|
|
589
|
+
t[33] !== n.length ? (B = n.length === 0 && /* @__PURE__ */ s.jsx(vo, {}), t[33] = n.length, t[34] = B) : B = t[34];
|
|
590
|
+
let z;
|
|
591
|
+
t[35] !== l || t[36] !== ie || t[37] !== gt || t[38] !== u || t[39] !== r || t[40] !== c || t[41] !== wt || t[42] !== vt || t[43] !== Rt || t[44] !== n || t[45] !== Nt || t[46] !== Yt || t[47] !== pe || t[48] !== M || t[49] !== k || t[50] !== d || t[51] !== Gt || t[52] !== ft || t[53] !== O || t[54] !== fe || t[55] !== lt || t[56] !== Xt || t[57] !== tt || t[58] !== Wt || t[59] !== Mt || t[60] !== It || t[61] !== ht || t[62] !== T || t[63] !== me || t[64] !== Pt || t[65] !== Et || t[66] !== ge || t[67] !== he || t[68] !== dt || t[69] !== f || t[70] !== v || t[71] !== _ || t[72] !== Ot || t[73] !== ot || t[74] !== $ || t[75] !== S || t[76] !== ue || t[77] !== m ? (z = ot && Ot && n.length > 0 ? /* @__PURE__ */ s.jsx(jo, { data: n, lineColors: n.filter(si).length === 0 ? c ? [c] : [q.primaryColors["blue-600"]] : c || q[$].categoricalColors.colors, width: ot, height: Ot, dateFormat: Nt, noOfXTicks: tt ?? Co(ot), leftMargin: d, rightMargin: me, topMargin: ue, bottomMargin: gt, tooltip: S, onSeriesMouseOver: Mt, suffix: _, prefix: ht, highlightAreaSettings: pe, refValues: T, minValue: lt, maxValue: O, highlightedLines: M, showHighlightedLinesLabels: he, animate: l === !0 ? {
|
|
595
592
|
duration: 0.5,
|
|
596
593
|
once: !0,
|
|
597
594
|
amount: 0.5
|
|
598
|
-
} :
|
|
595
|
+
} : l || {
|
|
599
596
|
duration: 0,
|
|
600
597
|
once: !0,
|
|
601
598
|
amount: 0
|
|
602
|
-
}, rtl:
|
|
603
|
-
let
|
|
604
|
-
t[
|
|
599
|
+
}, rtl: k === "he" || k === "ar", strokeWidth: f, showDots: ge, annotations: ie, customHighlightAreaSettings: vt, yAxisTitle: m, noOfYTicks: Wt, minDate: fe, maxDate: ft, curveType: wt, styles: v, classNames: u, selectedColor: Pt, showLabels: dt, colorDomain: n.filter(ri).length === 0 ? [] : r || Se(n, "color", !0), dimmedOpacity: Yt, precision: It, customLayers: Rt, naLabel: Xt, showDateOnHover: Et, locale: Gt }) : null, t[35] = l, t[36] = ie, t[37] = gt, t[38] = u, t[39] = r, t[40] = c, t[41] = wt, t[42] = vt, t[43] = Rt, t[44] = n, t[45] = Nt, t[46] = Yt, t[47] = pe, t[48] = M, t[49] = k, t[50] = d, t[51] = Gt, t[52] = ft, t[53] = O, t[54] = fe, t[55] = lt, t[56] = Xt, t[57] = tt, t[58] = Wt, t[59] = Mt, t[60] = It, t[61] = ht, t[62] = T, t[63] = me, t[64] = Pt, t[65] = Et, t[66] = ge, t[67] = he, t[68] = dt, t[69] = f, t[70] = v, t[71] = _, t[72] = Ot, t[73] = ot, t[74] = $, t[75] = S, t[76] = ue, t[77] = m, t[78] = z) : z = t[78];
|
|
600
|
+
let U;
|
|
601
|
+
t[79] !== B || t[80] !== z ? (U = /* @__PURE__ */ s.jsxs(bo, { ref: Ft, children: [
|
|
605
602
|
B,
|
|
606
|
-
|
|
607
|
-
] }), t[
|
|
608
|
-
let
|
|
609
|
-
t[
|
|
603
|
+
z
|
|
604
|
+
] }), t[79] = B, t[80] = z, t[81] = U) : U = t[81];
|
|
605
|
+
let I;
|
|
606
|
+
t[82] !== u?.footnote || t[83] !== u?.source || t[84] !== D || t[85] !== nt || t[86] !== v?.footnote || t[87] !== v?.source || t[88] !== x ? (I = nt || D ? /* @__PURE__ */ s.jsx(xo, { styles: {
|
|
610
607
|
footnote: v?.footnote,
|
|
611
608
|
source: v?.source
|
|
612
609
|
}, classNames: {
|
|
613
610
|
footnote: u?.footnote,
|
|
614
611
|
source: u?.source
|
|
615
|
-
}, sources:
|
|
616
|
-
let
|
|
617
|
-
return t[
|
|
618
|
-
P,
|
|
619
|
-
F,
|
|
612
|
+
}, sources: nt, footNote: D, width: x }) : null, t[82] = u?.footnote, t[83] = u?.source, t[84] = D, t[85] = nt, t[86] = v?.footnote, t[87] = v?.source, t[88] = x, t[89] = I) : I = t[89];
|
|
613
|
+
let it;
|
|
614
|
+
return t[90] !== ct || t[91] !== pt || t[92] !== _t || t[93] !== R || t[94] !== k || t[95] !== xt || t[96] !== at || t[97] !== le || t[98] !== Bt || t[99] !== P || t[100] !== Y || t[101] !== F || t[102] !== U || t[103] !== I || t[104] !== $ || t[105] !== x ? (it = /* @__PURE__ */ s.jsxs(Oo, { className: Bt, style: P, id: _t, ref: ne, "aria-label": ct, backgroundColor: pt, theme: $, language: k, minHeight: xt, width: x, height: R, relativeHeight: le, padding: at, children: [
|
|
620
615
|
Y,
|
|
621
|
-
|
|
622
|
-
|
|
616
|
+
F,
|
|
617
|
+
U,
|
|
618
|
+
I
|
|
619
|
+
] }), t[90] = ct, t[91] = pt, t[92] = _t, t[93] = R, t[94] = k, t[95] = xt, t[96] = at, t[97] = le, t[98] = Bt, t[99] = P, t[100] = Y, t[101] = F, t[102] = U, t[103] = I, t[104] = $, t[105] = x, t[106] = it) : it = t[106], it;
|
|
623
620
|
}
|
|
624
621
|
function ri(e) {
|
|
625
622
|
return e.color;
|