@undp/data-viz 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.js +279 -272
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +298 -287
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +404 -397
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.js +42 -39
- package/dist/DonutChart.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
- package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
- package/dist/{GraphEl-CRrAlbcr.js → GraphEl-oZwZiTHI.js} +3 -2
- package/dist/GraphEl-oZwZiTHI.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +368 -361
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +327 -320
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +374 -367
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +385 -378
- package/dist/ParetoChart.js.map +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +34 -33
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +176 -169
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +366 -359
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +285 -278
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +243 -236
- package/dist/SlopeChart.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/index-Blvf-Q3U.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
- package/dist/index-D1RrKgK6.js +337 -0
- package/dist/index-D1RrKgK6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-BLMih7RN.cjs +0 -2
- package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
- package/dist/GraphEl-CRrAlbcr.js.map +0 -1
- package/dist/index-CF5hnGvG.cjs +0 -2
- package/dist/index-DPGq3eIL.js +0 -330
- package/dist/index-DPGq3eIL.js.map +0 -1
package/dist/DumbbellChart.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { o as
|
|
3
|
-
import { f as
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { g as
|
|
6
|
-
import { i as
|
|
7
|
-
import { n as
|
|
8
|
-
import { T as
|
|
1
|
+
import { c as Le, j as i, m as we } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { o as Ve } from "./index-BZQYSqar.js";
|
|
3
|
+
import { f as je, p as Ee } from "./parse-DlCRUFh_.js";
|
|
4
|
+
import { useRef as Ae, useState as It, useEffect as Ne } from "react";
|
|
5
|
+
import { g as Ge, N as He } from "./getSliderMarks-HIDJ0_Cd.js";
|
|
6
|
+
import { i as De } from "./index-Bwrro8-q.js";
|
|
7
|
+
import { n as Ie } from "./numberFormattingFunction-14YCbkN2.js";
|
|
8
|
+
import { T as Te } from "./Tooltip-Dj5eVppQ.js";
|
|
9
9
|
import { c as Wt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
10
|
-
import { A as
|
|
11
|
-
import { A as
|
|
12
|
-
import { X as
|
|
13
|
-
import { Y as
|
|
14
|
-
import { R as
|
|
15
|
-
import { X as
|
|
16
|
-
import { Y as
|
|
17
|
-
import { D as
|
|
18
|
-
import { a as
|
|
19
|
-
import { b as
|
|
20
|
-
import { u as
|
|
10
|
+
import { A as Se } from "./AxisTitle-jeI7am8o.js";
|
|
11
|
+
import { A as Re } from "./Axis-CRyfcLjc.js";
|
|
12
|
+
import { X as ze } from "./XAxesLabels-Dy8E1SEo.js";
|
|
13
|
+
import { Y as Fe } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
14
|
+
import { R as qe, a as Ue } from "./ReferenceLine-2XCwHXQ4.js";
|
|
15
|
+
import { X as Je } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
16
|
+
import { Y as Ke } from "./YAxesLabels-a57ZRv-0.js";
|
|
17
|
+
import { D as Pe } from "./DetailsModal-0Ry5nXiC.js";
|
|
18
|
+
import { a as We } from "./linear-BqltdMeF.js";
|
|
19
|
+
import { b as Be } from "./band-DHUZ2X7J.js";
|
|
20
|
+
import { u as Xe } from "./use-in-view-Cxa7y1TH.js";
|
|
21
21
|
import { m as Pt } from "./proxy-BxkFHwUw.js";
|
|
22
|
-
import { A as
|
|
23
|
-
import { e as
|
|
24
|
-
import { a as
|
|
25
|
-
import { GraphHeader as
|
|
26
|
-
import { P as
|
|
27
|
-
import { GraphFooter as
|
|
28
|
-
import { ColorLegendWithMouseOver as
|
|
29
|
-
import { E as
|
|
30
|
-
import { Colors as
|
|
31
|
-
function
|
|
32
|
-
const t =
|
|
33
|
-
data:
|
|
22
|
+
import { A as Ye } from "./index-BqfRwk1n.js";
|
|
23
|
+
import { e as $e } from "./ensureCompleteData-DH5c52Ub.js";
|
|
24
|
+
import { a as Qe, G as Ze } from "./GraphContainer-CRqzdKu2.js";
|
|
25
|
+
import { GraphHeader as _e } from "./GraphHeader.js";
|
|
26
|
+
import { P as ti, e as ei } from "./index-D491FEn1.js";
|
|
27
|
+
import { GraphFooter as ii } from "./GraphFooter.js";
|
|
28
|
+
import { ColorLegendWithMouseOver as ni } from "./ColorLegendWithMouseOver.js";
|
|
29
|
+
import { E as ai } from "./EmptyState-C7ZXkZWd.js";
|
|
30
|
+
import { Colors as oi } from "./Colors.js";
|
|
31
|
+
function si(e) {
|
|
32
|
+
const t = Le.c(146), {
|
|
33
|
+
data: d,
|
|
34
34
|
leftMargin: Jt,
|
|
35
|
-
rightMargin:
|
|
35
|
+
rightMargin: ae,
|
|
36
36
|
topMargin: Kt,
|
|
37
37
|
bottomMargin: Qt,
|
|
38
|
-
dotColors:
|
|
38
|
+
dotColors: C,
|
|
39
39
|
barPadding: Bt,
|
|
40
|
-
showTicks:
|
|
41
|
-
truncateBy:
|
|
40
|
+
showTicks: Lt,
|
|
41
|
+
truncateBy: Vt,
|
|
42
42
|
width: vt,
|
|
43
43
|
height: wt,
|
|
44
44
|
radius: ft,
|
|
@@ -46,23 +46,23 @@ function ai(e) {
|
|
|
46
46
|
tooltip: g,
|
|
47
47
|
onSeriesMouseOver: ot,
|
|
48
48
|
maxValue: jt,
|
|
49
|
-
minValue:
|
|
49
|
+
minValue: O,
|
|
50
50
|
onSeriesMouseClick: rt,
|
|
51
51
|
showValues: Zt,
|
|
52
52
|
suffix: pt,
|
|
53
53
|
prefix: P,
|
|
54
54
|
selectedColor: W,
|
|
55
|
-
arrowConnector:
|
|
55
|
+
arrowConnector: N,
|
|
56
56
|
connectorStrokeWidth: Xt,
|
|
57
57
|
maxBarThickness: kt,
|
|
58
58
|
minBarThickness: Nt,
|
|
59
59
|
resetSelectionOnDoubleClick: _t,
|
|
60
|
-
detailsOnClick:
|
|
60
|
+
detailsOnClick: $,
|
|
61
61
|
axisTitle: B,
|
|
62
62
|
noOfTicks: Yt,
|
|
63
63
|
valueColor: Dt,
|
|
64
|
-
styles:
|
|
65
|
-
classNames:
|
|
64
|
+
styles: a,
|
|
65
|
+
classNames: n,
|
|
66
66
|
labelOrder: y,
|
|
67
67
|
refValues: Tt,
|
|
68
68
|
animate: f,
|
|
@@ -70,13 +70,13 @@ function ai(e) {
|
|
|
70
70
|
customLayers: H,
|
|
71
71
|
highlightedDataPoints: X,
|
|
72
72
|
dimmedOpacity: ct
|
|
73
|
-
} = e, b = Jt === void 0 ? 20 : Jt, Et =
|
|
73
|
+
} = e, b = Jt === void 0 ? 20 : Jt, Et = ae === void 0 ? 20 : ae, Gt = Kt === void 0 ? 20 : Kt, St = Qt === void 0 ? 25 : Qt, te = Ae(null);
|
|
74
74
|
let Ht;
|
|
75
75
|
t[0] !== f.amount || t[1] !== f.once ? (Ht = {
|
|
76
76
|
once: f.once,
|
|
77
77
|
amount: f.amount
|
|
78
78
|
}, t[0] = f.amount, t[1] = f.once, t[2] = Ht) : Ht = t[2];
|
|
79
|
-
const R =
|
|
79
|
+
const R = Xe(te, Ht), z = B ? b + 30 : b;
|
|
80
80
|
let Rt;
|
|
81
81
|
t[3] !== St || t[4] !== Et || t[5] !== z || t[6] !== Gt ? (Rt = {
|
|
82
82
|
top: Gt,
|
|
@@ -86,8 +86,8 @@ function ai(e) {
|
|
|
86
86
|
}, t[3] = St, t[4] = Et, t[5] = z, t[6] = Gt, t[7] = Rt) : Rt = t[7];
|
|
87
87
|
const r = Rt, o = vt - r.left - r.right, st = wt - r.top - r.bottom, [lt, zt] = It(void 0), [ht, yt] = It(void 0), [qt, Mt] = It(void 0), [Ct, Ut] = It(void 0);
|
|
88
88
|
let Ot;
|
|
89
|
-
if (t[8] !==
|
|
90
|
-
const h = /* @__PURE__ */ new Set(), p =
|
|
89
|
+
if (t[8] !== d || t[9] !== y) {
|
|
90
|
+
const h = /* @__PURE__ */ new Set(), p = d.map((v, w) => {
|
|
91
91
|
const s = y ? `${v.label}` : `${w}`;
|
|
92
92
|
return h.add(s), {
|
|
93
93
|
...v,
|
|
@@ -95,58 +95,58 @@ function ai(e) {
|
|
|
95
95
|
};
|
|
96
96
|
}), V = y ? y.filter((v) => !h.has(v)) : [];
|
|
97
97
|
let ut;
|
|
98
|
-
t[11] !==
|
|
98
|
+
t[11] !== d[0] ? (ut = (v) => ({
|
|
99
99
|
id: v,
|
|
100
100
|
label: v,
|
|
101
|
-
x: Array(
|
|
102
|
-
}), t[11] =
|
|
101
|
+
x: Array(d[0].x.length).fill(null)
|
|
102
|
+
}), t[11] = d[0], t[12] = ut) : ut = t[12], Ot = [...p, ...V.map(ut)], t[8] = d, t[9] = y, t[10] = Ot;
|
|
103
103
|
} else
|
|
104
104
|
Ot = t[10];
|
|
105
105
|
const Y = Ot;
|
|
106
|
-
let
|
|
107
|
-
t[13] !== Y || t[14] !== y ? (
|
|
108
|
-
const Ft =
|
|
109
|
-
let gt, q, U, J, K, Q,
|
|
110
|
-
if (t[16] !== f || t[17] !==
|
|
111
|
-
const h =
|
|
112
|
-
q = Pt.svg,
|
|
113
|
-
const ut = h(
|
|
106
|
+
let A;
|
|
107
|
+
t[13] !== Y || t[14] !== y ? (A = y ?? Y.map(yi), t[13] = Y, t[14] = y, t[15] = A) : A = t[15];
|
|
108
|
+
const Ft = A;
|
|
109
|
+
let gt, q, U, J, K, Q, k, I, L, Z, _, tt, M, D, T;
|
|
110
|
+
if (t[16] !== f || t[17] !== N || t[18] !== B || t[19] !== Ft || t[20] !== Bt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.axis || t[24] !== n?.xAxis?.labels || t[25] !== n?.yAxis?.gridLines || t[26] !== n?.yAxis?.labels || t[27] !== n?.yAxis?.title || t[28] !== Xt || t[29] !== H || t[30] !== Y || t[31] !== $ || t[32] !== ct || t[33] !== C || t[34] !== st || t[35] !== o || t[36] !== wt || t[37] !== X || t[38] !== R || t[39] !== b || t[40] !== r.bottom || t[41] !== r.left || t[42] !== r.right || t[43] !== r.top || t[44] !== kt || t[45] !== jt || t[46] !== Nt || t[47] !== O || t[48] !== ht || t[49] !== Yt || t[50] !== rt || t[51] !== ot || t[52] !== x || t[53] !== P || t[54] !== ft || t[55] !== Tt || t[56] !== _t || t[57] !== W || t[58] !== At || t[59] !== Lt || t[60] !== Zt || t[61] !== a?.dataConnectors || t[62] !== a?.graphObjectValues || t[63] !== a?.xAxis?.axis || t[64] !== a?.xAxis?.labels || t[65] !== a?.yAxis?.gridLines || t[66] !== a?.yAxis?.labels || t[67] !== a?.yAxis?.title || t[68] !== pt || t[69] !== Vt || t[70] !== Dt || t[71] !== vt) {
|
|
111
|
+
const h = We().domain([O, jt]).range([st, 0]).nice(), p = Be().domain(Ft).range([0, Nt ? Math.max(o, Nt * Y.length) : kt ? Math.min(o, kt * Y.length) : o]).paddingInner(Bt), V = h.ticks(Yt);
|
|
112
|
+
q = Pt.svg, L = `${vt}px`, Z = `${wt}px`, _ = `0 0 ${vt} ${wt}`, tt = "ltr", M = te, t[87] !== N ? (D = N ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[87] = N, t[88] = D) : D = t[88], J = `translate(${r.left},${r.top})`;
|
|
113
|
+
const ut = h(O < 0 ? 0 : O), v = h(O < 0 ? 0 : O), w = O < 0 ? 0 : O;
|
|
114
114
|
let s;
|
|
115
|
-
t[89] !== x || t[90] !== P || t[91] !== pt || t[92] !== w ? (s =
|
|
116
|
-
const xt =
|
|
115
|
+
t[89] !== x || t[90] !== P || t[91] !== pt || t[92] !== w ? (s = Ie(w, "NA", x, P, pt), t[89] = x, t[90] = P, t[91] = pt, t[92] = w, t[93] = s) : s = t[93];
|
|
116
|
+
const xt = n?.xAxis?.axis, ie = n?.yAxis?.labels;
|
|
117
117
|
let bt;
|
|
118
118
|
t[94] !== xt || t[95] !== ie ? (bt = {
|
|
119
119
|
axis: xt,
|
|
120
120
|
label: ie
|
|
121
121
|
}, t[94] = xt, t[95] = ie, t[96] = bt) : bt = t[96];
|
|
122
|
-
const
|
|
122
|
+
const ne = a?.xAxis?.axis, G = a?.yAxis?.labels;
|
|
123
123
|
let c;
|
|
124
|
-
t[97] !==
|
|
125
|
-
axis:
|
|
124
|
+
t[97] !== ne || t[98] !== G ? (c = {
|
|
125
|
+
axis: ne,
|
|
126
126
|
label: G
|
|
127
|
-
}, t[97] =
|
|
127
|
+
}, t[97] = ne, t[98] = G, t[99] = c) : c = t[99], K = /* @__PURE__ */ i.jsx(Re, { y1: ut, y2: v, x1: 0 - b, x2: o + r.right, label: s, labelPos: {
|
|
128
128
|
x: 0 - b,
|
|
129
129
|
dx: 0,
|
|
130
130
|
dy: jt < 0 ? "1em" : -5,
|
|
131
|
-
y: h(
|
|
132
|
-
}, classNames: bt, styles: c }), Q =
|
|
133
|
-
gridLines: n?.yAxis?.gridLines,
|
|
134
|
-
labels: n?.yAxis?.labels
|
|
135
|
-
}, classNames: {
|
|
131
|
+
y: h(O < 0 ? 0 : O)
|
|
132
|
+
}, classNames: bt, styles: c }), Q = Lt ? /* @__PURE__ */ i.jsx(Fe, { values: V.filter(hi), y: V.filter(pi).map((u) => h(u)), x1: 0 - b, x2: o + r.right, styles: {
|
|
136
133
|
gridLines: a?.yAxis?.gridLines,
|
|
137
134
|
labels: a?.yAxis?.labels
|
|
135
|
+
}, classNames: {
|
|
136
|
+
gridLines: n?.yAxis?.gridLines,
|
|
137
|
+
labels: n?.yAxis?.labels
|
|
138
138
|
}, suffix: pt, prefix: P, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: x }) : null;
|
|
139
|
-
const F = 0 - b - 15, l = st / 2,
|
|
140
|
-
t[100] !== B || t[101] !== F || t[102] !== l || t[103] !==
|
|
139
|
+
const F = 0 - b - 15, l = st / 2, j = a?.yAxis?.title, se = n?.yAxis?.title;
|
|
140
|
+
t[100] !== B || t[101] !== F || t[102] !== l || t[103] !== j || t[104] !== se ? (k = /* @__PURE__ */ i.jsx(Se, { x: F, y: l, style: j, className: se, text: B, rotate90: !0 }), t[100] = B, t[101] = F, t[102] = l, t[103] = j, t[104] = se, t[105] = k) : k = t[105], t[106] !== H ? (I = H.filter(fi).map(xi), t[106] = H, t[107] = I) : I = t[107], gt = Ye, T = Y.map((u) => /* @__PURE__ */ i.jsxs(Pt.g, { className: "undp-viz-g-with-hover", variants: {
|
|
141
141
|
initial: {
|
|
142
|
-
x: p(`${
|
|
142
|
+
x: p(`${u.id}`) + p.bandwidth() / 2,
|
|
143
143
|
y: 0,
|
|
144
|
-
opacity: X.length !== 0 ? X.indexOf(
|
|
144
|
+
opacity: X.length !== 0 ? X.indexOf(u.label) !== -1 ? 0.85 : ct : 0.85
|
|
145
145
|
},
|
|
146
146
|
whileInView: {
|
|
147
|
-
x: p(`${
|
|
147
|
+
x: p(`${u.id}`) + p.bandwidth() / 2,
|
|
148
148
|
y: 0,
|
|
149
|
-
opacity: X.length !== 0 ? X.indexOf(
|
|
149
|
+
opacity: X.length !== 0 ? X.indexOf(u.label) !== -1 ? 0.85 : ct : 0.85,
|
|
150
150
|
transition: {
|
|
151
151
|
duration: f.duration
|
|
152
152
|
}
|
|
@@ -157,12 +157,12 @@ function ai(e) {
|
|
|
157
157
|
duration: f.duration
|
|
158
158
|
}
|
|
159
159
|
}, children: [
|
|
160
|
-
At ? /* @__PURE__ */ i.jsx(
|
|
160
|
+
At ? /* @__PURE__ */ i.jsx(ze, { value: `${u.label}`.length < Vt ? `${u.label}` : `${`${u.label}`.substring(0, Vt)}...`, y: st + 5, x: 0 - p.bandwidth() / 2, width: p.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "top", animate: f, isInView: R }) : null,
|
|
161
161
|
/* @__PURE__ */ i.jsx(Pt.line, { x1: 0, x2: 0, style: {
|
|
162
162
|
strokeWidth: Xt,
|
|
163
|
-
...
|
|
163
|
+
...a?.dataConnectors || {},
|
|
164
164
|
opacity: W ? 0.3 : 1
|
|
165
|
-
}, className:
|
|
165
|
+
}, className: we("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: N && u.x.indexOf(Math.min(...u.x.filter(ui))) === 0 ? "url(#arrow)" : "", markerStart: N && u.x.indexOf(Math.min(...u.x.filter(mi))) === u.x.length - 1 ? "url(#arrow)" : "", exit: {
|
|
166
166
|
opacity: 0,
|
|
167
167
|
transition: {
|
|
168
168
|
duration: f.duration
|
|
@@ -173,36 +173,36 @@ function ai(e) {
|
|
|
173
173
|
y2: 0
|
|
174
174
|
},
|
|
175
175
|
whileInView: {
|
|
176
|
-
y1: h(Math.min(...
|
|
177
|
-
y2: h(Math.max(...
|
|
176
|
+
y1: h(Math.min(...u.x.filter(di))) + ft,
|
|
177
|
+
y2: h(Math.max(...u.x.filter(ci))) - ft,
|
|
178
178
|
transition: {
|
|
179
179
|
duration: f.duration
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
}, initial: "initial", animate: R ? "whileInView" : "initial" }),
|
|
183
|
-
|
|
183
|
+
u.x.map((ee, at) => /* @__PURE__ */ i.jsx(Pt.g, { onMouseEnter: (oe) => {
|
|
184
184
|
zt({
|
|
185
|
-
...
|
|
186
|
-
xIndex:
|
|
185
|
+
...u,
|
|
186
|
+
xIndex: at
|
|
187
187
|
}), Ut(oe.clientY), Mt(oe.clientX), ot?.({
|
|
188
|
-
...
|
|
189
|
-
xIndex:
|
|
188
|
+
...u,
|
|
189
|
+
xIndex: at
|
|
190
190
|
});
|
|
191
191
|
}, onClick: () => {
|
|
192
|
-
(rt ||
|
|
193
|
-
...
|
|
194
|
-
xIndex:
|
|
192
|
+
(rt || $) && (De(ht, {
|
|
193
|
+
...u,
|
|
194
|
+
xIndex: at
|
|
195
195
|
}) && _t ? (yt(void 0), rt?.(void 0)) : (yt({
|
|
196
|
-
...
|
|
197
|
-
xIndex:
|
|
196
|
+
...u,
|
|
197
|
+
xIndex: at
|
|
198
198
|
}), rt && rt({
|
|
199
|
-
...
|
|
200
|
-
xIndex:
|
|
199
|
+
...u,
|
|
200
|
+
xIndex: at
|
|
201
201
|
})));
|
|
202
202
|
}, onMouseMove: (oe) => {
|
|
203
203
|
zt({
|
|
204
|
-
...
|
|
205
|
-
xIndex:
|
|
204
|
+
...u,
|
|
205
|
+
xIndex: at
|
|
206
206
|
}), Ut(oe.clientY), Mt(oe.clientX);
|
|
207
207
|
}, onMouseLeave: () => {
|
|
208
208
|
zt(void 0), Mt(void 0), Ut(void 0), ot?.(void 0);
|
|
@@ -213,19 +213,19 @@ function ai(e) {
|
|
|
213
213
|
}
|
|
214
214
|
}, variants: {
|
|
215
215
|
initial: {
|
|
216
|
-
opacity: W ?
|
|
216
|
+
opacity: W ? C[at] === W ? 1 : 0.3 : 1
|
|
217
217
|
},
|
|
218
218
|
whileInView: {
|
|
219
|
-
opacity: W ?
|
|
219
|
+
opacity: W ? C[at] === W ? 1 : 0.3 : 1,
|
|
220
220
|
transition: {
|
|
221
221
|
duration: f.duration
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
}, initial: "initial", animate: R ? "whileInView" : "initial", children: Wt(ee) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
225
225
|
/* @__PURE__ */ i.jsx(Pt.circle, { cx: 0, r: ft, style: {
|
|
226
|
-
fill:
|
|
226
|
+
fill: C[at],
|
|
227
227
|
fillOpacity: 0.85,
|
|
228
|
-
stroke:
|
|
228
|
+
stroke: C[at],
|
|
229
229
|
strokeWidth: 1
|
|
230
230
|
}, exit: {
|
|
231
231
|
opacity: 0,
|
|
@@ -247,8 +247,8 @@ function ai(e) {
|
|
|
247
247
|
}, initial: "initial", animate: R ? "whileInView" : "initial" }),
|
|
248
248
|
Zt ? /* @__PURE__ */ i.jsx(Pt.text, { x: 0, style: {
|
|
249
249
|
textAnchor: "start",
|
|
250
|
-
...
|
|
251
|
-
}, className:
|
|
250
|
+
...a?.graphObjectValues || {}
|
|
251
|
+
}, className: we("graph-value text-sm font-bold", Wt(ee) ? "opacity-0" : "opacity-100", n?.graphObjectValues), dx: ft + 3, dy: "0.33em", exit: {
|
|
252
252
|
opacity: 0,
|
|
253
253
|
transition: {
|
|
254
254
|
duration: f.duration
|
|
@@ -257,97 +257,97 @@ function ai(e) {
|
|
|
257
257
|
initial: {
|
|
258
258
|
y: h(0),
|
|
259
259
|
opacity: 0,
|
|
260
|
-
fill: Dt ||
|
|
260
|
+
fill: Dt || C[at]
|
|
261
261
|
},
|
|
262
262
|
whileInView: {
|
|
263
263
|
y: h(ee || 0),
|
|
264
|
-
fill: Dt ||
|
|
264
|
+
fill: Dt || C[at],
|
|
265
265
|
opacity: 1,
|
|
266
266
|
transition: {
|
|
267
267
|
duration: f.duration
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
}, initial: "initial", animate: R ? "whileInView" : "initial", children:
|
|
271
|
-
] }) },
|
|
272
|
-
] },
|
|
270
|
+
}, initial: "initial", animate: R ? "whileInView" : "initial", children: Ie(ee, "NA", x, P, pt) }) : null
|
|
271
|
+
] }) }, at))
|
|
272
|
+
] }, u.label)), U = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((u, ee) => /* @__PURE__ */ i.jsx(Ue, { text: u.text, color: u.color, y: h(u.value), x1: 0 - b, x2: o + r.right, classNames: u.classNames, styles: u.styles, animate: f, isInView: R }, ee)) }) : null, t[16] = f, t[17] = N, t[18] = B, t[19] = Ft, t[20] = Bt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.axis, t[24] = n?.xAxis?.labels, t[25] = n?.yAxis?.gridLines, t[26] = n?.yAxis?.labels, t[27] = n?.yAxis?.title, t[28] = Xt, t[29] = H, t[30] = Y, t[31] = $, t[32] = ct, t[33] = C, t[34] = st, t[35] = o, t[36] = wt, t[37] = X, t[38] = R, t[39] = b, t[40] = r.bottom, t[41] = r.left, t[42] = r.right, t[43] = r.top, t[44] = kt, t[45] = jt, t[46] = Nt, t[47] = O, t[48] = ht, t[49] = Yt, t[50] = rt, t[51] = ot, t[52] = x, t[53] = P, t[54] = ft, t[55] = Tt, t[56] = _t, t[57] = W, t[58] = At, t[59] = Lt, t[60] = Zt, t[61] = a?.dataConnectors, t[62] = a?.graphObjectValues, t[63] = a?.xAxis?.axis, t[64] = a?.xAxis?.labels, t[65] = a?.yAxis?.gridLines, t[66] = a?.yAxis?.labels, t[67] = a?.yAxis?.title, t[68] = pt, t[69] = Vt, t[70] = Dt, t[71] = vt, t[72] = gt, t[73] = q, t[74] = U, t[75] = J, t[76] = K, t[77] = Q, t[78] = k, t[79] = I, t[80] = L, t[81] = Z, t[82] = _, t[83] = tt, t[84] = M, t[85] = D, t[86] = T;
|
|
273
273
|
} else
|
|
274
|
-
gt = t[72], q = t[73], U = t[74], J = t[75], K = t[76], Q = t[77],
|
|
274
|
+
gt = t[72], q = t[73], U = t[74], J = t[75], K = t[76], Q = t[77], k = t[78], I = t[79], L = t[80], Z = t[81], _ = t[82], tt = t[83], M = t[84], D = t[85], T = t[86];
|
|
275
275
|
let et;
|
|
276
276
|
t[108] !== gt || t[109] !== U || t[110] !== T ? (et = /* @__PURE__ */ i.jsxs(gt, { children: [
|
|
277
277
|
T,
|
|
278
278
|
U
|
|
279
279
|
] }), t[108] = gt, t[109] = U, t[110] = T, t[111] = et) : et = t[111];
|
|
280
280
|
let it;
|
|
281
|
-
t[112] !== H ? (it = H.filter(
|
|
281
|
+
t[112] !== H ? (it = H.filter(ri).map(li), t[112] = H, t[113] = it) : it = t[113];
|
|
282
282
|
let dt;
|
|
283
|
-
t[114] !== J || t[115] !== K || t[116] !== Q || t[117] !==
|
|
283
|
+
t[114] !== J || t[115] !== K || t[116] !== Q || t[117] !== k || t[118] !== I || t[119] !== et || t[120] !== it ? (dt = /* @__PURE__ */ i.jsxs("g", { transform: J, children: [
|
|
284
284
|
K,
|
|
285
285
|
Q,
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
k,
|
|
287
|
+
I,
|
|
288
288
|
et,
|
|
289
289
|
it
|
|
290
|
-
] }), t[114] = J, t[115] = K, t[116] = Q, t[117] =
|
|
290
|
+
] }), t[114] = J, t[115] = K, t[116] = Q, t[117] = k, t[118] = I, t[119] = et, t[120] = it, t[121] = dt) : dt = t[121];
|
|
291
291
|
let S;
|
|
292
|
-
t[122] !== q || t[123] !==
|
|
292
|
+
t[122] !== q || t[123] !== L || t[124] !== Z || t[125] !== _ || t[126] !== tt || t[127] !== M || t[128] !== D || t[129] !== dt ? (S = /* @__PURE__ */ i.jsxs(q, { width: L, height: Z, viewBox: _, direction: tt, ref: M, children: [
|
|
293
293
|
D,
|
|
294
294
|
dt
|
|
295
|
-
] }), t[122] = q, t[123] =
|
|
295
|
+
] }), t[122] = q, t[123] = L, t[124] = Z, t[125] = _, t[126] = tt, t[127] = M, t[128] = D, t[129] = dt, t[130] = S) : S = t[130];
|
|
296
296
|
let E;
|
|
297
|
-
t[131] !==
|
|
298
|
-
let
|
|
299
|
-
t[138] !==
|
|
297
|
+
t[131] !== n?.tooltip || t[132] !== qt || t[133] !== Ct || t[134] !== lt || t[135] !== a?.tooltip || t[136] !== g ? (E = lt && g && qt && Ct ? /* @__PURE__ */ i.jsx(Te, { data: lt, body: g, xPos: qt, yPos: Ct, backgroundStyle: a?.tooltip, className: n?.tooltip }) : null, t[131] = n?.tooltip, t[132] = qt, t[133] = Ct, t[134] = lt, t[135] = a?.tooltip, t[136] = g, t[137] = E) : E = t[137];
|
|
298
|
+
let nt;
|
|
299
|
+
t[138] !== n?.modal || t[139] !== $ || t[140] !== ht ? (nt = $ && ht !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: $, data: ht, setData: yt, className: n?.modal }) : null, t[138] = n?.modal, t[139] = $, t[140] = ht, t[141] = nt) : nt = t[141];
|
|
300
300
|
let mt;
|
|
301
|
-
return t[142] !== S || t[143] !== E || t[144] !==
|
|
301
|
+
return t[142] !== S || t[143] !== E || t[144] !== nt ? (mt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
302
302
|
S,
|
|
303
303
|
E,
|
|
304
|
-
|
|
305
|
-
] }), t[142] = S, t[143] = E, t[144] =
|
|
304
|
+
nt
|
|
305
|
+
] }), t[142] = S, t[143] = E, t[144] = nt, t[145] = mt) : mt = t[145], mt;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function li(e) {
|
|
308
308
|
return e.layer;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function ri(e) {
|
|
311
311
|
return e.position === "after";
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function ci(e) {
|
|
314
314
|
return e !== null;
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function di(e) {
|
|
317
317
|
return e !== null;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function mi(e) {
|
|
320
320
|
return e !== null;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function ui(e) {
|
|
323
323
|
return e !== null;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function xi(e) {
|
|
326
326
|
return e.layer;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function fi(e) {
|
|
329
329
|
return e.position === "before";
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function pi(e) {
|
|
332
332
|
return e !== 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function hi(e) {
|
|
335
335
|
return e !== 0;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function yi(e) {
|
|
338
338
|
return `${e.id}`;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
const t =
|
|
342
|
-
data:
|
|
340
|
+
function gi(e) {
|
|
341
|
+
const t = Le.c(139), {
|
|
342
|
+
data: d,
|
|
343
343
|
leftMargin: Jt,
|
|
344
|
-
rightMargin:
|
|
344
|
+
rightMargin: ae,
|
|
345
345
|
topMargin: Kt,
|
|
346
346
|
bottomMargin: Qt,
|
|
347
|
-
dotColors:
|
|
347
|
+
dotColors: C,
|
|
348
348
|
suffix: Bt,
|
|
349
|
-
prefix:
|
|
350
|
-
barPadding:
|
|
349
|
+
prefix: Lt,
|
|
350
|
+
barPadding: Vt,
|
|
351
351
|
showValues: vt,
|
|
352
352
|
showTicks: wt,
|
|
353
353
|
truncateBy: ft,
|
|
@@ -355,23 +355,23 @@ function pi(e) {
|
|
|
355
355
|
height: g,
|
|
356
356
|
radius: ot,
|
|
357
357
|
showLabels: jt,
|
|
358
|
-
tooltip:
|
|
358
|
+
tooltip: O,
|
|
359
359
|
onSeriesMouseOver: rt,
|
|
360
360
|
maxValue: Zt,
|
|
361
361
|
minValue: pt,
|
|
362
362
|
onSeriesMouseClick: P,
|
|
363
363
|
selectedColor: W,
|
|
364
|
-
arrowConnector:
|
|
364
|
+
arrowConnector: N,
|
|
365
365
|
connectorStrokeWidth: Xt,
|
|
366
366
|
maxBarThickness: kt,
|
|
367
367
|
minBarThickness: Nt,
|
|
368
368
|
resetSelectionOnDoubleClick: _t,
|
|
369
|
-
detailsOnClick:
|
|
369
|
+
detailsOnClick: $,
|
|
370
370
|
axisTitle: B,
|
|
371
371
|
noOfTicks: Yt,
|
|
372
372
|
valueColor: Dt,
|
|
373
|
-
styles:
|
|
374
|
-
classNames:
|
|
373
|
+
styles: a,
|
|
374
|
+
classNames: n,
|
|
375
375
|
labelOrder: y,
|
|
376
376
|
refValues: Tt,
|
|
377
377
|
rtl: f,
|
|
@@ -380,13 +380,13 @@ function pi(e) {
|
|
|
380
380
|
customLayers: X,
|
|
381
381
|
highlightedDataPoints: ct,
|
|
382
382
|
dimmedOpacity: b
|
|
383
|
-
} = e, Et = Jt === void 0 ? 100 : Jt, Gt =
|
|
383
|
+
} = e, Et = Jt === void 0 ? 100 : Jt, Gt = ae === void 0 ? 40 : ae, St = Kt === void 0 ? 20 : Kt, te = Qt === void 0 ? 10 : Qt, Ht = Ae(null);
|
|
384
384
|
let R;
|
|
385
385
|
t[0] !== x.amount || t[1] !== x.once ? (R = {
|
|
386
386
|
once: x.once,
|
|
387
387
|
amount: x.amount
|
|
388
388
|
}, t[0] = x.amount, t[1] = x.once, t[2] = R) : R = t[2];
|
|
389
|
-
const z =
|
|
389
|
+
const z = Xe(Ht, R), Rt = B ? St + 25 : St;
|
|
390
390
|
let r;
|
|
391
391
|
t[3] !== te || t[4] !== Et || t[5] !== Gt || t[6] !== Rt ? (r = {
|
|
392
392
|
top: Rt,
|
|
@@ -396,8 +396,8 @@ function pi(e) {
|
|
|
396
396
|
}, t[3] = te, t[4] = Et, t[5] = Gt, t[6] = Rt, t[7] = r) : r = t[7];
|
|
397
397
|
const o = r, st = At - o.left - o.right, lt = g - o.top - o.bottom, [zt, ht] = It(void 0), [yt, qt] = It(void 0), [Mt, Ct] = It(void 0), [Ut, Ot] = It(void 0);
|
|
398
398
|
let Y;
|
|
399
|
-
if (t[8] !==
|
|
400
|
-
const p = /* @__PURE__ */ new Set(), V =
|
|
399
|
+
if (t[8] !== d || t[9] !== y) {
|
|
400
|
+
const p = /* @__PURE__ */ new Set(), V = d.map((w, s) => {
|
|
401
401
|
const xt = y ? `${w.label}` : `${s}`;
|
|
402
402
|
return p.add(xt), {
|
|
403
403
|
...w,
|
|
@@ -405,39 +405,39 @@ function pi(e) {
|
|
|
405
405
|
};
|
|
406
406
|
}), ut = y ? y.filter((w) => !p.has(w)) : [];
|
|
407
407
|
let v;
|
|
408
|
-
t[11] !==
|
|
408
|
+
t[11] !== d[0] ? (v = (w) => ({
|
|
409
409
|
id: w,
|
|
410
410
|
label: w,
|
|
411
|
-
x: Array(
|
|
412
|
-
}), t[11] =
|
|
411
|
+
x: Array(d[0].x.length).fill(null)
|
|
412
|
+
}), t[11] = d[0], t[12] = v) : v = t[12], Y = [...V, ...ut.map(v)], t[8] = d, t[9] = y, t[10] = Y;
|
|
413
413
|
} else
|
|
414
414
|
Y = t[10];
|
|
415
|
-
const
|
|
415
|
+
const A = Y;
|
|
416
416
|
let Ft;
|
|
417
|
-
t[13] !==
|
|
417
|
+
t[13] !== A || t[14] !== y ? (Ft = y ?? A.map(Li), t[13] = A, t[14] = y, t[15] = Ft) : Ft = t[15];
|
|
418
418
|
const gt = Ft;
|
|
419
|
-
let q, U, J, K, Q,
|
|
420
|
-
if (t[16] !== x || t[17] !==
|
|
421
|
-
const p =
|
|
422
|
-
U = Pt.svg, Z = `${At}px`, _ = `${g}px`, tt = `0 0 ${At} ${g}`,
|
|
423
|
-
gridLines: n?.xAxis?.gridLines,
|
|
424
|
-
labels: n?.xAxis?.labels
|
|
425
|
-
}, classNames: {
|
|
419
|
+
let q, U, J, K, Q, k, I, L, Z, _, tt, M, D, T, et;
|
|
420
|
+
if (t[16] !== x || t[17] !== N || t[18] !== B || t[19] !== gt || t[20] !== Vt || t[21] !== n?.dataConnectors || t[22] !== n?.graphObjectValues || t[23] !== n?.xAxis?.gridLines || t[24] !== n?.xAxis?.labels || t[25] !== n?.xAxis?.title || t[26] !== n?.yAxis?.gridLines || t[27] !== n?.yAxis?.labels || t[28] !== Xt || t[29] !== X || t[30] !== A || t[31] !== $ || t[32] !== b || t[33] !== C || t[34] !== lt || t[35] !== st || t[36] !== g || t[37] !== ct || t[38] !== z || t[39] !== o.bottom || t[40] !== o.left || t[41] !== o.top || t[42] !== kt || t[43] !== Zt || t[44] !== Nt || t[45] !== pt || t[46] !== yt || t[47] !== Yt || t[48] !== P || t[49] !== rt || t[50] !== H || t[51] !== Lt || t[52] !== ot || t[53] !== Tt || t[54] !== _t || t[55] !== f || t[56] !== W || t[57] !== jt || t[58] !== wt || t[59] !== vt || t[60] !== a?.dataConnectors || t[61] !== a?.graphObjectValues || t[62] !== a?.xAxis?.gridLines || t[63] !== a?.xAxis?.labels || t[64] !== a?.xAxis?.title || t[65] !== a?.yAxis?.gridLines || t[66] !== a?.yAxis?.labels || t[67] !== Bt || t[68] !== St || t[69] !== ft || t[70] !== Dt || t[71] !== At) {
|
|
421
|
+
const p = We().domain([pt, Zt]).range([0, st]).nice(), V = Be().domain(gt).range([0, Nt ? Math.max(lt, Nt * A.length) : kt ? Math.min(lt, kt * A.length) : lt]).paddingInner(Vt), ut = p.ticks(Yt);
|
|
422
|
+
U = Pt.svg, Z = `${At}px`, _ = `${g}px`, tt = `0 0 ${At} ${g}`, M = "ltr", D = Ht, t[87] !== N ? (T = N ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[87] = N, t[88] = T) : T = t[88], K = `translate(${o.left},${o.top})`, Q = wt ? /* @__PURE__ */ i.jsx(Je, { values: ut.filter(Ii), x: ut.filter($i).map((c) => p(c)), y1: 0 - St, y2: lt + o.bottom, styles: {
|
|
426
423
|
gridLines: a?.xAxis?.gridLines,
|
|
427
424
|
labels: a?.xAxis?.labels
|
|
428
|
-
},
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
425
|
+
}, classNames: {
|
|
426
|
+
gridLines: n?.xAxis?.gridLines,
|
|
427
|
+
labels: n?.xAxis?.labels
|
|
428
|
+
}, suffix: Bt, prefix: Lt, labelType: "secondary", showGridLines: !0, precision: H }) : null;
|
|
429
|
+
const v = st / 2, w = 0 - o.top + 15, s = a?.xAxis?.title, xt = n?.xAxis?.title;
|
|
430
|
+
t[89] !== B || t[90] !== v || t[91] !== w || t[92] !== s || t[93] !== xt ? (k = /* @__PURE__ */ i.jsx(Se, { x: v, y: w, style: s, className: xt, text: B }), t[89] = B, t[90] = v, t[91] = w, t[92] = s, t[93] = xt, t[94] = k) : k = t[94];
|
|
431
|
+
const ie = a?.yAxis?.gridLines;
|
|
432
432
|
let bt;
|
|
433
433
|
t[95] !== ie ? (bt = {
|
|
434
434
|
gridLines: ie
|
|
435
435
|
}, t[95] = ie, t[96] = bt) : bt = t[96];
|
|
436
|
-
const
|
|
436
|
+
const ne = n?.yAxis?.gridLines;
|
|
437
437
|
let G;
|
|
438
|
-
t[97] !==
|
|
439
|
-
gridLines:
|
|
440
|
-
}, t[97] =
|
|
438
|
+
t[97] !== ne ? (G = {
|
|
439
|
+
gridLines: ne
|
|
440
|
+
}, t[97] = ne, t[98] = G) : G = t[98], I = /* @__PURE__ */ i.jsx(Fe, { y: A.map((c) => V(`${c.id}`) + V.bandwidth() / 2), x1: 0, x2: st, styles: bt, classNames: G, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: H }), t[99] !== X ? (L = X.filter(Oi).map(Ci), t[99] = X, t[100] = L) : L = t[100], q = Ye, et = A.map((c) => /* @__PURE__ */ i.jsxs(Pt.g, { className: "undp-viz-g-with-hover", variants: {
|
|
441
441
|
initial: {
|
|
442
442
|
x: 0,
|
|
443
443
|
y: V(`${c.id}`) + V.bandwidth() / 2,
|
|
@@ -457,12 +457,12 @@ function pi(e) {
|
|
|
457
457
|
duration: x.duration
|
|
458
458
|
}
|
|
459
459
|
}, children: [
|
|
460
|
-
jt ? /* @__PURE__ */ i.jsx(
|
|
460
|
+
jt ? /* @__PURE__ */ i.jsx(Ke, { value: `${c.label}`.length < ft ? `${c.label}` : `${`${c.label}`.substring(0, ft)}...`, y: 0 - V.bandwidth() / 2, x: 0 - o.left, width: o.left, height: V.bandwidth(), alignment: "right", style: a?.yAxis?.labels, className: n?.yAxis?.labels, animate: x, isInView: z }) : null,
|
|
461
461
|
/* @__PURE__ */ i.jsx(Pt.line, { y1: 0, y2: 0, style: {
|
|
462
462
|
strokeWidth: Xt,
|
|
463
|
-
...
|
|
463
|
+
...a?.dataConnectors || {},
|
|
464
464
|
opacity: W ? 0.3 : 1
|
|
465
|
-
}, className:
|
|
465
|
+
}, className: we("stroke-primary-gray-600 dark:stroke-primary-gray-300", n?.dataConnectors), markerEnd: N && c.x.indexOf(Math.min(...c.x.filter(Mi))) === 0 ? "url(#arrow)" : "", markerStart: N && c.x.indexOf(Math.min(...c.x.filter(ki))) === c.x.length - 1 ? "url(#arrow)" : "", exit: {
|
|
466
466
|
opacity: 0,
|
|
467
467
|
transition: {
|
|
468
468
|
duration: x.duration
|
|
@@ -473,23 +473,23 @@ function pi(e) {
|
|
|
473
473
|
x2: 0
|
|
474
474
|
},
|
|
475
475
|
whileInView: {
|
|
476
|
-
x1: p(Math.min(...c.x.filter(
|
|
477
|
-
x2: p(Math.max(...c.x.filter(
|
|
476
|
+
x1: p(Math.min(...c.x.filter(Ai))) + ot,
|
|
477
|
+
x2: p(Math.max(...c.x.filter(wi))) - ot,
|
|
478
478
|
transition: {
|
|
479
479
|
duration: x.duration
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
}, initial: "initial", animate: z ? "whileInView" : "initial" }),
|
|
483
|
-
c.x.map((F, l) => /* @__PURE__ */ i.jsx(Pt.g, { onMouseEnter: (
|
|
483
|
+
c.x.map((F, l) => /* @__PURE__ */ i.jsx(Pt.g, { onMouseEnter: (j) => {
|
|
484
484
|
ht({
|
|
485
485
|
...c,
|
|
486
486
|
xIndex: l
|
|
487
|
-
}), Ot(
|
|
487
|
+
}), Ot(j.clientY), Ct(j.clientX), rt?.({
|
|
488
488
|
...c,
|
|
489
489
|
xIndex: l
|
|
490
490
|
});
|
|
491
491
|
}, onClick: () => {
|
|
492
|
-
(P ||
|
|
492
|
+
(P || $) && (De(yt, {
|
|
493
493
|
...c,
|
|
494
494
|
xIndex: l
|
|
495
495
|
}) && _t ? (qt(void 0), P?.(void 0)) : (qt({
|
|
@@ -499,11 +499,11 @@ function pi(e) {
|
|
|
499
499
|
...c,
|
|
500
500
|
xIndex: l
|
|
501
501
|
})));
|
|
502
|
-
}, onMouseMove: (
|
|
502
|
+
}, onMouseMove: (j) => {
|
|
503
503
|
ht({
|
|
504
504
|
...c,
|
|
505
505
|
xIndex: l
|
|
506
|
-
}), Ot(
|
|
506
|
+
}), Ot(j.clientY), Ct(j.clientX);
|
|
507
507
|
}, onMouseLeave: () => {
|
|
508
508
|
ht(void 0), Ct(void 0), Ot(void 0), rt?.(void 0);
|
|
509
509
|
}, exit: {
|
|
@@ -513,19 +513,19 @@ function pi(e) {
|
|
|
513
513
|
}
|
|
514
514
|
}, variants: {
|
|
515
515
|
initial: {
|
|
516
|
-
opacity: W ?
|
|
516
|
+
opacity: W ? C[l] === W ? 1 : 0.3 : 1
|
|
517
517
|
},
|
|
518
518
|
whileInView: {
|
|
519
|
-
opacity: W ?
|
|
519
|
+
opacity: W ? C[l] === W ? 1 : 0.3 : 1,
|
|
520
520
|
transition: {
|
|
521
521
|
duration: x.duration
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
}, initial: "initial", animate: z ? "whileInView" : "initial", children: Wt(F) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
525
525
|
/* @__PURE__ */ i.jsx(Pt.circle, { cy: 0, r: ot, style: {
|
|
526
|
-
fill:
|
|
526
|
+
fill: C[l],
|
|
527
527
|
fillOpacity: 0.85,
|
|
528
|
-
stroke:
|
|
528
|
+
stroke: C[l],
|
|
529
529
|
strokeWidth: 1,
|
|
530
530
|
opacity: Wt(F) ? 0 : 1
|
|
531
531
|
}, exit: {
|
|
@@ -548,8 +548,8 @@ function pi(e) {
|
|
|
548
548
|
}, initial: "initial", animate: z ? "whileInView" : "initial" }),
|
|
549
549
|
vt ? /* @__PURE__ */ i.jsx(Pt.text, { y: 0, style: {
|
|
550
550
|
textAnchor: "middle",
|
|
551
|
-
...
|
|
552
|
-
}, dx: 0, dy: 0 - ot - 3, className:
|
|
551
|
+
...a?.graphObjectValues || {}
|
|
552
|
+
}, dx: 0, dy: 0 - ot - 3, className: we("graph-value text-sm font-bold", Wt(F) ? "0opacity-0" : "opacity-100", n?.graphObjectValues), exit: {
|
|
553
553
|
opacity: 0,
|
|
554
554
|
transition: {
|
|
555
555
|
duration: x.duration
|
|
@@ -558,97 +558,97 @@ function pi(e) {
|
|
|
558
558
|
initial: {
|
|
559
559
|
x: p(0),
|
|
560
560
|
opacity: 0,
|
|
561
|
-
fill: Dt ||
|
|
561
|
+
fill: Dt || C[l]
|
|
562
562
|
},
|
|
563
563
|
whileInView: {
|
|
564
564
|
x: p(F || 0),
|
|
565
|
-
fill: Dt ||
|
|
565
|
+
fill: Dt || C[l],
|
|
566
566
|
opacity: 1,
|
|
567
567
|
transition: {
|
|
568
568
|
duration: x.duration
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
}, initial: "initial", animate: z ? "whileInView" : "initial", children:
|
|
571
|
+
}, initial: "initial", animate: z ? "whileInView" : "initial", children: Ie(F, "NA", H, Lt, Bt) }) : null
|
|
572
572
|
] }) }, l))
|
|
573
|
-
] }, c.label)), J = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((c, F) => /* @__PURE__ */ i.jsx(
|
|
573
|
+
] }, c.label)), J = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((c, F) => /* @__PURE__ */ i.jsx(qe, { text: c.text, color: c.color, x: p(c.value), y1: 0 - o.top, y2: lt + o.bottom, textSide: p(c.value) > st * 0.75 || f ? "left" : "right", classNames: c.classNames, styles: c.styles, animate: x, isInView: z }, F)) }) : null, t[16] = x, t[17] = N, t[18] = B, t[19] = gt, t[20] = Vt, t[21] = n?.dataConnectors, t[22] = n?.graphObjectValues, t[23] = n?.xAxis?.gridLines, t[24] = n?.xAxis?.labels, t[25] = n?.xAxis?.title, t[26] = n?.yAxis?.gridLines, t[27] = n?.yAxis?.labels, t[28] = Xt, t[29] = X, t[30] = A, t[31] = $, t[32] = b, t[33] = C, t[34] = lt, t[35] = st, t[36] = g, t[37] = ct, t[38] = z, t[39] = o.bottom, t[40] = o.left, t[41] = o.top, t[42] = kt, t[43] = Zt, t[44] = Nt, t[45] = pt, t[46] = yt, t[47] = Yt, t[48] = P, t[49] = rt, t[50] = H, t[51] = Lt, t[52] = ot, t[53] = Tt, t[54] = _t, t[55] = f, t[56] = W, t[57] = jt, t[58] = wt, t[59] = vt, t[60] = a?.dataConnectors, t[61] = a?.graphObjectValues, t[62] = a?.xAxis?.gridLines, t[63] = a?.xAxis?.labels, t[64] = a?.xAxis?.title, t[65] = a?.yAxis?.gridLines, t[66] = a?.yAxis?.labels, t[67] = Bt, t[68] = St, t[69] = ft, t[70] = Dt, t[71] = At, t[72] = q, t[73] = U, t[74] = J, t[75] = K, t[76] = Q, t[77] = k, t[78] = I, t[79] = L, t[80] = Z, t[81] = _, t[82] = tt, t[83] = M, t[84] = D, t[85] = T, t[86] = et;
|
|
574
574
|
} else
|
|
575
|
-
q = t[72], U = t[73], J = t[74], K = t[75], Q = t[76],
|
|
575
|
+
q = t[72], U = t[73], J = t[74], K = t[75], Q = t[76], k = t[77], I = t[78], L = t[79], Z = t[80], _ = t[81], tt = t[82], M = t[83], D = t[84], T = t[85], et = t[86];
|
|
576
576
|
let it;
|
|
577
577
|
t[101] !== q || t[102] !== J || t[103] !== et ? (it = /* @__PURE__ */ i.jsxs(q, { children: [
|
|
578
578
|
et,
|
|
579
579
|
J
|
|
580
580
|
] }), t[101] = q, t[102] = J, t[103] = et, t[104] = it) : it = t[104];
|
|
581
581
|
let dt;
|
|
582
|
-
t[105] !== X ? (dt = X.filter(
|
|
582
|
+
t[105] !== X ? (dt = X.filter(vi).map(bi), t[105] = X, t[106] = dt) : dt = t[106];
|
|
583
583
|
let S;
|
|
584
|
-
t[107] !== K || t[108] !== Q || t[109] !==
|
|
584
|
+
t[107] !== K || t[108] !== Q || t[109] !== k || t[110] !== I || t[111] !== L || t[112] !== it || t[113] !== dt ? (S = /* @__PURE__ */ i.jsxs("g", { transform: K, children: [
|
|
585
585
|
Q,
|
|
586
|
-
|
|
587
|
-
$,
|
|
586
|
+
k,
|
|
588
587
|
I,
|
|
588
|
+
L,
|
|
589
589
|
it,
|
|
590
590
|
dt
|
|
591
|
-
] }), t[107] = K, t[108] = Q, t[109] =
|
|
591
|
+
] }), t[107] = K, t[108] = Q, t[109] = k, t[110] = I, t[111] = L, t[112] = it, t[113] = dt, t[114] = S) : S = t[114];
|
|
592
592
|
let E;
|
|
593
|
-
t[115] !== U || t[116] !== Z || t[117] !== _ || t[118] !== tt || t[119] !==
|
|
593
|
+
t[115] !== U || t[116] !== Z || t[117] !== _ || t[118] !== tt || t[119] !== M || t[120] !== D || t[121] !== T || t[122] !== S ? (E = /* @__PURE__ */ i.jsxs(U, { width: Z, height: _, viewBox: tt, direction: M, ref: D, children: [
|
|
594
594
|
T,
|
|
595
595
|
S
|
|
596
|
-
] }), t[115] = U, t[116] = Z, t[117] = _, t[118] = tt, t[119] =
|
|
597
|
-
let
|
|
598
|
-
t[124] !==
|
|
596
|
+
] }), t[115] = U, t[116] = Z, t[117] = _, t[118] = tt, t[119] = M, t[120] = D, t[121] = T, t[122] = S, t[123] = E) : E = t[123];
|
|
597
|
+
let nt;
|
|
598
|
+
t[124] !== n?.tooltip || t[125] !== Mt || t[126] !== Ut || t[127] !== zt || t[128] !== a?.tooltip || t[129] !== O ? (nt = zt && O && Mt && Ut ? /* @__PURE__ */ i.jsx(Te, { data: zt, body: O, xPos: Mt, yPos: Ut, backgroundStyle: a?.tooltip, className: n?.tooltip }) : null, t[124] = n?.tooltip, t[125] = Mt, t[126] = Ut, t[127] = zt, t[128] = a?.tooltip, t[129] = O, t[130] = nt) : nt = t[130];
|
|
599
599
|
let mt;
|
|
600
|
-
t[131] !==
|
|
600
|
+
t[131] !== n?.modal || t[132] !== $ || t[133] !== yt ? (mt = $ && yt !== void 0 ? /* @__PURE__ */ i.jsx(Pe, { body: $, data: yt, setData: qt, className: n?.modal }) : null, t[131] = n?.modal, t[132] = $, t[133] = yt, t[134] = mt) : mt = t[134];
|
|
601
601
|
let h;
|
|
602
|
-
return t[135] !== E || t[136] !==
|
|
602
|
+
return t[135] !== E || t[136] !== nt || t[137] !== mt ? (h = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
603
603
|
E,
|
|
604
|
-
|
|
604
|
+
nt,
|
|
605
605
|
mt
|
|
606
|
-
] }), t[135] = E, t[136] =
|
|
606
|
+
] }), t[135] = E, t[136] = nt, t[137] = mt, t[138] = h) : h = t[138], h;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function bi(e) {
|
|
609
609
|
return e.layer;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function vi(e) {
|
|
612
612
|
return e.position === "after";
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function wi(e) {
|
|
615
615
|
return e !== null;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Ai(e) {
|
|
618
618
|
return e !== null;
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function ki(e) {
|
|
621
621
|
return e !== null;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Mi(e) {
|
|
624
624
|
return e !== null;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Ci(e) {
|
|
627
627
|
return e.layer;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Oi(e) {
|
|
630
630
|
return e.position === "before";
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function $i(e, t) {
|
|
633
633
|
return t !== 0;
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function Ii(e, t) {
|
|
636
636
|
return t !== 0;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Li(e) {
|
|
639
639
|
return `${e.id}`;
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
const t =
|
|
643
|
-
data:
|
|
641
|
+
function On(e) {
|
|
642
|
+
const t = Le.c(130), {
|
|
643
|
+
data: d,
|
|
644
644
|
graphTitle: Jt,
|
|
645
|
-
colors:
|
|
645
|
+
colors: ae,
|
|
646
646
|
sources: Kt,
|
|
647
647
|
graphDescription: Qt,
|
|
648
|
-
barPadding:
|
|
648
|
+
barPadding: C,
|
|
649
649
|
showTicks: Bt,
|
|
650
|
-
leftMargin:
|
|
651
|
-
rightMargin:
|
|
650
|
+
leftMargin: Lt,
|
|
651
|
+
rightMargin: Vt,
|
|
652
652
|
topMargin: vt,
|
|
653
653
|
bottomMargin: wt,
|
|
654
654
|
truncateBy: ft,
|
|
@@ -656,23 +656,23 @@ function Aa(e) {
|
|
|
656
656
|
width: g,
|
|
657
657
|
footNote: ot,
|
|
658
658
|
colorDomain: jt,
|
|
659
|
-
colorLegendTitle:
|
|
659
|
+
colorLegendTitle: O,
|
|
660
660
|
padding: rt,
|
|
661
661
|
backgroundColor: Zt,
|
|
662
662
|
radius: pt,
|
|
663
663
|
tooltip: P,
|
|
664
664
|
showLabels: W,
|
|
665
|
-
relativeHeight:
|
|
665
|
+
relativeHeight: N,
|
|
666
666
|
onSeriesMouseOver: Xt,
|
|
667
667
|
graphID: kt,
|
|
668
668
|
suffix: Nt,
|
|
669
669
|
prefix: _t,
|
|
670
|
-
maxValue:
|
|
670
|
+
maxValue: $,
|
|
671
671
|
minValue: B,
|
|
672
672
|
onSeriesMouseClick: Yt,
|
|
673
673
|
graphDownload: Dt,
|
|
674
|
-
dataDownload:
|
|
675
|
-
showValues:
|
|
674
|
+
dataDownload: a,
|
|
675
|
+
showValues: n,
|
|
676
676
|
sortParameter: y,
|
|
677
677
|
arrowConnector: Tt,
|
|
678
678
|
connectorStrokeWidth: f,
|
|
@@ -702,7 +702,7 @@ function Aa(e) {
|
|
|
702
702
|
dimmedOpacity: Ut,
|
|
703
703
|
timeline: Ot,
|
|
704
704
|
sortData: Y
|
|
705
|
-
} = e,
|
|
705
|
+
} = e, A = ae === void 0 ? oi.light.categoricalColors.colors : ae, Ft = C === void 0 ? 0.25 : C, gt = Bt === void 0 ? !0 : Bt, q = ft === void 0 ? 999 : ft, U = Zt === void 0 ? !0 : Zt, J = pt === void 0 ? 3 : pt, K = W === void 0 ? !0 : W, Q = Nt === void 0 ? "" : Nt, k = _t === void 0 ? "" : _t, I = Dt === void 0 ? !1 : Dt, L = a === void 0 ? !1 : a, Z = n === void 0 ? !0 : n, _ = Tt === void 0 ? !1 : Tt, tt = f === void 0 ? 2 : f, M = x === void 0 ? "en" : x, D = H === void 0 ? 0 : H, T = X === void 0 ? "light" : X, et = St === void 0 ? !0 : St, it = R === void 0 ? 5 : R, dt = Rt === void 0 ? "vertical" : Rt, S = zt === void 0 ? !0 : zt, E = ht === void 0 ? !1 : ht, nt = yt === void 0 ? 2 : yt, mt = qt === void 0 ? !0 : qt;
|
|
706
706
|
let h;
|
|
707
707
|
t[0] !== Mt ? (h = Mt === void 0 ? [] : Mt, t[0] = Mt, t[1] = h) : h = t[1];
|
|
708
708
|
const p = h;
|
|
@@ -715,138 +715,145 @@ function Aa(e) {
|
|
|
715
715
|
autoplay: !1,
|
|
716
716
|
showOnlyActiveDate: !0
|
|
717
717
|
} : Ot, t[4] = Ot, t[5] = w) : w = t[5];
|
|
718
|
-
const s = w, [xt, ie] = It(0), [bt,
|
|
718
|
+
const s = w, [xt, ie] = It(0), [bt, ne] = It(0), [G, c] = It(s.autoplay);
|
|
719
719
|
let F;
|
|
720
|
-
if (t[6] !==
|
|
721
|
-
let
|
|
722
|
-
t[9] !== s.dateFormat ? (
|
|
720
|
+
if (t[6] !== d || t[7] !== s.dateFormat) {
|
|
721
|
+
let m;
|
|
722
|
+
t[9] !== s.dateFormat ? (m = ($t) => Ee(`${$t.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = s.dateFormat, t[10] = m) : m = t[10], F = [...new Set(d.filter(Ui).map(m))], F.sort(qi), t[6] = d, t[7] = s.dateFormat, t[8] = F;
|
|
723
723
|
} else
|
|
724
724
|
F = t[8];
|
|
725
|
-
const l = F, [
|
|
726
|
-
let
|
|
727
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
728
|
-
const
|
|
729
|
-
ie($t[0].target.clientWidth || 620),
|
|
725
|
+
const l = F, [j, se] = It(s.autoplay ? 0 : l.length - 1), [u, ee] = It(void 0), at = Ae(null), oe = Ae(null);
|
|
726
|
+
let fe, pe;
|
|
727
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (fe = () => {
|
|
728
|
+
const m = new ResizeObserver(($t) => {
|
|
729
|
+
ie($t[0].target.clientWidth || 620), ne($t[0].target.clientHeight || 480);
|
|
730
730
|
});
|
|
731
|
-
return
|
|
732
|
-
},
|
|
733
|
-
let
|
|
734
|
-
t[13] !== G || t[14] !== s.speed || t[15] !== l ? (
|
|
735
|
-
const
|
|
731
|
+
return at.current && m.observe(at.current), () => m.disconnect();
|
|
732
|
+
}, pe = [], t[11] = fe, t[12] = pe) : (fe = t[11], pe = t[12]), Ne(fe, pe);
|
|
733
|
+
let he, ye;
|
|
734
|
+
t[13] !== G || t[14] !== s.speed || t[15] !== l ? (he = () => {
|
|
735
|
+
const m = setInterval(() => {
|
|
736
736
|
se(($t) => $t < l.length - 1 ? $t + 1 : 0);
|
|
737
737
|
}, (s.speed || 2) * 1e3);
|
|
738
|
-
return G || clearInterval(
|
|
739
|
-
},
|
|
740
|
-
const
|
|
741
|
-
let
|
|
742
|
-
t[18] !==
|
|
743
|
-
const
|
|
738
|
+
return G || clearInterval(m), () => clearInterval(m);
|
|
739
|
+
}, ye = [l, G, s.speed], t[13] = G, t[14] = s.speed, t[15] = l, t[16] = he, t[17] = ye) : (he = t[16], ye = t[17]), Ne(he, ye);
|
|
740
|
+
const ke = s.dateFormat || "yyyy";
|
|
741
|
+
let ge;
|
|
742
|
+
t[18] !== j || t[19] !== ke || t[20] !== s.showOnlyActiveDate || t[21] !== l ? (ge = Ge(l, j, s.showOnlyActiveDate, ke), t[18] = j, t[19] = ke, t[20] = s.showOnlyActiveDate, t[21] = l, t[22] = ge) : ge = t[22];
|
|
743
|
+
const be = ge, Me = dt === "horizontal" ? gi : si, Ce = o?.graphContainer, Oe = r?.graphContainer;
|
|
744
744
|
let le;
|
|
745
|
-
t[23] !== o?.description || t[24] !== o?.title || t[25] !==
|
|
745
|
+
t[23] !== o?.description || t[24] !== o?.title || t[25] !== d || t[26] !== L || t[27] !== Qt || t[28] !== I || t[29] !== Jt || t[30] !== r?.description || t[31] !== r?.title || t[32] !== g ? (le = Jt || Qt || I || L ? /* @__PURE__ */ i.jsx(_e, { styles: {
|
|
746
746
|
title: r?.title,
|
|
747
747
|
description: r?.description
|
|
748
748
|
}, classNames: {
|
|
749
749
|
title: o?.title,
|
|
750
750
|
description: o?.description
|
|
751
|
-
}, graphTitle: Jt, graphDescription: Qt, width: g, graphDownload:
|
|
751
|
+
}, graphTitle: Jt, graphDescription: Qt, width: g, graphDownload: I ? oe : void 0, dataDownload: L ? d.map(zi).filter(Ri).length > 0 ? d.map(Hi).filter(Gi) : d.filter(Ei) : null }) : null, t[23] = o?.description, t[24] = o?.title, t[25] = d, t[26] = L, t[27] = Qt, t[28] = I, t[29] = Jt, t[30] = r?.description, t[31] = r?.title, t[32] = g, t[33] = le) : le = t[33];
|
|
752
752
|
let re;
|
|
753
|
-
t[34] !==
|
|
753
|
+
t[34] !== j || t[35] !== be || t[36] !== G || t[37] !== s.enabled || t[38] !== l ? (re = s.enabled && l.length > 0 && be ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
754
754
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
755
755
|
c(!G);
|
|
756
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": G ? "Click to pause animation" : "Click to play animation", children: G ? /* @__PURE__ */ i.jsx(
|
|
757
|
-
/* @__PURE__ */ i.jsx(
|
|
758
|
-
se(l.indexOf(
|
|
759
|
-
}, onChange: (
|
|
760
|
-
se(l.indexOf(
|
|
756
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": G ? "Click to pause animation" : "Click to play animation", children: G ? /* @__PURE__ */ i.jsx(ti, {}) : /* @__PURE__ */ i.jsx(ei, {}) }),
|
|
757
|
+
/* @__PURE__ */ i.jsx(He, { min: l[0], max: l[l.length - 1], marks: be, step: null, defaultValue: l[l.length - 1], value: l[j], onChangeComplete: (m) => {
|
|
758
|
+
se(l.indexOf(m));
|
|
759
|
+
}, onChange: (m) => {
|
|
760
|
+
se(l.indexOf(m));
|
|
761
761
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
762
|
-
] }) : null, t[34] =
|
|
762
|
+
] }) : null, t[34] = j, t[35] = be, t[36] = G, t[37] = s.enabled, t[38] = l, t[39] = re) : re = t[39];
|
|
763
763
|
let ce;
|
|
764
|
-
t[40] !==
|
|
765
|
-
mt ? /* @__PURE__ */ i.jsx(ti, { width: g, colorDomain: jt, colors: N, colorLegendTitle: C, setSelectedColor: ee, showNAColor: !1, className: o?.colorLegend }) : null,
|
|
766
|
-
/* @__PURE__ */ i.jsx(Ue, { ref: nt, children: xt && bt ? /* @__PURE__ */ i.jsx(we, { data: y !== void 0 ? y === "diff" ? $e(Me(u, s.dateFormat || "yyyy").filter((d) => s.enabled ? d.date === Ie(new Date(l[L]), s.dateFormat || "yyyy") : d).filter((d) => S ? !d.x.every(Wi) : d), Pi, [Y || "asc"]).filter((d, $t) => b ? $t < b : !0) : $e(Me(u, s.dateFormat || "yyyy").filter((d) => s.enabled ? d.date === Ie(new Date(l[L]), s.dateFormat || "yyyy") : d).filter((d) => S ? !d.x.every(Fi) : d), (d) => Wt(d.x[y]) ? -1 / 0 : d.x[y], [Y || "asc"]).filter((d, $t) => b ? $t < b : !0) : Me(u, s.dateFormat || "yyyy").filter((d) => S ? !d.x.every(Si) : d).filter((d, $t) => b ? $t < b : !0), dotColors: N, width: xt, height: bt, radius: J, barPadding: Ft, showTicks: gt, leftMargin: Vt, rightMargin: Lt, topMargin: vt, bottomMargin: wt, truncateBy: q, showLabels: K, showValues: Z, tooltip: P, suffix: Q, prefix: A, onSeriesMouseOver: Xt, maxValue: Wt(O) ? Math.max(...u.map(Di)) < 0 ? 0 : Math.max(...u.map(ji)) : O, minValue: Wt(B) ? Math.min(...u.map(Vi)) > 0 ? 0 : Math.min(...u.map($i)) : B, onSeriesMouseClick: Yt, selectedColor: m, arrowConnector: _, connectorStrokeWidth: tt, maxBarThickness: ct, minBarThickness: Et, resetSelectionOnDoubleClick: et, detailsOnClick: te, axisTitle: Ht, noOfTicks: it, valueColor: z, styles: r, classNames: o, labelOrder: st, refValues: lt, animate: E === !0 ? {
|
|
767
|
-
duration: 0.5,
|
|
768
|
-
once: !0,
|
|
769
|
-
amount: 0.5
|
|
770
|
-
} : E || {
|
|
771
|
-
duration: 0,
|
|
772
|
-
once: !0,
|
|
773
|
-
amount: 0
|
|
774
|
-
}, precision: at, customLayers: p, highlightedDataPoints: ut, dimmedOpacity: v, rtl: k === "ar" || k === "he" }) : null })
|
|
775
|
-
] }), t[40] = we, t[41] = E, t[42] = _, t[43] = Ht, t[44] = Ft, t[45] = wt, t[46] = o, t[47] = jt, t[48] = C, t[49] = N, t[50] = tt, t[51] = p, t[52] = u, t[53] = te, t[54] = v, t[55] = S, t[56] = ut, t[57] = L, t[58] = st, t[59] = k, t[60] = Vt, t[61] = ct, t[62] = b, t[63] = O, t[64] = Et, t[65] = B, t[66] = it, t[67] = Yt, t[68] = Xt, t[69] = at, t[70] = A, t[71] = J, t[72] = lt, t[73] = et, t[74] = Lt, t[75] = m, t[76] = mt, t[77] = K, t[78] = gt, t[79] = Z, t[80] = Y, t[81] = y, t[82] = r, t[83] = Q, t[84] = bt, t[85] = xt, t[86] = s.dateFormat, t[87] = s.enabled, t[88] = P, t[89] = vt, t[90] = q, t[91] = l, t[92] = z, t[93] = g, t[94] = ce) : ce = t[94];
|
|
764
|
+
t[40] !== o?.colorLegend || t[41] !== jt || t[42] !== O || t[43] !== A || t[44] !== d.length || t[45] !== mt || t[46] !== g ? (ce = mt && d.length > 0 ? /* @__PURE__ */ i.jsx(ni, { width: g, colorDomain: jt, colors: A, colorLegendTitle: O, setSelectedColor: ee, showNAColor: !1, className: o?.colorLegend }) : null, t[40] = o?.colorLegend, t[41] = jt, t[42] = O, t[43] = A, t[44] = d.length, t[45] = mt, t[46] = g, t[47] = ce) : ce = t[47];
|
|
776
765
|
let de;
|
|
777
|
-
t[
|
|
766
|
+
t[48] !== d.length ? (de = d.length === 0 && /* @__PURE__ */ i.jsx(ai, {}), t[48] = d.length, t[49] = de) : de = t[49];
|
|
767
|
+
let me;
|
|
768
|
+
t[50] !== Me || t[51] !== E || t[52] !== _ || t[53] !== Ht || t[54] !== Ft || t[55] !== wt || t[56] !== o || t[57] !== A || t[58] !== tt || t[59] !== p || t[60] !== d || t[61] !== te || t[62] !== v || t[63] !== S || t[64] !== ut || t[65] !== j || t[66] !== st || t[67] !== M || t[68] !== Lt || t[69] !== ct || t[70] !== b || t[71] !== $ || t[72] !== Et || t[73] !== B || t[74] !== it || t[75] !== Yt || t[76] !== Xt || t[77] !== nt || t[78] !== k || t[79] !== J || t[80] !== lt || t[81] !== et || t[82] !== Vt || t[83] !== u || t[84] !== K || t[85] !== gt || t[86] !== Z || t[87] !== Y || t[88] !== y || t[89] !== r || t[90] !== Q || t[91] !== bt || t[92] !== xt || t[93] !== s.dateFormat || t[94] !== s.enabled || t[95] !== P || t[96] !== vt || t[97] !== q || t[98] !== l || t[99] !== z ? (me = xt && bt && d.length > 0 ? /* @__PURE__ */ i.jsx(Me, { data: y !== void 0 ? y === "diff" ? Ve($e(d, s.dateFormat || "yyyy").filter((m) => s.enabled ? m.date === je(new Date(l[j]), s.dateFormat || "yyyy") : m).filter((m) => S ? !m.x.every(Yi) : m), Xi, [Y || "asc"]).filter((m, $t) => b ? $t < b : !0) : Ve($e(d, s.dateFormat || "yyyy").filter((m) => s.enabled ? m.date === je(new Date(l[j]), s.dateFormat || "yyyy") : m).filter((m) => S ? !m.x.every(Bi) : m), (m) => Wt(m.x[y]) ? -1 / 0 : m.x[y], [Y || "asc"]).filter((m, $t) => b ? $t < b : !0) : $e(d, s.dateFormat || "yyyy").filter((m) => S ? !m.x.every(Wi) : m).filter((m, $t) => b ? $t < b : !0), dotColors: A, width: xt, height: bt, radius: J, barPadding: Ft, showTicks: gt, leftMargin: Lt, rightMargin: Vt, topMargin: vt, bottomMargin: wt, truncateBy: q, showLabels: K, showValues: Z, tooltip: P, suffix: Q, prefix: k, onSeriesMouseOver: Xt, maxValue: Wt($) ? Math.max(...d.map(Fi)) < 0 ? 0 : Math.max(...d.map(Ti)) : $, minValue: Wt(B) ? Math.min(...d.map(Ni)) > 0 ? 0 : Math.min(...d.map(Vi)) : B, onSeriesMouseClick: Yt, selectedColor: u, arrowConnector: _, connectorStrokeWidth: tt, maxBarThickness: ct, minBarThickness: Et, resetSelectionOnDoubleClick: et, detailsOnClick: te, axisTitle: Ht, noOfTicks: it, valueColor: z, styles: r, classNames: o, labelOrder: st, refValues: lt, animate: E === !0 ? {
|
|
769
|
+
duration: 0.5,
|
|
770
|
+
once: !0,
|
|
771
|
+
amount: 0.5
|
|
772
|
+
} : E || {
|
|
773
|
+
duration: 0,
|
|
774
|
+
once: !0,
|
|
775
|
+
amount: 0
|
|
776
|
+
}, precision: nt, customLayers: p, highlightedDataPoints: ut, dimmedOpacity: v, rtl: M === "ar" || M === "he" }) : null, t[50] = Me, t[51] = E, t[52] = _, t[53] = Ht, t[54] = Ft, t[55] = wt, t[56] = o, t[57] = A, t[58] = tt, t[59] = p, t[60] = d, t[61] = te, t[62] = v, t[63] = S, t[64] = ut, t[65] = j, t[66] = st, t[67] = M, t[68] = Lt, t[69] = ct, t[70] = b, t[71] = $, t[72] = Et, t[73] = B, t[74] = it, t[75] = Yt, t[76] = Xt, t[77] = nt, t[78] = k, t[79] = J, t[80] = lt, t[81] = et, t[82] = Vt, t[83] = u, t[84] = K, t[85] = gt, t[86] = Z, t[87] = Y, t[88] = y, t[89] = r, t[90] = Q, t[91] = bt, t[92] = xt, t[93] = s.dateFormat, t[94] = s.enabled, t[95] = P, t[96] = vt, t[97] = q, t[98] = l, t[99] = z, t[100] = me) : me = t[100];
|
|
777
|
+
let ue;
|
|
778
|
+
t[101] !== de || t[102] !== me ? (ue = /* @__PURE__ */ i.jsxs(Qe, { ref: at, children: [
|
|
779
|
+
de,
|
|
780
|
+
me
|
|
781
|
+
] }), t[101] = de, t[102] = me, t[103] = ue) : ue = t[103];
|
|
782
|
+
let xe;
|
|
783
|
+
t[104] !== o?.footnote || t[105] !== o?.source || t[106] !== ot || t[107] !== Kt || t[108] !== r?.footnote || t[109] !== r?.source || t[110] !== g ? (xe = Kt || ot ? /* @__PURE__ */ i.jsx(ii, { styles: {
|
|
778
784
|
footnote: r?.footnote,
|
|
779
785
|
source: r?.source
|
|
780
786
|
}, classNames: {
|
|
781
787
|
footnote: o?.footnote,
|
|
782
788
|
source: o?.source
|
|
783
|
-
}, sources: Kt, footNote: ot, width: g }) : null, t[
|
|
784
|
-
let
|
|
785
|
-
return t[
|
|
789
|
+
}, sources: Kt, footNote: ot, width: g }) : null, t[104] = o?.footnote, t[105] = o?.source, t[106] = ot, t[107] = Kt, t[108] = r?.footnote, t[109] = r?.source, t[110] = g, t[111] = xe) : xe = t[111];
|
|
790
|
+
let ve;
|
|
791
|
+
return t[112] !== Gt || t[113] !== U || t[114] !== kt || t[115] !== At || t[116] !== M || t[117] !== D || t[118] !== rt || t[119] !== N || t[120] !== Ce || t[121] !== Oe || t[122] !== le || t[123] !== re || t[124] !== ce || t[125] !== ue || t[126] !== xe || t[127] !== T || t[128] !== g ? (ve = /* @__PURE__ */ i.jsxs(Ze, { className: Ce, style: Oe, id: kt, ref: oe, "aria-label": Gt, backgroundColor: U, theme: T, language: M, minHeight: D, width: g, height: At, relativeHeight: N, padding: rt, children: [
|
|
786
792
|
le,
|
|
787
793
|
re,
|
|
788
794
|
ce,
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
}
|
|
792
|
-
function $i(e) {
|
|
793
|
-
return Math.min(...e.x.filter(Ii));
|
|
794
|
-
}
|
|
795
|
-
function Ii(e) {
|
|
796
|
-
return e !== null;
|
|
795
|
+
ue,
|
|
796
|
+
xe
|
|
797
|
+
] }), t[112] = Gt, t[113] = U, t[114] = kt, t[115] = At, t[116] = M, t[117] = D, t[118] = rt, t[119] = N, t[120] = Ce, t[121] = Oe, t[122] = le, t[123] = re, t[124] = ce, t[125] = ue, t[126] = xe, t[127] = T, t[128] = g, t[129] = ve) : ve = t[129], ve;
|
|
797
798
|
}
|
|
798
799
|
function Vi(e) {
|
|
799
|
-
return Math.min(...e.x.filter(
|
|
800
|
-
}
|
|
801
|
-
function Li(e) {
|
|
802
|
-
return e !== null;
|
|
800
|
+
return Math.min(...e.x.filter(ji));
|
|
803
801
|
}
|
|
804
802
|
function ji(e) {
|
|
805
|
-
return
|
|
803
|
+
return e !== null;
|
|
806
804
|
}
|
|
807
805
|
function Ni(e) {
|
|
808
|
-
return e
|
|
806
|
+
return Math.min(...e.x.filter(Di));
|
|
809
807
|
}
|
|
810
808
|
function Di(e) {
|
|
811
|
-
return
|
|
809
|
+
return e !== null;
|
|
812
810
|
}
|
|
813
811
|
function Ti(e) {
|
|
814
|
-
return e
|
|
812
|
+
return Math.max(...e.x.filter(Si));
|
|
815
813
|
}
|
|
816
814
|
function Si(e) {
|
|
817
|
-
return e
|
|
815
|
+
return e !== null;
|
|
818
816
|
}
|
|
819
817
|
function Fi(e) {
|
|
820
|
-
return e
|
|
818
|
+
return Math.max(...e.x.filter(Pi));
|
|
821
819
|
}
|
|
822
820
|
function Pi(e) {
|
|
823
|
-
return
|
|
821
|
+
return e !== null;
|
|
824
822
|
}
|
|
825
823
|
function Wi(e) {
|
|
826
824
|
return e == null;
|
|
827
825
|
}
|
|
828
826
|
function Bi(e) {
|
|
829
|
-
return e
|
|
827
|
+
return e == null;
|
|
830
828
|
}
|
|
831
829
|
function Xi(e) {
|
|
832
|
-
return e
|
|
830
|
+
return Wt(e.x[e.x.length - 1]) || Wt(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
|
|
833
831
|
}
|
|
834
832
|
function Yi(e) {
|
|
835
|
-
return e
|
|
833
|
+
return e == null;
|
|
836
834
|
}
|
|
837
835
|
function Ei(e) {
|
|
838
836
|
return e !== void 0;
|
|
839
837
|
}
|
|
840
838
|
function Gi(e) {
|
|
839
|
+
return e !== void 0;
|
|
840
|
+
}
|
|
841
|
+
function Hi(e) {
|
|
842
|
+
return e.data;
|
|
843
|
+
}
|
|
844
|
+
function Ri(e) {
|
|
845
|
+
return e !== void 0;
|
|
846
|
+
}
|
|
847
|
+
function zi(e) {
|
|
841
848
|
return e.data;
|
|
842
849
|
}
|
|
843
|
-
function
|
|
850
|
+
function qi(e, t) {
|
|
844
851
|
return e - t;
|
|
845
852
|
}
|
|
846
|
-
function
|
|
853
|
+
function Ui(e) {
|
|
847
854
|
return e.date;
|
|
848
855
|
}
|
|
849
856
|
export {
|
|
850
|
-
|
|
857
|
+
On as DumbbellChart
|
|
851
858
|
};
|
|
852
859
|
//# sourceMappingURL=DumbbellChart.js.map
|