@undp/data-viz 2.5.1 → 2.5.3
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.js +297 -289
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +307 -299
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CopyTextButton.cjs +1 -1
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +281 -279
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +4 -4
- package/dist/CsvDownloadButton.cjs.map +1 -1
- package/dist/CsvDownloadButton.js +268 -266
- package/dist/CsvDownloadButton.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +277 -269
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.cjs.map +1 -1
- package/dist/ExcelDownloadButton.js +21 -19
- package/dist/ExcelDownloadButton.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +299 -291
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.cjs.map +1 -1
- package/dist/ImageDownloadButton.js +19 -17
- package/dist/ImageDownloadButton.js.map +1 -1
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.cjs.map +1 -1
- package/dist/SVGDownloadButton.js +20 -18
- package/dist/SVGDownloadButton.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +1 -1
- package/dist/ScatterPlot.js +107 -107
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/ScatterPlot.js
CHANGED
|
@@ -6,7 +6,7 @@ import { i as xi } from "./index-Bwrro8-q.js";
|
|
|
6
6
|
import { o as Li } from "./index-BZQYSqar.js";
|
|
7
7
|
import { l as ji, a as Vi } from "./simple-statistics-flVzqVtt.js";
|
|
8
8
|
import { T as Di } from "./Tooltip-3EYDVa3w.js";
|
|
9
|
-
import { c as
|
|
9
|
+
import { c as L } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
10
10
|
import { Colors as E } from "./Colors.js";
|
|
11
11
|
import { n as mi } from "./numberFormattingFunction-BUUV_luR.js";
|
|
12
12
|
import { g as ki, A as Mi, C as Ni } from "./customArea-D89lETG0.js";
|
|
@@ -35,8 +35,8 @@ import { a as Ji, G as Ki } from "./GraphContainer-B8ZqOzKI.js";
|
|
|
35
35
|
function Qi(i) {
|
|
36
36
|
const t = vi.c(229), {
|
|
37
37
|
data: o,
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
38
|
+
width: lt,
|
|
39
|
+
height: C,
|
|
40
40
|
showLabels: Gt,
|
|
41
41
|
colors: r,
|
|
42
42
|
colorDomain: a,
|
|
@@ -60,7 +60,7 @@ function Qi(i) {
|
|
|
60
60
|
maxYValue: re,
|
|
61
61
|
minYValue: j,
|
|
62
62
|
onSeriesMouseClick: M,
|
|
63
|
-
rtl:
|
|
63
|
+
rtl: rt,
|
|
64
64
|
annotations: Oe,
|
|
65
65
|
customHighlightAreaSettings: Tt,
|
|
66
66
|
regressionLine: Zt,
|
|
@@ -79,14 +79,14 @@ function Qi(i) {
|
|
|
79
79
|
useVoronoiInteraction: Ut,
|
|
80
80
|
xNumberDisplayOptions: m,
|
|
81
81
|
yNumberDisplayOptions: d,
|
|
82
|
-
|
|
82
|
+
fallbackColor: T
|
|
83
83
|
} = i, $e = ci(null);
|
|
84
84
|
let ae;
|
|
85
85
|
t[0] !== f.amount || t[1] !== f.once ? (ae = {
|
|
86
86
|
once: f.once,
|
|
87
87
|
amount: f.amount
|
|
88
88
|
}, t[0] = f.amount, t[1] = f.once, t[2] = ae) : ae = t[2];
|
|
89
|
-
const
|
|
89
|
+
const $ = Wi($e, ae), [X, Xt] = Et(void 0), [F, h] = Et(void 0), [p, Yt] = Et(void 0), [ce, z] = Et(void 0), Jt = O ? Ye + 50 : Ye, we = G ? R + 30 : R;
|
|
90
90
|
let fe;
|
|
91
91
|
t[3] !== he || t[4] !== Jt || t[5] !== we || t[6] !== oe ? (fe = {
|
|
92
92
|
top: oe,
|
|
@@ -95,13 +95,13 @@ function Qi(i) {
|
|
|
95
95
|
right: he
|
|
96
96
|
}, t[3] = he, t[4] = Jt, t[5] = we, t[6] = oe, t[7] = fe) : fe = t[7];
|
|
97
97
|
const y = fe;
|
|
98
|
-
let ct, ft,
|
|
99
|
-
if (t[8] !== f || t[9] !== Oe || t[10] !== n?.graphObjectValues || t[11] !== n?.regLine || t[12] !== n?.xAxis?.axis || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.gridLines || t[17] !== n?.yAxis?.labels || t[18] !== n?.yAxis?.title || t[19] !== a || t[20] !== r || t[21] !== Tt || t[22] !== B || t[23] !== o || t[24] !==
|
|
100
|
-
const ue = o.map(Oo),
|
|
101
|
-
|
|
98
|
+
let at, ct, ft, ut, xt, mt, H, pt, dt, gt, ht, U, yt, J, vt, K, W, bt;
|
|
99
|
+
if (t[8] !== f || t[9] !== Oe || t[10] !== n?.graphObjectValues || t[11] !== n?.regLine || t[12] !== n?.xAxis?.axis || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.gridLines || t[17] !== n?.yAxis?.labels || t[18] !== n?.yAxis?.title || t[19] !== a || t[20] !== r || t[21] !== Tt || t[22] !== B || t[23] !== o || t[24] !== N || t[25] !== S || t[26] !== T || t[27] !== C || t[28] !== ve || t[29] !== Z || t[30] !== $ || t[31] !== q || t[32] !== R || t[33] !== y.bottom || t[34] !== y.left || t[35] !== y.right || t[36] !== y.top || t[37] !== be || t[38] !== le || t[39] !== re || t[40] !== D || t[41] !== j || t[42] !== F || t[43] !== X || t[44] !== Bt || t[45] !== zt || t[46] !== M || t[47] !== Nt || t[48] !== I || t[49] !== ne || t[50] !== ye || t[51] !== Zt || t[52] !== qt || t[53] !== rt || t[54] !== St || t[55] !== Ae || t[56] !== Gt || t[57] !== Ce || t[58] !== s?.graphObjectValues || t[59] !== s?.regLine || t[60] !== s?.xAxis?.axis || t[61] !== s?.xAxis?.gridLines || t[62] !== s?.xAxis?.labels || t[63] !== s?.xAxis?.title || t[64] !== s?.yAxis?.gridLines || t[65] !== s?.yAxis?.labels || t[66] !== s?.yAxis?.title || t[67] !== Ut || t[68] !== lt || t[69] !== O || t[70] !== m?.locale || t[71] !== m?.padZeros || t[72] !== m?.precision || t[73] !== m?.prefix || t[74] !== m?.suffix || t[75] !== G || t[76] !== d?.locale || t[77] !== d?.padZeros || t[78] !== d?.precision || t[79] !== d?.prefix || t[80] !== d?.suffix) {
|
|
100
|
+
const ue = o.map(Oo), w = lt - y.left - y.right, A = C - y.top - y.bottom, b = o.filter(bo).length !== o.length ? Fi().domain([0, be]).range([0.25, I]).nice() : void 0, Kt = ue.filter(vo).length === 0 ? ue.filter(yo) : Li(ue.filter(ho), "radius", "desc"), u = gi().domain([D, le]).range([0, w]).nice(), g = gi().domain([j, re]).range([A, 0]).nice(), Le = u.ticks(Bt), xe = g.ticks(zt), Pe = Hi.from(Kt, (e) => u(e.x), (e) => g(e.y)).voronoi([0, 0, w < 0 ? 0 : w, A < 0 ? 0 : A]), je = ji(o.filter(go).map((e) => [u(e.x), g(e.y)])), Ve = Vi(je);
|
|
101
|
+
ct = We.svg, pt = `${lt}px`, dt = `${C}px`, gt = `0 0 ${lt} ${C}`, ht = "ltr", U = $e, ft = `translate(${y.left},${y.top})`;
|
|
102
102
|
let It;
|
|
103
|
-
t[99] !== f || t[100] !== Tt || t[101] !==
|
|
104
|
-
/* @__PURE__ */ l.jsx(Ii, { areaSettings: ve, width:
|
|
103
|
+
t[99] !== f || t[100] !== Tt || t[101] !== $ || t[102] !== u || t[103] !== g ? (It = /* @__PURE__ */ l.jsx(Ni, { areaSettings: Tt, scaleX: u, scaleY: g, animate: f, isInView: $ }, "custom-area"), t[99] = f, t[100] = Tt, t[101] = $, t[102] = u, t[103] = g, t[104] = It) : It = t[104], ut = /* @__PURE__ */ l.jsxs(hi, { children: [
|
|
104
|
+
/* @__PURE__ */ l.jsx(Ii, { areaSettings: ve, width: w, height: A, scaleX: u, scaleY: g, animate: f, isInView: $ }, "highlight-area"),
|
|
105
105
|
It
|
|
106
106
|
] });
|
|
107
107
|
const c = s?.yAxis?.gridLines, me = s?.yAxis?.labels;
|
|
@@ -116,44 +116,44 @@ function Qi(i) {
|
|
|
116
116
|
gridLines: _t,
|
|
117
117
|
labels: Ie
|
|
118
118
|
}, t[108] = _t, t[109] = Ie, t[110] = Rt) : Rt = t[110];
|
|
119
|
-
const Re = g(j < 0 ? 0 : j), Y = g(j < 0 ? 0 : j), Fe =
|
|
119
|
+
const Re = g(j < 0 ? 0 : j), Y = g(j < 0 ? 0 : j), Fe = w + y.right, Ft = j < 0 ? 0 : j, x = d?.precision ?? 2, P = d?.prefix || "", pe = d?.suffix || "", de = d?.locale || "en", He = d?.padZeros || !1;
|
|
120
120
|
let $t;
|
|
121
121
|
t[111] !== Ft || t[112] !== x || t[113] !== P || t[114] !== pe || t[115] !== de || t[116] !== He ? ($t = mi(Ft, void 0, x, P, pe, de, He), t[111] = Ft, t[112] = x, t[113] = P, t[114] = pe, t[115] = de, t[116] = He, t[117] = $t) : $t = t[117];
|
|
122
122
|
const De = g(j < 0 ? 0 : j);
|
|
123
|
-
let
|
|
124
|
-
t[118] !== De ? (
|
|
123
|
+
let tt;
|
|
124
|
+
t[118] !== De ? (tt = {
|
|
125
125
|
x: 0,
|
|
126
126
|
y: De,
|
|
127
127
|
dy: "0.33em",
|
|
128
128
|
dx: -4
|
|
129
|
-
}, t[118] = De, t[119] =
|
|
129
|
+
}, t[118] = De, t[119] = tt) : tt = t[119];
|
|
130
130
|
const te = n?.xAxis?.axis, ee = n?.yAxis?.labels;
|
|
131
|
-
let
|
|
132
|
-
t[120] !== te || t[121] !== ee ? (
|
|
131
|
+
let et;
|
|
132
|
+
t[120] !== te || t[121] !== ee ? (et = {
|
|
133
133
|
axis: te,
|
|
134
134
|
label: ee
|
|
135
|
-
}, t[120] = te, t[121] = ee, t[122] =
|
|
135
|
+
}, t[120] = te, t[121] = ee, t[122] = et) : et = t[122];
|
|
136
136
|
const ge = s?.xAxis?.axis;
|
|
137
|
+
let it;
|
|
138
|
+
t[123] !== s?.yAxis?.labels ? (it = s?.yAxis?.labels || {}, t[123] = s?.yAxis?.labels, t[124] = it) : it = t[124];
|
|
137
139
|
let ot;
|
|
138
|
-
t[
|
|
139
|
-
let st;
|
|
140
|
-
t[125] !== ot ? (st = {
|
|
140
|
+
t[125] !== it ? (ot = {
|
|
141
141
|
textAnchor: "end",
|
|
142
|
-
...
|
|
143
|
-
}, t[125] =
|
|
142
|
+
...it
|
|
143
|
+
}, t[125] = it, t[126] = ot) : ot = t[126];
|
|
144
144
|
let wt;
|
|
145
|
-
t[127] !== ge || t[128] !==
|
|
145
|
+
t[127] !== ge || t[128] !== ot ? (wt = {
|
|
146
146
|
axis: ge,
|
|
147
|
-
label:
|
|
148
|
-
}, t[127] = ge, t[128] =
|
|
147
|
+
label: ot
|
|
148
|
+
}, t[127] = ge, t[128] = ot, t[129] = wt) : wt = t[129];
|
|
149
149
|
let ie;
|
|
150
|
-
t[130] !== Re || t[131] !== Y || t[132] !== Fe || t[133] !== $t || t[134] !==
|
|
150
|
+
t[130] !== Re || t[131] !== Y || t[132] !== Fe || t[133] !== $t || t[134] !== tt || t[135] !== et || t[136] !== wt ? (ie = /* @__PURE__ */ l.jsx(pi, { y1: Re, y2: Y, x1: 0, x2: Fe, label: $t, labelPos: tt, classNames: et, styles: wt }), t[130] = Re, t[131] = Y, t[132] = Fe, t[133] = $t, t[134] = tt, t[135] = et, t[136] = wt, t[137] = ie) : ie = t[137];
|
|
151
151
|
const Lt = 0 - R - 15, jt = A / 2, Vt = s?.yAxis?.title, Dt = n?.yAxis?.title;
|
|
152
|
-
let
|
|
153
|
-
t[138] !== Lt || t[139] !== jt || t[140] !== Vt || t[141] !== Dt || t[142] !== G ? (
|
|
154
|
-
/* @__PURE__ */ l.jsx(Pi, { values: xe.filter(po), y: xe.filter(mo).map((e) => g(e)), x1: 0, x2:
|
|
152
|
+
let st;
|
|
153
|
+
t[138] !== Lt || t[139] !== jt || t[140] !== Vt || t[141] !== Dt || t[142] !== G ? (st = /* @__PURE__ */ l.jsx(di, { x: Lt, y: jt, style: Vt, className: Dt, text: G, rotate90: !0 }), t[138] = Lt, t[139] = jt, t[140] = Vt, t[141] = Dt, t[142] = G, t[143] = st) : st = t[143], xt = /* @__PURE__ */ l.jsxs("g", { children: [
|
|
154
|
+
/* @__PURE__ */ l.jsx(Pi, { values: xe.filter(po), y: xe.filter(mo).map((e) => g(e)), x1: 0, x2: w + y.right, styles: Qt, classNames: Rt, labelType: "secondary", showGridLines: !0, labelPos: "side", suffix: d?.suffix || "", prefix: d?.prefix || "", precision: d?.precision ?? 2, locale: d?.locale || "en", padZeros: d?.padZeros || !1 }),
|
|
155
155
|
ie,
|
|
156
|
-
|
|
156
|
+
st
|
|
157
157
|
] });
|
|
158
158
|
const kt = s?.xAxis?.gridLines, Mt = s?.xAxis?.labels;
|
|
159
159
|
let Ht;
|
|
@@ -161,12 +161,12 @@ function Qi(i) {
|
|
|
161
161
|
gridLines: kt,
|
|
162
162
|
labels: Mt
|
|
163
163
|
}, t[144] = kt, t[145] = Mt, t[146] = Ht) : Ht = t[146];
|
|
164
|
-
const v = n?.xAxis?.gridLines,
|
|
164
|
+
const v = n?.xAxis?.gridLines, nt = n?.xAxis?.labels;
|
|
165
165
|
let Ee;
|
|
166
|
-
t[147] !== v || t[148] !==
|
|
166
|
+
t[147] !== v || t[148] !== nt ? (Ee = {
|
|
167
167
|
gridLines: v,
|
|
168
|
-
labels:
|
|
169
|
-
}, t[147] = v, t[148] =
|
|
168
|
+
labels: nt
|
|
169
|
+
}, t[147] = v, t[148] = nt, t[149] = Ee) : Ee = t[149];
|
|
170
170
|
const qe = u(D < 0 ? 0 : D), Be = u(D < 0 ? 0 : D), ze = D < 0 ? 0 : D, Ue = m?.precision ?? 2, Je = m?.prefix || "", Ke = m?.suffix || "", Qe = m?.locale || "en", _e = m?.padZeros || !1;
|
|
171
171
|
let ke;
|
|
172
172
|
t[150] !== ze || t[151] !== Ue || t[152] !== Je || t[153] !== Ke || t[154] !== Qe || t[155] !== _e ? (ke = mi(ze, void 0, Ue, Je, Ke, Qe, _e), t[150] = ze, t[151] = Ue, t[152] = Je, t[153] = Ke, t[154] = Qe, t[155] = _e, t[156] = ke) : ke = t[156];
|
|
@@ -199,13 +199,13 @@ function Qi(i) {
|
|
|
199
199
|
}, t[167] = oi, t[168] = Te, t[169] = Xe) : Xe = t[169];
|
|
200
200
|
let Ge;
|
|
201
201
|
t[170] !== A || t[171] !== qe || t[172] !== Be || t[173] !== ke || t[174] !== Me || t[175] !== Ne || t[176] !== Xe ? (Ge = /* @__PURE__ */ l.jsx(pi, { x1: qe, x2: Be, y1: 0, y2: A, label: ke, labelPos: Me, classNames: Ne, styles: Xe }), t[170] = A, t[171] = qe, t[172] = Be, t[173] = ke, t[174] = Me, t[175] = Ne, t[176] = Xe, t[177] = Ge) : Ge = t[177];
|
|
202
|
-
const si =
|
|
202
|
+
const si = w / 2, ni = A + 30, li = s?.xAxis?.title, ri = n?.xAxis?.title;
|
|
203
203
|
let Ze;
|
|
204
204
|
t[178] !== si || t[179] !== ni || t[180] !== li || t[181] !== ri || t[182] !== O ? (Ze = /* @__PURE__ */ l.jsx(di, { x: si, y: ni, style: li, className: ri, text: O }), t[178] = si, t[179] = ni, t[180] = li, t[181] = ri, t[182] = O, t[183] = Ze) : Ze = t[183], mt = /* @__PURE__ */ l.jsxs("g", { children: [
|
|
205
205
|
/* @__PURE__ */ l.jsx(Si, { values: Le.filter(xo), x: Le.filter(uo).map((e) => u(e)), y1: 0, y2: A, styles: Ht, classNames: Ee, labelType: "primary", showGridLines: !0, suffix: m?.suffix || "", prefix: m?.prefix || "", precision: m?.precision ?? 2, locale: m?.locale || "en", padZeros: m?.padZeros || !1 }),
|
|
206
206
|
Ge,
|
|
207
207
|
Ze
|
|
208
|
-
] }), t[184] !== B ? (H = B.filter(fo).map(co), t[184] = B, t[185] = H) : H = t[185],
|
|
208
|
+
] }), t[184] !== B ? (H = B.filter(fo).map(co), t[184] = B, t[185] = H) : H = t[185], at = hi, yt = Ut && Kt.map((e, Wt) => /* @__PURE__ */ l.jsx("path", { d: Pe.renderCell(Kt.findIndex((V) => V.id === e.id)), opacity: Ce ? 1 : 0, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
|
|
209
209
|
fillOpacity: 0,
|
|
210
210
|
strokeWidth: 1
|
|
211
211
|
}, onMouseEnter: (V) => {
|
|
@@ -216,7 +216,7 @@ function Qi(i) {
|
|
|
216
216
|
Xt(void 0), Yt(void 0), z(void 0), Nt?.(void 0);
|
|
217
217
|
}, onClick: () => {
|
|
218
218
|
(M || N) && (xi(F, e) && qt ? (h(void 0), M?.(void 0)) : (h(e), M?.(e)));
|
|
219
|
-
} }, `tesselation_${e.label || Wt}`)),
|
|
219
|
+
} }, `tesselation_${e.label || Wt}`)), J = Kt.map((e, Wt) => /* @__PURE__ */ l.jsxs(We.g, { variants: {
|
|
220
220
|
initial: {
|
|
221
221
|
x: u(e.x),
|
|
222
222
|
y: g(e.y),
|
|
@@ -230,7 +230,7 @@ function Qi(i) {
|
|
|
230
230
|
duration: f.duration
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
}, initial: "initial", animate:
|
|
233
|
+
}, initial: "initial", animate: $ ? "whileInView" : "initial", exit: {
|
|
234
234
|
opacity: 0,
|
|
235
235
|
transition: {
|
|
236
236
|
duration: f.duration
|
|
@@ -263,10 +263,10 @@ function Qi(i) {
|
|
|
263
263
|
duration: f.duration
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
}, initial: "initial", animate:
|
|
266
|
+
}, initial: "initial", animate: $ ? "whileInView" : "initial", style: {
|
|
267
267
|
fillOpacity: 0.6
|
|
268
268
|
} }),
|
|
269
|
-
Gt && !
|
|
269
|
+
Gt && !L(e.label) ? /* @__PURE__ */ l.jsx(We.text, { style: {
|
|
270
270
|
...s?.graphObjectValues || {}
|
|
271
271
|
}, className: fi("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
|
|
272
272
|
opacity: 0,
|
|
@@ -287,7 +287,7 @@ function Qi(i) {
|
|
|
287
287
|
duration: f.duration
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
}, initial: "initial", animate:
|
|
290
|
+
}, initial: "initial", animate: $ ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : Z && !L(e.label) && Ae && Z.indexOf(e.label) !== -1 ? /* @__PURE__ */ l.jsx(We.text, { style: {
|
|
291
291
|
...s?.graphObjectValues || {}
|
|
292
292
|
}, className: fi("graph-value text-sm", n?.graphObjectValues), y: 0, exit: {
|
|
293
293
|
opacity: 0,
|
|
@@ -308,8 +308,8 @@ function Qi(i) {
|
|
|
308
308
|
duration: f.duration
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
}, initial: "initial", animate:
|
|
312
|
-
] }, `${e.label || Wt}`)), vt = ne.map((e, Wt) => /* @__PURE__ */ l.jsx(Ti, { text: e.text, color: e.color, x: u(e.value), y1: 0, y2: A, textSide: u(e.value) >
|
|
311
|
+
}, initial: "initial", animate: $ ? "whileInView" : "initial", dy: "0.33em", dx: 3, children: e.label }) : null
|
|
312
|
+
] }, `${e.label || Wt}`)), vt = ne.map((e, Wt) => /* @__PURE__ */ l.jsx(Ti, { text: e.text, color: e.color, x: u(e.value), y1: 0, y2: A, textSide: u(e.value) > w * 0.75 || rt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: f, isInView: $ }, Wt)), K = ye.map((e, Wt) => /* @__PURE__ */ l.jsx(Xi, { text: e.text, color: e.color, y: g(e.value), x1: 0, x2: w, classNames: e.classNames, styles: e.styles, animate: f, isInView: $ }, Wt));
|
|
313
313
|
const ai = Oe.map((e, Wt) => {
|
|
314
314
|
const V = ki({
|
|
315
315
|
x: e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
@@ -317,50 +317,50 @@ function Qi(i) {
|
|
|
317
317
|
}, {
|
|
318
318
|
x: e.xCoordinate ? u(e.xCoordinate) : 0,
|
|
319
319
|
y: e.yCoordinate ? g(e.yCoordinate) : 0
|
|
320
|
-
},
|
|
320
|
+
}, L(e.connectorRadius) ? 3.5 : e.connectorRadius), bi = e.showConnector ? {
|
|
321
321
|
y1: V.y,
|
|
322
322
|
x1: V.x,
|
|
323
323
|
y2: e.yCoordinate ? g(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
|
|
324
324
|
x2: e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
325
325
|
cy: e.yCoordinate ? g(e.yCoordinate) : 0,
|
|
326
326
|
cx: e.xCoordinate ? u(e.xCoordinate) : 0,
|
|
327
|
-
circleRadius:
|
|
327
|
+
circleRadius: L(e.connectorRadius) ? 3.5 : e.connectorRadius,
|
|
328
328
|
strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
|
|
329
329
|
} : void 0, Oi = {
|
|
330
330
|
y: e.yCoordinate ? g(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
|
|
331
|
-
x:
|
|
332
|
-
width:
|
|
331
|
+
x: rt ? 0 : e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
332
|
+
width: rt ? e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : w + y.right - (e.xCoordinate ? u(e.xCoordinate) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
|
|
333
333
|
maxWidth: e.maxWidth,
|
|
334
334
|
fontWeight: e.fontWeight,
|
|
335
335
|
align: e.align
|
|
336
336
|
};
|
|
337
|
-
return /* @__PURE__ */ l.jsx(Mi, { color: e.color, connectorsSettings: bi, labelSettings: Oi, text: e.text, classNames: e.classNames, styles: e.styles, animate: f, isInView:
|
|
337
|
+
return /* @__PURE__ */ l.jsx(Mi, { color: e.color, connectorsSettings: bi, labelSettings: Oi, text: e.text, classNames: e.classNames, styles: e.styles, animate: f, isInView: $ }, Wt);
|
|
338
338
|
});
|
|
339
|
-
t[186] !== ai ? (W = /* @__PURE__ */ l.jsx("g", { children: ai }), t[186] = ai, t[187] = W) : W = t[187], bt = Zt ? /* @__PURE__ */ l.jsx(Yi, { x1: 0, x2:
|
|
339
|
+
t[186] !== ai ? (W = /* @__PURE__ */ l.jsx("g", { children: ai }), t[186] = ai, t[187] = W) : W = t[187], bt = Zt ? /* @__PURE__ */ l.jsx(Yi, { x1: 0, x2: w, y1: Ve(0), y2: Ve(w), graphHeight: A, graphWidth: w, className: n?.regLine, style: s?.regLine, color: typeof Zt == "string" ? Zt : void 0, animate: f, isInView: $ }) : null, t[8] = f, t[9] = Oe, t[10] = n?.graphObjectValues, t[11] = n?.regLine, t[12] = n?.xAxis?.axis, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.gridLines, t[17] = n?.yAxis?.labels, t[18] = n?.yAxis?.title, t[19] = a, t[20] = r, t[21] = Tt, t[22] = B, t[23] = o, t[24] = N, t[25] = S, t[26] = T, t[27] = C, t[28] = ve, t[29] = Z, t[30] = $, t[31] = q, t[32] = R, t[33] = y.bottom, t[34] = y.left, t[35] = y.right, t[36] = y.top, t[37] = be, t[38] = le, t[39] = re, t[40] = D, t[41] = j, t[42] = F, t[43] = X, t[44] = Bt, t[45] = zt, t[46] = M, t[47] = Nt, t[48] = I, t[49] = ne, t[50] = ye, t[51] = Zt, t[52] = qt, t[53] = rt, t[54] = St, t[55] = Ae, t[56] = Gt, t[57] = Ce, t[58] = s?.graphObjectValues, t[59] = s?.regLine, t[60] = s?.xAxis?.axis, t[61] = s?.xAxis?.gridLines, t[62] = s?.xAxis?.labels, t[63] = s?.xAxis?.title, t[64] = s?.yAxis?.gridLines, t[65] = s?.yAxis?.labels, t[66] = s?.yAxis?.title, t[67] = Ut, t[68] = lt, t[69] = O, t[70] = m?.locale, t[71] = m?.padZeros, t[72] = m?.precision, t[73] = m?.prefix, t[74] = m?.suffix, t[75] = G, t[76] = d?.locale, t[77] = d?.padZeros, t[78] = d?.precision, t[79] = d?.prefix, t[80] = d?.suffix, t[81] = at, t[82] = ct, t[83] = ft, t[84] = ut, t[85] = xt, t[86] = mt, t[87] = H, t[88] = pt, t[89] = dt, t[90] = gt, t[91] = ht, t[92] = U, t[93] = yt, t[94] = J, t[95] = vt, t[96] = K, t[97] = W, t[98] = bt;
|
|
340
340
|
} else
|
|
341
|
-
|
|
341
|
+
at = t[81], ct = t[82], ft = t[83], ut = t[84], xt = t[85], mt = t[86], H = t[87], pt = t[88], dt = t[89], gt = t[90], ht = t[91], U = t[92], yt = t[93], J = t[94], vt = t[95], K = t[96], W = t[97], bt = t[98];
|
|
342
342
|
let Ot;
|
|
343
|
-
t[188] !==
|
|
343
|
+
t[188] !== at || t[189] !== yt || t[190] !== J || t[191] !== vt || t[192] !== K || t[193] !== W || t[194] !== bt ? (Ot = /* @__PURE__ */ l.jsxs(at, { children: [
|
|
344
344
|
yt,
|
|
345
|
-
|
|
345
|
+
J,
|
|
346
346
|
vt,
|
|
347
|
-
|
|
347
|
+
K,
|
|
348
348
|
W,
|
|
349
349
|
bt
|
|
350
|
-
] }), t[188] =
|
|
350
|
+
] }), t[188] = at, t[189] = yt, t[190] = J, t[191] = vt, t[192] = K, t[193] = W, t[194] = bt, t[195] = Ot) : Ot = t[195];
|
|
351
|
+
let Q;
|
|
352
|
+
t[196] !== B ? (Q = B.filter(to).map(_i), t[196] = B, t[197] = Q) : Q = t[197];
|
|
351
353
|
let _;
|
|
352
|
-
t[
|
|
353
|
-
let tt;
|
|
354
|
-
t[198] !== U || t[199] !== ut || t[200] !== xt || t[201] !== mt || t[202] !== H || t[203] !== Ot || t[204] !== _ ? (tt = /* @__PURE__ */ l.jsxs("g", { transform: U, children: [
|
|
354
|
+
t[198] !== ft || t[199] !== ut || t[200] !== xt || t[201] !== mt || t[202] !== H || t[203] !== Ot || t[204] !== Q ? (_ = /* @__PURE__ */ l.jsxs("g", { transform: ft, children: [
|
|
355
355
|
ut,
|
|
356
356
|
xt,
|
|
357
357
|
mt,
|
|
358
358
|
H,
|
|
359
359
|
Ot,
|
|
360
|
-
|
|
361
|
-
] }), t[198] =
|
|
360
|
+
Q
|
|
361
|
+
] }), t[198] = ft, t[199] = ut, t[200] = xt, t[201] = mt, t[202] = H, t[203] = Ot, t[204] = Q, t[205] = _) : _ = t[205];
|
|
362
362
|
let k;
|
|
363
|
-
t[206] !==
|
|
363
|
+
t[206] !== ct || t[207] !== pt || t[208] !== dt || t[209] !== gt || t[210] !== ht || t[211] !== U || t[212] !== _ ? (k = /* @__PURE__ */ l.jsx(ct, { width: pt, height: dt, viewBox: gt, direction: ht, ref: U, children: _ }), t[206] = ct, t[207] = pt, t[208] = dt, t[209] = gt, t[210] = ht, t[211] = U, t[212] = _, t[213] = k) : k = t[213];
|
|
364
364
|
let At;
|
|
365
365
|
t[214] !== n?.tooltip || t[215] !== p || t[216] !== ce || t[217] !== X || t[218] !== s?.tooltip || t[219] !== se ? (At = X && se && p && ce ? /* @__PURE__ */ l.jsx(Di, { data: X, body: se, xPos: p, yPos: ce, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[214] = n?.tooltip, t[215] = p, t[216] = ce, t[217] = X, t[218] = s?.tooltip, t[219] = se, t[220] = At) : At = t[220];
|
|
366
366
|
let Ct;
|
|
@@ -421,16 +421,16 @@ function po(i) {
|
|
|
421
421
|
return i !== 0;
|
|
422
422
|
}
|
|
423
423
|
function go(i) {
|
|
424
|
-
return !
|
|
424
|
+
return !L(i.x) && !L(i.y);
|
|
425
425
|
}
|
|
426
426
|
function ho(i) {
|
|
427
|
-
return !
|
|
427
|
+
return !L(i.radius) && !L(i.x) && !L(i.y);
|
|
428
428
|
}
|
|
429
429
|
function yo(i) {
|
|
430
|
-
return !
|
|
430
|
+
return !L(i.x) && !L(i.y);
|
|
431
431
|
}
|
|
432
432
|
function vo(i) {
|
|
433
|
-
return !
|
|
433
|
+
return !L(i.radius);
|
|
434
434
|
}
|
|
435
435
|
function bo(i) {
|
|
436
436
|
return i.radius === void 0 || i.radius === null;
|
|
@@ -444,8 +444,8 @@ function Oo(i, t) {
|
|
|
444
444
|
function Ms(i) {
|
|
445
445
|
const t = vi.c(141), {
|
|
446
446
|
data: o,
|
|
447
|
-
graphTitle:
|
|
448
|
-
colors:
|
|
447
|
+
graphTitle: lt,
|
|
448
|
+
colors: C,
|
|
449
449
|
sources: Gt,
|
|
450
450
|
graphDescription: r,
|
|
451
451
|
showLabels: a,
|
|
@@ -453,7 +453,7 @@ function Ms(i) {
|
|
|
453
453
|
width: O,
|
|
454
454
|
footNote: G,
|
|
455
455
|
colorDomain: R,
|
|
456
|
-
|
|
456
|
+
fallbackColor: he,
|
|
457
457
|
colorLegendTitle: oe,
|
|
458
458
|
radius: Ye,
|
|
459
459
|
xAxisTitle: se,
|
|
@@ -469,7 +469,7 @@ function Ms(i) {
|
|
|
469
469
|
onSeriesMouseOver: re,
|
|
470
470
|
refXValues: j,
|
|
471
471
|
refYValues: M,
|
|
472
|
-
highlightAreaSettings:
|
|
472
|
+
highlightAreaSettings: rt,
|
|
473
473
|
showColorScale: Oe,
|
|
474
474
|
highlightedDataPoints: Tt,
|
|
475
475
|
showHighlightedDataPointsLabels: Zt,
|
|
@@ -491,7 +491,7 @@ function Ms(i) {
|
|
|
491
491
|
regressionLine: T,
|
|
492
492
|
ariaLabel: $e,
|
|
493
493
|
resetSelectionOnDoubleClick: ae,
|
|
494
|
-
detailsOnClick:
|
|
494
|
+
detailsOnClick: $,
|
|
495
495
|
noOfXTicks: X,
|
|
496
496
|
noOfYTicks: Xt,
|
|
497
497
|
labelColor: F,
|
|
@@ -504,23 +504,23 @@ function Ms(i) {
|
|
|
504
504
|
showVoronoiTesselation: we,
|
|
505
505
|
useVoronoiInteraction: fe,
|
|
506
506
|
xNumberDisplayOptions: y,
|
|
507
|
-
yNumberDisplayOptions:
|
|
508
|
-
} = i,
|
|
507
|
+
yNumberDisplayOptions: at
|
|
508
|
+
} = i, ct = a === void 0 ? !1 : a, ft = he === void 0 ? E.gray : he, ut = Ye === void 0 ? 5 : Ye, xt = se === void 0 ? "X Axis" : se, mt = Nt === void 0 ? "Y Axis" : Nt, H = ye === void 0 ? !1 : ye, pt = ve === void 0 ? 0 : ve, dt = St === void 0 ? 10 : St, gt = Z === void 0 ? 20 : Z, ht = be === void 0 ? 50 : be;
|
|
509
|
+
let U;
|
|
510
|
+
t[0] !== j ? (U = j === void 0 ? [] : j, t[0] = j, t[1] = U) : U = t[1];
|
|
511
|
+
const yt = U;
|
|
509
512
|
let J;
|
|
510
|
-
t[
|
|
511
|
-
const
|
|
513
|
+
t[2] !== M ? (J = M === void 0 ? [] : M, t[2] = M, t[3] = J) : J = t[3];
|
|
514
|
+
const vt = J;
|
|
512
515
|
let K;
|
|
513
|
-
t[
|
|
514
|
-
const
|
|
515
|
-
let Q;
|
|
516
|
-
t[4] !== at ? (Q = at === void 0 ? [] : at, t[4] = at, t[5] = Q) : Q = t[5];
|
|
517
|
-
const W = Q, bt = Oe === void 0 ? !0 : Oe, Ot = Zt === void 0 ? !1 : Zt, _ = f === void 0 ? !1 : f, tt = S === void 0 ? !1 : S, k = Ae === void 0 ? "en" : Ae, At = B === void 0 ? !0 : B, Ct = Ce === void 0 ? 0 : Ce;
|
|
516
|
+
t[4] !== rt ? (K = rt === void 0 ? [] : rt, t[4] = rt, t[5] = K) : K = t[5];
|
|
517
|
+
const W = K, bt = Oe === void 0 ? !0 : Oe, Ot = Zt === void 0 ? !1 : Zt, Q = f === void 0 ? !1 : f, _ = S === void 0 ? !1 : S, k = Ae === void 0 ? "en" : Ae, At = B === void 0 ? !0 : B, Ct = Ce === void 0 ? 0 : Ce;
|
|
518
518
|
let Pt;
|
|
519
519
|
t[6] !== Ut ? (Pt = Ut === void 0 ? [] : Ut, t[6] = Ut, t[7] = Pt) : Pt = t[7];
|
|
520
520
|
const ue = Pt;
|
|
521
|
-
let
|
|
522
|
-
t[8] !== m ? (
|
|
523
|
-
const A =
|
|
521
|
+
let w;
|
|
522
|
+
t[8] !== m ? (w = m === void 0 ? [] : m, t[8] = m, t[9] = w) : w = t[9];
|
|
523
|
+
const A = w, b = d === void 0 ? "light" : d, Kt = T === void 0 ? !1 : T, u = ae === void 0 ? !0 : ae, g = X === void 0 ? 5 : X, Le = Xt === void 0 ? 5 : Xt, xe = Yt === void 0 ? !1 : Yt, Pe = ce === void 0 ? 0.3 : ce;
|
|
524
524
|
let je;
|
|
525
525
|
t[10] !== z ? (je = z === void 0 ? [] : z, t[10] = z, t[11] = je) : je = t[11];
|
|
526
526
|
const Ve = je;
|
|
@@ -534,53 +534,53 @@ function Ms(i) {
|
|
|
534
534
|
let Ft;
|
|
535
535
|
if (t[14] !== o || t[15] !== c.dateFormat) {
|
|
536
536
|
let v;
|
|
537
|
-
t[17] !== c.dateFormat ? (v = (
|
|
537
|
+
t[17] !== c.dateFormat ? (v = (nt) => Ci(`${nt.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[17] = c.dateFormat, t[18] = v) : v = t[18], Ft = [...new Set(o.filter(Jo).map(v))], Ft.sort(Uo), t[14] = o, t[15] = c.dateFormat, t[16] = Ft;
|
|
538
538
|
} else
|
|
539
539
|
Ft = t[16];
|
|
540
540
|
const x = Ft, [P, pe] = Et(c.autoplay ? 0 : x.length - 1), [de, He] = Et(void 0), $t = ci(null), De = ci(null);
|
|
541
|
-
let
|
|
542
|
-
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
543
|
-
const v = new ResizeObserver((
|
|
544
|
-
Ie(
|
|
541
|
+
let tt, te;
|
|
542
|
+
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tt = () => {
|
|
543
|
+
const v = new ResizeObserver((nt) => {
|
|
544
|
+
Ie(nt[0].target.clientWidth || 620), Re(nt[0].target.clientHeight || 480);
|
|
545
545
|
});
|
|
546
546
|
return $t.current && v.observe($t.current), () => v.disconnect();
|
|
547
|
-
}, te = [], t[19] =
|
|
548
|
-
let ee,
|
|
547
|
+
}, te = [], t[19] = tt, t[20] = te) : (tt = t[19], te = t[20]), ui(tt, te);
|
|
548
|
+
let ee, et;
|
|
549
549
|
t[21] !== Y || t[22] !== c.speed || t[23] !== x ? (ee = () => {
|
|
550
550
|
const v = setInterval(() => {
|
|
551
|
-
pe((
|
|
551
|
+
pe((nt) => nt < x.length - 1 ? nt + 1 : 0);
|
|
552
552
|
}, (c.speed || 2) * 1e3);
|
|
553
553
|
return Y || clearInterval(v), () => clearInterval(v);
|
|
554
|
-
},
|
|
554
|
+
}, et = [x, Y, c.speed], t[21] = Y, t[22] = c.speed, t[23] = x, t[24] = ee, t[25] = et) : (ee = t[24], et = t[25]), ui(ee, et);
|
|
555
555
|
const ge = c.dateFormat || "yyyy";
|
|
556
|
-
let
|
|
557
|
-
t[26] !== P || t[27] !== ge || t[28] !== c.showOnlyActiveDate || t[29] !== x ? (
|
|
558
|
-
const
|
|
556
|
+
let it;
|
|
557
|
+
t[26] !== P || t[27] !== ge || t[28] !== c.showOnlyActiveDate || t[29] !== x ? (it = $i(x, P, c.showOnlyActiveDate, ge), t[26] = P, t[27] = ge, t[28] = c.showOnlyActiveDate, t[29] = x, t[30] = it) : it = t[30];
|
|
558
|
+
const ot = it, wt = p?.graphContainer, ie = h?.graphContainer;
|
|
559
559
|
let Lt;
|
|
560
|
-
t[31] !== p?.description || t[32] !== p?.title || t[33] !== o || t[34] !==
|
|
560
|
+
t[31] !== p?.description || t[32] !== p?.title || t[33] !== o || t[34] !== _ || t[35] !== r || t[36] !== Q || t[37] !== lt || t[38] !== h?.description || t[39] !== h?.title || t[40] !== O ? (Lt = lt || r || Q || _ ? /* @__PURE__ */ l.jsx(Gi, { styles: {
|
|
561
561
|
title: h?.title,
|
|
562
562
|
description: h?.description
|
|
563
563
|
}, classNames: {
|
|
564
564
|
title: p?.title,
|
|
565
565
|
description: p?.description
|
|
566
|
-
}, graphTitle:
|
|
566
|
+
}, graphTitle: lt, graphDescription: r, width: O, graphDownload: Q ? De : void 0, dataDownload: _ ? o.map(zo).filter(Bo).length > 0 ? o.map(qo).filter(Zo) : o.filter(Go) : null }) : null, t[31] = p?.description, t[32] = p?.title, t[33] = o, t[34] = _, t[35] = r, t[36] = Q, t[37] = lt, t[38] = h?.description, t[39] = h?.title, t[40] = O, t[41] = Lt) : Lt = t[41];
|
|
567
567
|
let jt;
|
|
568
|
-
t[42] !== P || t[43] !==
|
|
568
|
+
t[42] !== P || t[43] !== ot || t[44] !== Y || t[45] !== c.enabled || t[46] !== x ? (jt = c.enabled && x.length > 0 && ot ? /* @__PURE__ */ l.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
569
569
|
/* @__PURE__ */ l.jsx("button", { type: "button", onClick: () => {
|
|
570
570
|
Fe(!Y);
|
|
571
571
|
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Y ? "Click to pause animation" : "Click to play animation", children: Y ? /* @__PURE__ */ l.jsx(Bi, {}) : /* @__PURE__ */ l.jsx(zi, {}) }),
|
|
572
|
-
/* @__PURE__ */ l.jsx(wi, { min: x[0], max: x[x.length - 1], marks:
|
|
572
|
+
/* @__PURE__ */ l.jsx(wi, { min: x[0], max: x[x.length - 1], marks: ot, step: null, defaultValue: x[x.length - 1], value: x[P], onChangeComplete: (v) => {
|
|
573
573
|
pe(x.indexOf(v));
|
|
574
574
|
}, onChange: (v) => {
|
|
575
575
|
pe(x.indexOf(v));
|
|
576
576
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
577
|
-
] }) : null, t[42] = P, t[43] =
|
|
577
|
+
] }) : null, t[42] = P, t[43] = ot, t[44] = Y, t[45] = c.enabled, t[46] = x, t[47] = jt) : jt = t[47];
|
|
578
578
|
let Vt;
|
|
579
|
-
t[48] !== p?.colorLegend || t[49] !== R || t[50] !== oe || t[51] !==
|
|
579
|
+
t[48] !== p?.colorLegend || t[49] !== R || t[50] !== oe || t[51] !== C || t[52] !== o || t[53] !== bt || t[54] !== At || t[55] !== b || t[56] !== O ? (Vt = bt && o.filter(Eo).length !== 0 && o.length > 0 ? /* @__PURE__ */ l.jsx(Zi, { width: O, colorLegendTitle: oe, colors: C || E[b].categoricalColors.colors, colorDomain: R || yi(o, "color", !0), setSelectedColor: He, showNAColor: At, className: p?.colorLegend }) : null, t[48] = p?.colorLegend, t[49] = R, t[50] = oe, t[51] = C, t[52] = o, t[53] = bt, t[54] = At, t[55] = b, t[56] = O, t[57] = Vt) : Vt = t[57];
|
|
580
580
|
let Dt;
|
|
581
581
|
t[58] !== o.length ? (Dt = o.length === 0 && /* @__PURE__ */ l.jsx(qi, {}), t[58] = o.length, t[59] = Dt) : Dt = t[59];
|
|
582
|
-
let
|
|
583
|
-
t[60] !== xe || t[61] !== ue || t[62] !== ht || t[63] !== p || t[64] !== R || t[65] !==
|
|
582
|
+
let st;
|
|
583
|
+
t[60] !== xe || t[61] !== ue || t[62] !== ht || t[63] !== p || t[64] !== R || t[65] !== C || t[66] !== A || t[67] !== Ve || t[68] !== o || t[69] !== $ || t[70] !== Pe || t[71] !== ft || t[72] !== W || t[73] !== Tt || t[74] !== P || t[75] !== F || t[76] !== k || t[77] !== pt || t[78] !== N || t[79] !== Bt || t[80] !== q || t[81] !== zt || t[82] !== s || t[83] !== g || t[84] !== Le || t[85] !== n || t[86] !== re || t[87] !== ut || t[88] !== yt || t[89] !== vt || t[90] !== Kt || t[91] !== u || t[92] !== dt || t[93] !== de || t[94] !== Ot || t[95] !== ct || t[96] !== me || t[97] !== h || t[98] !== Rt || t[99] !== _t || t[100] !== b || t[101] !== c.dateFormat || t[102] !== c.enabled || t[103] !== le || t[104] !== gt || t[105] !== x || t[106] !== Qt || t[107] !== xt || t[108] !== y || t[109] !== mt || t[110] !== at ? (st = _t && Rt && o.length > 0 ? /* @__PURE__ */ l.jsx(Qi, { data: Ui(o, c.dateFormat || "yyyy").filter((v) => c.enabled ? `${v.date}` === Ai(new Date(x[P]), c.dateFormat || "yyyy") : v), width: _t, height: Rt, colorDomain: o.filter(Wo).length === 0 ? [] : R || yi(o, "color", !0), colors: o.filter(Ho).length === 0 ? C ? typeof C == "string" ? [C] : [C[0]] : [E.primaryColors["blue-600"]] : typeof C == "string" ? [C] : C || E[b].categoricalColors.colors, xAxisTitle: xt, yAxisTitle: mt, refXValues: yt, refYValues: vt, showLabels: ct, radius: ut, leftMargin: pt, rightMargin: dt, topMargin: gt, bottomMargin: ht, tooltip: le, onSeriesMouseOver: re, highlightAreaSettings: W, showVoronoiTesselation: me, highlightedDataPoints: o.filter(Fo).length === 0 ? [] : Tt, showHighlightedDataPointsLabels: Ot, selectedColor: de, maxRadiusValue: L(N) ? Math.max(...o.map(Ro).filter(Io)) : N, maxXValue: L(Bt) ? Math.max(...o.map(Po).filter(Yo)) > 0 ? Math.max(...o.map(Xo).filter(To)) : 0 : Bt, minXValue: L(zt) ? Math.min(...o.map(So).filter(No)) > 0 ? 0 : Math.min(...o.map(Mo).filter(ko)) : zt, maxYValue: L(q) ? Math.max(...o.map(Do).filter(Vo)) > 0 ? Math.max(...o.map(jo).filter(Lo)) : 0 : q, minYValue: L(s) ? Math.min(...o.map(wo).filter($o)) > 0 ? 0 : Math.min(...o.map(Co).filter(Ao)) : s, onSeriesMouseClick: n, rtl: k === "he" || k === "ar", annotations: ue, customHighlightAreaSettings: A, regressionLine: Kt, resetSelectionOnDoubleClick: u, detailsOnClick: $, noOfXTicks: g, noOfYTicks: Le, labelColor: F, styles: h, classNames: p, animate: xe === !0 ? {
|
|
584
584
|
duration: 0.5,
|
|
585
585
|
once: !0,
|
|
586
586
|
amount: 0.5
|
|
@@ -588,12 +588,12 @@ function Ms(i) {
|
|
|
588
588
|
duration: 0,
|
|
589
589
|
once: !0,
|
|
590
590
|
amount: 0
|
|
591
|
-
}, dimmedOpacity: Pe, customLayers: Ve, useVoronoiInteraction: Qt, xNumberDisplayOptions: y, yNumberDisplayOptions:
|
|
591
|
+
}, dimmedOpacity: Pe, customLayers: Ve, useVoronoiInteraction: Qt, xNumberDisplayOptions: y, yNumberDisplayOptions: at, fallbackColor: ft }) : null, t[60] = xe, t[61] = ue, t[62] = ht, t[63] = p, t[64] = R, t[65] = C, t[66] = A, t[67] = Ve, t[68] = o, t[69] = $, t[70] = Pe, t[71] = ft, t[72] = W, t[73] = Tt, t[74] = P, t[75] = F, t[76] = k, t[77] = pt, t[78] = N, t[79] = Bt, t[80] = q, t[81] = zt, t[82] = s, t[83] = g, t[84] = Le, t[85] = n, t[86] = re, t[87] = ut, t[88] = yt, t[89] = vt, t[90] = Kt, t[91] = u, t[92] = dt, t[93] = de, t[94] = Ot, t[95] = ct, t[96] = me, t[97] = h, t[98] = Rt, t[99] = _t, t[100] = b, t[101] = c.dateFormat, t[102] = c.enabled, t[103] = le, t[104] = gt, t[105] = x, t[106] = Qt, t[107] = xt, t[108] = y, t[109] = mt, t[110] = at, t[111] = st) : st = t[111];
|
|
592
592
|
let kt;
|
|
593
|
-
t[112] !== Dt || t[113] !==
|
|
593
|
+
t[112] !== Dt || t[113] !== st ? (kt = /* @__PURE__ */ l.jsxs(Ji, { ref: $t, children: [
|
|
594
594
|
Dt,
|
|
595
|
-
|
|
596
|
-
] }), t[112] = Dt, t[113] =
|
|
595
|
+
st
|
|
596
|
+
] }), t[112] = Dt, t[113] = st, t[114] = kt) : kt = t[114];
|
|
597
597
|
let Mt;
|
|
598
598
|
t[115] !== p?.footnote || t[116] !== p?.source || t[117] !== G || t[118] !== Gt || t[119] !== h?.footnote || t[120] !== h?.source || t[121] !== O ? (Mt = Gt || G ? /* @__PURE__ */ l.jsx(Ei, { styles: {
|
|
599
599
|
footnote: h?.footnote,
|