@undp/data-viz 2.1.3 → 2.1.5
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/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.js +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/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.js +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 +116 -113
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.js +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-BixTEyKW.cjs +2 -0
- package/dist/GraphEl-BixTEyKW.cjs.map +1 -0
- package/dist/{GraphEl-CRrAlbcr.js → GraphEl-Dyu_EIQb.js} +3 -2
- package/dist/GraphEl-Dyu_EIQb.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +2 -2
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.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 +2 -2
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.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/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +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/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +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 +2 -2
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.js +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.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/Spinner-CQZcjzwd.cjs +2 -0
- package/dist/Spinner-CQZcjzwd.cjs.map +1 -0
- package/dist/{Spinner-D7rnnwnA.js → Spinner-DVBnY6Vg.js} +5 -5
- package/dist/Spinner-DVBnY6Vg.js.map +1 -0
- 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/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +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-R1gTfap5.js +337 -0
- package/dist/index-R1gTfap5.js.map +1 -0
- package/dist/index-WML2dCZ0.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-WML2dCZ0.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- 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/Spinner-D7rnnwnA.js.map +0 -1
- package/dist/Spinner-DRMBUsX7.cjs +0 -2
- package/dist/Spinner-DRMBUsX7.cjs.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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as Te, j as
|
|
2
|
-
import { useRef as De, useState as
|
|
3
|
-
import { p as
|
|
1
|
+
import { c as Te, j as o, m as be } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as De, useState as ee, useEffect as $e } from "react";
|
|
3
|
+
import { p as C, f as Re } from "./parse-DlCRUFh_.js";
|
|
4
4
|
import { l as Fe, a as He } from "./simple-statistics-flVzqVtt.js";
|
|
5
5
|
import { o as Ye } from "./index-BZQYSqar.js";
|
|
6
6
|
import { n as Le } from "./numberFormattingFunction-14YCbkN2.js";
|
|
7
7
|
import { T as Pe } from "./Tooltip-Dj5eVppQ.js";
|
|
8
|
-
import { c as
|
|
8
|
+
import { c as P } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
9
9
|
import { g as Ee, A as Xe, C as Ge } from "./customArea-BUhPiPT6.js";
|
|
10
10
|
import { A as Be } from "./AxisTitle-jeI7am8o.js";
|
|
11
11
|
import { A as ze } from "./Axis-CRyfcLjc.js";
|
|
@@ -22,199 +22,199 @@ import { s as ai } from "./select-DKy99ogv.js";
|
|
|
22
22
|
import { a as si } from "./init-BhZylTFx.js";
|
|
23
23
|
import { p as ri } from "./pointer-CWRWOsrb.js";
|
|
24
24
|
import { u as li } from "./use-in-view-Cxa7y1TH.js";
|
|
25
|
-
import { m as
|
|
25
|
+
import { m as b } from "./proxy-BxkFHwUw.js";
|
|
26
26
|
import { GraphFooter as ci } from "./GraphFooter.js";
|
|
27
27
|
import { GraphHeader as mi } from "./GraphHeader.js";
|
|
28
28
|
import { Colors as Ve } from "./Colors.js";
|
|
29
|
-
import { ColorLegend as
|
|
30
|
-
import { E as
|
|
29
|
+
import { ColorLegend as fi } from "./ColorLegend.js";
|
|
30
|
+
import { E as ui } from "./EmptyState-C7ZXkZWd.js";
|
|
31
31
|
import { a as hi, G as yi } from "./GraphContainer-CRqzdKu2.js";
|
|
32
32
|
import { g as pi } from "./getNoOfTicks-CpmRjcRF.js";
|
|
33
33
|
function xi(i) {
|
|
34
34
|
const t = Te.c(102), {
|
|
35
|
-
data:
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
35
|
+
data: p,
|
|
36
|
+
width: Z,
|
|
37
|
+
height: Ft,
|
|
38
38
|
lineColor: L,
|
|
39
|
-
suffix:
|
|
40
|
-
prefix:
|
|
39
|
+
suffix: N,
|
|
40
|
+
prefix: A,
|
|
41
41
|
dateFormat: l,
|
|
42
|
-
highlightAreaSettings:
|
|
43
|
-
showValues:
|
|
44
|
-
noOfXTicks:
|
|
45
|
-
rightMargin:
|
|
46
|
-
leftMargin:
|
|
47
|
-
topMargin:
|
|
48
|
-
bottomMargin:
|
|
49
|
-
tooltip:
|
|
50
|
-
onSeriesMouseOver:
|
|
51
|
-
refValues:
|
|
52
|
-
minValue:
|
|
53
|
-
maxValue:
|
|
54
|
-
animate:
|
|
55
|
-
rtl:
|
|
56
|
-
strokeWidth:
|
|
57
|
-
showDots:
|
|
58
|
-
annotations:
|
|
59
|
-
customHighlightAreaSettings:
|
|
60
|
-
regressionLine:
|
|
61
|
-
showIntervalDots:
|
|
62
|
-
showIntervalValues:
|
|
63
|
-
intervalLineStrokeWidth:
|
|
64
|
-
intervalLineColors:
|
|
65
|
-
intervalAreaColor:
|
|
66
|
-
intervalAreaOpacity:
|
|
67
|
-
yAxisTitle:
|
|
68
|
-
noOfYTicks:
|
|
69
|
-
minDate:
|
|
70
|
-
maxDate:
|
|
71
|
-
curveType:
|
|
72
|
-
styles:
|
|
73
|
-
classNames:
|
|
74
|
-
precision:
|
|
75
|
-
customLayers:
|
|
76
|
-
} = i,
|
|
77
|
-
let
|
|
78
|
-
t[0] !==
|
|
79
|
-
once:
|
|
80
|
-
amount:
|
|
81
|
-
}, t[0] =
|
|
82
|
-
const c = li(
|
|
83
|
-
let
|
|
84
|
-
t[3] !==
|
|
85
|
-
if (c && !
|
|
42
|
+
highlightAreaSettings: x,
|
|
43
|
+
showValues: Ht,
|
|
44
|
+
noOfXTicks: pe,
|
|
45
|
+
rightMargin: Yt,
|
|
46
|
+
leftMargin: $,
|
|
47
|
+
topMargin: Pt,
|
|
48
|
+
bottomMargin: ht,
|
|
49
|
+
tooltip: _,
|
|
50
|
+
onSeriesMouseOver: Et,
|
|
51
|
+
refValues: ie,
|
|
52
|
+
minValue: ne,
|
|
53
|
+
maxValue: yt,
|
|
54
|
+
animate: n,
|
|
55
|
+
rtl: pt,
|
|
56
|
+
strokeWidth: tt,
|
|
57
|
+
showDots: oe,
|
|
58
|
+
annotations: ae,
|
|
59
|
+
customHighlightAreaSettings: xt,
|
|
60
|
+
regressionLine: dt,
|
|
61
|
+
showIntervalDots: se,
|
|
62
|
+
showIntervalValues: xe,
|
|
63
|
+
intervalLineStrokeWidth: Xt,
|
|
64
|
+
intervalLineColors: j,
|
|
65
|
+
intervalAreaColor: Gt,
|
|
66
|
+
intervalAreaOpacity: Bt,
|
|
67
|
+
yAxisTitle: gt,
|
|
68
|
+
noOfYTicks: de,
|
|
69
|
+
minDate: re,
|
|
70
|
+
maxDate: le,
|
|
71
|
+
curveType: vt,
|
|
72
|
+
styles: d,
|
|
73
|
+
classNames: g,
|
|
74
|
+
precision: T,
|
|
75
|
+
customLayers: E
|
|
76
|
+
} = i, wt = De(null);
|
|
77
|
+
let X;
|
|
78
|
+
t[0] !== n.amount || t[1] !== n.once ? (X = {
|
|
79
|
+
once: n.once,
|
|
80
|
+
amount: n.amount
|
|
81
|
+
}, t[0] = n.amount, t[1] = n.once, t[2] = X) : X = t[2];
|
|
82
|
+
const c = li(wt, X), [h, ce] = ee(!1);
|
|
83
|
+
let Mt, et;
|
|
84
|
+
t[3] !== n.duration || t[4] !== h || t[5] !== c ? (Mt = () => {
|
|
85
|
+
if (c && !h) {
|
|
86
86
|
const e = setTimeout(() => {
|
|
87
|
-
|
|
88
|
-
}, (
|
|
87
|
+
ce(!0);
|
|
88
|
+
}, (n.duration + 0.5) * 1e3);
|
|
89
89
|
return () => clearTimeout(e);
|
|
90
90
|
}
|
|
91
|
-
},
|
|
92
|
-
const
|
|
93
|
-
let
|
|
94
|
-
t[8] !==
|
|
95
|
-
top:
|
|
96
|
-
bottom:
|
|
97
|
-
left:
|
|
98
|
-
right:
|
|
99
|
-
}, t[8] =
|
|
100
|
-
const
|
|
101
|
-
let
|
|
102
|
-
t[13] !== l ? (
|
|
103
|
-
date:
|
|
91
|
+
}, et = [c, h, n.duration], t[3] = n.duration, t[4] = h, t[5] = c, t[6] = Mt, t[7] = et) : (Mt = t[6], et = t[7]), $e(Mt, et);
|
|
92
|
+
const it = vt === "linear" ? _e : vt === "step" ? ti : vt === "stepAfter" ? ei : vt === "stepBefore" ? ii : ni, [V, jt] = ee(void 0), [G, me] = ee(void 0), [u, f] = ee(void 0), zt = gt ? $ + 30 : $;
|
|
93
|
+
let B;
|
|
94
|
+
t[8] !== ht || t[9] !== Yt || t[10] !== zt || t[11] !== Pt ? (B = {
|
|
95
|
+
top: Pt,
|
|
96
|
+
bottom: ht,
|
|
97
|
+
left: zt,
|
|
98
|
+
right: Yt
|
|
99
|
+
}, t[8] = ht, t[9] = Yt, t[10] = zt, t[11] = Pt, t[12] = B) : B = t[12];
|
|
100
|
+
const w = B, nt = De(null);
|
|
101
|
+
let ot;
|
|
102
|
+
t[13] !== l ? (ot = (e) => ({
|
|
103
|
+
date: C(`${e.date}`, l, /* @__PURE__ */ new Date()),
|
|
104
104
|
y: e.y,
|
|
105
|
-
yMin:
|
|
106
|
-
yMax:
|
|
105
|
+
yMin: P(e.yMin) ? e.y : e.yMin,
|
|
106
|
+
yMax: P(e.yMax) ? e.y : e.yMax,
|
|
107
107
|
data: e.data
|
|
108
|
-
}), t[13] = l, t[14] =
|
|
109
|
-
const s = Ye(
|
|
110
|
-
let
|
|
111
|
-
if (t[15] !== l || t[16] !==
|
|
108
|
+
}), t[13] = l, t[14] = ot) : ot = t[14];
|
|
109
|
+
const s = Ye(p.filter(ki).map(ot), ["date"], ["asc"]);
|
|
110
|
+
let at;
|
|
111
|
+
if (t[15] !== l || t[16] !== x) {
|
|
112
112
|
let e;
|
|
113
113
|
t[18] !== l ? (e = (y) => ({
|
|
114
114
|
...y,
|
|
115
|
-
coordinates: [y.coordinates[0] === null ? null :
|
|
116
|
-
}), t[18] = l, t[19] = e) : e = t[19],
|
|
115
|
+
coordinates: [y.coordinates[0] === null ? null : C(`${y.coordinates[0]}`, l, /* @__PURE__ */ new Date()), y.coordinates[1] === null ? null : C(`${y.coordinates[1]}`, l, /* @__PURE__ */ new Date())]
|
|
116
|
+
}), t[18] = l, t[19] = e) : e = t[19], at = x.map(e), t[15] = l, t[16] = x, t[17] = at;
|
|
117
117
|
} else
|
|
118
|
-
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
if (t[20] !==
|
|
118
|
+
at = t[17];
|
|
119
|
+
const Ct = at;
|
|
120
|
+
let st;
|
|
121
|
+
if (t[20] !== xt || t[21] !== l) {
|
|
122
122
|
let e;
|
|
123
123
|
t[23] !== l ? (e = (y) => ({
|
|
124
124
|
...y,
|
|
125
|
-
coordinates: y.coordinates.map((
|
|
126
|
-
}), t[23] = l, t[24] = e) : e = t[24],
|
|
125
|
+
coordinates: y.coordinates.map((Q, te) => te % 2 === 0 ? C(`${Q}`, l, /* @__PURE__ */ new Date()) : Q)
|
|
126
|
+
}), t[23] = l, t[24] = e) : e = t[24], st = xt.map(e), t[20] = xt, t[21] = l, t[22] = st;
|
|
127
127
|
} else
|
|
128
|
-
|
|
129
|
-
const
|
|
130
|
-
let
|
|
131
|
-
t[25] !==
|
|
132
|
-
const r = Ze().domain([
|
|
128
|
+
st = t[22];
|
|
129
|
+
const fe = st, m = Z - w.left - w.right, v = Ft - w.top - w.bottom, Ut = re ? C(`${re}`, l, /* @__PURE__ */ new Date()) : s[0].date, ue = le ? C(`${le}`, l, /* @__PURE__ */ new Date()) : s[s.length - 1].date, M = P(ne) ? Math.min(...s.map(Di)) ? Math.min(...s.map(Vi)) > 0 ? 0 : Math.min(...s.map(Li)) : 0 : ne, z = Math.max(...s.map(bi)) ? Math.max(...s.map(Oi)) : 0, a = Qe().domain([Ut, ue]).range([0, m]);
|
|
130
|
+
let rt;
|
|
131
|
+
t[25] !== z || t[26] !== yt ? (rt = P(yt) ? z > 0 ? z : 0 : yt, t[25] = z, t[26] = yt, t[27] = rt) : rt = t[27];
|
|
132
|
+
const r = Ze().domain([M, rt]).range([v, 0]).nice(), qt = Ne().x((e) => a(e.date)).y((e) => r(e.y)).curve(it), At = Ne().x((e) => a(e.date)).y((e) => r(e.yMin)).curve(it), Jt = Ne().x((e) => a(e.date)).y((e) => r(e.yMax)).curve(it), Kt = oi().x((e) => a(e.date)).y0((e) => r(e.yMin)).y1((e) => r(e.yMax)).curve(it), Qt = r.ticks(de), Zt = a.ticks(pe);
|
|
133
133
|
$e(() => {
|
|
134
|
-
const e = (
|
|
135
|
-
const
|
|
136
|
-
|
|
134
|
+
const e = (Q) => {
|
|
135
|
+
const te = s[si(s.map(Ai), a.invert(ri(Q)[0]), 0)];
|
|
136
|
+
jt(te || s[s.length - 1]), Et?.(te || s[s.length - 1]), f(Q.clientY), me(Q.clientX);
|
|
137
137
|
}, y = () => {
|
|
138
|
-
|
|
138
|
+
jt(void 0), me(void 0), f(void 0), Et?.(void 0);
|
|
139
139
|
};
|
|
140
|
-
ai(
|
|
141
|
-
}, [a, s,
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
t[28] !==
|
|
145
|
-
const
|
|
146
|
-
let
|
|
147
|
-
t[35] !==
|
|
148
|
-
gridLines:
|
|
149
|
-
labels:
|
|
150
|
-
}, t[35] =
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
t[38] !==
|
|
154
|
-
gridLines:
|
|
155
|
-
labels:
|
|
156
|
-
}, t[38] =
|
|
157
|
-
const
|
|
140
|
+
ai(nt.current).on("mousemove", e).on("mouseout", y);
|
|
141
|
+
}, [a, s, Et]);
|
|
142
|
+
const _t = Fe(s.filter(Ci).map((e) => [a(e.date), r(e.y)])), Ot = He(_t);
|
|
143
|
+
let O;
|
|
144
|
+
t[28] !== n || t[29] !== v || t[30] !== m || t[31] !== Ct || t[32] !== c || t[33] !== a ? (O = /* @__PURE__ */ o.jsx(Ke, { areaSettings: Ct, width: m, height: v, scale: a, animate: n, isInView: c }), t[28] = n, t[29] = v, t[30] = m, t[31] = Ct, t[32] = c, t[33] = a, t[34] = O) : O = t[34];
|
|
145
|
+
const bt = d?.yAxis?.gridLines, Lt = d?.yAxis?.labels;
|
|
146
|
+
let lt;
|
|
147
|
+
t[35] !== bt || t[36] !== Lt ? (lt = {
|
|
148
|
+
gridLines: bt,
|
|
149
|
+
labels: Lt
|
|
150
|
+
}, t[35] = bt, t[36] = Lt, t[37] = lt) : lt = t[37];
|
|
151
|
+
const ct = g?.yAxis?.gridLines, Vt = g?.yAxis?.labels;
|
|
152
|
+
let U;
|
|
153
|
+
t[38] !== ct || t[39] !== Vt ? (U = {
|
|
154
|
+
gridLines: ct,
|
|
155
|
+
labels: Vt
|
|
156
|
+
}, t[38] = ct, t[39] = Vt, t[40] = U) : U = t[40];
|
|
157
|
+
const Dt = r(M < 0 ? 0 : M), kt = r(M < 0 ? 0 : M), It = 0 - $, St = m + w.right, Nt = M < 0 ? 0 : M;
|
|
158
158
|
let D;
|
|
159
|
-
t[41] !==
|
|
160
|
-
const
|
|
159
|
+
t[41] !== T || t[42] !== A || t[43] !== N || t[44] !== Nt ? (D = Le(Nt, "NA", T, A, N), t[41] = T, t[42] = A, t[43] = N, t[44] = Nt, t[45] = D) : D = t[45];
|
|
160
|
+
const $t = 0 - $, q = r(M < 0 ? 0 : M), he = z < 0 ? "1em" : -5;
|
|
161
161
|
let k;
|
|
162
|
-
t[46] !==
|
|
163
|
-
x:
|
|
164
|
-
y:
|
|
162
|
+
t[46] !== $t || t[47] !== q || t[48] !== he ? (k = {
|
|
163
|
+
x: $t,
|
|
164
|
+
y: q,
|
|
165
165
|
dx: 0,
|
|
166
|
-
dy:
|
|
167
|
-
}, t[46] =
|
|
168
|
-
const
|
|
169
|
-
let
|
|
170
|
-
t[50] !==
|
|
171
|
-
axis:
|
|
172
|
-
label:
|
|
173
|
-
}, t[50] =
|
|
174
|
-
const
|
|
175
|
-
let
|
|
176
|
-
t[53] !==
|
|
177
|
-
axis:
|
|
178
|
-
label:
|
|
179
|
-
}, t[53] =
|
|
180
|
-
let
|
|
181
|
-
t[56] !==
|
|
182
|
-
const
|
|
183
|
-
let
|
|
184
|
-
t[65] !==
|
|
185
|
-
let
|
|
186
|
-
t[71] !==
|
|
187
|
-
let
|
|
188
|
-
t[73] !==
|
|
189
|
-
fill:
|
|
190
|
-
}, t[73] =
|
|
191
|
-
let
|
|
192
|
-
t[75] !==
|
|
166
|
+
dy: he
|
|
167
|
+
}, t[46] = $t, t[47] = q, t[48] = he, t[49] = k) : k = t[49];
|
|
168
|
+
const ye = g?.xAxis?.axis, Tt = g?.yAxis?.labels;
|
|
169
|
+
let J;
|
|
170
|
+
t[50] !== ye || t[51] !== Tt ? (J = {
|
|
171
|
+
axis: ye,
|
|
172
|
+
label: Tt
|
|
173
|
+
}, t[50] = ye, t[51] = Tt, t[52] = J) : J = t[52];
|
|
174
|
+
const mt = d?.xAxis?.axis, ft = d?.yAxis?.labels;
|
|
175
|
+
let W;
|
|
176
|
+
t[53] !== mt || t[54] !== ft ? (W = {
|
|
177
|
+
axis: mt,
|
|
178
|
+
label: ft
|
|
179
|
+
}, t[53] = mt, t[54] = ft, t[55] = W) : W = t[55];
|
|
180
|
+
let ut;
|
|
181
|
+
t[56] !== Dt || t[57] !== kt || t[58] !== It || t[59] !== St || t[60] !== D || t[61] !== k || t[62] !== J || t[63] !== W ? (ut = /* @__PURE__ */ o.jsx(ze, { y1: Dt, y2: kt, x1: It, x2: St, label: D, labelPos: k, classNames: J, styles: W }), t[56] = Dt, t[57] = kt, t[58] = It, t[59] = St, t[60] = D, t[61] = k, t[62] = J, t[63] = W, t[64] = ut) : ut = t[64];
|
|
182
|
+
const R = 0 - $ + 15, F = v / 2, H = d?.yAxis?.title, Y = g?.yAxis?.title;
|
|
183
|
+
let I;
|
|
184
|
+
t[65] !== R || t[66] !== F || t[67] !== H || t[68] !== Y || t[69] !== gt ? (I = /* @__PURE__ */ o.jsx(Be, { x: R, y: F, style: H, className: Y, text: gt, rotate90: !0 }), t[65] = R, t[66] = F, t[67] = H, t[68] = Y, t[69] = gt, t[70] = I) : I = t[70];
|
|
185
|
+
let S;
|
|
186
|
+
t[71] !== E ? (S = E.filter(wi).map(vi), t[71] = E, t[72] = S) : S = t[72];
|
|
187
|
+
let K;
|
|
188
|
+
t[73] !== Gt ? (K = {
|
|
189
|
+
fill: Gt
|
|
190
|
+
}, t[73] = Gt, t[74] = K) : K = t[74];
|
|
191
|
+
let Wt;
|
|
192
|
+
t[75] !== n.duration ? (Wt = {
|
|
193
193
|
opacity: 0,
|
|
194
194
|
transition: {
|
|
195
|
-
duration:
|
|
195
|
+
duration: n.duration
|
|
196
196
|
}
|
|
197
|
-
}, t[75] =
|
|
198
|
-
let
|
|
199
|
-
t[77] !== L || t[78] !==
|
|
197
|
+
}, t[75] = n.duration, t[76] = Wt) : Wt = t[76];
|
|
198
|
+
let Rt;
|
|
199
|
+
t[77] !== L || t[78] !== tt ? (Rt = {
|
|
200
200
|
stroke: L,
|
|
201
201
|
fill: "none",
|
|
202
|
-
strokeWidth:
|
|
203
|
-
}, t[77] = L, t[78] =
|
|
202
|
+
strokeWidth: tt
|
|
203
|
+
}, t[77] = L, t[78] = tt, t[79] = Rt) : Rt = t[79];
|
|
204
204
|
let ge;
|
|
205
|
-
t[80] !==
|
|
205
|
+
t[80] !== n.duration ? (ge = {
|
|
206
206
|
opacity: 0,
|
|
207
207
|
transition: {
|
|
208
|
-
duration:
|
|
208
|
+
duration: n.duration
|
|
209
209
|
}
|
|
210
|
-
}, t[80] =
|
|
211
|
-
const ke = s.map((e, y) => /* @__PURE__ */
|
|
212
|
-
|
|
210
|
+
}, t[80] = n.duration, t[81] = ge) : ge = t[81];
|
|
211
|
+
const ke = s.map((e, y) => /* @__PURE__ */ o.jsx(b.g, { children: P(e.y) ? null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
212
|
+
oe ? /* @__PURE__ */ o.jsx(b.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, style: {
|
|
213
213
|
fill: L
|
|
214
214
|
}, exit: {
|
|
215
215
|
opacity: 0,
|
|
216
216
|
transition: {
|
|
217
|
-
duration:
|
|
217
|
+
duration: n.duration
|
|
218
218
|
}
|
|
219
219
|
}, variants: {
|
|
220
220
|
initial: {
|
|
@@ -225,68 +225,68 @@ function xi(i) {
|
|
|
225
225
|
whileInView: {
|
|
226
226
|
opacity: 1,
|
|
227
227
|
transition: {
|
|
228
|
-
duration:
|
|
229
|
-
delay:
|
|
228
|
+
duration: h ? n.duration : 0.5,
|
|
229
|
+
delay: h ? 0 : n.duration
|
|
230
230
|
},
|
|
231
231
|
cx: a(e.date),
|
|
232
232
|
cy: r(e.y)
|
|
233
233
|
}
|
|
234
234
|
}, initial: "initial", animate: c ? "whileInView" : "initial" }) : null,
|
|
235
|
-
|
|
236
|
-
/* @__PURE__ */
|
|
235
|
+
se ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
236
|
+
/* @__PURE__ */ o.jsx(b.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
|
|
237
237
|
opacity: 0,
|
|
238
238
|
transition: {
|
|
239
|
-
duration:
|
|
239
|
+
duration: n.duration
|
|
240
240
|
}
|
|
241
241
|
}, variants: {
|
|
242
242
|
initial: {
|
|
243
243
|
opacity: 0,
|
|
244
|
-
fill:
|
|
244
|
+
fill: j[0],
|
|
245
245
|
cx: a(e.date),
|
|
246
246
|
cy: r(e.yMin)
|
|
247
247
|
},
|
|
248
248
|
whileInView: {
|
|
249
249
|
opacity: 1,
|
|
250
250
|
transition: {
|
|
251
|
-
duration:
|
|
252
|
-
delay:
|
|
251
|
+
duration: h ? n.duration : 0.5,
|
|
252
|
+
delay: h ? 0 : n.duration
|
|
253
253
|
},
|
|
254
254
|
cx: a(e.date),
|
|
255
255
|
cy: r(e.yMin),
|
|
256
|
-
fill:
|
|
256
|
+
fill: j[0]
|
|
257
257
|
}
|
|
258
258
|
}, initial: "initial", animate: c ? "whileInView" : "initial" }),
|
|
259
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ o.jsx(b.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
|
|
260
260
|
opacity: 0,
|
|
261
261
|
transition: {
|
|
262
|
-
duration:
|
|
262
|
+
duration: n.duration
|
|
263
263
|
}
|
|
264
264
|
}, variants: {
|
|
265
265
|
initial: {
|
|
266
266
|
opacity: 0,
|
|
267
|
-
fill:
|
|
267
|
+
fill: j[1],
|
|
268
268
|
cx: a(e.date),
|
|
269
269
|
cy: r(e.yMax)
|
|
270
270
|
},
|
|
271
271
|
whileInView: {
|
|
272
272
|
opacity: 1,
|
|
273
|
-
fill:
|
|
273
|
+
fill: j[1],
|
|
274
274
|
transition: {
|
|
275
|
-
duration:
|
|
276
|
-
delay:
|
|
275
|
+
duration: h ? n.duration : 0.5,
|
|
276
|
+
delay: h ? 0 : n.duration
|
|
277
277
|
},
|
|
278
278
|
cx: a(e.date),
|
|
279
279
|
cy: r(e.yMax)
|
|
280
280
|
}
|
|
281
281
|
}, initial: "initial", animate: c ? "whileInView" : "initial" })
|
|
282
282
|
] }) : null,
|
|
283
|
-
|
|
283
|
+
Ht ? /* @__PURE__ */ o.jsx(b.text, { dy: -8, style: {
|
|
284
284
|
textAnchor: "middle",
|
|
285
|
-
...
|
|
286
|
-
}, className: be("graph-value text-xs font-bold",
|
|
285
|
+
...d?.graphObjectValues || {}
|
|
286
|
+
}, className: be("graph-value text-xs font-bold", g?.graphObjectValues), exit: {
|
|
287
287
|
opacity: 0,
|
|
288
288
|
transition: {
|
|
289
|
-
duration:
|
|
289
|
+
duration: n.duration
|
|
290
290
|
}
|
|
291
291
|
}, variants: {
|
|
292
292
|
initial: {
|
|
@@ -301,24 +301,24 @@ function xi(i) {
|
|
|
301
301
|
fill: L,
|
|
302
302
|
y: r(e.y),
|
|
303
303
|
transition: {
|
|
304
|
-
duration:
|
|
305
|
-
delay:
|
|
304
|
+
duration: h ? n.duration : 0.5,
|
|
305
|
+
delay: h ? 0 : n.duration
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
}, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.y, "NA",
|
|
309
|
-
|
|
310
|
-
/* @__PURE__ */
|
|
308
|
+
}, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.y, "NA", T, A, N) }) : null,
|
|
309
|
+
xe ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
310
|
+
/* @__PURE__ */ o.jsx(b.text, { dy: "1em", style: {
|
|
311
311
|
textAnchor: "middle",
|
|
312
|
-
...
|
|
313
|
-
}, className: be("text-xs font-bold",
|
|
312
|
+
...d?.graphObjectValues || {}
|
|
313
|
+
}, className: be("text-xs font-bold", g?.graphObjectValues), exit: {
|
|
314
314
|
opacity: 0,
|
|
315
315
|
transition: {
|
|
316
|
-
duration:
|
|
316
|
+
duration: n.duration
|
|
317
317
|
}
|
|
318
318
|
}, variants: {
|
|
319
319
|
initial: {
|
|
320
320
|
opacity: 0,
|
|
321
|
-
fill:
|
|
321
|
+
fill: j[0],
|
|
322
322
|
x: a(e.date),
|
|
323
323
|
y: r(e.yMin)
|
|
324
324
|
},
|
|
@@ -326,178 +326,178 @@ function xi(i) {
|
|
|
326
326
|
opacity: 1,
|
|
327
327
|
x: a(e.date),
|
|
328
328
|
y: r(e.yMin),
|
|
329
|
-
fill:
|
|
329
|
+
fill: j[0],
|
|
330
330
|
transition: {
|
|
331
|
-
duration:
|
|
332
|
-
delay:
|
|
331
|
+
duration: h ? n.duration : 0.5,
|
|
332
|
+
delay: h ? 0 : n.duration
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
}, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMin, "NA",
|
|
336
|
-
/* @__PURE__ */
|
|
335
|
+
}, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMin, "NA", T, A, N) }),
|
|
336
|
+
/* @__PURE__ */ o.jsx(b.text, { dy: -8, style: {
|
|
337
337
|
textAnchor: "middle",
|
|
338
|
-
...
|
|
339
|
-
}, className: be("text-xs font-bold",
|
|
338
|
+
...d?.graphObjectValues || {}
|
|
339
|
+
}, className: be("text-xs font-bold", g?.graphObjectValues), exit: {
|
|
340
340
|
opacity: 0,
|
|
341
341
|
transition: {
|
|
342
|
-
duration:
|
|
342
|
+
duration: n.duration
|
|
343
343
|
}
|
|
344
344
|
}, variants: {
|
|
345
345
|
initial: {
|
|
346
346
|
opacity: 0,
|
|
347
|
-
fill:
|
|
347
|
+
fill: j[1],
|
|
348
348
|
x: a(e.date),
|
|
349
349
|
y: r(e.yMax)
|
|
350
350
|
},
|
|
351
351
|
whileInView: {
|
|
352
352
|
opacity: 1,
|
|
353
|
-
fill:
|
|
353
|
+
fill: j[1],
|
|
354
354
|
x: a(e.date),
|
|
355
355
|
y: r(e.yMax),
|
|
356
356
|
transition: {
|
|
357
|
-
duration:
|
|
358
|
-
delay:
|
|
357
|
+
duration: h ? n.duration : 0.5,
|
|
358
|
+
delay: h ? 0 : n.duration
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
}, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMax, "NA",
|
|
361
|
+
}, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMax, "NA", T, A, N) })
|
|
362
362
|
] }) : null
|
|
363
363
|
] }) }, y));
|
|
364
364
|
let ve;
|
|
365
|
-
t[82] !== ke ? (ve = /* @__PURE__ */
|
|
366
|
-
const Ie =
|
|
367
|
-
const
|
|
368
|
-
x: e.xCoordinate ? a(
|
|
365
|
+
t[82] !== ke ? (ve = /* @__PURE__ */ o.jsx("g", { children: ke }), t[82] = ke, t[83] = ve) : ve = t[83];
|
|
366
|
+
const Ie = ae.map((e, y) => {
|
|
367
|
+
const Q = Ee({
|
|
368
|
+
x: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
369
369
|
y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
|
|
370
370
|
}, {
|
|
371
|
-
x: e.xCoordinate ? a(
|
|
371
|
+
x: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
|
|
372
372
|
y: e.yCoordinate ? r(e.yCoordinate) : 0
|
|
373
|
-
},
|
|
374
|
-
y1:
|
|
375
|
-
x1:
|
|
373
|
+
}, P(e.connectorRadius) ? 3.5 : e.connectorRadius), te = e.showConnector ? {
|
|
374
|
+
y1: Q.y,
|
|
375
|
+
x1: Q.x,
|
|
376
376
|
y2: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
|
|
377
|
-
x2: e.xCoordinate ? a(
|
|
377
|
+
x2: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
378
378
|
cy: e.yCoordinate ? r(e.yCoordinate) : 0,
|
|
379
|
-
cx: e.xCoordinate ? a(
|
|
380
|
-
circleRadius:
|
|
379
|
+
cx: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
|
|
380
|
+
circleRadius: P(e.connectorRadius) ? 3.5 : e.connectorRadius,
|
|
381
381
|
strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
|
|
382
382
|
} : void 0, We = {
|
|
383
383
|
y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
|
|
384
|
-
x:
|
|
385
|
-
width:
|
|
384
|
+
x: pt ? 0 : e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
385
|
+
width: pt ? e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : m + w.right - (e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
|
|
386
386
|
maxWidth: e.maxWidth,
|
|
387
387
|
fontWeight: e.fontWeight,
|
|
388
388
|
align: e.align
|
|
389
389
|
};
|
|
390
|
-
return /* @__PURE__ */
|
|
390
|
+
return /* @__PURE__ */ o.jsx(Xe, { color: e.color, connectorsSettings: te, labelSettings: We, text: e.text, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, y);
|
|
391
391
|
});
|
|
392
392
|
let we;
|
|
393
|
-
t[84] !== Ie ? (we = /* @__PURE__ */
|
|
394
|
-
const Se =
|
|
393
|
+
t[84] !== Ie ? (we = /* @__PURE__ */ o.jsx("g", { children: Ie }), t[84] = Ie, t[85] = we) : we = t[85];
|
|
394
|
+
const Se = dt ? /* @__PURE__ */ o.jsx(qe, { x1: 0, x2: m, y1: Ot(0), y2: Ot(m), graphHeight: v, graphWidth: m, className: g?.regLine, style: d?.regLine, color: typeof dt == "string" ? dt : void 0, animate: n, isInView: c }) : null;
|
|
395
395
|
let Me;
|
|
396
|
-
t[86] !== Se ? (Me = /* @__PURE__ */
|
|
396
|
+
t[86] !== Se ? (Me = /* @__PURE__ */ o.jsx("g", { children: Se }), t[86] = Se, t[87] = Me) : Me = t[87];
|
|
397
397
|
let je;
|
|
398
|
-
t[88] !==
|
|
398
|
+
t[88] !== E ? (je = E.filter(gi).map(di), t[88] = E, t[89] = je) : je = t[89];
|
|
399
399
|
let Ce;
|
|
400
400
|
t[90] === Symbol.for("react.memo_cache_sentinel") ? (Ce = {
|
|
401
401
|
fill: "none",
|
|
402
402
|
pointerEvents: "all"
|
|
403
403
|
}, t[90] = Ce) : Ce = t[90];
|
|
404
404
|
let Ae;
|
|
405
|
-
t[91] !==
|
|
405
|
+
t[91] !== nt || t[92] !== v || t[93] !== m ? (Ae = /* @__PURE__ */ o.jsx("rect", { ref: nt, style: Ce, width: m, height: v }), t[91] = nt, t[92] = v, t[93] = m, t[94] = Ae) : Ae = t[94];
|
|
406
406
|
let Oe;
|
|
407
|
-
return t[95] !==
|
|
408
|
-
/* @__PURE__ */
|
|
409
|
-
|
|
410
|
-
/* @__PURE__ */
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
-
|
|
414
|
-
|
|
407
|
+
return t[95] !== g?.tooltip || t[96] !== G || t[97] !== u || t[98] !== V || t[99] !== d?.tooltip || t[100] !== _ ? (Oe = V && _ && G && u ? /* @__PURE__ */ o.jsx(Pe, { data: V, body: _, xPos: G, yPos: u, backgroundStyle: d?.tooltip, className: g?.tooltip }) : null, t[95] = g?.tooltip, t[96] = G, t[97] = u, t[98] = V, t[99] = d?.tooltip, t[100] = _, t[101] = Oe) : Oe = t[101], /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
408
|
+
/* @__PURE__ */ o.jsx(b.svg, { width: `${Z}px`, height: `${Ft}px`, viewBox: `0 0 ${Z} ${Ft}`, direction: "ltr", ref: wt, children: /* @__PURE__ */ o.jsxs("g", { transform: `translate(${w.left},${w.top})`, children: [
|
|
409
|
+
O,
|
|
410
|
+
/* @__PURE__ */ o.jsx(Ge, { areaSettings: fe, scaleX: a, scaleY: r, animate: n, isInView: c }),
|
|
411
|
+
/* @__PURE__ */ o.jsxs("g", { children: [
|
|
412
|
+
/* @__PURE__ */ o.jsx(Je, { values: Qt.filter(ji), y: Qt.filter(Mi).map((e) => r(e)), x1: 0 - $, x2: m + w.right, styles: lt, classNames: U, suffix: N, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: T }),
|
|
413
|
+
ut,
|
|
414
|
+
I
|
|
415
415
|
] }),
|
|
416
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ o.jsx("g", { children: Zt.map((e, y) => /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("text", { y: v, x: a(e), style: {
|
|
417
417
|
textAnchor: "middle"
|
|
418
418
|
}, className: "fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", dy: 15, children: Re(e, l) }) }, y)) }),
|
|
419
|
-
|
|
420
|
-
/* @__PURE__ */
|
|
419
|
+
S,
|
|
420
|
+
/* @__PURE__ */ o.jsx(b.path, { style: K, exit: Wt, variants: {
|
|
421
421
|
initial: {
|
|
422
422
|
opacity: 0,
|
|
423
|
-
d:
|
|
423
|
+
d: Kt(s) || ""
|
|
424
424
|
},
|
|
425
425
|
whileInView: {
|
|
426
|
-
opacity:
|
|
427
|
-
d:
|
|
426
|
+
opacity: Bt,
|
|
427
|
+
d: Kt(s) || "",
|
|
428
428
|
transition: {
|
|
429
|
-
duration:
|
|
429
|
+
duration: n.duration
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
}, initial: "initial", animate: c ? "whileInView" : "initial" }),
|
|
433
|
-
|
|
434
|
-
/* @__PURE__ */
|
|
435
|
-
stroke:
|
|
433
|
+
Xt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
434
|
+
/* @__PURE__ */ o.jsx(b.path, { style: {
|
|
435
|
+
stroke: j[0],
|
|
436
436
|
fill: "none",
|
|
437
|
-
strokeWidth:
|
|
437
|
+
strokeWidth: Xt
|
|
438
438
|
}, exit: {
|
|
439
439
|
opacity: 0,
|
|
440
440
|
transition: {
|
|
441
|
-
duration:
|
|
441
|
+
duration: n.duration
|
|
442
442
|
}
|
|
443
443
|
}, variants: {
|
|
444
444
|
initial: {
|
|
445
445
|
pathLength: 0,
|
|
446
|
-
d:
|
|
446
|
+
d: At(s) || "",
|
|
447
447
|
opacity: 1
|
|
448
448
|
},
|
|
449
449
|
whileInView: {
|
|
450
450
|
pathLength: 1,
|
|
451
|
-
d:
|
|
451
|
+
d: At(s) || "",
|
|
452
452
|
opacity: 1,
|
|
453
453
|
transition: {
|
|
454
|
-
duration:
|
|
454
|
+
duration: n.duration
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
}, initial: "initial", animate: c ? "whileInView" : "initial" }),
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
-
stroke:
|
|
458
|
+
/* @__PURE__ */ o.jsx(b.path, { style: {
|
|
459
|
+
stroke: j[1],
|
|
460
460
|
fill: "none",
|
|
461
|
-
strokeWidth:
|
|
461
|
+
strokeWidth: Xt
|
|
462
462
|
}, exit: {
|
|
463
463
|
opacity: 0,
|
|
464
464
|
transition: {
|
|
465
|
-
duration:
|
|
465
|
+
duration: n.duration
|
|
466
466
|
}
|
|
467
467
|
}, variants: {
|
|
468
468
|
initial: {
|
|
469
469
|
pathLength: 0,
|
|
470
|
-
d:
|
|
470
|
+
d: Jt(s) || "",
|
|
471
471
|
opacity: 1
|
|
472
472
|
},
|
|
473
473
|
whileInView: {
|
|
474
474
|
pathLength: 1,
|
|
475
|
-
d:
|
|
475
|
+
d: Jt(s) || "",
|
|
476
476
|
opacity: 1,
|
|
477
477
|
transition: {
|
|
478
|
-
duration:
|
|
478
|
+
duration: n.duration
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}, initial: "initial", animate: c ? "whileInView" : "initial" })
|
|
482
482
|
] }) : null,
|
|
483
|
-
/* @__PURE__ */
|
|
483
|
+
/* @__PURE__ */ o.jsx(b.path, { style: Rt, exit: ge, variants: {
|
|
484
484
|
initial: {
|
|
485
485
|
pathLength: 0,
|
|
486
|
-
d:
|
|
486
|
+
d: qt(s) || "",
|
|
487
487
|
opacity: 1
|
|
488
488
|
},
|
|
489
489
|
whileInView: {
|
|
490
490
|
pathLength: 1,
|
|
491
|
-
d:
|
|
491
|
+
d: qt(s) || "",
|
|
492
492
|
opacity: 1,
|
|
493
493
|
transition: {
|
|
494
|
-
duration:
|
|
494
|
+
duration: n.duration
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
}, initial: "initial", animate: c ? "whileInView" : "initial" }),
|
|
498
|
-
V ? /* @__PURE__ */
|
|
498
|
+
V ? /* @__PURE__ */ o.jsx("line", { y1: 0, y2: v, x1: a(V.date), x2: a(V.date), className: be("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", g?.mouseOverLine), style: d?.mouseOverLine }) : null,
|
|
499
499
|
ve,
|
|
500
|
-
|
|
500
|
+
ie ? /* @__PURE__ */ o.jsx(o.Fragment, { children: ie.map((e, y) => /* @__PURE__ */ o.jsx(Ue, { text: e.text, color: e.color, y: r(e.value), x1: 0 - $, x2: m + w.right, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, y)) }) : null,
|
|
501
501
|
we,
|
|
502
502
|
Me,
|
|
503
503
|
je,
|
|
@@ -525,7 +525,7 @@ function ji(i) {
|
|
|
525
525
|
return i !== 0;
|
|
526
526
|
}
|
|
527
527
|
function Ci(i) {
|
|
528
|
-
return !
|
|
528
|
+
return !P(i.date) && !P(i.y);
|
|
529
529
|
}
|
|
530
530
|
function Ai(i) {
|
|
531
531
|
return i.date;
|
|
@@ -546,129 +546,136 @@ function Di(i) {
|
|
|
546
546
|
return Math.min(i.y, i.yMax, i.yMin);
|
|
547
547
|
}
|
|
548
548
|
function ki(i) {
|
|
549
|
-
return !
|
|
549
|
+
return !P(i.y);
|
|
550
550
|
}
|
|
551
551
|
function pn(i) {
|
|
552
|
-
const t = Te.c(
|
|
553
|
-
data:
|
|
554
|
-
graphTitle:
|
|
555
|
-
suffix:
|
|
552
|
+
const t = Te.c(104), {
|
|
553
|
+
data: p,
|
|
554
|
+
graphTitle: Z,
|
|
555
|
+
suffix: Ft,
|
|
556
556
|
sources: L,
|
|
557
|
-
prefix:
|
|
558
|
-
graphDescription:
|
|
557
|
+
prefix: N,
|
|
558
|
+
graphDescription: A,
|
|
559
559
|
height: l,
|
|
560
|
-
width:
|
|
561
|
-
footNote:
|
|
562
|
-
noOfXTicks:
|
|
563
|
-
dateFormat:
|
|
564
|
-
showValues:
|
|
565
|
-
backgroundColor:
|
|
566
|
-
padding:
|
|
567
|
-
lineColor:
|
|
568
|
-
leftMargin:
|
|
569
|
-
rightMargin:
|
|
570
|
-
topMargin:
|
|
571
|
-
bottomMargin:
|
|
572
|
-
tooltip:
|
|
573
|
-
refValues:
|
|
574
|
-
highlightAreaSettings:
|
|
575
|
-
relativeHeight:
|
|
576
|
-
onSeriesMouseOver:
|
|
577
|
-
graphID:
|
|
578
|
-
minValue:
|
|
579
|
-
maxValue:
|
|
580
|
-
regressionLine:
|
|
581
|
-
showIntervalDots:
|
|
582
|
-
showIntervalValues:
|
|
583
|
-
intervalLineStrokeWidth:
|
|
584
|
-
intervalLineColors:
|
|
585
|
-
intervalAreaColor:
|
|
586
|
-
intervalAreaOpacity:
|
|
587
|
-
graphDownload:
|
|
588
|
-
dataDownload:
|
|
589
|
-
animate:
|
|
590
|
-
language:
|
|
591
|
-
minHeight:
|
|
592
|
-
strokeWidth:
|
|
593
|
-
showDots:
|
|
594
|
-
annotations:
|
|
595
|
-
customHighlightAreaSettings:
|
|
560
|
+
width: x,
|
|
561
|
+
footNote: Ht,
|
|
562
|
+
noOfXTicks: pe,
|
|
563
|
+
dateFormat: Yt,
|
|
564
|
+
showValues: $,
|
|
565
|
+
backgroundColor: Pt,
|
|
566
|
+
padding: ht,
|
|
567
|
+
lineColor: _,
|
|
568
|
+
leftMargin: Et,
|
|
569
|
+
rightMargin: ie,
|
|
570
|
+
topMargin: ne,
|
|
571
|
+
bottomMargin: yt,
|
|
572
|
+
tooltip: n,
|
|
573
|
+
refValues: pt,
|
|
574
|
+
highlightAreaSettings: tt,
|
|
575
|
+
relativeHeight: oe,
|
|
576
|
+
onSeriesMouseOver: ae,
|
|
577
|
+
graphID: xt,
|
|
578
|
+
minValue: dt,
|
|
579
|
+
maxValue: se,
|
|
580
|
+
regressionLine: xe,
|
|
581
|
+
showIntervalDots: Xt,
|
|
582
|
+
showIntervalValues: j,
|
|
583
|
+
intervalLineStrokeWidth: Gt,
|
|
584
|
+
intervalLineColors: Bt,
|
|
585
|
+
intervalAreaColor: gt,
|
|
586
|
+
intervalAreaOpacity: de,
|
|
587
|
+
graphDownload: re,
|
|
588
|
+
dataDownload: le,
|
|
589
|
+
animate: vt,
|
|
590
|
+
language: d,
|
|
591
|
+
minHeight: g,
|
|
592
|
+
strokeWidth: T,
|
|
593
|
+
showDots: E,
|
|
594
|
+
annotations: wt,
|
|
595
|
+
customHighlightAreaSettings: X,
|
|
596
596
|
theme: c,
|
|
597
|
-
ariaLabel:
|
|
598
|
-
yAxisTitle:
|
|
599
|
-
noOfYTicks:
|
|
600
|
-
minDate:
|
|
601
|
-
maxDate:
|
|
597
|
+
ariaLabel: h,
|
|
598
|
+
yAxisTitle: ce,
|
|
599
|
+
noOfYTicks: Mt,
|
|
600
|
+
minDate: et,
|
|
601
|
+
maxDate: it,
|
|
602
602
|
colorLegendTitle: V,
|
|
603
|
-
colorLegendColors:
|
|
604
|
-
colorLegendDomain:
|
|
605
|
-
curveType:
|
|
603
|
+
colorLegendColors: jt,
|
|
604
|
+
colorLegendDomain: G,
|
|
605
|
+
curveType: me,
|
|
606
606
|
styles: u,
|
|
607
|
-
classNames:
|
|
608
|
-
precision:
|
|
609
|
-
customLayers:
|
|
610
|
-
} = i,
|
|
611
|
-
let
|
|
612
|
-
t[0] !==
|
|
613
|
-
const
|
|
614
|
-
let
|
|
615
|
-
t[2] !==
|
|
616
|
-
const
|
|
617
|
-
let
|
|
618
|
-
t[4] !==
|
|
619
|
-
const
|
|
620
|
-
let
|
|
621
|
-
t[6] !==
|
|
622
|
-
const
|
|
623
|
-
let
|
|
624
|
-
t[8] !==
|
|
625
|
-
const
|
|
607
|
+
classNames: f,
|
|
608
|
+
precision: zt,
|
|
609
|
+
customLayers: B
|
|
610
|
+
} = i, w = Ft === void 0 ? "" : Ft, nt = N === void 0 ? "" : N, ot = pe === void 0 ? 10 : pe, s = Yt === void 0 ? "yyyy" : Yt, at = $ === void 0 ? !1 : $, Ct = Pt === void 0 ? !1 : Pt, st = Et === void 0 ? 30 : Et, fe = ie === void 0 ? 30 : ie, m = ne === void 0 ? 20 : ne, v = yt === void 0 ? 25 : yt;
|
|
611
|
+
let Ut;
|
|
612
|
+
t[0] !== pt ? (Ut = pt === void 0 ? [] : pt, t[0] = pt, t[1] = Ut) : Ut = t[1];
|
|
613
|
+
const ue = Ut;
|
|
614
|
+
let M;
|
|
615
|
+
t[2] !== tt ? (M = tt === void 0 ? [] : tt, t[2] = tt, t[3] = M) : M = t[3];
|
|
616
|
+
const z = M, a = xe === void 0 ? !1 : xe, rt = Xt === void 0 ? !1 : Xt, r = j === void 0 ? !1 : j, qt = Gt === void 0 ? 0 : Gt;
|
|
617
|
+
let At;
|
|
618
|
+
t[4] !== Bt ? (At = Bt === void 0 ? [Ve.light.grays["gray-500"], Ve.light.grays["gray-500"]] : Bt, t[4] = Bt, t[5] = At) : At = t[5];
|
|
619
|
+
const Jt = At, Kt = gt === void 0 ? Ve.primaryColors["blue-100"] : gt, Qt = de === void 0 ? 0.4 : de, Zt = re === void 0 ? !1 : re, _t = le === void 0 ? !1 : le, Ot = vt === void 0 ? !1 : vt, O = d === void 0 ? "en" : d, bt = g === void 0 ? 0 : g, Lt = T === void 0 ? 2 : T, lt = E === void 0 ? !0 : E;
|
|
620
|
+
let ct;
|
|
621
|
+
t[6] !== wt ? (ct = wt === void 0 ? [] : wt, t[6] = wt, t[7] = ct) : ct = t[7];
|
|
622
|
+
const Vt = ct;
|
|
623
|
+
let U;
|
|
624
|
+
t[8] !== X ? (U = X === void 0 ? [] : X, t[8] = X, t[9] = U) : U = t[9];
|
|
625
|
+
const Dt = U, kt = c === void 0 ? "light" : c, It = Mt === void 0 ? 5 : Mt, St = me === void 0 ? "curve" : me, Nt = zt === void 0 ? 2 : zt;
|
|
626
626
|
let D;
|
|
627
|
-
t[10] !==
|
|
628
|
-
const
|
|
629
|
-
let
|
|
630
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
631
|
-
const
|
|
632
|
-
|
|
627
|
+
t[10] !== B ? (D = B === void 0 ? [] : B, t[10] = B, t[11] = D) : D = t[11];
|
|
628
|
+
const $t = D, [q, he] = ee(0), [k, ye] = ee(0), Tt = De(null), J = De(null);
|
|
629
|
+
let mt, ft;
|
|
630
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (mt = () => {
|
|
631
|
+
const Wt = new ResizeObserver((Rt) => {
|
|
632
|
+
he(Rt[0].target.clientWidth || 620), ye(Rt[0].target.clientHeight || 480);
|
|
633
633
|
});
|
|
634
|
-
return
|
|
635
|
-
},
|
|
636
|
-
const
|
|
637
|
-
let
|
|
638
|
-
t[14] !==
|
|
634
|
+
return Tt.current && Wt.observe(Tt.current), () => Wt.disconnect();
|
|
635
|
+
}, ft = [], t[12] = mt, t[13] = ft) : (mt = t[12], ft = t[13]), $e(mt, ft);
|
|
636
|
+
const W = f?.graphContainer, ut = u?.graphContainer;
|
|
637
|
+
let R;
|
|
638
|
+
t[14] !== f?.description || t[15] !== f?.title || t[16] !== p || t[17] !== _t || t[18] !== A || t[19] !== Zt || t[20] !== Z || t[21] !== u?.description || t[22] !== u?.title || t[23] !== x ? (R = Z || A || Zt || _t ? /* @__PURE__ */ o.jsx(mi, { styles: {
|
|
639
639
|
title: u?.title,
|
|
640
640
|
description: u?.description
|
|
641
641
|
}, classNames: {
|
|
642
|
-
title:
|
|
643
|
-
description:
|
|
644
|
-
}, graphTitle:
|
|
645
|
-
let
|
|
646
|
-
t[25] !==
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
642
|
+
title: f?.title,
|
|
643
|
+
description: f?.description
|
|
644
|
+
}, graphTitle: Z, graphDescription: A, width: x, graphDownload: Zt ? J : void 0, dataDownload: _t ? p.map(Ti).filter($i).length > 0 ? p.map(Ni).filter(Si) : p.filter(Ii) : null }) : null, t[14] = f?.description, t[15] = f?.title, t[16] = p, t[17] = _t, t[18] = A, t[19] = Zt, t[20] = Z, t[21] = u?.description, t[22] = u?.title, t[23] = x, t[24] = R) : R = t[24];
|
|
645
|
+
let F;
|
|
646
|
+
t[25] !== f?.colorLegend || t[26] !== jt || t[27] !== G || t[28] !== V || t[29] !== p.length || t[30] !== x ? (F = jt && G && p.length > 0 ? /* @__PURE__ */ o.jsx(fi, { width: x, colorLegendTitle: V, colors: jt, colorDomain: G, showNAColor: !1, className: f?.colorLegend }) : null, t[25] = f?.colorLegend, t[26] = jt, t[27] = G, t[28] = V, t[29] = p.length, t[30] = x, t[31] = F) : F = t[31];
|
|
647
|
+
let H;
|
|
648
|
+
t[32] !== p.length ? (H = p.length === 0 && /* @__PURE__ */ o.jsx(ui, {}), t[32] = p.length, t[33] = H) : H = t[33];
|
|
649
|
+
let Y;
|
|
650
|
+
t[34] !== Ot || t[35] !== Vt || t[36] !== v || t[37] !== f || t[38] !== St || t[39] !== Dt || t[40] !== $t || t[41] !== p || t[42] !== s || t[43] !== z || t[44] !== Kt || t[45] !== Qt || t[46] !== Jt || t[47] !== qt || t[48] !== O || t[49] !== st || t[50] !== _ || t[51] !== it || t[52] !== se || t[53] !== et || t[54] !== dt || t[55] !== ot || t[56] !== It || t[57] !== ae || t[58] !== Nt || t[59] !== nt || t[60] !== ue || t[61] !== a || t[62] !== fe || t[63] !== lt || t[64] !== rt || t[65] !== r || t[66] !== at || t[67] !== Lt || t[68] !== u || t[69] !== w || t[70] !== k || t[71] !== q || t[72] !== n || t[73] !== m || t[74] !== ce ? (Y = q && k && p.length > 0 ? /* @__PURE__ */ o.jsx(xi, { data: p, lineColor: _ || Ve.primaryColors["blue-600"], width: q, height: k, suffix: w, prefix: nt, dateFormat: s, showValues: at, noOfXTicks: ot ?? pi(q), leftMargin: st, rightMargin: fe, topMargin: m, bottomMargin: v, tooltip: n, highlightAreaSettings: z, onSeriesMouseOver: ae, refValues: ue, minValue: dt, maxValue: se, animate: Ot === !0 ? {
|
|
651
|
+
duration: 0.5,
|
|
652
|
+
once: !0,
|
|
653
|
+
amount: 0.5
|
|
654
|
+
} : Ot || {
|
|
655
|
+
duration: 0,
|
|
656
|
+
once: !0,
|
|
657
|
+
amount: 0
|
|
658
|
+
}, rtl: O === "he" || O === "ar", strokeWidth: Lt, showDots: lt, annotations: Vt, customHighlightAreaSettings: Dt, regressionLine: a, showIntervalDots: rt, showIntervalValues: r, intervalLineStrokeWidth: qt, intervalLineColors: Jt, intervalAreaColor: Kt, intervalAreaOpacity: Qt, yAxisTitle: ce, noOfYTicks: It, minDate: et, maxDate: it, curveType: St, styles: u, classNames: f, precision: Nt, customLayers: $t }) : null, t[34] = Ot, t[35] = Vt, t[36] = v, t[37] = f, t[38] = St, t[39] = Dt, t[40] = $t, t[41] = p, t[42] = s, t[43] = z, t[44] = Kt, t[45] = Qt, t[46] = Jt, t[47] = qt, t[48] = O, t[49] = st, t[50] = _, t[51] = it, t[52] = se, t[53] = et, t[54] = dt, t[55] = ot, t[56] = It, t[57] = ae, t[58] = Nt, t[59] = nt, t[60] = ue, t[61] = a, t[62] = fe, t[63] = lt, t[64] = rt, t[65] = r, t[66] = at, t[67] = Lt, t[68] = u, t[69] = w, t[70] = k, t[71] = q, t[72] = n, t[73] = m, t[74] = ce, t[75] = Y) : Y = t[75];
|
|
659
|
+
let I;
|
|
660
|
+
t[76] !== H || t[77] !== Y ? (I = /* @__PURE__ */ o.jsxs(hi, { ref: Tt, children: [
|
|
661
|
+
H,
|
|
662
|
+
Y
|
|
663
|
+
] }), t[76] = H, t[77] = Y, t[78] = I) : I = t[78];
|
|
664
|
+
let S;
|
|
665
|
+
t[79] !== f?.footnote || t[80] !== f?.source || t[81] !== Ht || t[82] !== L || t[83] !== u?.footnote || t[84] !== u?.source || t[85] !== x ? (S = L || Ht ? /* @__PURE__ */ o.jsx(ci, { styles: {
|
|
660
666
|
footnote: u?.footnote,
|
|
661
667
|
source: u?.source
|
|
662
668
|
}, classNames: {
|
|
663
|
-
footnote:
|
|
664
|
-
source:
|
|
665
|
-
}, sources: L, footNote:
|
|
666
|
-
let
|
|
667
|
-
return t[
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
669
|
+
footnote: f?.footnote,
|
|
670
|
+
source: f?.source
|
|
671
|
+
}, sources: L, footNote: Ht, width: x }) : null, t[79] = f?.footnote, t[80] = f?.source, t[81] = Ht, t[82] = L, t[83] = u?.footnote, t[84] = u?.source, t[85] = x, t[86] = S) : S = t[86];
|
|
672
|
+
let K;
|
|
673
|
+
return t[87] !== h || t[88] !== Ct || t[89] !== xt || t[90] !== l || t[91] !== O || t[92] !== bt || t[93] !== ht || t[94] !== oe || t[95] !== W || t[96] !== ut || t[97] !== R || t[98] !== F || t[99] !== I || t[100] !== S || t[101] !== kt || t[102] !== x ? (K = /* @__PURE__ */ o.jsxs(yi, { className: W, style: ut, id: xt, ref: J, "aria-label": h, backgroundColor: Ct, theme: kt, language: O, minHeight: bt, width: x, height: l, relativeHeight: oe, padding: ht, children: [
|
|
674
|
+
R,
|
|
675
|
+
F,
|
|
676
|
+
I,
|
|
677
|
+
S
|
|
678
|
+
] }), t[87] = h, t[88] = Ct, t[89] = xt, t[90] = l, t[91] = O, t[92] = bt, t[93] = ht, t[94] = oe, t[95] = W, t[96] = ut, t[97] = R, t[98] = F, t[99] = I, t[100] = S, t[101] = kt, t[102] = x, t[103] = K) : K = t[103], K;
|
|
672
679
|
}
|
|
673
680
|
function Ii(i) {
|
|
674
681
|
return i !== void 0;
|