@undp/data-viz 2.3.11 → 2.3.13
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.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +4 -4
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +2 -2
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +2 -2
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +2 -2
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +39 -39
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +2 -2
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +1 -1
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +1 -1
- package/dist/Data/department.json +530 -0
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.js +2 -2
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +3 -3
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +19 -19
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +2 -2
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-D807L58h.js → EmptyState-B3fPoH6L.js} +2 -2
- package/dist/{EmptyState-D807L58h.js.map → EmptyState-B3fPoH6L.js.map} +1 -1
- package/dist/{EmptyState-N1eHt3vq.cjs → EmptyState-B4c-CrXs.cjs} +2 -2
- package/dist/{EmptyState-N1eHt3vq.cjs.map → EmptyState-B4c-CrXs.cjs.map} +1 -1
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +1 -1
- package/dist/{GraphEl-CT3xPv2P.js → GraphEl-Bb5oGHoa.js} +4 -3
- package/dist/GraphEl-Bb5oGHoa.js.map +1 -0
- package/dist/{GraphEl-DvwOOhF1.cjs → GraphEl-BerZfJ3j.cjs} +2 -2
- package/dist/{GraphEl-DvwOOhF1.cjs.map → GraphEl-BerZfJ3j.cjs.map} +1 -1
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +29 -29
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +393 -391
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.js +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +2 -2
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +439 -437
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +1 -1
- package/dist/{Source-24M277ZQ.cjs → Source-BOSAl3UX.cjs} +2 -2
- package/dist/{Source-24M277ZQ.cjs.map → Source-BOSAl3UX.cjs.map} +1 -1
- package/dist/{Source-eILIr4Ov.js → Source-Djkz-7jX.js} +2 -2
- package/dist/{Source-eILIr4Ov.js.map → Source-Djkz-7jX.js.map} +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +2 -2
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +2 -0
- package/dist/StripChart.js +592 -481
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +2 -2
- package/dist/Types.d.ts +1 -0
- package/dist/Typography-CZZxlj1W.cjs +2 -0
- package/dist/Typography-CZZxlj1W.cjs.map +1 -0
- package/dist/{Typography-HicNIA61.js → Typography-DMVW6JnV.js} +67 -60
- package/dist/Typography-DMVW6JnV.js.map +1 -0
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.js +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.js +1 -1
- package/dist/{index-B5ggV1vg.js → index-C6VwVS8W.js} +3 -3
- package/dist/{index-B5ggV1vg.js.map → index-C6VwVS8W.js.map} +1 -1
- package/dist/{index-BDR7MlMo.cjs → index-_TlgeI_i.cjs} +2 -2
- package/dist/{index-BDR7MlMo.cjs.map → index-_TlgeI_i.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/GraphEl-CT3xPv2P.js.map +0 -1
- package/dist/Typography-Cc_iHQB-.cjs +0 -2
- package/dist/Typography-Cc_iHQB-.cjs.map +0 -1
- package/dist/Typography-HicNIA61.js.map +0 -1
package/dist/StripChart.js
CHANGED
|
@@ -1,683 +1,794 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { i as
|
|
4
|
-
import { o as
|
|
5
|
-
import { T as
|
|
6
|
-
import { c as
|
|
7
|
-
import { n as
|
|
8
|
-
import { Colors as
|
|
9
|
-
import { D as
|
|
10
|
-
import { a as
|
|
11
|
-
import { m as
|
|
12
|
-
import { u as
|
|
13
|
-
import { A as
|
|
14
|
-
import { u as
|
|
15
|
-
import { a as
|
|
16
|
-
import { E as
|
|
17
|
-
import { ColorLegendWithMouseOver as
|
|
18
|
-
import { GraphFooter as
|
|
19
|
-
import { GraphHeader as
|
|
20
|
-
function
|
|
21
|
-
if (
|
|
22
|
-
const o = t / (
|
|
1
|
+
import { c as Jt, j as s, m as Yt } from "./index-CHPV5EwG-BCLAYDCV.js";
|
|
2
|
+
import { useRef as Bt, useState as bt, useEffect as si } from "react";
|
|
3
|
+
import { i as ti } from "./index-Bwrro8-q.js";
|
|
4
|
+
import { o as ii } from "./index-BZQYSqar.js";
|
|
5
|
+
import { T as ei } from "./Tooltip-CohiIbLZ.js";
|
|
6
|
+
import { c as dt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
7
|
+
import { n as Gt } from "./numberFormattingFunction-14YCbkN2.js";
|
|
8
|
+
import { Colors as a } from "./Colors.js";
|
|
9
|
+
import { D as oi } from "./DetailsModal-C3qlUyFK.js";
|
|
10
|
+
import { a as ni } from "./linear-DNXM5Pdl.js";
|
|
11
|
+
import { m as it } from "./proxy--_f6k3NR.js";
|
|
12
|
+
import { u as li } from "./use-in-view-DqvKAveg.js";
|
|
13
|
+
import { A as ri } from "./index-Co3YGYe1.js";
|
|
14
|
+
import { u as _t } from "./uniqBy-BHy4I8PK.js";
|
|
15
|
+
import { a as ci, G as ui } from "./GraphContainer-DwMxWRCi.js";
|
|
16
|
+
import { E as fi } from "./EmptyState-B3fPoH6L.js";
|
|
17
|
+
import { ColorLegendWithMouseOver as pi } from "./ColorLegendWithMouseOver.js";
|
|
18
|
+
import { GraphFooter as mi } from "./GraphFooter.js";
|
|
19
|
+
import { GraphHeader as hi } from "./GraphHeader.js";
|
|
20
|
+
function ai(i, t) {
|
|
21
|
+
if (i < 2) return [];
|
|
22
|
+
const o = t / (i - 1);
|
|
23
23
|
return Array.from({
|
|
24
|
-
length:
|
|
25
|
-
}, (
|
|
24
|
+
length: i
|
|
25
|
+
}, ($, b) => b * o);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const t =
|
|
27
|
+
function gi(i) {
|
|
28
|
+
const t = Jt.c(101), {
|
|
29
29
|
data: o,
|
|
30
|
-
width:
|
|
31
|
-
height:
|
|
30
|
+
width: $,
|
|
31
|
+
height: b,
|
|
32
32
|
colors: n,
|
|
33
33
|
colorDomain: r,
|
|
34
|
-
radius:
|
|
35
|
-
leftMargin:
|
|
36
|
-
rightMargin:
|
|
37
|
-
topMargin:
|
|
38
|
-
bottomMargin:
|
|
39
|
-
tooltip:
|
|
40
|
-
onSeriesMouseOver:
|
|
34
|
+
radius: f,
|
|
35
|
+
leftMargin: C,
|
|
36
|
+
rightMargin: wt,
|
|
37
|
+
topMargin: pt,
|
|
38
|
+
bottomMargin: At,
|
|
39
|
+
tooltip: mt,
|
|
40
|
+
onSeriesMouseOver: et,
|
|
41
41
|
highlightedDataPoints: l,
|
|
42
|
-
selectedColor:
|
|
43
|
-
minValue:
|
|
44
|
-
maxValue:
|
|
45
|
-
onSeriesMouseClick:
|
|
46
|
-
noOfTicks:
|
|
47
|
-
prefix:
|
|
48
|
-
suffix:
|
|
49
|
-
stripType:
|
|
50
|
-
highlightColor:
|
|
51
|
-
dotOpacity:
|
|
52
|
-
resetSelectionOnDoubleClick:
|
|
53
|
-
detailsOnClick:
|
|
54
|
-
styles:
|
|
55
|
-
classNames:
|
|
56
|
-
valueColor:
|
|
57
|
-
animate:
|
|
58
|
-
dimmedOpacity:
|
|
59
|
-
precision:
|
|
60
|
-
customLayers: j
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
42
|
+
selectedColor: ot,
|
|
43
|
+
minValue: S,
|
|
44
|
+
maxValue: T,
|
|
45
|
+
onSeriesMouseClick: U,
|
|
46
|
+
noOfTicks: nt,
|
|
47
|
+
prefix: J,
|
|
48
|
+
suffix: lt,
|
|
49
|
+
stripType: d,
|
|
50
|
+
highlightColor: h,
|
|
51
|
+
dotOpacity: xt,
|
|
52
|
+
resetSelectionOnDoubleClick: K,
|
|
53
|
+
detailsOnClick: w,
|
|
54
|
+
styles: m,
|
|
55
|
+
classNames: v,
|
|
56
|
+
valueColor: u,
|
|
57
|
+
animate: g,
|
|
58
|
+
dimmedOpacity: Z,
|
|
59
|
+
precision: _,
|
|
60
|
+
customLayers: j,
|
|
61
|
+
showDataMinMax: Mt
|
|
62
|
+
} = i, yt = C === void 0 ? 20 : C, Vt = wt === void 0 ? 20 : wt, jt = pt === void 0 ? 10 : pt, Ct = At === void 0 ? 10 : At, Nt = Bt(null);
|
|
63
|
+
let rt;
|
|
64
|
+
t[0] !== g.amount || t[1] !== g.once ? (rt = {
|
|
65
|
+
once: g.once,
|
|
66
|
+
amount: g.amount
|
|
67
|
+
}, t[0] = g.amount, t[1] = g.once, t[2] = rt) : rt = t[2];
|
|
68
|
+
const M = li(Nt, rt), [ht, vt] = bt(void 0), [D, x] = bt(void 0), [p, Dt] = bt(void 0), [gt, It] = bt(void 0);
|
|
69
|
+
let tt;
|
|
70
|
+
t[3] !== Ct || t[4] !== yt || t[5] !== Vt || t[6] !== jt ? (tt = {
|
|
71
|
+
top: jt,
|
|
72
|
+
bottom: Ct,
|
|
72
73
|
left: yt,
|
|
73
|
-
right:
|
|
74
|
-
}, t[3] =
|
|
75
|
-
const
|
|
76
|
-
let E,
|
|
77
|
-
if (t[8] !==
|
|
78
|
-
const
|
|
79
|
-
let
|
|
80
|
-
t[
|
|
81
|
-
const c = (l || []).indexOf(
|
|
74
|
+
right: Vt
|
|
75
|
+
}, t[3] = Ct, t[4] = yt, t[5] = Vt, t[6] = jt, t[7] = tt) : tt = t[7];
|
|
76
|
+
const y = tt, B = $ - y.left - y.right, q = b - y.top - y.bottom;
|
|
77
|
+
let E, I, V, L, A, N, P, H, W, X, Y, G;
|
|
78
|
+
if (t[8] !== g.duration || t[9] !== v?.graphObjectValues || t[10] !== v?.yAxis?.labels || t[11] !== r || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== w || t[16] !== Z || t[17] !== xt || t[18] !== q || t[19] !== B || t[20] !== b || t[21] !== h || t[22] !== l || t[23] !== M || t[24] !== y.left || t[25] !== y.top || t[26] !== T || t[27] !== S || t[28] !== D || t[29] !== nt || t[30] !== U || t[31] !== et || t[32] !== _ || t[33] !== J || t[34] !== f || t[35] !== K || t[36] !== ot || t[37] !== Mt || t[38] !== d || t[39] !== m?.graphObjectValues || t[40] !== m?.yAxis?.labels || t[41] !== lt || t[42] !== u || t[43] !== $) {
|
|
79
|
+
const kt = o.map(Ri);
|
|
80
|
+
let st;
|
|
81
|
+
t[56] !== l ? (st = (e) => {
|
|
82
|
+
const c = (l || []).indexOf(e.label);
|
|
82
83
|
return c === -1 ? 1 / 0 : c;
|
|
83
|
-
}, t[
|
|
84
|
-
const
|
|
85
|
-
let
|
|
86
|
-
t[
|
|
87
|
-
const
|
|
88
|
-
let
|
|
89
|
-
t[
|
|
90
|
-
const
|
|
91
|
-
|
|
84
|
+
}, t[56] = l, t[57] = st) : st = t[57];
|
|
85
|
+
const ct = ii(kt, [st], ["desc"]);
|
|
86
|
+
let ut;
|
|
87
|
+
t[58] !== o || t[59] !== T ? (ut = dt(T) ? Math.max(...o.filter(zi).map(Gi)) < 0 ? 0 : Math.max(...o.filter(Yi).map(Xi)) : T, t[58] = o, t[59] = T, t[60] = ut) : ut = t[60];
|
|
88
|
+
const $t = ut;
|
|
89
|
+
let Ot;
|
|
90
|
+
t[61] !== o || t[62] !== S ? (Ot = dt(S) ? Math.min(...o.filter(Wi).map(Hi)) >= 0 ? 0 : Math.min(...o.filter(Pi).map(Li)) : S, t[61] = o, t[62] = S, t[63] = Ot) : Ot = t[63];
|
|
91
|
+
const St = Ot, ft = ni().domain([St, $t]).range([q, 0]).nice(), Tt = ai(nt, q);
|
|
92
|
+
I = it.svg, L = `${$}px`, A = `${b}px`, N = `0 0 ${$} ${b}`, P = "ltr", H = Nt, G = `translate(${y.left},${y.top})`, t[64] !== j ? (V = j.filter(Ei).map(Ti), t[64] = j, t[65] = V) : V = t[65], E = ri, W = ct.map((e) => /* @__PURE__ */ s.jsxs(it.g, { className: "undp-viz-g-with-hover", variants: {
|
|
92
93
|
initial: {
|
|
93
94
|
opacity: 0,
|
|
94
|
-
x:
|
|
95
|
-
y:
|
|
95
|
+
x: B / 2,
|
|
96
|
+
y: ft(0)
|
|
96
97
|
},
|
|
97
98
|
whileInView: {
|
|
98
|
-
x:
|
|
99
|
-
y:
|
|
100
|
-
opacity:
|
|
99
|
+
x: B / 2,
|
|
100
|
+
y: ft(e.position),
|
|
101
|
+
opacity: ot ? e.color && n[r.indexOf(e.color)] === ot ? 0.95 : Z : l.length !== 0 ? l.indexOf(e.label) !== -1 ? 0.95 : Z : xt,
|
|
101
102
|
transition: {
|
|
102
|
-
duration:
|
|
103
|
+
duration: g.duration
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
|
-
}, initial: "initial", animate:
|
|
106
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
106
107
|
opacity: 0,
|
|
107
108
|
transition: {
|
|
108
|
-
duration:
|
|
109
|
+
duration: g.duration
|
|
109
110
|
}
|
|
110
111
|
}, onMouseEnter: (c) => {
|
|
111
|
-
|
|
112
|
+
vt(e), It(c.clientY), Dt(c.clientX), et?.(e);
|
|
112
113
|
}, onClick: () => {
|
|
113
|
-
(
|
|
114
|
+
(U || w) && (ti(D, e) && K ? (x(void 0), U?.(void 0)) : (x(e), U?.(e)));
|
|
114
115
|
}, onMouseMove: (c) => {
|
|
115
|
-
|
|
116
|
+
vt(e), It(c.clientY), Dt(c.clientX);
|
|
116
117
|
}, onMouseLeave: () => {
|
|
117
|
-
|
|
118
|
+
vt(void 0), Dt(void 0), It(void 0), et?.(void 0);
|
|
118
119
|
}, children: [
|
|
119
|
-
|
|
120
|
+
d === "dot" ? /* @__PURE__ */ s.jsx(it.circle, { cy: 0, cx: 0, variants: {
|
|
120
121
|
initial: {
|
|
121
|
-
fill:
|
|
122
|
+
fill: h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(Si).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter($i).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray
|
|
122
123
|
},
|
|
123
124
|
whileInView: {
|
|
124
|
-
fill:
|
|
125
|
+
fill: h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(ki).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ni).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray,
|
|
125
126
|
transition: {
|
|
126
|
-
duration:
|
|
127
|
+
duration: g.duration
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
|
-
}, initial: "initial", animate:
|
|
130
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
130
131
|
opacity: 0,
|
|
131
132
|
transition: {
|
|
132
|
-
duration:
|
|
133
|
+
duration: g.duration
|
|
133
134
|
}
|
|
134
|
-
}, r:
|
|
135
|
+
}, r: f }) : /* @__PURE__ */ s.jsx(it.rect, { y: -1, height: 2, variants: {
|
|
135
136
|
initial: {
|
|
136
|
-
x: 0 -
|
|
137
|
-
width:
|
|
138
|
-
fill:
|
|
137
|
+
x: 0 - f,
|
|
138
|
+
width: f * 2,
|
|
139
|
+
fill: h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(Ai).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ii).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray
|
|
139
140
|
},
|
|
140
141
|
whileInView: {
|
|
141
|
-
x: 0 -
|
|
142
|
-
width:
|
|
143
|
-
fill:
|
|
142
|
+
x: 0 - f,
|
|
143
|
+
width: f * 2,
|
|
144
|
+
fill: h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(Di).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ci).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray,
|
|
144
145
|
transition: {
|
|
145
|
-
duration:
|
|
146
|
+
duration: g.duration
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
|
-
}, initial: "initial", animate:
|
|
149
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
149
150
|
opacity: 0,
|
|
150
151
|
transition: {
|
|
151
|
-
duration:
|
|
152
|
+
duration: g.duration
|
|
152
153
|
}
|
|
153
154
|
} }),
|
|
154
|
-
l.length !== 0 && l.indexOf(
|
|
155
|
+
l.length !== 0 && l.indexOf(e.label) !== -1 ? /* @__PURE__ */ s.jsx(it.text, { y: 0, dy: "0.33em", variants: {
|
|
155
156
|
initial: {
|
|
156
157
|
opacity: 0,
|
|
157
|
-
x: 0 +
|
|
158
|
-
fill:
|
|
158
|
+
x: 0 + f + 3,
|
|
159
|
+
fill: u || (h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(ji).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Vi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray)
|
|
159
160
|
},
|
|
160
161
|
whileInView: {
|
|
161
162
|
opacity: 1,
|
|
162
|
-
x: 0 +
|
|
163
|
-
fill:
|
|
163
|
+
x: 0 + f + 3,
|
|
164
|
+
fill: u || (h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(Mi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(wi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray),
|
|
164
165
|
transition: {
|
|
165
|
-
duration:
|
|
166
|
+
duration: g.duration
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
|
-
}, initial: "initial", animate:
|
|
169
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
169
170
|
opacity: 0,
|
|
170
171
|
transition: {
|
|
171
|
-
duration:
|
|
172
|
+
duration: g.duration
|
|
172
173
|
}
|
|
173
174
|
}, style: {
|
|
174
175
|
textAnchor: "start",
|
|
175
|
-
...
|
|
176
|
-
}, className:
|
|
177
|
-
] },
|
|
176
|
+
...m?.graphObjectValues || {}
|
|
177
|
+
}, className: Yt("graph-value text-sm font-bold", v?.graphObjectValues), children: Gt(e.position, "NA", _, J, lt) }) : null
|
|
178
|
+
] }, e.label)), X = Mt ? [ct[0], ct[ct.length - 1]].map((e, c) => /* @__PURE__ */ s.jsx(it.g, { variants: {
|
|
179
|
+
initial: {
|
|
180
|
+
opacity: 0,
|
|
181
|
+
x: B / 2,
|
|
182
|
+
y: ft(0)
|
|
183
|
+
},
|
|
184
|
+
whileInView: {
|
|
185
|
+
x: B / 2,
|
|
186
|
+
y: ft(e.position),
|
|
187
|
+
opacity: 1,
|
|
188
|
+
transition: {
|
|
189
|
+
duration: g.duration
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
193
|
+
opacity: 0,
|
|
194
|
+
transition: {
|
|
195
|
+
duration: g.duration
|
|
196
|
+
}
|
|
197
|
+
}, children: /* @__PURE__ */ s.jsx(it.text, { y: 0, dy: "0.33em", variants: {
|
|
198
|
+
initial: {
|
|
199
|
+
opacity: 0,
|
|
200
|
+
x: 0 + f + 3,
|
|
201
|
+
fill: u || (h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(bi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Oi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray)
|
|
202
|
+
},
|
|
203
|
+
whileInView: {
|
|
204
|
+
opacity: 1,
|
|
205
|
+
x: 0 + f + 3,
|
|
206
|
+
fill: u || (h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(vi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(yi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray),
|
|
207
|
+
transition: {
|
|
208
|
+
duration: g.duration
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
212
|
+
opacity: 0,
|
|
213
|
+
transition: {
|
|
214
|
+
duration: g.duration
|
|
215
|
+
}
|
|
216
|
+
}, style: {
|
|
178
217
|
textAnchor: "start",
|
|
179
|
-
...
|
|
180
|
-
}, className:
|
|
218
|
+
...m?.graphObjectValues || {}
|
|
219
|
+
}, className: Yt("graph-value text-sm", v?.graphObjectValues), children: Gt(e.position, "NA", _, J, lt) }, c) }, c)) : null, Y = Tt.map((e, c) => /* @__PURE__ */ s.jsx("text", { y: e, x: B / 2 + f + 5, style: {
|
|
220
|
+
textAnchor: "start",
|
|
221
|
+
...m?.yAxis?.labels || {}
|
|
222
|
+
}, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", v?.yAxis?.labels), children: Gt(ft.invert(e), "NA", _, J, lt) }, c)), t[8] = g.duration, t[9] = v?.graphObjectValues, t[10] = v?.yAxis?.labels, t[11] = r, t[12] = n, t[13] = j, t[14] = o, t[15] = w, t[16] = Z, t[17] = xt, t[18] = q, t[19] = B, t[20] = b, t[21] = h, t[22] = l, t[23] = M, t[24] = y.left, t[25] = y.top, t[26] = T, t[27] = S, t[28] = D, t[29] = nt, t[30] = U, t[31] = et, t[32] = _, t[33] = J, t[34] = f, t[35] = K, t[36] = ot, t[37] = Mt, t[38] = d, t[39] = m?.graphObjectValues, t[40] = m?.yAxis?.labels, t[41] = lt, t[42] = u, t[43] = $, t[44] = E, t[45] = I, t[46] = V, t[47] = L, t[48] = A, t[49] = N, t[50] = P, t[51] = H, t[52] = W, t[53] = X, t[54] = Y, t[55] = G;
|
|
181
223
|
} else
|
|
182
|
-
E = t[
|
|
183
|
-
let G;
|
|
184
|
-
t[64] !== E || t[65] !== W || t[66] !== X ? (G = /* @__PURE__ */ a.jsxs(E, { children: [
|
|
185
|
-
W,
|
|
186
|
-
X
|
|
187
|
-
] }), t[64] = E, t[65] = W, t[66] = X, t[67] = G) : G = t[67];
|
|
224
|
+
E = t[44], I = t[45], V = t[46], L = t[47], A = t[48], N = t[49], P = t[50], H = t[51], W = t[52], X = t[53], Y = t[54], G = t[55];
|
|
188
225
|
let z;
|
|
189
|
-
t[
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
226
|
+
t[66] !== E || t[67] !== W || t[68] !== X || t[69] !== Y ? (z = /* @__PURE__ */ s.jsxs(E, { children: [
|
|
227
|
+
W,
|
|
228
|
+
X,
|
|
229
|
+
Y
|
|
230
|
+
] }), t[66] = E, t[67] = W, t[68] = X, t[69] = Y, t[70] = z) : z = t[70];
|
|
231
|
+
let O;
|
|
232
|
+
t[71] !== j ? (O = j.filter(xi).map(di), t[71] = j, t[72] = O) : O = t[72];
|
|
196
233
|
let R;
|
|
197
|
-
t[
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
let
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
] }), t[
|
|
234
|
+
t[73] !== V || t[74] !== z || t[75] !== O || t[76] !== G ? (R = /* @__PURE__ */ s.jsxs("g", { transform: G, children: [
|
|
235
|
+
V,
|
|
236
|
+
z,
|
|
237
|
+
O
|
|
238
|
+
] }), t[73] = V, t[74] = z, t[75] = O, t[76] = G, t[77] = R) : R = t[77];
|
|
239
|
+
let Q;
|
|
240
|
+
t[78] !== I || t[79] !== L || t[80] !== A || t[81] !== N || t[82] !== P || t[83] !== H || t[84] !== R ? (Q = /* @__PURE__ */ s.jsx(I, { width: L, height: A, viewBox: N, direction: P, ref: H, children: R }), t[78] = I, t[79] = L, t[80] = A, t[81] = N, t[82] = P, t[83] = H, t[84] = R, t[85] = Q) : Q = t[85];
|
|
241
|
+
let k;
|
|
242
|
+
t[86] !== v?.tooltip || t[87] !== p || t[88] !== gt || t[89] !== ht || t[90] !== m?.tooltip || t[91] !== mt ? (k = ht && mt && p && gt ? /* @__PURE__ */ s.jsx(ei, { data: ht, body: mt, xPos: p, yPos: gt, backgroundStyle: m?.tooltip, className: v?.tooltip }) : null, t[86] = v?.tooltip, t[87] = p, t[88] = gt, t[89] = ht, t[90] = m?.tooltip, t[91] = mt, t[92] = k) : k = t[92];
|
|
243
|
+
let F;
|
|
244
|
+
t[93] !== v?.modal || t[94] !== w || t[95] !== D ? (F = w && D !== void 0 ? /* @__PURE__ */ s.jsx(oi, { body: w, data: D, setData: x, className: v?.modal }) : null, t[93] = v?.modal, t[94] = w, t[95] = D, t[96] = F) : F = t[96];
|
|
245
|
+
let at;
|
|
246
|
+
return t[97] !== Q || t[98] !== k || t[99] !== F ? (at = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
247
|
+
Q,
|
|
248
|
+
k,
|
|
249
|
+
F
|
|
250
|
+
] }), t[97] = Q, t[98] = k, t[99] = F, t[100] = at) : at = t[100], at;
|
|
208
251
|
}
|
|
209
|
-
function
|
|
210
|
-
return
|
|
252
|
+
function di(i) {
|
|
253
|
+
return i.layer;
|
|
211
254
|
}
|
|
212
|
-
function
|
|
213
|
-
return
|
|
255
|
+
function xi(i) {
|
|
256
|
+
return i.position === "after";
|
|
214
257
|
}
|
|
215
|
-
function
|
|
216
|
-
return
|
|
258
|
+
function yi(i) {
|
|
259
|
+
return i.color;
|
|
217
260
|
}
|
|
218
|
-
function
|
|
219
|
-
return
|
|
261
|
+
function vi(i) {
|
|
262
|
+
return i.color;
|
|
220
263
|
}
|
|
221
|
-
function
|
|
222
|
-
return
|
|
264
|
+
function Oi(i) {
|
|
265
|
+
return i.color;
|
|
223
266
|
}
|
|
224
|
-
function
|
|
225
|
-
return
|
|
267
|
+
function bi(i) {
|
|
268
|
+
return i.color;
|
|
226
269
|
}
|
|
227
|
-
function
|
|
228
|
-
return
|
|
270
|
+
function wi(i) {
|
|
271
|
+
return i.color;
|
|
229
272
|
}
|
|
230
|
-
function
|
|
231
|
-
return
|
|
273
|
+
function Mi(i) {
|
|
274
|
+
return i.color;
|
|
232
275
|
}
|
|
233
|
-
function
|
|
234
|
-
return
|
|
276
|
+
function Vi(i) {
|
|
277
|
+
return i.color;
|
|
235
278
|
}
|
|
236
|
-
function
|
|
237
|
-
return
|
|
279
|
+
function ji(i) {
|
|
280
|
+
return i.color;
|
|
238
281
|
}
|
|
239
|
-
function
|
|
240
|
-
return
|
|
282
|
+
function Ci(i) {
|
|
283
|
+
return i.color;
|
|
241
284
|
}
|
|
242
|
-
function
|
|
243
|
-
return
|
|
285
|
+
function Di(i) {
|
|
286
|
+
return i.color;
|
|
244
287
|
}
|
|
245
|
-
function
|
|
246
|
-
return
|
|
288
|
+
function Ii(i) {
|
|
289
|
+
return i.color;
|
|
247
290
|
}
|
|
248
|
-
function
|
|
249
|
-
return
|
|
291
|
+
function Ai(i) {
|
|
292
|
+
return i.color;
|
|
250
293
|
}
|
|
251
|
-
function
|
|
252
|
-
return
|
|
294
|
+
function Ni(i) {
|
|
295
|
+
return i.color;
|
|
253
296
|
}
|
|
254
|
-
function
|
|
255
|
-
return
|
|
297
|
+
function ki(i) {
|
|
298
|
+
return i.color;
|
|
256
299
|
}
|
|
257
|
-
function
|
|
258
|
-
return
|
|
300
|
+
function $i(i) {
|
|
301
|
+
return i.color;
|
|
259
302
|
}
|
|
260
|
-
function
|
|
261
|
-
return
|
|
303
|
+
function Si(i) {
|
|
304
|
+
return i.color;
|
|
262
305
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
306
|
+
function Ti(i) {
|
|
307
|
+
return i.layer;
|
|
265
308
|
}
|
|
266
|
-
function
|
|
267
|
-
return
|
|
309
|
+
function Ei(i) {
|
|
310
|
+
return i.position === "before";
|
|
268
311
|
}
|
|
269
|
-
function
|
|
270
|
-
return
|
|
312
|
+
function Li(i) {
|
|
313
|
+
return i.position;
|
|
271
314
|
}
|
|
272
|
-
function
|
|
273
|
-
return !
|
|
315
|
+
function Pi(i) {
|
|
316
|
+
return !dt(i.position);
|
|
274
317
|
}
|
|
275
|
-
function
|
|
276
|
-
return
|
|
318
|
+
function Hi(i) {
|
|
319
|
+
return i.position;
|
|
277
320
|
}
|
|
278
|
-
function
|
|
279
|
-
return !
|
|
321
|
+
function Wi(i) {
|
|
322
|
+
return !dt(i.position);
|
|
280
323
|
}
|
|
281
|
-
function
|
|
324
|
+
function Xi(i) {
|
|
325
|
+
return i.position;
|
|
326
|
+
}
|
|
327
|
+
function Yi(i) {
|
|
328
|
+
return !dt(i.position);
|
|
329
|
+
}
|
|
330
|
+
function Gi(i) {
|
|
331
|
+
return i.position;
|
|
332
|
+
}
|
|
333
|
+
function zi(i) {
|
|
334
|
+
return !dt(i.position);
|
|
335
|
+
}
|
|
336
|
+
function Ri(i, t) {
|
|
282
337
|
return {
|
|
283
|
-
...
|
|
338
|
+
...i,
|
|
284
339
|
id: `${t}`
|
|
285
340
|
};
|
|
286
341
|
}
|
|
287
|
-
function
|
|
288
|
-
const t =
|
|
342
|
+
function Fi(i) {
|
|
343
|
+
const t = Jt.c(101), {
|
|
289
344
|
data: o,
|
|
290
|
-
width:
|
|
291
|
-
height:
|
|
345
|
+
width: $,
|
|
346
|
+
height: b,
|
|
292
347
|
colors: n,
|
|
293
348
|
colorDomain: r,
|
|
294
|
-
radius:
|
|
295
|
-
leftMargin:
|
|
296
|
-
rightMargin:
|
|
297
|
-
topMargin:
|
|
298
|
-
bottomMargin:
|
|
299
|
-
tooltip:
|
|
300
|
-
onSeriesMouseOver:
|
|
349
|
+
radius: f,
|
|
350
|
+
leftMargin: C,
|
|
351
|
+
rightMargin: wt,
|
|
352
|
+
topMargin: pt,
|
|
353
|
+
bottomMargin: At,
|
|
354
|
+
tooltip: mt,
|
|
355
|
+
onSeriesMouseOver: et,
|
|
301
356
|
highlightedDataPoints: l,
|
|
302
|
-
selectedColor:
|
|
303
|
-
minValue:
|
|
304
|
-
maxValue:
|
|
305
|
-
onSeriesMouseClick:
|
|
306
|
-
prefix:
|
|
307
|
-
suffix:
|
|
308
|
-
stripType:
|
|
309
|
-
highlightColor:
|
|
310
|
-
dotOpacity:
|
|
311
|
-
resetSelectionOnDoubleClick:
|
|
312
|
-
detailsOnClick:
|
|
313
|
-
styles:
|
|
314
|
-
classNames:
|
|
315
|
-
valueColor:
|
|
316
|
-
animate:
|
|
317
|
-
noOfTicks:
|
|
318
|
-
dimmedOpacity:
|
|
319
|
-
precision:
|
|
320
|
-
customLayers: j
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
357
|
+
selectedColor: ot,
|
|
358
|
+
minValue: S,
|
|
359
|
+
maxValue: T,
|
|
360
|
+
onSeriesMouseClick: U,
|
|
361
|
+
prefix: nt,
|
|
362
|
+
suffix: J,
|
|
363
|
+
stripType: lt,
|
|
364
|
+
highlightColor: d,
|
|
365
|
+
dotOpacity: h,
|
|
366
|
+
resetSelectionOnDoubleClick: xt,
|
|
367
|
+
detailsOnClick: K,
|
|
368
|
+
styles: w,
|
|
369
|
+
classNames: m,
|
|
370
|
+
valueColor: v,
|
|
371
|
+
animate: u,
|
|
372
|
+
noOfTicks: g,
|
|
373
|
+
dimmedOpacity: Z,
|
|
374
|
+
precision: _,
|
|
375
|
+
customLayers: j,
|
|
376
|
+
showDataMinMax: Mt
|
|
377
|
+
} = i, yt = C === void 0 ? 5 : C, Vt = wt === void 0 ? 5 : wt, jt = pt === void 0 ? 10 : pt, Ct = At === void 0 ? 10 : At, Nt = Bt(null);
|
|
378
|
+
let rt;
|
|
379
|
+
t[0] !== u.amount || t[1] !== u.once ? (rt = {
|
|
380
|
+
once: u.once,
|
|
381
|
+
amount: u.amount
|
|
382
|
+
}, t[0] = u.amount, t[1] = u.once, t[2] = rt) : rt = t[2];
|
|
383
|
+
const M = li(Nt, rt), [ht, vt] = bt(void 0), [D, x] = bt(void 0), [p, Dt] = bt(void 0), [gt, It] = bt(void 0);
|
|
384
|
+
let tt;
|
|
385
|
+
t[3] !== Ct || t[4] !== yt || t[5] !== Vt || t[6] !== jt ? (tt = {
|
|
386
|
+
top: jt,
|
|
387
|
+
bottom: Ct,
|
|
332
388
|
left: yt,
|
|
333
|
-
right:
|
|
334
|
-
}, t[3] =
|
|
335
|
-
const
|
|
336
|
-
let E,
|
|
337
|
-
if (t[8] !==
|
|
338
|
-
const
|
|
339
|
-
let
|
|
340
|
-
t[
|
|
341
|
-
const c = (l || []).indexOf(
|
|
389
|
+
right: Vt
|
|
390
|
+
}, t[3] = Ct, t[4] = yt, t[5] = Vt, t[6] = jt, t[7] = tt) : tt = t[7];
|
|
391
|
+
const y = tt, B = $ - y.left - y.right, q = b - y.top - y.bottom;
|
|
392
|
+
let E, I, V, L, A, N, P, H, W, X, Y, G;
|
|
393
|
+
if (t[8] !== u.duration || t[9] !== m?.graphObjectValues || t[10] !== m?.xAxis?.labels || t[11] !== r || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== K || t[16] !== Z || t[17] !== h || t[18] !== q || t[19] !== B || t[20] !== b || t[21] !== d || t[22] !== l || t[23] !== M || t[24] !== y.left || t[25] !== y.top || t[26] !== T || t[27] !== S || t[28] !== D || t[29] !== g || t[30] !== U || t[31] !== et || t[32] !== _ || t[33] !== nt || t[34] !== f || t[35] !== xt || t[36] !== ot || t[37] !== Mt || t[38] !== lt || t[39] !== w?.graphObjectValues || t[40] !== w?.xAxis?.labels || t[41] !== J || t[42] !== v || t[43] !== $) {
|
|
394
|
+
const kt = o.map(Oe);
|
|
395
|
+
let st;
|
|
396
|
+
t[56] !== l ? (st = (e) => {
|
|
397
|
+
const c = (l || []).indexOf(e.label);
|
|
342
398
|
return c === -1 ? 1 / 0 : c;
|
|
343
|
-
}, t[
|
|
344
|
-
const
|
|
345
|
-
let
|
|
346
|
-
t[
|
|
347
|
-
const
|
|
348
|
-
let
|
|
349
|
-
t[
|
|
350
|
-
const
|
|
351
|
-
|
|
399
|
+
}, t[56] = l, t[57] = st) : st = t[57];
|
|
400
|
+
const ct = ii(kt, [st], ["desc"]);
|
|
401
|
+
let ut;
|
|
402
|
+
t[58] !== o || t[59] !== T ? (ut = dt(T) ? Math.max(...o.filter(ve).map(ye)) < 0 ? 0 : Math.max(...o.filter(xe).map(de)) : T, t[58] = o, t[59] = T, t[60] = ut) : ut = t[60];
|
|
403
|
+
const $t = ut;
|
|
404
|
+
let Ot;
|
|
405
|
+
t[61] !== o || t[62] !== S ? (Ot = dt(S) ? Math.min(...o.filter(ge).map(he)) >= 0 ? 0 : Math.min(...o.filter(me).map(pe)) : S, t[61] = o, t[62] = S, t[63] = Ot) : Ot = t[63];
|
|
406
|
+
const St = Ot, ft = ni().domain([St, $t]).range([0, B]).nice(), Tt = ai(g, B);
|
|
407
|
+
I = it.svg, L = `${$}px`, A = `${b}px`, N = `0 0 ${$} ${b}`, P = "ltr", H = Nt, G = `translate(${y.left},${y.top})`, t[64] !== j ? (V = j.filter(fe).map(ue), t[64] = j, t[65] = V) : V = t[65], E = ri, W = ct.map((e) => /* @__PURE__ */ s.jsxs(it.g, { className: "undp-viz-g-with-hover", variants: {
|
|
352
408
|
initial: {
|
|
353
409
|
opacity: 0,
|
|
354
|
-
x:
|
|
355
|
-
y:
|
|
410
|
+
x: ft(0),
|
|
411
|
+
y: q / 2
|
|
356
412
|
},
|
|
357
413
|
whileInView: {
|
|
358
|
-
x:
|
|
359
|
-
y:
|
|
360
|
-
opacity:
|
|
414
|
+
x: ft(e.position),
|
|
415
|
+
y: q / 2,
|
|
416
|
+
opacity: ot ? e.color && n[r.indexOf(e.color)] === ot ? 0.95 : Z : l.length !== 0 ? l.indexOf(e.label) !== -1 ? 0.95 : Z : h,
|
|
361
417
|
transition: {
|
|
362
|
-
duration:
|
|
418
|
+
duration: u.duration
|
|
363
419
|
}
|
|
364
420
|
}
|
|
365
|
-
}, initial: "initial", animate:
|
|
421
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
366
422
|
opacity: 0,
|
|
367
423
|
transition: {
|
|
368
|
-
duration:
|
|
424
|
+
duration: u.duration
|
|
369
425
|
}
|
|
370
426
|
}, onMouseEnter: (c) => {
|
|
371
|
-
|
|
427
|
+
vt(e), It(c.clientY), Dt(c.clientX), et?.(e);
|
|
372
428
|
}, onClick: () => {
|
|
373
|
-
(
|
|
429
|
+
(U || K) && (ti(D, e) && xt ? (x(void 0), U?.(void 0)) : (x(e), U?.(e)));
|
|
374
430
|
}, onMouseMove: (c) => {
|
|
375
|
-
|
|
431
|
+
vt(e), It(c.clientY), Dt(c.clientX);
|
|
376
432
|
}, onMouseLeave: () => {
|
|
377
|
-
|
|
433
|
+
vt(void 0), Dt(void 0), It(void 0), et?.(void 0);
|
|
378
434
|
}, children: [
|
|
379
|
-
|
|
435
|
+
lt === "dot" ? /* @__PURE__ */ s.jsx(it.circle, { cy: 0, cx: 0, variants: {
|
|
380
436
|
initial: {
|
|
381
|
-
fill:
|
|
437
|
+
fill: d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(ce).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(se).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray
|
|
382
438
|
},
|
|
383
439
|
whileInView: {
|
|
384
|
-
fill:
|
|
440
|
+
fill: d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(ae).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(re).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray,
|
|
385
441
|
transition: {
|
|
386
|
-
duration:
|
|
442
|
+
duration: u.duration
|
|
387
443
|
}
|
|
388
444
|
}
|
|
389
|
-
}, initial: "initial", animate:
|
|
445
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
390
446
|
opacity: 0,
|
|
391
447
|
transition: {
|
|
392
|
-
duration:
|
|
448
|
+
duration: u.duration
|
|
393
449
|
}
|
|
394
|
-
}, r:
|
|
450
|
+
}, r: f }) : /* @__PURE__ */ s.jsx(it.rect, { x: -1, width: 2, variants: {
|
|
395
451
|
initial: {
|
|
396
|
-
y: 0 -
|
|
397
|
-
height:
|
|
398
|
-
fill:
|
|
452
|
+
y: 0 - f,
|
|
453
|
+
height: f * 2,
|
|
454
|
+
fill: d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(le).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(ne).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray
|
|
399
455
|
},
|
|
400
456
|
whileInView: {
|
|
401
|
-
y: 0 -
|
|
402
|
-
height:
|
|
403
|
-
fill:
|
|
457
|
+
y: 0 - f,
|
|
458
|
+
height: f * 2,
|
|
459
|
+
fill: d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(oe).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(ee).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray,
|
|
404
460
|
transition: {
|
|
405
|
-
duration:
|
|
461
|
+
duration: u.duration
|
|
406
462
|
}
|
|
407
463
|
}
|
|
408
|
-
}, initial: "initial", animate:
|
|
464
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
409
465
|
opacity: 0,
|
|
410
466
|
transition: {
|
|
411
|
-
duration:
|
|
467
|
+
duration: u.duration
|
|
412
468
|
}
|
|
413
469
|
} }),
|
|
414
|
-
l.length !== 0 && l.indexOf(
|
|
470
|
+
l.length !== 0 && l.indexOf(e.label) !== -1 ? /* @__PURE__ */ s.jsx(it.text, { x: 0, variants: {
|
|
415
471
|
initial: {
|
|
416
472
|
opacity: 0,
|
|
417
|
-
y: 0 -
|
|
418
|
-
fill:
|
|
473
|
+
y: 0 - f - 5,
|
|
474
|
+
fill: v || (d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(ie).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(te).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray)
|
|
419
475
|
},
|
|
420
476
|
whileInView: {
|
|
421
477
|
opacity: 1,
|
|
422
|
-
y: 0 -
|
|
423
|
-
fill:
|
|
478
|
+
y: 0 - f - 5,
|
|
479
|
+
fill: v || (d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(_i).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Zi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray),
|
|
424
480
|
transition: {
|
|
425
|
-
duration:
|
|
481
|
+
duration: u.duration
|
|
426
482
|
}
|
|
427
483
|
}
|
|
428
|
-
}, initial: "initial", animate:
|
|
484
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
429
485
|
opacity: 0,
|
|
430
486
|
transition: {
|
|
431
|
-
duration:
|
|
487
|
+
duration: u.duration
|
|
432
488
|
}
|
|
433
489
|
}, style: {
|
|
434
490
|
textAnchor: "middle",
|
|
435
|
-
...
|
|
436
|
-
}, className:
|
|
437
|
-
] },
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
491
|
+
...w?.graphObjectValues || {}
|
|
492
|
+
}, className: Yt("graph-value text-sm font-bold", m?.graphObjectValues), children: Gt(e.position, "NA", _, nt, J) }) : null
|
|
493
|
+
] }, e.label)), X = Mt ? [ct[0], ct[ct.length - 1]].map((e, c) => /* @__PURE__ */ s.jsx(it.g, { variants: {
|
|
494
|
+
initial: {
|
|
495
|
+
opacity: 0,
|
|
496
|
+
x: ft(0),
|
|
497
|
+
y: q / 2
|
|
498
|
+
},
|
|
499
|
+
whileInView: {
|
|
500
|
+
x: ft(e.position),
|
|
501
|
+
y: q / 2,
|
|
502
|
+
opacity: 1,
|
|
503
|
+
transition: {
|
|
504
|
+
duration: u.duration
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
508
|
+
opacity: 0,
|
|
509
|
+
transition: {
|
|
510
|
+
duration: u.duration
|
|
511
|
+
}
|
|
512
|
+
}, children: /* @__PURE__ */ s.jsx(it.text, { x: 0, variants: {
|
|
513
|
+
initial: {
|
|
514
|
+
opacity: 0,
|
|
515
|
+
y: 0 - f - 5,
|
|
516
|
+
fill: v || (d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(Qi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ki).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray)
|
|
517
|
+
},
|
|
518
|
+
whileInView: {
|
|
519
|
+
opacity: 1,
|
|
520
|
+
y: 0 - f - 5,
|
|
521
|
+
fill: v || (d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(Ji).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ui).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray),
|
|
522
|
+
transition: {
|
|
523
|
+
duration: u.duration
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
|
|
527
|
+
opacity: 0,
|
|
528
|
+
transition: {
|
|
529
|
+
duration: u.duration
|
|
530
|
+
}
|
|
531
|
+
}, style: {
|
|
532
|
+
textAnchor: "middle",
|
|
533
|
+
...w?.graphObjectValues || {}
|
|
534
|
+
}, className: Yt("graph-value text-sm", m?.graphObjectValues), children: Gt(e.position, "NA", _, nt, J) }) }, c)) : null, Y = Tt.map((e, c) => /* @__PURE__ */ s.jsx("text", { x: e, y: q / 2 + f, style: {
|
|
535
|
+
textAnchor: c === 0 ? "start" : c === Tt.length - 1 ? "end" : "middle",
|
|
536
|
+
...w?.xAxis?.labels || {}
|
|
537
|
+
}, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", m?.xAxis?.labels), dy: "1em", children: Gt(ft.invert(e), "NA", _, nt, J) }, c)), t[8] = u.duration, t[9] = m?.graphObjectValues, t[10] = m?.xAxis?.labels, t[11] = r, t[12] = n, t[13] = j, t[14] = o, t[15] = K, t[16] = Z, t[17] = h, t[18] = q, t[19] = B, t[20] = b, t[21] = d, t[22] = l, t[23] = M, t[24] = y.left, t[25] = y.top, t[26] = T, t[27] = S, t[28] = D, t[29] = g, t[30] = U, t[31] = et, t[32] = _, t[33] = nt, t[34] = f, t[35] = xt, t[36] = ot, t[37] = Mt, t[38] = lt, t[39] = w?.graphObjectValues, t[40] = w?.xAxis?.labels, t[41] = J, t[42] = v, t[43] = $, t[44] = E, t[45] = I, t[46] = V, t[47] = L, t[48] = A, t[49] = N, t[50] = P, t[51] = H, t[52] = W, t[53] = X, t[54] = Y, t[55] = G;
|
|
441
538
|
} else
|
|
442
|
-
E = t[
|
|
443
|
-
let G;
|
|
444
|
-
t[64] !== E || t[65] !== W || t[66] !== X ? (G = /* @__PURE__ */ a.jsxs(E, { children: [
|
|
445
|
-
W,
|
|
446
|
-
X
|
|
447
|
-
] }), t[64] = E, t[65] = W, t[66] = X, t[67] = G) : G = t[67];
|
|
539
|
+
E = t[44], I = t[45], V = t[46], L = t[47], A = t[48], N = t[49], P = t[50], H = t[51], W = t[52], X = t[53], Y = t[54], G = t[55];
|
|
448
540
|
let z;
|
|
449
|
-
t[
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
541
|
+
t[66] !== E || t[67] !== W || t[68] !== X || t[69] !== Y ? (z = /* @__PURE__ */ s.jsxs(E, { children: [
|
|
542
|
+
W,
|
|
543
|
+
X,
|
|
544
|
+
Y
|
|
545
|
+
] }), t[66] = E, t[67] = W, t[68] = X, t[69] = Y, t[70] = z) : z = t[70];
|
|
546
|
+
let O;
|
|
547
|
+
t[71] !== j ? (O = j.filter(qi).map(Bi), t[71] = j, t[72] = O) : O = t[72];
|
|
456
548
|
let R;
|
|
457
|
-
t[
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
let
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
] }), t[
|
|
549
|
+
t[73] !== V || t[74] !== z || t[75] !== O || t[76] !== G ? (R = /* @__PURE__ */ s.jsxs("g", { transform: G, children: [
|
|
550
|
+
V,
|
|
551
|
+
z,
|
|
552
|
+
O
|
|
553
|
+
] }), t[73] = V, t[74] = z, t[75] = O, t[76] = G, t[77] = R) : R = t[77];
|
|
554
|
+
let Q;
|
|
555
|
+
t[78] !== I || t[79] !== L || t[80] !== A || t[81] !== N || t[82] !== P || t[83] !== H || t[84] !== R ? (Q = /* @__PURE__ */ s.jsx(I, { width: L, height: A, viewBox: N, direction: P, ref: H, children: R }), t[78] = I, t[79] = L, t[80] = A, t[81] = N, t[82] = P, t[83] = H, t[84] = R, t[85] = Q) : Q = t[85];
|
|
556
|
+
let k;
|
|
557
|
+
t[86] !== m?.tooltip || t[87] !== p || t[88] !== gt || t[89] !== ht || t[90] !== w?.tooltip || t[91] !== mt ? (k = ht && mt && p && gt ? /* @__PURE__ */ s.jsx(ei, { data: ht, body: mt, xPos: p, yPos: gt, backgroundStyle: w?.tooltip, className: m?.tooltip }) : null, t[86] = m?.tooltip, t[87] = p, t[88] = gt, t[89] = ht, t[90] = w?.tooltip, t[91] = mt, t[92] = k) : k = t[92];
|
|
558
|
+
let F;
|
|
559
|
+
t[93] !== m?.modal || t[94] !== K || t[95] !== D ? (F = K && D !== void 0 ? /* @__PURE__ */ s.jsx(oi, { body: K, data: D, setData: x, className: m?.modal }) : null, t[93] = m?.modal, t[94] = K, t[95] = D, t[96] = F) : F = t[96];
|
|
560
|
+
let at;
|
|
561
|
+
return t[97] !== Q || t[98] !== k || t[99] !== F ? (at = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
562
|
+
Q,
|
|
563
|
+
k,
|
|
564
|
+
F
|
|
565
|
+
] }), t[97] = Q, t[98] = k, t[99] = F, t[100] = at) : at = t[100], at;
|
|
566
|
+
}
|
|
567
|
+
function Bi(i) {
|
|
568
|
+
return i.layer;
|
|
569
|
+
}
|
|
570
|
+
function qi(i) {
|
|
571
|
+
return i.position === "after";
|
|
572
|
+
}
|
|
573
|
+
function Ui(i) {
|
|
574
|
+
return i.color;
|
|
575
|
+
}
|
|
576
|
+
function Ji(i) {
|
|
577
|
+
return i.color;
|
|
468
578
|
}
|
|
469
|
-
function
|
|
470
|
-
return
|
|
579
|
+
function Ki(i) {
|
|
580
|
+
return i.color;
|
|
471
581
|
}
|
|
472
|
-
function
|
|
473
|
-
return
|
|
582
|
+
function Qi(i) {
|
|
583
|
+
return i.color;
|
|
474
584
|
}
|
|
475
|
-
function
|
|
476
|
-
return
|
|
585
|
+
function Zi(i) {
|
|
586
|
+
return i.color;
|
|
477
587
|
}
|
|
478
|
-
function
|
|
479
|
-
return
|
|
588
|
+
function _i(i) {
|
|
589
|
+
return i.color;
|
|
480
590
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
591
|
+
function te(i) {
|
|
592
|
+
return i.color;
|
|
483
593
|
}
|
|
484
|
-
function
|
|
485
|
-
return
|
|
594
|
+
function ie(i) {
|
|
595
|
+
return i.color;
|
|
486
596
|
}
|
|
487
|
-
function
|
|
488
|
-
return
|
|
597
|
+
function ee(i) {
|
|
598
|
+
return i.color;
|
|
489
599
|
}
|
|
490
|
-
function
|
|
491
|
-
return
|
|
600
|
+
function oe(i) {
|
|
601
|
+
return i.color;
|
|
492
602
|
}
|
|
493
|
-
function
|
|
494
|
-
return
|
|
603
|
+
function ne(i) {
|
|
604
|
+
return i.color;
|
|
495
605
|
}
|
|
496
|
-
function
|
|
497
|
-
return
|
|
606
|
+
function le(i) {
|
|
607
|
+
return i.color;
|
|
498
608
|
}
|
|
499
|
-
function
|
|
500
|
-
return
|
|
609
|
+
function re(i) {
|
|
610
|
+
return i.color;
|
|
501
611
|
}
|
|
502
|
-
function
|
|
503
|
-
return
|
|
612
|
+
function ae(i) {
|
|
613
|
+
return i.color;
|
|
504
614
|
}
|
|
505
|
-
function
|
|
506
|
-
return
|
|
615
|
+
function se(i) {
|
|
616
|
+
return i.color;
|
|
507
617
|
}
|
|
508
|
-
function
|
|
509
|
-
return
|
|
618
|
+
function ce(i) {
|
|
619
|
+
return i.color;
|
|
510
620
|
}
|
|
511
|
-
function
|
|
512
|
-
return
|
|
621
|
+
function ue(i) {
|
|
622
|
+
return i.layer;
|
|
513
623
|
}
|
|
514
|
-
function
|
|
515
|
-
return
|
|
624
|
+
function fe(i) {
|
|
625
|
+
return i.position === "before";
|
|
516
626
|
}
|
|
517
|
-
function
|
|
518
|
-
return
|
|
627
|
+
function pe(i) {
|
|
628
|
+
return i.position;
|
|
519
629
|
}
|
|
520
|
-
function
|
|
521
|
-
return !
|
|
630
|
+
function me(i) {
|
|
631
|
+
return !dt(i.position);
|
|
522
632
|
}
|
|
523
|
-
function
|
|
524
|
-
return
|
|
633
|
+
function he(i) {
|
|
634
|
+
return i.position;
|
|
525
635
|
}
|
|
526
|
-
function
|
|
527
|
-
return !
|
|
636
|
+
function ge(i) {
|
|
637
|
+
return !dt(i.position);
|
|
528
638
|
}
|
|
529
|
-
function
|
|
530
|
-
return
|
|
639
|
+
function de(i) {
|
|
640
|
+
return i.position;
|
|
531
641
|
}
|
|
532
|
-
function
|
|
533
|
-
return !
|
|
642
|
+
function xe(i) {
|
|
643
|
+
return !dt(i.position);
|
|
534
644
|
}
|
|
535
|
-
function
|
|
536
|
-
return
|
|
645
|
+
function ye(i) {
|
|
646
|
+
return i.position;
|
|
537
647
|
}
|
|
538
|
-
function
|
|
539
|
-
return !
|
|
648
|
+
function ve(i) {
|
|
649
|
+
return !dt(i.position);
|
|
540
650
|
}
|
|
541
|
-
function
|
|
651
|
+
function Oe(i, t) {
|
|
542
652
|
return {
|
|
543
|
-
...
|
|
653
|
+
...i,
|
|
544
654
|
id: `${t}`
|
|
545
655
|
};
|
|
546
656
|
}
|
|
547
|
-
function
|
|
548
|
-
const t =
|
|
657
|
+
function Ue(i) {
|
|
658
|
+
const t = Jt.c(93), {
|
|
549
659
|
data: o,
|
|
550
|
-
graphTitle:
|
|
551
|
-
colors:
|
|
660
|
+
graphTitle: $,
|
|
661
|
+
colors: b,
|
|
552
662
|
sources: n,
|
|
553
663
|
graphDescription: r,
|
|
554
|
-
height:
|
|
555
|
-
width:
|
|
556
|
-
footNote:
|
|
557
|
-
colorDomain:
|
|
558
|
-
colorLegendTitle:
|
|
559
|
-
radius:
|
|
560
|
-
padding:
|
|
664
|
+
height: f,
|
|
665
|
+
width: C,
|
|
666
|
+
footNote: wt,
|
|
667
|
+
colorDomain: pt,
|
|
668
|
+
colorLegendTitle: At,
|
|
669
|
+
radius: mt,
|
|
670
|
+
padding: et,
|
|
561
671
|
backgroundColor: l,
|
|
562
|
-
leftMargin:
|
|
563
|
-
rightMargin:
|
|
564
|
-
topMargin:
|
|
565
|
-
bottomMargin:
|
|
566
|
-
tooltip:
|
|
567
|
-
relativeHeight:
|
|
568
|
-
onSeriesMouseOver:
|
|
569
|
-
showColorScale:
|
|
570
|
-
highlightedDataPoints:
|
|
571
|
-
graphID:
|
|
572
|
-
minValue:
|
|
573
|
-
maxValue:
|
|
574
|
-
onSeriesMouseClick:
|
|
575
|
-
noOfTicks:
|
|
576
|
-
graphDownload:
|
|
577
|
-
dataDownload:
|
|
578
|
-
prefix:
|
|
579
|
-
suffix:
|
|
672
|
+
leftMargin: ot,
|
|
673
|
+
rightMargin: S,
|
|
674
|
+
topMargin: T,
|
|
675
|
+
bottomMargin: U,
|
|
676
|
+
tooltip: nt,
|
|
677
|
+
relativeHeight: J,
|
|
678
|
+
onSeriesMouseOver: lt,
|
|
679
|
+
showColorScale: d,
|
|
680
|
+
highlightedDataPoints: h,
|
|
681
|
+
graphID: xt,
|
|
682
|
+
minValue: K,
|
|
683
|
+
maxValue: w,
|
|
684
|
+
onSeriesMouseClick: m,
|
|
685
|
+
noOfTicks: v,
|
|
686
|
+
graphDownload: u,
|
|
687
|
+
dataDownload: g,
|
|
688
|
+
prefix: Z,
|
|
689
|
+
suffix: _,
|
|
580
690
|
stripType: j,
|
|
581
|
-
language:
|
|
582
|
-
highlightColor:
|
|
583
|
-
dotOpacity:
|
|
584
|
-
showNAColor:
|
|
585
|
-
minHeight:
|
|
586
|
-
theme:
|
|
587
|
-
ariaLabel:
|
|
588
|
-
valueColor:
|
|
589
|
-
resetSelectionOnDoubleClick:
|
|
590
|
-
detailsOnClick:
|
|
591
|
-
orientation:
|
|
592
|
-
styles:
|
|
593
|
-
classNames:
|
|
594
|
-
animate:
|
|
595
|
-
dimmedOpacity:
|
|
596
|
-
precision:
|
|
597
|
-
customLayers:
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
691
|
+
language: Mt,
|
|
692
|
+
highlightColor: yt,
|
|
693
|
+
dotOpacity: Vt,
|
|
694
|
+
showNAColor: jt,
|
|
695
|
+
minHeight: Ct,
|
|
696
|
+
theme: Nt,
|
|
697
|
+
ariaLabel: rt,
|
|
698
|
+
valueColor: M,
|
|
699
|
+
resetSelectionOnDoubleClick: ht,
|
|
700
|
+
detailsOnClick: vt,
|
|
701
|
+
orientation: D,
|
|
702
|
+
styles: x,
|
|
703
|
+
classNames: p,
|
|
704
|
+
animate: Dt,
|
|
705
|
+
dimmedOpacity: gt,
|
|
706
|
+
precision: It,
|
|
707
|
+
customLayers: tt,
|
|
708
|
+
showDataMinMax: y
|
|
709
|
+
} = i, B = mt === void 0 ? 5 : mt, q = l === void 0 ? !1 : l, E = d === void 0 ? !0 : d;
|
|
710
|
+
let I;
|
|
711
|
+
t[0] !== h ? (I = h === void 0 ? [] : h, t[0] = h, t[1] = I) : I = t[1];
|
|
712
|
+
const V = I, L = v === void 0 ? 2 : v, A = u === void 0 ? !1 : u, N = g === void 0 ? !1 : g, P = Z === void 0 ? "" : Z, H = _ === void 0 ? "" : _, W = j === void 0 ? "dot" : j, X = Mt === void 0 ? "en" : Mt, Y = Vt === void 0 ? 0.3 : Vt, G = jt === void 0 ? !0 : jt, z = Ct === void 0 ? 0 : Ct, O = Nt === void 0 ? "light" : Nt, R = ht === void 0 ? !0 : ht, Q = D === void 0 ? "vertical" : D, k = Dt === void 0 ? !1 : Dt, F = gt === void 0 ? 0.3 : gt, at = It === void 0 ? 2 : It;
|
|
713
|
+
let kt;
|
|
714
|
+
t[2] !== tt ? (kt = tt === void 0 ? [] : tt, t[2] = tt, t[3] = kt) : kt = t[3];
|
|
715
|
+
const st = kt, ct = y === void 0 ? !1 : y, ut = Q === "horizontal" ? Fi : gi, [$t, Ot] = bt(0), [St, ft] = bt(0), [Tt, e] = bt(void 0), c = Bt(null), Kt = Bt(null);
|
|
716
|
+
let zt, Rt;
|
|
717
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zt = () => {
|
|
718
|
+
const Qt = new ResizeObserver((Zt) => {
|
|
719
|
+
Ot(Zt[0].target.clientWidth || 620), ft(Zt[0].target.clientHeight || 480);
|
|
609
720
|
});
|
|
610
|
-
return c.current &&
|
|
611
|
-
},
|
|
612
|
-
const
|
|
613
|
-
let
|
|
614
|
-
t[6] !==
|
|
721
|
+
return c.current && Qt.observe(c.current), () => Qt.disconnect();
|
|
722
|
+
}, Rt = [], t[4] = zt, t[5] = Rt) : (zt = t[4], Rt = t[5]), si(zt, Rt);
|
|
723
|
+
const qt = p?.graphContainer, Ut = x?.graphContainer;
|
|
724
|
+
let Et;
|
|
725
|
+
t[6] !== p?.description || t[7] !== p?.title || t[8] !== o || t[9] !== N || t[10] !== r || t[11] !== A || t[12] !== $ || t[13] !== x?.description || t[14] !== x?.title || t[15] !== C ? (Et = $ || r || A || N ? /* @__PURE__ */ s.jsx(hi, { styles: {
|
|
726
|
+
title: x?.title,
|
|
727
|
+
description: x?.description
|
|
728
|
+
}, classNames: {
|
|
615
729
|
title: p?.title,
|
|
616
730
|
description: p?.description
|
|
617
|
-
},
|
|
618
|
-
title: s?.title,
|
|
619
|
-
description: s?.description
|
|
620
|
-
}, graphTitle: N, graphDescription: r, width: V, graphDownload: k ? Ut : void 0, dataDownload: A ? o.map(yi).filter(xi).length > 0 ? o.map(gi).filter(di) : o.filter(hi) : null }) : null, t[6] = s?.description, t[7] = s?.title, t[8] = o, t[9] = A, t[10] = r, t[11] = k, t[12] = N, t[13] = p?.description, t[14] = p?.title, t[15] = V, t[16] = St) : St = t[16];
|
|
621
|
-
let Tt;
|
|
622
|
-
t[17] !== s?.colorLegend || t[18] !== nt || t[19] !== Ct || t[20] !== v || t[21] !== o || t[22] !== E || t[23] !== G || t[24] !== y || t[25] !== V ? (Tt = E !== !1 && o.filter(mi).length !== 0 && o.length > 0 ? /* @__PURE__ */ a.jsx(ue, { width: V, colorLegendTitle: Ct, colors: v || u[y].categoricalColors.colors, colorDomain: nt || Qt(o, "color", !0), setSelectedColor: i, showNAColor: G, className: s?.colorLegend }) : null, t[17] = s?.colorLegend, t[18] = nt, t[19] = Ct, t[20] = v, t[21] = o, t[22] = E, t[23] = G, t[24] = y, t[25] = V, t[26] = Tt) : Tt = t[26];
|
|
623
|
-
let Et;
|
|
624
|
-
t[27] !== o.length ? (Et = o.length === 0 && /* @__PURE__ */ a.jsx(ce, {}), t[27] = o.length, t[28] = Et) : Et = t[28];
|
|
731
|
+
}, graphTitle: $, graphDescription: r, width: C, graphDownload: A ? Kt : void 0, dataDownload: N ? o.map(Ie).filter(De).length > 0 ? o.map(Ce).filter(je) : o.filter(Ve) : null }) : null, t[6] = p?.description, t[7] = p?.title, t[8] = o, t[9] = N, t[10] = r, t[11] = A, t[12] = $, t[13] = x?.description, t[14] = x?.title, t[15] = C, t[16] = Et) : Et = t[16];
|
|
625
732
|
let Lt;
|
|
626
|
-
t[
|
|
733
|
+
t[17] !== p?.colorLegend || t[18] !== pt || t[19] !== At || t[20] !== b || t[21] !== o || t[22] !== E || t[23] !== G || t[24] !== O || t[25] !== C ? (Lt = E !== !1 && o.filter(Me).length !== 0 && o.length > 0 ? /* @__PURE__ */ s.jsx(pi, { width: C, colorLegendTitle: At, colors: b || a[O].categoricalColors.colors, colorDomain: pt || _t(o, "color", !0), setSelectedColor: e, showNAColor: G, className: p?.colorLegend }) : null, t[17] = p?.colorLegend, t[18] = pt, t[19] = At, t[20] = b, t[21] = o, t[22] = E, t[23] = G, t[24] = O, t[25] = C, t[26] = Lt) : Lt = t[26];
|
|
734
|
+
let Pt;
|
|
735
|
+
t[27] !== o.length ? (Pt = o.length === 0 && /* @__PURE__ */ s.jsx(fi, {}), t[27] = o.length, t[28] = Pt) : Pt = t[28];
|
|
736
|
+
let Ht;
|
|
737
|
+
t[29] !== ut || t[30] !== k || t[31] !== U || t[32] !== p || t[33] !== pt || t[34] !== b || t[35] !== st || t[36] !== o || t[37] !== vt || t[38] !== F || t[39] !== Y || t[40] !== yt || t[41] !== V || t[42] !== ot || t[43] !== w || t[44] !== K || t[45] !== L || t[46] !== m || t[47] !== lt || t[48] !== at || t[49] !== P || t[50] !== B || t[51] !== R || t[52] !== S || t[53] !== Tt || t[54] !== ct || t[55] !== W || t[56] !== x || t[57] !== H || t[58] !== St || t[59] !== $t || t[60] !== O || t[61] !== nt || t[62] !== T || t[63] !== M ? (Ht = $t && St && o.length > 0 ? /* @__PURE__ */ s.jsx(ut, { data: o, width: $t, showDataMinMax: ct, height: St, colorDomain: o.filter(we).length === 0 ? [] : pt || _t(o, "color", !0), colors: o.filter(be).length === 0 ? b ? [b] : [a.primaryColors["blue-600"]] : b || a[O].categoricalColors.colors, selectedColor: Tt, radius: B, leftMargin: ot, rightMargin: S, topMargin: T, bottomMargin: U, tooltip: nt, onSeriesMouseOver: lt, highlightedDataPoints: V, minValue: K, maxValue: w, onSeriesMouseClick: m, prefix: P, suffix: H, stripType: W, highlightColor: yt, dotOpacity: Y, resetSelectionOnDoubleClick: R, detailsOnClick: vt, styles: x, classNames: p, valueColor: M, animate: k === !0 ? {
|
|
627
738
|
duration: 0.5,
|
|
628
739
|
once: !0,
|
|
629
740
|
amount: 0.5
|
|
630
|
-
} :
|
|
741
|
+
} : k || {
|
|
631
742
|
duration: 0,
|
|
632
743
|
once: !0,
|
|
633
744
|
amount: 0
|
|
634
|
-
}, noOfTicks:
|
|
635
|
-
let
|
|
636
|
-
t[
|
|
637
|
-
Et,
|
|
638
|
-
Lt
|
|
639
|
-
] }), t[64] = Et, t[65] = Lt, t[66] = Pt) : Pt = t[66];
|
|
640
|
-
let Ht;
|
|
641
|
-
t[67] !== s?.footnote || t[68] !== s?.source || t[69] !== xt || t[70] !== n || t[71] !== p?.footnote || t[72] !== p?.source || t[73] !== V ? (Ht = n || xt ? /* @__PURE__ */ a.jsx(fe, { styles: {
|
|
642
|
-
footnote: p?.footnote,
|
|
643
|
-
source: p?.source
|
|
644
|
-
}, classNames: {
|
|
645
|
-
footnote: s?.footnote,
|
|
646
|
-
source: s?.source
|
|
647
|
-
}, sources: n, footNote: xt, width: V }) : null, t[67] = s?.footnote, t[68] = s?.source, t[69] = xt, t[70] = n, t[71] = p?.footnote, t[72] = p?.source, t[73] = V, t[74] = Ht) : Ht = t[74];
|
|
648
|
-
let Yt;
|
|
649
|
-
return t[75] !== T || t[76] !== K || t[77] !== mt || t[78] !== h || t[79] !== Y || t[80] !== z || t[81] !== Z || t[82] !== tt || t[83] !== Ft || t[84] !== Bt || t[85] !== St || t[86] !== Tt || t[87] !== Pt || t[88] !== Ht || t[89] !== y || t[90] !== V ? (Yt = /* @__PURE__ */ a.jsxs(se, { className: Ft, style: Bt, id: mt, ref: Ut, "aria-label": T, backgroundColor: K, theme: y, language: Y, minHeight: z, width: V, height: h, relativeHeight: tt, padding: Z, children: [
|
|
650
|
-
St,
|
|
651
|
-
Tt,
|
|
745
|
+
}, noOfTicks: L, dimmedOpacity: F, precision: at, customLayers: st }) : null, t[29] = ut, t[30] = k, t[31] = U, t[32] = p, t[33] = pt, t[34] = b, t[35] = st, t[36] = o, t[37] = vt, t[38] = F, t[39] = Y, t[40] = yt, t[41] = V, t[42] = ot, t[43] = w, t[44] = K, t[45] = L, t[46] = m, t[47] = lt, t[48] = at, t[49] = P, t[50] = B, t[51] = R, t[52] = S, t[53] = Tt, t[54] = ct, t[55] = W, t[56] = x, t[57] = H, t[58] = St, t[59] = $t, t[60] = O, t[61] = nt, t[62] = T, t[63] = M, t[64] = Ht) : Ht = t[64];
|
|
746
|
+
let Wt;
|
|
747
|
+
t[65] !== Pt || t[66] !== Ht ? (Wt = /* @__PURE__ */ s.jsxs(ci, { ref: c, children: [
|
|
652
748
|
Pt,
|
|
653
749
|
Ht
|
|
654
|
-
] }), t[
|
|
750
|
+
] }), t[65] = Pt, t[66] = Ht, t[67] = Wt) : Wt = t[67];
|
|
751
|
+
let Xt;
|
|
752
|
+
t[68] !== p?.footnote || t[69] !== p?.source || t[70] !== wt || t[71] !== n || t[72] !== x?.footnote || t[73] !== x?.source || t[74] !== C ? (Xt = n || wt ? /* @__PURE__ */ s.jsx(mi, { styles: {
|
|
753
|
+
footnote: x?.footnote,
|
|
754
|
+
source: x?.source
|
|
755
|
+
}, classNames: {
|
|
756
|
+
footnote: p?.footnote,
|
|
757
|
+
source: p?.source
|
|
758
|
+
}, sources: n, footNote: wt, width: C }) : null, t[68] = p?.footnote, t[69] = p?.source, t[70] = wt, t[71] = n, t[72] = x?.footnote, t[73] = x?.source, t[74] = C, t[75] = Xt) : Xt = t[75];
|
|
759
|
+
let Ft;
|
|
760
|
+
return t[76] !== rt || t[77] !== q || t[78] !== xt || t[79] !== f || t[80] !== X || t[81] !== z || t[82] !== et || t[83] !== J || t[84] !== qt || t[85] !== Ut || t[86] !== Et || t[87] !== Lt || t[88] !== Wt || t[89] !== Xt || t[90] !== O || t[91] !== C ? (Ft = /* @__PURE__ */ s.jsxs(ui, { className: qt, style: Ut, id: xt, ref: Kt, "aria-label": rt, backgroundColor: q, theme: O, language: X, minHeight: z, width: C, height: f, relativeHeight: J, padding: et, children: [
|
|
761
|
+
Et,
|
|
762
|
+
Lt,
|
|
763
|
+
Wt,
|
|
764
|
+
Xt
|
|
765
|
+
] }), t[76] = rt, t[77] = q, t[78] = xt, t[79] = f, t[80] = X, t[81] = z, t[82] = et, t[83] = J, t[84] = qt, t[85] = Ut, t[86] = Et, t[87] = Lt, t[88] = Wt, t[89] = Xt, t[90] = O, t[91] = C, t[92] = Ft) : Ft = t[92], Ft;
|
|
655
766
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
767
|
+
function be(i) {
|
|
768
|
+
return i.color;
|
|
658
769
|
}
|
|
659
|
-
function
|
|
660
|
-
return
|
|
770
|
+
function we(i) {
|
|
771
|
+
return i.color;
|
|
661
772
|
}
|
|
662
|
-
function
|
|
663
|
-
return
|
|
773
|
+
function Me(i) {
|
|
774
|
+
return i.color;
|
|
664
775
|
}
|
|
665
|
-
function
|
|
666
|
-
return
|
|
776
|
+
function Ve(i) {
|
|
777
|
+
return i !== void 0;
|
|
667
778
|
}
|
|
668
|
-
function
|
|
669
|
-
return
|
|
779
|
+
function je(i) {
|
|
780
|
+
return i !== void 0;
|
|
670
781
|
}
|
|
671
|
-
function
|
|
672
|
-
return
|
|
782
|
+
function Ce(i) {
|
|
783
|
+
return i.data;
|
|
673
784
|
}
|
|
674
|
-
function
|
|
675
|
-
return
|
|
785
|
+
function De(i) {
|
|
786
|
+
return i !== void 0;
|
|
676
787
|
}
|
|
677
|
-
function
|
|
678
|
-
return
|
|
788
|
+
function Ie(i) {
|
|
789
|
+
return i.data;
|
|
679
790
|
}
|
|
680
791
|
export {
|
|
681
|
-
|
|
792
|
+
Ue as StripChart
|
|
682
793
|
};
|
|
683
794
|
//# sourceMappingURL=StripChart.js.map
|