@undp/data-viz 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.js +281 -274
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1795 -1724
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +312 -305
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +367 -356
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +224 -217
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +406 -399
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +10 -0
- package/dist/DonutChart.js +232 -263
- package/dist/DonutChart.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +320 -313
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +298 -291
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
- package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
- package/dist/EmptyState-gLDRXBHm.cjs +2 -0
- package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
- package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
- package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
- package/dist/{GraphEl-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
- package/dist/GraphEl-oZwZiTHI.js.map +1 -0
- 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.cjs.map +1 -1
- package/dist/HeatMap.js +179 -172
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +370 -363
- package/dist/LineChartWithConfidenceInterval.js.map +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.js +328 -321
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +375 -368
- 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/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.cjs.map +1 -1
- package/dist/RadarChart.js +35 -34
- 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 +367 -360
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +286 -279
- package/dist/SimpleLineChart.js.map +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.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- 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/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +293 -286
- package/dist/StripChart.js.map +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.js +222 -215
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
- package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
- package/dist/area-C1gxfNGD.cjs +2 -0
- package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
- package/dist/array-DMyR1sql.cjs +2 -0
- package/dist/array-DMyR1sql.cjs.map +1 -0
- package/dist/array-USo-Szhp.js +13 -0
- package/dist/array-USo-Szhp.js.map +1 -0
- package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
- package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
- package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
- package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
- package/dist/index-Blvf-Q3U.cjs +2 -0
- package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
- package/dist/index-D1RrKgK6.js +337 -0
- package/dist/index-D1RrKgK6.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -1
- package/dist/line-DFlZsxI1.js +144 -0
- package/dist/line-DFlZsxI1.js.map +1 -0
- package/dist/line-DaEMhXmx.cjs +2 -0
- package/dist/line-DaEMhXmx.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/EmptyState-BZo1BbAn.js.map +0 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
- package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
- package/dist/GraphEl-YKUlz-37.cjs +0 -2
- package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
- package/dist/GraphEl-sVZvlyWe.js.map +0 -1
- package/dist/area-D3Qx7k7K.cjs +0 -2
- package/dist/array-B7TkkRH0.js +0 -89
- package/dist/array-B7TkkRH0.js.map +0 -1
- package/dist/array-DKbXV8lR.cjs +0 -2
- package/dist/array-DKbXV8lR.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
- package/dist/line-CPfhohvF.js +0 -68
- package/dist/line-CPfhohvF.js.map +0 -1
- package/dist/line-DHV4JwCR.cjs +0 -2
- package/dist/line-DHV4JwCR.cjs.map +0 -1
package/dist/AreaChart.js
CHANGED
|
@@ -1,277 +1,277 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { p as
|
|
4
|
-
import { s as
|
|
5
|
-
import { o as
|
|
6
|
-
import { n as
|
|
1
|
+
import { c as Ce, m as ve, j as a } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as pe, useState as Qt, useEffect as we } from "react";
|
|
3
|
+
import { p as D, f as Oe } from "./parse-DlCRUFh_.js";
|
|
4
|
+
import { s as Ae } from "./index-CeVNqhMO.js";
|
|
5
|
+
import { o as Le } from "./index-BZQYSqar.js";
|
|
6
|
+
import { n as je } from "./numberFormattingFunction-14YCbkN2.js";
|
|
7
7
|
import { T as Se } from "./Tooltip-Dj5eVppQ.js";
|
|
8
|
-
import { c as
|
|
8
|
+
import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
9
9
|
import { C as De, g as $e, A as ke } from "./customArea-BUhPiPT6.js";
|
|
10
10
|
import { A as Te } from "./AxisTitle-jeI7am8o.js";
|
|
11
11
|
import { A as Ne } from "./Axis-CRyfcLjc.js";
|
|
12
12
|
import { X as Me } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
13
13
|
import { a as He } from "./ReferenceLine-2XCwHXQ4.js";
|
|
14
14
|
import { Y as Re } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
15
|
-
import { H as
|
|
16
|
-
import { t as
|
|
15
|
+
import { H as Ye } from "./index-SKgJALZg.js";
|
|
16
|
+
import { t as Fe } from "./time-BUL-dwnK.js";
|
|
17
17
|
import { a as Ve } from "./linear-BqltdMeF.js";
|
|
18
|
-
import { a as Ge } from "./area-
|
|
19
|
-
import { c as Pe } from "./line-
|
|
18
|
+
import { a as Ge } from "./area-B6r7cv2o.js";
|
|
19
|
+
import { c as Pe } from "./line-DFlZsxI1.js";
|
|
20
20
|
import { c as Xe, s as Ee, a as We, m as Ie } from "./step-BrDul-H4.js";
|
|
21
21
|
import { s as Be } from "./select-DKy99ogv.js";
|
|
22
22
|
import { a as ze } from "./init-BhZylTFx.js";
|
|
23
23
|
import { p as Ue } from "./pointer-CWRWOsrb.js";
|
|
24
24
|
import { u as qe } from "./use-in-view-Cxa7y1TH.js";
|
|
25
|
-
import { m as
|
|
25
|
+
import { m as fe } from "./proxy-BxkFHwUw.js";
|
|
26
26
|
import { A as Je } from "./index-BqfRwk1n.js";
|
|
27
27
|
import { GraphFooter as Ke } from "./GraphFooter.js";
|
|
28
28
|
import { GraphHeader as Qe } from "./GraphHeader.js";
|
|
29
29
|
import { ColorLegend as Ze } from "./ColorLegend.js";
|
|
30
30
|
import { Colors as _e } from "./Colors.js";
|
|
31
|
-
import { E as to } from "./EmptyState-
|
|
31
|
+
import { E as to } from "./EmptyState-C7ZXkZWd.js";
|
|
32
32
|
import { a as eo, G as oo } from "./GraphContainer-CRqzdKu2.js";
|
|
33
33
|
function so(n) {
|
|
34
|
-
const t =
|
|
35
|
-
data:
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
38
|
-
colors:
|
|
34
|
+
const t = Ce.c(133), {
|
|
35
|
+
data: p,
|
|
36
|
+
width: I,
|
|
37
|
+
height: Lt,
|
|
38
|
+
colors: jt,
|
|
39
39
|
dateFormat: i,
|
|
40
|
-
noOfXTicks:
|
|
40
|
+
noOfXTicks: Pt,
|
|
41
41
|
rightMargin: v,
|
|
42
42
|
leftMargin: y,
|
|
43
|
-
topMargin:
|
|
44
|
-
bottomMargin:
|
|
45
|
-
yAxisTitle:
|
|
46
|
-
tooltip:
|
|
47
|
-
onSeriesMouseOver:
|
|
48
|
-
highlightAreaSettings:
|
|
49
|
-
refValues:
|
|
50
|
-
minValue:
|
|
51
|
-
maxValue:
|
|
52
|
-
rtl:
|
|
53
|
-
annotations:
|
|
54
|
-
customHighlightAreaSettings:
|
|
55
|
-
noOfYTicks:
|
|
56
|
-
prefix:
|
|
57
|
-
suffix:
|
|
58
|
-
curveType:
|
|
59
|
-
styles:
|
|
60
|
-
classNames:
|
|
61
|
-
precision:
|
|
62
|
-
customLayers:
|
|
43
|
+
topMargin: St,
|
|
44
|
+
bottomMargin: Dt,
|
|
45
|
+
yAxisTitle: B,
|
|
46
|
+
tooltip: z,
|
|
47
|
+
onSeriesMouseOver: rt,
|
|
48
|
+
highlightAreaSettings: at,
|
|
49
|
+
refValues: lt,
|
|
50
|
+
minValue: Xt,
|
|
51
|
+
maxValue: ct,
|
|
52
|
+
rtl: Y,
|
|
53
|
+
annotations: U,
|
|
54
|
+
customHighlightAreaSettings: mt,
|
|
55
|
+
noOfYTicks: Et,
|
|
56
|
+
prefix: F,
|
|
57
|
+
suffix: $,
|
|
58
|
+
curveType: q,
|
|
59
|
+
styles: g,
|
|
60
|
+
classNames: x,
|
|
61
|
+
precision: J,
|
|
62
|
+
customLayers: V,
|
|
63
63
|
animate: c
|
|
64
|
-
} = n,
|
|
65
|
-
let
|
|
66
|
-
t[0] !== c.amount || t[1] !== c.once ? (
|
|
64
|
+
} = n, Wt = pe(null);
|
|
65
|
+
let ft;
|
|
66
|
+
t[0] !== c.amount || t[1] !== c.once ? (ft = {
|
|
67
67
|
once: c.once,
|
|
68
68
|
amount: c.amount
|
|
69
|
-
}, t[0] = c.amount, t[1] = c.once, t[2] =
|
|
70
|
-
const
|
|
69
|
+
}, t[0] = c.amount, t[1] = c.once, t[2] = ft) : ft = t[2];
|
|
70
|
+
const u = qe(Wt, ft), $t = q === "linear" ? Pe : q === "step" ? Xe : q === "stepAfter" ? Ee : q === "stepBefore" ? We : Ie, [C, kt] = Qt(void 0), [K, It] = Qt(void 0), [pt, Bt] = Qt(void 0), Tt = B ? y + 30 : y;
|
|
71
71
|
let m;
|
|
72
|
-
t[3] !==
|
|
73
|
-
top:
|
|
74
|
-
bottom:
|
|
75
|
-
left:
|
|
72
|
+
t[3] !== Dt || t[4] !== v || t[5] !== Tt || t[6] !== St ? (m = {
|
|
73
|
+
top: St,
|
|
74
|
+
bottom: Dt,
|
|
75
|
+
left: Tt,
|
|
76
76
|
right: v
|
|
77
|
-
}, t[3] =
|
|
78
|
-
const s = m,
|
|
79
|
-
let
|
|
80
|
-
t[8] !== i ? (
|
|
77
|
+
}, t[3] = Dt, t[4] = v, t[5] = Tt, t[6] = St, t[7] = m) : m = t[7];
|
|
78
|
+
const s = m, ut = pe(null);
|
|
79
|
+
let G;
|
|
80
|
+
t[8] !== i ? (G = (o) => ({
|
|
81
81
|
...o,
|
|
82
|
-
date:
|
|
83
|
-
}), t[8] = i, t[9] =
|
|
84
|
-
const
|
|
85
|
-
let
|
|
86
|
-
if (t[10] !== i || t[11] !==
|
|
82
|
+
date: D(`${o.date}`, i, /* @__PURE__ */ new Date())
|
|
83
|
+
}), t[8] = i, t[9] = G) : G = t[9];
|
|
84
|
+
const h = Le(p.map(G), ["date"], ["asc"]);
|
|
85
|
+
let b;
|
|
86
|
+
if (t[10] !== i || t[11] !== at) {
|
|
87
87
|
let o;
|
|
88
88
|
t[13] !== i ? (o = (e) => ({
|
|
89
89
|
...e,
|
|
90
|
-
coordinates: [e.coordinates[0] === null ? null :
|
|
91
|
-
}), t[13] = i, t[14] = o) : o = t[14],
|
|
90
|
+
coordinates: [e.coordinates[0] === null ? null : D(`${e.coordinates[0]}`, i, /* @__PURE__ */ new Date()), e.coordinates[1] === null ? null : D(`${e.coordinates[1]}`, i, /* @__PURE__ */ new Date())]
|
|
91
|
+
}), t[13] = i, t[14] = o) : o = t[14], b = at.map(o), t[10] = i, t[11] = at, t[12] = b;
|
|
92
92
|
} else
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
let
|
|
96
|
-
if (t[15] !==
|
|
93
|
+
b = t[12];
|
|
94
|
+
const gt = b;
|
|
95
|
+
let Q;
|
|
96
|
+
if (t[15] !== mt || t[16] !== i) {
|
|
97
97
|
let o;
|
|
98
98
|
t[18] !== i ? (o = (e) => ({
|
|
99
99
|
...e,
|
|
100
|
-
coordinates: e.coordinates.map((w,
|
|
101
|
-
}), t[18] = i, t[19] = o) : o = t[19],
|
|
100
|
+
coordinates: e.coordinates.map((w, W) => W % 2 === 0 ? D(`${w}`, i, /* @__PURE__ */ new Date()) : w)
|
|
101
|
+
}), t[18] = i, t[19] = o) : o = t[19], Q = mt.map(o), t[15] = mt, t[16] = i, t[17] = Q;
|
|
102
102
|
} else
|
|
103
|
-
|
|
104
|
-
const
|
|
103
|
+
Q = t[17];
|
|
104
|
+
const zt = Q, Ut = h[0].y.map((o, e) => h.map((w) => ({
|
|
105
105
|
date: w.date,
|
|
106
|
-
y0: e === 0 ? 0 :
|
|
107
|
-
y1:
|
|
108
|
-
}))), f =
|
|
109
|
-
let
|
|
110
|
-
t[20] !==
|
|
111
|
-
const
|
|
112
|
-
|
|
106
|
+
y0: e === 0 ? 0 : Ae(w.y.filter((W, Kt) => Kt < e)),
|
|
107
|
+
y1: Ae(w.y.filter((W, Kt) => Kt <= e))
|
|
108
|
+
}))), f = I - s.left - s.right, d = Lt - s.top - s.bottom, qt = h[0].date, Nt = h[h.length - 1].date, A = me(Xt) ? 0 : Xt;
|
|
109
|
+
let P;
|
|
110
|
+
t[20] !== p || t[21] !== ct ? (P = me(ct) ? Math.max(...p.map(po)) : ct, t[20] = p, t[21] = ct, t[22] = P) : P = t[22];
|
|
111
|
+
const Mt = P, r = Fe().domain([qt, Nt]).range([0, f]), l = Ve().domain([A, Mt]).range([d, 0]).nice(), xt = Ge().x((o) => r(o.date)).y0((o) => l(o.y0)).y1((o) => l(o.y1)).curve($t), k = l.ticks(Et), Ht = r.ticks(Pt);
|
|
112
|
+
we(() => {
|
|
113
113
|
const o = (w) => {
|
|
114
|
-
const
|
|
115
|
-
|
|
114
|
+
const W = h[ze(h.map(fo), r.invert(Ue(w)[0]), 0)];
|
|
115
|
+
kt(W || h[h.length - 1]), rt?.(W || h[h.length - 1]), Bt(w.clientY), It(w.clientX);
|
|
116
116
|
}, e = () => {
|
|
117
|
-
|
|
117
|
+
kt(void 0), It(void 0), Bt(void 0), rt?.(void 0);
|
|
118
118
|
};
|
|
119
|
-
Be(
|
|
120
|
-
}, [
|
|
121
|
-
let
|
|
122
|
-
t[23] !== c || t[24] !==
|
|
123
|
-
const
|
|
124
|
-
let
|
|
125
|
-
t[30] !==
|
|
126
|
-
gridLines:
|
|
127
|
-
labels:
|
|
128
|
-
}, t[30] =
|
|
129
|
-
const
|
|
130
|
-
let K;
|
|
131
|
-
t[33] !== gt || t[34] !== xt ? (K = {
|
|
132
|
-
gridLines: gt,
|
|
133
|
-
labels: xt
|
|
134
|
-
}, t[33] = gt, t[34] = xt, t[35] = K) : K = t[35];
|
|
135
|
-
const dt = l(A < 0 ? 0 : A), ht = l(A < 0 ? 0 : A), yt = 0 - y, Q = f + s.right, vt = A < 0 ? 0 : A;
|
|
136
|
-
let b;
|
|
137
|
-
t[36] !== B || t[37] !== M || t[38] !== S || t[39] !== vt ? (b = Le(vt, "NA", B, M, S), t[36] = B, t[37] = M, t[38] = S, t[39] = vt, t[40] = b) : b = t[40];
|
|
138
|
-
const Z = 0 - y, qt = Tt < 0 ? "1em" : -5, _ = l(A < 0 ? 0 : A);
|
|
119
|
+
Be(ut.current).on("mousemove", o).on("mouseout", e), rt?.(void 0);
|
|
120
|
+
}, [r, h, rt]);
|
|
121
|
+
let X;
|
|
122
|
+
t[23] !== c || t[24] !== d || t[25] !== f || t[26] !== gt || t[27] !== u || t[28] !== r ? (X = /* @__PURE__ */ a.jsx(Ye, { areaSettings: gt, width: f, height: d, scale: r, animate: c, isInView: u }), t[23] = c, t[24] = d, t[25] = f, t[26] = gt, t[27] = u, t[28] = r, t[29] = X) : X = t[29];
|
|
123
|
+
const dt = g?.yAxis?.gridLines, Z = g?.yAxis?.labels;
|
|
124
|
+
let _;
|
|
125
|
+
t[30] !== dt || t[31] !== Z ? (_ = {
|
|
126
|
+
gridLines: dt,
|
|
127
|
+
labels: Z
|
|
128
|
+
}, t[30] = dt, t[31] = Z, t[32] = _) : _ = t[32];
|
|
129
|
+
const ht = x?.yAxis?.gridLines, yt = x?.yAxis?.labels;
|
|
139
130
|
let tt;
|
|
140
|
-
t[
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}, t[41] = Z, t[42] = qt, t[43] = _, t[44] = tt) : tt = t[44];
|
|
146
|
-
const At = g?.xAxis?.axis, Mt = g?.yAxis?.labels;
|
|
131
|
+
t[33] !== ht || t[34] !== yt ? (tt = {
|
|
132
|
+
gridLines: ht,
|
|
133
|
+
labels: yt
|
|
134
|
+
}, t[33] = ht, t[34] = yt, t[35] = tt) : tt = t[35];
|
|
135
|
+
const vt = l(A < 0 ? 0 : A), At = l(A < 0 ? 0 : A), Ct = 0 - y, et = f + s.right, wt = A < 0 ? 0 : A;
|
|
147
136
|
let O;
|
|
148
|
-
t[
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
137
|
+
t[36] !== J || t[37] !== F || t[38] !== $ || t[39] !== wt ? (O = je(wt, "NA", J, F, $), t[36] = J, t[37] = F, t[38] = $, t[39] = wt, t[40] = O) : O = t[40];
|
|
138
|
+
const ot = 0 - y, Jt = Mt < 0 ? "1em" : -5, st = l(A < 0 ? 0 : A);
|
|
139
|
+
let it;
|
|
140
|
+
t[41] !== ot || t[42] !== Jt || t[43] !== st ? (it = {
|
|
141
|
+
x: ot,
|
|
142
|
+
dx: 0,
|
|
143
|
+
dy: Jt,
|
|
144
|
+
y: st
|
|
145
|
+
}, t[41] = ot, t[42] = Jt, t[43] = st, t[44] = it) : it = t[44];
|
|
146
|
+
const bt = x?.xAxis?.axis, Rt = x?.yAxis?.labels;
|
|
147
|
+
let L;
|
|
148
|
+
t[45] !== bt || t[46] !== Rt ? (L = {
|
|
149
|
+
axis: bt,
|
|
150
|
+
label: Rt
|
|
151
|
+
}, t[45] = bt, t[46] = Rt, t[47] = L) : L = t[47];
|
|
152
|
+
const nt = g?.xAxis?.axis, Ot = g?.yAxis?.labels;
|
|
153
|
+
let T;
|
|
154
|
+
t[48] !== nt || t[49] !== Ot ? (T = {
|
|
155
|
+
axis: nt,
|
|
156
|
+
label: Ot
|
|
157
|
+
}, t[48] = nt, t[49] = Ot, t[50] = T) : T = t[50];
|
|
158
158
|
let j;
|
|
159
|
-
t[51] !==
|
|
160
|
-
const
|
|
161
|
-
let
|
|
162
|
-
t[60] !==
|
|
163
|
-
let
|
|
164
|
-
t[66] !== i ? (
|
|
165
|
-
const
|
|
166
|
-
let
|
|
167
|
-
t[68] !==
|
|
168
|
-
gridLines:
|
|
169
|
-
labels:
|
|
170
|
-
}, t[68] =
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
t[71] !==
|
|
174
|
-
const
|
|
159
|
+
t[51] !== vt || t[52] !== At || t[53] !== Ct || t[54] !== et || t[55] !== O || t[56] !== it || t[57] !== L || t[58] !== T ? (j = /* @__PURE__ */ a.jsx(Ne, { y1: vt, y2: At, x1: Ct, x2: et, label: O, labelPos: it, classNames: L, styles: T }), t[51] = vt, t[52] = At, t[53] = Ct, t[54] = et, t[55] = O, t[56] = it, t[57] = L, t[58] = T, t[59] = j) : j = t[59];
|
|
160
|
+
const N = 0 - y - 15, M = d / 2, H = g?.yAxis?.title, R = x?.yAxis?.title;
|
|
161
|
+
let S;
|
|
162
|
+
t[60] !== N || t[61] !== M || t[62] !== H || t[63] !== R || t[64] !== B ? (S = /* @__PURE__ */ a.jsx(Te, { x: N, y: M, style: H, className: R, text: B, rotate90: !0 }), t[60] = N, t[61] = M, t[62] = H, t[63] = R, t[64] = B, t[65] = S) : S = t[65];
|
|
163
|
+
let E;
|
|
164
|
+
t[66] !== i ? (E = (o) => Oe(o, i), t[66] = i, t[67] = E) : E = t[67];
|
|
165
|
+
const Zt = Ht.map(E), _t = Ht.map((o) => r(o)), ue = g?.xAxis?.gridLines, ge = g?.xAxis?.labels;
|
|
166
|
+
let te;
|
|
167
|
+
t[68] !== ue || t[69] !== ge ? (te = {
|
|
168
|
+
gridLines: ue,
|
|
169
|
+
labels: ge
|
|
170
|
+
}, t[68] = ue, t[69] = ge, t[70] = te) : te = t[70];
|
|
171
|
+
const xe = x?.xAxis?.gridLines;
|
|
172
|
+
let Yt;
|
|
173
|
+
t[71] !== xe ? (Yt = ve("opacity-0", xe), t[71] = xe, t[72] = Yt) : Yt = t[72];
|
|
174
|
+
const de = x?.xAxis?.labels;
|
|
175
175
|
let Ft;
|
|
176
|
-
t[73] !==
|
|
177
|
-
let
|
|
178
|
-
t[75] !==
|
|
179
|
-
gridLines:
|
|
176
|
+
t[73] !== de ? (Ft = ve("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[8px] sm:text-[9px] md:text-[10px] lg:text-xs", de), t[73] = de, t[74] = Ft) : Ft = t[74];
|
|
177
|
+
let ee;
|
|
178
|
+
t[75] !== Yt || t[76] !== Ft ? (ee = {
|
|
179
|
+
gridLines: Yt,
|
|
180
180
|
labels: Ft
|
|
181
|
-
}, t[75] =
|
|
182
|
-
let
|
|
183
|
-
t[78] !==
|
|
184
|
-
const
|
|
181
|
+
}, t[75] = Yt, t[76] = Ft, t[77] = ee) : ee = t[77];
|
|
182
|
+
let oe;
|
|
183
|
+
t[78] !== V ? (oe = V.filter(lo).map(ao), t[78] = V, t[79] = oe) : oe = t[79];
|
|
184
|
+
const he = fe, ye = Ut.map((o, e) => /* @__PURE__ */ a.jsx(fe.path, { d: xt(o), exit: {
|
|
185
185
|
opacity: 0,
|
|
186
186
|
transition: {
|
|
187
187
|
duration: c.duration
|
|
188
188
|
}
|
|
189
189
|
}, variants: {
|
|
190
190
|
initial: {
|
|
191
|
-
d:
|
|
191
|
+
d: xt(o.map(ro)),
|
|
192
192
|
opacity: 0
|
|
193
193
|
},
|
|
194
194
|
whileInView: {
|
|
195
|
-
d:
|
|
195
|
+
d: xt(o),
|
|
196
196
|
opacity: 1,
|
|
197
197
|
transition: {
|
|
198
198
|
duration: c.duration
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
}, initial: "initial", animate:
|
|
202
|
-
fill:
|
|
201
|
+
}, initial: "initial", animate: u ? "whileInView" : "initial", style: {
|
|
202
|
+
fill: jt[e],
|
|
203
203
|
opacity: 0.8
|
|
204
204
|
} }, e));
|
|
205
|
-
let Yt;
|
|
206
|
-
t[80] !== g?.mouseOverLine || t[81] !== x || t[82] !== C || t[83] !== u?.mouseOverLine || t[84] !== a ? (Yt = C ? /* @__PURE__ */ r.jsx("line", { y1: 0, y2: x, x1: a(C.date), x2: a(C.date), className: he("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", g?.mouseOverLine), style: u?.mouseOverLine }) : null, t[80] = g?.mouseOverLine, t[81] = x, t[82] = C, t[83] = u?.mouseOverLine, t[84] = a, t[85] = Yt) : Yt = t[85];
|
|
207
|
-
let ee;
|
|
208
|
-
t[86] !== xe.g || t[87] !== de || t[88] !== Yt ? (ee = /* @__PURE__ */ r.jsxs(xe.g, { children: [
|
|
209
|
-
de,
|
|
210
|
-
Yt
|
|
211
|
-
] }), t[86] = xe.g, t[87] = de, t[88] = Yt, t[89] = ee) : ee = t[89];
|
|
212
|
-
let oe;
|
|
213
|
-
t[90] !== c || t[91] !== f || t[92] !== p || t[93] !== y || t[94] !== s.right || t[95] !== nt || t[96] !== l ? (oe = nt ? /* @__PURE__ */ r.jsx(r.Fragment, { children: nt.map((o, e) => /* @__PURE__ */ r.jsx(He, { text: o.text, color: o.color, y: l(o.value), x1: 0 - y, x2: f + s.right, classNames: o.classNames, styles: o.styles, animate: c, isInView: p }, e)) }) : null, t[90] = c, t[91] = f, t[92] = p, t[93] = y, t[94] = s.right, t[95] = nt, t[96] = l, t[97] = oe) : oe = t[97];
|
|
214
205
|
let Vt;
|
|
215
|
-
|
|
206
|
+
t[80] !== x?.mouseOverLine || t[81] !== d || t[82] !== C || t[83] !== g?.mouseOverLine || t[84] !== r ? (Vt = C ? /* @__PURE__ */ a.jsx("line", { y1: 0, y2: d, x1: r(C.date), x2: r(C.date), className: ve("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", x?.mouseOverLine), style: g?.mouseOverLine }) : null, t[80] = x?.mouseOverLine, t[81] = d, t[82] = C, t[83] = g?.mouseOverLine, t[84] = r, t[85] = Vt) : Vt = t[85];
|
|
207
|
+
let se;
|
|
208
|
+
t[86] !== he.g || t[87] !== ye || t[88] !== Vt ? (se = /* @__PURE__ */ a.jsxs(he.g, { children: [
|
|
209
|
+
ye,
|
|
210
|
+
Vt
|
|
211
|
+
] }), t[86] = he.g, t[87] = ye, t[88] = Vt, t[89] = se) : se = t[89];
|
|
212
|
+
let ie;
|
|
213
|
+
t[90] !== c || t[91] !== f || t[92] !== u || t[93] !== y || t[94] !== s.right || t[95] !== lt || t[96] !== l ? (ie = lt ? /* @__PURE__ */ a.jsx(a.Fragment, { children: lt.map((o, e) => /* @__PURE__ */ a.jsx(He, { text: o.text, color: o.color, y: l(o.value), x1: 0 - y, x2: f + s.right, classNames: o.classNames, styles: o.styles, animate: c, isInView: u }, e)) }) : null, t[90] = c, t[91] = f, t[92] = u, t[93] = y, t[94] = s.right, t[95] = lt, t[96] = l, t[97] = ie) : ie = t[97];
|
|
214
|
+
let Gt;
|
|
215
|
+
if (t[98] !== c || t[99] !== U || t[100] !== i || t[101] !== f || t[102] !== u || t[103] !== s.right || t[104] !== Y || t[105] !== r || t[106] !== l) {
|
|
216
216
|
let o;
|
|
217
|
-
t[108] !== c || t[109] !== i || t[110] !== f || t[111] !==
|
|
218
|
-
const
|
|
219
|
-
x: e.xCoordinate ?
|
|
217
|
+
t[108] !== c || t[109] !== i || t[110] !== f || t[111] !== u || t[112] !== s.right || t[113] !== Y || t[114] !== r || t[115] !== l ? (o = (e, w) => {
|
|
218
|
+
const W = $e({
|
|
219
|
+
x: e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
220
220
|
y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
|
|
221
221
|
}, {
|
|
222
|
-
x: e.xCoordinate ?
|
|
222
|
+
x: e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) : 0,
|
|
223
223
|
y: e.yCoordinate ? l(e.yCoordinate) : 0
|
|
224
|
-
},
|
|
225
|
-
y1:
|
|
226
|
-
x1:
|
|
224
|
+
}, me(e.connectorRadius) ? 3.5 : e.connectorRadius), Kt = e.showConnector ? {
|
|
225
|
+
y1: W.y,
|
|
226
|
+
x1: W.x,
|
|
227
227
|
y2: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
|
|
228
|
-
x2: e.xCoordinate ?
|
|
229
|
-
cx: e.xCoordinate ?
|
|
228
|
+
x2: e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
229
|
+
cx: e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) : 0,
|
|
230
230
|
cy: e.yCoordinate ? l(e.yCoordinate) : 0,
|
|
231
|
-
circleRadius:
|
|
231
|
+
circleRadius: me(e.connectorRadius) ? 3.5 : e.connectorRadius,
|
|
232
232
|
strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
|
|
233
233
|
} : void 0, be = {
|
|
234
234
|
y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
|
|
235
|
-
x:
|
|
236
|
-
width:
|
|
235
|
+
x: Y ? 0 : e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
236
|
+
width: Y ? e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : f + s.right - (e.xCoordinate ? r(D(`${e.xCoordinate}`, i, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
|
|
237
237
|
maxWidth: e.maxWidth,
|
|
238
238
|
fontWeight: e.fontWeight,
|
|
239
239
|
align: e.align
|
|
240
240
|
};
|
|
241
|
-
return /* @__PURE__ */
|
|
242
|
-
}, t[108] = c, t[109] = i, t[110] = f, t[111] =
|
|
241
|
+
return /* @__PURE__ */ a.jsx(ke, { color: e.color, connectorsSettings: Kt, labelSettings: be, text: e.text, classNames: e.classNames, styles: e.styles, animate: c, isInView: u }, w);
|
|
242
|
+
}, t[108] = c, t[109] = i, t[110] = f, t[111] = u, t[112] = s.right, t[113] = Y, t[114] = r, t[115] = l, t[116] = o) : o = t[116], Gt = U.map(o), t[98] = c, t[99] = U, t[100] = i, t[101] = f, t[102] = u, t[103] = s.right, t[104] = Y, t[105] = r, t[106] = l, t[107] = Gt;
|
|
243
243
|
} else
|
|
244
|
-
|
|
245
|
-
let se;
|
|
246
|
-
t[117] !== Vt ? (se = /* @__PURE__ */ r.jsx("g", { children: Vt }), t[117] = Vt, t[118] = se) : se = t[118];
|
|
247
|
-
let ie;
|
|
248
|
-
t[119] !== H ? (ie = H.filter(no).map(io), t[119] = H, t[120] = ie) : ie = t[120];
|
|
244
|
+
Gt = t[107];
|
|
249
245
|
let ne;
|
|
250
|
-
t[
|
|
251
|
-
fill: "none",
|
|
252
|
-
pointerEvents: "all"
|
|
253
|
-
}, t[121] = ne) : ne = t[121];
|
|
246
|
+
t[117] !== Gt ? (ne = /* @__PURE__ */ a.jsx("g", { children: Gt }), t[117] = Gt, t[118] = ne) : ne = t[118];
|
|
254
247
|
let re;
|
|
255
|
-
t[
|
|
248
|
+
t[119] !== V ? (re = V.filter(no).map(io), t[119] = V, t[120] = re) : re = t[120];
|
|
256
249
|
let ae;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
250
|
+
t[121] === Symbol.for("react.memo_cache_sentinel") ? (ae = {
|
|
251
|
+
fill: "none",
|
|
252
|
+
pointerEvents: "all"
|
|
253
|
+
}, t[121] = ae) : ae = t[121];
|
|
254
|
+
let le;
|
|
255
|
+
t[122] !== ut || t[123] !== d || t[124] !== f ? (le = /* @__PURE__ */ a.jsx("rect", { ref: ut, style: ae, width: f, height: d }), t[122] = ut, t[123] = d, t[124] = f, t[125] = le) : le = t[125];
|
|
256
|
+
let ce;
|
|
257
|
+
return t[126] !== x?.tooltip || t[127] !== K || t[128] !== pt || t[129] !== C || t[130] !== g?.tooltip || t[131] !== z ? (ce = C && z && K && pt ? /* @__PURE__ */ a.jsx(Se, { data: C, body: z, xPos: K, yPos: pt, backgroundStyle: g?.tooltip, className: x?.tooltip }) : null, t[126] = x?.tooltip, t[127] = K, t[128] = pt, t[129] = C, t[130] = g?.tooltip, t[131] = z, t[132] = ce) : ce = t[132], /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
258
|
+
/* @__PURE__ */ a.jsx(fe.svg, { width: `${I}px`, height: `${Lt}px`, viewBox: `0 0 ${I} ${Lt}`, direction: "ltr", ref: Wt, children: /* @__PURE__ */ a.jsx(Je, { children: /* @__PURE__ */ a.jsxs(fe.g, { transform: `translate(${s.left},${s.top})`, children: [
|
|
259
|
+
X,
|
|
260
|
+
/* @__PURE__ */ a.jsx(De, { animate: c, areaSettings: zt, scaleX: r, scaleY: l, isInView: u }),
|
|
261
|
+
/* @__PURE__ */ a.jsxs("g", { children: [
|
|
262
|
+
/* @__PURE__ */ a.jsx(Re, { values: k.filter(mo), y: k.filter(co).map((o) => l(o)), x1: 0 - y, x2: f + s.right, styles: _, classNames: tt, suffix: $, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: J }),
|
|
263
263
|
j,
|
|
264
|
-
|
|
264
|
+
S
|
|
265
265
|
] }),
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
te,
|
|
268
|
-
ee,
|
|
266
|
+
/* @__PURE__ */ a.jsx(Me, { values: Zt, x: _t, y1: 0, y2: d, styles: te, classNames: ee, suffix: $, prefix: F, labelType: "primary", showGridLines: !0, precision: J }),
|
|
269
267
|
oe,
|
|
270
268
|
se,
|
|
271
269
|
ie,
|
|
272
|
-
|
|
270
|
+
ne,
|
|
271
|
+
re,
|
|
272
|
+
le
|
|
273
273
|
] }) }) }),
|
|
274
|
-
|
|
274
|
+
ce
|
|
275
275
|
] });
|
|
276
276
|
}
|
|
277
277
|
function io(n) {
|
|
@@ -303,114 +303,121 @@ function fo(n) {
|
|
|
303
303
|
return n.date;
|
|
304
304
|
}
|
|
305
305
|
function po(n) {
|
|
306
|
-
return
|
|
306
|
+
return Ae(n.y) || 0;
|
|
307
307
|
}
|
|
308
308
|
function Qo(n) {
|
|
309
|
-
const t =
|
|
310
|
-
data:
|
|
311
|
-
graphTitle:
|
|
312
|
-
colors:
|
|
313
|
-
sources:
|
|
309
|
+
const t = Ce.c(90), {
|
|
310
|
+
data: p,
|
|
311
|
+
graphTitle: I,
|
|
312
|
+
colors: Lt,
|
|
313
|
+
sources: jt,
|
|
314
314
|
graphDescription: i,
|
|
315
|
-
height:
|
|
315
|
+
height: Pt,
|
|
316
316
|
width: v,
|
|
317
317
|
footNote: y,
|
|
318
|
-
noOfXTicks:
|
|
319
|
-
dateFormat:
|
|
320
|
-
colorDomain:
|
|
321
|
-
padding:
|
|
322
|
-
backgroundColor:
|
|
323
|
-
colorLegendTitle:
|
|
324
|
-
leftMargin:
|
|
325
|
-
rightMargin:
|
|
326
|
-
topMargin:
|
|
327
|
-
bottomMargin:
|
|
328
|
-
highlightAreaSettings:
|
|
329
|
-
tooltip:
|
|
330
|
-
relativeHeight:
|
|
331
|
-
onSeriesMouseOver:
|
|
332
|
-
refValues:
|
|
333
|
-
graphID:
|
|
334
|
-
minValue:
|
|
335
|
-
maxValue:
|
|
336
|
-
graphDownload:
|
|
337
|
-
dataDownload:
|
|
318
|
+
noOfXTicks: St,
|
|
319
|
+
dateFormat: Dt,
|
|
320
|
+
colorDomain: B,
|
|
321
|
+
padding: z,
|
|
322
|
+
backgroundColor: rt,
|
|
323
|
+
colorLegendTitle: at,
|
|
324
|
+
leftMargin: lt,
|
|
325
|
+
rightMargin: Xt,
|
|
326
|
+
topMargin: ct,
|
|
327
|
+
bottomMargin: Y,
|
|
328
|
+
highlightAreaSettings: U,
|
|
329
|
+
tooltip: mt,
|
|
330
|
+
relativeHeight: Et,
|
|
331
|
+
onSeriesMouseOver: F,
|
|
332
|
+
refValues: $,
|
|
333
|
+
graphID: q,
|
|
334
|
+
minValue: g,
|
|
335
|
+
maxValue: x,
|
|
336
|
+
graphDownload: J,
|
|
337
|
+
dataDownload: V,
|
|
338
338
|
showColorScale: c,
|
|
339
|
-
language:
|
|
340
|
-
minHeight:
|
|
341
|
-
annotations:
|
|
342
|
-
customHighlightAreaSettings:
|
|
339
|
+
language: Wt,
|
|
340
|
+
minHeight: ft,
|
|
341
|
+
annotations: u,
|
|
342
|
+
customHighlightAreaSettings: $t,
|
|
343
343
|
theme: C,
|
|
344
|
-
ariaLabel:
|
|
345
|
-
yAxisTitle:
|
|
346
|
-
noOfYTicks:
|
|
347
|
-
prefix:
|
|
348
|
-
suffix:
|
|
349
|
-
curveType:
|
|
344
|
+
ariaLabel: kt,
|
|
345
|
+
yAxisTitle: K,
|
|
346
|
+
noOfYTicks: It,
|
|
347
|
+
prefix: pt,
|
|
348
|
+
suffix: Bt,
|
|
349
|
+
curveType: Tt,
|
|
350
350
|
styles: m,
|
|
351
351
|
classNames: s,
|
|
352
|
-
precision:
|
|
353
|
-
customLayers:
|
|
354
|
-
animate:
|
|
355
|
-
} = n,
|
|
356
|
-
let
|
|
357
|
-
t[0] !==
|
|
358
|
-
const A =
|
|
359
|
-
let
|
|
360
|
-
t[2] !==
|
|
361
|
-
const
|
|
362
|
-
let
|
|
363
|
-
t[4] !==
|
|
364
|
-
const
|
|
365
|
-
let
|
|
366
|
-
t[6] !==
|
|
367
|
-
const
|
|
368
|
-
let
|
|
369
|
-
t[8] !==
|
|
370
|
-
const
|
|
371
|
-
let
|
|
372
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
373
|
-
const
|
|
374
|
-
|
|
352
|
+
precision: ut,
|
|
353
|
+
customLayers: G,
|
|
354
|
+
animate: h
|
|
355
|
+
} = n, b = Lt === void 0 ? _e.light.categoricalColors.colors : Lt, gt = St === void 0 ? 10 : St, Q = Dt === void 0 ? "yyyy" : Dt, zt = rt === void 0 ? !1 : rt, Ut = lt === void 0 ? 50 : lt, f = Xt === void 0 ? 20 : Xt, d = ct === void 0 ? 20 : ct, qt = Y === void 0 ? 25 : Y;
|
|
356
|
+
let Nt;
|
|
357
|
+
t[0] !== U ? (Nt = U === void 0 ? [] : U, t[0] = U, t[1] = Nt) : Nt = t[1];
|
|
358
|
+
const A = Nt;
|
|
359
|
+
let P;
|
|
360
|
+
t[2] !== $ ? (P = $ === void 0 ? [] : $, t[2] = $, t[3] = P) : P = t[3];
|
|
361
|
+
const Mt = P, r = J === void 0 ? !1 : J, l = V === void 0 ? !1 : V, xt = c === void 0 ? !0 : c, k = Wt === void 0 ? "en" : Wt, Ht = ft === void 0 ? 0 : ft;
|
|
362
|
+
let X;
|
|
363
|
+
t[4] !== u ? (X = u === void 0 ? [] : u, t[4] = u, t[5] = X) : X = t[5];
|
|
364
|
+
const dt = X;
|
|
365
|
+
let Z;
|
|
366
|
+
t[6] !== $t ? (Z = $t === void 0 ? [] : $t, t[6] = $t, t[7] = Z) : Z = t[7];
|
|
367
|
+
const _ = Z, ht = C === void 0 ? "light" : C, yt = It === void 0 ? 5 : It, tt = pt === void 0 ? "" : pt, vt = Bt === void 0 ? "" : Bt, At = Tt === void 0 ? "curve" : Tt, Ct = ut === void 0 ? 2 : ut;
|
|
368
|
+
let et;
|
|
369
|
+
t[8] !== G ? (et = G === void 0 ? [] : G, t[8] = G, t[9] = et) : et = t[9];
|
|
370
|
+
const wt = et, O = h === void 0 ? !1 : h, [ot, Jt] = Qt(0), [st, it] = Qt(0), bt = pe(null), Rt = pe(null);
|
|
371
|
+
let L, nt;
|
|
372
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (L = () => {
|
|
373
|
+
const Zt = new ResizeObserver((_t) => {
|
|
374
|
+
Jt(_t[0].target.clientWidth || 620), it(_t[0].target.clientHeight || 480);
|
|
375
375
|
});
|
|
376
|
-
return
|
|
377
|
-
},
|
|
378
|
-
const
|
|
376
|
+
return bt.current && Zt.observe(bt.current), () => Zt.disconnect();
|
|
377
|
+
}, nt = [], t[10] = L, t[11] = nt) : (L = t[10], nt = t[11]), we(L, nt);
|
|
378
|
+
const Ot = s?.graphContainer, T = m?.graphContainer;
|
|
379
379
|
let j;
|
|
380
|
-
t[12] !== s?.description || t[13] !== s?.title || t[14] !==
|
|
380
|
+
t[12] !== s?.description || t[13] !== s?.title || t[14] !== p || t[15] !== l || t[16] !== i || t[17] !== r || t[18] !== I || t[19] !== m?.description || t[20] !== m?.title || t[21] !== v ? (j = I || i || r || l ? /* @__PURE__ */ a.jsx(Qe, { styles: {
|
|
381
381
|
title: m?.title,
|
|
382
382
|
description: m?.description
|
|
383
383
|
}, classNames: {
|
|
384
384
|
title: s?.title,
|
|
385
385
|
description: s?.description
|
|
386
|
-
}, graphTitle:
|
|
387
|
-
let
|
|
388
|
-
t[23] !==
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
386
|
+
}, graphTitle: I, graphDescription: i, width: v, graphDownload: r ? Rt : void 0, dataDownload: l ? p.map(yo).filter(ho).length > 0 ? p.map(xo).filter(go) : p.filter(uo) : null }) : null, t[12] = s?.description, t[13] = s?.title, t[14] = p, t[15] = l, t[16] = i, t[17] = r, t[18] = I, t[19] = m?.description, t[20] = m?.title, t[21] = v, t[22] = j) : j = t[22];
|
|
387
|
+
let N;
|
|
388
|
+
t[23] !== s?.colorLegend || t[24] !== B || t[25] !== at || t[26] !== b || t[27] !== p.length || t[28] !== xt ? (N = xt !== !1 && p.length > 0 ? /* @__PURE__ */ a.jsx(Ze, { colorDomain: B, colors: b, colorLegendTitle: at, showNAColor: !1, className: s?.colorLegend }) : null, t[23] = s?.colorLegend, t[24] = B, t[25] = at, t[26] = b, t[27] = p.length, t[28] = xt, t[29] = N) : N = t[29];
|
|
389
|
+
let M;
|
|
390
|
+
t[30] !== p.length ? (M = p.length === 0 && /* @__PURE__ */ a.jsx(to, {}), t[30] = p.length, t[31] = M) : M = t[31];
|
|
391
|
+
let H;
|
|
392
|
+
t[32] !== O || t[33] !== dt || t[34] !== qt || t[35] !== s || t[36] !== b || t[37] !== At || t[38] !== _ || t[39] !== wt || t[40] !== p || t[41] !== Q || t[42] !== A || t[43] !== k || t[44] !== Ut || t[45] !== x || t[46] !== g || t[47] !== gt || t[48] !== yt || t[49] !== F || t[50] !== Ct || t[51] !== tt || t[52] !== Mt || t[53] !== f || t[54] !== m || t[55] !== vt || t[56] !== st || t[57] !== ot || t[58] !== mt || t[59] !== d || t[60] !== K ? (H = ot && st && p.length > 0 ? /* @__PURE__ */ a.jsx(so, { data: p, colors: b, width: ot, height: st, dateFormat: Q, noOfXTicks: gt, leftMargin: Ut, rightMargin: f, topMargin: d, bottomMargin: qt, tooltip: mt, onSeriesMouseOver: F, highlightAreaSettings: A, refValues: Mt, minValue: g, maxValue: x, rtl: k === "he" || k === "ar", annotations: dt, customHighlightAreaSettings: _, yAxisTitle: K, noOfYTicks: yt, prefix: tt, suffix: vt, curveType: At, styles: m, classNames: s, precision: Ct, customLayers: wt, animate: O === !0 ? {
|
|
393
|
+
duration: 0.5,
|
|
394
|
+
once: !0,
|
|
395
|
+
amount: 0.5
|
|
396
|
+
} : O || {
|
|
397
|
+
duration: 0,
|
|
398
|
+
once: !0,
|
|
399
|
+
amount: 0
|
|
400
|
+
} }) : null, t[32] = O, t[33] = dt, t[34] = qt, t[35] = s, t[36] = b, t[37] = At, t[38] = _, t[39] = wt, t[40] = p, t[41] = Q, t[42] = A, t[43] = k, t[44] = Ut, t[45] = x, t[46] = g, t[47] = gt, t[48] = yt, t[49] = F, t[50] = Ct, t[51] = tt, t[52] = Mt, t[53] = f, t[54] = m, t[55] = vt, t[56] = st, t[57] = ot, t[58] = mt, t[59] = d, t[60] = K, t[61] = H) : H = t[61];
|
|
401
|
+
let R;
|
|
402
|
+
t[62] !== M || t[63] !== H ? (R = /* @__PURE__ */ a.jsxs(eo, { ref: bt, children: [
|
|
403
|
+
M,
|
|
404
|
+
H
|
|
405
|
+
] }), t[62] = M, t[63] = H, t[64] = R) : R = t[64];
|
|
406
|
+
let S;
|
|
407
|
+
t[65] !== s?.footnote || t[66] !== s?.source || t[67] !== y || t[68] !== jt || t[69] !== m?.footnote || t[70] !== m?.source || t[71] !== v ? (S = jt || y ? /* @__PURE__ */ a.jsx(Ke, { styles: {
|
|
402
408
|
footnote: m?.footnote,
|
|
403
409
|
source: m?.source
|
|
404
410
|
}, classNames: {
|
|
405
411
|
footnote: s?.footnote,
|
|
406
412
|
source: s?.source
|
|
407
|
-
}, sources:
|
|
408
|
-
let
|
|
409
|
-
return t[
|
|
413
|
+
}, sources: jt, footNote: y, width: v }) : null, t[65] = s?.footnote, t[66] = s?.source, t[67] = y, t[68] = jt, t[69] = m?.footnote, t[70] = m?.source, t[71] = v, t[72] = S) : S = t[72];
|
|
414
|
+
let E;
|
|
415
|
+
return t[73] !== kt || t[74] !== zt || t[75] !== q || t[76] !== Pt || t[77] !== k || t[78] !== Ht || t[79] !== z || t[80] !== Et || t[81] !== Ot || t[82] !== T || t[83] !== j || t[84] !== N || t[85] !== R || t[86] !== S || t[87] !== ht || t[88] !== v ? (E = /* @__PURE__ */ a.jsxs(oo, { className: Ot, style: T, id: q, ref: Rt, "aria-label": kt, backgroundColor: zt, theme: ht, language: k, minHeight: Ht, width: v, height: Pt, relativeHeight: Et, padding: z, children: [
|
|
410
416
|
j,
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
417
|
+
N,
|
|
418
|
+
R,
|
|
419
|
+
S
|
|
420
|
+
] }), t[73] = kt, t[74] = zt, t[75] = q, t[76] = Pt, t[77] = k, t[78] = Ht, t[79] = z, t[80] = Et, t[81] = Ot, t[82] = T, t[83] = j, t[84] = N, t[85] = R, t[86] = S, t[87] = ht, t[88] = v, t[89] = E) : E = t[89], E;
|
|
414
421
|
}
|
|
415
422
|
function uo(n) {
|
|
416
423
|
return n !== void 0;
|