@undp/data-viz 2.1.0 → 2.1.2
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.js +3 -3
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +1760 -1604
- package/dist/BarGraph.js.map +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 +222 -207
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +11 -0
- package/dist/BulletChart.js +726 -640
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +366 -348
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +311 -297
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DifferenceLineChart.js +3 -3
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +219 -203
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.js +3 -3
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +606 -556
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GraphEl-YKUlz-37.cjs +2 -0
- package/dist/GraphEl-YKUlz-37.cjs.map +1 -0
- package/dist/{GraphEl-ebgfxefq.js → GraphEl-sVZvlyWe.js} +3 -2
- package/dist/GraphEl-sVZvlyWe.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +2 -2
- package/dist/HeatMap.js +4 -4
- package/dist/Histogram.js +3 -3
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +357 -342
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +3 -3
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +453 -425
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.js +3 -3
- package/dist/ParetoChart.js +2 -2
- package/dist/RadarChart.js +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +471 -452
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/SimpleLineChart.js +3 -3
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +2 -2
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SlopeChart.js +1 -1
- package/dist/SparkLine.js +3 -3
- package/dist/StripChart.js +1 -1
- package/dist/ThreeDGlobe.js +2 -2
- package/dist/Types.d.ts +1 -0
- package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
- package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
- package/dist/ensureCompleteData-DS7gCvVd.js +122 -0
- package/dist/ensureCompleteData-DS7gCvVd.js.map +1 -0
- package/dist/ensureCompleteData-Oib-vGb0.cjs +2 -0
- package/dist/ensureCompleteData-Oib-vGb0.cjs.map +1 -0
- package/dist/getSchema.cjs +1 -1
- package/dist/getSchema.cjs.map +1 -1
- package/dist/getSchema.js +15 -15
- package/dist/getSchema.js.map +1 -1
- package/dist/{index-BBV4tAeA.js → index-DPGq3eIL.js} +2 -2
- package/dist/{index-BBV4tAeA.js.map → index-DPGq3eIL.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -3
- package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
- package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
- package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
- package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
- package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
- package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
- package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
- package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
- package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
- package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
- package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
- package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
- package/dist/transformData.cjs +1 -1
- package/dist/transformData.js +2 -2
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs +2 -0
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs.map +1 -0
- package/dist/{transformDataForAggregation-DEU__LUl.js → transformDataForAggregation-j34UL73s.js} +14 -10
- package/dist/transformDataForAggregation-j34UL73s.js.map +1 -0
- package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs → transformDataForGraphFromFile-CuXxR8uA.cjs} +2 -2
- package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs.map → transformDataForGraphFromFile-CuXxR8uA.cjs.map} +1 -1
- package/dist/{transformDataForGraphFromFile-CSG24iF6.js → transformDataForGraphFromFile-DyP-83Nh.js} +2 -2
- package/dist/{transformDataForGraphFromFile-CSG24iF6.js.map → transformDataForGraphFromFile-DyP-83Nh.js.map} +1 -1
- package/package.json +4 -4
- package/dist/GraphEl-B16EYkko.cjs +0 -2
- package/dist/GraphEl-B16EYkko.cjs.map +0 -1
- package/dist/GraphEl-ebgfxefq.js.map +0 -1
- package/dist/ensureCompleteData-DNKEGRiP.js +0 -102
- package/dist/ensureCompleteData-DNKEGRiP.js.map +0 -1
- package/dist/ensureCompleteData-I6nYmT8E.cjs +0 -2
- package/dist/ensureCompleteData-I6nYmT8E.cjs.map +0 -1
- package/dist/sort-BIvMlUH1.js +0 -34
- package/dist/sort-BIvMlUH1.js.map +0 -1
- package/dist/sort-O96oMZLb.cjs +0 -2
- package/dist/sort-O96oMZLb.cjs.map +0 -1
- package/dist/transformDataForAggregation-DEU__LUl.js.map +0 -1
- package/dist/transformDataForAggregation-XNg0OGYE.cjs +0 -2
- package/dist/transformDataForAggregation-XNg0OGYE.cjs.map +0 -1
package/dist/BarGraph.js
CHANGED
|
@@ -1,1005 +1,1082 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { g as
|
|
4
|
-
import {
|
|
5
|
-
import { o as
|
|
6
|
-
import { s as
|
|
7
|
-
import { i as
|
|
8
|
-
import { n as
|
|
9
|
-
import { T as
|
|
10
|
-
import { c as
|
|
11
|
-
import { Y as
|
|
12
|
-
import { A as
|
|
13
|
-
import { A as
|
|
14
|
-
import { X as
|
|
15
|
-
import { R as
|
|
16
|
-
import { Y as
|
|
17
|
-
import { X as
|
|
18
|
-
import { D as
|
|
19
|
-
import { u as
|
|
20
|
-
import { a as
|
|
21
|
-
import { b as
|
|
22
|
-
import { A as
|
|
23
|
-
import { m as
|
|
24
|
-
import { GraphHeader as
|
|
25
|
-
import { GraphFooter as
|
|
26
|
-
import { ColorLegendWithMouseOver as
|
|
27
|
-
import { Colors as
|
|
28
|
-
import { E as
|
|
29
|
-
import { P as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
valueColor: H,
|
|
67
|
-
noOfTicks: u,
|
|
1
|
+
import { c as ge, j as i, m as be } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as pe, useState as Zt, useEffect as ke } from "react";
|
|
3
|
+
import { g as Fe, N as Pe } from "./getSliderMarks-HIDJ0_Cd.js";
|
|
4
|
+
import { f as we, p as He } from "./parse-DlCRUFh_.js";
|
|
5
|
+
import { o as Te } from "./index-BZQYSqar.js";
|
|
6
|
+
import { s as ce } from "./index-CeVNqhMO.js";
|
|
7
|
+
import { i as Ce } from "./index-Bwrro8-q.js";
|
|
8
|
+
import { n as fe } from "./numberFormattingFunction-14YCbkN2.js";
|
|
9
|
+
import { T as Ve } from "./Tooltip-Dj5eVppQ.js";
|
|
10
|
+
import { c as ie } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
|
+
import { Y as We } from "./YAxesLabels-a57ZRv-0.js";
|
|
12
|
+
import { A as ze } from "./Axis-CRyfcLjc.js";
|
|
13
|
+
import { A as De } from "./AxisTitle-jeI7am8o.js";
|
|
14
|
+
import { X as Xe } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
15
|
+
import { R as Ye, a as Ee } from "./ReferenceLine-2XCwHXQ4.js";
|
|
16
|
+
import { Y as Ge } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
17
|
+
import { X as Re } from "./XAxesLabels-Dy8E1SEo.js";
|
|
18
|
+
import { D as Le } from "./DetailsModal-0Ry5nXiC.js";
|
|
19
|
+
import { u as Ie } from "./use-in-view-Cxa7y1TH.js";
|
|
20
|
+
import { a as je } from "./linear-BqltdMeF.js";
|
|
21
|
+
import { b as ve } from "./band-DHUZ2X7J.js";
|
|
22
|
+
import { A as Ne } from "./index-BqfRwk1n.js";
|
|
23
|
+
import { m as ee } from "./proxy-BxkFHwUw.js";
|
|
24
|
+
import { GraphHeader as qe } from "./GraphHeader.js";
|
|
25
|
+
import { GraphFooter as Ue } from "./GraphFooter.js";
|
|
26
|
+
import { ColorLegendWithMouseOver as Je } from "./ColorLegendWithMouseOver.js";
|
|
27
|
+
import { Colors as xe } from "./Colors.js";
|
|
28
|
+
import { E as Ke } from "./EmptyState-BZo1BbAn.js";
|
|
29
|
+
import { P as Qe, e as Ze } from "./index-D491FEn1.js";
|
|
30
|
+
import { d as Me, f as ei } from "./ensureCompleteData-DS7gCvVd.js";
|
|
31
|
+
import { a as _e, G as ti } from "./GraphContainer-CRqzdKu2.js";
|
|
32
|
+
import { u as ii } from "./uniqBy-BHy4I8PK.js";
|
|
33
|
+
import { g as Be } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
34
|
+
function si(e) {
|
|
35
|
+
const t = ge.c(130), {
|
|
36
|
+
data: a,
|
|
37
|
+
leftMargin: P,
|
|
38
|
+
rightMargin: qt,
|
|
39
|
+
topMargin: Ut,
|
|
40
|
+
bottomMargin: It,
|
|
41
|
+
barColors: Ot,
|
|
42
|
+
barPadding: Tt,
|
|
43
|
+
showTicks: B,
|
|
44
|
+
truncateBy: q,
|
|
45
|
+
width: A,
|
|
46
|
+
height: lt,
|
|
47
|
+
suffix: St,
|
|
48
|
+
prefix: tt,
|
|
49
|
+
showValues: Et,
|
|
50
|
+
showLabels: U,
|
|
51
|
+
tooltip: at,
|
|
52
|
+
onSeriesMouseOver: Mt,
|
|
53
|
+
refValues: kt,
|
|
54
|
+
maxValue: Xt,
|
|
55
|
+
minValue: M,
|
|
56
|
+
onSeriesMouseClick: J,
|
|
57
|
+
selectedColor: H,
|
|
58
|
+
rtl: D,
|
|
59
|
+
labelOrder: nt,
|
|
60
|
+
maxBarThickness: K,
|
|
61
|
+
resetSelectionOnDoubleClick: mt,
|
|
62
|
+
detailsOnClick: L,
|
|
63
|
+
barAxisTitle: Q,
|
|
64
|
+
valueColor: et,
|
|
65
|
+
noOfTicks: c,
|
|
68
66
|
styles: s,
|
|
69
|
-
classNames:
|
|
70
|
-
animate:
|
|
71
|
-
colorDomain:
|
|
72
|
-
precision:
|
|
67
|
+
classNames: l,
|
|
68
|
+
animate: m,
|
|
69
|
+
colorDomain: d,
|
|
70
|
+
precision: g,
|
|
73
71
|
customLayers: x,
|
|
74
|
-
naLabel:
|
|
75
|
-
} = e,
|
|
76
|
-
let
|
|
77
|
-
t[0] !==
|
|
78
|
-
once:
|
|
79
|
-
amount:
|
|
80
|
-
}, t[0] =
|
|
81
|
-
const
|
|
82
|
-
let
|
|
83
|
-
t[3] !==
|
|
84
|
-
top:
|
|
85
|
-
bottom:
|
|
86
|
-
left:
|
|
87
|
-
right:
|
|
88
|
-
}, t[3] =
|
|
89
|
-
const
|
|
90
|
-
let
|
|
91
|
-
if (t[8] !==
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
72
|
+
naLabel: k
|
|
73
|
+
} = e, rt = P === void 0 ? 100 : P, Z = qt === void 0 ? 40 : qt, pt = Ut === void 0 ? 25 : Ut, Jt = It === void 0 ? 10 : It, Gt = pe(null);
|
|
74
|
+
let Y;
|
|
75
|
+
t[0] !== m.amount || t[1] !== m.once ? (Y = {
|
|
76
|
+
once: m.once,
|
|
77
|
+
amount: m.amount
|
|
78
|
+
}, t[0] = m.amount, t[1] = m.once, t[2] = Y) : Y = t[2];
|
|
79
|
+
const gt = Ie(Gt, Y), Ht = Q ? pt + 25 : pt;
|
|
80
|
+
let r;
|
|
81
|
+
t[3] !== Jt || t[4] !== rt || t[5] !== Z || t[6] !== Ht ? (r = {
|
|
82
|
+
top: Ht,
|
|
83
|
+
bottom: Jt,
|
|
84
|
+
left: rt,
|
|
85
|
+
right: Z
|
|
86
|
+
}, t[3] = Jt, t[4] = rt, t[5] = Z, t[6] = Ht, t[7] = r) : r = t[7];
|
|
87
|
+
const n = r, [F, y] = Zt(void 0), [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), Ct = A - n.left - n.right, E = lt - n.top - n.bottom;
|
|
88
|
+
let w;
|
|
89
|
+
if (t[8] !== a || t[9] !== nt) {
|
|
90
|
+
const v = /* @__PURE__ */ new Set(), ft = a.map((f, Dt) => {
|
|
91
|
+
const Lt = nt ? `${f.label}` : `${Dt}`;
|
|
92
|
+
return v.add(Lt), {
|
|
93
|
+
...f,
|
|
94
|
+
id: Lt
|
|
95
|
+
};
|
|
96
|
+
}), j = nt ? nt.filter((f) => !v.has(f)) : [];
|
|
97
|
+
let p;
|
|
98
|
+
t[11] !== a[0].size.length ? (p = (f) => ({
|
|
99
|
+
id: f,
|
|
100
|
+
label: f,
|
|
101
|
+
size: Array(a[0].size.length).fill(null)
|
|
102
|
+
}), t[11] = a[0].size.length, t[12] = p) : p = t[12], w = [...ft, ...j.map(p)], t[8] = a, t[9] = nt, t[10] = w;
|
|
103
|
+
} else
|
|
104
|
+
w = t[10];
|
|
105
|
+
const bt = w;
|
|
106
|
+
let Wt;
|
|
107
|
+
t[13] !== bt || t[14] !== nt ? (Wt = nt ?? bt.map(ui), t[13] = bt, t[14] = nt, t[15] = Wt) : Wt = t[15];
|
|
108
|
+
const jt = Wt;
|
|
109
|
+
let ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _, ut;
|
|
110
|
+
if (t[16] !== m || t[17] !== Q || t[18] !== Ot || t[19] !== jt || t[20] !== Tt || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.gridLines || t[23] !== l?.xAxis?.labels || t[24] !== l?.xAxis?.title || t[25] !== l?.yAxis?.axis || t[26] !== l?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== a[0].size || t[30] !== bt || t[31] !== L || t[32] !== E || t[33] !== Ct || t[34] !== lt || t[35] !== gt || t[36] !== n.bottom || t[37] !== n.left || t[38] !== n.top || t[39] !== K || t[40] !== Xt || t[41] !== M || t[42] !== it || t[43] !== k || t[44] !== c || t[45] !== J || t[46] !== Mt || t[47] !== g || t[48] !== tt || t[49] !== kt || t[50] !== mt || t[51] !== D || t[52] !== H || t[53] !== U || t[54] !== B || t[55] !== Et || t[56] !== s?.graphObjectValues || t[57] !== s?.xAxis?.gridLines || t[58] !== s?.xAxis?.labels || t[59] !== s?.xAxis?.title || t[60] !== s?.yAxis?.axis || t[61] !== s?.yAxis?.labels || t[62] !== St || t[63] !== pt || t[64] !== q || t[65] !== et || t[66] !== A) {
|
|
111
|
+
const v = je().domain([M, Xt]).range([0, Ct]).nice(), ft = ve().domain(jt).range([0, K ? Math.min(E, K * jt.length) : E]).paddingInner(Tt), j = ve().domain(a[0].size.map(di)).range([0, ft.bandwidth()]).paddingInner(0.1), p = v.ticks(c);
|
|
112
|
+
Ft = ee.svg, ht = Gt, ot = `${A}px`, dt = `${lt}px`, vt = `0 0 ${A} ${lt}`, _ = "ltr", zt = `translate(${n.left},${n.top})`, G = B ? /* @__PURE__ */ i.jsx(Xe, { values: p.filter(ci), x: p.filter(ri).map((V) => v(V)), y1: 0 - pt, y2: E + n.bottom, styles: {
|
|
99
113
|
gridLines: s?.xAxis?.gridLines,
|
|
100
114
|
labels: s?.xAxis?.labels
|
|
101
115
|
}, classNames: {
|
|
102
|
-
gridLines:
|
|
103
|
-
labels:
|
|
104
|
-
}, suffix:
|
|
105
|
-
const
|
|
106
|
-
t[
|
|
116
|
+
gridLines: l?.xAxis?.gridLines,
|
|
117
|
+
labels: l?.xAxis?.labels
|
|
118
|
+
}, suffix: St, prefix: tt, labelType: "secondary", showGridLines: !0, precision: g }) : null;
|
|
119
|
+
const f = Ct / 2, Dt = 0 - n.top + 15, Lt = s?.xAxis?.title, Kt = l?.xAxis?.title;
|
|
120
|
+
t[81] !== Q || t[82] !== f || t[83] !== Dt || t[84] !== Lt || t[85] !== Kt ? (I = /* @__PURE__ */ i.jsx(De, { x: f, y: Dt, style: Lt, className: Kt, text: Q }), t[81] = Q, t[82] = f, t[83] = Dt, t[84] = Lt, t[85] = Kt, t[86] = I) : I = t[86], t[87] !== x ? (z = x.filter(ni).map(oi), t[87] = x, t[88] = z) : z = t[88], ct = Ne, ut = bt.map((V) => ie(ft(V.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
|
|
107
121
|
initial: {
|
|
108
122
|
x: 0,
|
|
109
|
-
y:
|
|
123
|
+
y: ft(`${V.id}`)
|
|
110
124
|
},
|
|
111
125
|
whileInView: {
|
|
112
126
|
x: 0,
|
|
113
|
-
y:
|
|
127
|
+
y: ft(`${V.id}`),
|
|
114
128
|
transition: {
|
|
115
|
-
duration:
|
|
129
|
+
duration: m.duration
|
|
116
130
|
}
|
|
117
131
|
}
|
|
118
|
-
}, initial: "initial", animate:
|
|
132
|
+
}, initial: "initial", animate: gt ? "whileInView" : "initial", exit: {
|
|
119
133
|
opacity: 0,
|
|
120
134
|
transition: {
|
|
121
|
-
duration:
|
|
135
|
+
duration: m.duration
|
|
122
136
|
}
|
|
123
137
|
}, children: [
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
...
|
|
127
|
-
sizeIndex:
|
|
128
|
-
}),
|
|
129
|
-
...
|
|
130
|
-
sizeIndex:
|
|
138
|
+
V.size.map((R, o) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: H ? Ot[o] === H ? 1 : 0.3 : 0.85, onMouseEnter: (h) => {
|
|
139
|
+
y({
|
|
140
|
+
...V,
|
|
141
|
+
sizeIndex: o
|
|
142
|
+
}), xt(h.clientY), Yt(h.clientX), Mt?.({
|
|
143
|
+
...V,
|
|
144
|
+
sizeIndex: o
|
|
131
145
|
});
|
|
132
|
-
}, onMouseMove: (
|
|
133
|
-
|
|
134
|
-
...
|
|
135
|
-
sizeIndex:
|
|
136
|
-
}),
|
|
146
|
+
}, onMouseMove: (h) => {
|
|
147
|
+
y({
|
|
148
|
+
...V,
|
|
149
|
+
sizeIndex: o
|
|
150
|
+
}), xt(h.clientY), Yt(h.clientX);
|
|
137
151
|
}, onMouseLeave: () => {
|
|
138
|
-
|
|
152
|
+
y(void 0), Yt(void 0), xt(void 0), Mt?.(void 0);
|
|
139
153
|
}, onClick: () => {
|
|
140
|
-
(
|
|
141
|
-
...
|
|
142
|
-
sizeIndex:
|
|
143
|
-
}) &&
|
|
144
|
-
...
|
|
145
|
-
sizeIndex:
|
|
146
|
-
}),
|
|
147
|
-
...
|
|
148
|
-
sizeIndex:
|
|
154
|
+
(J || L) && (Ce(it, {
|
|
155
|
+
...V,
|
|
156
|
+
sizeIndex: o
|
|
157
|
+
}) && mt ? (W(void 0), J?.(void 0)) : (W({
|
|
158
|
+
...V,
|
|
159
|
+
sizeIndex: o
|
|
160
|
+
}), J && J({
|
|
161
|
+
...V,
|
|
162
|
+
sizeIndex: o
|
|
149
163
|
})));
|
|
150
164
|
}, children: [
|
|
151
|
-
|
|
165
|
+
ie(R) ? null : /* @__PURE__ */ i.jsx(ee.rect, { y: j(`${o}`), variants: {
|
|
152
166
|
initial: {
|
|
153
167
|
width: 0,
|
|
154
|
-
x:
|
|
155
|
-
fill:
|
|
168
|
+
x: v(0),
|
|
169
|
+
fill: Ot[o]
|
|
156
170
|
},
|
|
157
171
|
whileInView: {
|
|
158
|
-
width:
|
|
159
|
-
x:
|
|
160
|
-
fill:
|
|
172
|
+
width: ie(R) ? 0 : R >= 0 ? v(R) - v(0) : v(0) - v(R),
|
|
173
|
+
x: R >= 0 ? v(0) : v(R),
|
|
174
|
+
fill: Ot[o],
|
|
161
175
|
transition: {
|
|
162
|
-
duration:
|
|
176
|
+
duration: m.duration
|
|
163
177
|
}
|
|
164
178
|
}
|
|
165
179
|
}, exit: {
|
|
166
180
|
width: 0,
|
|
167
|
-
x:
|
|
181
|
+
x: v(0),
|
|
168
182
|
transition: {
|
|
169
|
-
duration:
|
|
183
|
+
duration: m.duration
|
|
170
184
|
}
|
|
171
|
-
}, height:
|
|
172
|
-
|
|
173
|
-
textAnchor:
|
|
185
|
+
}, height: j.bandwidth(), initial: "initial", animate: gt ? "whileInView" : "initial" }),
|
|
186
|
+
Et ? /* @__PURE__ */ i.jsx(ee.text, { y: j(`${o}`) + j.bandwidth() / 2, style: {
|
|
187
|
+
textAnchor: R && R < 0 ? "end" : "start",
|
|
174
188
|
...s?.graphObjectValues || {}
|
|
175
|
-
}, className:
|
|
189
|
+
}, className: be("graph-value text-sm", l?.graphObjectValues), dx: R && R < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
176
190
|
initial: {
|
|
177
|
-
x:
|
|
191
|
+
x: v(0),
|
|
178
192
|
opacity: 0,
|
|
179
|
-
fill:
|
|
193
|
+
fill: et || Ot[o]
|
|
180
194
|
},
|
|
181
195
|
whileInView: {
|
|
182
|
-
x:
|
|
196
|
+
x: v(R || 0),
|
|
183
197
|
opacity: 1,
|
|
184
|
-
fill:
|
|
198
|
+
fill: et || Ot[o],
|
|
185
199
|
transition: {
|
|
186
|
-
duration:
|
|
200
|
+
duration: m.duration
|
|
187
201
|
}
|
|
188
202
|
}
|
|
189
|
-
}, initial: "initial", animate:
|
|
203
|
+
}, initial: "initial", animate: gt ? "whileInView" : "initial", exit: {
|
|
190
204
|
opacity: 0,
|
|
191
205
|
transition: {
|
|
192
|
-
duration:
|
|
206
|
+
duration: m.duration
|
|
193
207
|
}
|
|
194
|
-
}, children:
|
|
195
|
-
] }, `${
|
|
196
|
-
|
|
197
|
-
] },
|
|
198
|
-
const
|
|
199
|
-
let
|
|
200
|
-
t[
|
|
201
|
-
axis:
|
|
202
|
-
}, t[
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
t[
|
|
206
|
-
axis:
|
|
207
|
-
}, t[
|
|
208
|
+
}, children: fe(R, k, g, tt, St) }) : null
|
|
209
|
+
] }, `${V.label}-${d[o] || o}`)),
|
|
210
|
+
U ? /* @__PURE__ */ i.jsx(We, { value: `${V.label}`.length < q ? `${V.label}` : `${`${V.label}`.substring(0, q)}...`, y: 0, x: 0 - n.left, width: v(M < 0 ? 0 : M) + n.left, height: ft.bandwidth(), style: s?.yAxis?.labels, className: l?.yAxis?.labels, animate: m, isInView: gt }) : null
|
|
211
|
+
] }, V.label));
|
|
212
|
+
const N = l?.yAxis?.axis;
|
|
213
|
+
let T;
|
|
214
|
+
t[89] !== N ? (T = {
|
|
215
|
+
axis: N
|
|
216
|
+
}, t[89] = N, t[90] = T) : T = t[90];
|
|
217
|
+
const Rt = s?.yAxis?.axis;
|
|
218
|
+
let X;
|
|
219
|
+
t[91] !== Rt ? (X = {
|
|
220
|
+
axis: Rt
|
|
221
|
+
}, t[91] = Rt, t[92] = X) : X = t[92], Nt = /* @__PURE__ */ i.jsx(ze, { x1: v(M < 0 ? 0 : M), x2: v(M < 0 ? 0 : M), y1: -2.5, y2: E + n.bottom, classNames: T, styles: X }), Vt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((V, R) => /* @__PURE__ */ i.jsx(Ye, { text: V.text, color: V.color, x: v(V.value), y1: 0 - n.top, y2: E + n.bottom, textSide: v(V.value) > Ct * 0.75 || D ? "left" : "right", classNames: V.classNames, styles: V.styles, animate: m, isInView: gt }, R)) }) : null, t[16] = m, t[17] = Q, t[18] = Ot, t[19] = jt, t[20] = Tt, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.gridLines, t[23] = l?.xAxis?.labels, t[24] = l?.xAxis?.title, t[25] = l?.yAxis?.axis, t[26] = l?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = a[0].size, t[30] = bt, t[31] = L, t[32] = E, t[33] = Ct, t[34] = lt, t[35] = gt, t[36] = n.bottom, t[37] = n.left, t[38] = n.top, t[39] = K, t[40] = Xt, t[41] = M, t[42] = it, t[43] = k, t[44] = c, t[45] = J, t[46] = Mt, t[47] = g, t[48] = tt, t[49] = kt, t[50] = mt, t[51] = D, t[52] = H, t[53] = U, t[54] = B, t[55] = Et, t[56] = s?.graphObjectValues, t[57] = s?.xAxis?.gridLines, t[58] = s?.xAxis?.labels, t[59] = s?.xAxis?.title, t[60] = s?.yAxis?.axis, t[61] = s?.yAxis?.labels, t[62] = St, t[63] = pt, t[64] = q, t[65] = et, t[66] = A, t[67] = ct, t[68] = Ft, t[69] = Nt, t[70] = Vt, t[71] = zt, t[72] = G, t[73] = I, t[74] = z, t[75] = ht, t[76] = ot, t[77] = dt, t[78] = vt, t[79] = _, t[80] = ut;
|
|
208
222
|
} else
|
|
209
|
-
|
|
210
|
-
let vt;
|
|
211
|
-
t[86] !== g || t[87] !== P || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
|
|
212
|
-
P,
|
|
213
|
-
ft,
|
|
214
|
-
pt
|
|
215
|
-
] }), t[86] = g, t[87] = P, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
|
|
223
|
+
ct = t[67], Ft = t[68], Nt = t[69], Vt = t[70], zt = t[71], G = t[72], I = t[73], z = t[74], ht = t[75], ot = t[76], dt = t[77], vt = t[78], _ = t[79], ut = t[80];
|
|
216
224
|
let wt;
|
|
217
|
-
t[
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
wt
|
|
225
|
-
] }), t[93] = Z, t[94] = U, t[95] = V, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = ot) : ot = t[99];
|
|
225
|
+
t[93] !== ct || t[94] !== Nt || t[95] !== Vt || t[96] !== ut ? (wt = /* @__PURE__ */ i.jsxs(ct, { children: [
|
|
226
|
+
ut,
|
|
227
|
+
Nt,
|
|
228
|
+
Vt
|
|
229
|
+
] }), t[93] = ct, t[94] = Nt, t[95] = Vt, t[96] = ut, t[97] = wt) : wt = t[97];
|
|
230
|
+
let st;
|
|
231
|
+
t[98] !== x ? (st = x.filter(ai).map(li), t[98] = x, t[99] = st) : st = t[99];
|
|
226
232
|
let At;
|
|
227
|
-
t[100] !==
|
|
233
|
+
t[100] !== zt || t[101] !== G || t[102] !== I || t[103] !== z || t[104] !== wt || t[105] !== st ? (At = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
|
|
234
|
+
G,
|
|
235
|
+
I,
|
|
236
|
+
z,
|
|
237
|
+
wt,
|
|
238
|
+
st
|
|
239
|
+
] }), t[100] = zt, t[101] = G, t[102] = I, t[103] = z, t[104] = wt, t[105] = st, t[106] = At) : At = t[106];
|
|
228
240
|
let $t;
|
|
229
|
-
t[108] !==
|
|
230
|
-
let Ot;
|
|
231
|
-
t[115] !== o?.modal || t[116] !== B || t[117] !== Y ? (Ot = B && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: B, data: Y, setData: N, className: o?.modal }) : null, t[115] = o?.modal, t[116] = B, t[117] = Y, t[118] = Ot) : Ot = t[118];
|
|
241
|
+
t[107] !== Ft || t[108] !== ht || t[109] !== ot || t[110] !== dt || t[111] !== vt || t[112] !== _ || t[113] !== At ? ($t = /* @__PURE__ */ i.jsx(Ft, { ref: ht, width: ot, height: dt, viewBox: vt, direction: _, children: At }), t[107] = Ft, t[108] = ht, t[109] = ot, t[110] = dt, t[111] = vt, t[112] = _, t[113] = At, t[114] = $t) : $t = t[114];
|
|
232
242
|
let b;
|
|
233
|
-
|
|
234
|
-
|
|
243
|
+
t[115] !== l?.tooltip || t[116] !== C || t[117] !== yt || t[118] !== F || t[119] !== s?.tooltip || t[120] !== at ? (b = F && at && C && yt ? /* @__PURE__ */ i.jsx(Ve, { data: F, body: at, xPos: C, yPos: yt, backgroundStyle: s?.tooltip, className: l?.tooltip }) : null, t[115] = l?.tooltip, t[116] = C, t[117] = yt, t[118] = F, t[119] = s?.tooltip, t[120] = at, t[121] = b) : b = t[121];
|
|
244
|
+
let $;
|
|
245
|
+
t[122] !== l?.modal || t[123] !== L || t[124] !== it ? ($ = L && it !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: L, data: it, setData: W, className: l?.modal }) : null, t[122] = l?.modal, t[123] = L, t[124] = it, t[125] = $) : $ = t[125];
|
|
246
|
+
let O;
|
|
247
|
+
return t[126] !== $t || t[127] !== b || t[128] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
235
248
|
$t,
|
|
236
|
-
|
|
237
|
-
|
|
249
|
+
b,
|
|
250
|
+
$
|
|
251
|
+
] }), t[126] = $t, t[127] = b, t[128] = $, t[129] = O) : O = t[129], O;
|
|
238
252
|
}
|
|
239
|
-
function
|
|
253
|
+
function li(e) {
|
|
240
254
|
return e.layer;
|
|
241
255
|
}
|
|
242
|
-
function
|
|
256
|
+
function ai(e) {
|
|
243
257
|
return e.position === "after";
|
|
244
258
|
}
|
|
245
|
-
function
|
|
259
|
+
function oi(e) {
|
|
246
260
|
return e.layer;
|
|
247
261
|
}
|
|
248
|
-
function
|
|
262
|
+
function ni(e) {
|
|
249
263
|
return e.position === "before";
|
|
250
264
|
}
|
|
251
|
-
function
|
|
265
|
+
function ri(e) {
|
|
252
266
|
return e !== 0;
|
|
253
267
|
}
|
|
254
|
-
function
|
|
268
|
+
function ci(e) {
|
|
255
269
|
return e !== 0;
|
|
256
270
|
}
|
|
257
|
-
function
|
|
271
|
+
function di(e, t) {
|
|
258
272
|
return `${t}`;
|
|
259
273
|
}
|
|
260
|
-
function
|
|
274
|
+
function ui(e) {
|
|
261
275
|
return `${e.id}`;
|
|
262
276
|
}
|
|
263
|
-
function
|
|
264
|
-
const t =
|
|
265
|
-
data:
|
|
266
|
-
leftMargin:
|
|
267
|
-
rightMargin:
|
|
268
|
-
topMargin:
|
|
269
|
-
bottomMargin:
|
|
270
|
-
width:
|
|
271
|
-
height:
|
|
272
|
-
barColors:
|
|
273
|
-
suffix:
|
|
274
|
-
prefix:
|
|
275
|
-
barPadding:
|
|
276
|
-
showLabels:
|
|
277
|
-
showValues:
|
|
278
|
-
showTicks:
|
|
279
|
-
truncateBy:
|
|
280
|
-
tooltip:
|
|
281
|
-
onSeriesMouseOver:
|
|
282
|
-
refValues:
|
|
283
|
-
maxValue:
|
|
284
|
-
minValue:
|
|
285
|
-
onSeriesMouseClick:
|
|
286
|
-
selectedColor:
|
|
287
|
-
labelOrder:
|
|
288
|
-
maxBarThickness:
|
|
289
|
-
resetSelectionOnDoubleClick:
|
|
290
|
-
detailsOnClick:
|
|
291
|
-
barAxisTitle:
|
|
292
|
-
valueColor:
|
|
293
|
-
noOfTicks:
|
|
294
|
-
styles:
|
|
277
|
+
function mi(e) {
|
|
278
|
+
const t = ge.c(138), {
|
|
279
|
+
data: a,
|
|
280
|
+
leftMargin: P,
|
|
281
|
+
rightMargin: qt,
|
|
282
|
+
topMargin: Ut,
|
|
283
|
+
bottomMargin: It,
|
|
284
|
+
width: Ot,
|
|
285
|
+
height: Tt,
|
|
286
|
+
barColors: B,
|
|
287
|
+
suffix: q,
|
|
288
|
+
prefix: A,
|
|
289
|
+
barPadding: lt,
|
|
290
|
+
showLabels: St,
|
|
291
|
+
showValues: tt,
|
|
292
|
+
showTicks: Et,
|
|
293
|
+
truncateBy: U,
|
|
294
|
+
tooltip: at,
|
|
295
|
+
onSeriesMouseOver: Mt,
|
|
296
|
+
refValues: kt,
|
|
297
|
+
maxValue: Xt,
|
|
298
|
+
minValue: M,
|
|
299
|
+
onSeriesMouseClick: J,
|
|
300
|
+
selectedColor: H,
|
|
301
|
+
labelOrder: D,
|
|
302
|
+
maxBarThickness: nt,
|
|
303
|
+
resetSelectionOnDoubleClick: K,
|
|
304
|
+
detailsOnClick: mt,
|
|
305
|
+
barAxisTitle: L,
|
|
306
|
+
valueColor: Q,
|
|
307
|
+
noOfTicks: et,
|
|
308
|
+
styles: c,
|
|
295
309
|
classNames: s,
|
|
296
|
-
animate:
|
|
297
|
-
colorDomain:
|
|
298
|
-
precision:
|
|
299
|
-
customLayers:
|
|
310
|
+
animate: l,
|
|
311
|
+
colorDomain: m,
|
|
312
|
+
precision: d,
|
|
313
|
+
customLayers: g,
|
|
300
314
|
naLabel: x
|
|
301
|
-
} = e,
|
|
302
|
-
let
|
|
303
|
-
t[0] !==
|
|
304
|
-
once:
|
|
305
|
-
amount:
|
|
306
|
-
}, t[0] =
|
|
307
|
-
const
|
|
308
|
-
let
|
|
309
|
-
t[3] !==
|
|
310
|
-
top:
|
|
311
|
-
bottom:
|
|
312
|
-
left:
|
|
313
|
-
right:
|
|
314
|
-
}, t[3] =
|
|
315
|
-
const
|
|
316
|
-
let
|
|
317
|
-
if (t[8] !==
|
|
318
|
-
const
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
315
|
+
} = e, k = P === void 0 ? 20 : P, rt = qt === void 0 ? 20 : qt, Z = Ut === void 0 ? 20 : Ut, pt = It === void 0 ? 25 : It, Jt = pe(null);
|
|
316
|
+
let Gt;
|
|
317
|
+
t[0] !== l.amount || t[1] !== l.once ? (Gt = {
|
|
318
|
+
once: l.once,
|
|
319
|
+
amount: l.amount
|
|
320
|
+
}, t[0] = l.amount, t[1] = l.once, t[2] = Gt) : Gt = t[2];
|
|
321
|
+
const Y = Ie(Jt, Gt), gt = L ? k + 30 : k;
|
|
322
|
+
let Ht;
|
|
323
|
+
t[3] !== pt || t[4] !== rt || t[5] !== gt || t[6] !== Z ? (Ht = {
|
|
324
|
+
top: Z,
|
|
325
|
+
bottom: pt,
|
|
326
|
+
left: gt,
|
|
327
|
+
right: rt
|
|
328
|
+
}, t[3] = pt, t[4] = rt, t[5] = gt, t[6] = Z, t[7] = Ht) : Ht = t[7];
|
|
329
|
+
const r = Ht, [n, F] = Zt(void 0), [y, it] = Zt(void 0), [W, C] = Zt(void 0), [Yt, yt] = Zt(void 0), xt = Ot - r.left - r.right, Ct = Tt - r.top - r.bottom;
|
|
330
|
+
let E;
|
|
331
|
+
if (t[8] !== a || t[9] !== D) {
|
|
332
|
+
const O = /* @__PURE__ */ new Set(), v = a.map((p, f) => {
|
|
333
|
+
const Dt = D ? `${p.label}` : `${f}`;
|
|
334
|
+
return O.add(Dt), {
|
|
335
|
+
...p,
|
|
336
|
+
id: Dt
|
|
337
|
+
};
|
|
338
|
+
}), ft = D ? D.filter((p) => !O.has(p)) : [];
|
|
339
|
+
let j;
|
|
340
|
+
t[11] !== a[0].size.length ? (j = (p) => ({
|
|
341
|
+
id: p,
|
|
342
|
+
label: p,
|
|
343
|
+
size: Array(a[0].size.length).fill(null)
|
|
344
|
+
}), t[11] = a[0].size.length, t[12] = j) : j = t[12], E = [...v, ...ft.map(j)], t[8] = a, t[9] = D, t[10] = E;
|
|
345
|
+
} else
|
|
346
|
+
E = t[10];
|
|
347
|
+
const w = E;
|
|
348
|
+
let bt;
|
|
349
|
+
t[13] !== w || t[14] !== D ? (bt = D ?? w.map(vi), t[13] = w, t[14] = D, t[15] = bt) : bt = t[15];
|
|
350
|
+
const Wt = bt;
|
|
351
|
+
let jt, ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _;
|
|
352
|
+
if (t[16] !== l || t[17] !== L || t[18] !== B || t[19] !== Wt || t[20] !== lt || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== m || t[28] !== g || t[29] !== a[0].size || t[30] !== w || t[31] !== mt || t[32] !== Ct || t[33] !== xt || t[34] !== Tt || t[35] !== Y || t[36] !== k || t[37] !== r.bottom || t[38] !== r.left || t[39] !== r.right || t[40] !== r.top || t[41] !== nt || t[42] !== Xt || t[43] !== M || t[44] !== y || t[45] !== x || t[46] !== et || t[47] !== J || t[48] !== Mt || t[49] !== d || t[50] !== A || t[51] !== kt || t[52] !== K || t[53] !== H || t[54] !== St || t[55] !== Et || t[56] !== tt || t[57] !== c?.graphObjectValues || t[58] !== c?.xAxis?.axis || t[59] !== c?.xAxis?.labels || t[60] !== c?.yAxis?.gridLines || t[61] !== c?.yAxis?.labels || t[62] !== c?.yAxis?.title || t[63] !== q || t[64] !== U || t[65] !== Q || t[66] !== Ot) {
|
|
353
|
+
const O = je().domain([M, Xt]).range([Ct, 0]).nice(), v = ve().domain(Wt).range([0, nt ? Math.min(xt, nt * Wt.length) : xt]).paddingInner(lt), ft = ve().domain(a[0].size.map(bi)).range([0, v.bandwidth()]).paddingInner(0.1), j = O.ticks(et);
|
|
354
|
+
ct = ee.svg, z = `${Ot}px`, ht = `${Tt}px`, ot = `0 0 ${Ot} ${Tt}`, dt = "ltr", vt = Jt, Nt = `translate(${r.left},${r.top})`;
|
|
355
|
+
const p = O(M < 0 ? 0 : M), f = O(M < 0 ? 0 : M), Dt = M < 0 ? 0 : M;
|
|
356
|
+
let Lt;
|
|
357
|
+
t[81] !== x || t[82] !== d || t[83] !== A || t[84] !== q || t[85] !== Dt ? (Lt = fe(Dt, x, d, A, q), t[81] = x, t[82] = d, t[83] = A, t[84] = q, t[85] = Dt, t[86] = Lt) : Lt = t[86];
|
|
358
|
+
const Kt = s?.xAxis?.axis, N = s?.yAxis?.labels;
|
|
359
|
+
let T;
|
|
360
|
+
t[87] !== Kt || t[88] !== N ? (T = {
|
|
361
|
+
axis: Kt,
|
|
362
|
+
label: N
|
|
363
|
+
}, t[87] = Kt, t[88] = N, t[89] = T) : T = t[89];
|
|
364
|
+
const Rt = c?.xAxis?.axis, X = c?.yAxis?.labels;
|
|
365
|
+
let V;
|
|
366
|
+
t[90] !== Rt || t[91] !== X ? (V = {
|
|
367
|
+
axis: Rt,
|
|
368
|
+
label: X
|
|
369
|
+
}, t[90] = Rt, t[91] = X, t[92] = V) : V = t[92], Vt = /* @__PURE__ */ i.jsx(ze, { y1: p, y2: f, x1: 0 - k, x2: xt + r.right, label: Lt, labelPos: {
|
|
370
|
+
x: 0 - k,
|
|
342
371
|
dx: 0,
|
|
343
|
-
dy:
|
|
344
|
-
y:
|
|
345
|
-
}, classNames:
|
|
346
|
-
gridLines:
|
|
347
|
-
labels:
|
|
372
|
+
dy: Xt < 0 ? "1em" : -5,
|
|
373
|
+
y: O(M < 0 ? 0 : M)
|
|
374
|
+
}, classNames: T, styles: V }), zt = Et ? /* @__PURE__ */ i.jsx(Ge, { values: j.filter(yi), y: j.filter(gi).map((S) => O(S)), x1: 0 - k, x2: xt + r.right, styles: {
|
|
375
|
+
gridLines: c?.yAxis?.gridLines,
|
|
376
|
+
labels: c?.yAxis?.labels
|
|
348
377
|
}, classNames: {
|
|
349
378
|
gridLines: s?.yAxis?.gridLines,
|
|
350
379
|
labels: s?.yAxis?.labels
|
|
351
|
-
}, suffix:
|
|
352
|
-
const
|
|
353
|
-
t[
|
|
380
|
+
}, suffix: q, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
|
|
381
|
+
const R = 0 - k - 15, o = Ct / 2, h = c?.yAxis?.title, _t = s?.yAxis?.title;
|
|
382
|
+
t[93] !== L || t[94] !== R || t[95] !== o || t[96] !== h || t[97] !== _t ? (G = /* @__PURE__ */ i.jsx(De, { x: R, y: o, style: h, className: _t, text: L, rotate90: !0 }), t[93] = L, t[94] = R, t[95] = o, t[96] = h, t[97] = _t, t[98] = G) : G = t[98], t[99] !== g ? (I = g.filter(pi).map(fi), t[99] = g, t[100] = I) : I = t[100], jt = Ne, _ = w.map((S) => ie(v(S.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
|
|
354
383
|
initial: {
|
|
355
|
-
x:
|
|
384
|
+
x: v(`${S.id}`),
|
|
356
385
|
y: 0
|
|
357
386
|
},
|
|
358
387
|
whileInView: {
|
|
359
|
-
x:
|
|
388
|
+
x: v(`${S.id}`),
|
|
360
389
|
y: 0,
|
|
361
390
|
transition: {
|
|
362
|
-
duration:
|
|
391
|
+
duration: l.duration
|
|
363
392
|
}
|
|
364
393
|
}
|
|
365
|
-
}, initial: "initial", animate:
|
|
394
|
+
}, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
|
|
366
395
|
opacity: 0,
|
|
367
396
|
transition: {
|
|
368
|
-
duration:
|
|
397
|
+
duration: l.duration
|
|
369
398
|
}
|
|
370
399
|
}, children: [
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
...
|
|
374
|
-
sizeIndex:
|
|
375
|
-
}),
|
|
376
|
-
...
|
|
377
|
-
sizeIndex:
|
|
400
|
+
S.size.map((Bt, u) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: H ? B[u] === H ? 1 : 0.3 : 0.85, onMouseEnter: (se) => {
|
|
401
|
+
F({
|
|
402
|
+
...S,
|
|
403
|
+
sizeIndex: u
|
|
404
|
+
}), yt(se.clientY), C(se.clientX), Mt?.({
|
|
405
|
+
...S,
|
|
406
|
+
sizeIndex: u
|
|
378
407
|
});
|
|
379
|
-
}, onMouseMove: (
|
|
380
|
-
|
|
381
|
-
...
|
|
382
|
-
sizeIndex:
|
|
383
|
-
}),
|
|
408
|
+
}, onMouseMove: (se) => {
|
|
409
|
+
F({
|
|
410
|
+
...S,
|
|
411
|
+
sizeIndex: u
|
|
412
|
+
}), yt(se.clientY), C(se.clientX);
|
|
384
413
|
}, onMouseLeave: () => {
|
|
385
|
-
|
|
414
|
+
F(void 0), C(void 0), yt(void 0), Mt?.(void 0);
|
|
386
415
|
}, onClick: () => {
|
|
387
|
-
(
|
|
388
|
-
...
|
|
389
|
-
sizeIndex:
|
|
390
|
-
}) &&
|
|
391
|
-
...
|
|
392
|
-
sizeIndex:
|
|
393
|
-
}),
|
|
394
|
-
...
|
|
395
|
-
sizeIndex:
|
|
416
|
+
(J || mt) && (Ce(y, {
|
|
417
|
+
...S,
|
|
418
|
+
sizeIndex: u
|
|
419
|
+
}) && K ? (it(void 0), J?.(void 0)) : (it({
|
|
420
|
+
...S,
|
|
421
|
+
sizeIndex: u
|
|
422
|
+
}), J && J({
|
|
423
|
+
...S,
|
|
424
|
+
sizeIndex: u
|
|
396
425
|
})));
|
|
397
426
|
}, children: [
|
|
398
|
-
/* @__PURE__ */ i.jsx(
|
|
427
|
+
/* @__PURE__ */ i.jsx(ee.rect, { x: ft(`${u}`), width: ft.bandwidth(), variants: {
|
|
399
428
|
initial: {
|
|
400
429
|
height: 0,
|
|
401
|
-
y:
|
|
402
|
-
fill:
|
|
430
|
+
y: O(0),
|
|
431
|
+
fill: B[u]
|
|
403
432
|
},
|
|
404
433
|
whileInView: {
|
|
405
|
-
height:
|
|
406
|
-
y:
|
|
407
|
-
fill:
|
|
434
|
+
height: ie(Bt) ? 0 : Math.abs(O(Bt) - O(0)),
|
|
435
|
+
y: ie(Bt) ? O(0) : Bt > 0 ? O(Bt) : O(0),
|
|
436
|
+
fill: B[u],
|
|
408
437
|
transition: {
|
|
409
|
-
duration:
|
|
438
|
+
duration: l.duration
|
|
410
439
|
}
|
|
411
440
|
}
|
|
412
441
|
}, exit: {
|
|
413
442
|
height: 0,
|
|
414
|
-
y:
|
|
443
|
+
y: O(0),
|
|
415
444
|
transition: {
|
|
416
|
-
duration:
|
|
445
|
+
duration: l.duration
|
|
417
446
|
}
|
|
418
|
-
}, initial: "initial", animate:
|
|
419
|
-
|
|
447
|
+
}, initial: "initial", animate: Y ? "whileInView" : "initial" }),
|
|
448
|
+
tt ? /* @__PURE__ */ i.jsx(ee.text, { x: ft(`${u}`) + ft.bandwidth() / 2, style: {
|
|
420
449
|
textAnchor: "middle",
|
|
421
|
-
...
|
|
422
|
-
}, className:
|
|
450
|
+
...c?.graphObjectValues || {}
|
|
451
|
+
}, className: be("graph-value text-sm", s?.graphObjectValues), dy: Bt ? Bt >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
423
452
|
initial: {
|
|
424
|
-
y:
|
|
453
|
+
y: O(0),
|
|
425
454
|
opacity: 0,
|
|
426
|
-
fill:
|
|
455
|
+
fill: Q || B[u]
|
|
427
456
|
},
|
|
428
457
|
whileInView: {
|
|
429
|
-
y:
|
|
458
|
+
y: O(Bt || 0),
|
|
430
459
|
opacity: 1,
|
|
431
|
-
fill:
|
|
460
|
+
fill: Q || B[u],
|
|
432
461
|
transition: {
|
|
433
|
-
duration:
|
|
462
|
+
duration: l.duration
|
|
434
463
|
}
|
|
435
464
|
}
|
|
436
|
-
}, initial: "initial", animate:
|
|
465
|
+
}, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
|
|
437
466
|
opacity: 0,
|
|
438
467
|
transition: {
|
|
439
|
-
duration:
|
|
468
|
+
duration: l.duration
|
|
440
469
|
}
|
|
441
|
-
}, children:
|
|
442
|
-
] }, `${
|
|
443
|
-
|
|
444
|
-
] },
|
|
470
|
+
}, children: fe(Bt, x, d, A, q) }) : null
|
|
471
|
+
] }, `${S.label}-${m[u] || u}`)),
|
|
472
|
+
St ? /* @__PURE__ */ i.jsx(Re, { value: `${S.label}`.length < U ? `${S.label}` : `${`${S.label}`.substring(0, U)}...`, y: O(0) + 5, x: 0, width: v.bandwidth(), height: r.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: l, isInView: Y }) : null
|
|
473
|
+
] }, S.label)), Ft = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((S, Bt) => /* @__PURE__ */ i.jsx(Ee, { text: S.text, color: S.color, y: O(S.value), x1: 0 - k, x2: xt + r.right, classNames: S.classNames, styles: S.styles, animate: l, isInView: Y }, Bt)) }) : null, t[16] = l, t[17] = L, t[18] = B, t[19] = Wt, t[20] = lt, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = m, t[28] = g, t[29] = a[0].size, t[30] = w, t[31] = mt, t[32] = Ct, t[33] = xt, t[34] = Tt, t[35] = Y, t[36] = k, t[37] = r.bottom, t[38] = r.left, t[39] = r.right, t[40] = r.top, t[41] = nt, t[42] = Xt, t[43] = M, t[44] = y, t[45] = x, t[46] = et, t[47] = J, t[48] = Mt, t[49] = d, t[50] = A, t[51] = kt, t[52] = K, t[53] = H, t[54] = St, t[55] = Et, t[56] = tt, t[57] = c?.graphObjectValues, t[58] = c?.xAxis?.axis, t[59] = c?.xAxis?.labels, t[60] = c?.yAxis?.gridLines, t[61] = c?.yAxis?.labels, t[62] = c?.yAxis?.title, t[63] = q, t[64] = U, t[65] = Q, t[66] = Ot, t[67] = jt, t[68] = ct, t[69] = Ft, t[70] = Nt, t[71] = Vt, t[72] = zt, t[73] = G, t[74] = I, t[75] = z, t[76] = ht, t[77] = ot, t[78] = dt, t[79] = vt, t[80] = _;
|
|
445
474
|
} else
|
|
446
|
-
|
|
447
|
-
let
|
|
448
|
-
t[
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
] }), t[
|
|
452
|
-
let vt;
|
|
453
|
-
t[98] !== h ? (vt = h.filter(di).map(ui), t[98] = h, t[99] = vt) : vt = t[99];
|
|
475
|
+
jt = t[67], ct = t[68], Ft = t[69], Nt = t[70], Vt = t[71], zt = t[72], G = t[73], I = t[74], z = t[75], ht = t[76], ot = t[77], dt = t[78], vt = t[79], _ = t[80];
|
|
476
|
+
let ut;
|
|
477
|
+
t[101] !== jt || t[102] !== Ft || t[103] !== _ ? (ut = /* @__PURE__ */ i.jsxs(jt, { children: [
|
|
478
|
+
_,
|
|
479
|
+
Ft
|
|
480
|
+
] }), t[101] = jt, t[102] = Ft, t[103] = _, t[104] = ut) : ut = t[104];
|
|
454
481
|
let wt;
|
|
455
|
-
t[
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
482
|
+
t[105] !== g ? (wt = g.filter(hi).map(xi), t[105] = g, t[106] = wt) : wt = t[106];
|
|
483
|
+
let st;
|
|
484
|
+
t[107] !== Nt || t[108] !== Vt || t[109] !== zt || t[110] !== G || t[111] !== I || t[112] !== ut || t[113] !== wt ? (st = /* @__PURE__ */ i.jsxs("g", { transform: Nt, children: [
|
|
485
|
+
Vt,
|
|
486
|
+
zt,
|
|
487
|
+
G,
|
|
488
|
+
I,
|
|
489
|
+
ut,
|
|
490
|
+
wt
|
|
491
|
+
] }), t[107] = Nt, t[108] = Vt, t[109] = zt, t[110] = G, t[111] = I, t[112] = ut, t[113] = wt, t[114] = st) : st = t[114];
|
|
465
492
|
let At;
|
|
466
|
-
t[116] !==
|
|
493
|
+
t[115] !== ct || t[116] !== z || t[117] !== ht || t[118] !== ot || t[119] !== dt || t[120] !== vt || t[121] !== st ? (At = /* @__PURE__ */ i.jsx(ct, { width: z, height: ht, viewBox: ot, direction: dt, ref: vt, children: st }), t[115] = ct, t[116] = z, t[117] = ht, t[118] = ot, t[119] = dt, t[120] = vt, t[121] = st, t[122] = At) : At = t[122];
|
|
467
494
|
let $t;
|
|
468
|
-
t[123] !== s?.
|
|
469
|
-
let
|
|
470
|
-
|
|
471
|
-
|
|
495
|
+
t[123] !== s?.tooltip || t[124] !== W || t[125] !== Yt || t[126] !== n || t[127] !== c?.tooltip || t[128] !== at ? ($t = n && at && W && Yt ? /* @__PURE__ */ i.jsx(Ve, { data: n, body: at, xPos: W, yPos: Yt, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[123] = s?.tooltip, t[124] = W, t[125] = Yt, t[126] = n, t[127] = c?.tooltip, t[128] = at, t[129] = $t) : $t = t[129];
|
|
496
|
+
let b;
|
|
497
|
+
t[130] !== s?.modal || t[131] !== mt || t[132] !== y ? (b = mt && y !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: mt, data: y, setData: it, className: s?.modal }) : null, t[130] = s?.modal, t[131] = mt, t[132] = y, t[133] = b) : b = t[133];
|
|
498
|
+
let $;
|
|
499
|
+
return t[134] !== At || t[135] !== $t || t[136] !== b ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
472
500
|
At,
|
|
473
|
-
$t
|
|
474
|
-
|
|
501
|
+
$t,
|
|
502
|
+
b
|
|
503
|
+
] }), t[134] = At, t[135] = $t, t[136] = b, t[137] = $) : $ = t[137], $;
|
|
475
504
|
}
|
|
476
|
-
function
|
|
505
|
+
function xi(e) {
|
|
477
506
|
return e.layer;
|
|
478
507
|
}
|
|
479
|
-
function
|
|
508
|
+
function hi(e) {
|
|
480
509
|
return e.position === "after";
|
|
481
510
|
}
|
|
482
|
-
function
|
|
511
|
+
function fi(e) {
|
|
483
512
|
return e.layer;
|
|
484
513
|
}
|
|
485
|
-
function
|
|
514
|
+
function pi(e) {
|
|
486
515
|
return e.position === "before";
|
|
487
516
|
}
|
|
488
|
-
function
|
|
517
|
+
function gi(e) {
|
|
489
518
|
return e !== 0;
|
|
490
519
|
}
|
|
491
|
-
function
|
|
520
|
+
function yi(e) {
|
|
492
521
|
return e !== 0;
|
|
493
522
|
}
|
|
494
|
-
function
|
|
523
|
+
function bi(e, t) {
|
|
495
524
|
return `${t}`;
|
|
496
525
|
}
|
|
497
|
-
function
|
|
526
|
+
function vi(e) {
|
|
498
527
|
return `${e.id}`;
|
|
499
528
|
}
|
|
500
|
-
function
|
|
501
|
-
const t =
|
|
502
|
-
data:
|
|
503
|
-
graphTitle:
|
|
504
|
-
colors:
|
|
505
|
-
sources:
|
|
506
|
-
graphDescription:
|
|
507
|
-
barPadding:
|
|
508
|
-
showTicks:
|
|
509
|
-
truncateBy:
|
|
510
|
-
height:
|
|
511
|
-
width:
|
|
512
|
-
footNote:
|
|
513
|
-
colorDomain:
|
|
514
|
-
colorLegendTitle:
|
|
515
|
-
suffix:
|
|
516
|
-
prefix:
|
|
517
|
-
showValues:
|
|
518
|
-
showColorScale:
|
|
519
|
-
padding:
|
|
520
|
-
backgroundColor:
|
|
521
|
-
leftMargin:
|
|
522
|
-
rightMargin:
|
|
523
|
-
topMargin:
|
|
524
|
-
bottomMargin:
|
|
525
|
-
showLabels:
|
|
526
|
-
relativeHeight:
|
|
527
|
-
tooltip:
|
|
528
|
-
onSeriesMouseOver:
|
|
529
|
-
refValues:
|
|
530
|
-
graphID:
|
|
531
|
-
maxValue:
|
|
529
|
+
function wi(e) {
|
|
530
|
+
const t = ge.c(112), {
|
|
531
|
+
data: a,
|
|
532
|
+
graphTitle: P,
|
|
533
|
+
colors: qt,
|
|
534
|
+
sources: Ut,
|
|
535
|
+
graphDescription: It,
|
|
536
|
+
barPadding: Ot,
|
|
537
|
+
showTicks: Tt,
|
|
538
|
+
truncateBy: B,
|
|
539
|
+
height: q,
|
|
540
|
+
width: A,
|
|
541
|
+
footNote: lt,
|
|
542
|
+
colorDomain: St,
|
|
543
|
+
colorLegendTitle: tt,
|
|
544
|
+
suffix: Et,
|
|
545
|
+
prefix: U,
|
|
546
|
+
showValues: at,
|
|
547
|
+
showColorScale: Mt,
|
|
548
|
+
padding: kt,
|
|
549
|
+
backgroundColor: Xt,
|
|
550
|
+
leftMargin: M,
|
|
551
|
+
rightMargin: J,
|
|
552
|
+
topMargin: H,
|
|
553
|
+
bottomMargin: D,
|
|
554
|
+
showLabels: nt,
|
|
555
|
+
relativeHeight: K,
|
|
556
|
+
tooltip: mt,
|
|
557
|
+
onSeriesMouseOver: L,
|
|
558
|
+
refValues: Q,
|
|
559
|
+
graphID: et,
|
|
560
|
+
maxValue: c,
|
|
532
561
|
minValue: s,
|
|
533
|
-
onSeriesMouseClick:
|
|
534
|
-
graphDownload:
|
|
535
|
-
dataDownload:
|
|
536
|
-
language:
|
|
562
|
+
onSeriesMouseClick: l,
|
|
563
|
+
graphDownload: m,
|
|
564
|
+
dataDownload: d,
|
|
565
|
+
language: g,
|
|
537
566
|
labelOrder: x,
|
|
538
|
-
minHeight:
|
|
539
|
-
theme:
|
|
540
|
-
maxBarThickness:
|
|
541
|
-
ariaLabel:
|
|
542
|
-
resetSelectionOnDoubleClick:
|
|
543
|
-
detailsOnClick:
|
|
544
|
-
barAxisTitle:
|
|
545
|
-
noOfTicks:
|
|
546
|
-
valueColor:
|
|
547
|
-
styles:
|
|
548
|
-
classNames:
|
|
549
|
-
filterNA:
|
|
550
|
-
animate:
|
|
551
|
-
precision:
|
|
552
|
-
customLayers:
|
|
553
|
-
timeline:
|
|
554
|
-
naLabel:
|
|
555
|
-
sortParameter:
|
|
556
|
-
sortData:
|
|
557
|
-
orientation:
|
|
558
|
-
} = e,
|
|
559
|
-
let
|
|
560
|
-
t[0] !==
|
|
561
|
-
const
|
|
567
|
+
minHeight: k,
|
|
568
|
+
theme: rt,
|
|
569
|
+
maxBarThickness: Z,
|
|
570
|
+
ariaLabel: pt,
|
|
571
|
+
resetSelectionOnDoubleClick: Jt,
|
|
572
|
+
detailsOnClick: Gt,
|
|
573
|
+
barAxisTitle: Y,
|
|
574
|
+
noOfTicks: gt,
|
|
575
|
+
valueColor: Ht,
|
|
576
|
+
styles: r,
|
|
577
|
+
classNames: n,
|
|
578
|
+
filterNA: F,
|
|
579
|
+
animate: y,
|
|
580
|
+
precision: it,
|
|
581
|
+
customLayers: W,
|
|
582
|
+
timeline: C,
|
|
583
|
+
naLabel: Yt,
|
|
584
|
+
sortParameter: yt,
|
|
585
|
+
sortData: xt,
|
|
586
|
+
orientation: Ct
|
|
587
|
+
} = e, E = qt === void 0 ? xe.light.categoricalColors.colors : qt, w = Ot === void 0 ? 0.25 : Ot, bt = Tt === void 0 ? !0 : Tt, Wt = B === void 0 ? 999 : B, jt = Et === void 0 ? "" : Et, ct = U === void 0 ? "" : U, Ft = at === void 0 ? !0 : at, Nt = Mt === void 0 ? !0 : Mt, Vt = Xt === void 0 ? !1 : Xt, zt = nt === void 0 ? !0 : nt, G = m === void 0 ? !1 : m, I = d === void 0 ? !1 : d, z = g === void 0 ? "en" : g, ht = k === void 0 ? 0 : k, ot = rt === void 0 ? "light" : rt, dt = Jt === void 0 ? !0 : Jt, vt = gt === void 0 ? 5 : gt, _ = F === void 0 ? !0 : F, ut = y === void 0 ? !1 : y, wt = it === void 0 ? 2 : it;
|
|
588
|
+
let st;
|
|
589
|
+
t[0] !== W ? (st = W === void 0 ? [] : W, t[0] = W, t[1] = st) : st = t[1];
|
|
590
|
+
const At = st;
|
|
591
|
+
let $t;
|
|
592
|
+
t[2] !== C ? ($t = C === void 0 ? {
|
|
562
593
|
enabled: !1,
|
|
563
594
|
autoplay: !1,
|
|
564
595
|
showOnlyActiveDate: !0
|
|
565
|
-
} :
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
596
|
+
} : C, t[2] = C, t[3] = $t) : $t = t[3];
|
|
597
|
+
const b = $t, $ = Yt === void 0 ? "NA" : Yt, v = (Ct === void 0 ? "vertical" : Ct) === "horizontal" ? si : mi, [ft, j] = Zt(0), [p, f] = Zt(0), [Dt, Lt] = Zt(b.autoplay);
|
|
598
|
+
let Kt;
|
|
599
|
+
if (t[4] !== a || t[5] !== b.dateFormat) {
|
|
600
|
+
let Qt;
|
|
601
|
+
t[7] !== b.dateFormat ? (Qt = (Pt) => He(`${Pt.date}`, b.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = b.dateFormat, t[8] = Qt) : Qt = t[8], Kt = [...new Set(a.filter(Wi).map(Qt))], Kt.sort(Hi), t[4] = a, t[5] = b.dateFormat, t[6] = Kt;
|
|
602
|
+
} else
|
|
603
|
+
Kt = t[6];
|
|
604
|
+
const N = Kt, [T, Rt] = Zt(b.autoplay ? 0 : N.length - 1), [X, V] = Zt(void 0), R = pe(null), o = pe(null);
|
|
605
|
+
let h, _t;
|
|
606
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (h = () => {
|
|
607
|
+
const Qt = new ResizeObserver((Pt) => {
|
|
608
|
+
j(Pt[0].target.clientWidth || 620), f(Pt[0].target.clientHeight || 480);
|
|
570
609
|
});
|
|
571
|
-
return
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
610
|
+
return R.current && Qt.observe(R.current), () => Qt.disconnect();
|
|
611
|
+
}, _t = [], t[9] = h, t[10] = _t) : (h = t[9], _t = t[10]), ke(h, _t);
|
|
612
|
+
let S, Bt;
|
|
613
|
+
t[11] !== Dt || t[12] !== b.speed || t[13] !== N ? (S = () => {
|
|
614
|
+
const Qt = setInterval(() => {
|
|
615
|
+
Rt((Pt) => Pt < N.length - 1 ? Pt + 1 : 0);
|
|
616
|
+
}, (b.speed || 2) * 1e3);
|
|
617
|
+
return Dt || clearInterval(Qt), () => clearInterval(Qt);
|
|
618
|
+
}, Bt = [N, Dt, b.speed], t[11] = Dt, t[12] = b.speed, t[13] = N, t[14] = S, t[15] = Bt) : (S = t[14], Bt = t[15]), ke(S, Bt);
|
|
619
|
+
const u = b.dateFormat || "yyyy";
|
|
620
|
+
let se;
|
|
621
|
+
t[16] !== T || t[17] !== u || t[18] !== b.showOnlyActiveDate || t[19] !== N ? (se = Fe(N, T, b.showOnlyActiveDate, u), t[16] = T, t[17] = u, t[18] = b.showOnlyActiveDate, t[19] = N, t[20] = se) : se = t[20];
|
|
622
|
+
const ae = se, me = n?.graphContainer, he = r?.graphContainer;
|
|
623
|
+
let ue;
|
|
624
|
+
t[21] !== n?.description || t[22] !== n?.title || t[23] !== a || t[24] !== I || t[25] !== It || t[26] !== G || t[27] !== P || t[28] !== r?.description || t[29] !== r?.title || t[30] !== A ? (ue = P || It || G || I ? /* @__PURE__ */ i.jsx(qe, { styles: {
|
|
625
|
+
title: r?.title,
|
|
626
|
+
description: r?.description
|
|
627
|
+
}, classNames: {
|
|
581
628
|
title: n?.title,
|
|
582
629
|
description: n?.description
|
|
583
|
-
},
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}, graphTitle: D, graphDescription: gt, width: y, graphDownload: E ? k : void 0, dataDownload: at ? m.map(Si).filter(Ii).length > 0 ? m.map(Ti).filter(Ni) : m.filter(ji) : null }) : null, t[4] = c?.description, t[5] = c?.title, t[6] = m, t[7] = at, t[8] = gt, t[9] = E, t[10] = D, t[11] = n?.description, t[12] = n?.title, t[13] = y, t[14] = ie) : ie = t[14];
|
|
587
|
-
const se = lt.enabled && Ht.length > 0 && ee ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
630
|
+
}, graphTitle: P, graphDescription: It, width: A, graphDownload: G ? o : void 0, dataDownload: I ? a.map(Pi).filter(Fi).length > 0 ? a.map(Bi).filter(Si) : a.filter(Ti) : null }) : null, t[21] = n?.description, t[22] = n?.title, t[23] = a, t[24] = I, t[25] = It, t[26] = G, t[27] = P, t[28] = r?.description, t[29] = r?.title, t[30] = A, t[31] = ue) : ue = t[31];
|
|
631
|
+
let oe;
|
|
632
|
+
t[32] !== T || t[33] !== ae || t[34] !== Dt || t[35] !== b.enabled || t[36] !== N ? (oe = b.enabled && N.length > 0 && ae ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
588
633
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
589
|
-
|
|
590
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
591
|
-
/* @__PURE__ */ i.jsx(
|
|
592
|
-
Rt(
|
|
593
|
-
}, onChange: (
|
|
594
|
-
Rt(
|
|
634
|
+
Lt(!Dt);
|
|
635
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Dt ? "Click to pause animation" : "Click to play animation", children: Dt ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsx(Ze, {}) }),
|
|
636
|
+
/* @__PURE__ */ i.jsx(Pe, { min: N[0], max: N[N.length - 1], marks: ae, step: null, defaultValue: N[N.length - 1], value: N[T], onChangeComplete: (Qt) => {
|
|
637
|
+
Rt(N.indexOf(Qt));
|
|
638
|
+
}, onChange: (Qt) => {
|
|
639
|
+
Rt(N.indexOf(Qt));
|
|
595
640
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
596
|
-
] }) : null,
|
|
597
|
-
|
|
598
|
-
|
|
641
|
+
] }) : null, t[32] = T, t[33] = ae, t[34] = Dt, t[35] = b.enabled, t[36] = N, t[37] = oe) : oe = t[37];
|
|
642
|
+
let re;
|
|
643
|
+
t[38] !== v || t[39] !== ut || t[40] !== Y || t[41] !== w || t[42] !== D || t[43] !== n || t[44] !== St || t[45] !== tt || t[46] !== E || t[47] !== At || t[48] !== a || t[49] !== Gt || t[50] !== _ || t[51] !== T || t[52] !== x || t[53] !== z || t[54] !== M || t[55] !== Z || t[56] !== c || t[57] !== s || t[58] !== $ || t[59] !== vt || t[60] !== l || t[61] !== L || t[62] !== wt || t[63] !== ct || t[64] !== Q || t[65] !== dt || t[66] !== J || t[67] !== X || t[68] !== Nt || t[69] !== zt || t[70] !== bt || t[71] !== Ft || t[72] !== xt || t[73] !== yt || t[74] !== r || t[75] !== jt || t[76] !== p || t[77] !== ft || t[78] !== b.dateFormat || t[79] !== b.enabled || t[80] !== mt || t[81] !== H || t[82] !== Wt || t[83] !== N || t[84] !== Ht || t[85] !== A ? (re = /* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
644
|
+
Nt ? /* @__PURE__ */ i.jsx(Je, { width: A, colorDomain: St, colors: E, colorLegendTitle: tt, setSelectedColor: V, showNAColor: !1, className: n?.colorLegend }) : null,
|
|
645
|
+
/* @__PURE__ */ i.jsx(_e, { ref: R, children: ft && p ? /* @__PURE__ */ i.jsx(v, { data: yt !== void 0 ? yt === "total" ? Te(Me(a, b.dateFormat || "yyyy").filter((Qt) => b.enabled ? Qt.date === we(new Date(N[T]), b.dateFormat || "yyyy") : Qt).filter((Qt) => _ ? !Qt.size.every(Ni) : Qt), Ii, [xt || "asc"]) : Te(Me(a, b.dateFormat || "yyyy").filter((Qt) => b.enabled ? Qt.date === we(new Date(N[T]), b.dateFormat || "yyyy") : Qt).filter((Qt) => _ ? !Qt.size.every(Li) : Qt), (Qt) => ie(Qt.size[yt]) ? -1 / 0 : Qt.size[yt], [xt || "asc"]) : Me(a, b.dateFormat || "yyyy").filter((Qt) => _ ? !Qt.size.every(Di) : Qt), barColors: E, width: ft, height: p, suffix: jt, prefix: ct, showValues: Ft, barPadding: w, showTicks: bt, leftMargin: M, rightMargin: J, topMargin: H, bottomMargin: D, truncateBy: Wt, showLabels: zt, tooltip: mt, onSeriesMouseOver: L, refValues: Q, maxValue: ie(c) ? Math.max(...a.map(Vi)) < 0 ? 0 : Math.max(...a.map(ki)) : c, minValue: ie(s) ? Math.min(...a.map(Oi)) >= 0 ? 0 : Math.min(...a.map(Ai)) : s, onSeriesMouseClick: l, selectedColor: X, labelOrder: x, rtl: z === "he" || z === "ar", maxBarThickness: Z, resetSelectionOnDoubleClick: dt, detailsOnClick: Gt, barAxisTitle: Y, noOfTicks: vt, valueColor: Ht, styles: r, classNames: n, colorDomain: St, animate: ut === !0 ? {
|
|
599
646
|
duration: 0.5,
|
|
600
647
|
once: !0,
|
|
601
648
|
amount: 0.5
|
|
602
|
-
} :
|
|
649
|
+
} : ut || {
|
|
603
650
|
duration: 0,
|
|
604
651
|
once: !0,
|
|
605
652
|
amount: 0
|
|
606
|
-
}, precision:
|
|
607
|
-
] });
|
|
608
|
-
let
|
|
609
|
-
t[
|
|
610
|
-
|
|
611
|
-
|
|
653
|
+
}, precision: wt, customLayers: At, naLabel: $ }) : null })
|
|
654
|
+
] }) }), t[38] = v, t[39] = ut, t[40] = Y, t[41] = w, t[42] = D, t[43] = n, t[44] = St, t[45] = tt, t[46] = E, t[47] = At, t[48] = a, t[49] = Gt, t[50] = _, t[51] = T, t[52] = x, t[53] = z, t[54] = M, t[55] = Z, t[56] = c, t[57] = s, t[58] = $, t[59] = vt, t[60] = l, t[61] = L, t[62] = wt, t[63] = ct, t[64] = Q, t[65] = dt, t[66] = J, t[67] = X, t[68] = Nt, t[69] = zt, t[70] = bt, t[71] = Ft, t[72] = xt, t[73] = yt, t[74] = r, t[75] = jt, t[76] = p, t[77] = ft, t[78] = b.dateFormat, t[79] = b.enabled, t[80] = mt, t[81] = H, t[82] = Wt, t[83] = N, t[84] = Ht, t[85] = A, t[86] = re) : re = t[86];
|
|
655
|
+
let ne;
|
|
656
|
+
t[87] !== n?.footnote || t[88] !== n?.source || t[89] !== lt || t[90] !== Ut || t[91] !== r?.footnote || t[92] !== r?.source || t[93] !== A ? (ne = Ut || lt ? /* @__PURE__ */ i.jsx(Ue, { styles: {
|
|
657
|
+
footnote: r?.footnote,
|
|
658
|
+
source: r?.source
|
|
659
|
+
}, classNames: {
|
|
612
660
|
footnote: n?.footnote,
|
|
613
661
|
source: n?.source
|
|
614
|
-
},
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
return t[25] !== L || t[26] !== rt || t[27] !== st || t[28] !== H || t[29] !== j || t[30] !== P || t[31] !== ft || t[32] !== dt || t[33] !== W || t[34] !== Vt || t[35] !== l || t[36] !== ie || t[37] !== se || t[38] !== re || t[39] !== ae || t[40] !== pt || t[41] !== y ? (le = /* @__PURE__ */ i.jsxs(L, { className: Vt, style: l, id: H, ref: k, "aria-label": rt, backgroundColor: st, theme: pt, language: P, minHeight: ft, width: y, height: j, relativeHeight: W, padding: dt, children: [
|
|
620
|
-
ie,
|
|
621
|
-
se,
|
|
662
|
+
}, sources: Ut, footNote: lt, width: A }) : null, t[87] = n?.footnote, t[88] = n?.source, t[89] = lt, t[90] = Ut, t[91] = r?.footnote, t[92] = r?.source, t[93] = A, t[94] = ne) : ne = t[94];
|
|
663
|
+
let de;
|
|
664
|
+
return t[95] !== pt || t[96] !== Vt || t[97] !== et || t[98] !== q || t[99] !== z || t[100] !== ht || t[101] !== kt || t[102] !== K || t[103] !== me || t[104] !== he || t[105] !== ue || t[106] !== oe || t[107] !== re || t[108] !== ne || t[109] !== ot || t[110] !== A ? (de = /* @__PURE__ */ i.jsxs(ti, { className: me, style: he, id: et, ref: o, "aria-label": pt, backgroundColor: Vt, theme: ot, language: z, minHeight: ht, width: A, height: q, relativeHeight: K, padding: kt, children: [
|
|
665
|
+
ue,
|
|
666
|
+
oe,
|
|
622
667
|
re,
|
|
623
|
-
|
|
624
|
-
] }), t[
|
|
625
|
-
}
|
|
626
|
-
function bi(e) {
|
|
627
|
-
return Math.min(...e.size.filter(vi));
|
|
628
|
-
}
|
|
629
|
-
function vi(e) {
|
|
630
|
-
return !_t(e);
|
|
631
|
-
}
|
|
632
|
-
function wi(e) {
|
|
633
|
-
return Math.min(...e.size.filter(Ai));
|
|
668
|
+
ne
|
|
669
|
+
] }), t[95] = pt, t[96] = Vt, t[97] = et, t[98] = q, t[99] = z, t[100] = ht, t[101] = kt, t[102] = K, t[103] = me, t[104] = he, t[105] = ue, t[106] = oe, t[107] = re, t[108] = ne, t[109] = ot, t[110] = A, t[111] = de) : de = t[111], de;
|
|
634
670
|
}
|
|
635
671
|
function Ai(e) {
|
|
636
|
-
return
|
|
672
|
+
return Math.min(...e.size.filter($i));
|
|
637
673
|
}
|
|
638
674
|
function $i(e) {
|
|
639
|
-
return
|
|
675
|
+
return !ie(e);
|
|
640
676
|
}
|
|
641
677
|
function Oi(e) {
|
|
642
|
-
return
|
|
643
|
-
}
|
|
644
|
-
function ki(e) {
|
|
645
|
-
return Math.max(...e.size.filter(Mi));
|
|
678
|
+
return Math.min(...e.size.filter(Mi));
|
|
646
679
|
}
|
|
647
680
|
function Mi(e) {
|
|
648
|
-
return !
|
|
681
|
+
return !ie(e);
|
|
682
|
+
}
|
|
683
|
+
function ki(e) {
|
|
684
|
+
return Math.max(...e.size.filter(Ci));
|
|
649
685
|
}
|
|
650
686
|
function Ci(e) {
|
|
651
|
-
return e
|
|
687
|
+
return !ie(e);
|
|
652
688
|
}
|
|
653
689
|
function Vi(e) {
|
|
654
|
-
return e
|
|
690
|
+
return Math.max(...e.size.filter(zi));
|
|
691
|
+
}
|
|
692
|
+
function zi(e) {
|
|
693
|
+
return !ie(e);
|
|
655
694
|
}
|
|
656
695
|
function Di(e) {
|
|
657
|
-
return
|
|
696
|
+
return e == null;
|
|
658
697
|
}
|
|
659
698
|
function Li(e) {
|
|
660
|
-
return !_t(e);
|
|
661
|
-
}
|
|
662
|
-
function zi(e) {
|
|
663
699
|
return e == null;
|
|
664
700
|
}
|
|
701
|
+
function Ii(e) {
|
|
702
|
+
return ce(e.size.filter(ji));
|
|
703
|
+
}
|
|
665
704
|
function ji(e) {
|
|
666
|
-
return e
|
|
705
|
+
return !ie(e);
|
|
667
706
|
}
|
|
668
707
|
function Ni(e) {
|
|
669
|
-
return e
|
|
708
|
+
return e == null;
|
|
670
709
|
}
|
|
671
710
|
function Ti(e) {
|
|
672
|
-
return e.data;
|
|
673
|
-
}
|
|
674
|
-
function Ii(e) {
|
|
675
711
|
return e !== void 0;
|
|
676
712
|
}
|
|
677
713
|
function Si(e) {
|
|
714
|
+
return e !== void 0;
|
|
715
|
+
}
|
|
716
|
+
function Bi(e) {
|
|
678
717
|
return e.data;
|
|
679
718
|
}
|
|
680
|
-
function
|
|
681
|
-
return
|
|
719
|
+
function Fi(e) {
|
|
720
|
+
return e !== void 0;
|
|
682
721
|
}
|
|
683
722
|
function Pi(e) {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
723
|
+
return e.data;
|
|
724
|
+
}
|
|
725
|
+
function Hi(e, t) {
|
|
726
|
+
return e - t;
|
|
727
|
+
}
|
|
728
|
+
function Wi(e) {
|
|
729
|
+
return e.date;
|
|
730
|
+
}
|
|
731
|
+
function Xi(e) {
|
|
732
|
+
const t = ge.c(131), {
|
|
733
|
+
data: a,
|
|
734
|
+
barColor: P,
|
|
735
|
+
suffix: qt,
|
|
736
|
+
prefix: Ut,
|
|
737
|
+
barPadding: It,
|
|
738
|
+
showValues: Ot,
|
|
739
|
+
showTicks: Tt,
|
|
740
|
+
truncateBy: B,
|
|
741
|
+
width: q,
|
|
742
|
+
height: A,
|
|
743
|
+
colorDomain: lt,
|
|
744
|
+
topMargin: St,
|
|
745
|
+
bottomMargin: tt,
|
|
746
|
+
leftMargin: Et,
|
|
747
|
+
rightMargin: U,
|
|
748
|
+
showLabels: at,
|
|
749
|
+
tooltip: Mt,
|
|
750
|
+
onSeriesMouseOver: kt,
|
|
751
|
+
refValues: Xt,
|
|
752
|
+
selectedColor: M,
|
|
753
|
+
highlightedDataPoints: J,
|
|
754
|
+
maxValue: H,
|
|
755
|
+
minValue: D,
|
|
756
|
+
onSeriesMouseClick: nt,
|
|
757
|
+
labelOrder: K,
|
|
758
|
+
rtl: mt,
|
|
759
|
+
maxBarThickness: L,
|
|
760
|
+
minBarThickness: Q,
|
|
761
|
+
resetSelectionOnDoubleClick: et,
|
|
762
|
+
detailsOnClick: c,
|
|
715
763
|
barAxisTitle: s,
|
|
716
|
-
valueColor:
|
|
717
|
-
noOfTicks:
|
|
718
|
-
styles:
|
|
719
|
-
classNames:
|
|
764
|
+
valueColor: l,
|
|
765
|
+
noOfTicks: m,
|
|
766
|
+
styles: d,
|
|
767
|
+
classNames: g,
|
|
720
768
|
animate: x,
|
|
721
|
-
dimmedOpacity:
|
|
722
|
-
precision:
|
|
723
|
-
customLayers:
|
|
724
|
-
naLabel:
|
|
725
|
-
} = e,
|
|
726
|
-
let
|
|
727
|
-
t[0] !== x.amount || t[1] !== x.once ? (
|
|
769
|
+
dimmedOpacity: k,
|
|
770
|
+
precision: rt,
|
|
771
|
+
customLayers: Z,
|
|
772
|
+
naLabel: pt
|
|
773
|
+
} = e, Jt = St === void 0 ? 25 : St, Gt = tt === void 0 ? 10 : tt, Y = Et === void 0 ? 100 : Et, gt = U === void 0 ? 40 : U, Ht = pe(null);
|
|
774
|
+
let r;
|
|
775
|
+
t[0] !== x.amount || t[1] !== x.once ? (r = {
|
|
728
776
|
once: x.once,
|
|
729
777
|
amount: x.amount
|
|
730
|
-
}, t[0] = x.amount, t[1] = x.once, t[2] =
|
|
731
|
-
const
|
|
732
|
-
let
|
|
733
|
-
t[3] !==
|
|
734
|
-
top:
|
|
735
|
-
bottom:
|
|
736
|
-
left:
|
|
737
|
-
right:
|
|
738
|
-
}, t[3] =
|
|
739
|
-
const
|
|
740
|
-
let
|
|
741
|
-
if (t[8] !==
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
778
|
+
}, t[0] = x.amount, t[1] = x.once, t[2] = r) : r = t[2];
|
|
779
|
+
const n = Ie(Ht, r), [F, y] = Zt(void 0), [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), Ct = s ? Jt + 25 : Jt;
|
|
780
|
+
let E;
|
|
781
|
+
t[3] !== Gt || t[4] !== Y || t[5] !== gt || t[6] !== Ct ? (E = {
|
|
782
|
+
top: Ct,
|
|
783
|
+
bottom: Gt,
|
|
784
|
+
left: Y,
|
|
785
|
+
right: gt
|
|
786
|
+
}, t[3] = Gt, t[4] = Y, t[5] = gt, t[6] = Ct, t[7] = E) : E = t[7];
|
|
787
|
+
const w = E, bt = q - w.left - w.right, Wt = A - w.top - w.bottom;
|
|
788
|
+
let jt;
|
|
789
|
+
if (t[8] !== a || t[9] !== K) {
|
|
790
|
+
const p = /* @__PURE__ */ new Set(), f = a.map((Lt, Kt) => {
|
|
791
|
+
const N = K ? `${Lt.label}` : `${Kt}`;
|
|
792
|
+
return p.add(N), {
|
|
793
|
+
...Lt,
|
|
794
|
+
id: N
|
|
795
|
+
};
|
|
796
|
+
}), Dt = K ? K.filter((Lt) => !p.has(Lt)) : [];
|
|
797
|
+
jt = [...f, ...Dt.map(ts)], t[8] = a, t[9] = K, t[10] = jt;
|
|
798
|
+
} else
|
|
799
|
+
jt = t[10];
|
|
800
|
+
const ct = jt;
|
|
801
|
+
let Ft;
|
|
802
|
+
t[11] !== ct || t[12] !== K ? (Ft = K ?? ct.map(_i), t[11] = ct, t[12] = K, t[13] = Ft) : Ft = t[13];
|
|
803
|
+
const Nt = Ft;
|
|
804
|
+
let Vt, zt, G, I, z, ht, ot, dt, vt, _, ut, wt, st, At;
|
|
805
|
+
if (t[14] !== x || t[15] !== s || t[16] !== P || t[17] !== Nt || t[18] !== It || t[19] !== g?.graphObjectValues || t[20] !== g?.xAxis?.gridLines || t[21] !== g?.xAxis?.labels || t[22] !== g?.xAxis?.title || t[23] !== g?.yAxis?.axis || t[24] !== g?.yAxis?.labels || t[25] !== lt || t[26] !== Z || t[27] !== a || t[28] !== ct || t[29] !== c || t[30] !== k || t[31] !== Wt || t[32] !== bt || t[33] !== A || t[34] !== J || t[35] !== n || t[36] !== w.bottom || t[37] !== w.left || t[38] !== w.top || t[39] !== L || t[40] !== H || t[41] !== Q || t[42] !== D || t[43] !== it || t[44] !== pt || t[45] !== m || t[46] !== nt || t[47] !== kt || t[48] !== rt || t[49] !== Ut || t[50] !== Xt || t[51] !== et || t[52] !== mt || t[53] !== M || t[54] !== at || t[55] !== Tt || t[56] !== Ot || t[57] !== d?.graphObjectValues || t[58] !== d?.xAxis?.gridLines || t[59] !== d?.xAxis?.labels || t[60] !== d?.xAxis?.title || t[61] !== d?.yAxis?.axis || t[62] !== d?.yAxis?.labels || t[63] !== qt || t[64] !== Jt || t[65] !== B || t[66] !== l || t[67] !== q) {
|
|
806
|
+
const p = je().domain([D, H]).range([0, bt]).nice(), f = ve().domain(Nt).range([0, Q ? Math.max(Wt, Q * Nt.length) : L ? Math.min(Wt, L * Nt.length) : Wt]).paddingInner(It), Dt = p.ticks(m);
|
|
807
|
+
zt = ee.svg, vt = Ht, _ = `${q}px`, ut = `${A}px`, wt = `0 0 ${q} ${A}`, st = "ltr", z = `translate(${w.left},${w.top})`, ht = Tt ? /* @__PURE__ */ i.jsx(Xe, { values: Dt.filter(Zi), x: Dt.filter(Qi).map((o) => p(o)), y1: 0 - Jt, y2: Wt + w.bottom, styles: {
|
|
808
|
+
gridLines: d?.xAxis?.gridLines,
|
|
809
|
+
labels: d?.xAxis?.labels
|
|
751
810
|
}, classNames: {
|
|
752
|
-
gridLines:
|
|
753
|
-
labels:
|
|
754
|
-
}, suffix:
|
|
755
|
-
const
|
|
756
|
-
t[
|
|
811
|
+
gridLines: g?.xAxis?.gridLines,
|
|
812
|
+
labels: g?.xAxis?.labels
|
|
813
|
+
}, suffix: qt, prefix: Ut, labelType: "secondary", showGridLines: !0, precision: rt }) : null;
|
|
814
|
+
const Lt = bt / 2, Kt = 0 - w.top + 15, N = d?.xAxis?.title, T = g?.xAxis?.title;
|
|
815
|
+
t[82] !== s || t[83] !== Lt || t[84] !== Kt || t[85] !== N || t[86] !== T ? (ot = /* @__PURE__ */ i.jsx(De, { x: Lt, y: Kt, style: N, className: T, text: s }), t[82] = s, t[83] = Lt, t[84] = Kt, t[85] = N, t[86] = T, t[87] = ot) : ot = t[87], t[88] !== Z ? (dt = Z.filter(Ki).map(Ji), t[88] = Z, t[89] = dt) : dt = t[89], Vt = Ne, At = ct.map((o) => ie(f(o.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", variants: {
|
|
757
816
|
initial: {
|
|
758
|
-
opacity:
|
|
817
|
+
opacity: M ? o.color && P[lt.indexOf(o.color)] === M ? 1 : k : J.length !== 0 ? J.indexOf(o.label) !== -1 ? 0.85 : k : 0.85
|
|
759
818
|
},
|
|
760
819
|
whileInView: {
|
|
761
|
-
opacity:
|
|
820
|
+
opacity: M ? o.color && P[lt.indexOf(o.color)] === M ? 1 : k : J.length !== 0 ? J.indexOf(o.label) !== -1 ? 0.85 : k : 0.85,
|
|
762
821
|
transition: {
|
|
763
822
|
duration: x.duration
|
|
764
823
|
}
|
|
765
824
|
}
|
|
766
|
-
}, initial: "initial", animate:
|
|
825
|
+
}, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
|
|
767
826
|
opacity: 0,
|
|
768
827
|
transition: {
|
|
769
828
|
duration: x.duration
|
|
770
829
|
}
|
|
771
|
-
}, onMouseEnter: (
|
|
772
|
-
|
|
830
|
+
}, onMouseEnter: (h) => {
|
|
831
|
+
y(o), xt(h.clientY), Yt(h.clientX), kt?.(o);
|
|
773
832
|
}, onClick: () => {
|
|
774
|
-
(
|
|
775
|
-
}, onMouseMove: (
|
|
776
|
-
|
|
833
|
+
(nt || c) && (Ce(it, o) && et ? (W(void 0), nt?.(void 0)) : (W(o), nt?.(o)));
|
|
834
|
+
}, onMouseMove: (h) => {
|
|
835
|
+
y(o), xt(h.clientY), Yt(h.clientX);
|
|
777
836
|
}, onMouseLeave: () => {
|
|
778
|
-
|
|
837
|
+
y(void 0), Yt(void 0), xt(void 0), kt?.(void 0);
|
|
779
838
|
}, children: [
|
|
780
|
-
|
|
839
|
+
o.size ? /* @__PURE__ */ i.jsx(ee.rect, { variants: {
|
|
781
840
|
initial: {
|
|
782
841
|
width: 0,
|
|
783
|
-
x:
|
|
784
|
-
y:
|
|
785
|
-
fill:
|
|
842
|
+
x: p(0),
|
|
843
|
+
y: f(`${o.id}`),
|
|
844
|
+
fill: a.filter(Ui).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray
|
|
786
845
|
},
|
|
787
846
|
whileInView: {
|
|
788
|
-
width:
|
|
789
|
-
x:
|
|
790
|
-
y:
|
|
791
|
-
fill:
|
|
847
|
+
width: o.size >= 0 ? p(o.size) - p(0) : p(0) - p(o.size),
|
|
848
|
+
x: o.size >= 0 ? p(0) : p(o.size),
|
|
849
|
+
y: f(`${o.id}`),
|
|
850
|
+
fill: a.filter(qi).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray,
|
|
792
851
|
transition: {
|
|
793
852
|
duration: x.duration
|
|
794
853
|
}
|
|
795
854
|
}
|
|
796
|
-
}, initial: "initial", animate:
|
|
855
|
+
}, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
|
|
797
856
|
width: 0,
|
|
798
|
-
x:
|
|
857
|
+
x: p(0),
|
|
799
858
|
transition: {
|
|
800
859
|
duration: x.duration
|
|
801
860
|
}
|
|
802
|
-
}, height:
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
textAnchor:
|
|
806
|
-
...
|
|
807
|
-
}, className:
|
|
861
|
+
}, height: f.bandwidth() }) : null,
|
|
862
|
+
at ? /* @__PURE__ */ i.jsx(We, { value: `${o.label}`.length < B ? `${o.label}` : `${`${o.label}`.substring(0, B)}...`, y: f(o.id) || 0, x: (o.size || 0) < 0 ? p(0) : 0 - w.left, width: (o.size || 0) < 0 ? q - p(0) : p(0) + w.left, height: f.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: g?.yAxis?.labels, animate: x, isInView: n }) : null,
|
|
863
|
+
Ot ? /* @__PURE__ */ i.jsx(ee.text, { style: {
|
|
864
|
+
textAnchor: o.size && o.size < 0 ? "end" : "start",
|
|
865
|
+
...d?.graphObjectValues || {}
|
|
866
|
+
}, className: be("graph-value text-sm", !l && P.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", g?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
808
867
|
initial: {
|
|
809
|
-
x:
|
|
810
|
-
y:
|
|
868
|
+
x: p(0),
|
|
869
|
+
y: f(`${o.id}`) + f.bandwidth() / 2,
|
|
811
870
|
opacity: 0,
|
|
812
|
-
fill:
|
|
871
|
+
fill: l || (a.filter(Ri).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray)
|
|
813
872
|
},
|
|
814
873
|
whileInView: {
|
|
815
|
-
x:
|
|
874
|
+
x: o.size ? p(o.size) : p(0),
|
|
816
875
|
opacity: 1,
|
|
817
|
-
y:
|
|
818
|
-
fill:
|
|
876
|
+
y: f(`${o.id}`) + f.bandwidth() / 2,
|
|
877
|
+
fill: l || (a.filter(Gi).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray),
|
|
819
878
|
transition: {
|
|
820
879
|
duration: x.duration
|
|
821
880
|
}
|
|
822
881
|
}
|
|
823
|
-
}, initial: "initial", animate:
|
|
882
|
+
}, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
|
|
824
883
|
opacity: 0,
|
|
825
884
|
transition: {
|
|
826
885
|
duration: x.duration
|
|
827
886
|
}
|
|
828
|
-
}, children:
|
|
829
|
-
] },
|
|
830
|
-
const
|
|
831
|
-
let
|
|
832
|
-
t[
|
|
833
|
-
axis:
|
|
834
|
-
}, t[
|
|
835
|
-
const
|
|
836
|
-
let
|
|
837
|
-
t[
|
|
838
|
-
axis:
|
|
839
|
-
}, t[
|
|
887
|
+
}, children: fe(o.size, pt, rt, Ut, qt) }) : null
|
|
888
|
+
] }, o.label));
|
|
889
|
+
const Rt = g?.yAxis?.axis;
|
|
890
|
+
let X;
|
|
891
|
+
t[90] !== Rt ? (X = {
|
|
892
|
+
axis: Rt
|
|
893
|
+
}, t[90] = Rt, t[91] = X) : X = t[91];
|
|
894
|
+
const V = d?.yAxis?.axis;
|
|
895
|
+
let R;
|
|
896
|
+
t[92] !== V ? (R = {
|
|
897
|
+
axis: V
|
|
898
|
+
}, t[92] = V, t[93] = R) : R = t[93], G = /* @__PURE__ */ i.jsx(ze, { x1: p(D < 0 ? 0 : D), x2: p(D < 0 ? 0 : D), y1: -2.5, y2: Wt + w.bottom, classNames: X, styles: R }), I = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((o, h) => /* @__PURE__ */ i.jsx(Ye, { text: o.text, color: o.color, x: p(o.value), y1: 0 - w.top, y2: Wt + w.bottom, textSide: p(o.value) > bt * 0.75 || mt ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: x, isInView: n }, h)) }) : null, t[14] = x, t[15] = s, t[16] = P, t[17] = Nt, t[18] = It, t[19] = g?.graphObjectValues, t[20] = g?.xAxis?.gridLines, t[21] = g?.xAxis?.labels, t[22] = g?.xAxis?.title, t[23] = g?.yAxis?.axis, t[24] = g?.yAxis?.labels, t[25] = lt, t[26] = Z, t[27] = a, t[28] = ct, t[29] = c, t[30] = k, t[31] = Wt, t[32] = bt, t[33] = A, t[34] = J, t[35] = n, t[36] = w.bottom, t[37] = w.left, t[38] = w.top, t[39] = L, t[40] = H, t[41] = Q, t[42] = D, t[43] = it, t[44] = pt, t[45] = m, t[46] = nt, t[47] = kt, t[48] = rt, t[49] = Ut, t[50] = Xt, t[51] = et, t[52] = mt, t[53] = M, t[54] = at, t[55] = Tt, t[56] = Ot, t[57] = d?.graphObjectValues, t[58] = d?.xAxis?.gridLines, t[59] = d?.xAxis?.labels, t[60] = d?.xAxis?.title, t[61] = d?.yAxis?.axis, t[62] = d?.yAxis?.labels, t[63] = qt, t[64] = Jt, t[65] = B, t[66] = l, t[67] = q, t[68] = Vt, t[69] = zt, t[70] = G, t[71] = I, t[72] = z, t[73] = ht, t[74] = ot, t[75] = dt, t[76] = vt, t[77] = _, t[78] = ut, t[79] = wt, t[80] = st, t[81] = At;
|
|
840
899
|
} else
|
|
841
|
-
|
|
842
|
-
let At;
|
|
843
|
-
t[89] !== U || t[90] !== vt || t[91] !== wt || t[92] !== ot ? (At = /* @__PURE__ */ i.jsxs(U, { children: [
|
|
844
|
-
vt,
|
|
845
|
-
wt,
|
|
846
|
-
ot
|
|
847
|
-
] }), t[89] = U, t[90] = vt, t[91] = wt, t[92] = ot, t[93] = At) : At = t[93];
|
|
900
|
+
Vt = t[68], zt = t[69], G = t[70], I = t[71], z = t[72], ht = t[73], ot = t[74], dt = t[75], vt = t[76], _ = t[77], ut = t[78], wt = t[79], st = t[80], At = t[81];
|
|
848
901
|
let $t;
|
|
849
|
-
t[94] !==
|
|
850
|
-
let Ot;
|
|
851
|
-
t[96] !== ht || t[97] !== Mt || t[98] !== st || t[99] !== Ct || t[100] !== At || t[101] !== $t ? (Ot = /* @__PURE__ */ i.jsxs("g", { transform: ht, children: [
|
|
852
|
-
Mt,
|
|
853
|
-
st,
|
|
854
|
-
Ct,
|
|
902
|
+
t[94] !== Vt || t[95] !== G || t[96] !== I || t[97] !== At ? ($t = /* @__PURE__ */ i.jsxs(Vt, { children: [
|
|
855
903
|
At,
|
|
856
|
-
|
|
857
|
-
|
|
904
|
+
G,
|
|
905
|
+
I
|
|
906
|
+
] }), t[94] = Vt, t[95] = G, t[96] = I, t[97] = At, t[98] = $t) : $t = t[98];
|
|
858
907
|
let b;
|
|
859
|
-
t[
|
|
860
|
-
let
|
|
861
|
-
t[
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
b
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
] }), t[
|
|
908
|
+
t[99] !== Z ? (b = Z.filter(Ei).map(Yi), t[99] = Z, t[100] = b) : b = t[100];
|
|
909
|
+
let $;
|
|
910
|
+
t[101] !== z || t[102] !== ht || t[103] !== ot || t[104] !== dt || t[105] !== $t || t[106] !== b ? ($ = /* @__PURE__ */ i.jsxs("g", { transform: z, children: [
|
|
911
|
+
ht,
|
|
912
|
+
ot,
|
|
913
|
+
dt,
|
|
914
|
+
$t,
|
|
915
|
+
b
|
|
916
|
+
] }), t[101] = z, t[102] = ht, t[103] = ot, t[104] = dt, t[105] = $t, t[106] = b, t[107] = $) : $ = t[107];
|
|
917
|
+
let O;
|
|
918
|
+
t[108] !== zt || t[109] !== vt || t[110] !== _ || t[111] !== ut || t[112] !== wt || t[113] !== st || t[114] !== $ ? (O = /* @__PURE__ */ i.jsx(zt, { ref: vt, width: _, height: ut, viewBox: wt, direction: st, children: $ }), t[108] = zt, t[109] = vt, t[110] = _, t[111] = ut, t[112] = wt, t[113] = st, t[114] = $, t[115] = O) : O = t[115];
|
|
919
|
+
let v;
|
|
920
|
+
t[116] !== g?.tooltip || t[117] !== C || t[118] !== yt || t[119] !== F || t[120] !== d?.tooltip || t[121] !== Mt ? (v = F && Mt && C && yt ? /* @__PURE__ */ i.jsx(Ve, { data: F, body: Mt, xPos: C, yPos: yt, backgroundStyle: d?.tooltip, className: g?.tooltip }) : null, t[116] = g?.tooltip, t[117] = C, t[118] = yt, t[119] = F, t[120] = d?.tooltip, t[121] = Mt, t[122] = v) : v = t[122];
|
|
921
|
+
let ft;
|
|
922
|
+
t[123] !== g?.modal || t[124] !== c || t[125] !== it ? (ft = c && it !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: c, data: it, setData: W, className: g?.modal }) : null, t[123] = g?.modal, t[124] = c, t[125] = it, t[126] = ft) : ft = t[126];
|
|
923
|
+
let j;
|
|
924
|
+
return t[127] !== O || t[128] !== v || t[129] !== ft ? (j = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
925
|
+
O,
|
|
926
|
+
v,
|
|
927
|
+
ft
|
|
928
|
+
] }), t[127] = O, t[128] = v, t[129] = ft, t[130] = j) : j = t[130], j;
|
|
870
929
|
}
|
|
871
|
-
function
|
|
930
|
+
function Yi(e) {
|
|
872
931
|
return e.layer;
|
|
873
932
|
}
|
|
874
|
-
function
|
|
933
|
+
function Ei(e) {
|
|
875
934
|
return e.position === "after";
|
|
876
935
|
}
|
|
877
|
-
function
|
|
936
|
+
function Gi(e) {
|
|
878
937
|
return e.color;
|
|
879
938
|
}
|
|
880
|
-
function
|
|
939
|
+
function Ri(e) {
|
|
881
940
|
return e.color;
|
|
882
941
|
}
|
|
883
|
-
function
|
|
942
|
+
function qi(e) {
|
|
884
943
|
return e.color;
|
|
885
944
|
}
|
|
886
|
-
function
|
|
945
|
+
function Ui(e) {
|
|
887
946
|
return e.color;
|
|
888
947
|
}
|
|
889
|
-
function
|
|
948
|
+
function Ji(e) {
|
|
890
949
|
return e.layer;
|
|
891
950
|
}
|
|
892
|
-
function
|
|
951
|
+
function Ki(e) {
|
|
893
952
|
return e.position === "before";
|
|
894
953
|
}
|
|
895
|
-
function
|
|
954
|
+
function Qi(e) {
|
|
896
955
|
return e !== 0;
|
|
897
956
|
}
|
|
898
|
-
function
|
|
957
|
+
function Zi(e) {
|
|
899
958
|
return e !== 0;
|
|
900
959
|
}
|
|
901
|
-
function
|
|
960
|
+
function _i(e) {
|
|
902
961
|
return `${e.id}`;
|
|
903
962
|
}
|
|
904
|
-
function
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
963
|
+
function ts(e) {
|
|
964
|
+
return {
|
|
965
|
+
id: e,
|
|
966
|
+
label: e,
|
|
967
|
+
color: null,
|
|
968
|
+
size: null
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
function es(e) {
|
|
972
|
+
const t = ge.c(139), {
|
|
973
|
+
leftMargin: a,
|
|
974
|
+
rightMargin: P,
|
|
975
|
+
topMargin: qt,
|
|
976
|
+
bottomMargin: Ut,
|
|
977
|
+
data: It,
|
|
978
|
+
width: Ot,
|
|
979
|
+
height: Tt,
|
|
980
|
+
barColor: B,
|
|
981
|
+
suffix: q,
|
|
982
|
+
prefix: A,
|
|
983
|
+
barPadding: lt,
|
|
984
|
+
showLabels: St,
|
|
985
|
+
showValues: tt,
|
|
986
|
+
showTicks: Et,
|
|
987
|
+
colorDomain: U,
|
|
988
|
+
truncateBy: at,
|
|
989
|
+
tooltip: Mt,
|
|
990
|
+
onSeriesMouseOver: kt,
|
|
991
|
+
refValues: Xt,
|
|
992
|
+
selectedColor: M,
|
|
993
|
+
maxValue: J,
|
|
994
|
+
minValue: H,
|
|
995
|
+
highlightedDataPoints: D,
|
|
996
|
+
onSeriesMouseClick: nt,
|
|
997
|
+
labelOrder: K,
|
|
998
|
+
maxBarThickness: mt,
|
|
999
|
+
minBarThickness: L,
|
|
1000
|
+
resetSelectionOnDoubleClick: Q,
|
|
1001
|
+
detailsOnClick: et,
|
|
1002
|
+
barAxisTitle: c,
|
|
936
1003
|
valueColor: s,
|
|
937
|
-
noOfTicks:
|
|
938
|
-
styles:
|
|
939
|
-
classNames:
|
|
940
|
-
dimmedOpacity:
|
|
1004
|
+
noOfTicks: l,
|
|
1005
|
+
styles: m,
|
|
1006
|
+
classNames: d,
|
|
1007
|
+
dimmedOpacity: g,
|
|
941
1008
|
animate: x,
|
|
942
|
-
precision:
|
|
943
|
-
customLayers:
|
|
944
|
-
naLabel:
|
|
945
|
-
} = e,
|
|
946
|
-
let
|
|
947
|
-
t[0] !== x.amount || t[1] !== x.once ? (
|
|
1009
|
+
precision: k,
|
|
1010
|
+
customLayers: rt,
|
|
1011
|
+
naLabel: Z
|
|
1012
|
+
} = e, pt = a === void 0 ? 20 : a, Jt = P === void 0 ? 20 : P, Gt = qt === void 0 ? 20 : qt, Y = Ut === void 0 ? 25 : Ut, gt = pe(null);
|
|
1013
|
+
let Ht;
|
|
1014
|
+
t[0] !== x.amount || t[1] !== x.once ? (Ht = {
|
|
948
1015
|
once: x.once,
|
|
949
1016
|
amount: x.amount
|
|
950
|
-
}, t[0] = x.amount, t[1] = x.once, t[2] =
|
|
951
|
-
const
|
|
952
|
-
let
|
|
953
|
-
t[3] !==
|
|
954
|
-
top:
|
|
955
|
-
bottom:
|
|
956
|
-
left:
|
|
957
|
-
right:
|
|
958
|
-
}, t[3] =
|
|
959
|
-
const
|
|
960
|
-
let
|
|
961
|
-
if (t[8] !==
|
|
962
|
-
const
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1017
|
+
}, t[0] = x.amount, t[1] = x.once, t[2] = Ht) : Ht = t[2];
|
|
1018
|
+
const r = Ie(gt, Ht), n = c ? pt + 30 : pt;
|
|
1019
|
+
let F;
|
|
1020
|
+
t[3] !== Y || t[4] !== Jt || t[5] !== n || t[6] !== Gt ? (F = {
|
|
1021
|
+
top: Gt,
|
|
1022
|
+
bottom: Y,
|
|
1023
|
+
left: n,
|
|
1024
|
+
right: Jt
|
|
1025
|
+
}, t[3] = Y, t[4] = Jt, t[5] = n, t[6] = Gt, t[7] = F) : F = t[7];
|
|
1026
|
+
const y = F, [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), [Ct, E] = Zt(void 0), w = Ot - y.left - y.right, bt = Tt - y.top - y.bottom;
|
|
1027
|
+
let Wt;
|
|
1028
|
+
if (t[8] !== It || t[9] !== K) {
|
|
1029
|
+
const j = /* @__PURE__ */ new Set(), p = It.map((Dt, Lt) => {
|
|
1030
|
+
const Kt = K ? `${Dt.label}` : `${Lt}`;
|
|
1031
|
+
return j.add(Kt), {
|
|
1032
|
+
...Dt,
|
|
1033
|
+
id: Kt
|
|
1034
|
+
};
|
|
1035
|
+
}), f = K ? K.filter((Dt) => !j.has(Dt)) : [];
|
|
1036
|
+
Wt = [...p, ...f.map(xs)], t[8] = It, t[9] = K, t[10] = Wt;
|
|
1037
|
+
} else
|
|
1038
|
+
Wt = t[10];
|
|
1039
|
+
const jt = Wt;
|
|
1040
|
+
let ct;
|
|
1041
|
+
t[11] !== jt || t[12] !== K ? (ct = K ?? jt.map(ms), t[11] = jt, t[12] = K, t[13] = ct) : ct = t[13];
|
|
1042
|
+
const Ft = ct;
|
|
1043
|
+
let Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _, ut, wt, st;
|
|
1044
|
+
if (t[14] !== x || t[15] !== c || t[16] !== B || t[17] !== Ft || t[18] !== lt || t[19] !== d?.graphObjectValues || t[20] !== d?.xAxis?.axis || t[21] !== d?.xAxis?.labels || t[22] !== d?.yAxis?.gridLines || t[23] !== d?.yAxis?.labels || t[24] !== d?.yAxis?.title || t[25] !== U || t[26] !== rt || t[27] !== It || t[28] !== jt || t[29] !== et || t[30] !== g || t[31] !== bt || t[32] !== w || t[33] !== Tt || t[34] !== D || t[35] !== r || t[36] !== pt || t[37] !== y.bottom || t[38] !== y.left || t[39] !== y.right || t[40] !== y.top || t[41] !== mt || t[42] !== J || t[43] !== L || t[44] !== H || t[45] !== C || t[46] !== Z || t[47] !== l || t[48] !== nt || t[49] !== kt || t[50] !== k || t[51] !== A || t[52] !== Xt || t[53] !== Q || t[54] !== M || t[55] !== St || t[56] !== Et || t[57] !== tt || t[58] !== m?.graphObjectValues || t[59] !== m?.xAxis?.axis || t[60] !== m?.xAxis?.labels || t[61] !== m?.yAxis?.gridLines || t[62] !== m?.yAxis?.labels || t[63] !== m?.yAxis?.title || t[64] !== q || t[65] !== at || t[66] !== s || t[67] !== Ot) {
|
|
1045
|
+
const j = je().domain([H, J]).range([bt, 0]).nice(), p = ve().domain(Ft).range([0, L ? Math.max(w, L * Ft.length) : mt ? Math.min(w, mt * Ft.length) : w]).paddingInner(lt), f = j.ticks(l);
|
|
1046
|
+
Vt = ee.svg, dt = gt, vt = `${Ot}px`, _ = `${Tt}px`, ut = `0 0 ${Ot} ${Tt}`, wt = "ltr", G = `translate(${y.left},${y.top})`;
|
|
1047
|
+
const Dt = j(H < 0 ? 0 : H), Lt = j(H < 0 ? 0 : H), Kt = H < 0 ? 0 : H;
|
|
1048
|
+
let N;
|
|
1049
|
+
t[82] !== Z || t[83] !== k || t[84] !== A || t[85] !== q || t[86] !== Kt ? (N = fe(Kt, Z, k, A, q), t[82] = Z, t[83] = k, t[84] = A, t[85] = q, t[86] = Kt, t[87] = N) : N = t[87];
|
|
1050
|
+
const T = d?.xAxis?.axis, Rt = d?.yAxis?.labels;
|
|
1051
|
+
let X;
|
|
1052
|
+
t[88] !== T || t[89] !== Rt ? (X = {
|
|
1053
|
+
axis: T,
|
|
1054
|
+
label: Rt
|
|
1055
|
+
}, t[88] = T, t[89] = Rt, t[90] = X) : X = t[90];
|
|
1056
|
+
const V = m?.xAxis?.axis, R = m?.yAxis?.labels;
|
|
1057
|
+
let o;
|
|
1058
|
+
t[91] !== V || t[92] !== R ? (o = {
|
|
1059
|
+
axis: V,
|
|
1060
|
+
label: R
|
|
1061
|
+
}, t[91] = V, t[92] = R, t[93] = o) : o = t[93], I = /* @__PURE__ */ i.jsx(ze, { y1: Dt, y2: Lt, x1: 0 - pt, x2: w + y.right, label: N, labelPos: {
|
|
1062
|
+
x: 0 - pt,
|
|
986
1063
|
dx: 0,
|
|
987
|
-
dy:
|
|
988
|
-
y:
|
|
989
|
-
}, classNames:
|
|
1064
|
+
dy: J < 0 ? "1em" : -5,
|
|
1065
|
+
y: j(H < 0 ? 0 : H)
|
|
1066
|
+
}, classNames: X, styles: o }), z = Et ? /* @__PURE__ */ i.jsx(Ge, { values: f.filter(us), y: f.filter(ds).map((u) => j(u)), x1: 0 - pt, x2: w + y.right, styles: {
|
|
1067
|
+
gridLines: m?.yAxis?.gridLines,
|
|
1068
|
+
labels: m?.yAxis?.labels
|
|
1069
|
+
}, classNames: {
|
|
990
1070
|
gridLines: d?.yAxis?.gridLines,
|
|
991
1071
|
labels: d?.yAxis?.labels
|
|
992
|
-
},
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
}, suffix: j, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: A }) : null;
|
|
996
|
-
const p = 0 - rt - 15, ee = Q / 2, L = d?.yAxis?.title, Vt = r?.yAxis?.title;
|
|
997
|
-
t[89] !== u || t[90] !== p || t[91] !== ee || t[92] !== L || t[93] !== Vt ? (Mt = /* @__PURE__ */ i.jsx(ke, { x: p, y: ee, style: L, className: Vt, text: u, rotate90: !0 }), t[89] = u, t[90] = p, t[91] = ee, t[92] = L, t[93] = Vt, t[94] = Mt) : Mt = t[94], t[95] !== K ? (st = K.filter(as).map(ss), t[95] = K, t[96] = st) : st = t[96], Z = De, pt = qt.map((l, ie) => _t(Kt(l.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: n ? "whileInView" : "initial", variants: {
|
|
1072
|
+
}, suffix: q, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: k }) : null;
|
|
1073
|
+
const h = 0 - pt - 15, _t = bt / 2, S = m?.yAxis?.title, Bt = d?.yAxis?.title;
|
|
1074
|
+
t[94] !== c || t[95] !== h || t[96] !== _t || t[97] !== S || t[98] !== Bt ? (ht = /* @__PURE__ */ i.jsx(De, { x: h, y: _t, style: S, className: Bt, text: c, rotate90: !0 }), t[94] = c, t[95] = h, t[96] = _t, t[97] = S, t[98] = Bt, t[99] = ht) : ht = t[99], t[100] !== rt ? (ot = rt.filter(cs).map(rs), t[100] = rt, t[101] = ot) : ot = t[101], Nt = Ne, st = jt.map((u, se) => ie(p(u.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
|
|
998
1075
|
initial: {
|
|
999
|
-
opacity:
|
|
1076
|
+
opacity: M ? u.color && B[U.indexOf(u.color)] === M ? 1 : g : D.length !== 0 ? D.indexOf(u.label) !== -1 ? 0.85 : g : 0.85
|
|
1000
1077
|
},
|
|
1001
1078
|
whileInView: {
|
|
1002
|
-
opacity:
|
|
1079
|
+
opacity: M ? u.color && B[U.indexOf(u.color)] === M ? 1 : g : D.length !== 0 ? D.indexOf(u.label) !== -1 ? 0.85 : g : 0.85,
|
|
1003
1080
|
transition: {
|
|
1004
1081
|
duration: x.duration
|
|
1005
1082
|
}
|
|
@@ -1009,1202 +1086,1281 @@ function Ki(e) {
|
|
|
1009
1086
|
transition: {
|
|
1010
1087
|
duration: x.duration
|
|
1011
1088
|
}
|
|
1012
|
-
}, onMouseEnter: (
|
|
1013
|
-
|
|
1089
|
+
}, onMouseEnter: (ae) => {
|
|
1090
|
+
W(u), E(ae.clientY), xt(ae.clientX), kt?.(u);
|
|
1014
1091
|
}, onClick: () => {
|
|
1015
|
-
(
|
|
1016
|
-
}, onMouseMove: (
|
|
1017
|
-
|
|
1092
|
+
(nt || et) && (Ce(C, u) && Q ? (Yt(void 0), nt?.(void 0)) : (Yt(u), nt?.(u)));
|
|
1093
|
+
}, onMouseMove: (ae) => {
|
|
1094
|
+
W(u), E(ae.clientY), xt(ae.clientX);
|
|
1018
1095
|
}, onMouseLeave: () => {
|
|
1019
|
-
|
|
1096
|
+
W(void 0), xt(void 0), E(void 0), kt?.(void 0);
|
|
1020
1097
|
}, children: [
|
|
1021
|
-
|
|
1098
|
+
u.size ? /* @__PURE__ */ i.jsx(ee.rect, { width: p.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
|
|
1022
1099
|
initial: {
|
|
1023
1100
|
height: 0,
|
|
1024
|
-
x:
|
|
1025
|
-
y:
|
|
1026
|
-
fill:
|
|
1101
|
+
x: p(`${u.id}`),
|
|
1102
|
+
y: j(0),
|
|
1103
|
+
fill: It.filter(ns).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray
|
|
1027
1104
|
},
|
|
1028
1105
|
whileInView: {
|
|
1029
|
-
height:
|
|
1030
|
-
y:
|
|
1031
|
-
x:
|
|
1032
|
-
fill:
|
|
1106
|
+
height: u.size ? Math.abs(j(u.size) - j(0)) : 0,
|
|
1107
|
+
y: u.size && u.size > 0 ? j(u.size) : j(0),
|
|
1108
|
+
x: p(`${u.id}`),
|
|
1109
|
+
fill: It.filter(os).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray,
|
|
1033
1110
|
transition: {
|
|
1034
1111
|
duration: x.duration
|
|
1035
1112
|
}
|
|
1036
1113
|
}
|
|
1037
1114
|
}, exit: {
|
|
1038
1115
|
height: 0,
|
|
1039
|
-
y:
|
|
1116
|
+
y: j(0),
|
|
1040
1117
|
transition: {
|
|
1041
1118
|
duration: x.duration
|
|
1042
1119
|
}
|
|
1043
1120
|
} }) : null,
|
|
1044
|
-
|
|
1045
|
-
|
|
1121
|
+
St ? /* @__PURE__ */ i.jsx(Re, { value: `${u.label}`.length < at ? `${u.label}` : `${`${u.label}`.substring(0, at)}...`, y: (u.size || 0) < 0 ? 0 : j(0) + 5, x: p(`${u.id}`), width: p.bandwidth(), height: (u.size || 0) < 0 ? j(0) - 5 : y.bottom, style: m?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (u.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
|
|
1122
|
+
tt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
|
|
1046
1123
|
textAnchor: "middle",
|
|
1047
|
-
...
|
|
1048
|
-
}, className:
|
|
1124
|
+
...m?.graphObjectValues || {}
|
|
1125
|
+
}, className: be("graph-value text-sm", !s && B.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: u.size ? u.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
1049
1126
|
initial: {
|
|
1050
|
-
x:
|
|
1051
|
-
y:
|
|
1127
|
+
x: p(`${u.id}`) + p.bandwidth() / 2,
|
|
1128
|
+
y: j(0),
|
|
1052
1129
|
opacity: 0,
|
|
1053
|
-
fill: s || (
|
|
1130
|
+
fill: s || (It.filter(as).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray)
|
|
1054
1131
|
},
|
|
1055
1132
|
whileInView: {
|
|
1056
|
-
x:
|
|
1057
|
-
y:
|
|
1058
|
-
fill: s || (
|
|
1133
|
+
x: p(`${u.id}`) + p.bandwidth() / 2,
|
|
1134
|
+
y: j(u.size || 0),
|
|
1135
|
+
fill: s || (It.filter(ls).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray),
|
|
1059
1136
|
opacity: 1,
|
|
1060
1137
|
transition: {
|
|
1061
1138
|
duration: x.duration
|
|
1062
1139
|
}
|
|
1063
1140
|
}
|
|
1064
|
-
}, initial: "initial", animate:
|
|
1141
|
+
}, initial: "initial", animate: r ? "whileInView" : "initial", exit: {
|
|
1065
1142
|
opacity: 0,
|
|
1066
1143
|
transition: {
|
|
1067
1144
|
duration: x.duration
|
|
1068
1145
|
}
|
|
1069
|
-
}, children:
|
|
1070
|
-
] },
|
|
1146
|
+
}, children: fe(u.size, Z, k, A, q) }) : null
|
|
1147
|
+
] }, u.label)), zt = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((u, se) => /* @__PURE__ */ i.jsx(Ee, { text: u.text, color: u.color, y: j(u.value), x1: 0 - pt, x2: w + y.right, classNames: u.classNames, styles: u.styles, animate: x, isInView: r }, se)) }) : null, t[14] = x, t[15] = c, t[16] = B, t[17] = Ft, t[18] = lt, t[19] = d?.graphObjectValues, t[20] = d?.xAxis?.axis, t[21] = d?.xAxis?.labels, t[22] = d?.yAxis?.gridLines, t[23] = d?.yAxis?.labels, t[24] = d?.yAxis?.title, t[25] = U, t[26] = rt, t[27] = It, t[28] = jt, t[29] = et, t[30] = g, t[31] = bt, t[32] = w, t[33] = Tt, t[34] = D, t[35] = r, t[36] = pt, t[37] = y.bottom, t[38] = y.left, t[39] = y.right, t[40] = y.top, t[41] = mt, t[42] = J, t[43] = L, t[44] = H, t[45] = C, t[46] = Z, t[47] = l, t[48] = nt, t[49] = kt, t[50] = k, t[51] = A, t[52] = Xt, t[53] = Q, t[54] = M, t[55] = St, t[56] = Et, t[57] = tt, t[58] = m?.graphObjectValues, t[59] = m?.xAxis?.axis, t[60] = m?.xAxis?.labels, t[61] = m?.yAxis?.gridLines, t[62] = m?.yAxis?.labels, t[63] = m?.yAxis?.title, t[64] = q, t[65] = at, t[66] = s, t[67] = Ot, t[68] = Nt, t[69] = Vt, t[70] = zt, t[71] = G, t[72] = I, t[73] = z, t[74] = ht, t[75] = ot, t[76] = dt, t[77] = vt, t[78] = _, t[79] = ut, t[80] = wt, t[81] = st;
|
|
1071
1148
|
} else
|
|
1072
|
-
|
|
1073
|
-
let ot;
|
|
1074
|
-
t[97] !== Z || t[98] !== pt || t[99] !== vt ? (ot = /* @__PURE__ */ i.jsxs(Z, { children: [
|
|
1075
|
-
pt,
|
|
1076
|
-
vt
|
|
1077
|
-
] }), t[97] = Z, t[98] = pt, t[99] = vt, t[100] = ot) : ot = t[100];
|
|
1149
|
+
Nt = t[68], Vt = t[69], zt = t[70], G = t[71], I = t[72], z = t[73], ht = t[74], ot = t[75], dt = t[76], vt = t[77], _ = t[78], ut = t[79], wt = t[80], st = t[81];
|
|
1078
1150
|
let At;
|
|
1079
|
-
t[
|
|
1151
|
+
t[102] !== Nt || t[103] !== zt || t[104] !== st ? (At = /* @__PURE__ */ i.jsxs(Nt, { children: [
|
|
1152
|
+
st,
|
|
1153
|
+
zt
|
|
1154
|
+
] }), t[102] = Nt, t[103] = zt, t[104] = st, t[105] = At) : At = t[105];
|
|
1080
1155
|
let $t;
|
|
1081
|
-
t[
|
|
1082
|
-
|
|
1156
|
+
t[106] !== rt ? ($t = rt.filter(ss).map(is), t[106] = rt, t[107] = $t) : $t = t[107];
|
|
1157
|
+
let b;
|
|
1158
|
+
t[108] !== G || t[109] !== I || t[110] !== z || t[111] !== ht || t[112] !== ot || t[113] !== At || t[114] !== $t ? (b = /* @__PURE__ */ i.jsxs("g", { transform: G, children: [
|
|
1159
|
+
I,
|
|
1160
|
+
z,
|
|
1083
1161
|
ht,
|
|
1084
|
-
Mt,
|
|
1085
|
-
st,
|
|
1086
1162
|
ot,
|
|
1087
|
-
At
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1163
|
+
At,
|
|
1164
|
+
$t
|
|
1165
|
+
] }), t[108] = G, t[109] = I, t[110] = z, t[111] = ht, t[112] = ot, t[113] = At, t[114] = $t, t[115] = b) : b = t[115];
|
|
1166
|
+
let $;
|
|
1167
|
+
t[116] !== Vt || t[117] !== dt || t[118] !== vt || t[119] !== _ || t[120] !== ut || t[121] !== wt || t[122] !== b ? ($ = /* @__PURE__ */ i.jsx(Vt, { ref: dt, width: vt, height: _, viewBox: ut, direction: wt, children: b }), t[116] = Vt, t[117] = dt, t[118] = vt, t[119] = _, t[120] = ut, t[121] = wt, t[122] = b, t[123] = $) : $ = t[123];
|
|
1168
|
+
let O;
|
|
1169
|
+
t[124] !== d?.tooltip || t[125] !== yt || t[126] !== Ct || t[127] !== it || t[128] !== m?.tooltip || t[129] !== Mt ? (O = it && Mt && yt && Ct ? /* @__PURE__ */ i.jsx(Ve, { data: it, body: Mt, xPos: yt, yPos: Ct, backgroundStyle: m?.tooltip, className: d?.tooltip }) : null, t[124] = d?.tooltip, t[125] = yt, t[126] = Ct, t[127] = it, t[128] = m?.tooltip, t[129] = Mt, t[130] = O) : O = t[130];
|
|
1170
|
+
let v;
|
|
1171
|
+
t[131] !== d?.modal || t[132] !== et || t[133] !== C ? (v = et && C !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: et, data: C, setData: Yt, className: d?.modal }) : null, t[131] = d?.modal, t[132] = et, t[133] = C, t[134] = v) : v = t[134];
|
|
1172
|
+
let ft;
|
|
1173
|
+
return t[135] !== $ || t[136] !== O || t[137] !== v ? (ft = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1174
|
+
$,
|
|
1175
|
+
O,
|
|
1176
|
+
v
|
|
1177
|
+
] }), t[135] = $, t[136] = O, t[137] = v, t[138] = ft) : ft = t[138], ft;
|
|
1101
1178
|
}
|
|
1102
|
-
function
|
|
1179
|
+
function is(e) {
|
|
1103
1180
|
return e.layer;
|
|
1104
1181
|
}
|
|
1105
|
-
function
|
|
1182
|
+
function ss(e) {
|
|
1106
1183
|
return e.position === "after";
|
|
1107
1184
|
}
|
|
1108
|
-
function
|
|
1185
|
+
function ls(e) {
|
|
1109
1186
|
return e.color;
|
|
1110
1187
|
}
|
|
1111
|
-
function
|
|
1188
|
+
function as(e) {
|
|
1112
1189
|
return e.color;
|
|
1113
1190
|
}
|
|
1114
|
-
function
|
|
1191
|
+
function os(e) {
|
|
1115
1192
|
return e.color;
|
|
1116
1193
|
}
|
|
1117
|
-
function
|
|
1194
|
+
function ns(e) {
|
|
1118
1195
|
return e.color;
|
|
1119
1196
|
}
|
|
1120
|
-
function
|
|
1197
|
+
function rs(e) {
|
|
1121
1198
|
return e.layer;
|
|
1122
1199
|
}
|
|
1123
|
-
function
|
|
1200
|
+
function cs(e) {
|
|
1124
1201
|
return e.position === "before";
|
|
1125
1202
|
}
|
|
1126
|
-
function
|
|
1203
|
+
function ds(e) {
|
|
1127
1204
|
return e !== 0;
|
|
1128
1205
|
}
|
|
1129
|
-
function
|
|
1206
|
+
function us(e) {
|
|
1130
1207
|
return e !== 0;
|
|
1131
1208
|
}
|
|
1132
|
-
function
|
|
1209
|
+
function ms(e) {
|
|
1133
1210
|
return `${e.id}`;
|
|
1134
1211
|
}
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1212
|
+
function xs(e) {
|
|
1213
|
+
return {
|
|
1214
|
+
id: e,
|
|
1215
|
+
label: e,
|
|
1216
|
+
color: null,
|
|
1217
|
+
size: null
|
|
1218
|
+
};
|
|
1219
|
+
}
|
|
1220
|
+
function hs(e) {
|
|
1221
|
+
const t = ge.c(120), {
|
|
1222
|
+
data: a,
|
|
1223
|
+
graphTitle: P,
|
|
1224
|
+
colors: qt,
|
|
1225
|
+
suffix: Ut,
|
|
1226
|
+
sources: It,
|
|
1227
|
+
prefix: Ot,
|
|
1228
|
+
graphDescription: Tt,
|
|
1229
|
+
barPadding: B,
|
|
1230
|
+
showValues: q,
|
|
1231
|
+
showTicks: A,
|
|
1232
|
+
truncateBy: lt,
|
|
1233
|
+
height: St,
|
|
1234
|
+
width: tt,
|
|
1235
|
+
footNote: Et,
|
|
1236
|
+
colorDomain: U,
|
|
1237
|
+
colorLegendTitle: at,
|
|
1238
|
+
highlightedDataPoints: Mt,
|
|
1239
|
+
padding: kt,
|
|
1240
|
+
backgroundColor: Xt,
|
|
1241
|
+
topMargin: M,
|
|
1242
|
+
bottomMargin: J,
|
|
1243
|
+
leftMargin: H,
|
|
1244
|
+
rightMargin: D,
|
|
1245
|
+
showLabels: nt,
|
|
1246
|
+
relativeHeight: K,
|
|
1247
|
+
tooltip: mt,
|
|
1248
|
+
onSeriesMouseOver: L,
|
|
1249
|
+
refValues: Q,
|
|
1250
|
+
showColorScale: et,
|
|
1251
|
+
graphID: c,
|
|
1167
1252
|
maxValue: s,
|
|
1168
|
-
minValue:
|
|
1169
|
-
onSeriesMouseClick:
|
|
1170
|
-
graphDownload:
|
|
1171
|
-
dataDownload:
|
|
1253
|
+
minValue: l,
|
|
1254
|
+
onSeriesMouseClick: m,
|
|
1255
|
+
graphDownload: d,
|
|
1256
|
+
dataDownload: g,
|
|
1172
1257
|
sortData: x,
|
|
1173
|
-
labelOrder:
|
|
1174
|
-
language:
|
|
1175
|
-
showNAColor:
|
|
1176
|
-
minHeight:
|
|
1177
|
-
theme:
|
|
1178
|
-
maxBarThickness:
|
|
1179
|
-
maxNumberOfBars:
|
|
1180
|
-
minBarThickness:
|
|
1181
|
-
ariaLabel:
|
|
1182
|
-
resetSelectionOnDoubleClick:
|
|
1183
|
-
detailsOnClick:
|
|
1184
|
-
barAxisTitle:
|
|
1185
|
-
noOfTicks:
|
|
1186
|
-
valueColor:
|
|
1187
|
-
styles:
|
|
1188
|
-
classNames:
|
|
1189
|
-
filterNA:
|
|
1190
|
-
animate:
|
|
1191
|
-
dimmedOpacity:
|
|
1192
|
-
precision:
|
|
1193
|
-
customLayers:
|
|
1194
|
-
timeline:
|
|
1195
|
-
naLabel:
|
|
1196
|
-
orientation:
|
|
1197
|
-
} = e,
|
|
1198
|
-
let
|
|
1199
|
-
t[0] !==
|
|
1200
|
-
const
|
|
1201
|
-
let
|
|
1202
|
-
t[2] !==
|
|
1203
|
-
const
|
|
1258
|
+
labelOrder: k,
|
|
1259
|
+
language: rt,
|
|
1260
|
+
showNAColor: Z,
|
|
1261
|
+
minHeight: pt,
|
|
1262
|
+
theme: Jt,
|
|
1263
|
+
maxBarThickness: Gt,
|
|
1264
|
+
maxNumberOfBars: Y,
|
|
1265
|
+
minBarThickness: gt,
|
|
1266
|
+
ariaLabel: Ht,
|
|
1267
|
+
resetSelectionOnDoubleClick: r,
|
|
1268
|
+
detailsOnClick: n,
|
|
1269
|
+
barAxisTitle: F,
|
|
1270
|
+
noOfTicks: y,
|
|
1271
|
+
valueColor: it,
|
|
1272
|
+
styles: W,
|
|
1273
|
+
classNames: C,
|
|
1274
|
+
filterNA: Yt,
|
|
1275
|
+
animate: yt,
|
|
1276
|
+
dimmedOpacity: xt,
|
|
1277
|
+
precision: Ct,
|
|
1278
|
+
customLayers: E,
|
|
1279
|
+
timeline: w,
|
|
1280
|
+
naLabel: bt,
|
|
1281
|
+
orientation: Wt
|
|
1282
|
+
} = e, jt = Ut === void 0 ? "" : Ut, ct = Ot === void 0 ? "" : Ot, Ft = B === void 0 ? 0.25 : B, Nt = q === void 0 ? !0 : q, Vt = A === void 0 ? !0 : A, zt = lt === void 0 ? 999 : lt;
|
|
1283
|
+
let G;
|
|
1284
|
+
t[0] !== Mt ? (G = Mt === void 0 ? [] : Mt, t[0] = Mt, t[1] = G) : G = t[1];
|
|
1285
|
+
const I = G, z = Xt === void 0 ? !1 : Xt, ht = nt === void 0 ? !0 : nt, ot = et === void 0 ? !0 : et, dt = d === void 0 ? !1 : d, vt = g === void 0 ? !1 : g, _ = rt === void 0 ? "en" : rt, ut = Z === void 0 ? !0 : Z, wt = pt === void 0 ? 0 : pt, st = Jt === void 0 ? "light" : Jt, At = r === void 0 ? !0 : r, $t = y === void 0 ? 5 : y, b = Yt === void 0 ? !0 : Yt, $ = yt === void 0 ? !1 : yt, O = xt === void 0 ? 0.3 : xt, v = Ct === void 0 ? 2 : Ct;
|
|
1286
|
+
let ft;
|
|
1287
|
+
t[2] !== E ? (ft = E === void 0 ? [] : E, t[2] = E, t[3] = ft) : ft = t[3];
|
|
1288
|
+
const j = ft;
|
|
1289
|
+
let p;
|
|
1290
|
+
t[4] !== w ? (p = w === void 0 ? {
|
|
1204
1291
|
enabled: !1,
|
|
1205
1292
|
autoplay: !1,
|
|
1206
1293
|
showOnlyActiveDate: !0
|
|
1207
|
-
} :
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1294
|
+
} : w, t[4] = w, t[5] = p) : p = t[5];
|
|
1295
|
+
const f = p, Dt = bt === void 0 ? "NA" : bt, Lt = Wt === void 0 ? "vertical" : Wt, Kt = Lt === "horizontal" ? Xi : es, [N, T] = Zt(0), [Rt, X] = Zt(0), [V, R] = Zt(f.autoplay);
|
|
1296
|
+
let o;
|
|
1297
|
+
if (t[6] !== a || t[7] !== f.dateFormat) {
|
|
1298
|
+
let te;
|
|
1299
|
+
t[9] !== f.dateFormat ? (te = (ye) => He(`${ye.date}`, f.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = f.dateFormat, t[10] = te) : te = t[10], o = [...new Set(a.filter(Is).map(te))], o.sort(Ls), t[6] = a, t[7] = f.dateFormat, t[8] = o;
|
|
1300
|
+
} else
|
|
1301
|
+
o = t[8];
|
|
1302
|
+
const h = o, [_t, S] = Zt(f.autoplay ? 0 : h.length - 1), [Bt, u] = Zt(void 0), se = pe(null), ae = pe(null);
|
|
1303
|
+
let me, he;
|
|
1304
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (me = () => {
|
|
1305
|
+
const te = new ResizeObserver((ye) => {
|
|
1306
|
+
T(ye[0].target.clientWidth || 620), X(ye[0].target.clientHeight || 480);
|
|
1212
1307
|
});
|
|
1213
|
-
return
|
|
1214
|
-
},
|
|
1308
|
+
return se.current && te.observe(se.current), () => te.disconnect();
|
|
1309
|
+
}, he = [], t[11] = me, t[12] = he) : (me = t[11], he = t[12]), ke(me, he);
|
|
1310
|
+
let ue, oe;
|
|
1311
|
+
t[13] !== V || t[14] !== f.speed || t[15] !== h ? (ue = () => {
|
|
1215
1312
|
const te = setInterval(() => {
|
|
1216
|
-
|
|
1217
|
-
}, (
|
|
1218
|
-
return
|
|
1219
|
-
}, [
|
|
1220
|
-
const
|
|
1221
|
-
let
|
|
1222
|
-
t[
|
|
1223
|
-
|
|
1224
|
-
|
|
1313
|
+
S((ye) => ye < h.length - 1 ? ye + 1 : 0);
|
|
1314
|
+
}, (f.speed || 2) * 1e3);
|
|
1315
|
+
return V || clearInterval(te), () => clearInterval(te);
|
|
1316
|
+
}, oe = [h, V, f.speed], t[13] = V, t[14] = f.speed, t[15] = h, t[16] = ue, t[17] = oe) : (ue = t[16], oe = t[17]), ke(ue, oe);
|
|
1317
|
+
const re = f.dateFormat || "yyyy";
|
|
1318
|
+
let ne;
|
|
1319
|
+
t[18] !== _t || t[19] !== re || t[20] !== f.showOnlyActiveDate || t[21] !== h ? (ne = Fe(h, _t, f.showOnlyActiveDate, re), t[18] = _t, t[19] = re, t[20] = f.showOnlyActiveDate, t[21] = h, t[22] = ne) : ne = t[22];
|
|
1320
|
+
const de = ne, Qt = C?.graphContainer, Pt = W?.graphContainer;
|
|
1321
|
+
let le;
|
|
1322
|
+
t[23] !== C?.description || t[24] !== C?.title || t[25] !== a || t[26] !== vt || t[27] !== Tt || t[28] !== dt || t[29] !== P || t[30] !== W?.description || t[31] !== W?.title || t[32] !== tt ? (le = P || Tt || dt || vt ? /* @__PURE__ */ i.jsx(qe, { styles: {
|
|
1323
|
+
title: W?.title,
|
|
1324
|
+
description: W?.description
|
|
1225
1325
|
}, classNames: {
|
|
1226
|
-
title:
|
|
1227
|
-
description:
|
|
1228
|
-
}, graphTitle:
|
|
1229
|
-
|
|
1326
|
+
title: C?.title,
|
|
1327
|
+
description: C?.description
|
|
1328
|
+
}, graphTitle: P, graphDescription: Tt, width: tt, graphDownload: dt ? ae : void 0, dataDownload: vt ? a.map(Ds).filter(zs).length > 0 ? a.map(Vs).filter(Cs) : a.filter(ks) : null }) : null, t[23] = C?.description, t[24] = C?.title, t[25] = a, t[26] = vt, t[27] = Tt, t[28] = dt, t[29] = P, t[30] = W?.description, t[31] = W?.title, t[32] = tt, t[33] = le) : le = t[33];
|
|
1329
|
+
let Ae;
|
|
1330
|
+
t[34] !== _t || t[35] !== de || t[36] !== V || t[37] !== f.enabled || t[38] !== h ? (Ae = f.enabled && h.length > 0 && de ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
|
|
1230
1331
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
1231
|
-
|
|
1232
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
1233
|
-
/* @__PURE__ */ i.jsx(
|
|
1234
|
-
|
|
1332
|
+
R(!V);
|
|
1333
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": V ? "Click to pause animation" : "Click to play animation", children: V ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsx(Ze, {}) }),
|
|
1334
|
+
/* @__PURE__ */ i.jsx(Pe, { min: h[0], max: h[h.length - 1], marks: de, step: null, defaultValue: h[h.length - 1], value: h[_t], onChangeComplete: (te) => {
|
|
1335
|
+
S(h.indexOf(te));
|
|
1235
1336
|
}, onChange: (te) => {
|
|
1236
|
-
|
|
1337
|
+
S(h.indexOf(te));
|
|
1237
1338
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
1238
|
-
] }) : null,
|
|
1239
|
-
|
|
1240
|
-
|
|
1339
|
+
] }) : null, t[34] = _t, t[35] = de, t[36] = V, t[37] = f.enabled, t[38] = h, t[39] = Ae) : Ae = t[39];
|
|
1340
|
+
let $e;
|
|
1341
|
+
t[40] !== Kt || t[41] !== $ || t[42] !== F || t[43] !== Ft || t[44] !== J || t[45] !== C || t[46] !== U || t[47] !== at || t[48] !== qt || t[49] !== j || t[50] !== a || t[51] !== n || t[52] !== O || t[53] !== b || t[54] !== I || t[55] !== _t || t[56] !== k || t[57] !== _ || t[58] !== H || t[59] !== Gt || t[60] !== Y || t[61] !== s || t[62] !== gt || t[63] !== l || t[64] !== Dt || t[65] !== $t || t[66] !== m || t[67] !== L || t[68] !== Lt || t[69] !== v || t[70] !== ct || t[71] !== Q || t[72] !== At || t[73] !== D || t[74] !== Bt || t[75] !== ot || t[76] !== ht || t[77] !== ut || t[78] !== Vt || t[79] !== Nt || t[80] !== x || t[81] !== W || t[82] !== jt || t[83] !== Rt || t[84] !== N || t[85] !== st || t[86] !== f.dateFormat || t[87] !== f.enabled || t[88] !== mt || t[89] !== M || t[90] !== zt || t[91] !== h || t[92] !== it || t[93] !== tt ? ($e = a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1342
|
+
ot && a.filter(Ms).length !== 0 ? /* @__PURE__ */ i.jsx(Je, { width: tt, colorLegendTitle: at, colors: qt || xe[st].categoricalColors.colors, colorDomain: U || ii(a, "color", !0), setSelectedColor: u, showNAColor: ut, className: C?.colorLegend }) : null,
|
|
1343
|
+
/* @__PURE__ */ i.jsx(_e, { ref: se, children: N && Rt ? /* @__PURE__ */ i.jsx(Kt, { data: x ? Te(ei(a, f.dateFormat || "yyyy").filter((te) => f.enabled ? te.date === we(new Date(h[_t]), f.dateFormat || "yyyy") : te).filter((te) => b ? !ie(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Lt === "horizontal" ? 1 : -1) * (1 / 0) : (Lt === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, ye) => Y ? ye < Y : !0) : ei(a, f.dateFormat || "yyyy").filter((te) => f.enabled ? te.date === we(new Date(h[_t]), f.dateFormat || "yyyy") : te).filter((te) => b ? !ie(te.size) : te).filter((te, ye) => Y ? ye < Y : !0), barColor: a.filter(Os).length === 0 ? qt ? [qt] : [xe.primaryColors["blue-600"]] : qt || xe[st].categoricalColors.colors, colorDomain: a.filter($s).length === 0 ? [] : U || ii(a, "color", !0), selectedColor: Bt, width: N, height: Rt, suffix: jt, prefix: ct, barPadding: Ft, showValues: Nt, showTicks: Vt, leftMargin: H, rightMargin: D, topMargin: M, bottomMargin: J, truncateBy: zt, showLabels: ht, tooltip: mt, onSeriesMouseOver: L, refValues: Q, maxValue: ie(s) ? Math.max(...a.filter(As).map(ws)) < 0 ? 0 : Math.max(...a.filter(vs).map(bs)) : s, minValue: ie(l) ? Math.min(...a.filter(ys).map(gs)) >= 0 ? 0 : Math.min(...a.filter(ps).map(fs)) : l, highlightedDataPoints: I, onSeriesMouseClick: m, labelOrder: k, rtl: _ === "he" || _ === "ar", maxBarThickness: Gt, minBarThickness: gt, resetSelectionOnDoubleClick: At, detailsOnClick: n, barAxisTitle: F, noOfTicks: $t, valueColor: it, classNames: C, styles: W, animate: $ === !0 ? {
|
|
1241
1344
|
duration: 0.5,
|
|
1242
1345
|
once: !0,
|
|
1243
1346
|
amount: 0.5
|
|
1244
|
-
} :
|
|
1347
|
+
} : $ || {
|
|
1245
1348
|
duration: 0,
|
|
1246
1349
|
once: !0,
|
|
1247
1350
|
amount: 0
|
|
1248
|
-
}, dimmedOpacity: O, precision:
|
|
1249
|
-
] });
|
|
1250
|
-
let
|
|
1251
|
-
t[
|
|
1252
|
-
footnote:
|
|
1253
|
-
source:
|
|
1351
|
+
}, dimmedOpacity: O, precision: v, customLayers: j, naLabel: Dt }) : null })
|
|
1352
|
+
] }), t[40] = Kt, t[41] = $, t[42] = F, t[43] = Ft, t[44] = J, t[45] = C, t[46] = U, t[47] = at, t[48] = qt, t[49] = j, t[50] = a, t[51] = n, t[52] = O, t[53] = b, t[54] = I, t[55] = _t, t[56] = k, t[57] = _, t[58] = H, t[59] = Gt, t[60] = Y, t[61] = s, t[62] = gt, t[63] = l, t[64] = Dt, t[65] = $t, t[66] = m, t[67] = L, t[68] = Lt, t[69] = v, t[70] = ct, t[71] = Q, t[72] = At, t[73] = D, t[74] = Bt, t[75] = ot, t[76] = ht, t[77] = ut, t[78] = Vt, t[79] = Nt, t[80] = x, t[81] = W, t[82] = jt, t[83] = Rt, t[84] = N, t[85] = st, t[86] = f.dateFormat, t[87] = f.enabled, t[88] = mt, t[89] = M, t[90] = zt, t[91] = h, t[92] = it, t[93] = tt, t[94] = $e) : $e = t[94];
|
|
1353
|
+
let Oe;
|
|
1354
|
+
t[95] !== C?.footnote || t[96] !== C?.source || t[97] !== Et || t[98] !== It || t[99] !== W?.footnote || t[100] !== W?.source || t[101] !== tt ? (Oe = It || Et ? /* @__PURE__ */ i.jsx(Ue, { sources: It, footNote: Et, width: tt, styles: {
|
|
1355
|
+
footnote: W?.footnote,
|
|
1356
|
+
source: W?.source
|
|
1254
1357
|
}, classNames: {
|
|
1255
|
-
footnote:
|
|
1256
|
-
source:
|
|
1257
|
-
} }) : null, t[
|
|
1258
|
-
let
|
|
1259
|
-
return t[
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
] }), t[
|
|
1358
|
+
footnote: C?.footnote,
|
|
1359
|
+
source: C?.source
|
|
1360
|
+
} }) : null, t[95] = C?.footnote, t[96] = C?.source, t[97] = Et, t[98] = It, t[99] = W?.footnote, t[100] = W?.source, t[101] = tt, t[102] = Oe) : Oe = t[102];
|
|
1361
|
+
let Se;
|
|
1362
|
+
return t[103] !== Ht || t[104] !== z || t[105] !== c || t[106] !== St || t[107] !== _ || t[108] !== wt || t[109] !== kt || t[110] !== K || t[111] !== Qt || t[112] !== Pt || t[113] !== le || t[114] !== Ae || t[115] !== $e || t[116] !== Oe || t[117] !== st || t[118] !== tt ? (Se = /* @__PURE__ */ i.jsxs(ti, { className: Qt, style: Pt, id: c, ref: ae, "aria-label": Ht, backgroundColor: z, theme: st, language: _, minHeight: wt, width: tt, height: St, relativeHeight: K, padding: kt, children: [
|
|
1363
|
+
le,
|
|
1364
|
+
Ae,
|
|
1365
|
+
$e,
|
|
1366
|
+
Oe
|
|
1367
|
+
] }), t[103] = Ht, t[104] = z, t[105] = c, t[106] = St, t[107] = _, t[108] = wt, t[109] = kt, t[110] = K, t[111] = Qt, t[112] = Pt, t[113] = le, t[114] = Ae, t[115] = $e, t[116] = Oe, t[117] = st, t[118] = tt, t[119] = Se) : Se = t[119], Se;
|
|
1265
1368
|
}
|
|
1266
|
-
function
|
|
1369
|
+
function fs(e) {
|
|
1267
1370
|
return e.size;
|
|
1268
1371
|
}
|
|
1269
|
-
function
|
|
1270
|
-
return !
|
|
1372
|
+
function ps(e) {
|
|
1373
|
+
return !ie(e.size);
|
|
1271
1374
|
}
|
|
1272
|
-
function
|
|
1375
|
+
function gs(e) {
|
|
1273
1376
|
return e.size;
|
|
1274
1377
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return !
|
|
1378
|
+
function ys(e) {
|
|
1379
|
+
return !ie(e.size);
|
|
1277
1380
|
}
|
|
1278
|
-
function
|
|
1381
|
+
function bs(e) {
|
|
1279
1382
|
return e.size;
|
|
1280
1383
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return !
|
|
1384
|
+
function vs(e) {
|
|
1385
|
+
return !ie(e.size);
|
|
1283
1386
|
}
|
|
1284
|
-
function
|
|
1387
|
+
function ws(e) {
|
|
1285
1388
|
return e.size;
|
|
1286
1389
|
}
|
|
1287
|
-
function
|
|
1288
|
-
return !
|
|
1390
|
+
function As(e) {
|
|
1391
|
+
return !ie(e.size);
|
|
1289
1392
|
}
|
|
1290
|
-
function
|
|
1393
|
+
function $s(e) {
|
|
1291
1394
|
return e.color;
|
|
1292
1395
|
}
|
|
1293
|
-
function
|
|
1396
|
+
function Os(e) {
|
|
1294
1397
|
return e.color;
|
|
1295
1398
|
}
|
|
1296
|
-
function
|
|
1399
|
+
function Ms(e) {
|
|
1297
1400
|
return e.color;
|
|
1298
1401
|
}
|
|
1299
|
-
function
|
|
1402
|
+
function ks(e) {
|
|
1300
1403
|
return e !== void 0;
|
|
1301
1404
|
}
|
|
1302
|
-
function
|
|
1405
|
+
function Cs(e) {
|
|
1303
1406
|
return e !== void 0;
|
|
1304
1407
|
}
|
|
1305
|
-
function
|
|
1408
|
+
function Vs(e) {
|
|
1306
1409
|
return e.data;
|
|
1307
1410
|
}
|
|
1308
|
-
function
|
|
1411
|
+
function zs(e) {
|
|
1309
1412
|
return e !== void 0;
|
|
1310
1413
|
}
|
|
1311
|
-
function
|
|
1414
|
+
function Ds(e) {
|
|
1312
1415
|
return e.data;
|
|
1313
1416
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1417
|
+
function Ls(e, t) {
|
|
1418
|
+
return e - t;
|
|
1316
1419
|
}
|
|
1317
|
-
function
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1420
|
+
function Is(e) {
|
|
1421
|
+
return e.date;
|
|
1422
|
+
}
|
|
1423
|
+
function js(e) {
|
|
1424
|
+
const t = ge.c(129), {
|
|
1425
|
+
data: a,
|
|
1426
|
+
barColors: P,
|
|
1427
|
+
barPadding: qt,
|
|
1428
|
+
showTicks: Ut,
|
|
1429
|
+
topMargin: It,
|
|
1430
|
+
bottomMargin: Ot,
|
|
1431
|
+
leftMargin: Tt,
|
|
1432
|
+
rightMargin: B,
|
|
1433
|
+
truncateBy: q,
|
|
1434
|
+
width: A,
|
|
1435
|
+
height: lt,
|
|
1436
|
+
tooltip: St,
|
|
1437
|
+
onSeriesMouseOver: tt,
|
|
1438
|
+
showLabels: Et,
|
|
1439
|
+
suffix: U,
|
|
1440
|
+
prefix: at,
|
|
1441
|
+
showValues: Mt,
|
|
1442
|
+
refValues: kt,
|
|
1443
|
+
maxValue: Xt,
|
|
1444
|
+
onSeriesMouseClick: M,
|
|
1445
|
+
selectedColor: J,
|
|
1446
|
+
rtl: H,
|
|
1447
|
+
labelOrder: D,
|
|
1448
|
+
maxBarThickness: nt,
|
|
1449
|
+
minBarThickness: K,
|
|
1450
|
+
resetSelectionOnDoubleClick: mt,
|
|
1451
|
+
detailsOnClick: L,
|
|
1452
|
+
barAxisTitle: Q,
|
|
1453
|
+
valueColor: et,
|
|
1454
|
+
noOfTicks: c,
|
|
1349
1455
|
styles: s,
|
|
1350
|
-
classNames:
|
|
1351
|
-
animate:
|
|
1352
|
-
colorDomain:
|
|
1353
|
-
precision:
|
|
1456
|
+
classNames: l,
|
|
1457
|
+
animate: m,
|
|
1458
|
+
colorDomain: d,
|
|
1459
|
+
precision: g,
|
|
1354
1460
|
customLayers: x,
|
|
1355
|
-
naLabel:
|
|
1356
|
-
} = e,
|
|
1357
|
-
let
|
|
1358
|
-
t[0] !==
|
|
1359
|
-
once:
|
|
1360
|
-
amount:
|
|
1361
|
-
}, t[0] =
|
|
1362
|
-
const
|
|
1363
|
-
let
|
|
1364
|
-
t[3] !==
|
|
1365
|
-
top:
|
|
1366
|
-
bottom:
|
|
1367
|
-
left:
|
|
1368
|
-
right:
|
|
1369
|
-
}, t[3] =
|
|
1370
|
-
const
|
|
1371
|
-
let
|
|
1372
|
-
if (t[8] !==
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1461
|
+
naLabel: k
|
|
1462
|
+
} = e, rt = It === void 0 ? 25 : It, Z = Ot === void 0 ? 10 : Ot, pt = Tt === void 0 ? 100 : Tt, Jt = B === void 0 ? 40 : B, Gt = pe(null);
|
|
1463
|
+
let Y;
|
|
1464
|
+
t[0] !== m.amount || t[1] !== m.once ? (Y = {
|
|
1465
|
+
once: m.once,
|
|
1466
|
+
amount: m.amount
|
|
1467
|
+
}, t[0] = m.amount, t[1] = m.once, t[2] = Y) : Y = t[2];
|
|
1468
|
+
const gt = Ie(Gt, Y), Ht = Q ? rt + 25 : rt;
|
|
1469
|
+
let r;
|
|
1470
|
+
t[3] !== Z || t[4] !== pt || t[5] !== Jt || t[6] !== Ht ? (r = {
|
|
1471
|
+
top: Ht,
|
|
1472
|
+
bottom: Z,
|
|
1473
|
+
left: pt,
|
|
1474
|
+
right: Jt
|
|
1475
|
+
}, t[3] = Z, t[4] = pt, t[5] = Jt, t[6] = Ht, t[7] = r) : r = t[7];
|
|
1476
|
+
const n = r, [F, y] = Zt(void 0), [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), Ct = A - n.left - n.right, E = lt - n.top - n.bottom;
|
|
1477
|
+
let w;
|
|
1478
|
+
if (t[8] !== a || t[9] !== D) {
|
|
1479
|
+
const v = /* @__PURE__ */ new Set(), ft = a.map((f, Dt) => {
|
|
1480
|
+
const Lt = D ? `${f.label}` : `${Dt}`;
|
|
1481
|
+
return v.add(Lt), {
|
|
1482
|
+
...f,
|
|
1483
|
+
id: Lt
|
|
1484
|
+
};
|
|
1485
|
+
}), j = D ? D.filter((f) => !v.has(f)) : [];
|
|
1486
|
+
let p;
|
|
1487
|
+
t[11] !== a[0] ? (p = (f) => ({
|
|
1488
|
+
id: f,
|
|
1489
|
+
label: f,
|
|
1490
|
+
size: Array(a[0].size.length).fill(null)
|
|
1491
|
+
}), t[11] = a[0], t[12] = p) : p = t[12], w = [...ft, ...j.map(p)], t[8] = a, t[9] = D, t[10] = w;
|
|
1492
|
+
} else
|
|
1493
|
+
w = t[10];
|
|
1494
|
+
const bt = w;
|
|
1495
|
+
let Wt;
|
|
1496
|
+
t[13] !== bt || t[14] !== D ? (Wt = D ?? bt.map(Xs), t[13] = bt, t[14] = D, t[15] = Wt) : Wt = t[15];
|
|
1497
|
+
const jt = Wt;
|
|
1498
|
+
let ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _, ut;
|
|
1499
|
+
if (t[16] !== m || t[17] !== Q || t[18] !== P || t[19] !== jt || t[20] !== qt || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.gridLines || t[23] !== l?.xAxis?.labels || t[24] !== l?.xAxis?.title || t[25] !== l?.yAxis?.axis || t[26] !== l?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== bt || t[30] !== L || t[31] !== E || t[32] !== Ct || t[33] !== lt || t[34] !== gt || t[35] !== n.bottom || t[36] !== n.left || t[37] !== n.top || t[38] !== nt || t[39] !== Xt || t[40] !== K || t[41] !== it || t[42] !== k || t[43] !== c || t[44] !== M || t[45] !== tt || t[46] !== g || t[47] !== at || t[48] !== kt || t[49] !== mt || t[50] !== H || t[51] !== J || t[52] !== Et || t[53] !== Ut || t[54] !== Mt || t[55] !== s?.graphObjectValues || t[56] !== s?.xAxis?.gridLines || t[57] !== s?.xAxis?.labels || t[58] !== s?.xAxis?.title || t[59] !== s?.yAxis?.axis || t[60] !== s?.yAxis?.labels || t[61] !== U || t[62] !== rt || t[63] !== q || t[64] !== et || t[65] !== A) {
|
|
1500
|
+
const v = je().domain([0, Xt]).range([0, Ct]).nice(), ft = ve().domain(jt).range([0, K ? Math.max(E, K * jt.length) : nt ? Math.min(E, nt * jt.length) : E]).paddingInner(qt), j = v.ticks(c);
|
|
1501
|
+
Ft = ee.svg, ht = Gt, ot = `${A}px`, dt = `${lt}px`, vt = `0 0 ${A} ${lt}`, _ = "ltr", zt = `translate(${n.left},${n.top})`, G = Ut ? /* @__PURE__ */ i.jsx(Xe, { values: j.filter(Ws), x: j.filter(Hs).map((X) => v(X)), y1: 0 - rt, y2: E + n.bottom, styles: {
|
|
1380
1502
|
gridLines: s?.xAxis?.gridLines,
|
|
1381
1503
|
labels: s?.xAxis?.labels
|
|
1382
1504
|
}, classNames: {
|
|
1383
|
-
gridLines:
|
|
1384
|
-
labels:
|
|
1385
|
-
}, suffix:
|
|
1386
|
-
const
|
|
1387
|
-
t[
|
|
1505
|
+
gridLines: l?.xAxis?.gridLines,
|
|
1506
|
+
labels: l?.xAxis?.labels
|
|
1507
|
+
}, suffix: U, prefix: at, labelType: "secondary", showGridLines: !0, precision: g }) : null;
|
|
1508
|
+
const p = Ct / 2, f = 0 - n.top + 15, Dt = s?.xAxis?.title, Lt = l?.xAxis?.title;
|
|
1509
|
+
t[80] !== Q || t[81] !== p || t[82] !== f || t[83] !== Dt || t[84] !== Lt ? (I = /* @__PURE__ */ i.jsx(De, { x: p, y: f, style: Dt, className: Lt, text: Q }), t[80] = Q, t[81] = p, t[82] = f, t[83] = Dt, t[84] = Lt, t[85] = I) : I = t[85], t[86] !== x ? (z = x.filter(Ps).map(Fs), t[86] = x, t[87] = z) : z = t[87], ct = Ne, ut = bt.map((X) => ie(ft(X.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1388
1510
|
initial: {
|
|
1389
1511
|
x: 0,
|
|
1390
|
-
y:
|
|
1512
|
+
y: ft(`${X.id}`)
|
|
1391
1513
|
},
|
|
1392
1514
|
whileInView: {
|
|
1393
1515
|
x: 0,
|
|
1394
|
-
y:
|
|
1516
|
+
y: ft(`${X.id}`),
|
|
1395
1517
|
transition: {
|
|
1396
|
-
duration:
|
|
1518
|
+
duration: m.duration
|
|
1397
1519
|
}
|
|
1398
1520
|
}
|
|
1399
|
-
}, initial: "initial", animate:
|
|
1521
|
+
}, initial: "initial", animate: gt ? "whileInView" : "initial", exit: {
|
|
1400
1522
|
opacity: 0,
|
|
1401
1523
|
transition: {
|
|
1402
|
-
duration:
|
|
1524
|
+
duration: m.duration
|
|
1403
1525
|
}
|
|
1404
1526
|
}, children: [
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
...
|
|
1408
|
-
sizeIndex:
|
|
1409
|
-
}),
|
|
1410
|
-
...
|
|
1411
|
-
sizeIndex:
|
|
1527
|
+
X.size.map((V, R) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? P[R] === J ? 1 : 0.3 : 1, onMouseEnter: (o) => {
|
|
1528
|
+
y({
|
|
1529
|
+
...X,
|
|
1530
|
+
sizeIndex: R
|
|
1531
|
+
}), xt(o.clientY), Yt(o.clientX), tt?.({
|
|
1532
|
+
...X,
|
|
1533
|
+
sizeIndex: R
|
|
1412
1534
|
});
|
|
1413
|
-
}, onMouseMove: (
|
|
1414
|
-
|
|
1415
|
-
...
|
|
1416
|
-
sizeIndex:
|
|
1417
|
-
}),
|
|
1535
|
+
}, onMouseMove: (o) => {
|
|
1536
|
+
y({
|
|
1537
|
+
...X,
|
|
1538
|
+
sizeIndex: R
|
|
1539
|
+
}), xt(o.clientY), Yt(o.clientX);
|
|
1418
1540
|
}, onMouseLeave: () => {
|
|
1419
|
-
|
|
1541
|
+
y(void 0), Yt(void 0), xt(void 0), tt?.(void 0);
|
|
1420
1542
|
}, onClick: () => {
|
|
1421
|
-
(
|
|
1422
|
-
...
|
|
1423
|
-
sizeIndex:
|
|
1424
|
-
}) &&
|
|
1425
|
-
...
|
|
1426
|
-
sizeIndex:
|
|
1427
|
-
}),
|
|
1428
|
-
...
|
|
1429
|
-
sizeIndex:
|
|
1543
|
+
(M || L) && (Ce(it, {
|
|
1544
|
+
...X,
|
|
1545
|
+
sizeIndex: R
|
|
1546
|
+
}) && mt ? (W(void 0), M?.(void 0)) : (W({
|
|
1547
|
+
...X,
|
|
1548
|
+
sizeIndex: R
|
|
1549
|
+
}), M && M({
|
|
1550
|
+
...X,
|
|
1551
|
+
sizeIndex: R
|
|
1430
1552
|
})));
|
|
1431
1553
|
}, children: [
|
|
1432
|
-
|
|
1433
|
-
fill:
|
|
1434
|
-
}, height:
|
|
1554
|
+
V ? /* @__PURE__ */ i.jsx(ee.rect, { y: 0, style: {
|
|
1555
|
+
fill: P[R]
|
|
1556
|
+
}, height: ft.bandwidth(), exit: {
|
|
1435
1557
|
width: 0,
|
|
1436
|
-
x:
|
|
1558
|
+
x: v(0),
|
|
1437
1559
|
transition: {
|
|
1438
|
-
duration:
|
|
1560
|
+
duration: m.duration
|
|
1439
1561
|
}
|
|
1440
1562
|
}, variants: {
|
|
1441
1563
|
initial: {
|
|
1442
1564
|
width: 0,
|
|
1443
|
-
x:
|
|
1444
|
-
fill:
|
|
1565
|
+
x: v(0),
|
|
1566
|
+
fill: P[R]
|
|
1445
1567
|
},
|
|
1446
1568
|
whileInView: {
|
|
1447
|
-
width:
|
|
1448
|
-
x:
|
|
1449
|
-
fill:
|
|
1569
|
+
width: v(V || 0),
|
|
1570
|
+
x: v(R === 0 ? 0 : ce(X.size.filter((o, h) => h < R && o))),
|
|
1571
|
+
fill: P[R],
|
|
1450
1572
|
transition: {
|
|
1451
|
-
duration:
|
|
1573
|
+
duration: m.duration
|
|
1452
1574
|
}
|
|
1453
1575
|
}
|
|
1454
|
-
}, initial: "initial", animate:
|
|
1455
|
-
|
|
1576
|
+
}, initial: "initial", animate: gt ? "whileInView" : "initial" }, R) : null,
|
|
1577
|
+
Mt ? /* @__PURE__ */ i.jsx(ee.text, { y: ft.bandwidth() / 2, style: {
|
|
1456
1578
|
textAnchor: "middle",
|
|
1457
1579
|
...s?.graphObjectValues || {}
|
|
1458
|
-
}, dy: "0.33em", className:
|
|
1580
|
+
}, dy: "0.33em", className: be("graph-value text-sm", l?.graphObjectValues), exit: {
|
|
1459
1581
|
opacity: 0,
|
|
1460
1582
|
transition: {
|
|
1461
|
-
duration:
|
|
1583
|
+
duration: m.duration
|
|
1462
1584
|
}
|
|
1463
1585
|
}, variants: {
|
|
1464
1586
|
initial: {
|
|
1465
|
-
x:
|
|
1587
|
+
x: v(0),
|
|
1466
1588
|
opacity: 0,
|
|
1467
|
-
fill:
|
|
1589
|
+
fill: Be(P[R])
|
|
1468
1590
|
},
|
|
1469
1591
|
whileInView: {
|
|
1470
|
-
x:
|
|
1471
|
-
opacity:
|
|
1472
|
-
fill:
|
|
1592
|
+
x: v(R === 0 ? 0 : ce(X.size.filter((o, h) => h < R && o))) + v(V || 0) / 2,
|
|
1593
|
+
opacity: V && v(V) / fe(V, k, g, at, U).length > 12 ? 1 : 0,
|
|
1594
|
+
fill: Be(P[R]),
|
|
1473
1595
|
transition: {
|
|
1474
|
-
duration:
|
|
1596
|
+
duration: m.duration
|
|
1475
1597
|
}
|
|
1476
1598
|
}
|
|
1477
|
-
}, initial: "initial", animate:
|
|
1478
|
-
] }, `${
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
...
|
|
1482
|
-
fill:
|
|
1599
|
+
}, initial: "initial", animate: gt ? "whileInView" : "initial", children: fe(V, k, g, at, U) }) : null
|
|
1600
|
+
] }, `${X.label}-${d[R] || R}`)),
|
|
1601
|
+
Et ? /* @__PURE__ */ i.jsx(We, { value: `${X.label}`.length < q ? `${X.label}` : `${`${X.label}`.substring(0, q)}...`, y: 0, x: 0 - n.left, width: 0 + n.left, height: ft.bandwidth(), style: s?.yAxis?.labels, className: l?.yAxis?.labels, animate: m, isInView: gt }) : null,
|
|
1602
|
+
Mt ? /* @__PURE__ */ i.jsx(ee.text, { className: be("graph-value graph-value-total text-sm", et ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", l?.graphObjectValues), style: {
|
|
1603
|
+
...et ? {
|
|
1604
|
+
fill: et
|
|
1483
1605
|
} : {},
|
|
1484
1606
|
textAnchor: "start",
|
|
1485
1607
|
...s?.graphObjectValues || {}
|
|
1486
|
-
}, y:
|
|
1608
|
+
}, y: ft.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
|
|
1487
1609
|
initial: {
|
|
1488
|
-
x:
|
|
1610
|
+
x: v(0),
|
|
1489
1611
|
opacity: 0,
|
|
1490
|
-
...
|
|
1491
|
-
fill:
|
|
1612
|
+
...et ? {
|
|
1613
|
+
fill: et
|
|
1492
1614
|
} : {}
|
|
1493
1615
|
},
|
|
1494
1616
|
whileInView: {
|
|
1495
|
-
x:
|
|
1617
|
+
x: v(ce(X.size.map(Bs))),
|
|
1496
1618
|
opacity: 1,
|
|
1497
|
-
...
|
|
1498
|
-
fill:
|
|
1619
|
+
...et ? {
|
|
1620
|
+
fill: et
|
|
1499
1621
|
} : {},
|
|
1500
1622
|
transition: {
|
|
1501
|
-
duration:
|
|
1623
|
+
duration: m.duration
|
|
1502
1624
|
}
|
|
1503
1625
|
}
|
|
1504
1626
|
}, exit: {
|
|
1505
1627
|
opacity: 0,
|
|
1506
1628
|
transition: {
|
|
1507
|
-
duration:
|
|
1629
|
+
duration: m.duration
|
|
1508
1630
|
}
|
|
1509
|
-
}, initial: "initial", animate:
|
|
1510
|
-
] },
|
|
1511
|
-
const
|
|
1512
|
-
let
|
|
1513
|
-
t[
|
|
1514
|
-
axis:
|
|
1515
|
-
}, t[
|
|
1516
|
-
const
|
|
1517
|
-
let
|
|
1518
|
-
t[
|
|
1519
|
-
axis:
|
|
1520
|
-
}, t[
|
|
1631
|
+
}, initial: "initial", animate: gt ? "whileInView" : "initial", children: fe(ce(X.size.filter(Ss)), k, g, at, U) }) : null
|
|
1632
|
+
] }, X.label));
|
|
1633
|
+
const Kt = l?.yAxis?.axis;
|
|
1634
|
+
let N;
|
|
1635
|
+
t[88] !== Kt ? (N = {
|
|
1636
|
+
axis: Kt
|
|
1637
|
+
}, t[88] = Kt, t[89] = N) : N = t[89];
|
|
1638
|
+
const T = s?.yAxis?.axis;
|
|
1639
|
+
let Rt;
|
|
1640
|
+
t[90] !== T ? (Rt = {
|
|
1641
|
+
axis: T
|
|
1642
|
+
}, t[90] = T, t[91] = Rt) : Rt = t[91], Nt = /* @__PURE__ */ i.jsx(ze, { x1: v(0), x2: v(0), y1: -2.5, y2: E + n.bottom, classNames: N, styles: Rt }), Vt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((X, V) => /* @__PURE__ */ i.jsx(Ye, { text: X.text, color: X.color, x: v(X.value), y1: 0 - n.top, y2: E + n.bottom, textSide: v(X.value) > Ct * 0.75 || H ? "left" : "right", classNames: X.classNames, styles: X.styles, animate: m, isInView: gt }, V)) }) : null, t[16] = m, t[17] = Q, t[18] = P, t[19] = jt, t[20] = qt, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.gridLines, t[23] = l?.xAxis?.labels, t[24] = l?.xAxis?.title, t[25] = l?.yAxis?.axis, t[26] = l?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = bt, t[30] = L, t[31] = E, t[32] = Ct, t[33] = lt, t[34] = gt, t[35] = n.bottom, t[36] = n.left, t[37] = n.top, t[38] = nt, t[39] = Xt, t[40] = K, t[41] = it, t[42] = k, t[43] = c, t[44] = M, t[45] = tt, t[46] = g, t[47] = at, t[48] = kt, t[49] = mt, t[50] = H, t[51] = J, t[52] = Et, t[53] = Ut, t[54] = Mt, t[55] = s?.graphObjectValues, t[56] = s?.xAxis?.gridLines, t[57] = s?.xAxis?.labels, t[58] = s?.xAxis?.title, t[59] = s?.yAxis?.axis, t[60] = s?.yAxis?.labels, t[61] = U, t[62] = rt, t[63] = q, t[64] = et, t[65] = A, t[66] = ct, t[67] = Ft, t[68] = Nt, t[69] = Vt, t[70] = zt, t[71] = G, t[72] = I, t[73] = z, t[74] = ht, t[75] = ot, t[76] = dt, t[77] = vt, t[78] = _, t[79] = ut;
|
|
1521
1643
|
} else
|
|
1522
|
-
|
|
1523
|
-
let vt;
|
|
1524
|
-
t[86] !== g || t[87] !== P || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
|
|
1525
|
-
P,
|
|
1526
|
-
ft,
|
|
1527
|
-
pt
|
|
1528
|
-
] }), t[86] = g, t[87] = P, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
|
|
1644
|
+
ct = t[66], Ft = t[67], Nt = t[68], Vt = t[69], zt = t[70], G = t[71], I = t[72], z = t[73], ht = t[74], ot = t[75], dt = t[76], vt = t[77], _ = t[78], ut = t[79];
|
|
1529
1645
|
let wt;
|
|
1530
|
-
t[
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
wt
|
|
1538
|
-
] }), t[93] = Z, t[94] = U, t[95] = V, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = ot) : ot = t[99];
|
|
1646
|
+
t[92] !== ct || t[93] !== Nt || t[94] !== Vt || t[95] !== ut ? (wt = /* @__PURE__ */ i.jsxs(ct, { children: [
|
|
1647
|
+
ut,
|
|
1648
|
+
Nt,
|
|
1649
|
+
Vt
|
|
1650
|
+
] }), t[92] = ct, t[93] = Nt, t[94] = Vt, t[95] = ut, t[96] = wt) : wt = t[96];
|
|
1651
|
+
let st;
|
|
1652
|
+
t[97] !== x ? (st = x.filter(Ts).map(Ns), t[97] = x, t[98] = st) : st = t[98];
|
|
1539
1653
|
let At;
|
|
1540
|
-
t[
|
|
1654
|
+
t[99] !== zt || t[100] !== G || t[101] !== I || t[102] !== z || t[103] !== wt || t[104] !== st ? (At = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
|
|
1655
|
+
G,
|
|
1656
|
+
I,
|
|
1657
|
+
z,
|
|
1658
|
+
wt,
|
|
1659
|
+
st
|
|
1660
|
+
] }), t[99] = zt, t[100] = G, t[101] = I, t[102] = z, t[103] = wt, t[104] = st, t[105] = At) : At = t[105];
|
|
1541
1661
|
let $t;
|
|
1542
|
-
t[
|
|
1543
|
-
let Ot;
|
|
1544
|
-
t[115] !== o?.modal || t[116] !== B || t[117] !== Y ? (Ot = B && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: B, data: Y, setData: N, className: o?.modal }) : null, t[115] = o?.modal, t[116] = B, t[117] = Y, t[118] = Ot) : Ot = t[118];
|
|
1662
|
+
t[106] !== Ft || t[107] !== ht || t[108] !== ot || t[109] !== dt || t[110] !== vt || t[111] !== _ || t[112] !== At ? ($t = /* @__PURE__ */ i.jsx(Ft, { ref: ht, width: ot, height: dt, viewBox: vt, direction: _, children: At }), t[106] = Ft, t[107] = ht, t[108] = ot, t[109] = dt, t[110] = vt, t[111] = _, t[112] = At, t[113] = $t) : $t = t[113];
|
|
1545
1663
|
let b;
|
|
1546
|
-
|
|
1547
|
-
|
|
1664
|
+
t[114] !== l?.tooltip || t[115] !== C || t[116] !== yt || t[117] !== F || t[118] !== s?.tooltip || t[119] !== St ? (b = F && St && C && yt ? /* @__PURE__ */ i.jsx(Ve, { data: F, body: St, xPos: C, yPos: yt, backgroundStyle: s?.tooltip, className: l?.tooltip }) : null, t[114] = l?.tooltip, t[115] = C, t[116] = yt, t[117] = F, t[118] = s?.tooltip, t[119] = St, t[120] = b) : b = t[120];
|
|
1665
|
+
let $;
|
|
1666
|
+
t[121] !== l?.modal || t[122] !== L || t[123] !== it ? ($ = L && it !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: L, data: it, setData: W, className: l?.modal }) : null, t[121] = l?.modal, t[122] = L, t[123] = it, t[124] = $) : $ = t[124];
|
|
1667
|
+
let O;
|
|
1668
|
+
return t[125] !== $t || t[126] !== b || t[127] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1548
1669
|
$t,
|
|
1549
|
-
|
|
1550
|
-
|
|
1670
|
+
b,
|
|
1671
|
+
$
|
|
1672
|
+
] }), t[125] = $t, t[126] = b, t[127] = $, t[128] = O) : O = t[128], O;
|
|
1551
1673
|
}
|
|
1552
|
-
function
|
|
1674
|
+
function Ns(e) {
|
|
1553
1675
|
return e.layer;
|
|
1554
1676
|
}
|
|
1555
|
-
function
|
|
1677
|
+
function Ts(e) {
|
|
1556
1678
|
return e.position === "after";
|
|
1557
1679
|
}
|
|
1558
|
-
function
|
|
1680
|
+
function Ss(e) {
|
|
1559
1681
|
return e;
|
|
1560
1682
|
}
|
|
1561
|
-
function
|
|
1683
|
+
function Bs(e) {
|
|
1562
1684
|
return e || 0;
|
|
1563
1685
|
}
|
|
1564
|
-
function
|
|
1686
|
+
function Fs(e) {
|
|
1565
1687
|
return e.layer;
|
|
1566
1688
|
}
|
|
1567
|
-
function
|
|
1689
|
+
function Ps(e) {
|
|
1568
1690
|
return e.position === "before";
|
|
1569
1691
|
}
|
|
1570
|
-
function
|
|
1692
|
+
function Hs(e) {
|
|
1571
1693
|
return e !== 0;
|
|
1572
1694
|
}
|
|
1573
|
-
function
|
|
1695
|
+
function Ws(e) {
|
|
1574
1696
|
return e !== 0;
|
|
1575
1697
|
}
|
|
1576
|
-
function
|
|
1698
|
+
function Xs(e) {
|
|
1577
1699
|
return `${e.id}`;
|
|
1578
1700
|
}
|
|
1579
|
-
function
|
|
1580
|
-
const t =
|
|
1581
|
-
data:
|
|
1582
|
-
leftMargin:
|
|
1583
|
-
rightMargin:
|
|
1584
|
-
topMargin:
|
|
1585
|
-
bottomMargin:
|
|
1586
|
-
width:
|
|
1587
|
-
height:
|
|
1588
|
-
barColors:
|
|
1589
|
-
barPadding:
|
|
1590
|
-
showLabels:
|
|
1591
|
-
showTicks:
|
|
1592
|
-
truncateBy:
|
|
1593
|
-
tooltip:
|
|
1594
|
-
onSeriesMouseOver:
|
|
1595
|
-
suffix:
|
|
1596
|
-
prefix:
|
|
1597
|
-
showValues:
|
|
1598
|
-
refValues:
|
|
1599
|
-
maxValue:
|
|
1600
|
-
onSeriesMouseClick:
|
|
1601
|
-
selectedColor:
|
|
1602
|
-
labelOrder:
|
|
1603
|
-
maxBarThickness:
|
|
1604
|
-
minBarThickness:
|
|
1605
|
-
resetSelectionOnDoubleClick:
|
|
1606
|
-
detailsOnClick:
|
|
1607
|
-
barAxisTitle:
|
|
1608
|
-
valueColor:
|
|
1609
|
-
noOfTicks:
|
|
1610
|
-
styles:
|
|
1701
|
+
function Ys(e) {
|
|
1702
|
+
const t = ge.c(136), {
|
|
1703
|
+
data: a,
|
|
1704
|
+
leftMargin: P,
|
|
1705
|
+
rightMargin: qt,
|
|
1706
|
+
topMargin: Ut,
|
|
1707
|
+
bottomMargin: It,
|
|
1708
|
+
width: Ot,
|
|
1709
|
+
height: Tt,
|
|
1710
|
+
barColors: B,
|
|
1711
|
+
barPadding: q,
|
|
1712
|
+
showLabels: A,
|
|
1713
|
+
showTicks: lt,
|
|
1714
|
+
truncateBy: St,
|
|
1715
|
+
tooltip: tt,
|
|
1716
|
+
onSeriesMouseOver: Et,
|
|
1717
|
+
suffix: U,
|
|
1718
|
+
prefix: at,
|
|
1719
|
+
showValues: Mt,
|
|
1720
|
+
refValues: kt,
|
|
1721
|
+
maxValue: Xt,
|
|
1722
|
+
onSeriesMouseClick: M,
|
|
1723
|
+
selectedColor: J,
|
|
1724
|
+
labelOrder: H,
|
|
1725
|
+
maxBarThickness: D,
|
|
1726
|
+
minBarThickness: nt,
|
|
1727
|
+
resetSelectionOnDoubleClick: K,
|
|
1728
|
+
detailsOnClick: mt,
|
|
1729
|
+
barAxisTitle: L,
|
|
1730
|
+
valueColor: Q,
|
|
1731
|
+
noOfTicks: et,
|
|
1732
|
+
styles: c,
|
|
1611
1733
|
classNames: s,
|
|
1612
|
-
animate:
|
|
1613
|
-
colorDomain:
|
|
1614
|
-
precision:
|
|
1615
|
-
customLayers:
|
|
1734
|
+
animate: l,
|
|
1735
|
+
colorDomain: m,
|
|
1736
|
+
precision: d,
|
|
1737
|
+
customLayers: g,
|
|
1616
1738
|
naLabel: x
|
|
1617
|
-
} = e,
|
|
1618
|
-
let
|
|
1619
|
-
t[0] !==
|
|
1620
|
-
once:
|
|
1621
|
-
amount:
|
|
1622
|
-
}, t[0] =
|
|
1623
|
-
const
|
|
1624
|
-
let
|
|
1625
|
-
t[3] !==
|
|
1626
|
-
top:
|
|
1627
|
-
bottom:
|
|
1628
|
-
left:
|
|
1629
|
-
right:
|
|
1630
|
-
}, t[3] =
|
|
1631
|
-
const
|
|
1632
|
-
let
|
|
1633
|
-
if (t[8] !==
|
|
1634
|
-
const
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1739
|
+
} = e, k = P === void 0 ? 20 : P, rt = qt === void 0 ? 20 : qt, Z = Ut === void 0 ? 20 : Ut, pt = It === void 0 ? 25 : It, Jt = pe(null);
|
|
1740
|
+
let Gt;
|
|
1741
|
+
t[0] !== l.amount || t[1] !== l.once ? (Gt = {
|
|
1742
|
+
once: l.once,
|
|
1743
|
+
amount: l.amount
|
|
1744
|
+
}, t[0] = l.amount, t[1] = l.once, t[2] = Gt) : Gt = t[2];
|
|
1745
|
+
const Y = Ie(Jt, Gt), gt = L ? k + 30 : k;
|
|
1746
|
+
let Ht;
|
|
1747
|
+
t[3] !== pt || t[4] !== rt || t[5] !== gt || t[6] !== Z ? (Ht = {
|
|
1748
|
+
top: Z,
|
|
1749
|
+
bottom: pt,
|
|
1750
|
+
left: gt,
|
|
1751
|
+
right: rt
|
|
1752
|
+
}, t[3] = pt, t[4] = rt, t[5] = gt, t[6] = Z, t[7] = Ht) : Ht = t[7];
|
|
1753
|
+
const r = Ht, [n, F] = Zt(void 0), [y, it] = Zt(void 0), [W, C] = Zt(void 0), [Yt, yt] = Zt(void 0), xt = Ot - r.left - r.right, Ct = Tt - r.top - r.bottom;
|
|
1754
|
+
let E;
|
|
1755
|
+
if (t[8] !== a || t[9] !== H) {
|
|
1756
|
+
const O = /* @__PURE__ */ new Set(), v = a.map((p, f) => {
|
|
1757
|
+
const Dt = H ? `${p.label}` : `${f}`;
|
|
1758
|
+
return O.add(Dt), {
|
|
1759
|
+
...p,
|
|
1760
|
+
id: Dt
|
|
1761
|
+
};
|
|
1762
|
+
}), ft = H ? H.filter((p) => !O.has(p)) : [];
|
|
1763
|
+
let j;
|
|
1764
|
+
t[11] !== a[0] ? (j = (p) => ({
|
|
1765
|
+
id: p,
|
|
1766
|
+
label: p,
|
|
1767
|
+
size: Array(a[0].size.length).fill(null)
|
|
1768
|
+
}), t[11] = a[0], t[12] = j) : j = t[12], E = [...v, ...ft.map(j)], t[8] = a, t[9] = H, t[10] = E;
|
|
1769
|
+
} else
|
|
1770
|
+
E = t[10];
|
|
1771
|
+
const w = E;
|
|
1772
|
+
let bt;
|
|
1773
|
+
t[13] !== w || t[14] !== H ? (bt = H ?? w.map(Zs), t[13] = w, t[14] = H, t[15] = bt) : bt = t[15];
|
|
1774
|
+
const Wt = bt;
|
|
1775
|
+
let jt, ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _;
|
|
1776
|
+
if (t[16] !== l || t[17] !== L || t[18] !== B || t[19] !== Wt || t[20] !== q || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== m || t[28] !== g || t[29] !== w || t[30] !== mt || t[31] !== Ct || t[32] !== xt || t[33] !== Tt || t[34] !== Y || t[35] !== k || t[36] !== r.bottom || t[37] !== r.left || t[38] !== r.right || t[39] !== r.top || t[40] !== D || t[41] !== Xt || t[42] !== nt || t[43] !== y || t[44] !== x || t[45] !== et || t[46] !== M || t[47] !== Et || t[48] !== d || t[49] !== at || t[50] !== kt || t[51] !== K || t[52] !== J || t[53] !== A || t[54] !== lt || t[55] !== Mt || t[56] !== c?.graphObjectValues || t[57] !== c?.xAxis?.axis || t[58] !== c?.xAxis?.labels || t[59] !== c?.yAxis?.gridLines || t[60] !== c?.yAxis?.labels || t[61] !== c?.yAxis?.title || t[62] !== U || t[63] !== St || t[64] !== Q || t[65] !== Ot) {
|
|
1777
|
+
const O = je().domain([0, Xt]).range([Ct, 0]).nice(), v = ve().domain(Wt).range([0, nt ? Math.max(xt, nt * Wt.length) : D ? Math.min(xt, D * Wt.length) : xt]).paddingInner(q), ft = O.ticks(et);
|
|
1778
|
+
ct = ee.svg, z = `${Ot}px`, ht = `${Tt}px`, ot = `0 0 ${Ot} ${Tt}`, dt = "ltr", vt = Jt, Nt = `translate(${r.left},${r.top})`;
|
|
1779
|
+
const j = O(0), p = O(0);
|
|
1780
|
+
let f;
|
|
1781
|
+
t[80] !== x || t[81] !== d || t[82] !== at || t[83] !== U ? (f = fe(0, x, d, at, U), t[80] = x, t[81] = d, t[82] = at, t[83] = U, t[84] = f) : f = t[84];
|
|
1782
|
+
const Dt = s?.xAxis?.axis, Lt = s?.yAxis?.labels;
|
|
1783
|
+
let Kt;
|
|
1784
|
+
t[85] !== Dt || t[86] !== Lt ? (Kt = {
|
|
1785
|
+
axis: Dt,
|
|
1786
|
+
label: Lt
|
|
1787
|
+
}, t[85] = Dt, t[86] = Lt, t[87] = Kt) : Kt = t[87];
|
|
1788
|
+
const N = c?.xAxis?.axis, T = c?.yAxis?.labels;
|
|
1789
|
+
let Rt;
|
|
1790
|
+
t[88] !== N || t[89] !== T ? (Rt = {
|
|
1791
|
+
axis: N,
|
|
1792
|
+
label: T
|
|
1793
|
+
}, t[88] = N, t[89] = T, t[90] = Rt) : Rt = t[90], Vt = /* @__PURE__ */ i.jsx(ze, { y1: j, y2: p, x1: 0 - k, x2: xt + r.right, label: f, labelPos: {
|
|
1794
|
+
x: 0 - k,
|
|
1795
|
+
y: O(0),
|
|
1659
1796
|
dx: 0,
|
|
1660
1797
|
dy: -5
|
|
1661
|
-
}, classNames:
|
|
1662
|
-
gridLines:
|
|
1663
|
-
labels:
|
|
1798
|
+
}, classNames: Kt, styles: Rt }), zt = lt ? /* @__PURE__ */ i.jsx(Ge, { values: ft.filter(Qs), y: ft.filter(Ks).map((h) => O(h)), x1: 0 - k, x2: xt + r.right, styles: {
|
|
1799
|
+
gridLines: c?.yAxis?.gridLines,
|
|
1800
|
+
labels: c?.yAxis?.labels
|
|
1664
1801
|
}, classNames: {
|
|
1665
1802
|
gridLines: s?.yAxis?.gridLines,
|
|
1666
1803
|
labels: s?.yAxis?.labels
|
|
1667
|
-
}, suffix:
|
|
1668
|
-
const
|
|
1669
|
-
t[
|
|
1804
|
+
}, suffix: U, prefix: at, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
|
|
1805
|
+
const X = 0 - k - 15, V = Ct / 2, R = c?.yAxis?.title, o = s?.yAxis?.title;
|
|
1806
|
+
t[91] !== L || t[92] !== X || t[93] !== V || t[94] !== R || t[95] !== o ? (G = /* @__PURE__ */ i.jsx(De, { x: X, y: V, style: R, className: o, text: L, rotate90: !0 }), t[91] = L, t[92] = X, t[93] = V, t[94] = R, t[95] = o, t[96] = G) : G = t[96], t[97] !== g ? (I = g.filter(Js).map(Us), t[97] = g, t[98] = I) : I = t[98], jt = Ne, _ = w.map((h) => ie(v(h.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1670
1807
|
initial: {
|
|
1671
|
-
x:
|
|
1808
|
+
x: v(`${h.id}`),
|
|
1672
1809
|
y: 0
|
|
1673
1810
|
},
|
|
1674
1811
|
whileInView: {
|
|
1675
|
-
x:
|
|
1812
|
+
x: v(`${h.id}`),
|
|
1676
1813
|
y: 0,
|
|
1677
1814
|
transition: {
|
|
1678
|
-
duration:
|
|
1815
|
+
duration: l.duration
|
|
1679
1816
|
}
|
|
1680
1817
|
}
|
|
1681
1818
|
}, transition: {
|
|
1682
|
-
duration:
|
|
1683
|
-
}, initial: "initial", animate:
|
|
1819
|
+
duration: l.duration
|
|
1820
|
+
}, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
|
|
1684
1821
|
opacity: 0,
|
|
1685
1822
|
transition: {
|
|
1686
|
-
duration:
|
|
1823
|
+
duration: l.duration
|
|
1687
1824
|
}
|
|
1688
1825
|
}, children: [
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
...
|
|
1692
|
-
sizeIndex:
|
|
1693
|
-
}),
|
|
1694
|
-
...
|
|
1695
|
-
sizeIndex:
|
|
1826
|
+
h.size.map((_t, S) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? B[S] === J ? 1 : 0.3 : 1, onMouseEnter: (Bt) => {
|
|
1827
|
+
F({
|
|
1828
|
+
...h,
|
|
1829
|
+
sizeIndex: S
|
|
1830
|
+
}), yt(Bt.clientY), C(Bt.clientX), Et?.({
|
|
1831
|
+
...h,
|
|
1832
|
+
sizeIndex: S
|
|
1696
1833
|
});
|
|
1697
|
-
}, onMouseMove: (
|
|
1698
|
-
|
|
1699
|
-
...
|
|
1700
|
-
sizeIndex:
|
|
1701
|
-
}),
|
|
1834
|
+
}, onMouseMove: (Bt) => {
|
|
1835
|
+
F({
|
|
1836
|
+
...h,
|
|
1837
|
+
sizeIndex: S
|
|
1838
|
+
}), yt(Bt.clientY), C(Bt.clientX);
|
|
1702
1839
|
}, onMouseLeave: () => {
|
|
1703
|
-
|
|
1840
|
+
F(void 0), C(void 0), yt(void 0), Et?.(void 0);
|
|
1704
1841
|
}, onClick: () => {
|
|
1705
|
-
(
|
|
1706
|
-
...
|
|
1707
|
-
sizeIndex:
|
|
1708
|
-
}) &&
|
|
1709
|
-
...
|
|
1710
|
-
sizeIndex:
|
|
1711
|
-
}),
|
|
1712
|
-
...
|
|
1713
|
-
sizeIndex:
|
|
1842
|
+
(M || mt) && (Ce(y, {
|
|
1843
|
+
...h,
|
|
1844
|
+
sizeIndex: S
|
|
1845
|
+
}) && K ? (it(void 0), M?.(void 0)) : (it({
|
|
1846
|
+
...h,
|
|
1847
|
+
sizeIndex: S
|
|
1848
|
+
}), M && M({
|
|
1849
|
+
...h,
|
|
1850
|
+
sizeIndex: S
|
|
1714
1851
|
})));
|
|
1715
1852
|
}, children: [
|
|
1716
|
-
/* @__PURE__ */ i.jsx(
|
|
1853
|
+
/* @__PURE__ */ i.jsx(ee.rect, { x: 0, width: v.bandwidth(), variants: {
|
|
1717
1854
|
initial: {
|
|
1718
1855
|
height: 0,
|
|
1719
|
-
fill:
|
|
1720
|
-
y:
|
|
1856
|
+
fill: B[S],
|
|
1857
|
+
y: O(0)
|
|
1721
1858
|
},
|
|
1722
1859
|
whileInView: {
|
|
1723
|
-
height: Math.abs(
|
|
1724
|
-
y:
|
|
1725
|
-
fill:
|
|
1860
|
+
height: Math.abs(O(ce(h.size.filter((Bt, u) => u <= S && Bt))) - O(ce(h.size.filter((Bt, u) => u < S && Bt)))),
|
|
1861
|
+
y: O(ce(h.size.filter((Bt, u) => u <= S && Bt))),
|
|
1862
|
+
fill: B[S],
|
|
1726
1863
|
transition: {
|
|
1727
|
-
duration:
|
|
1864
|
+
duration: l.duration
|
|
1728
1865
|
}
|
|
1729
1866
|
}
|
|
1730
|
-
}, initial: "initial", animate:
|
|
1867
|
+
}, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
|
|
1731
1868
|
height: 0,
|
|
1732
|
-
y:
|
|
1869
|
+
y: O(0),
|
|
1733
1870
|
transition: {
|
|
1734
|
-
duration:
|
|
1871
|
+
duration: l.duration
|
|
1735
1872
|
}
|
|
1736
1873
|
} }),
|
|
1737
|
-
|
|
1874
|
+
Mt ? /* @__PURE__ */ i.jsx(ee.text, { x: v.bandwidth() / 2, style: {
|
|
1738
1875
|
textAnchor: "middle",
|
|
1739
|
-
...
|
|
1740
|
-
}, className:
|
|
1876
|
+
...c?.graphObjectValues || {}
|
|
1877
|
+
}, className: be("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
|
|
1741
1878
|
initial: {
|
|
1742
|
-
y:
|
|
1879
|
+
y: O(0),
|
|
1743
1880
|
opacity: 0,
|
|
1744
|
-
fill:
|
|
1881
|
+
fill: Be(B[S])
|
|
1745
1882
|
},
|
|
1746
1883
|
whileInView: {
|
|
1747
|
-
y:
|
|
1748
|
-
opacity:
|
|
1749
|
-
fill:
|
|
1884
|
+
y: O(ce(h.size.filter((Bt, u) => u <= S && Bt))) + Math.abs(O(ce(h.size.filter((Bt, u) => u <= S && Bt))) - O(ce(h.size.filter((Bt, u) => u < S && Bt)))) / 2,
|
|
1885
|
+
opacity: _t && Math.abs(O(ce(h.size.filter((Bt, u) => u <= S && Bt))) - O(ce(h.size.filter((Bt, u) => u < S && Bt)))) > 20 ? 1 : 0,
|
|
1886
|
+
fill: Be(B[S]),
|
|
1750
1887
|
transition: {
|
|
1751
|
-
duration:
|
|
1888
|
+
duration: l.duration
|
|
1752
1889
|
}
|
|
1753
1890
|
}
|
|
1754
|
-
}, initial: "initial", animate:
|
|
1891
|
+
}, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
|
|
1755
1892
|
opacity: 0,
|
|
1756
1893
|
transition: {
|
|
1757
|
-
duration:
|
|
1894
|
+
duration: l.duration
|
|
1758
1895
|
}
|
|
1759
|
-
}, children:
|
|
1760
|
-
] }, `${
|
|
1761
|
-
|
|
1762
|
-
|
|
1896
|
+
}, children: fe(_t, x, d, at, U) }) : null
|
|
1897
|
+
] }, `${h.label}-${m[S] || S}`)),
|
|
1898
|
+
A ? /* @__PURE__ */ i.jsx(Re, { value: `${h.label}`.length < St ? `${h.label}` : `${`${h.label}`.substring(0, St)}...`, y: O(0) + 5, x: 0, width: v.bandwidth(), height: r.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: l, isInView: Y }) : null,
|
|
1899
|
+
Mt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
|
|
1763
1900
|
textAnchor: "middle",
|
|
1764
|
-
...
|
|
1765
|
-
}, x:
|
|
1901
|
+
...c?.graphObjectValues || {}
|
|
1902
|
+
}, x: v.bandwidth() / 2, dy: -10, className: be("graph-value graph-value-total", Q ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
|
|
1766
1903
|
initial: {
|
|
1767
|
-
y:
|
|
1904
|
+
y: O(0),
|
|
1768
1905
|
opacity: 0,
|
|
1769
|
-
...
|
|
1770
|
-
fill:
|
|
1906
|
+
...Q && {
|
|
1907
|
+
fill: Q
|
|
1771
1908
|
}
|
|
1772
1909
|
},
|
|
1773
1910
|
whileInView: {
|
|
1774
|
-
y:
|
|
1911
|
+
y: O(ce(h.size.map(qs))),
|
|
1775
1912
|
opacity: 1,
|
|
1776
|
-
...
|
|
1777
|
-
fill:
|
|
1913
|
+
...Q && {
|
|
1914
|
+
fill: Q
|
|
1778
1915
|
},
|
|
1779
1916
|
transition: {
|
|
1780
|
-
duration:
|
|
1917
|
+
duration: l.duration
|
|
1781
1918
|
}
|
|
1782
1919
|
}
|
|
1783
1920
|
}, exit: {
|
|
1784
1921
|
opacity: 0,
|
|
1785
1922
|
transition: {
|
|
1786
|
-
duration:
|
|
1923
|
+
duration: l.duration
|
|
1787
1924
|
}
|
|
1788
|
-
}, initial: "initial", animate:
|
|
1789
|
-
] },
|
|
1925
|
+
}, initial: "initial", animate: Y ? "whileInView" : "initial", children: fe(ce(h.size.filter(Rs)), x, d, at, U) }) : null
|
|
1926
|
+
] }, h.label)), Ft = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((h, _t) => /* @__PURE__ */ i.jsx(Ee, { text: h.text, color: h.color, y: O(h.value), x1: 0 - k, x2: xt + r.right, classNames: h.classNames, styles: h.styles, animate: l, isInView: Y }, _t)) }) : null, t[16] = l, t[17] = L, t[18] = B, t[19] = Wt, t[20] = q, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = m, t[28] = g, t[29] = w, t[30] = mt, t[31] = Ct, t[32] = xt, t[33] = Tt, t[34] = Y, t[35] = k, t[36] = r.bottom, t[37] = r.left, t[38] = r.right, t[39] = r.top, t[40] = D, t[41] = Xt, t[42] = nt, t[43] = y, t[44] = x, t[45] = et, t[46] = M, t[47] = Et, t[48] = d, t[49] = at, t[50] = kt, t[51] = K, t[52] = J, t[53] = A, t[54] = lt, t[55] = Mt, t[56] = c?.graphObjectValues, t[57] = c?.xAxis?.axis, t[58] = c?.xAxis?.labels, t[59] = c?.yAxis?.gridLines, t[60] = c?.yAxis?.labels, t[61] = c?.yAxis?.title, t[62] = U, t[63] = St, t[64] = Q, t[65] = Ot, t[66] = jt, t[67] = ct, t[68] = Ft, t[69] = Nt, t[70] = Vt, t[71] = zt, t[72] = G, t[73] = I, t[74] = z, t[75] = ht, t[76] = ot, t[77] = dt, t[78] = vt, t[79] = _;
|
|
1790
1927
|
} else
|
|
1791
|
-
|
|
1792
|
-
let
|
|
1793
|
-
t[
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
] }), t[
|
|
1797
|
-
let vt;
|
|
1798
|
-
t[97] !== h ? (vt = h.filter(Ps).map(Bs), t[97] = h, t[98] = vt) : vt = t[98];
|
|
1928
|
+
jt = t[66], ct = t[67], Ft = t[68], Nt = t[69], Vt = t[70], zt = t[71], G = t[72], I = t[73], z = t[74], ht = t[75], ot = t[76], dt = t[77], vt = t[78], _ = t[79];
|
|
1929
|
+
let ut;
|
|
1930
|
+
t[99] !== jt || t[100] !== Ft || t[101] !== _ ? (ut = /* @__PURE__ */ i.jsxs(jt, { children: [
|
|
1931
|
+
_,
|
|
1932
|
+
Ft
|
|
1933
|
+
] }), t[99] = jt, t[100] = Ft, t[101] = _, t[102] = ut) : ut = t[102];
|
|
1799
1934
|
let wt;
|
|
1800
|
-
t[
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1935
|
+
t[103] !== g ? (wt = g.filter(Gs).map(Es), t[103] = g, t[104] = wt) : wt = t[104];
|
|
1936
|
+
let st;
|
|
1937
|
+
t[105] !== Nt || t[106] !== Vt || t[107] !== zt || t[108] !== G || t[109] !== I || t[110] !== ut || t[111] !== wt ? (st = /* @__PURE__ */ i.jsxs("g", { transform: Nt, children: [
|
|
1938
|
+
Vt,
|
|
1939
|
+
zt,
|
|
1940
|
+
G,
|
|
1941
|
+
I,
|
|
1942
|
+
ut,
|
|
1943
|
+
wt
|
|
1944
|
+
] }), t[105] = Nt, t[106] = Vt, t[107] = zt, t[108] = G, t[109] = I, t[110] = ut, t[111] = wt, t[112] = st) : st = t[112];
|
|
1810
1945
|
let At;
|
|
1811
|
-
t[
|
|
1946
|
+
t[113] !== ct || t[114] !== z || t[115] !== ht || t[116] !== ot || t[117] !== dt || t[118] !== vt || t[119] !== st ? (At = /* @__PURE__ */ i.jsx(ct, { width: z, height: ht, viewBox: ot, direction: dt, ref: vt, children: st }), t[113] = ct, t[114] = z, t[115] = ht, t[116] = ot, t[117] = dt, t[118] = vt, t[119] = st, t[120] = At) : At = t[120];
|
|
1812
1947
|
let $t;
|
|
1813
|
-
t[
|
|
1814
|
-
let
|
|
1815
|
-
|
|
1816
|
-
|
|
1948
|
+
t[121] !== s?.tooltip || t[122] !== W || t[123] !== Yt || t[124] !== n || t[125] !== c?.tooltip || t[126] !== tt ? ($t = n && tt && W && Yt ? /* @__PURE__ */ i.jsx(Ve, { data: n, body: tt, xPos: W, yPos: Yt, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[121] = s?.tooltip, t[122] = W, t[123] = Yt, t[124] = n, t[125] = c?.tooltip, t[126] = tt, t[127] = $t) : $t = t[127];
|
|
1949
|
+
let b;
|
|
1950
|
+
t[128] !== s?.modal || t[129] !== mt || t[130] !== y ? (b = mt && y !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: mt, data: y, setData: it, className: s?.modal }) : null, t[128] = s?.modal, t[129] = mt, t[130] = y, t[131] = b) : b = t[131];
|
|
1951
|
+
let $;
|
|
1952
|
+
return t[132] !== At || t[133] !== $t || t[134] !== b ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1817
1953
|
At,
|
|
1818
|
-
$t
|
|
1819
|
-
|
|
1954
|
+
$t,
|
|
1955
|
+
b
|
|
1956
|
+
] }), t[132] = At, t[133] = $t, t[134] = b, t[135] = $) : $ = t[135], $;
|
|
1820
1957
|
}
|
|
1821
|
-
function
|
|
1958
|
+
function Es(e) {
|
|
1822
1959
|
return e.layer;
|
|
1823
1960
|
}
|
|
1824
|
-
function
|
|
1961
|
+
function Gs(e) {
|
|
1825
1962
|
return e.position === "after";
|
|
1826
1963
|
}
|
|
1827
|
-
function
|
|
1964
|
+
function Rs(e) {
|
|
1828
1965
|
return e;
|
|
1829
1966
|
}
|
|
1830
|
-
function
|
|
1967
|
+
function qs(e) {
|
|
1831
1968
|
return e || 0;
|
|
1832
1969
|
}
|
|
1833
|
-
function
|
|
1970
|
+
function Us(e) {
|
|
1834
1971
|
return e.layer;
|
|
1835
1972
|
}
|
|
1836
|
-
function
|
|
1973
|
+
function Js(e) {
|
|
1837
1974
|
return e.position === "before";
|
|
1838
1975
|
}
|
|
1839
|
-
function
|
|
1976
|
+
function Ks(e) {
|
|
1840
1977
|
return e !== 0;
|
|
1841
1978
|
}
|
|
1842
|
-
function
|
|
1979
|
+
function Qs(e) {
|
|
1843
1980
|
return e !== 0;
|
|
1844
1981
|
}
|
|
1845
|
-
function
|
|
1982
|
+
function Zs(e) {
|
|
1846
1983
|
return `${e.id}`;
|
|
1847
1984
|
}
|
|
1848
|
-
function
|
|
1849
|
-
const t =
|
|
1850
|
-
data:
|
|
1851
|
-
graphTitle:
|
|
1852
|
-
colors:
|
|
1853
|
-
sources:
|
|
1854
|
-
graphDescription:
|
|
1855
|
-
barPadding:
|
|
1856
|
-
showTicks:
|
|
1857
|
-
truncateBy:
|
|
1858
|
-
height:
|
|
1859
|
-
width:
|
|
1860
|
-
footNote:
|
|
1861
|
-
colorDomain:
|
|
1862
|
-
colorLegendTitle:
|
|
1863
|
-
padding:
|
|
1864
|
-
backgroundColor:
|
|
1865
|
-
topMargin:
|
|
1866
|
-
bottomMargin:
|
|
1867
|
-
leftMargin:
|
|
1868
|
-
rightMargin:
|
|
1869
|
-
tooltip:
|
|
1870
|
-
onSeriesMouseOver:
|
|
1871
|
-
suffix:
|
|
1872
|
-
prefix:
|
|
1873
|
-
showLabels:
|
|
1874
|
-
relativeHeight:
|
|
1875
|
-
showValues:
|
|
1876
|
-
refValues:
|
|
1877
|
-
graphID:
|
|
1878
|
-
maxValue:
|
|
1879
|
-
onSeriesMouseClick:
|
|
1985
|
+
function _s(e) {
|
|
1986
|
+
const t = ge.c(113), {
|
|
1987
|
+
data: a,
|
|
1988
|
+
graphTitle: P,
|
|
1989
|
+
colors: qt,
|
|
1990
|
+
sources: Ut,
|
|
1991
|
+
graphDescription: It,
|
|
1992
|
+
barPadding: Ot,
|
|
1993
|
+
showTicks: Tt,
|
|
1994
|
+
truncateBy: B,
|
|
1995
|
+
height: q,
|
|
1996
|
+
width: A,
|
|
1997
|
+
footNote: lt,
|
|
1998
|
+
colorDomain: St,
|
|
1999
|
+
colorLegendTitle: tt,
|
|
2000
|
+
padding: Et,
|
|
2001
|
+
backgroundColor: U,
|
|
2002
|
+
topMargin: at,
|
|
2003
|
+
bottomMargin: Mt,
|
|
2004
|
+
leftMargin: kt,
|
|
2005
|
+
rightMargin: Xt,
|
|
2006
|
+
tooltip: M,
|
|
2007
|
+
onSeriesMouseOver: J,
|
|
2008
|
+
suffix: H,
|
|
2009
|
+
prefix: D,
|
|
2010
|
+
showLabels: nt,
|
|
2011
|
+
relativeHeight: K,
|
|
2012
|
+
showValues: mt,
|
|
2013
|
+
refValues: L,
|
|
2014
|
+
graphID: Q,
|
|
2015
|
+
maxValue: et,
|
|
2016
|
+
onSeriesMouseClick: c,
|
|
1880
2017
|
graphDownload: s,
|
|
1881
|
-
dataDownload:
|
|
1882
|
-
language:
|
|
1883
|
-
labelOrder:
|
|
1884
|
-
minHeight:
|
|
2018
|
+
dataDownload: l,
|
|
2019
|
+
language: m,
|
|
2020
|
+
labelOrder: d,
|
|
2021
|
+
minHeight: g,
|
|
1885
2022
|
theme: x,
|
|
1886
|
-
maxBarThickness:
|
|
1887
|
-
sortParameter:
|
|
1888
|
-
maxNumberOfBars:
|
|
1889
|
-
minBarThickness:
|
|
1890
|
-
showColorScale:
|
|
1891
|
-
ariaLabel:
|
|
1892
|
-
resetSelectionOnDoubleClick:
|
|
1893
|
-
detailsOnClick:
|
|
1894
|
-
barAxisTitle:
|
|
1895
|
-
noOfTicks:
|
|
1896
|
-
valueColor:
|
|
1897
|
-
styles:
|
|
1898
|
-
classNames:
|
|
1899
|
-
filterNA:
|
|
1900
|
-
animate:
|
|
1901
|
-
precision:
|
|
1902
|
-
customLayers:
|
|
1903
|
-
timeline:
|
|
1904
|
-
naLabel:
|
|
1905
|
-
sortData:
|
|
1906
|
-
orientation:
|
|
1907
|
-
} = e,
|
|
2023
|
+
maxBarThickness: k,
|
|
2024
|
+
sortParameter: rt,
|
|
2025
|
+
maxNumberOfBars: Z,
|
|
2026
|
+
minBarThickness: pt,
|
|
2027
|
+
showColorScale: Jt,
|
|
2028
|
+
ariaLabel: Gt,
|
|
2029
|
+
resetSelectionOnDoubleClick: Y,
|
|
2030
|
+
detailsOnClick: gt,
|
|
2031
|
+
barAxisTitle: Ht,
|
|
2032
|
+
noOfTicks: r,
|
|
2033
|
+
valueColor: n,
|
|
2034
|
+
styles: F,
|
|
2035
|
+
classNames: y,
|
|
2036
|
+
filterNA: it,
|
|
2037
|
+
animate: W,
|
|
2038
|
+
precision: C,
|
|
2039
|
+
customLayers: Yt,
|
|
2040
|
+
timeline: yt,
|
|
2041
|
+
naLabel: xt,
|
|
2042
|
+
sortData: Ct,
|
|
2043
|
+
orientation: E
|
|
2044
|
+
} = e, w = qt === void 0 ? xe.light.categoricalColors.colors : qt, bt = Ot === void 0 ? 0.25 : Ot, Wt = Tt === void 0 ? !0 : Tt, jt = B === void 0 ? 999 : B, ct = U === void 0 ? !1 : U, Ft = H === void 0 ? "" : H, Nt = D === void 0 ? "" : D, Vt = nt === void 0 ? !0 : nt, zt = mt === void 0 ? !0 : mt, G = s === void 0 ? !1 : s, I = l === void 0 ? !1 : l, z = m === void 0 ? "en" : m, ht = g === void 0 ? 0 : g, ot = x === void 0 ? "light" : x, dt = Jt === void 0 ? !0 : Jt, vt = Y === void 0 ? !0 : Y, _ = r === void 0 ? 5 : r, ut = it === void 0 ? !0 : it, wt = W === void 0 ? !1 : W, st = C === void 0 ? 2 : C;
|
|
2045
|
+
let At;
|
|
2046
|
+
t[0] !== Yt ? (At = Yt === void 0 ? [] : Yt, t[0] = Yt, t[1] = At) : At = t[1];
|
|
2047
|
+
const $t = At;
|
|
1908
2048
|
let b;
|
|
1909
|
-
t[
|
|
1910
|
-
const lt = b, It = bt === void 0 ? {
|
|
2049
|
+
t[2] !== yt ? (b = yt === void 0 ? {
|
|
1911
2050
|
enabled: !1,
|
|
1912
2051
|
autoplay: !1,
|
|
1913
2052
|
showOnlyActiveDate: !0
|
|
1914
|
-
} :
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
2053
|
+
} : yt, t[2] = yt, t[3] = b) : b = t[3];
|
|
2054
|
+
const $ = b, O = xt === void 0 ? "NA" : xt, ft = (E === void 0 ? "vertical" : E) === "horizontal" ? js : Ys, [j, p] = Zt(0), [f, Dt] = Zt(0), [Lt, Kt] = Zt($.autoplay);
|
|
2055
|
+
let N;
|
|
2056
|
+
if (t[4] !== a || t[5] !== $.dateFormat) {
|
|
2057
|
+
let Pt;
|
|
2058
|
+
t[7] !== $.dateFormat ? (Pt = (le) => He(`${le.date}`, $.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = $.dateFormat, t[8] = Pt) : Pt = t[8], N = [...new Set(a.filter(xl).map(Pt))], N.sort(ml), t[4] = a, t[5] = $.dateFormat, t[6] = N;
|
|
2059
|
+
} else
|
|
2060
|
+
N = t[6];
|
|
2061
|
+
const T = N, [Rt, X] = Zt($.autoplay ? 0 : T.length - 1), [V, R] = Zt(void 0), o = pe(null), h = pe(null);
|
|
2062
|
+
let _t, S;
|
|
2063
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (_t = () => {
|
|
2064
|
+
const Pt = new ResizeObserver((le) => {
|
|
2065
|
+
p(le[0].target.clientWidth || 620), Dt(le[0].target.clientHeight || 480);
|
|
1919
2066
|
});
|
|
1920
|
-
return
|
|
1921
|
-
},
|
|
2067
|
+
return o.current && Pt.observe(o.current), () => Pt.disconnect();
|
|
2068
|
+
}, S = [], t[9] = _t, t[10] = S) : (_t = t[9], S = t[10]), ke(_t, S);
|
|
2069
|
+
let Bt, u;
|
|
2070
|
+
t[11] !== Lt || t[12] !== $.speed || t[13] !== T ? (Bt = () => {
|
|
1922
2071
|
const Pt = setInterval(() => {
|
|
1923
|
-
|
|
1924
|
-
}, (
|
|
1925
|
-
return
|
|
1926
|
-
}, [
|
|
1927
|
-
const
|
|
1928
|
-
let
|
|
1929
|
-
t[
|
|
1930
|
-
|
|
1931
|
-
|
|
2072
|
+
X((le) => le < T.length - 1 ? le + 1 : 0);
|
|
2073
|
+
}, ($.speed || 2) * 1e3);
|
|
2074
|
+
return Lt || clearInterval(Pt), () => clearInterval(Pt);
|
|
2075
|
+
}, u = [T, Lt, $.speed], t[11] = Lt, t[12] = $.speed, t[13] = T, t[14] = Bt, t[15] = u) : (Bt = t[14], u = t[15]), ke(Bt, u);
|
|
2076
|
+
const se = $.dateFormat || "yyyy";
|
|
2077
|
+
let ae;
|
|
2078
|
+
t[16] !== Rt || t[17] !== se || t[18] !== $.showOnlyActiveDate || t[19] !== T ? (ae = Fe(T, Rt, $.showOnlyActiveDate, se), t[16] = Rt, t[17] = se, t[18] = $.showOnlyActiveDate, t[19] = T, t[20] = ae) : ae = t[20];
|
|
2079
|
+
const me = ae, he = y?.graphContainer, ue = F?.graphContainer;
|
|
2080
|
+
let oe;
|
|
2081
|
+
t[21] !== y?.description || t[22] !== y?.title || t[23] !== a || t[24] !== I || t[25] !== It || t[26] !== G || t[27] !== P || t[28] !== F?.description || t[29] !== F?.title || t[30] !== A ? (oe = P || It || G || I ? /* @__PURE__ */ i.jsx(qe, { styles: {
|
|
2082
|
+
title: F?.title,
|
|
2083
|
+
description: F?.description
|
|
1932
2084
|
}, classNames: {
|
|
1933
|
-
title:
|
|
1934
|
-
description:
|
|
1935
|
-
}, graphTitle:
|
|
1936
|
-
|
|
2085
|
+
title: y?.title,
|
|
2086
|
+
description: y?.description
|
|
2087
|
+
}, graphTitle: P, graphDescription: It, width: A, graphDownload: G ? h : void 0, dataDownload: I ? a.map(ul).filter(dl).length > 0 ? a.map(cl).filter(rl) : a.filter(nl) : null }) : null, t[21] = y?.description, t[22] = y?.title, t[23] = a, t[24] = I, t[25] = It, t[26] = G, t[27] = P, t[28] = F?.description, t[29] = F?.title, t[30] = A, t[31] = oe) : oe = t[31];
|
|
2088
|
+
let re;
|
|
2089
|
+
t[32] !== Rt || t[33] !== me || t[34] !== Lt || t[35] !== $.enabled || t[36] !== T ? (re = $.enabled && T.length > 0 && me ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
1937
2090
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
1938
|
-
|
|
1939
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
1940
|
-
/* @__PURE__ */ i.jsx(
|
|
1941
|
-
|
|
2091
|
+
Kt(!Lt);
|
|
2092
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Lt ? "Click to pause animation" : "Click to play animation", children: Lt ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsx(Ze, {}) }),
|
|
2093
|
+
/* @__PURE__ */ i.jsx(Pe, { min: T[0], max: T[T.length - 1], marks: me, step: null, defaultValue: T[T.length - 1], value: T[Rt], onChangeComplete: (Pt) => {
|
|
2094
|
+
X(T.indexOf(Pt));
|
|
1942
2095
|
}, onChange: (Pt) => {
|
|
1943
|
-
|
|
2096
|
+
X(T.indexOf(Pt));
|
|
1944
2097
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
1945
|
-
] }) : null,
|
|
1946
|
-
|
|
1947
|
-
|
|
2098
|
+
] }) : null, t[32] = Rt, t[33] = me, t[34] = Lt, t[35] = $.enabled, t[36] = T, t[37] = re) : re = t[37];
|
|
2099
|
+
let ne;
|
|
2100
|
+
t[38] !== ft || t[39] !== wt || t[40] !== Ht || t[41] !== bt || t[42] !== Mt || t[43] !== y || t[44] !== St || t[45] !== tt || t[46] !== w || t[47] !== $t || t[48] !== a || t[49] !== gt || t[50] !== ut || t[51] !== Rt || t[52] !== d || t[53] !== z || t[54] !== kt || t[55] !== k || t[56] !== Z || t[57] !== et || t[58] !== pt || t[59] !== O || t[60] !== _ || t[61] !== c || t[62] !== J || t[63] !== st || t[64] !== Nt || t[65] !== L || t[66] !== vt || t[67] !== Xt || t[68] !== V || t[69] !== dt || t[70] !== Vt || t[71] !== Wt || t[72] !== zt || t[73] !== Ct || t[74] !== rt || t[75] !== F || t[76] !== Ft || t[77] !== f || t[78] !== j || t[79] !== $.dateFormat || t[80] !== $.enabled || t[81] !== M || t[82] !== at || t[83] !== jt || t[84] !== T || t[85] !== n || t[86] !== A ? (ne = /* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2101
|
+
dt ? /* @__PURE__ */ i.jsx(Je, { width: A, colorDomain: St, colors: w, colorLegendTitle: tt, setSelectedColor: R, showNAColor: !1, className: y?.colorLegend }) : null,
|
|
2102
|
+
/* @__PURE__ */ i.jsx(_e, { ref: o, children: j && f ? /* @__PURE__ */ i.jsx(ft, { data: rt !== void 0 ? rt === "total" ? Te(Me(a, $.dateFormat || "yyyy").filter((Pt) => $.enabled ? Pt.date === we(new Date(T[Rt]), $.dateFormat || "yyyy") : Pt).filter((Pt) => ut ? !Pt.size.every(ol) : Pt), ll, [Ct || "asc"]).filter((Pt, le) => Z ? le < Z : !0) : Te(Me(a, $.dateFormat || "yyyy").filter((Pt) => $.enabled ? Pt.date === we(new Date(T[Rt]), $.dateFormat || "yyyy") : Pt).filter((Pt) => ut ? !Pt.size.every(sl) : Pt), (Pt) => ie(Pt.size[rt]) ? -1 / 0 : Pt.size[rt], [Ct || "asc"]).filter((Pt, le) => Z ? le < Z : !0) : Me(a, $.dateFormat || "yyyy").filter((Pt) => $.enabled ? Pt.date === we(new Date(T[Rt]), $.dateFormat || "yyyy") : Pt).filter((Pt) => ut ? !Pt.size.every(il) : Pt).filter((Pt, le) => Z ? le < Z : !0), barColors: w, width: j, height: f, barPadding: bt, showTicks: Wt, leftMargin: kt, rightMargin: Xt, topMargin: at, bottomMargin: Mt, truncateBy: jt, showLabels: Vt, tooltip: M, onSeriesMouseOver: J, showValues: zt, suffix: Ft, prefix: Nt, refValues: L, maxValue: ie(et) ? Math.max(...a.map(tl)) : et, onSeriesMouseClick: c, selectedColor: V, rtl: z === "he" || z === "ar", labelOrder: d, maxBarThickness: k, minBarThickness: pt, resetSelectionOnDoubleClick: vt, detailsOnClick: gt, barAxisTitle: Ht, noOfTicks: _, valueColor: n, classNames: y, styles: F, animate: wt === !0 ? {
|
|
1948
2103
|
duration: 0.5,
|
|
1949
2104
|
once: !0,
|
|
1950
2105
|
amount: 0.5
|
|
1951
|
-
} :
|
|
2106
|
+
} : wt || {
|
|
1952
2107
|
duration: 0,
|
|
1953
2108
|
once: !0,
|
|
1954
2109
|
amount: 0
|
|
1955
|
-
}, colorDomain:
|
|
1956
|
-
] });
|
|
1957
|
-
let
|
|
1958
|
-
t[
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
footnote: T?.footnote,
|
|
1962
|
-
source: T?.source
|
|
2110
|
+
}, colorDomain: St, precision: st, customLayers: $t, naLabel: O }) : null })
|
|
2111
|
+
] }) }), t[38] = ft, t[39] = wt, t[40] = Ht, t[41] = bt, t[42] = Mt, t[43] = y, t[44] = St, t[45] = tt, t[46] = w, t[47] = $t, t[48] = a, t[49] = gt, t[50] = ut, t[51] = Rt, t[52] = d, t[53] = z, t[54] = kt, t[55] = k, t[56] = Z, t[57] = et, t[58] = pt, t[59] = O, t[60] = _, t[61] = c, t[62] = J, t[63] = st, t[64] = Nt, t[65] = L, t[66] = vt, t[67] = Xt, t[68] = V, t[69] = dt, t[70] = Vt, t[71] = Wt, t[72] = zt, t[73] = Ct, t[74] = rt, t[75] = F, t[76] = Ft, t[77] = f, t[78] = j, t[79] = $.dateFormat, t[80] = $.enabled, t[81] = M, t[82] = at, t[83] = jt, t[84] = T, t[85] = n, t[86] = A, t[87] = ne) : ne = t[87];
|
|
2112
|
+
let de;
|
|
2113
|
+
t[88] !== y?.footnote || t[89] !== y?.source || t[90] !== lt || t[91] !== Ut || t[92] !== F?.footnote || t[93] !== F?.source || t[94] !== A ? (de = Ut || lt ? /* @__PURE__ */ i.jsx(Ue, { styles: {
|
|
2114
|
+
footnote: F?.footnote,
|
|
2115
|
+
source: F?.source
|
|
1963
2116
|
}, classNames: {
|
|
1964
|
-
footnote:
|
|
1965
|
-
source:
|
|
1966
|
-
}, sources:
|
|
1967
|
-
let
|
|
1968
|
-
return t[
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
] }), t[
|
|
2117
|
+
footnote: y?.footnote,
|
|
2118
|
+
source: y?.source
|
|
2119
|
+
}, sources: Ut, footNote: lt, width: A }) : null, t[88] = y?.footnote, t[89] = y?.source, t[90] = lt, t[91] = Ut, t[92] = F?.footnote, t[93] = F?.source, t[94] = A, t[95] = de) : de = t[95];
|
|
2120
|
+
let Qt;
|
|
2121
|
+
return t[96] !== Gt || t[97] !== ct || t[98] !== Q || t[99] !== q || t[100] !== z || t[101] !== ht || t[102] !== Et || t[103] !== K || t[104] !== he || t[105] !== ue || t[106] !== oe || t[107] !== re || t[108] !== ne || t[109] !== de || t[110] !== ot || t[111] !== A ? (Qt = /* @__PURE__ */ i.jsxs(ti, { className: he, style: ue, id: Q, ref: h, "aria-label": Gt, backgroundColor: ct, theme: ot, language: z, minHeight: ht, width: A, height: q, relativeHeight: K, padding: Et, children: [
|
|
2122
|
+
oe,
|
|
2123
|
+
re,
|
|
2124
|
+
ne,
|
|
2125
|
+
de
|
|
2126
|
+
] }), t[96] = Gt, t[97] = ct, t[98] = Q, t[99] = q, t[100] = z, t[101] = ht, t[102] = Et, t[103] = K, t[104] = he, t[105] = ue, t[106] = oe, t[107] = re, t[108] = ne, t[109] = de, t[110] = ot, t[111] = A, t[112] = Qt) : Qt = t[112], Qt;
|
|
1974
2127
|
}
|
|
1975
|
-
function
|
|
1976
|
-
return
|
|
2128
|
+
function tl(e) {
|
|
2129
|
+
return ce(e.size.filter(el)) || 0;
|
|
1977
2130
|
}
|
|
1978
|
-
function
|
|
1979
|
-
return !
|
|
2131
|
+
function el(e) {
|
|
2132
|
+
return !ie(e);
|
|
1980
2133
|
}
|
|
1981
|
-
function
|
|
2134
|
+
function il(e) {
|
|
1982
2135
|
return e == null;
|
|
1983
2136
|
}
|
|
1984
|
-
function
|
|
2137
|
+
function sl(e) {
|
|
1985
2138
|
return e == null;
|
|
1986
2139
|
}
|
|
1987
|
-
function
|
|
1988
|
-
return
|
|
2140
|
+
function ll(e) {
|
|
2141
|
+
return ce(e.size.filter(al));
|
|
1989
2142
|
}
|
|
1990
|
-
function
|
|
1991
|
-
return !
|
|
2143
|
+
function al(e) {
|
|
2144
|
+
return !ie(e);
|
|
1992
2145
|
}
|
|
1993
|
-
function
|
|
2146
|
+
function ol(e) {
|
|
1994
2147
|
return e == null;
|
|
1995
2148
|
}
|
|
1996
|
-
function
|
|
2149
|
+
function nl(e) {
|
|
1997
2150
|
return e !== void 0;
|
|
1998
2151
|
}
|
|
1999
|
-
function
|
|
2152
|
+
function rl(e) {
|
|
2000
2153
|
return e !== void 0;
|
|
2001
2154
|
}
|
|
2002
|
-
function
|
|
2155
|
+
function cl(e) {
|
|
2003
2156
|
return e.data;
|
|
2004
2157
|
}
|
|
2005
|
-
function
|
|
2158
|
+
function dl(e) {
|
|
2006
2159
|
return e !== void 0;
|
|
2007
2160
|
}
|
|
2008
|
-
function
|
|
2161
|
+
function ul(e) {
|
|
2009
2162
|
return e.data;
|
|
2010
2163
|
}
|
|
2011
|
-
function
|
|
2012
|
-
return
|
|
2013
|
-
}
|
|
2014
|
-
function
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2164
|
+
function ml(e, t) {
|
|
2165
|
+
return e - t;
|
|
2166
|
+
}
|
|
2167
|
+
function xl(e) {
|
|
2168
|
+
return e.date;
|
|
2169
|
+
}
|
|
2170
|
+
function ql(e) {
|
|
2171
|
+
const t = ge.c(61), {
|
|
2172
|
+
data: a,
|
|
2173
|
+
graphTitle: P,
|
|
2174
|
+
colors: qt,
|
|
2175
|
+
barPadding: Ut,
|
|
2176
|
+
showTicks: It,
|
|
2177
|
+
leftMargin: Ot,
|
|
2178
|
+
rightMargin: Tt,
|
|
2179
|
+
topMargin: B,
|
|
2180
|
+
bottomMargin: q,
|
|
2181
|
+
truncateBy: A,
|
|
2182
|
+
showLabels: lt,
|
|
2183
|
+
showValues: St,
|
|
2184
|
+
backgroundColor: tt,
|
|
2185
|
+
suffix: Et,
|
|
2186
|
+
prefix: U,
|
|
2187
|
+
sources: at,
|
|
2188
|
+
graphDescription: Mt,
|
|
2189
|
+
height: kt,
|
|
2190
|
+
width: Xt,
|
|
2191
|
+
footNote: M,
|
|
2192
|
+
colorDomain: J,
|
|
2193
|
+
colorLegendTitle: H,
|
|
2194
|
+
padding: D,
|
|
2195
|
+
relativeHeight: nt,
|
|
2196
|
+
tooltip: K,
|
|
2197
|
+
onSeriesMouseOver: mt,
|
|
2198
|
+
refValues: L,
|
|
2199
|
+
showColorScale: Q,
|
|
2200
|
+
graphID: et,
|
|
2201
|
+
maxValue: c,
|
|
2046
2202
|
minValue: s,
|
|
2047
|
-
highlightedDataPoints:
|
|
2048
|
-
onSeriesMouseClick:
|
|
2049
|
-
graphDownload:
|
|
2050
|
-
dataDownload:
|
|
2203
|
+
highlightedDataPoints: l,
|
|
2204
|
+
onSeriesMouseClick: m,
|
|
2205
|
+
graphDownload: d,
|
|
2206
|
+
dataDownload: g,
|
|
2051
2207
|
language: x,
|
|
2052
|
-
theme:
|
|
2053
|
-
sortData:
|
|
2054
|
-
labelOrder:
|
|
2055
|
-
showNAColor:
|
|
2056
|
-
minHeight:
|
|
2057
|
-
maxBarThickness:
|
|
2058
|
-
maxNumberOfBars:
|
|
2059
|
-
minBarThickness:
|
|
2060
|
-
ariaLabel:
|
|
2061
|
-
resetSelectionOnDoubleClick:
|
|
2062
|
-
detailsOnClick:
|
|
2063
|
-
barAxisTitle:
|
|
2064
|
-
noOfTicks:
|
|
2065
|
-
valueColor:
|
|
2066
|
-
orientation:
|
|
2067
|
-
styles:
|
|
2068
|
-
classNames:
|
|
2069
|
-
filterNA:
|
|
2070
|
-
animate:
|
|
2071
|
-
dimmedOpacity:
|
|
2072
|
-
precision:
|
|
2073
|
-
customLayers:
|
|
2074
|
-
timeline:
|
|
2075
|
-
naLabel:
|
|
2076
|
-
} = e,
|
|
2077
|
-
let
|
|
2078
|
-
return t[0] !==
|
|
2079
|
-
}
|
|
2080
|
-
function
|
|
2081
|
-
const t =
|
|
2082
|
-
data:
|
|
2083
|
-
graphTitle:
|
|
2084
|
-
colors:
|
|
2085
|
-
sources:
|
|
2086
|
-
graphDescription:
|
|
2087
|
-
barPadding:
|
|
2088
|
-
showTicks:
|
|
2089
|
-
truncateBy:
|
|
2090
|
-
height:
|
|
2091
|
-
width:
|
|
2092
|
-
footNote:
|
|
2093
|
-
colorDomain:
|
|
2094
|
-
colorLegendTitle:
|
|
2095
|
-
suffix:
|
|
2096
|
-
prefix:
|
|
2097
|
-
showValues:
|
|
2098
|
-
padding:
|
|
2099
|
-
backgroundColor:
|
|
2100
|
-
leftMargin:
|
|
2101
|
-
rightMargin:
|
|
2102
|
-
topMargin:
|
|
2103
|
-
bottomMargin:
|
|
2104
|
-
showLabels:
|
|
2105
|
-
relativeHeight:
|
|
2106
|
-
tooltip:
|
|
2107
|
-
onSeriesMouseOver:
|
|
2108
|
-
refValues:
|
|
2109
|
-
graphID:
|
|
2110
|
-
maxValue:
|
|
2111
|
-
minValue:
|
|
2208
|
+
theme: k,
|
|
2209
|
+
sortData: rt,
|
|
2210
|
+
labelOrder: Z,
|
|
2211
|
+
showNAColor: pt,
|
|
2212
|
+
minHeight: Jt,
|
|
2213
|
+
maxBarThickness: Gt,
|
|
2214
|
+
maxNumberOfBars: Y,
|
|
2215
|
+
minBarThickness: gt,
|
|
2216
|
+
ariaLabel: Ht,
|
|
2217
|
+
resetSelectionOnDoubleClick: r,
|
|
2218
|
+
detailsOnClick: n,
|
|
2219
|
+
barAxisTitle: F,
|
|
2220
|
+
noOfTicks: y,
|
|
2221
|
+
valueColor: it,
|
|
2222
|
+
orientation: W,
|
|
2223
|
+
styles: C,
|
|
2224
|
+
classNames: Yt,
|
|
2225
|
+
filterNA: yt,
|
|
2226
|
+
animate: xt,
|
|
2227
|
+
dimmedOpacity: Ct,
|
|
2228
|
+
precision: E,
|
|
2229
|
+
customLayers: w,
|
|
2230
|
+
timeline: bt,
|
|
2231
|
+
naLabel: Wt
|
|
2232
|
+
} = e, jt = W === void 0 ? "vertical" : W;
|
|
2233
|
+
let ct;
|
|
2234
|
+
return t[0] !== xt || t[1] !== Ht || t[2] !== tt || t[3] !== F || t[4] !== Ut || t[5] !== q || t[6] !== Yt || t[7] !== J || t[8] !== H || t[9] !== qt || t[10] !== w || t[11] !== a || t[12] !== g || t[13] !== n || t[14] !== Ct || t[15] !== yt || t[16] !== M || t[17] !== Mt || t[18] !== d || t[19] !== et || t[20] !== P || t[21] !== kt || t[22] !== l || t[23] !== Z || t[24] !== x || t[25] !== Ot || t[26] !== Gt || t[27] !== Y || t[28] !== c || t[29] !== gt || t[30] !== Jt || t[31] !== s || t[32] !== Wt || t[33] !== y || t[34] !== m || t[35] !== mt || t[36] !== jt || t[37] !== D || t[38] !== E || t[39] !== U || t[40] !== L || t[41] !== nt || t[42] !== r || t[43] !== Tt || t[44] !== Q || t[45] !== lt || t[46] !== pt || t[47] !== It || t[48] !== St || t[49] !== rt || t[50] !== at || t[51] !== C || t[52] !== Et || t[53] !== k || t[54] !== bt || t[55] !== K || t[56] !== B || t[57] !== A || t[58] !== it || t[59] !== Xt ? (ct = /* @__PURE__ */ i.jsx(hs, { data: a, graphTitle: P, colors: qt, barPadding: Ut, showTicks: It, leftMargin: Ot, rightMargin: Tt, topMargin: B, bottomMargin: q, truncateBy: A, showLabels: lt, showValues: St, backgroundColor: tt, suffix: Et, prefix: U, sources: at, graphDescription: Mt, height: kt, width: Xt, footNote: M, colorDomain: J, colorLegendTitle: H, padding: D, relativeHeight: nt, tooltip: K, onSeriesMouseOver: mt, refValues: L, showColorScale: Q, graphID: et, maxValue: c, minValue: s, highlightedDataPoints: l, onSeriesMouseClick: m, graphDownload: d, dataDownload: g, language: x, theme: k, sortData: rt, labelOrder: Z, showNAColor: pt, minHeight: Jt, maxBarThickness: Gt, maxNumberOfBars: Y, minBarThickness: gt, ariaLabel: Ht, resetSelectionOnDoubleClick: r, styles: C, detailsOnClick: n, barAxisTitle: F, noOfTicks: y, valueColor: it, classNames: Yt, filterNA: yt, animate: xt, dimmedOpacity: Ct, precision: E, customLayers: w, timeline: bt, naLabel: Wt, orientation: jt }), t[0] = xt, t[1] = Ht, t[2] = tt, t[3] = F, t[4] = Ut, t[5] = q, t[6] = Yt, t[7] = J, t[8] = H, t[9] = qt, t[10] = w, t[11] = a, t[12] = g, t[13] = n, t[14] = Ct, t[15] = yt, t[16] = M, t[17] = Mt, t[18] = d, t[19] = et, t[20] = P, t[21] = kt, t[22] = l, t[23] = Z, t[24] = x, t[25] = Ot, t[26] = Gt, t[27] = Y, t[28] = c, t[29] = gt, t[30] = Jt, t[31] = s, t[32] = Wt, t[33] = y, t[34] = m, t[35] = mt, t[36] = jt, t[37] = D, t[38] = E, t[39] = U, t[40] = L, t[41] = nt, t[42] = r, t[43] = Tt, t[44] = Q, t[45] = lt, t[46] = pt, t[47] = It, t[48] = St, t[49] = rt, t[50] = at, t[51] = C, t[52] = Et, t[53] = k, t[54] = bt, t[55] = K, t[56] = B, t[57] = A, t[58] = it, t[59] = Xt, t[60] = ct) : ct = t[60], ct;
|
|
2235
|
+
}
|
|
2236
|
+
function Ul(e) {
|
|
2237
|
+
const t = ge.c(57), {
|
|
2238
|
+
data: a,
|
|
2239
|
+
graphTitle: P,
|
|
2240
|
+
colors: qt,
|
|
2241
|
+
sources: Ut,
|
|
2242
|
+
graphDescription: It,
|
|
2243
|
+
barPadding: Ot,
|
|
2244
|
+
showTicks: Tt,
|
|
2245
|
+
truncateBy: B,
|
|
2246
|
+
height: q,
|
|
2247
|
+
width: A,
|
|
2248
|
+
footNote: lt,
|
|
2249
|
+
colorDomain: St,
|
|
2250
|
+
colorLegendTitle: tt,
|
|
2251
|
+
suffix: Et,
|
|
2252
|
+
prefix: U,
|
|
2253
|
+
showValues: at,
|
|
2254
|
+
padding: Mt,
|
|
2255
|
+
backgroundColor: kt,
|
|
2256
|
+
leftMargin: Xt,
|
|
2257
|
+
rightMargin: M,
|
|
2258
|
+
topMargin: J,
|
|
2259
|
+
bottomMargin: H,
|
|
2260
|
+
showLabels: D,
|
|
2261
|
+
relativeHeight: nt,
|
|
2262
|
+
tooltip: K,
|
|
2263
|
+
onSeriesMouseOver: mt,
|
|
2264
|
+
refValues: L,
|
|
2265
|
+
graphID: Q,
|
|
2266
|
+
maxValue: et,
|
|
2267
|
+
minValue: c,
|
|
2112
2268
|
onSeriesMouseClick: s,
|
|
2113
|
-
graphDownload:
|
|
2114
|
-
dataDownload:
|
|
2115
|
-
language:
|
|
2116
|
-
labelOrder:
|
|
2269
|
+
graphDownload: l,
|
|
2270
|
+
dataDownload: m,
|
|
2271
|
+
language: d,
|
|
2272
|
+
labelOrder: g,
|
|
2117
2273
|
minHeight: x,
|
|
2118
|
-
theme:
|
|
2119
|
-
sortParameter:
|
|
2120
|
-
sortData:
|
|
2121
|
-
maxBarThickness:
|
|
2122
|
-
ariaLabel:
|
|
2123
|
-
resetSelectionOnDoubleClick:
|
|
2124
|
-
detailsOnClick:
|
|
2125
|
-
barAxisTitle:
|
|
2126
|
-
noOfTicks:
|
|
2127
|
-
valueColor:
|
|
2128
|
-
orientation:
|
|
2129
|
-
styles:
|
|
2130
|
-
classNames:
|
|
2131
|
-
filterNA:
|
|
2132
|
-
animate:
|
|
2133
|
-
precision:
|
|
2134
|
-
customLayers:
|
|
2135
|
-
showColorScale:
|
|
2136
|
-
timeline:
|
|
2137
|
-
naLabel:
|
|
2138
|
-
} = e,
|
|
2139
|
-
let
|
|
2140
|
-
return t[0] !==
|
|
2141
|
-
}
|
|
2142
|
-
function
|
|
2143
|
-
const t =
|
|
2144
|
-
data:
|
|
2145
|
-
graphTitle:
|
|
2146
|
-
colors:
|
|
2147
|
-
sources:
|
|
2148
|
-
graphDescription:
|
|
2149
|
-
barPadding:
|
|
2150
|
-
showTicks:
|
|
2151
|
-
leftMargin:
|
|
2152
|
-
rightMargin:
|
|
2153
|
-
topMargin:
|
|
2154
|
-
bottomMargin:
|
|
2155
|
-
truncateBy:
|
|
2156
|
-
showLabels:
|
|
2157
|
-
showValues:
|
|
2158
|
-
backgroundColor:
|
|
2159
|
-
suffix:
|
|
2160
|
-
prefix:
|
|
2161
|
-
height:
|
|
2162
|
-
width:
|
|
2163
|
-
footNote:
|
|
2164
|
-
colorDomain:
|
|
2165
|
-
colorLegendTitle:
|
|
2166
|
-
padding:
|
|
2167
|
-
tooltip:
|
|
2168
|
-
onSeriesMouseOver:
|
|
2169
|
-
relativeHeight:
|
|
2170
|
-
refValues:
|
|
2171
|
-
graphID:
|
|
2172
|
-
maxValue:
|
|
2173
|
-
onSeriesMouseClick:
|
|
2274
|
+
theme: k,
|
|
2275
|
+
sortParameter: rt,
|
|
2276
|
+
sortData: Z,
|
|
2277
|
+
maxBarThickness: pt,
|
|
2278
|
+
ariaLabel: Jt,
|
|
2279
|
+
resetSelectionOnDoubleClick: Gt,
|
|
2280
|
+
detailsOnClick: Y,
|
|
2281
|
+
barAxisTitle: gt,
|
|
2282
|
+
noOfTicks: Ht,
|
|
2283
|
+
valueColor: r,
|
|
2284
|
+
orientation: n,
|
|
2285
|
+
styles: F,
|
|
2286
|
+
classNames: y,
|
|
2287
|
+
filterNA: it,
|
|
2288
|
+
animate: W,
|
|
2289
|
+
precision: C,
|
|
2290
|
+
customLayers: Yt,
|
|
2291
|
+
showColorScale: yt,
|
|
2292
|
+
timeline: xt,
|
|
2293
|
+
naLabel: Ct
|
|
2294
|
+
} = e, E = n === void 0 ? "vertical" : n;
|
|
2295
|
+
let w;
|
|
2296
|
+
return t[0] !== W || t[1] !== Jt || t[2] !== kt || t[3] !== gt || t[4] !== Ot || t[5] !== H || t[6] !== y || t[7] !== St || t[8] !== tt || t[9] !== qt || t[10] !== Yt || t[11] !== a || t[12] !== m || t[13] !== Y || t[14] !== it || t[15] !== lt || t[16] !== It || t[17] !== l || t[18] !== Q || t[19] !== P || t[20] !== q || t[21] !== g || t[22] !== d || t[23] !== Xt || t[24] !== pt || t[25] !== et || t[26] !== x || t[27] !== c || t[28] !== Ct || t[29] !== Ht || t[30] !== s || t[31] !== mt || t[32] !== E || t[33] !== Mt || t[34] !== C || t[35] !== U || t[36] !== L || t[37] !== nt || t[38] !== Gt || t[39] !== M || t[40] !== yt || t[41] !== D || t[42] !== Tt || t[43] !== at || t[44] !== Z || t[45] !== rt || t[46] !== Ut || t[47] !== F || t[48] !== Et || t[49] !== k || t[50] !== xt || t[51] !== K || t[52] !== J || t[53] !== B || t[54] !== r || t[55] !== A ? (w = /* @__PURE__ */ i.jsx(wi, { orientation: E, data: a, graphTitle: P, colors: qt, sources: Ut, graphDescription: It, barPadding: Ot, showTicks: Tt, truncateBy: B, height: q, width: A, footNote: lt, colorDomain: St, colorLegendTitle: tt, suffix: Et, prefix: U, showValues: at, padding: Mt, backgroundColor: kt, leftMargin: Xt, rightMargin: M, sortParameter: rt, sortData: Z, topMargin: J, bottomMargin: H, showLabels: D, relativeHeight: nt, tooltip: K, onSeriesMouseOver: mt, refValues: L, graphID: Q, maxValue: et, minValue: c, onSeriesMouseClick: s, graphDownload: l, dataDownload: m, language: d, labelOrder: g, minHeight: x, theme: k, maxBarThickness: pt, ariaLabel: Jt, resetSelectionOnDoubleClick: Gt, styles: F, detailsOnClick: Y, barAxisTitle: gt, noOfTicks: Ht, valueColor: r, classNames: y, filterNA: it, animate: W, precision: C, customLayers: Yt, showColorScale: yt, timeline: xt, naLabel: Ct }), t[0] = W, t[1] = Jt, t[2] = kt, t[3] = gt, t[4] = Ot, t[5] = H, t[6] = y, t[7] = St, t[8] = tt, t[9] = qt, t[10] = Yt, t[11] = a, t[12] = m, t[13] = Y, t[14] = it, t[15] = lt, t[16] = It, t[17] = l, t[18] = Q, t[19] = P, t[20] = q, t[21] = g, t[22] = d, t[23] = Xt, t[24] = pt, t[25] = et, t[26] = x, t[27] = c, t[28] = Ct, t[29] = Ht, t[30] = s, t[31] = mt, t[32] = E, t[33] = Mt, t[34] = C, t[35] = U, t[36] = L, t[37] = nt, t[38] = Gt, t[39] = M, t[40] = yt, t[41] = D, t[42] = Tt, t[43] = at, t[44] = Z, t[45] = rt, t[46] = Ut, t[47] = F, t[48] = Et, t[49] = k, t[50] = xt, t[51] = K, t[52] = J, t[53] = B, t[54] = r, t[55] = A, t[56] = w) : w = t[56], w;
|
|
2297
|
+
}
|
|
2298
|
+
function Jl(e) {
|
|
2299
|
+
const t = ge.c(58), {
|
|
2300
|
+
data: a,
|
|
2301
|
+
graphTitle: P,
|
|
2302
|
+
colors: qt,
|
|
2303
|
+
sources: Ut,
|
|
2304
|
+
graphDescription: It,
|
|
2305
|
+
barPadding: Ot,
|
|
2306
|
+
showTicks: Tt,
|
|
2307
|
+
leftMargin: B,
|
|
2308
|
+
rightMargin: q,
|
|
2309
|
+
topMargin: A,
|
|
2310
|
+
bottomMargin: lt,
|
|
2311
|
+
truncateBy: St,
|
|
2312
|
+
showLabels: tt,
|
|
2313
|
+
showValues: Et,
|
|
2314
|
+
backgroundColor: U,
|
|
2315
|
+
suffix: at,
|
|
2316
|
+
prefix: Mt,
|
|
2317
|
+
height: kt,
|
|
2318
|
+
width: Xt,
|
|
2319
|
+
footNote: M,
|
|
2320
|
+
colorDomain: J,
|
|
2321
|
+
colorLegendTitle: H,
|
|
2322
|
+
padding: D,
|
|
2323
|
+
tooltip: nt,
|
|
2324
|
+
onSeriesMouseOver: K,
|
|
2325
|
+
relativeHeight: mt,
|
|
2326
|
+
refValues: L,
|
|
2327
|
+
graphID: Q,
|
|
2328
|
+
maxValue: et,
|
|
2329
|
+
onSeriesMouseClick: c,
|
|
2174
2330
|
graphDownload: s,
|
|
2175
|
-
dataDownload:
|
|
2176
|
-
language:
|
|
2177
|
-
theme:
|
|
2178
|
-
labelOrder:
|
|
2331
|
+
dataDownload: l,
|
|
2332
|
+
language: m,
|
|
2333
|
+
theme: d,
|
|
2334
|
+
labelOrder: g,
|
|
2179
2335
|
minHeight: x,
|
|
2180
|
-
maxBarThickness:
|
|
2181
|
-
sortParameter:
|
|
2182
|
-
sortData:
|
|
2183
|
-
maxNumberOfBars:
|
|
2184
|
-
minBarThickness:
|
|
2185
|
-
ariaLabel:
|
|
2186
|
-
resetSelectionOnDoubleClick:
|
|
2187
|
-
detailsOnClick:
|
|
2188
|
-
barAxisTitle:
|
|
2189
|
-
noOfTicks:
|
|
2190
|
-
valueColor:
|
|
2191
|
-
orientation:
|
|
2192
|
-
styles:
|
|
2193
|
-
classNames:
|
|
2194
|
-
filterNA:
|
|
2195
|
-
animate:
|
|
2196
|
-
precision:
|
|
2197
|
-
customLayers:
|
|
2198
|
-
showColorScale:
|
|
2199
|
-
timeline:
|
|
2200
|
-
naLabel:
|
|
2201
|
-
} = e,
|
|
2202
|
-
let
|
|
2203
|
-
return t[0] !==
|
|
2336
|
+
maxBarThickness: k,
|
|
2337
|
+
sortParameter: rt,
|
|
2338
|
+
sortData: Z,
|
|
2339
|
+
maxNumberOfBars: pt,
|
|
2340
|
+
minBarThickness: Jt,
|
|
2341
|
+
ariaLabel: Gt,
|
|
2342
|
+
resetSelectionOnDoubleClick: Y,
|
|
2343
|
+
detailsOnClick: gt,
|
|
2344
|
+
barAxisTitle: Ht,
|
|
2345
|
+
noOfTicks: r,
|
|
2346
|
+
valueColor: n,
|
|
2347
|
+
orientation: F,
|
|
2348
|
+
styles: y,
|
|
2349
|
+
classNames: it,
|
|
2350
|
+
filterNA: W,
|
|
2351
|
+
animate: C,
|
|
2352
|
+
precision: Yt,
|
|
2353
|
+
customLayers: yt,
|
|
2354
|
+
showColorScale: xt,
|
|
2355
|
+
timeline: Ct,
|
|
2356
|
+
naLabel: E
|
|
2357
|
+
} = e, w = F === void 0 ? "vertical" : F;
|
|
2358
|
+
let bt;
|
|
2359
|
+
return t[0] !== C || t[1] !== Gt || t[2] !== U || t[3] !== Ht || t[4] !== Ot || t[5] !== lt || t[6] !== it || t[7] !== J || t[8] !== H || t[9] !== qt || t[10] !== yt || t[11] !== a || t[12] !== l || t[13] !== gt || t[14] !== W || t[15] !== M || t[16] !== It || t[17] !== s || t[18] !== Q || t[19] !== P || t[20] !== kt || t[21] !== g || t[22] !== m || t[23] !== B || t[24] !== k || t[25] !== pt || t[26] !== et || t[27] !== Jt || t[28] !== x || t[29] !== E || t[30] !== r || t[31] !== c || t[32] !== K || t[33] !== w || t[34] !== D || t[35] !== Yt || t[36] !== Mt || t[37] !== L || t[38] !== mt || t[39] !== Y || t[40] !== q || t[41] !== xt || t[42] !== tt || t[43] !== Tt || t[44] !== Et || t[45] !== Z || t[46] !== rt || t[47] !== Ut || t[48] !== y || t[49] !== at || t[50] !== d || t[51] !== Ct || t[52] !== nt || t[53] !== A || t[54] !== St || t[55] !== n || t[56] !== Xt ? (bt = /* @__PURE__ */ i.jsx(_s, { data: a, graphTitle: P, colors: qt, sources: Ut, graphDescription: It, barPadding: Ot, showTicks: Tt, leftMargin: B, rightMargin: q, topMargin: A, bottomMargin: lt, truncateBy: St, showLabels: tt, showValues: Et, backgroundColor: U, suffix: at, prefix: Mt, height: kt, width: Xt, footNote: M, colorDomain: J, colorLegendTitle: H, padding: D, tooltip: nt, onSeriesMouseOver: K, relativeHeight: mt, refValues: L, graphID: Q, maxValue: et, onSeriesMouseClick: c, graphDownload: s, dataDownload: l, language: m, theme: d, labelOrder: g, minHeight: x, maxBarThickness: k, sortParameter: rt, sortData: Z, maxNumberOfBars: pt, minBarThickness: Jt, ariaLabel: Gt, resetSelectionOnDoubleClick: Y, styles: y, detailsOnClick: gt, barAxisTitle: Ht, noOfTicks: r, valueColor: n, classNames: it, filterNA: W, animate: C, precision: Yt, customLayers: yt, showColorScale: xt, timeline: Ct, naLabel: E, orientation: w }), t[0] = C, t[1] = Gt, t[2] = U, t[3] = Ht, t[4] = Ot, t[5] = lt, t[6] = it, t[7] = J, t[8] = H, t[9] = qt, t[10] = yt, t[11] = a, t[12] = l, t[13] = gt, t[14] = W, t[15] = M, t[16] = It, t[17] = s, t[18] = Q, t[19] = P, t[20] = kt, t[21] = g, t[22] = m, t[23] = B, t[24] = k, t[25] = pt, t[26] = et, t[27] = Jt, t[28] = x, t[29] = E, t[30] = r, t[31] = c, t[32] = K, t[33] = w, t[34] = D, t[35] = Yt, t[36] = Mt, t[37] = L, t[38] = mt, t[39] = Y, t[40] = q, t[41] = xt, t[42] = tt, t[43] = Tt, t[44] = Et, t[45] = Z, t[46] = rt, t[47] = Ut, t[48] = y, t[49] = at, t[50] = d, t[51] = Ct, t[52] = nt, t[53] = A, t[54] = St, t[55] = n, t[56] = Xt, t[57] = bt) : bt = t[57], bt;
|
|
2204
2360
|
}
|
|
2205
2361
|
export {
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2362
|
+
Ul as GroupedBarGraph,
|
|
2363
|
+
ql as SimpleBarGraph,
|
|
2364
|
+
Jl as StackedBarGraph
|
|
2209
2365
|
};
|
|
2210
2366
|
//# sourceMappingURL=BarGraph.js.map
|