@undp/data-viz 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1180 -1170
- package/dist/BarGraph.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +354 -345
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GraphEl-C0FNZlDn.cjs +2 -0
- package/dist/GraphEl-C0FNZlDn.cjs.map +1 -0
- package/dist/{GraphEl-BdIyscdt.js → GraphEl-DfPT8ffl.js} +3 -1
- package/dist/GraphEl-DfPT8ffl.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +4 -7
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +4 -7
- package/dist/MultiGraphDashboard.d.ts +4 -7
- package/dist/MultiGraphDashboardFromConfig.d.ts +4 -7
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +4 -7
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +4 -7
- package/dist/PerformanceIntensiveScrollStory.d.ts +4 -7
- package/dist/ScrollStory.d.ts +4 -7
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +4 -7
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +4 -7
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +4 -7
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +4 -7
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +4 -7
- package/dist/SingleGraphDashboardThreeDGraphs.js +28 -25
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +4 -7
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +11 -2
- package/dist/ThreeDGlobe.js +316 -282
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/Types.d.ts +4 -7
- package/dist/index.d.ts +19 -9
- package/package.json +1 -1
- package/dist/GraphEl-B5gAX1IQ.cjs +0 -2
- package/dist/GraphEl-B5gAX1IQ.cjs.map +0 -1
- package/dist/GraphEl-BdIyscdt.js.map +0 -1
package/dist/BarGraph.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { j as e, m as Ne } from "./index-CHPV5EwG-BPSP-7Jg.js";
|
|
2
2
|
import { u as Te } from "./index-CaAIPGZo.js";
|
|
3
|
-
import { useRef as Me, useState as
|
|
4
|
-
import { s as
|
|
5
|
-
import { p as Se, f as
|
|
3
|
+
import { useRef as Me, useState as L, useEffect as ze } from "react";
|
|
4
|
+
import { s as lt } from "./index-DxagiOHo.js";
|
|
5
|
+
import { p as Se, f as De } from "./parse-DlCRUFh_.js";
|
|
6
6
|
import { s as Be, g as Fe, x as He } from "./getSliderMarks-C0jptXeP.js";
|
|
7
7
|
import { i as Pe } from "./index-27yTRcko.js";
|
|
8
8
|
import { X as We } from "./Modal-DVVwpKhP.js";
|
|
9
|
-
import { n as
|
|
9
|
+
import { n as $e } from "./numberFormattingFunction-14YCbkN2.js";
|
|
10
10
|
import { T as Ge } from "./Tooltip-DyM5snqx.js";
|
|
11
11
|
import { c as q } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
12
12
|
import { Colors as je } from "./Colors.js";
|
|
13
13
|
import { s as Xe } from "./string2HTML-CWHGfz_d.js";
|
|
14
|
-
import { X as
|
|
15
|
-
import { Y as
|
|
14
|
+
import { X as rt } from "./XTicksAndGridLines-Bn9u5gOM.js";
|
|
15
|
+
import { Y as ot } from "./YAxesLabels-CPGZjmZJ.js";
|
|
16
16
|
import { A as Ye } from "./AxisTitle-BmHLMRJZ.js";
|
|
17
17
|
import { A as _e } from "./Axis-Ddg-seDi.js";
|
|
18
|
-
import { a as
|
|
18
|
+
import { a as nt, R as ct } from "./ReferenceLine-CfAW3vKJ.js";
|
|
19
19
|
import { u as Ee } from "./use-in-view-yS6jzJAp.js";
|
|
20
20
|
import { a as Re } from "./linear-DUdu7l2G.js";
|
|
21
21
|
import { b as Ie } from "./band-BEjh2CHI.js";
|
|
@@ -26,68 +26,69 @@ import { GraphHeader as Je } from "./GraphHeader.js";
|
|
|
26
26
|
import { ColorLegendWithMouseOver as Ke } from "./ColorLegendWithMouseOver.js";
|
|
27
27
|
import { E as Qe } from "./EmptyState-DdTp-Mdn.js";
|
|
28
28
|
import { P as Ze, f as et } from "./index-BmCqpO1B.js";
|
|
29
|
-
import { c as Le, d as
|
|
29
|
+
import { c as Le, d as Ae } from "./ensureCompleteData-BBDZbDCE.js";
|
|
30
30
|
import { c as tt } from "./init-BhZylTFx.js";
|
|
31
31
|
import { s as ke } from "./index-D7ltPi18.js";
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
|
|
32
|
+
import { o as st } from "./index-BLizQDlg.js";
|
|
33
|
+
import { g as at } from "./getTextColorBasedOnBgColor-B6Nk2WBf.js";
|
|
34
|
+
import { X as dt } from "./XAxesLabels-CaV2q-6H.js";
|
|
35
|
+
import { Y as ht } from "./YTicksAndGridLines-B6ah7CRf.js";
|
|
36
|
+
function ut(fe) {
|
|
36
37
|
const {
|
|
37
38
|
data: o,
|
|
38
39
|
barColor: g,
|
|
39
40
|
suffix: G,
|
|
40
|
-
prefix:
|
|
41
|
+
prefix: A,
|
|
41
42
|
barPadding: X,
|
|
42
43
|
showValues: me,
|
|
43
44
|
showTicks: ue,
|
|
44
45
|
leftMargin: ge,
|
|
45
|
-
truncateBy:
|
|
46
|
+
truncateBy: K,
|
|
46
47
|
width: Y,
|
|
47
48
|
height: ie,
|
|
48
49
|
colorDomain: D,
|
|
49
|
-
rightMargin:
|
|
50
|
+
rightMargin: oe,
|
|
50
51
|
topMargin: he,
|
|
51
52
|
bottomMargin: j,
|
|
52
53
|
showLabels: _,
|
|
53
54
|
tooltip: U,
|
|
54
|
-
onSeriesMouseOver:
|
|
55
|
+
onSeriesMouseOver: Q,
|
|
55
56
|
refValues: C,
|
|
56
57
|
selectedColor: p,
|
|
57
58
|
highlightedDataPoints: F,
|
|
58
59
|
maxValue: ae,
|
|
59
60
|
minValue: le,
|
|
60
61
|
onSeriesMouseClick: J,
|
|
61
|
-
labelOrder:
|
|
62
|
-
rtl:
|
|
62
|
+
labelOrder: Z,
|
|
63
|
+
rtl: se,
|
|
63
64
|
maxBarThickness: E,
|
|
64
65
|
minBarThickness: xe,
|
|
65
66
|
resetSelectionOnDoubleClick: de,
|
|
66
|
-
detailsOnClick:
|
|
67
|
+
detailsOnClick: $,
|
|
67
68
|
barAxisTitle: y,
|
|
68
69
|
valueColor: x,
|
|
69
70
|
noOfTicks: w,
|
|
70
|
-
styles:
|
|
71
|
-
classNames:
|
|
72
|
-
animate:
|
|
73
|
-
dimmedOpacity:
|
|
74
|
-
precision:
|
|
71
|
+
styles: z,
|
|
72
|
+
classNames: M,
|
|
73
|
+
animate: O,
|
|
74
|
+
dimmedOpacity: I,
|
|
75
|
+
precision: S,
|
|
75
76
|
customLayers: b,
|
|
76
77
|
naLabel: v
|
|
77
|
-
} = fe, R = Me(null),
|
|
78
|
-
once:
|
|
79
|
-
amount:
|
|
80
|
-
}), [
|
|
78
|
+
} = fe, R = Me(null), T = Ee(R, {
|
|
79
|
+
once: O.once,
|
|
80
|
+
amount: O.amount
|
|
81
|
+
}), [V, ne] = L(void 0), [W, H] = L(void 0), [ee, N] = L(void 0), [P, m] = L(void 0), k = {
|
|
81
82
|
top: y ? he + 25 : he,
|
|
82
83
|
bottom: j,
|
|
83
84
|
left: ge,
|
|
84
|
-
right:
|
|
85
|
-
}, f = Y - k.left - k.right, d = ie - k.top - k.bottom, u = o.map((
|
|
86
|
-
...
|
|
87
|
-
id:
|
|
88
|
-
})), n = Re().domain([le, ae]).range([0, f]).nice(),
|
|
85
|
+
right: oe
|
|
86
|
+
}, f = Y - k.left - k.right, d = ie - k.top - k.bottom, u = o.map((a, h) => ({
|
|
87
|
+
...a,
|
|
88
|
+
id: Z ? `${a.label}` : `${h}`
|
|
89
|
+
})), n = Re().domain([le, ae]).range([0, f]).nice(), s = Z || u.map((a) => `${a.id}`), l = Ie().domain(s).range([
|
|
89
90
|
0,
|
|
90
|
-
xe ? Math.max(d, xe *
|
|
91
|
+
xe ? Math.max(d, xe * s.length) : E ? Math.min(d, E * s.length) : d
|
|
91
92
|
]).paddingInner(X), t = n.ticks(w);
|
|
92
93
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
93
94
|
/* @__PURE__ */ e.jsx(
|
|
@@ -100,25 +101,25 @@ function ht(fe) {
|
|
|
100
101
|
direction: "ltr",
|
|
101
102
|
children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${k.left},${k.top})`, children: [
|
|
102
103
|
ue ? /* @__PURE__ */ e.jsx(
|
|
103
|
-
|
|
104
|
+
rt,
|
|
104
105
|
{
|
|
105
|
-
values: t.filter((
|
|
106
|
-
x: t.filter((
|
|
106
|
+
values: t.filter((a) => a !== 0),
|
|
107
|
+
x: t.filter((a) => a !== 0).map((a) => n(a)),
|
|
107
108
|
y1: 0 - he,
|
|
108
109
|
y2: d + k.bottom,
|
|
109
110
|
styles: {
|
|
110
|
-
gridLines:
|
|
111
|
-
labels:
|
|
111
|
+
gridLines: z?.xAxis?.gridLines,
|
|
112
|
+
labels: z?.xAxis?.labels
|
|
112
113
|
},
|
|
113
114
|
classNames: {
|
|
114
|
-
gridLines:
|
|
115
|
-
labels:
|
|
115
|
+
gridLines: M?.xAxis?.gridLines,
|
|
116
|
+
labels: M?.xAxis?.labels
|
|
116
117
|
},
|
|
117
118
|
suffix: G,
|
|
118
|
-
prefix:
|
|
119
|
+
prefix: A,
|
|
119
120
|
labelType: "secondary",
|
|
120
121
|
showGridLines: !0,
|
|
121
|
-
precision:
|
|
122
|
+
precision: S
|
|
122
123
|
}
|
|
123
124
|
) : null,
|
|
124
125
|
/* @__PURE__ */ e.jsx(
|
|
@@ -126,127 +127,127 @@ function ht(fe) {
|
|
|
126
127
|
{
|
|
127
128
|
x: f / 2,
|
|
128
129
|
y: 0 - k.top + 15,
|
|
129
|
-
style:
|
|
130
|
-
className:
|
|
130
|
+
style: z?.xAxis?.title,
|
|
131
|
+
className: M?.xAxis?.title,
|
|
131
132
|
text: y
|
|
132
133
|
}
|
|
133
134
|
),
|
|
134
|
-
b.filter((
|
|
135
|
+
b.filter((a) => a.position === "before").map((a) => a.layer),
|
|
135
136
|
/* @__PURE__ */ e.jsxs(qe, { children: [
|
|
136
137
|
u.map(
|
|
137
|
-
(
|
|
138
|
+
(a) => q(l(a.id)) ? null : /* @__PURE__ */ e.jsxs(
|
|
138
139
|
pe.g,
|
|
139
140
|
{
|
|
140
141
|
className: "undp-viz-g-with-hover",
|
|
141
142
|
variants: {
|
|
142
143
|
initial: {
|
|
143
|
-
opacity: p ?
|
|
144
|
+
opacity: p ? a.color && g[D.indexOf(a.color)] === p ? 1 : I : F.length !== 0 ? F.indexOf(a.label) !== -1 ? 0.85 : I : 0.85
|
|
144
145
|
},
|
|
145
146
|
whileInView: {
|
|
146
|
-
opacity: p ?
|
|
147
|
-
transition: { duration:
|
|
147
|
+
opacity: p ? a.color && g[D.indexOf(a.color)] === p ? 1 : I : F.length !== 0 ? F.indexOf(a.label) !== -1 ? 0.85 : I : 0.85,
|
|
148
|
+
transition: { duration: O.duration }
|
|
148
149
|
}
|
|
149
150
|
},
|
|
150
151
|
initial: "initial",
|
|
151
|
-
animate:
|
|
152
|
-
exit: { opacity: 0, transition: { duration:
|
|
152
|
+
animate: T ? "whileInView" : "initial",
|
|
153
|
+
exit: { opacity: 0, transition: { duration: O.duration } },
|
|
153
154
|
onMouseEnter: (h) => {
|
|
154
|
-
|
|
155
|
+
ne(a), m(h.clientY), N(h.clientX), Q?.(a);
|
|
155
156
|
},
|
|
156
157
|
onClick: () => {
|
|
157
|
-
(J ||
|
|
158
|
+
(J || $) && (Pe(W, a) && de ? (H(void 0), J?.(void 0)) : (H(a), J?.(a)));
|
|
158
159
|
},
|
|
159
160
|
onMouseMove: (h) => {
|
|
160
|
-
|
|
161
|
+
ne(a), m(h.clientY), N(h.clientX);
|
|
161
162
|
},
|
|
162
163
|
onMouseLeave: () => {
|
|
163
|
-
|
|
164
|
+
ne(void 0), N(void 0), m(void 0), Q?.(void 0);
|
|
164
165
|
},
|
|
165
166
|
children: [
|
|
166
|
-
|
|
167
|
+
a.size ? /* @__PURE__ */ e.jsx(
|
|
167
168
|
pe.rect,
|
|
168
169
|
{
|
|
169
170
|
variants: {
|
|
170
171
|
initial: {
|
|
171
172
|
width: 0,
|
|
172
173
|
x: n(0),
|
|
173
|
-
y:
|
|
174
|
-
fill: o.filter((h) => h.color).length === 0 ? g[0] :
|
|
174
|
+
y: l(`${a.id}`),
|
|
175
|
+
fill: o.filter((h) => h.color).length === 0 ? g[0] : a.color ? g[D.indexOf(a.color)] : je.gray
|
|
175
176
|
},
|
|
176
177
|
whileInView: {
|
|
177
|
-
width:
|
|
178
|
-
x:
|
|
179
|
-
y:
|
|
180
|
-
fill: o.filter((h) => h.color).length === 0 ? g[0] :
|
|
181
|
-
transition: { duration:
|
|
178
|
+
width: a.size >= 0 ? n(a.size) - n(0) : n(0) - n(a.size),
|
|
179
|
+
x: a.size >= 0 ? n(0) : n(a.size),
|
|
180
|
+
y: l(`${a.id}`),
|
|
181
|
+
fill: o.filter((h) => h.color).length === 0 ? g[0] : a.color ? g[D.indexOf(a.color)] : je.gray,
|
|
182
|
+
transition: { duration: O.duration }
|
|
182
183
|
}
|
|
183
184
|
},
|
|
184
185
|
initial: "initial",
|
|
185
|
-
animate:
|
|
186
|
+
animate: T ? "whileInView" : "initial",
|
|
186
187
|
exit: {
|
|
187
188
|
width: 0,
|
|
188
189
|
x: n(0),
|
|
189
|
-
transition: { duration:
|
|
190
|
+
transition: { duration: O.duration }
|
|
190
191
|
},
|
|
191
|
-
height:
|
|
192
|
+
height: l.bandwidth()
|
|
192
193
|
}
|
|
193
194
|
) : null,
|
|
194
195
|
_ ? /* @__PURE__ */ e.jsx(
|
|
195
|
-
|
|
196
|
+
ot,
|
|
196
197
|
{
|
|
197
|
-
value: `${
|
|
198
|
-
y:
|
|
199
|
-
x: (
|
|
200
|
-
width: (
|
|
201
|
-
height:
|
|
202
|
-
alignment:
|
|
203
|
-
style:
|
|
204
|
-
className:
|
|
205
|
-
animate:
|
|
206
|
-
isInView:
|
|
198
|
+
value: `${a.label}`.length < K ? `${a.label}` : `${`${a.label}`.substring(0, K)}...`,
|
|
199
|
+
y: l(a.id) || 0,
|
|
200
|
+
x: (a.size || 0) < 0 ? n(0) : 0 - k.left,
|
|
201
|
+
width: (a.size || 0) < 0 ? Y - n(0) : n(0) + k.left,
|
|
202
|
+
height: l.bandwidth(),
|
|
203
|
+
alignment: a.size && a.size < 0 ? "left" : "right",
|
|
204
|
+
style: z?.yAxis?.labels,
|
|
205
|
+
className: M?.yAxis?.labels,
|
|
206
|
+
animate: O,
|
|
207
|
+
isInView: T
|
|
207
208
|
}
|
|
208
209
|
) : null,
|
|
209
210
|
me ? /* @__PURE__ */ e.jsx(
|
|
210
211
|
pe.text,
|
|
211
212
|
{
|
|
212
213
|
style: {
|
|
213
|
-
textAnchor:
|
|
214
|
-
...
|
|
214
|
+
textAnchor: a.size && a.size < 0 ? "end" : "start",
|
|
215
|
+
...z?.graphObjectValues || {}
|
|
215
216
|
},
|
|
216
217
|
className: Ne(
|
|
217
218
|
"graph-value text-sm",
|
|
218
219
|
!x && g.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "",
|
|
219
|
-
|
|
220
|
+
M?.graphObjectValues
|
|
220
221
|
),
|
|
221
|
-
dx:
|
|
222
|
+
dx: a.size && a.size < 0 ? -5 : 5,
|
|
222
223
|
dy: "0.33em",
|
|
223
224
|
variants: {
|
|
224
225
|
initial: {
|
|
225
226
|
x: n(0),
|
|
226
|
-
y:
|
|
227
|
+
y: l(`${a.id}`) + l.bandwidth() / 2,
|
|
227
228
|
opacity: 0,
|
|
228
|
-
fill: x || (o.filter((h) => h.color).length === 0 ? g[0] :
|
|
229
|
+
fill: x || (o.filter((h) => h.color).length === 0 ? g[0] : a.color ? g[D.indexOf(a.color)] : je.gray)
|
|
229
230
|
},
|
|
230
231
|
whileInView: {
|
|
231
|
-
x:
|
|
232
|
+
x: a.size ? n(a.size) : n(0),
|
|
232
233
|
opacity: 1,
|
|
233
|
-
y:
|
|
234
|
-
fill: x || (o.filter((h) => h.color).length === 0 ? g[0] :
|
|
235
|
-
transition: { duration:
|
|
234
|
+
y: l(`${a.id}`) + l.bandwidth() / 2,
|
|
235
|
+
fill: x || (o.filter((h) => h.color).length === 0 ? g[0] : a.color ? g[D.indexOf(a.color)] : je.gray),
|
|
236
|
+
transition: { duration: O.duration }
|
|
236
237
|
}
|
|
237
238
|
},
|
|
238
239
|
initial: "initial",
|
|
239
|
-
animate:
|
|
240
|
+
animate: T ? "whileInView" : "initial",
|
|
240
241
|
exit: {
|
|
241
242
|
opacity: 0,
|
|
242
|
-
transition: { duration:
|
|
243
|
+
transition: { duration: O.duration }
|
|
243
244
|
},
|
|
244
|
-
children:
|
|
245
|
+
children: $e(a.size, v, S, A, G)
|
|
245
246
|
}
|
|
246
247
|
) : null
|
|
247
248
|
]
|
|
248
249
|
},
|
|
249
|
-
|
|
250
|
+
a.label
|
|
250
251
|
)
|
|
251
252
|
),
|
|
252
253
|
/* @__PURE__ */ e.jsx(
|
|
@@ -256,43 +257,43 @@ function ht(fe) {
|
|
|
256
257
|
x2: n(le < 0 ? 0 : le),
|
|
257
258
|
y1: -2.5,
|
|
258
259
|
y2: d + k.bottom,
|
|
259
|
-
classNames: { axis:
|
|
260
|
-
styles: { axis:
|
|
260
|
+
classNames: { axis: M?.yAxis?.axis },
|
|
261
|
+
styles: { axis: z?.yAxis?.axis }
|
|
261
262
|
}
|
|
262
263
|
),
|
|
263
|
-
C ? /* @__PURE__ */ e.jsx(e.Fragment, { children: C.map((
|
|
264
|
-
|
|
264
|
+
C ? /* @__PURE__ */ e.jsx(e.Fragment, { children: C.map((a, h) => /* @__PURE__ */ e.jsx(
|
|
265
|
+
nt,
|
|
265
266
|
{
|
|
266
|
-
text:
|
|
267
|
-
color:
|
|
268
|
-
x: n(
|
|
267
|
+
text: a.text,
|
|
268
|
+
color: a.color,
|
|
269
|
+
x: n(a.value),
|
|
269
270
|
y1: 0 - k.top,
|
|
270
271
|
y2: d + k.bottom,
|
|
271
|
-
textSide: n(
|
|
272
|
-
classNames:
|
|
273
|
-
styles:
|
|
274
|
-
animate:
|
|
275
|
-
isInView:
|
|
272
|
+
textSide: n(a.value) > f * 0.75 || se ? "left" : "right",
|
|
273
|
+
classNames: a.classNames,
|
|
274
|
+
styles: a.styles,
|
|
275
|
+
animate: O,
|
|
276
|
+
isInView: T
|
|
276
277
|
},
|
|
277
278
|
h
|
|
278
279
|
)) }) : null
|
|
279
280
|
] }),
|
|
280
|
-
b.filter((
|
|
281
|
+
b.filter((a) => a.position === "after").map((a) => a.layer)
|
|
281
282
|
] })
|
|
282
283
|
}
|
|
283
284
|
),
|
|
284
|
-
|
|
285
|
+
V && U && ee && P ? /* @__PURE__ */ e.jsx(
|
|
285
286
|
Ge,
|
|
286
287
|
{
|
|
287
|
-
data:
|
|
288
|
+
data: V,
|
|
288
289
|
body: U,
|
|
289
|
-
xPos:
|
|
290
|
+
xPos: ee,
|
|
290
291
|
yPos: P,
|
|
291
|
-
backgroundStyle:
|
|
292
|
-
className:
|
|
292
|
+
backgroundStyle: z?.tooltip,
|
|
293
|
+
className: M?.tooltip
|
|
293
294
|
}
|
|
294
295
|
) : null,
|
|
295
|
-
|
|
296
|
+
$ && W !== void 0 ? /* @__PURE__ */ e.jsx(
|
|
296
297
|
We,
|
|
297
298
|
{
|
|
298
299
|
open: W !== void 0,
|
|
@@ -303,64 +304,64 @@ function ht(fe) {
|
|
|
303
304
|
"div",
|
|
304
305
|
{
|
|
305
306
|
className: "graph-modal-content m-0",
|
|
306
|
-
dangerouslySetInnerHTML: typeof
|
|
307
|
-
children: typeof
|
|
307
|
+
dangerouslySetInnerHTML: typeof $ == "string" ? { __html: Xe($, W) } : void 0,
|
|
308
|
+
children: typeof $ == "function" ? $(W) : null
|
|
308
309
|
}
|
|
309
310
|
)
|
|
310
311
|
}
|
|
311
312
|
) : null
|
|
312
313
|
] });
|
|
313
314
|
}
|
|
314
|
-
function
|
|
315
|
+
function mt(fe) {
|
|
315
316
|
const {
|
|
316
317
|
data: o,
|
|
317
318
|
graphTitle: g,
|
|
318
319
|
colors: G,
|
|
319
|
-
suffix:
|
|
320
|
+
suffix: A = "",
|
|
320
321
|
sources: X,
|
|
321
322
|
prefix: me = "",
|
|
322
323
|
graphDescription: ue,
|
|
323
324
|
barPadding: ge = 0.25,
|
|
324
|
-
showValues:
|
|
325
|
+
showValues: K = !0,
|
|
325
326
|
showTicks: Y = !0,
|
|
326
327
|
leftMargin: ie = 100,
|
|
327
328
|
rightMargin: D = 40,
|
|
328
|
-
truncateBy:
|
|
329
|
+
truncateBy: oe = 999,
|
|
329
330
|
height: he,
|
|
330
331
|
width: j,
|
|
331
332
|
footNote: _,
|
|
332
333
|
colorDomain: U,
|
|
333
|
-
colorLegendTitle:
|
|
334
|
+
colorLegendTitle: Q,
|
|
334
335
|
highlightedDataPoints: C = [],
|
|
335
336
|
padding: p,
|
|
336
337
|
backgroundColor: F = !1,
|
|
337
338
|
topMargin: ae = 25,
|
|
338
339
|
bottomMargin: le = 10,
|
|
339
340
|
showLabels: J = !0,
|
|
340
|
-
relativeHeight:
|
|
341
|
-
tooltip:
|
|
341
|
+
relativeHeight: Z,
|
|
342
|
+
tooltip: se,
|
|
342
343
|
onSeriesMouseOver: E,
|
|
343
344
|
refValues: xe,
|
|
344
345
|
showColorScale: de = !0,
|
|
345
|
-
graphID:
|
|
346
|
+
graphID: $,
|
|
346
347
|
maxValue: y,
|
|
347
348
|
minValue: x,
|
|
348
349
|
onSeriesMouseClick: w,
|
|
349
|
-
graphDownload:
|
|
350
|
-
dataDownload:
|
|
351
|
-
sortData:
|
|
352
|
-
labelOrder:
|
|
353
|
-
language:
|
|
350
|
+
graphDownload: z = !1,
|
|
351
|
+
dataDownload: M = !1,
|
|
352
|
+
sortData: O,
|
|
353
|
+
labelOrder: I,
|
|
354
|
+
language: S = "en",
|
|
354
355
|
showNAColor: b = !0,
|
|
355
356
|
minHeight: v = 0,
|
|
356
357
|
theme: R = "light",
|
|
357
|
-
maxBarThickness:
|
|
358
|
-
maxNumberOfBars:
|
|
359
|
-
minBarThickness:
|
|
358
|
+
maxBarThickness: T,
|
|
359
|
+
maxNumberOfBars: V,
|
|
360
|
+
minBarThickness: ne,
|
|
360
361
|
ariaLabel: W,
|
|
361
362
|
resetSelectionOnDoubleClick: H = !0,
|
|
362
|
-
detailsOnClick:
|
|
363
|
-
barAxisTitle:
|
|
363
|
+
detailsOnClick: ee,
|
|
364
|
+
barAxisTitle: N,
|
|
364
365
|
noOfTicks: P = 5,
|
|
365
366
|
valueColor: m,
|
|
366
367
|
styles: k,
|
|
@@ -368,34 +369,34 @@ function ut(fe) {
|
|
|
368
369
|
filterNA: d = !0,
|
|
369
370
|
animate: u = !1,
|
|
370
371
|
dimmedOpacity: n = 0.3,
|
|
371
|
-
precision:
|
|
372
|
-
customLayers:
|
|
372
|
+
precision: s = 2,
|
|
373
|
+
customLayers: l = [],
|
|
373
374
|
timeline: t = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
|
|
374
|
-
naLabel:
|
|
375
|
-
} = fe, [h,
|
|
375
|
+
naLabel: a = "NA"
|
|
376
|
+
} = fe, [h, ve] = L(0), [Oe, ce] = L(0), [be, we] = L(t.autoplay), re = Be(
|
|
376
377
|
Te(
|
|
377
378
|
o.filter((i) => i.date !== void 0 && i.date !== null),
|
|
378
379
|
(i) => i.date
|
|
379
380
|
).map((i) => Se(`${i.date}`, t.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()),
|
|
380
|
-
(i,
|
|
381
|
-
), [
|
|
381
|
+
(i, ye) => tt(i, ye)
|
|
382
|
+
), [Ce, c] = L(t.autoplay ? 0 : re.length - 1), [te, Ve] = L(void 0), r = Me(null), B = Me(null);
|
|
382
383
|
ze(() => {
|
|
383
|
-
const i = new ResizeObserver((
|
|
384
|
-
|
|
384
|
+
const i = new ResizeObserver((ye) => {
|
|
385
|
+
ve(j || ye[0].target.clientWidth || 620), ce(he || ye[0].target.clientHeight || 480);
|
|
385
386
|
});
|
|
386
|
-
return
|
|
387
|
+
return r.current && (ce(r.current.clientHeight || 480), ve(r.current.clientWidth || 620), j || i.observe(r.current)), () => i.disconnect();
|
|
387
388
|
}, [j, he]), ze(() => {
|
|
388
389
|
const i = setInterval(
|
|
389
390
|
() => {
|
|
390
|
-
c((
|
|
391
|
+
c((ye) => ye < re.length - 1 ? ye + 1 : 0);
|
|
391
392
|
},
|
|
392
393
|
(t.speed || 2) * 1e3
|
|
393
394
|
);
|
|
394
|
-
return
|
|
395
|
-
}, [
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
|
|
395
|
+
return be || clearInterval(i), () => clearInterval(i);
|
|
396
|
+
}, [re, be, t.speed]);
|
|
397
|
+
const it = Fe(
|
|
398
|
+
re,
|
|
399
|
+
Ce,
|
|
399
400
|
t.showOnlyActiveDate,
|
|
400
401
|
t.dateFormat || "yyyy"
|
|
401
402
|
);
|
|
@@ -403,20 +404,20 @@ function ut(fe) {
|
|
|
403
404
|
"div",
|
|
404
405
|
{
|
|
405
406
|
className: `${R || "light"} flex ${j ? "w-fit grow-0" : "w-full grow"}`,
|
|
406
|
-
dir:
|
|
407
|
+
dir: S === "he" || S === "ar" ? "rtl" : void 0,
|
|
407
408
|
children: /* @__PURE__ */ e.jsx(
|
|
408
409
|
"div",
|
|
409
410
|
{
|
|
410
411
|
className: Ne(
|
|
411
|
-
`${F ? F === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${
|
|
412
|
+
`${F ? F === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${S || "en"}`,
|
|
412
413
|
f?.graphContainer
|
|
413
414
|
),
|
|
414
415
|
style: {
|
|
415
416
|
...k?.graphContainer || {},
|
|
416
417
|
...F && F !== !0 ? { backgroundColor: F } : {}
|
|
417
418
|
},
|
|
418
|
-
id:
|
|
419
|
-
ref:
|
|
419
|
+
id: $,
|
|
420
|
+
ref: B,
|
|
420
421
|
"aria-label": W || `${g ? `The graph shows ${g}. ` : ""}This is a bar chart. ${ue ? ` ${ue}` : ""}`,
|
|
421
422
|
children: /* @__PURE__ */ e.jsx(
|
|
422
423
|
"div",
|
|
@@ -424,7 +425,7 @@ function ut(fe) {
|
|
|
424
425
|
className: "flex grow",
|
|
425
426
|
style: { padding: F ? p || "1rem" : p || 0 },
|
|
426
427
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
427
|
-
g || ue ||
|
|
428
|
+
g || ue || z || M ? /* @__PURE__ */ e.jsx(
|
|
428
429
|
Je,
|
|
429
430
|
{
|
|
430
431
|
styles: {
|
|
@@ -438,37 +439,37 @@ function ut(fe) {
|
|
|
438
439
|
graphTitle: g,
|
|
439
440
|
graphDescription: ue,
|
|
440
441
|
width: j,
|
|
441
|
-
graphDownload:
|
|
442
|
-
dataDownload:
|
|
442
|
+
graphDownload: z ? B.current : void 0,
|
|
443
|
+
dataDownload: M ? o.map((i) => i.data).filter((i) => i !== void 0).length > 0 ? o.map((i) => i.data).filter((i) => i !== void 0) : o.filter((i) => i !== void 0) : null
|
|
443
444
|
}
|
|
444
445
|
) : null,
|
|
445
|
-
t.enabled &&
|
|
446
|
+
t.enabled && re.length > 0 && it ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
446
447
|
/* @__PURE__ */ e.jsx(
|
|
447
448
|
"button",
|
|
448
449
|
{
|
|
449
450
|
type: "button",
|
|
450
451
|
onClick: () => {
|
|
451
|
-
|
|
452
|
+
we(!be);
|
|
452
453
|
},
|
|
453
454
|
className: "p-0 border-0 cursor-pointer bg-transparent",
|
|
454
|
-
"aria-label":
|
|
455
|
-
children:
|
|
455
|
+
"aria-label": be ? "Click to pause animation" : "Click to play animation",
|
|
456
|
+
children: be ? /* @__PURE__ */ e.jsx(Ze, {}) : /* @__PURE__ */ e.jsx(et, {})
|
|
456
457
|
}
|
|
457
458
|
),
|
|
458
459
|
/* @__PURE__ */ e.jsx(
|
|
459
460
|
He,
|
|
460
461
|
{
|
|
461
|
-
min:
|
|
462
|
-
max:
|
|
463
|
-
marks:
|
|
462
|
+
min: re[0],
|
|
463
|
+
max: re[re.length - 1],
|
|
464
|
+
marks: it,
|
|
464
465
|
step: null,
|
|
465
|
-
defaultValue:
|
|
466
|
-
value:
|
|
466
|
+
defaultValue: re[re.length - 1],
|
|
467
|
+
value: re[Ce],
|
|
467
468
|
onChangeComplete: (i) => {
|
|
468
|
-
c(
|
|
469
|
+
c(re.indexOf(i));
|
|
469
470
|
},
|
|
470
471
|
onChange: (i) => {
|
|
471
|
-
c(
|
|
472
|
+
c(re.indexOf(i));
|
|
472
473
|
},
|
|
473
474
|
"aria-label": "Time slider. Use arrow keys to adjust selected time period."
|
|
474
475
|
}
|
|
@@ -479,13 +480,13 @@ function ut(fe) {
|
|
|
479
480
|
Ke,
|
|
480
481
|
{
|
|
481
482
|
width: j,
|
|
482
|
-
colorLegendTitle:
|
|
483
|
+
colorLegendTitle: Q,
|
|
483
484
|
colors: G || je[R].categoricalColors.colors,
|
|
484
485
|
colorDomain: U || Te(
|
|
485
486
|
o.filter((i) => i.color),
|
|
486
487
|
"color"
|
|
487
488
|
).map((i) => i.color),
|
|
488
|
-
setSelectedColor:
|
|
489
|
+
setSelectedColor: Ve,
|
|
489
490
|
showNAColor: b
|
|
490
491
|
}
|
|
491
492
|
) : null,
|
|
@@ -493,33 +494,33 @@ function ut(fe) {
|
|
|
493
494
|
"div",
|
|
494
495
|
{
|
|
495
496
|
className: "flex grow flex-col justify-center w-full leading-0",
|
|
496
|
-
ref:
|
|
497
|
+
ref: r,
|
|
497
498
|
"aria-label": "Graph area",
|
|
498
|
-
children: (j || h) && (he ||
|
|
499
|
-
|
|
499
|
+
children: (j || h) && (he || Oe) ? /* @__PURE__ */ e.jsx(
|
|
500
|
+
ut,
|
|
500
501
|
{
|
|
501
|
-
data:
|
|
502
|
+
data: O === "asc" ? lt(
|
|
502
503
|
Le(o, t.dateFormat || "yyyy").filter(
|
|
503
|
-
(i) => t.enabled ? i.date ===
|
|
504
|
-
new Date(
|
|
504
|
+
(i) => t.enabled ? i.date === De(
|
|
505
|
+
new Date(re[Ce]),
|
|
505
506
|
t.dateFormat || "yyyy"
|
|
506
507
|
) : i
|
|
507
508
|
).filter((i) => d ? !q(i.size) : i),
|
|
508
509
|
(i) => i.size
|
|
509
|
-
).filter((i,
|
|
510
|
+
).filter((i, ye) => V ? ye < V : !0) : O === "desc" ? lt(
|
|
510
511
|
Le(o, t.dateFormat || "yyyy").filter(
|
|
511
|
-
(i) => t.enabled ? i.date ===
|
|
512
|
-
new Date(
|
|
512
|
+
(i) => t.enabled ? i.date === De(
|
|
513
|
+
new Date(re[Ce]),
|
|
513
514
|
t.dateFormat || "yyyy"
|
|
514
515
|
) : i
|
|
515
516
|
).filter((i) => d ? !q(i.size) : i),
|
|
516
517
|
(i) => i.size
|
|
517
|
-
).reverse().filter((i,
|
|
518
|
-
(i) => t.enabled ? i.date ===
|
|
519
|
-
new Date(
|
|
518
|
+
).reverse().filter((i, ye) => V ? ye < V : !0) : Le(o, t.dateFormat || "yyyy").filter(
|
|
519
|
+
(i) => t.enabled ? i.date === De(
|
|
520
|
+
new Date(re[Ce]),
|
|
520
521
|
t.dateFormat || "yyyy"
|
|
521
522
|
) : i
|
|
522
|
-
).filter((i) => d ? !q(i.size) : i).filter((i,
|
|
523
|
+
).filter((i) => d ? !q(i.size) : i).filter((i, ye) => V ? ye < V : !0),
|
|
523
524
|
barColor: o.filter((i) => i.color).length === 0 ? G ? [G] : [je.primaryColors["blue-600"]] : G || je[R].categoricalColors.colors,
|
|
524
525
|
colorDomain: o.filter((i) => i.color).length === 0 ? [] : U || Te(
|
|
525
526
|
o.filter((i) => i.color),
|
|
@@ -529,20 +530,20 @@ function ut(fe) {
|
|
|
529
530
|
selectedColor: te,
|
|
530
531
|
height: Math.max(
|
|
531
532
|
v,
|
|
532
|
-
he || (
|
|
533
|
+
he || (Z ? v ? (j || h) * Z > v ? (j || h) * Z : v : (j || h) * Z : Oe)
|
|
533
534
|
),
|
|
534
|
-
suffix:
|
|
535
|
+
suffix: A,
|
|
535
536
|
prefix: me,
|
|
536
537
|
barPadding: ge,
|
|
537
|
-
showValues:
|
|
538
|
+
showValues: K,
|
|
538
539
|
showTicks: Y,
|
|
539
540
|
leftMargin: ie,
|
|
540
541
|
rightMargin: D,
|
|
541
542
|
topMargin: ae,
|
|
542
543
|
bottomMargin: le,
|
|
543
|
-
truncateBy:
|
|
544
|
+
truncateBy: oe,
|
|
544
545
|
showLabels: J,
|
|
545
|
-
tooltip:
|
|
546
|
+
tooltip: se,
|
|
546
547
|
onSeriesMouseOver: E,
|
|
547
548
|
refValues: xe,
|
|
548
549
|
maxValue: q(y) ? Math.max(
|
|
@@ -557,22 +558,22 @@ function ut(fe) {
|
|
|
557
558
|
) : x,
|
|
558
559
|
highlightedDataPoints: C,
|
|
559
560
|
onSeriesMouseClick: w,
|
|
560
|
-
labelOrder:
|
|
561
|
-
rtl:
|
|
562
|
-
maxBarThickness:
|
|
563
|
-
minBarThickness:
|
|
561
|
+
labelOrder: I,
|
|
562
|
+
rtl: S === "he" || S === "ar",
|
|
563
|
+
maxBarThickness: T,
|
|
564
|
+
minBarThickness: ne,
|
|
564
565
|
resetSelectionOnDoubleClick: H,
|
|
565
|
-
detailsOnClick:
|
|
566
|
-
barAxisTitle:
|
|
566
|
+
detailsOnClick: ee,
|
|
567
|
+
barAxisTitle: N,
|
|
567
568
|
noOfTicks: P,
|
|
568
569
|
valueColor: m,
|
|
569
570
|
classNames: f,
|
|
570
571
|
styles: k,
|
|
571
572
|
animate: u === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : u || { duration: 0, once: !0, amount: 0 },
|
|
572
573
|
dimmedOpacity: n,
|
|
573
|
-
precision:
|
|
574
|
-
customLayers:
|
|
575
|
-
naLabel:
|
|
574
|
+
precision: s,
|
|
575
|
+
customLayers: l,
|
|
576
|
+
naLabel: a
|
|
576
577
|
}
|
|
577
578
|
) : null
|
|
578
579
|
}
|
|
@@ -599,76 +600,76 @@ function ut(fe) {
|
|
|
599
600
|
}
|
|
600
601
|
);
|
|
601
602
|
}
|
|
602
|
-
function
|
|
603
|
+
function gt(fe) {
|
|
603
604
|
const {
|
|
604
605
|
data: o,
|
|
605
606
|
barColors: g,
|
|
606
607
|
barPadding: G,
|
|
607
|
-
showTicks:
|
|
608
|
+
showTicks: A,
|
|
608
609
|
leftMargin: X,
|
|
609
610
|
truncateBy: me,
|
|
610
611
|
width: ue,
|
|
611
612
|
height: ge,
|
|
612
|
-
suffix:
|
|
613
|
+
suffix: K,
|
|
613
614
|
prefix: Y,
|
|
614
615
|
showValues: ie,
|
|
615
616
|
rightMargin: D,
|
|
616
|
-
topMargin:
|
|
617
|
+
topMargin: oe,
|
|
617
618
|
bottomMargin: he,
|
|
618
619
|
showLabels: j,
|
|
619
620
|
tooltip: _,
|
|
620
621
|
onSeriesMouseOver: U,
|
|
621
|
-
refValues:
|
|
622
|
+
refValues: Q,
|
|
622
623
|
maxValue: C,
|
|
623
624
|
minValue: p,
|
|
624
625
|
onSeriesMouseClick: F,
|
|
625
626
|
selectedColor: ae,
|
|
626
627
|
rtl: le,
|
|
627
628
|
labelOrder: J,
|
|
628
|
-
maxBarThickness:
|
|
629
|
-
resetSelectionOnDoubleClick:
|
|
629
|
+
maxBarThickness: Z,
|
|
630
|
+
resetSelectionOnDoubleClick: se,
|
|
630
631
|
detailsOnClick: E,
|
|
631
632
|
barAxisTitle: xe,
|
|
632
633
|
valueColor: de,
|
|
633
|
-
noOfTicks:
|
|
634
|
+
noOfTicks: $,
|
|
634
635
|
styles: y,
|
|
635
636
|
classNames: x,
|
|
636
637
|
animate: w,
|
|
637
|
-
colorDomain:
|
|
638
|
-
precision:
|
|
639
|
-
customLayers:
|
|
640
|
-
naLabel:
|
|
641
|
-
} = fe,
|
|
638
|
+
colorDomain: z,
|
|
639
|
+
precision: M,
|
|
640
|
+
customLayers: O,
|
|
641
|
+
naLabel: I
|
|
642
|
+
} = fe, S = Me(null), b = Ee(S, {
|
|
642
643
|
once: w.once,
|
|
643
644
|
amount: w.amount
|
|
644
645
|
}), v = {
|
|
645
|
-
top: xe ?
|
|
646
|
+
top: xe ? oe + 25 : oe,
|
|
646
647
|
bottom: he,
|
|
647
648
|
left: X,
|
|
648
649
|
right: D
|
|
649
|
-
}, [R,
|
|
650
|
-
...
|
|
651
|
-
id: J ? `${
|
|
652
|
-
})), f = J || k.map((
|
|
650
|
+
}, [R, T] = L(void 0), [V, ne] = L(void 0), [W, H] = L(void 0), [ee, N] = L(void 0), P = ue - v.left - v.right, m = ge - v.top - v.bottom, k = o.map((l, t) => ({
|
|
651
|
+
...l,
|
|
652
|
+
id: J ? `${l.label}` : `${t}`
|
|
653
|
+
})), f = J || k.map((l) => `${l.id}`), d = Re().domain([p, C]).range([0, P]).nice(), u = Ie().domain(f).range([
|
|
653
654
|
0,
|
|
654
|
-
|
|
655
|
-
]).paddingInner(G), n = Ie().domain(o[0].size.map((
|
|
655
|
+
Z ? Math.min(m, Z * f.length) : m
|
|
656
|
+
]).paddingInner(G), n = Ie().domain(o[0].size.map((l, t) => `${t}`)).range([0, u.bandwidth()]).paddingInner(0.1), s = d.ticks($);
|
|
656
657
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
657
658
|
/* @__PURE__ */ e.jsx(
|
|
658
659
|
pe.svg,
|
|
659
660
|
{
|
|
660
|
-
ref:
|
|
661
|
+
ref: S,
|
|
661
662
|
width: `${ue}px`,
|
|
662
663
|
height: `${ge}px`,
|
|
663
664
|
viewBox: `0 0 ${ue} ${ge}`,
|
|
664
665
|
direction: "ltr",
|
|
665
666
|
children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${v.left},${v.top})`, children: [
|
|
666
|
-
|
|
667
|
-
|
|
667
|
+
A ? /* @__PURE__ */ e.jsx(
|
|
668
|
+
rt,
|
|
668
669
|
{
|
|
669
|
-
values:
|
|
670
|
-
x:
|
|
671
|
-
y1: 0 -
|
|
670
|
+
values: s.filter((l) => l !== 0),
|
|
671
|
+
x: s.filter((l) => l !== 0).map((l) => d(l)),
|
|
672
|
+
y1: 0 - oe,
|
|
672
673
|
y2: m + v.bottom,
|
|
673
674
|
styles: {
|
|
674
675
|
gridLines: y?.xAxis?.gridLines,
|
|
@@ -678,11 +679,11 @@ function mt(fe) {
|
|
|
678
679
|
gridLines: x?.xAxis?.gridLines,
|
|
679
680
|
labels: x?.xAxis?.labels
|
|
680
681
|
},
|
|
681
|
-
suffix:
|
|
682
|
+
suffix: K,
|
|
682
683
|
prefix: Y,
|
|
683
684
|
labelType: "secondary",
|
|
684
685
|
showGridLines: !0,
|
|
685
|
-
precision:
|
|
686
|
+
precision: M
|
|
686
687
|
}
|
|
687
688
|
) : null,
|
|
688
689
|
/* @__PURE__ */ e.jsx(
|
|
@@ -695,20 +696,20 @@ function mt(fe) {
|
|
|
695
696
|
text: xe
|
|
696
697
|
}
|
|
697
698
|
),
|
|
698
|
-
|
|
699
|
+
O.filter((l) => l.position === "before").map((l) => l.layer),
|
|
699
700
|
/* @__PURE__ */ e.jsxs(qe, { children: [
|
|
700
701
|
k.map(
|
|
701
|
-
(
|
|
702
|
+
(l) => q(u(l.id)) ? null : /* @__PURE__ */ e.jsxs(
|
|
702
703
|
pe.g,
|
|
703
704
|
{
|
|
704
705
|
variants: {
|
|
705
706
|
initial: {
|
|
706
707
|
x: 0,
|
|
707
|
-
y: u(`${
|
|
708
|
+
y: u(`${l.id}`)
|
|
708
709
|
},
|
|
709
710
|
whileInView: {
|
|
710
711
|
x: 0,
|
|
711
|
-
y: u(`${
|
|
712
|
+
y: u(`${l.id}`),
|
|
712
713
|
transition: { duration: w.duration }
|
|
713
714
|
}
|
|
714
715
|
},
|
|
@@ -716,38 +717,38 @@ function mt(fe) {
|
|
|
716
717
|
animate: b ? "whileInView" : "initial",
|
|
717
718
|
exit: { opacity: 0, transition: { duration: w.duration } },
|
|
718
719
|
children: [
|
|
719
|
-
|
|
720
|
+
l.size.map((t, a) => /* @__PURE__ */ e.jsxs(
|
|
720
721
|
pe.g,
|
|
721
722
|
{
|
|
722
723
|
className: "undp-viz-g-with-hover",
|
|
723
|
-
opacity: ae ? g[
|
|
724
|
+
opacity: ae ? g[a] === ae ? 1 : 0.3 : 0.85,
|
|
724
725
|
onMouseEnter: (h) => {
|
|
725
|
-
|
|
726
|
+
T({ ...l, sizeIndex: a }), N(h.clientY), H(h.clientX), U?.({ ...l, sizeIndex: a });
|
|
726
727
|
},
|
|
727
728
|
onMouseMove: (h) => {
|
|
728
|
-
|
|
729
|
+
T({ ...l, sizeIndex: a }), N(h.clientY), H(h.clientX);
|
|
729
730
|
},
|
|
730
731
|
onMouseLeave: () => {
|
|
731
|
-
|
|
732
|
+
T(void 0), H(void 0), N(void 0), U?.(void 0);
|
|
732
733
|
},
|
|
733
734
|
onClick: () => {
|
|
734
|
-
(F || E) && (Pe(
|
|
735
|
+
(F || E) && (Pe(V, { ...l, sizeIndex: a }) && se ? (ne(void 0), F?.(void 0)) : (ne({ ...l, sizeIndex: a }), F && F({ ...l, sizeIndex: a })));
|
|
735
736
|
},
|
|
736
737
|
children: [
|
|
737
738
|
q(t) ? null : /* @__PURE__ */ e.jsx(
|
|
738
739
|
pe.rect,
|
|
739
740
|
{
|
|
740
|
-
y: n(`${
|
|
741
|
+
y: n(`${a}`),
|
|
741
742
|
variants: {
|
|
742
743
|
initial: {
|
|
743
744
|
width: 0,
|
|
744
745
|
x: d(0),
|
|
745
|
-
fill: g[
|
|
746
|
+
fill: g[a]
|
|
746
747
|
},
|
|
747
748
|
whileInView: {
|
|
748
749
|
width: q(t) ? 0 : t >= 0 ? d(t) - d(0) : d(0) - d(t),
|
|
749
750
|
x: t >= 0 ? d(0) : d(t),
|
|
750
|
-
fill: g[
|
|
751
|
+
fill: g[a],
|
|
751
752
|
transition: { duration: w.duration }
|
|
752
753
|
}
|
|
753
754
|
},
|
|
@@ -764,9 +765,9 @@ function mt(fe) {
|
|
|
764
765
|
ie ? /* @__PURE__ */ e.jsx(
|
|
765
766
|
pe.text,
|
|
766
767
|
{
|
|
767
|
-
y: n(`${
|
|
768
|
+
y: n(`${a}`) + n.bandwidth() / 2,
|
|
768
769
|
style: {
|
|
769
|
-
fill: de || g[
|
|
770
|
+
fill: de || g[a],
|
|
770
771
|
textAnchor: t && t < 0 ? "end" : "start",
|
|
771
772
|
...y?.graphObjectValues || {}
|
|
772
773
|
},
|
|
@@ -787,17 +788,17 @@ function mt(fe) {
|
|
|
787
788
|
opacity: 0,
|
|
788
789
|
transition: { duration: w.duration }
|
|
789
790
|
},
|
|
790
|
-
children:
|
|
791
|
+
children: $e(t, I, M, Y, K)
|
|
791
792
|
}
|
|
792
793
|
) : null
|
|
793
794
|
]
|
|
794
795
|
},
|
|
795
|
-
`${
|
|
796
|
+
`${l.label}-${z[a] || a}`
|
|
796
797
|
)),
|
|
797
798
|
j ? /* @__PURE__ */ e.jsx(
|
|
798
|
-
|
|
799
|
+
ot,
|
|
799
800
|
{
|
|
800
|
-
value: `${
|
|
801
|
+
value: `${l.label}`.length < me ? `${l.label}` : `${`${l.label}`.substring(0, me)}...`,
|
|
801
802
|
y: 0,
|
|
802
803
|
x: 0 - v.left,
|
|
803
804
|
width: d(p < 0 ? 0 : p) + v.left,
|
|
@@ -810,7 +811,7 @@ function mt(fe) {
|
|
|
810
811
|
) : null
|
|
811
812
|
]
|
|
812
813
|
},
|
|
813
|
-
|
|
814
|
+
l.label
|
|
814
815
|
)
|
|
815
816
|
),
|
|
816
817
|
/* @__PURE__ */ e.jsx(
|
|
@@ -824,165 +825,165 @@ function mt(fe) {
|
|
|
824
825
|
styles: { axis: y?.yAxis?.axis }
|
|
825
826
|
}
|
|
826
827
|
),
|
|
827
|
-
|
|
828
|
-
|
|
828
|
+
Q ? /* @__PURE__ */ e.jsx(e.Fragment, { children: Q.map((l, t) => /* @__PURE__ */ e.jsx(
|
|
829
|
+
nt,
|
|
829
830
|
{
|
|
830
|
-
text:
|
|
831
|
-
color:
|
|
832
|
-
x: d(
|
|
831
|
+
text: l.text,
|
|
832
|
+
color: l.color,
|
|
833
|
+
x: d(l.value),
|
|
833
834
|
y1: 0 - v.top,
|
|
834
835
|
y2: m + v.bottom,
|
|
835
|
-
textSide: d(
|
|
836
|
-
classNames:
|
|
837
|
-
styles:
|
|
836
|
+
textSide: d(l.value) > P * 0.75 || le ? "left" : "right",
|
|
837
|
+
classNames: l.classNames,
|
|
838
|
+
styles: l.styles,
|
|
838
839
|
animate: w,
|
|
839
840
|
isInView: b
|
|
840
841
|
},
|
|
841
842
|
t
|
|
842
843
|
)) }) : null
|
|
843
844
|
] }),
|
|
844
|
-
|
|
845
|
+
O.filter((l) => l.position === "after").map((l) => l.layer)
|
|
845
846
|
] })
|
|
846
847
|
}
|
|
847
848
|
),
|
|
848
|
-
R && _ && W &&
|
|
849
|
+
R && _ && W && ee ? /* @__PURE__ */ e.jsx(
|
|
849
850
|
Ge,
|
|
850
851
|
{
|
|
851
852
|
data: R,
|
|
852
853
|
body: _,
|
|
853
854
|
xPos: W,
|
|
854
|
-
yPos:
|
|
855
|
+
yPos: ee,
|
|
855
856
|
backgroundStyle: y?.tooltip,
|
|
856
857
|
className: x?.tooltip
|
|
857
858
|
}
|
|
858
859
|
) : null,
|
|
859
|
-
E &&
|
|
860
|
+
E && V !== void 0 ? /* @__PURE__ */ e.jsx(
|
|
860
861
|
We,
|
|
861
862
|
{
|
|
862
|
-
open:
|
|
863
|
+
open: V !== void 0,
|
|
863
864
|
onClose: () => {
|
|
864
|
-
|
|
865
|
+
ne(void 0);
|
|
865
866
|
},
|
|
866
867
|
children: /* @__PURE__ */ e.jsx(
|
|
867
868
|
"div",
|
|
868
869
|
{
|
|
869
870
|
className: "graph-modal-content m-0",
|
|
870
|
-
dangerouslySetInnerHTML: typeof E == "string" ? { __html: Xe(E,
|
|
871
|
-
children: typeof E == "function" ? E(
|
|
871
|
+
dangerouslySetInnerHTML: typeof E == "string" ? { __html: Xe(E, V) } : void 0,
|
|
872
|
+
children: typeof E == "function" ? E(V) : null
|
|
872
873
|
}
|
|
873
874
|
)
|
|
874
875
|
}
|
|
875
876
|
) : null
|
|
876
877
|
] });
|
|
877
878
|
}
|
|
878
|
-
function
|
|
879
|
+
function xt(fe) {
|
|
879
880
|
const {
|
|
880
881
|
data: o,
|
|
881
882
|
graphTitle: g,
|
|
882
883
|
colors: G = je.light.categoricalColors.colors,
|
|
883
|
-
sources:
|
|
884
|
+
sources: A,
|
|
884
885
|
graphDescription: X,
|
|
885
886
|
barPadding: me = 0.25,
|
|
886
887
|
showTicks: ue = !0,
|
|
887
888
|
truncateBy: ge = 999,
|
|
888
|
-
height:
|
|
889
|
+
height: K,
|
|
889
890
|
width: Y,
|
|
890
891
|
footNote: ie,
|
|
891
892
|
colorDomain: D,
|
|
892
|
-
colorLegendTitle:
|
|
893
|
+
colorLegendTitle: oe,
|
|
893
894
|
suffix: he = "",
|
|
894
895
|
prefix: j = "",
|
|
895
896
|
showValues: _ = !0,
|
|
896
897
|
showColorScale: U = !0,
|
|
897
|
-
padding:
|
|
898
|
+
padding: Q,
|
|
898
899
|
backgroundColor: C = !1,
|
|
899
900
|
leftMargin: p = 100,
|
|
900
901
|
rightMargin: F = 40,
|
|
901
902
|
topMargin: ae = 25,
|
|
902
903
|
bottomMargin: le = 10,
|
|
903
904
|
showLabels: J = !0,
|
|
904
|
-
relativeHeight:
|
|
905
|
-
tooltip:
|
|
905
|
+
relativeHeight: Z,
|
|
906
|
+
tooltip: se,
|
|
906
907
|
onSeriesMouseOver: E,
|
|
907
908
|
refValues: xe,
|
|
908
909
|
graphID: de,
|
|
909
|
-
maxValue:
|
|
910
|
+
maxValue: $,
|
|
910
911
|
minValue: y,
|
|
911
912
|
onSeriesMouseClick: x,
|
|
912
913
|
graphDownload: w = !1,
|
|
913
|
-
dataDownload:
|
|
914
|
-
language:
|
|
915
|
-
labelOrder:
|
|
916
|
-
minHeight:
|
|
917
|
-
theme:
|
|
914
|
+
dataDownload: z = !1,
|
|
915
|
+
language: M = "en",
|
|
916
|
+
labelOrder: O,
|
|
917
|
+
minHeight: I = 0,
|
|
918
|
+
theme: S = "light",
|
|
918
919
|
maxBarThickness: b,
|
|
919
920
|
ariaLabel: v,
|
|
920
921
|
resetSelectionOnDoubleClick: R = !0,
|
|
921
|
-
detailsOnClick:
|
|
922
|
-
barAxisTitle:
|
|
923
|
-
noOfTicks:
|
|
922
|
+
detailsOnClick: T,
|
|
923
|
+
barAxisTitle: V,
|
|
924
|
+
noOfTicks: ne = 5,
|
|
924
925
|
valueColor: W,
|
|
925
926
|
styles: H,
|
|
926
|
-
classNames:
|
|
927
|
-
filterNA:
|
|
927
|
+
classNames: ee,
|
|
928
|
+
filterNA: N = !0,
|
|
928
929
|
animate: P = !1,
|
|
929
930
|
precision: m = 2,
|
|
930
931
|
customLayers: k = [],
|
|
931
932
|
timeline: f = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
|
|
932
933
|
naLabel: d = "NA"
|
|
933
|
-
} = fe, [u, n] =
|
|
934
|
+
} = fe, [u, n] = L(0), [s, l] = L(0), [t, a] = L(f.autoplay), h = Be(
|
|
934
935
|
Te(
|
|
935
936
|
o.filter((c) => c.date !== void 0 && c.date !== null),
|
|
936
937
|
(c) => c.date
|
|
937
938
|
).map((c) => Se(`${c.date}`, f.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()),
|
|
938
939
|
(c, te) => tt(c, te)
|
|
939
|
-
), [
|
|
940
|
+
), [ve, Oe] = L(f.autoplay ? 0 : h.length - 1), [ce, be] = L(void 0), we = Me(null), re = Me(null);
|
|
940
941
|
ze(() => {
|
|
941
942
|
const c = new ResizeObserver((te) => {
|
|
942
|
-
n(Y || te[0].target.clientWidth || 620),
|
|
943
|
+
n(Y || te[0].target.clientWidth || 620), l(K || te[0].target.clientHeight || 480);
|
|
943
944
|
});
|
|
944
|
-
return
|
|
945
|
-
}, [Y,
|
|
945
|
+
return we.current && (l(we.current.clientHeight || 480), n(we.current.clientWidth || 620), Y || c.observe(we.current)), () => c.disconnect();
|
|
946
|
+
}, [Y, K]), ze(() => {
|
|
946
947
|
const c = setInterval(
|
|
947
948
|
() => {
|
|
948
|
-
|
|
949
|
+
Oe((te) => te < h.length - 1 ? te + 1 : 0);
|
|
949
950
|
},
|
|
950
951
|
(f.speed || 2) * 1e3
|
|
951
952
|
);
|
|
952
953
|
return t || clearInterval(c), () => clearInterval(c);
|
|
953
954
|
}, [h, t, f.speed]);
|
|
954
|
-
const
|
|
955
|
+
const Ce = Fe(
|
|
955
956
|
h,
|
|
956
|
-
|
|
957
|
+
ve,
|
|
957
958
|
f.showOnlyActiveDate,
|
|
958
959
|
f.dateFormat || "yyyy"
|
|
959
960
|
);
|
|
960
961
|
return /* @__PURE__ */ e.jsx(
|
|
961
962
|
"div",
|
|
962
963
|
{
|
|
963
|
-
className: `${
|
|
964
|
-
dir:
|
|
964
|
+
className: `${S || "light"} flex ${Y ? "w-fit grow-0" : "w-full grow"}`,
|
|
965
|
+
dir: M === "he" || M === "ar" ? "rtl" : void 0,
|
|
965
966
|
children: /* @__PURE__ */ e.jsx(
|
|
966
967
|
"div",
|
|
967
968
|
{
|
|
968
969
|
className: Ne(
|
|
969
|
-
`${C ? C === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${
|
|
970
|
-
|
|
970
|
+
`${C ? C === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${M || "en"}`,
|
|
971
|
+
ee?.graphContainer
|
|
971
972
|
),
|
|
972
973
|
style: {
|
|
973
974
|
...H?.graphContainer || {},
|
|
974
975
|
...C && C !== !0 ? { backgroundColor: C } : {}
|
|
975
976
|
},
|
|
976
977
|
id: de,
|
|
977
|
-
ref:
|
|
978
|
+
ref: re,
|
|
978
979
|
"aria-label": v || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${X ? ` ${X}` : ""}`,
|
|
979
980
|
children: /* @__PURE__ */ e.jsx(
|
|
980
981
|
"div",
|
|
981
982
|
{
|
|
982
983
|
className: "flex grow",
|
|
983
|
-
style: { padding: C ?
|
|
984
|
+
style: { padding: C ? Q || "1rem" : Q || 0 },
|
|
984
985
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 w-full grow justify-between", children: [
|
|
985
|
-
g || X || w ||
|
|
986
|
+
g || X || w || z ? /* @__PURE__ */ e.jsx(
|
|
986
987
|
Je,
|
|
987
988
|
{
|
|
988
989
|
styles: {
|
|
@@ -990,23 +991,23 @@ function gt(fe) {
|
|
|
990
991
|
description: H?.description
|
|
991
992
|
},
|
|
992
993
|
classNames: {
|
|
993
|
-
title:
|
|
994
|
-
description:
|
|
994
|
+
title: ee?.title,
|
|
995
|
+
description: ee?.description
|
|
995
996
|
},
|
|
996
997
|
graphTitle: g,
|
|
997
998
|
graphDescription: X,
|
|
998
999
|
width: Y,
|
|
999
|
-
graphDownload: w ?
|
|
1000
|
-
dataDownload:
|
|
1000
|
+
graphDownload: w ? re.current : void 0,
|
|
1001
|
+
dataDownload: z ? o.map((c) => c.data).filter((c) => c !== void 0).length > 0 ? o.map((c) => c.data).filter((c) => c !== void 0) : o.filter((c) => c !== void 0) : null
|
|
1001
1002
|
}
|
|
1002
1003
|
) : null,
|
|
1003
|
-
f.enabled && h.length > 0 &&
|
|
1004
|
+
f.enabled && h.length > 0 && Ce ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
1004
1005
|
/* @__PURE__ */ e.jsx(
|
|
1005
1006
|
"button",
|
|
1006
1007
|
{
|
|
1007
1008
|
type: "button",
|
|
1008
1009
|
onClick: () => {
|
|
1009
|
-
|
|
1010
|
+
a(!t);
|
|
1010
1011
|
},
|
|
1011
1012
|
className: "p-0 border-0 cursor-pointer bg-transparent",
|
|
1012
1013
|
"aria-label": t ? "Click to pause animation" : "Click to play animation",
|
|
@@ -1018,15 +1019,15 @@ function gt(fe) {
|
|
|
1018
1019
|
{
|
|
1019
1020
|
min: h[0],
|
|
1020
1021
|
max: h[h.length - 1],
|
|
1021
|
-
marks:
|
|
1022
|
+
marks: Ce,
|
|
1022
1023
|
step: null,
|
|
1023
1024
|
defaultValue: h[h.length - 1],
|
|
1024
|
-
value: h[
|
|
1025
|
+
value: h[ve],
|
|
1025
1026
|
onChangeComplete: (c) => {
|
|
1026
|
-
|
|
1027
|
+
Oe(h.indexOf(c));
|
|
1027
1028
|
},
|
|
1028
1029
|
onChange: (c) => {
|
|
1029
|
-
|
|
1030
|
+
Oe(h.indexOf(c));
|
|
1030
1031
|
},
|
|
1031
1032
|
"aria-label": "Time slider. Use arrow keys to adjust selected time period."
|
|
1032
1033
|
}
|
|
@@ -1039,28 +1040,28 @@ function gt(fe) {
|
|
|
1039
1040
|
width: Y,
|
|
1040
1041
|
colorDomain: D,
|
|
1041
1042
|
colors: G,
|
|
1042
|
-
colorLegendTitle:
|
|
1043
|
-
setSelectedColor:
|
|
1043
|
+
colorLegendTitle: oe,
|
|
1044
|
+
setSelectedColor: be,
|
|
1044
1045
|
showNAColor: !1
|
|
1045
1046
|
}
|
|
1046
1047
|
) : null,
|
|
1047
|
-
/* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref:
|
|
1048
|
-
|
|
1048
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: we, "aria-label": "Graph area", children: (Y || u) && (K || s) ? /* @__PURE__ */ e.jsx(
|
|
1049
|
+
gt,
|
|
1049
1050
|
{
|
|
1050
|
-
data:
|
|
1051
|
+
data: Ae(
|
|
1051
1052
|
o,
|
|
1052
1053
|
f.dateFormat || "yyyy"
|
|
1053
1054
|
).filter(
|
|
1054
|
-
(c) => f.enabled ? c.date ===
|
|
1055
|
-
new Date(h[
|
|
1055
|
+
(c) => f.enabled ? c.date === De(
|
|
1056
|
+
new Date(h[ve]),
|
|
1056
1057
|
f.dateFormat || "yyyy"
|
|
1057
1058
|
) : c
|
|
1058
|
-
).filter((c) =>
|
|
1059
|
+
).filter((c) => N ? !c.size.every((te) => te == null) : c),
|
|
1059
1060
|
barColors: G,
|
|
1060
1061
|
width: Y || u,
|
|
1061
1062
|
height: Math.max(
|
|
1062
|
-
|
|
1063
|
-
|
|
1063
|
+
I,
|
|
1064
|
+
K || (Z ? I ? (Y || u) * Z > I ? (Y || u) * Z : I : (Y || u) * Z : s)
|
|
1064
1065
|
),
|
|
1065
1066
|
suffix: he,
|
|
1066
1067
|
prefix: j,
|
|
@@ -1073,10 +1074,10 @@ function gt(fe) {
|
|
|
1073
1074
|
bottomMargin: le,
|
|
1074
1075
|
truncateBy: ge,
|
|
1075
1076
|
showLabels: J,
|
|
1076
|
-
tooltip:
|
|
1077
|
+
tooltip: se,
|
|
1077
1078
|
onSeriesMouseOver: E,
|
|
1078
1079
|
refValues: xe,
|
|
1079
|
-
maxValue: q(
|
|
1080
|
+
maxValue: q($) ? Math.max(
|
|
1080
1081
|
...o.map(
|
|
1081
1082
|
(c) => Math.max(
|
|
1082
1083
|
...c.size.filter(
|
|
@@ -1092,7 +1093,7 @@ function gt(fe) {
|
|
|
1092
1093
|
)
|
|
1093
1094
|
)
|
|
1094
1095
|
)
|
|
1095
|
-
) :
|
|
1096
|
+
) : $,
|
|
1096
1097
|
minValue: q(y) ? Math.min(
|
|
1097
1098
|
...o.map(
|
|
1098
1099
|
(c) => Math.min(
|
|
@@ -1111,17 +1112,17 @@ function gt(fe) {
|
|
|
1111
1112
|
)
|
|
1112
1113
|
) : y,
|
|
1113
1114
|
onSeriesMouseClick: x,
|
|
1114
|
-
selectedColor:
|
|
1115
|
-
labelOrder:
|
|
1116
|
-
rtl:
|
|
1115
|
+
selectedColor: ce,
|
|
1116
|
+
labelOrder: O,
|
|
1117
|
+
rtl: M === "he" || M === "ar",
|
|
1117
1118
|
maxBarThickness: b,
|
|
1118
1119
|
resetSelectionOnDoubleClick: R,
|
|
1119
|
-
detailsOnClick:
|
|
1120
|
-
barAxisTitle:
|
|
1121
|
-
noOfTicks:
|
|
1120
|
+
detailsOnClick: T,
|
|
1121
|
+
barAxisTitle: V,
|
|
1122
|
+
noOfTicks: ne,
|
|
1122
1123
|
valueColor: W,
|
|
1123
1124
|
styles: H,
|
|
1124
|
-
classNames:
|
|
1125
|
+
classNames: ee,
|
|
1125
1126
|
colorDomain: D,
|
|
1126
1127
|
animate: P === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : P || { duration: 0, once: !0, amount: 0 },
|
|
1127
1128
|
precision: m,
|
|
@@ -1130,15 +1131,15 @@ function gt(fe) {
|
|
|
1130
1131
|
}
|
|
1131
1132
|
) : null })
|
|
1132
1133
|
] }) }),
|
|
1133
|
-
|
|
1134
|
+
A || ie ? /* @__PURE__ */ e.jsx(
|
|
1134
1135
|
Ue,
|
|
1135
1136
|
{
|
|
1136
1137
|
styles: { footnote: H?.footnote, source: H?.source },
|
|
1137
1138
|
classNames: {
|
|
1138
|
-
footnote:
|
|
1139
|
-
source:
|
|
1139
|
+
footnote: ee?.footnote,
|
|
1140
|
+
source: ee?.source
|
|
1140
1141
|
},
|
|
1141
|
-
sources:
|
|
1142
|
+
sources: A,
|
|
1142
1143
|
footNote: ie,
|
|
1143
1144
|
width: Y
|
|
1144
1145
|
}
|
|
@@ -1151,46 +1152,46 @@ function gt(fe) {
|
|
|
1151
1152
|
}
|
|
1152
1153
|
);
|
|
1153
1154
|
}
|
|
1154
|
-
function
|
|
1155
|
+
function pt(fe) {
|
|
1155
1156
|
const {
|
|
1156
1157
|
data: o,
|
|
1157
1158
|
barColors: g,
|
|
1158
1159
|
barPadding: G,
|
|
1159
|
-
showTicks:
|
|
1160
|
+
showTicks: A,
|
|
1160
1161
|
leftMargin: X,
|
|
1161
1162
|
rightMargin: me,
|
|
1162
1163
|
truncateBy: ue,
|
|
1163
1164
|
width: ge,
|
|
1164
|
-
height:
|
|
1165
|
+
height: K,
|
|
1165
1166
|
topMargin: Y,
|
|
1166
1167
|
bottomMargin: ie,
|
|
1167
1168
|
tooltip: D,
|
|
1168
|
-
onSeriesMouseOver:
|
|
1169
|
+
onSeriesMouseOver: oe,
|
|
1169
1170
|
showLabels: he,
|
|
1170
1171
|
suffix: j,
|
|
1171
1172
|
prefix: _,
|
|
1172
1173
|
showValues: U,
|
|
1173
|
-
refValues:
|
|
1174
|
+
refValues: Q,
|
|
1174
1175
|
maxValue: C,
|
|
1175
1176
|
onSeriesMouseClick: p,
|
|
1176
1177
|
selectedColor: F,
|
|
1177
1178
|
rtl: ae,
|
|
1178
1179
|
labelOrder: le,
|
|
1179
1180
|
maxBarThickness: J,
|
|
1180
|
-
minBarThickness:
|
|
1181
|
-
resetSelectionOnDoubleClick:
|
|
1181
|
+
minBarThickness: Z,
|
|
1182
|
+
resetSelectionOnDoubleClick: se,
|
|
1182
1183
|
detailsOnClick: E,
|
|
1183
1184
|
barAxisTitle: xe,
|
|
1184
1185
|
valueColor: de,
|
|
1185
|
-
noOfTicks:
|
|
1186
|
+
noOfTicks: $,
|
|
1186
1187
|
styles: y,
|
|
1187
1188
|
classNames: x,
|
|
1188
1189
|
animate: w,
|
|
1189
|
-
colorDomain:
|
|
1190
|
-
precision:
|
|
1191
|
-
customLayers:
|
|
1192
|
-
naLabel:
|
|
1193
|
-
} = fe,
|
|
1190
|
+
colorDomain: z,
|
|
1191
|
+
precision: M,
|
|
1192
|
+
customLayers: O,
|
|
1193
|
+
naLabel: I
|
|
1194
|
+
} = fe, S = Me(null), b = Ee(S, {
|
|
1194
1195
|
once: w.once,
|
|
1195
1196
|
amount: w.amount
|
|
1196
1197
|
}), v = {
|
|
@@ -1198,28 +1199,28 @@ function xt(fe) {
|
|
|
1198
1199
|
bottom: ie,
|
|
1199
1200
|
left: X,
|
|
1200
1201
|
right: me
|
|
1201
|
-
}, [R,
|
|
1202
|
-
...
|
|
1203
|
-
id: le ? `${
|
|
1204
|
-
})), f = le || k.map((
|
|
1202
|
+
}, [R, T] = L(void 0), [V, ne] = L(void 0), [W, H] = L(void 0), [ee, N] = L(void 0), P = ge - v.left - v.right, m = K - v.top - v.bottom, k = o.map((s, l) => ({
|
|
1203
|
+
...s,
|
|
1204
|
+
id: le ? `${s.label}` : `${l}`
|
|
1205
|
+
})), f = le || k.map((s) => `${s.id}`), d = Re().domain([0, C]).range([0, P]).nice(), u = Ie().domain(f).range([
|
|
1205
1206
|
0,
|
|
1206
|
-
|
|
1207
|
-
]).paddingInner(G), n = d.ticks(
|
|
1207
|
+
Z ? Math.max(m, Z * f.length) : J ? Math.min(m, J * f.length) : m
|
|
1208
|
+
]).paddingInner(G), n = d.ticks($);
|
|
1208
1209
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1209
1210
|
/* @__PURE__ */ e.jsx(
|
|
1210
1211
|
pe.svg,
|
|
1211
1212
|
{
|
|
1212
|
-
ref:
|
|
1213
|
+
ref: S,
|
|
1213
1214
|
width: `${ge}px`,
|
|
1214
|
-
height: `${
|
|
1215
|
-
viewBox: `0 0 ${ge} ${
|
|
1215
|
+
height: `${K}px`,
|
|
1216
|
+
viewBox: `0 0 ${ge} ${K}`,
|
|
1216
1217
|
direction: "ltr",
|
|
1217
1218
|
children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${v.left},${v.top})`, children: [
|
|
1218
|
-
|
|
1219
|
-
|
|
1219
|
+
A ? /* @__PURE__ */ e.jsx(
|
|
1220
|
+
rt,
|
|
1220
1221
|
{
|
|
1221
|
-
values: n.filter((
|
|
1222
|
-
x: n.filter((
|
|
1222
|
+
values: n.filter((s) => s !== 0),
|
|
1223
|
+
x: n.filter((s) => s !== 0).map((s) => d(s)),
|
|
1223
1224
|
y1: 0 - Y,
|
|
1224
1225
|
y2: m + v.bottom,
|
|
1225
1226
|
styles: {
|
|
@@ -1234,7 +1235,7 @@ function xt(fe) {
|
|
|
1234
1235
|
prefix: _,
|
|
1235
1236
|
labelType: "secondary",
|
|
1236
1237
|
showGridLines: !0,
|
|
1237
|
-
precision:
|
|
1238
|
+
precision: M
|
|
1238
1239
|
}
|
|
1239
1240
|
) : null,
|
|
1240
1241
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1247,18 +1248,18 @@ function xt(fe) {
|
|
|
1247
1248
|
text: xe
|
|
1248
1249
|
}
|
|
1249
1250
|
),
|
|
1250
|
-
|
|
1251
|
+
O.filter((s) => s.position === "before").map((s) => s.layer),
|
|
1251
1252
|
/* @__PURE__ */ e.jsxs(qe, { children: [
|
|
1252
1253
|
k.map(
|
|
1253
|
-
(
|
|
1254
|
+
(s) => q(u(s.id)) ? null : /* @__PURE__ */ e.jsxs(
|
|
1254
1255
|
pe.g,
|
|
1255
1256
|
{
|
|
1256
1257
|
className: "undp-viz-low-opacity undp-viz-g-with-hover",
|
|
1257
1258
|
variants: {
|
|
1258
|
-
initial: { x: 0, y: u(`${
|
|
1259
|
+
initial: { x: 0, y: u(`${s.id}`) },
|
|
1259
1260
|
whileInView: {
|
|
1260
1261
|
x: 0,
|
|
1261
|
-
y: u(`${
|
|
1262
|
+
y: u(`${s.id}`),
|
|
1262
1263
|
transition: { duration: w.duration }
|
|
1263
1264
|
}
|
|
1264
1265
|
},
|
|
@@ -1266,24 +1267,24 @@ function xt(fe) {
|
|
|
1266
1267
|
animate: b ? "whileInView" : "initial",
|
|
1267
1268
|
exit: { opacity: 0, transition: { duration: w.duration } },
|
|
1268
1269
|
children: [
|
|
1269
|
-
|
|
1270
|
+
s.size.map((l, t) => /* @__PURE__ */ e.jsxs(
|
|
1270
1271
|
pe.g,
|
|
1271
1272
|
{
|
|
1272
1273
|
opacity: F ? g[t] === F ? 1 : 0.3 : 1,
|
|
1273
|
-
onMouseEnter: (
|
|
1274
|
-
|
|
1274
|
+
onMouseEnter: (a) => {
|
|
1275
|
+
T({ ...s, sizeIndex: t }), N(a.clientY), H(a.clientX), oe?.({ ...s, sizeIndex: t });
|
|
1275
1276
|
},
|
|
1276
|
-
onMouseMove: (
|
|
1277
|
-
|
|
1277
|
+
onMouseMove: (a) => {
|
|
1278
|
+
T({ ...s, sizeIndex: t }), N(a.clientY), H(a.clientX);
|
|
1278
1279
|
},
|
|
1279
1280
|
onMouseLeave: () => {
|
|
1280
|
-
|
|
1281
|
+
T(void 0), H(void 0), N(void 0), oe?.(void 0);
|
|
1281
1282
|
},
|
|
1282
1283
|
onClick: () => {
|
|
1283
|
-
(p || E) && (Pe(
|
|
1284
|
+
(p || E) && (Pe(V, { ...s, sizeIndex: t }) && se ? (ne(void 0), p?.(void 0)) : (ne({ ...s, sizeIndex: t }), p && p({ ...s, sizeIndex: t })));
|
|
1284
1285
|
},
|
|
1285
1286
|
children: [
|
|
1286
|
-
|
|
1287
|
+
l ? /* @__PURE__ */ e.jsx(
|
|
1287
1288
|
pe.rect,
|
|
1288
1289
|
{
|
|
1289
1290
|
y: 0,
|
|
@@ -1301,9 +1302,9 @@ function xt(fe) {
|
|
|
1301
1302
|
fill: g[t]
|
|
1302
1303
|
},
|
|
1303
1304
|
whileInView: {
|
|
1304
|
-
width: d(
|
|
1305
|
+
width: d(l || 0),
|
|
1305
1306
|
x: d(
|
|
1306
|
-
t === 0 ? 0 : ke(
|
|
1307
|
+
t === 0 ? 0 : ke(s.size.filter((a, h) => h < t && a))
|
|
1307
1308
|
),
|
|
1308
1309
|
fill: g[t],
|
|
1309
1310
|
transition: { duration: w.duration }
|
|
@@ -1332,30 +1333,30 @@ function xt(fe) {
|
|
|
1332
1333
|
initial: {
|
|
1333
1334
|
x: d(0),
|
|
1334
1335
|
opacity: 0,
|
|
1335
|
-
fill:
|
|
1336
|
+
fill: at(g[t])
|
|
1336
1337
|
},
|
|
1337
1338
|
whileInView: {
|
|
1338
1339
|
x: d(
|
|
1339
|
-
t === 0 ? 0 : ke(
|
|
1340
|
-
) + d(
|
|
1341
|
-
opacity:
|
|
1342
|
-
fill:
|
|
1340
|
+
t === 0 ? 0 : ke(s.size.filter((a, h) => h < t && a))
|
|
1341
|
+
) + d(l || 0) / 2,
|
|
1342
|
+
opacity: l && d(l) / $e(l, I, M, _, j).length > 12 ? 1 : 0,
|
|
1343
|
+
fill: at(g[t]),
|
|
1343
1344
|
transition: { duration: w.duration }
|
|
1344
1345
|
}
|
|
1345
1346
|
},
|
|
1346
1347
|
initial: "initial",
|
|
1347
1348
|
animate: b ? "whileInView" : "initial",
|
|
1348
|
-
children:
|
|
1349
|
+
children: $e(l, I, M, _, j)
|
|
1349
1350
|
}
|
|
1350
1351
|
) : null
|
|
1351
1352
|
]
|
|
1352
1353
|
},
|
|
1353
|
-
`${
|
|
1354
|
+
`${s.label}-${z[t] || t}`
|
|
1354
1355
|
)),
|
|
1355
1356
|
he ? /* @__PURE__ */ e.jsx(
|
|
1356
|
-
|
|
1357
|
+
ot,
|
|
1357
1358
|
{
|
|
1358
|
-
value: `${
|
|
1359
|
+
value: `${s.label}`.length < ue ? `${s.label}` : `${`${s.label}`.substring(0, ue)}...`,
|
|
1359
1360
|
y: 0,
|
|
1360
1361
|
x: 0 - v.left,
|
|
1361
1362
|
width: 0 + v.left,
|
|
@@ -1388,7 +1389,7 @@ function xt(fe) {
|
|
|
1388
1389
|
opacity: 0
|
|
1389
1390
|
},
|
|
1390
1391
|
whileInView: {
|
|
1391
|
-
x: d(ke(
|
|
1392
|
+
x: d(ke(s.size.map((l) => l || 0))),
|
|
1392
1393
|
opacity: 1,
|
|
1393
1394
|
transition: { duration: w.duration }
|
|
1394
1395
|
}
|
|
@@ -1399,10 +1400,10 @@ function xt(fe) {
|
|
|
1399
1400
|
},
|
|
1400
1401
|
initial: "initial",
|
|
1401
1402
|
animate: b ? "whileInView" : "initial",
|
|
1402
|
-
children:
|
|
1403
|
-
ke(
|
|
1404
|
-
|
|
1405
|
-
|
|
1403
|
+
children: $e(
|
|
1404
|
+
ke(s.size.filter((l) => l)),
|
|
1405
|
+
I,
|
|
1406
|
+
M,
|
|
1406
1407
|
_,
|
|
1407
1408
|
j
|
|
1408
1409
|
)
|
|
@@ -1410,7 +1411,7 @@ function xt(fe) {
|
|
|
1410
1411
|
) : null
|
|
1411
1412
|
]
|
|
1412
1413
|
},
|
|
1413
|
-
|
|
1414
|
+
s.label
|
|
1414
1415
|
)
|
|
1415
1416
|
),
|
|
1416
1417
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1424,145 +1425,146 @@ function xt(fe) {
|
|
|
1424
1425
|
styles: { axis: y?.yAxis?.axis }
|
|
1425
1426
|
}
|
|
1426
1427
|
),
|
|
1427
|
-
|
|
1428
|
-
|
|
1428
|
+
Q ? /* @__PURE__ */ e.jsx(e.Fragment, { children: Q.map((s, l) => /* @__PURE__ */ e.jsx(
|
|
1429
|
+
nt,
|
|
1429
1430
|
{
|
|
1430
|
-
text:
|
|
1431
|
-
color:
|
|
1432
|
-
x: d(
|
|
1431
|
+
text: s.text,
|
|
1432
|
+
color: s.color,
|
|
1433
|
+
x: d(s.value),
|
|
1433
1434
|
y1: 0 - v.top,
|
|
1434
1435
|
y2: m + v.bottom,
|
|
1435
|
-
textSide: d(
|
|
1436
|
-
classNames:
|
|
1437
|
-
styles:
|
|
1436
|
+
textSide: d(s.value) > P * 0.75 || ae ? "left" : "right",
|
|
1437
|
+
classNames: s.classNames,
|
|
1438
|
+
styles: s.styles,
|
|
1438
1439
|
animate: w,
|
|
1439
1440
|
isInView: b
|
|
1440
1441
|
},
|
|
1441
|
-
|
|
1442
|
+
l
|
|
1442
1443
|
)) }) : null
|
|
1443
1444
|
] }),
|
|
1444
|
-
|
|
1445
|
+
O.filter((s) => s.position === "after").map((s) => s.layer)
|
|
1445
1446
|
] })
|
|
1446
1447
|
}
|
|
1447
1448
|
),
|
|
1448
|
-
R && D && W &&
|
|
1449
|
+
R && D && W && ee ? /* @__PURE__ */ e.jsx(
|
|
1449
1450
|
Ge,
|
|
1450
1451
|
{
|
|
1451
1452
|
data: R,
|
|
1452
1453
|
body: D,
|
|
1453
1454
|
xPos: W,
|
|
1454
|
-
yPos:
|
|
1455
|
+
yPos: ee,
|
|
1455
1456
|
backgroundStyle: y?.tooltip,
|
|
1456
1457
|
className: x?.tooltip
|
|
1457
1458
|
}
|
|
1458
1459
|
) : null,
|
|
1459
|
-
E &&
|
|
1460
|
+
E && V !== void 0 ? /* @__PURE__ */ e.jsx(
|
|
1460
1461
|
We,
|
|
1461
1462
|
{
|
|
1462
|
-
open:
|
|
1463
|
+
open: V !== void 0,
|
|
1463
1464
|
onClose: () => {
|
|
1464
|
-
|
|
1465
|
+
ne(void 0);
|
|
1465
1466
|
},
|
|
1466
1467
|
children: /* @__PURE__ */ e.jsx(
|
|
1467
1468
|
"div",
|
|
1468
1469
|
{
|
|
1469
1470
|
className: "graph-modal-content m-0",
|
|
1470
|
-
dangerouslySetInnerHTML: typeof E == "string" ? { __html: Xe(E,
|
|
1471
|
-
children: typeof E == "function" ? E(
|
|
1471
|
+
dangerouslySetInnerHTML: typeof E == "string" ? { __html: Xe(E, V) } : void 0,
|
|
1472
|
+
children: typeof E == "function" ? E(V) : null
|
|
1472
1473
|
}
|
|
1473
1474
|
)
|
|
1474
1475
|
}
|
|
1475
1476
|
) : null
|
|
1476
1477
|
] });
|
|
1477
1478
|
}
|
|
1478
|
-
function
|
|
1479
|
+
function ft(fe) {
|
|
1479
1480
|
const {
|
|
1480
1481
|
data: o,
|
|
1481
1482
|
graphTitle: g,
|
|
1482
1483
|
colors: G = je.light.categoricalColors.colors,
|
|
1483
|
-
sources:
|
|
1484
|
+
sources: A,
|
|
1484
1485
|
graphDescription: X,
|
|
1485
1486
|
barPadding: me = 0.25,
|
|
1486
1487
|
showTicks: ue = !0,
|
|
1487
1488
|
leftMargin: ge = 100,
|
|
1488
|
-
rightMargin:
|
|
1489
|
+
rightMargin: K = 40,
|
|
1489
1490
|
truncateBy: Y = 999,
|
|
1490
1491
|
height: ie,
|
|
1491
1492
|
width: D,
|
|
1492
|
-
footNote:
|
|
1493
|
+
footNote: oe,
|
|
1493
1494
|
colorDomain: he,
|
|
1494
1495
|
colorLegendTitle: j,
|
|
1495
1496
|
padding: _,
|
|
1496
1497
|
backgroundColor: U = !1,
|
|
1497
|
-
topMargin:
|
|
1498
|
+
topMargin: Q = 25,
|
|
1498
1499
|
bottomMargin: C = 10,
|
|
1499
1500
|
tooltip: p,
|
|
1500
1501
|
onSeriesMouseOver: F,
|
|
1501
1502
|
suffix: ae = "",
|
|
1502
1503
|
prefix: le = "",
|
|
1503
1504
|
showLabels: J = !0,
|
|
1504
|
-
relativeHeight:
|
|
1505
|
-
showValues:
|
|
1505
|
+
relativeHeight: Z,
|
|
1506
|
+
showValues: se = !0,
|
|
1506
1507
|
refValues: E,
|
|
1507
1508
|
graphID: xe,
|
|
1508
1509
|
maxValue: de,
|
|
1509
|
-
onSeriesMouseClick:
|
|
1510
|
+
onSeriesMouseClick: $,
|
|
1510
1511
|
graphDownload: y = !1,
|
|
1511
1512
|
dataDownload: x = !1,
|
|
1512
1513
|
language: w = "en",
|
|
1513
|
-
labelOrder:
|
|
1514
|
-
minHeight:
|
|
1515
|
-
theme:
|
|
1516
|
-
maxBarThickness:
|
|
1517
|
-
sortParameter:
|
|
1514
|
+
labelOrder: z,
|
|
1515
|
+
minHeight: M = 0,
|
|
1516
|
+
theme: O = "light",
|
|
1517
|
+
maxBarThickness: I,
|
|
1518
|
+
sortParameter: S,
|
|
1518
1519
|
maxNumberOfBars: b,
|
|
1519
1520
|
minBarThickness: v,
|
|
1520
1521
|
showColorScale: R = !0,
|
|
1521
|
-
ariaLabel:
|
|
1522
|
-
resetSelectionOnDoubleClick:
|
|
1523
|
-
detailsOnClick:
|
|
1522
|
+
ariaLabel: T,
|
|
1523
|
+
resetSelectionOnDoubleClick: V = !0,
|
|
1524
|
+
detailsOnClick: ne,
|
|
1524
1525
|
barAxisTitle: W,
|
|
1525
1526
|
noOfTicks: H = 5,
|
|
1526
|
-
valueColor:
|
|
1527
|
-
styles:
|
|
1527
|
+
valueColor: ee,
|
|
1528
|
+
styles: N,
|
|
1528
1529
|
classNames: P,
|
|
1529
1530
|
filterNA: m = !0,
|
|
1530
1531
|
animate: k = !1,
|
|
1531
1532
|
precision: f = 2,
|
|
1532
1533
|
customLayers: d = [],
|
|
1533
1534
|
timeline: u = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
|
|
1534
|
-
naLabel: n = "NA"
|
|
1535
|
-
|
|
1535
|
+
naLabel: n = "NA",
|
|
1536
|
+
sortData: s
|
|
1537
|
+
} = fe, [l, t] = L(0), [a, h] = L(0), [ve, Oe] = L(u.autoplay), ce = Be(
|
|
1536
1538
|
Te(
|
|
1537
1539
|
o.filter((r) => r.date !== void 0 && r.date !== null),
|
|
1538
1540
|
(r) => r.date
|
|
1539
1541
|
).map((r) => Se(`${r.date}`, u.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()),
|
|
1540
|
-
(r,
|
|
1541
|
-
), [
|
|
1542
|
+
(r, B) => tt(r, B)
|
|
1543
|
+
), [be, we] = L(u.autoplay ? 0 : ce.length - 1), [re, Ce] = L(void 0), c = Me(null), te = Me(null);
|
|
1542
1544
|
ze(() => {
|
|
1543
|
-
const r = new ResizeObserver((
|
|
1544
|
-
|
|
1545
|
+
const r = new ResizeObserver((B) => {
|
|
1546
|
+
t(D || B[0].target.clientWidth || 620), h(ie || B[0].target.clientHeight || 480);
|
|
1545
1547
|
});
|
|
1546
|
-
return
|
|
1548
|
+
return c.current && (h(c.current.clientHeight || 480), t(c.current.clientWidth || 620), D || r.observe(c.current)), () => r.disconnect();
|
|
1547
1549
|
}, [D, ie]), ze(() => {
|
|
1548
1550
|
const r = setInterval(
|
|
1549
1551
|
() => {
|
|
1550
|
-
|
|
1552
|
+
we((B) => B < ce.length - 1 ? B + 1 : 0);
|
|
1551
1553
|
},
|
|
1552
1554
|
(u.speed || 2) * 1e3
|
|
1553
1555
|
);
|
|
1554
|
-
return
|
|
1555
|
-
}, [
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1558
|
-
|
|
1556
|
+
return ve || clearInterval(r), () => clearInterval(r);
|
|
1557
|
+
}, [ce, ve, u.speed]);
|
|
1558
|
+
const Ve = Fe(
|
|
1559
|
+
ce,
|
|
1560
|
+
be,
|
|
1559
1561
|
u.showOnlyActiveDate,
|
|
1560
1562
|
u.dateFormat || "yyyy"
|
|
1561
1563
|
);
|
|
1562
1564
|
return /* @__PURE__ */ e.jsx(
|
|
1563
1565
|
"div",
|
|
1564
1566
|
{
|
|
1565
|
-
className: `${
|
|
1567
|
+
className: `${O || "light"} flex ${D ? "w-fit grow-0" : "w-full grow"}`,
|
|
1566
1568
|
dir: w === "he" || w === "ar" ? "rtl" : void 0,
|
|
1567
1569
|
children: /* @__PURE__ */ e.jsx(
|
|
1568
1570
|
"div",
|
|
@@ -1572,12 +1574,12 @@ function pt(fe) {
|
|
|
1572
1574
|
P?.graphContainer
|
|
1573
1575
|
),
|
|
1574
1576
|
style: {
|
|
1575
|
-
...
|
|
1577
|
+
...N?.graphContainer || {},
|
|
1576
1578
|
...U && U !== !0 ? { backgroundColor: U } : {}
|
|
1577
1579
|
},
|
|
1578
1580
|
id: xe,
|
|
1579
|
-
ref:
|
|
1580
|
-
"aria-label":
|
|
1581
|
+
ref: te,
|
|
1582
|
+
"aria-label": T || `${g ? `The graph shows ${g}. ` : ""}This is a stacked bar chart. ${X ? ` ${X}` : ""}`,
|
|
1581
1583
|
children: /* @__PURE__ */ e.jsx(
|
|
1582
1584
|
"div",
|
|
1583
1585
|
{
|
|
@@ -1588,8 +1590,8 @@ function pt(fe) {
|
|
|
1588
1590
|
Je,
|
|
1589
1591
|
{
|
|
1590
1592
|
styles: {
|
|
1591
|
-
title:
|
|
1592
|
-
description:
|
|
1593
|
+
title: N?.title,
|
|
1594
|
+
description: N?.description
|
|
1593
1595
|
},
|
|
1594
1596
|
classNames: {
|
|
1595
1597
|
title: P?.title,
|
|
@@ -1598,37 +1600,37 @@ function pt(fe) {
|
|
|
1598
1600
|
graphTitle: g,
|
|
1599
1601
|
graphDescription: X,
|
|
1600
1602
|
width: D,
|
|
1601
|
-
graphDownload: y ?
|
|
1603
|
+
graphDownload: y ? te.current : void 0,
|
|
1602
1604
|
dataDownload: x ? o.map((r) => r.data).filter((r) => r !== void 0).length > 0 ? o.map((r) => r.data).filter((r) => r !== void 0) : o.filter((r) => r !== void 0) : null
|
|
1603
1605
|
}
|
|
1604
1606
|
) : null,
|
|
1605
|
-
u.enabled &&
|
|
1607
|
+
u.enabled && ce.length > 0 && Ve ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
1606
1608
|
/* @__PURE__ */ e.jsx(
|
|
1607
1609
|
"button",
|
|
1608
1610
|
{
|
|
1609
1611
|
type: "button",
|
|
1610
1612
|
onClick: () => {
|
|
1611
|
-
Oe(!
|
|
1613
|
+
Oe(!ve);
|
|
1612
1614
|
},
|
|
1613
1615
|
className: "p-0 border-0 cursor-pointer bg-transparent",
|
|
1614
|
-
"aria-label":
|
|
1615
|
-
children:
|
|
1616
|
+
"aria-label": ve ? "Click to pause animation" : "Click to play animation",
|
|
1617
|
+
children: ve ? /* @__PURE__ */ e.jsx(Ze, {}) : /* @__PURE__ */ e.jsx(et, {})
|
|
1616
1618
|
}
|
|
1617
1619
|
),
|
|
1618
1620
|
/* @__PURE__ */ e.jsx(
|
|
1619
1621
|
He,
|
|
1620
1622
|
{
|
|
1621
|
-
min:
|
|
1622
|
-
max:
|
|
1623
|
-
marks:
|
|
1623
|
+
min: ce[0],
|
|
1624
|
+
max: ce[ce.length - 1],
|
|
1625
|
+
marks: Ve,
|
|
1624
1626
|
step: null,
|
|
1625
|
-
defaultValue:
|
|
1626
|
-
value:
|
|
1627
|
+
defaultValue: ce[ce.length - 1],
|
|
1628
|
+
value: ce[be],
|
|
1627
1629
|
onChangeComplete: (r) => {
|
|
1628
|
-
|
|
1630
|
+
we(ce.indexOf(r));
|
|
1629
1631
|
},
|
|
1630
1632
|
onChange: (r) => {
|
|
1631
|
-
|
|
1633
|
+
we(ce.indexOf(r));
|
|
1632
1634
|
},
|
|
1633
1635
|
"aria-label": "Time slider. Use arrow keys to adjust selected time period."
|
|
1634
1636
|
}
|
|
@@ -1642,86 +1644,88 @@ function pt(fe) {
|
|
|
1642
1644
|
colorDomain: he,
|
|
1643
1645
|
colors: G,
|
|
1644
1646
|
colorLegendTitle: j,
|
|
1645
|
-
setSelectedColor:
|
|
1647
|
+
setSelectedColor: Ce,
|
|
1646
1648
|
showNAColor: !1
|
|
1647
1649
|
}
|
|
1648
1650
|
) : null,
|
|
1649
|
-
/* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref:
|
|
1650
|
-
|
|
1651
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: c, "aria-label": "Graph area", children: (D || l) && (ie || a) ? /* @__PURE__ */ e.jsx(
|
|
1652
|
+
pt,
|
|
1651
1653
|
{
|
|
1652
|
-
data:
|
|
1653
|
-
|
|
1654
|
+
data: S !== void 0 ? S === "total" ? st(
|
|
1655
|
+
Ae(
|
|
1654
1656
|
o,
|
|
1655
1657
|
u.dateFormat || "yyyy"
|
|
1656
1658
|
).filter(
|
|
1657
|
-
(r) => u.enabled ? r.date ===
|
|
1658
|
-
new Date(
|
|
1659
|
+
(r) => u.enabled ? r.date === De(
|
|
1660
|
+
new Date(ce[be]),
|
|
1659
1661
|
u.dateFormat || "yyyy"
|
|
1660
1662
|
) : r
|
|
1661
1663
|
).filter(
|
|
1662
|
-
(r) => m ? !r.size.every((
|
|
1664
|
+
(r) => m ? !r.size.every((B) => B == null) : r
|
|
1663
1665
|
),
|
|
1664
|
-
(r) => ke(r.size.filter((
|
|
1665
|
-
|
|
1666
|
-
|
|
1666
|
+
(r) => ke(r.size.filter((B) => !q(B))),
|
|
1667
|
+
[s || "asc"]
|
|
1668
|
+
).filter((r, B) => b ? B < b : !0) : st(
|
|
1669
|
+
Ae(
|
|
1667
1670
|
o,
|
|
1668
1671
|
u.dateFormat || "yyyy"
|
|
1669
1672
|
).filter(
|
|
1670
|
-
(r) => u.enabled ? r.date ===
|
|
1671
|
-
new Date(
|
|
1673
|
+
(r) => u.enabled ? r.date === De(
|
|
1674
|
+
new Date(ce[be]),
|
|
1672
1675
|
u.dateFormat || "yyyy"
|
|
1673
1676
|
) : r
|
|
1674
1677
|
).filter(
|
|
1675
|
-
(r) => m ? !r.size.every((
|
|
1678
|
+
(r) => m ? !r.size.every((B) => B == null) : r
|
|
1676
1679
|
),
|
|
1677
|
-
(r) => q(r.size[
|
|
1678
|
-
|
|
1680
|
+
(r) => q(r.size[S]) ? -1 / 0 : r.size[S],
|
|
1681
|
+
[s || "asc"]
|
|
1682
|
+
).filter((r, B) => b ? B < b : !0) : Ae(
|
|
1679
1683
|
o,
|
|
1680
1684
|
u.dateFormat || "yyyy"
|
|
1681
1685
|
).filter(
|
|
1682
|
-
(r) => u.enabled ? r.date ===
|
|
1683
|
-
new Date(
|
|
1686
|
+
(r) => u.enabled ? r.date === De(
|
|
1687
|
+
new Date(ce[be]),
|
|
1684
1688
|
u.dateFormat || "yyyy"
|
|
1685
1689
|
) : r
|
|
1686
|
-
).filter((r) => m ? !r.size.every((
|
|
1690
|
+
).filter((r) => m ? !r.size.every((B) => B == null) : r).filter((r, B) => b ? B < b : !0),
|
|
1687
1691
|
barColors: G,
|
|
1688
|
-
width: D ||
|
|
1692
|
+
width: D || l,
|
|
1689
1693
|
height: Math.max(
|
|
1690
|
-
|
|
1691
|
-
ie || (
|
|
1694
|
+
M,
|
|
1695
|
+
ie || (Z ? M ? (D || l) * Z > M ? (D || l) * Z : M : (D || l) * Z : a)
|
|
1692
1696
|
),
|
|
1693
1697
|
barPadding: me,
|
|
1694
1698
|
showTicks: ue,
|
|
1695
1699
|
leftMargin: ge,
|
|
1696
|
-
rightMargin:
|
|
1697
|
-
topMargin:
|
|
1700
|
+
rightMargin: K,
|
|
1701
|
+
topMargin: Q,
|
|
1698
1702
|
bottomMargin: C,
|
|
1699
1703
|
truncateBy: Y,
|
|
1700
1704
|
showLabels: J,
|
|
1701
1705
|
tooltip: p,
|
|
1702
1706
|
onSeriesMouseOver: F,
|
|
1703
|
-
showValues:
|
|
1707
|
+
showValues: se,
|
|
1704
1708
|
suffix: ae,
|
|
1705
1709
|
prefix: le,
|
|
1706
1710
|
refValues: E,
|
|
1707
1711
|
maxValue: q(de) ? Math.max(
|
|
1708
1712
|
...o.map(
|
|
1709
|
-
(r) => ke(r.size.filter((
|
|
1713
|
+
(r) => ke(r.size.filter((B) => !q(B))) || 0
|
|
1710
1714
|
)
|
|
1711
1715
|
) : de,
|
|
1712
|
-
onSeriesMouseClick:
|
|
1713
|
-
selectedColor:
|
|
1716
|
+
onSeriesMouseClick: $,
|
|
1717
|
+
selectedColor: re,
|
|
1714
1718
|
rtl: w === "he" || w === "ar",
|
|
1715
|
-
labelOrder:
|
|
1716
|
-
maxBarThickness:
|
|
1719
|
+
labelOrder: z,
|
|
1720
|
+
maxBarThickness: I,
|
|
1717
1721
|
minBarThickness: v,
|
|
1718
|
-
resetSelectionOnDoubleClick:
|
|
1719
|
-
detailsOnClick:
|
|
1722
|
+
resetSelectionOnDoubleClick: V,
|
|
1723
|
+
detailsOnClick: ne,
|
|
1720
1724
|
barAxisTitle: W,
|
|
1721
1725
|
noOfTicks: H,
|
|
1722
|
-
valueColor:
|
|
1726
|
+
valueColor: ee,
|
|
1723
1727
|
classNames: P,
|
|
1724
|
-
styles:
|
|
1728
|
+
styles: N,
|
|
1725
1729
|
animate: k === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : k || { duration: 0, once: !0, amount: 0 },
|
|
1726
1730
|
colorDomain: he,
|
|
1727
1731
|
precision: f,
|
|
@@ -1730,16 +1734,16 @@ function pt(fe) {
|
|
|
1730
1734
|
}
|
|
1731
1735
|
) : null })
|
|
1732
1736
|
] }) }),
|
|
1733
|
-
|
|
1737
|
+
A || oe ? /* @__PURE__ */ e.jsx(
|
|
1734
1738
|
Ue,
|
|
1735
1739
|
{
|
|
1736
|
-
styles: { footnote:
|
|
1740
|
+
styles: { footnote: N?.footnote, source: N?.source },
|
|
1737
1741
|
classNames: {
|
|
1738
1742
|
footnote: P?.footnote,
|
|
1739
1743
|
source: P?.source
|
|
1740
1744
|
},
|
|
1741
|
-
sources:
|
|
1742
|
-
footNote:
|
|
1745
|
+
sources: A,
|
|
1746
|
+
footNote: oe,
|
|
1743
1747
|
width: D
|
|
1744
1748
|
}
|
|
1745
1749
|
) : null
|
|
@@ -1751,62 +1755,62 @@ function pt(fe) {
|
|
|
1751
1755
|
}
|
|
1752
1756
|
);
|
|
1753
1757
|
}
|
|
1754
|
-
function
|
|
1758
|
+
function yt(fe) {
|
|
1755
1759
|
const {
|
|
1756
1760
|
data: o,
|
|
1757
1761
|
width: g,
|
|
1758
1762
|
height: G,
|
|
1759
|
-
barColor:
|
|
1763
|
+
barColor: A,
|
|
1760
1764
|
suffix: X,
|
|
1761
1765
|
prefix: me,
|
|
1762
1766
|
barPadding: ue,
|
|
1763
1767
|
showLabels: ge,
|
|
1764
|
-
showValues:
|
|
1768
|
+
showValues: K,
|
|
1765
1769
|
showTicks: Y,
|
|
1766
1770
|
colorDomain: ie,
|
|
1767
1771
|
truncateBy: D,
|
|
1768
|
-
rightMargin:
|
|
1772
|
+
rightMargin: oe,
|
|
1769
1773
|
topMargin: he,
|
|
1770
1774
|
bottomMargin: j,
|
|
1771
1775
|
leftMargin: _,
|
|
1772
1776
|
tooltip: U,
|
|
1773
|
-
onSeriesMouseOver:
|
|
1777
|
+
onSeriesMouseOver: Q,
|
|
1774
1778
|
refValues: C,
|
|
1775
1779
|
selectedColor: p,
|
|
1776
1780
|
maxValue: F,
|
|
1777
1781
|
minValue: ae,
|
|
1778
1782
|
highlightedDataPoints: le,
|
|
1779
1783
|
onSeriesMouseClick: J,
|
|
1780
|
-
labelOrder:
|
|
1781
|
-
maxBarThickness:
|
|
1784
|
+
labelOrder: Z,
|
|
1785
|
+
maxBarThickness: se,
|
|
1782
1786
|
minBarThickness: E,
|
|
1783
1787
|
resetSelectionOnDoubleClick: xe,
|
|
1784
1788
|
detailsOnClick: de,
|
|
1785
|
-
barAxisTitle:
|
|
1789
|
+
barAxisTitle: $,
|
|
1786
1790
|
valueColor: y,
|
|
1787
1791
|
noOfTicks: x,
|
|
1788
1792
|
styles: w,
|
|
1789
|
-
classNames:
|
|
1790
|
-
dimmedOpacity:
|
|
1791
|
-
animate:
|
|
1792
|
-
precision:
|
|
1793
|
-
customLayers:
|
|
1793
|
+
classNames: z,
|
|
1794
|
+
dimmedOpacity: M,
|
|
1795
|
+
animate: O,
|
|
1796
|
+
precision: I,
|
|
1797
|
+
customLayers: S,
|
|
1794
1798
|
naLabel: b
|
|
1795
1799
|
} = fe, v = Me(null), R = Ee(v, {
|
|
1796
|
-
once:
|
|
1797
|
-
amount:
|
|
1798
|
-
}),
|
|
1800
|
+
once: O.once,
|
|
1801
|
+
amount: O.amount
|
|
1802
|
+
}), T = {
|
|
1799
1803
|
top: he,
|
|
1800
1804
|
bottom: j,
|
|
1801
|
-
left:
|
|
1802
|
-
right:
|
|
1803
|
-
}, [
|
|
1805
|
+
left: $ ? _ + 30 : _,
|
|
1806
|
+
right: oe
|
|
1807
|
+
}, [V, ne] = L(void 0), [W, H] = L(void 0), [ee, N] = L(void 0), [P, m] = L(void 0), k = g - T.left - T.right, f = G - T.top - T.bottom, d = Re().domain([ae, F]).range([f, 0]).nice(), u = o.map((t, a) => ({
|
|
1804
1808
|
...t,
|
|
1805
|
-
id:
|
|
1806
|
-
})), n =
|
|
1809
|
+
id: Z ? `${t.label}` : `${a}`
|
|
1810
|
+
})), n = Z || u.map((t) => `${t.id}`), s = Ie().domain(n).range([
|
|
1807
1811
|
0,
|
|
1808
|
-
E ? Math.max(k, E * n.length) :
|
|
1809
|
-
]).paddingInner(ue),
|
|
1812
|
+
E ? Math.max(k, E * n.length) : se ? Math.min(k, se * n.length) : k
|
|
1813
|
+
]).paddingInner(ue), l = d.ticks(x);
|
|
1810
1814
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1811
1815
|
/* @__PURE__ */ e.jsx(
|
|
1812
1816
|
pe.svg,
|
|
@@ -1816,18 +1820,18 @@ function ft(fe) {
|
|
|
1816
1820
|
height: `${G}px`,
|
|
1817
1821
|
viewBox: `0 0 ${g} ${G}`,
|
|
1818
1822
|
direction: "ltr",
|
|
1819
|
-
children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${
|
|
1823
|
+
children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${T.left},${T.top})`, children: [
|
|
1820
1824
|
/* @__PURE__ */ e.jsx(
|
|
1821
1825
|
_e,
|
|
1822
1826
|
{
|
|
1823
1827
|
y1: d(ae < 0 ? 0 : ae),
|
|
1824
1828
|
y2: d(ae < 0 ? 0 : ae),
|
|
1825
1829
|
x1: 0 - _,
|
|
1826
|
-
x2: k +
|
|
1827
|
-
label:
|
|
1830
|
+
x2: k + T.right,
|
|
1831
|
+
label: $e(
|
|
1828
1832
|
ae < 0 ? 0 : ae,
|
|
1829
1833
|
b,
|
|
1830
|
-
|
|
1834
|
+
I,
|
|
1831
1835
|
me,
|
|
1832
1836
|
X
|
|
1833
1837
|
),
|
|
@@ -1838,33 +1842,33 @@ function ft(fe) {
|
|
|
1838
1842
|
y: d(ae < 0 ? 0 : ae)
|
|
1839
1843
|
},
|
|
1840
1844
|
classNames: {
|
|
1841
|
-
axis:
|
|
1842
|
-
label:
|
|
1845
|
+
axis: z?.xAxis?.axis,
|
|
1846
|
+
label: z?.yAxis?.labels
|
|
1843
1847
|
},
|
|
1844
1848
|
styles: { axis: w?.xAxis?.axis, label: w?.yAxis?.labels }
|
|
1845
1849
|
}
|
|
1846
1850
|
),
|
|
1847
1851
|
Y ? /* @__PURE__ */ e.jsx(
|
|
1848
|
-
|
|
1852
|
+
ht,
|
|
1849
1853
|
{
|
|
1850
|
-
values:
|
|
1851
|
-
y:
|
|
1854
|
+
values: l.filter((t) => t !== 0),
|
|
1855
|
+
y: l.filter((t) => t !== 0).map((t) => d(t)),
|
|
1852
1856
|
x1: 0 - _,
|
|
1853
|
-
x2: k +
|
|
1857
|
+
x2: k + T.right,
|
|
1854
1858
|
styles: {
|
|
1855
1859
|
gridLines: w?.yAxis?.gridLines,
|
|
1856
1860
|
labels: w?.yAxis?.labels
|
|
1857
1861
|
},
|
|
1858
1862
|
classNames: {
|
|
1859
|
-
gridLines:
|
|
1860
|
-
labels:
|
|
1863
|
+
gridLines: z?.yAxis?.gridLines,
|
|
1864
|
+
labels: z?.yAxis?.labels
|
|
1861
1865
|
},
|
|
1862
1866
|
suffix: X,
|
|
1863
1867
|
prefix: me,
|
|
1864
1868
|
labelType: "secondary",
|
|
1865
1869
|
showGridLines: !0,
|
|
1866
1870
|
labelPos: "vertical",
|
|
1867
|
-
precision:
|
|
1871
|
+
precision: I
|
|
1868
1872
|
}
|
|
1869
1873
|
) : null,
|
|
1870
1874
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1873,15 +1877,15 @@ function ft(fe) {
|
|
|
1873
1877
|
x: 0 - _ - 15,
|
|
1874
1878
|
y: f / 2,
|
|
1875
1879
|
style: w?.yAxis?.title,
|
|
1876
|
-
className:
|
|
1877
|
-
text:
|
|
1880
|
+
className: z?.yAxis?.title,
|
|
1881
|
+
text: $,
|
|
1878
1882
|
rotate90: !0
|
|
1879
1883
|
}
|
|
1880
1884
|
),
|
|
1881
|
-
|
|
1885
|
+
S.filter((t) => t.position === "before").map((t) => t.layer),
|
|
1882
1886
|
/* @__PURE__ */ e.jsxs(qe, { children: [
|
|
1883
1887
|
u.map(
|
|
1884
|
-
(t,
|
|
1888
|
+
(t, a) => q(s(t.id)) ? null : /* @__PURE__ */ e.jsxs(
|
|
1885
1889
|
pe.g,
|
|
1886
1890
|
{
|
|
1887
1891
|
className: "undp-viz-g-with-hover",
|
|
@@ -1889,71 +1893,71 @@ function ft(fe) {
|
|
|
1889
1893
|
animate: R ? "whileInView" : "initial",
|
|
1890
1894
|
variants: {
|
|
1891
1895
|
initial: {
|
|
1892
|
-
opacity: p ? t.color &&
|
|
1896
|
+
opacity: p ? t.color && A[ie.indexOf(t.color)] === p ? 1 : M : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : M : 0.85
|
|
1893
1897
|
},
|
|
1894
1898
|
whileInView: {
|
|
1895
|
-
opacity: p ? t.color &&
|
|
1896
|
-
transition: { duration:
|
|
1899
|
+
opacity: p ? t.color && A[ie.indexOf(t.color)] === p ? 1 : M : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : M : 0.85,
|
|
1900
|
+
transition: { duration: O.duration }
|
|
1897
1901
|
}
|
|
1898
1902
|
},
|
|
1899
|
-
exit: { opacity: 0, transition: { duration:
|
|
1903
|
+
exit: { opacity: 0, transition: { duration: O.duration } },
|
|
1900
1904
|
onMouseEnter: (h) => {
|
|
1901
|
-
|
|
1905
|
+
ne(t), m(h.clientY), N(h.clientX), Q?.(t);
|
|
1902
1906
|
},
|
|
1903
1907
|
onClick: () => {
|
|
1904
1908
|
(J || de) && (Pe(W, t) && xe ? (H(void 0), J?.(void 0)) : (H(t), J?.(t)));
|
|
1905
1909
|
},
|
|
1906
1910
|
onMouseMove: (h) => {
|
|
1907
|
-
|
|
1911
|
+
ne(t), m(h.clientY), N(h.clientX);
|
|
1908
1912
|
},
|
|
1909
1913
|
onMouseLeave: () => {
|
|
1910
|
-
|
|
1914
|
+
ne(void 0), N(void 0), m(void 0), Q?.(void 0);
|
|
1911
1915
|
},
|
|
1912
1916
|
children: [
|
|
1913
1917
|
t.size ? /* @__PURE__ */ e.jsx(
|
|
1914
1918
|
pe.rect,
|
|
1915
1919
|
{
|
|
1916
|
-
width:
|
|
1920
|
+
width: s.bandwidth(),
|
|
1917
1921
|
initial: "initial",
|
|
1918
1922
|
animate: R ? "whileInView" : "initial",
|
|
1919
1923
|
variants: {
|
|
1920
1924
|
initial: {
|
|
1921
1925
|
height: 0,
|
|
1922
|
-
x:
|
|
1926
|
+
x: s(`${t.id}`),
|
|
1923
1927
|
y: d(0),
|
|
1924
|
-
fill: o.filter((h) => h.color).length === 0 ?
|
|
1928
|
+
fill: o.filter((h) => h.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray
|
|
1925
1929
|
},
|
|
1926
1930
|
whileInView: {
|
|
1927
1931
|
height: t.size ? Math.abs(d(t.size) - d(0)) : 0,
|
|
1928
1932
|
y: t.size && t.size > 0 ? d(t.size) : d(0),
|
|
1929
|
-
x:
|
|
1930
|
-
fill: o.filter((h) => h.color).length === 0 ?
|
|
1931
|
-
transition: { duration:
|
|
1933
|
+
x: s(`${t.id}`),
|
|
1934
|
+
fill: o.filter((h) => h.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray,
|
|
1935
|
+
transition: { duration: O.duration }
|
|
1932
1936
|
}
|
|
1933
1937
|
},
|
|
1934
1938
|
exit: {
|
|
1935
1939
|
height: 0,
|
|
1936
1940
|
y: d(0),
|
|
1937
|
-
transition: { duration:
|
|
1941
|
+
transition: { duration: O.duration }
|
|
1938
1942
|
}
|
|
1939
1943
|
}
|
|
1940
1944
|
) : null,
|
|
1941
1945
|
ge ? /* @__PURE__ */ e.jsx(
|
|
1942
|
-
|
|
1946
|
+
dt,
|
|
1943
1947
|
{
|
|
1944
1948
|
value: `${t.label}`.length < D ? `${t.label}` : `${`${t.label}`.substring(0, D)}...`,
|
|
1945
1949
|
y: (t.size || 0) < 0 ? 0 : d(0) + 5,
|
|
1946
|
-
x:
|
|
1947
|
-
width:
|
|
1948
|
-
height: (t.size || 0) < 0 ? d(0) - 5 :
|
|
1950
|
+
x: s(`${t.id}`),
|
|
1951
|
+
width: s.bandwidth(),
|
|
1952
|
+
height: (t.size || 0) < 0 ? d(0) - 5 : T.bottom,
|
|
1949
1953
|
style: w?.xAxis?.labels,
|
|
1950
|
-
className:
|
|
1954
|
+
className: z?.xAxis?.labels,
|
|
1951
1955
|
alignment: (t.size || 0) < 0 ? "bottom" : "top",
|
|
1952
|
-
animate:
|
|
1956
|
+
animate: O,
|
|
1953
1957
|
isInView: R
|
|
1954
1958
|
}
|
|
1955
1959
|
) : null,
|
|
1956
|
-
|
|
1960
|
+
K ? /* @__PURE__ */ e.jsx(
|
|
1957
1961
|
pe.text,
|
|
1958
1962
|
{
|
|
1959
1963
|
style: {
|
|
@@ -1962,32 +1966,32 @@ function ft(fe) {
|
|
|
1962
1966
|
},
|
|
1963
1967
|
className: Ne(
|
|
1964
1968
|
"graph-value text-sm",
|
|
1965
|
-
!y &&
|
|
1966
|
-
|
|
1969
|
+
!y && A.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "",
|
|
1970
|
+
z?.graphObjectValues
|
|
1967
1971
|
),
|
|
1968
1972
|
dy: t.size ? t.size >= 0 ? "-5px" : "1em" : "-5px",
|
|
1969
1973
|
variants: {
|
|
1970
1974
|
initial: {
|
|
1971
|
-
x:
|
|
1975
|
+
x: s(`${t.id}`) + s.bandwidth() / 2,
|
|
1972
1976
|
y: d(0),
|
|
1973
1977
|
opacity: 0,
|
|
1974
|
-
fill: y || (o.filter((h) => h.color).length === 0 ?
|
|
1978
|
+
fill: y || (o.filter((h) => h.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray)
|
|
1975
1979
|
},
|
|
1976
1980
|
whileInView: {
|
|
1977
|
-
x:
|
|
1981
|
+
x: s(`${t.id}`) + s.bandwidth() / 2,
|
|
1978
1982
|
y: d(t.size || 0),
|
|
1979
|
-
fill: y || (o.filter((h) => h.color).length === 0 ?
|
|
1983
|
+
fill: y || (o.filter((h) => h.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray),
|
|
1980
1984
|
opacity: 1,
|
|
1981
|
-
transition: { duration:
|
|
1985
|
+
transition: { duration: O.duration }
|
|
1982
1986
|
}
|
|
1983
1987
|
},
|
|
1984
1988
|
initial: "initial",
|
|
1985
1989
|
animate: R ? "whileInView" : "initial",
|
|
1986
1990
|
exit: {
|
|
1987
1991
|
opacity: 0,
|
|
1988
|
-
transition: { duration:
|
|
1992
|
+
transition: { duration: O.duration }
|
|
1989
1993
|
},
|
|
1990
|
-
children:
|
|
1994
|
+
children: $e(t.size, b, I, me, X)
|
|
1991
1995
|
}
|
|
1992
1996
|
) : null
|
|
1993
1997
|
]
|
|
@@ -1995,35 +1999,35 @@ function ft(fe) {
|
|
|
1995
1999
|
t.label
|
|
1996
2000
|
)
|
|
1997
2001
|
),
|
|
1998
|
-
C ? /* @__PURE__ */ e.jsx(e.Fragment, { children: C.map((t,
|
|
1999
|
-
|
|
2002
|
+
C ? /* @__PURE__ */ e.jsx(e.Fragment, { children: C.map((t, a) => /* @__PURE__ */ e.jsx(
|
|
2003
|
+
ct,
|
|
2000
2004
|
{
|
|
2001
2005
|
text: t.text,
|
|
2002
2006
|
color: t.color,
|
|
2003
2007
|
y: d(t.value),
|
|
2004
2008
|
x1: 0 - _,
|
|
2005
|
-
x2: k +
|
|
2009
|
+
x2: k + T.right,
|
|
2006
2010
|
classNames: t.classNames,
|
|
2007
2011
|
styles: t.styles,
|
|
2008
|
-
animate:
|
|
2012
|
+
animate: O,
|
|
2009
2013
|
isInView: R
|
|
2010
2014
|
},
|
|
2011
|
-
|
|
2015
|
+
a
|
|
2012
2016
|
)) }) : null
|
|
2013
2017
|
] }),
|
|
2014
|
-
|
|
2018
|
+
S.filter((t) => t.position === "after").map((t) => t.layer)
|
|
2015
2019
|
] })
|
|
2016
2020
|
}
|
|
2017
2021
|
),
|
|
2018
|
-
|
|
2022
|
+
V && U && ee && P ? /* @__PURE__ */ e.jsx(
|
|
2019
2023
|
Ge,
|
|
2020
2024
|
{
|
|
2021
|
-
data:
|
|
2025
|
+
data: V,
|
|
2022
2026
|
body: U,
|
|
2023
|
-
xPos:
|
|
2027
|
+
xPos: ee,
|
|
2024
2028
|
yPos: P,
|
|
2025
2029
|
backgroundStyle: w?.tooltip,
|
|
2026
|
-
className:
|
|
2030
|
+
className: z?.tooltip
|
|
2027
2031
|
}
|
|
2028
2032
|
) : null,
|
|
2029
2033
|
de && W !== void 0 ? /* @__PURE__ */ e.jsx(
|
|
@@ -2045,56 +2049,56 @@ function ft(fe) {
|
|
|
2045
2049
|
) : null
|
|
2046
2050
|
] });
|
|
2047
2051
|
}
|
|
2048
|
-
function
|
|
2052
|
+
function bt(fe) {
|
|
2049
2053
|
const {
|
|
2050
2054
|
data: o,
|
|
2051
2055
|
graphTitle: g,
|
|
2052
2056
|
colors: G,
|
|
2053
|
-
barPadding:
|
|
2057
|
+
barPadding: A = 0.25,
|
|
2054
2058
|
showTicks: X = !0,
|
|
2055
2059
|
leftMargin: me = 20,
|
|
2056
2060
|
rightMargin: ue = 20,
|
|
2057
2061
|
topMargin: ge = 20,
|
|
2058
|
-
bottomMargin:
|
|
2062
|
+
bottomMargin: K = 25,
|
|
2059
2063
|
truncateBy: Y = 999,
|
|
2060
2064
|
showLabels: ie = !0,
|
|
2061
2065
|
showValues: D = !0,
|
|
2062
|
-
backgroundColor:
|
|
2066
|
+
backgroundColor: oe = !1,
|
|
2063
2067
|
suffix: he = "",
|
|
2064
2068
|
prefix: j = "",
|
|
2065
2069
|
sources: _,
|
|
2066
2070
|
graphDescription: U,
|
|
2067
|
-
height:
|
|
2071
|
+
height: Q,
|
|
2068
2072
|
width: C,
|
|
2069
2073
|
footNote: p,
|
|
2070
2074
|
colorDomain: F,
|
|
2071
2075
|
colorLegendTitle: ae,
|
|
2072
2076
|
padding: le,
|
|
2073
2077
|
relativeHeight: J,
|
|
2074
|
-
tooltip:
|
|
2075
|
-
onSeriesMouseOver:
|
|
2078
|
+
tooltip: Z,
|
|
2079
|
+
onSeriesMouseOver: se,
|
|
2076
2080
|
refValues: E,
|
|
2077
2081
|
showColorScale: xe = !0,
|
|
2078
2082
|
graphID: de,
|
|
2079
|
-
maxValue:
|
|
2083
|
+
maxValue: $,
|
|
2080
2084
|
minValue: y,
|
|
2081
2085
|
highlightedDataPoints: x = [],
|
|
2082
2086
|
onSeriesMouseClick: w,
|
|
2083
|
-
graphDownload:
|
|
2084
|
-
dataDownload:
|
|
2085
|
-
language:
|
|
2086
|
-
theme:
|
|
2087
|
-
sortData:
|
|
2087
|
+
graphDownload: z = !1,
|
|
2088
|
+
dataDownload: M = !1,
|
|
2089
|
+
language: O = "en",
|
|
2090
|
+
theme: I = "light",
|
|
2091
|
+
sortData: S,
|
|
2088
2092
|
labelOrder: b,
|
|
2089
2093
|
showNAColor: v = !0,
|
|
2090
2094
|
minHeight: R = 0,
|
|
2091
|
-
maxBarThickness:
|
|
2092
|
-
maxNumberOfBars:
|
|
2093
|
-
minBarThickness:
|
|
2095
|
+
maxBarThickness: T,
|
|
2096
|
+
maxNumberOfBars: V,
|
|
2097
|
+
minBarThickness: ne,
|
|
2094
2098
|
ariaLabel: W,
|
|
2095
2099
|
resetSelectionOnDoubleClick: H = !0,
|
|
2096
|
-
detailsOnClick:
|
|
2097
|
-
barAxisTitle:
|
|
2100
|
+
detailsOnClick: ee,
|
|
2101
|
+
barAxisTitle: N,
|
|
2098
2102
|
noOfTicks: P = 5,
|
|
2099
2103
|
valueColor: m,
|
|
2100
2104
|
styles: k,
|
|
@@ -2102,63 +2106,63 @@ function yt(fe) {
|
|
|
2102
2106
|
filterNA: d = !0,
|
|
2103
2107
|
animate: u = !1,
|
|
2104
2108
|
dimmedOpacity: n = 0.3,
|
|
2105
|
-
precision:
|
|
2106
|
-
customLayers:
|
|
2109
|
+
precision: s = 2,
|
|
2110
|
+
customLayers: l = [],
|
|
2107
2111
|
timeline: t = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
|
|
2108
|
-
naLabel:
|
|
2109
|
-
} = fe, [h,
|
|
2112
|
+
naLabel: a = "NA"
|
|
2113
|
+
} = fe, [h, ve] = L(0), [Oe, ce] = L(0), [be, we] = L(t.autoplay), re = Be(
|
|
2110
2114
|
Te(
|
|
2111
2115
|
o.filter((i) => i.date !== void 0 && i.date !== null),
|
|
2112
2116
|
(i) => i.date
|
|
2113
2117
|
).map((i) => Se(`${i.date}`, t.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()),
|
|
2114
|
-
(i,
|
|
2115
|
-
), [
|
|
2118
|
+
(i, ye) => tt(i, ye)
|
|
2119
|
+
), [Ce, c] = L(t.autoplay ? 0 : re.length - 1), [te, Ve] = L(void 0), r = Me(null), B = Me(null);
|
|
2116
2120
|
ze(() => {
|
|
2117
|
-
const i = new ResizeObserver((
|
|
2118
|
-
|
|
2121
|
+
const i = new ResizeObserver((ye) => {
|
|
2122
|
+
ve(C || ye[0].target.clientWidth || 620), ce(Q || ye[0].target.clientHeight || 480);
|
|
2119
2123
|
});
|
|
2120
|
-
return
|
|
2121
|
-
}, [C,
|
|
2124
|
+
return r.current && (ce(r.current.clientHeight || 480), ve(r.current.clientWidth || 620), C || i.observe(r.current)), () => i.disconnect();
|
|
2125
|
+
}, [C, Q]), ze(() => {
|
|
2122
2126
|
const i = setInterval(
|
|
2123
2127
|
() => {
|
|
2124
|
-
c((
|
|
2128
|
+
c((ye) => ye < re.length - 1 ? ye + 1 : 0);
|
|
2125
2129
|
},
|
|
2126
2130
|
(t.speed || 2) * 1e3
|
|
2127
2131
|
);
|
|
2128
|
-
return
|
|
2129
|
-
}, [
|
|
2130
|
-
const
|
|
2131
|
-
|
|
2132
|
-
|
|
2132
|
+
return be || clearInterval(i), () => clearInterval(i);
|
|
2133
|
+
}, [re, be, t.speed]);
|
|
2134
|
+
const it = Fe(
|
|
2135
|
+
re,
|
|
2136
|
+
Ce,
|
|
2133
2137
|
t.showOnlyActiveDate,
|
|
2134
2138
|
t.dateFormat || "yyyy"
|
|
2135
2139
|
);
|
|
2136
2140
|
return /* @__PURE__ */ e.jsx(
|
|
2137
2141
|
"div",
|
|
2138
2142
|
{
|
|
2139
|
-
className: `${
|
|
2140
|
-
dir:
|
|
2143
|
+
className: `${I || "light"} flex ${C ? "w-fit grow-0" : "w-full grow"}`,
|
|
2144
|
+
dir: O === "he" || O === "ar" ? "rtl" : void 0,
|
|
2141
2145
|
children: /* @__PURE__ */ e.jsx(
|
|
2142
2146
|
"div",
|
|
2143
2147
|
{
|
|
2144
2148
|
className: Ne(
|
|
2145
|
-
`${
|
|
2149
|
+
`${oe ? oe === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${O || "en"}`,
|
|
2146
2150
|
f?.graphContainer
|
|
2147
2151
|
),
|
|
2148
2152
|
style: {
|
|
2149
2153
|
...k?.graphContainer || {},
|
|
2150
|
-
...
|
|
2154
|
+
...oe && oe !== !0 ? { backgroundColor: oe } : {}
|
|
2151
2155
|
},
|
|
2152
2156
|
id: de,
|
|
2153
|
-
ref:
|
|
2157
|
+
ref: B,
|
|
2154
2158
|
"aria-label": W || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${U ? ` ${U}` : ""}`,
|
|
2155
2159
|
children: /* @__PURE__ */ e.jsx(
|
|
2156
2160
|
"div",
|
|
2157
2161
|
{
|
|
2158
2162
|
className: "flex grow",
|
|
2159
|
-
style: { padding:
|
|
2163
|
+
style: { padding: oe ? le || "1rem" : le || 0 },
|
|
2160
2164
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
2161
|
-
g || U ||
|
|
2165
|
+
g || U || z || M ? /* @__PURE__ */ e.jsx(
|
|
2162
2166
|
Je,
|
|
2163
2167
|
{
|
|
2164
2168
|
styles: {
|
|
@@ -2172,37 +2176,37 @@ function yt(fe) {
|
|
|
2172
2176
|
graphTitle: g,
|
|
2173
2177
|
graphDescription: U,
|
|
2174
2178
|
width: C,
|
|
2175
|
-
graphDownload:
|
|
2176
|
-
dataDownload:
|
|
2179
|
+
graphDownload: z ? B.current : void 0,
|
|
2180
|
+
dataDownload: M ? o.map((i) => i.data).filter((i) => i !== void 0).length > 0 ? o.map((i) => i.data).filter((i) => i !== void 0) : o.filter((i) => i !== void 0) : null
|
|
2177
2181
|
}
|
|
2178
2182
|
) : null,
|
|
2179
|
-
t.enabled &&
|
|
2183
|
+
t.enabled && re.length > 0 && it ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
2180
2184
|
/* @__PURE__ */ e.jsx(
|
|
2181
2185
|
"button",
|
|
2182
2186
|
{
|
|
2183
2187
|
type: "button",
|
|
2184
2188
|
onClick: () => {
|
|
2185
|
-
|
|
2189
|
+
we(!be);
|
|
2186
2190
|
},
|
|
2187
2191
|
className: "p-0 border-0 cursor-pointer bg-transparent",
|
|
2188
|
-
"aria-label":
|
|
2189
|
-
children:
|
|
2192
|
+
"aria-label": be ? "Click to pause animation" : "Click to play animation",
|
|
2193
|
+
children: be ? /* @__PURE__ */ e.jsx(Ze, {}) : /* @__PURE__ */ e.jsx(et, {})
|
|
2190
2194
|
}
|
|
2191
2195
|
),
|
|
2192
2196
|
/* @__PURE__ */ e.jsx(
|
|
2193
2197
|
He,
|
|
2194
2198
|
{
|
|
2195
|
-
min:
|
|
2196
|
-
max:
|
|
2197
|
-
marks:
|
|
2199
|
+
min: re[0],
|
|
2200
|
+
max: re[re.length - 1],
|
|
2201
|
+
marks: it,
|
|
2198
2202
|
step: null,
|
|
2199
|
-
defaultValue:
|
|
2200
|
-
value:
|
|
2203
|
+
defaultValue: re[re.length - 1],
|
|
2204
|
+
value: re[Ce],
|
|
2201
2205
|
onChangeComplete: (i) => {
|
|
2202
|
-
c(
|
|
2206
|
+
c(re.indexOf(i));
|
|
2203
2207
|
},
|
|
2204
2208
|
onChange: (i) => {
|
|
2205
|
-
c(
|
|
2209
|
+
c(re.indexOf(i));
|
|
2206
2210
|
},
|
|
2207
2211
|
"aria-label": "Time slider. Use arrow keys to adjust selected time period."
|
|
2208
2212
|
}
|
|
@@ -2214,12 +2218,12 @@ function yt(fe) {
|
|
|
2214
2218
|
{
|
|
2215
2219
|
width: C,
|
|
2216
2220
|
colorLegendTitle: ae,
|
|
2217
|
-
colors: G || je[
|
|
2221
|
+
colors: G || je[I].categoricalColors.colors,
|
|
2218
2222
|
colorDomain: F || Te(
|
|
2219
2223
|
o.filter((i) => i.color),
|
|
2220
2224
|
"color"
|
|
2221
2225
|
).map((i) => i.color),
|
|
2222
|
-
setSelectedColor:
|
|
2226
|
+
setSelectedColor: Ve,
|
|
2223
2227
|
showNAColor: v
|
|
2224
2228
|
}
|
|
2225
2229
|
) : null,
|
|
@@ -2227,34 +2231,34 @@ function yt(fe) {
|
|
|
2227
2231
|
"div",
|
|
2228
2232
|
{
|
|
2229
2233
|
className: "flex grow flex-col justify-center w-full leading-0",
|
|
2230
|
-
ref:
|
|
2234
|
+
ref: r,
|
|
2231
2235
|
"aria-label": "Graph area",
|
|
2232
|
-
children: (C || h) && (
|
|
2233
|
-
|
|
2236
|
+
children: (C || h) && (Q || Oe) ? /* @__PURE__ */ e.jsx(
|
|
2237
|
+
yt,
|
|
2234
2238
|
{
|
|
2235
|
-
data:
|
|
2239
|
+
data: S === "asc" ? lt(
|
|
2236
2240
|
Le(o, t.dateFormat || "yyyy").filter(
|
|
2237
|
-
(i) => t.enabled ? i.date ===
|
|
2238
|
-
new Date(
|
|
2241
|
+
(i) => t.enabled ? i.date === De(
|
|
2242
|
+
new Date(re[Ce]),
|
|
2239
2243
|
t.dateFormat || "yyyy"
|
|
2240
2244
|
) : i
|
|
2241
2245
|
).filter((i) => d ? !q(i.size) : i),
|
|
2242
2246
|
(i) => i.size
|
|
2243
|
-
).filter((i,
|
|
2247
|
+
).filter((i, ye) => V ? ye < V : !0) : S === "desc" ? lt(
|
|
2244
2248
|
Le(o, t.dateFormat || "yyyy").filter(
|
|
2245
|
-
(i) => t.enabled ? i.date ===
|
|
2246
|
-
new Date(
|
|
2249
|
+
(i) => t.enabled ? i.date === De(
|
|
2250
|
+
new Date(re[Ce]),
|
|
2247
2251
|
t.dateFormat || "yyyy"
|
|
2248
2252
|
) : i
|
|
2249
2253
|
).filter((i) => d ? !q(i.size) : i),
|
|
2250
2254
|
(i) => i.size
|
|
2251
|
-
).reverse().filter((i,
|
|
2252
|
-
(i) => t.enabled ? i.date ===
|
|
2253
|
-
new Date(
|
|
2255
|
+
).reverse().filter((i, ye) => V ? ye < V : !0) : Le(o, t.dateFormat || "yyyy").filter(
|
|
2256
|
+
(i) => t.enabled ? i.date === De(
|
|
2257
|
+
new Date(re[Ce]),
|
|
2254
2258
|
t.dateFormat || "yyyy"
|
|
2255
2259
|
) : i
|
|
2256
|
-
).filter((i) => d ? !q(i.size) : i).filter((i,
|
|
2257
|
-
barColor: o.filter((i) => i.color).length === 0 ? G ? [G] : [je.primaryColors["blue-600"]] : G || je[
|
|
2260
|
+
).filter((i) => d ? !q(i.size) : i).filter((i, ye) => V ? ye < V : !0),
|
|
2261
|
+
barColor: o.filter((i) => i.color).length === 0 ? G ? [G] : [je.primaryColors["blue-600"]] : G || je[I].categoricalColors.colors,
|
|
2258
2262
|
colorDomain: o.filter((i) => i.color).length === 0 ? [] : F || Te(
|
|
2259
2263
|
o.filter((i) => i.color),
|
|
2260
2264
|
"color"
|
|
@@ -2263,11 +2267,11 @@ function yt(fe) {
|
|
|
2263
2267
|
refValues: E,
|
|
2264
2268
|
height: Math.max(
|
|
2265
2269
|
R,
|
|
2266
|
-
|
|
2270
|
+
Q || (J ? R ? (C || h) * J > R ? (C || h) * J : R : (C || h) * J : Oe)
|
|
2267
2271
|
),
|
|
2268
2272
|
suffix: he,
|
|
2269
2273
|
prefix: j,
|
|
2270
|
-
barPadding:
|
|
2274
|
+
barPadding: A,
|
|
2271
2275
|
showLabels: ie,
|
|
2272
2276
|
showValues: D,
|
|
2273
2277
|
showTicks: X,
|
|
@@ -2276,14 +2280,14 @@ function yt(fe) {
|
|
|
2276
2280
|
rightMargin: ue,
|
|
2277
2281
|
selectedColor: te,
|
|
2278
2282
|
topMargin: ge,
|
|
2279
|
-
bottomMargin:
|
|
2280
|
-
tooltip:
|
|
2281
|
-
onSeriesMouseOver:
|
|
2282
|
-
maxValue: q(
|
|
2283
|
+
bottomMargin: K,
|
|
2284
|
+
tooltip: Z,
|
|
2285
|
+
onSeriesMouseOver: se,
|
|
2286
|
+
maxValue: q($) ? Math.max(
|
|
2283
2287
|
...o.filter((i) => !q(i.size)).map((i) => i.size)
|
|
2284
2288
|
) < 0 ? 0 : Math.max(
|
|
2285
2289
|
...o.filter((i) => !q(i.size)).map((i) => i.size)
|
|
2286
|
-
) :
|
|
2290
|
+
) : $,
|
|
2287
2291
|
minValue: q(y) ? Math.min(
|
|
2288
2292
|
...o.filter((i) => !q(i.size)).map((i) => i.size)
|
|
2289
2293
|
) >= 0 ? 0 : Math.min(
|
|
@@ -2292,20 +2296,20 @@ function yt(fe) {
|
|
|
2292
2296
|
highlightedDataPoints: x,
|
|
2293
2297
|
onSeriesMouseClick: w,
|
|
2294
2298
|
labelOrder: b,
|
|
2295
|
-
maxBarThickness:
|
|
2296
|
-
minBarThickness:
|
|
2299
|
+
maxBarThickness: T,
|
|
2300
|
+
minBarThickness: ne,
|
|
2297
2301
|
resetSelectionOnDoubleClick: H,
|
|
2298
|
-
detailsOnClick:
|
|
2299
|
-
barAxisTitle:
|
|
2302
|
+
detailsOnClick: ee,
|
|
2303
|
+
barAxisTitle: N,
|
|
2300
2304
|
noOfTicks: P,
|
|
2301
2305
|
valueColor: m,
|
|
2302
2306
|
styles: k,
|
|
2303
2307
|
classNames: f,
|
|
2304
2308
|
animate: u === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : u || { duration: 0, once: !0, amount: 0 },
|
|
2305
2309
|
dimmedOpacity: n,
|
|
2306
|
-
precision:
|
|
2307
|
-
customLayers:
|
|
2308
|
-
naLabel:
|
|
2310
|
+
precision: s,
|
|
2311
|
+
customLayers: l,
|
|
2312
|
+
naLabel: a
|
|
2309
2313
|
}
|
|
2310
2314
|
) : null
|
|
2311
2315
|
}
|
|
@@ -2332,59 +2336,59 @@ function yt(fe) {
|
|
|
2332
2336
|
}
|
|
2333
2337
|
);
|
|
2334
2338
|
}
|
|
2335
|
-
function
|
|
2339
|
+
function vt(fe) {
|
|
2336
2340
|
const {
|
|
2337
2341
|
data: o,
|
|
2338
2342
|
width: g,
|
|
2339
2343
|
height: G,
|
|
2340
|
-
barColors:
|
|
2344
|
+
barColors: A,
|
|
2341
2345
|
suffix: X,
|
|
2342
2346
|
prefix: me,
|
|
2343
2347
|
barPadding: ue,
|
|
2344
2348
|
showLabels: ge,
|
|
2345
|
-
showValues:
|
|
2349
|
+
showValues: K,
|
|
2346
2350
|
showTicks: Y,
|
|
2347
2351
|
truncateBy: ie,
|
|
2348
2352
|
leftMargin: D,
|
|
2349
|
-
rightMargin:
|
|
2353
|
+
rightMargin: oe,
|
|
2350
2354
|
topMargin: he,
|
|
2351
2355
|
bottomMargin: j,
|
|
2352
2356
|
tooltip: _,
|
|
2353
2357
|
onSeriesMouseOver: U,
|
|
2354
|
-
refValues:
|
|
2358
|
+
refValues: Q,
|
|
2355
2359
|
maxValue: C,
|
|
2356
2360
|
minValue: p,
|
|
2357
2361
|
onSeriesMouseClick: F,
|
|
2358
2362
|
selectedColor: ae,
|
|
2359
2363
|
labelOrder: le,
|
|
2360
2364
|
maxBarThickness: J,
|
|
2361
|
-
resetSelectionOnDoubleClick:
|
|
2362
|
-
detailsOnClick:
|
|
2365
|
+
resetSelectionOnDoubleClick: Z,
|
|
2366
|
+
detailsOnClick: se,
|
|
2363
2367
|
barAxisTitle: E,
|
|
2364
2368
|
valueColor: xe,
|
|
2365
2369
|
noOfTicks: de,
|
|
2366
|
-
styles:
|
|
2370
|
+
styles: $,
|
|
2367
2371
|
classNames: y,
|
|
2368
2372
|
animate: x,
|
|
2369
2373
|
colorDomain: w,
|
|
2370
|
-
precision:
|
|
2371
|
-
customLayers:
|
|
2372
|
-
naLabel:
|
|
2373
|
-
} = fe,
|
|
2374
|
+
precision: z,
|
|
2375
|
+
customLayers: M,
|
|
2376
|
+
naLabel: O
|
|
2377
|
+
} = fe, I = Me(null), S = Ee(I, {
|
|
2374
2378
|
once: x.once,
|
|
2375
2379
|
amount: x.amount
|
|
2376
2380
|
}), b = {
|
|
2377
2381
|
top: he,
|
|
2378
2382
|
bottom: j,
|
|
2379
2383
|
left: E ? D + 30 : D,
|
|
2380
|
-
right:
|
|
2381
|
-
}, [v, R] =
|
|
2382
|
-
...
|
|
2383
|
-
id: le ? `${
|
|
2384
|
-
})), f = le || k.map((
|
|
2384
|
+
right: oe
|
|
2385
|
+
}, [v, R] = L(void 0), [T, V] = L(void 0), [ne, W] = L(void 0), [H, ee] = L(void 0), N = g - b.left - b.right, P = G - b.top - b.bottom, m = Re().domain([p, C]).range([P, 0]).nice(), k = o.map((s, l) => ({
|
|
2386
|
+
...s,
|
|
2387
|
+
id: le ? `${s.label}` : `${l}`
|
|
2388
|
+
})), f = le || k.map((s) => `${s.id}`), d = Ie().domain(f).range([
|
|
2385
2389
|
0,
|
|
2386
|
-
J ? Math.min(
|
|
2387
|
-
]).paddingInner(ue), u = Ie().domain(o[0].size.map((
|
|
2390
|
+
J ? Math.min(N, J * f.length) : N
|
|
2391
|
+
]).paddingInner(ue), u = Ie().domain(o[0].size.map((s, l) => `${l}`)).range([0, d.bandwidth()]).paddingInner(0.1), n = m.ticks(de);
|
|
2388
2392
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2389
2393
|
/* @__PURE__ */ e.jsx(
|
|
2390
2394
|
pe.svg,
|
|
@@ -2393,7 +2397,7 @@ function bt(fe) {
|
|
|
2393
2397
|
height: `${G}px`,
|
|
2394
2398
|
viewBox: `0 0 ${g} ${G}`,
|
|
2395
2399
|
direction: "ltr",
|
|
2396
|
-
ref:
|
|
2400
|
+
ref: I,
|
|
2397
2401
|
children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${b.left},${b.top})`, children: [
|
|
2398
2402
|
/* @__PURE__ */ e.jsx(
|
|
2399
2403
|
_e,
|
|
@@ -2401,11 +2405,11 @@ function bt(fe) {
|
|
|
2401
2405
|
y1: m(p < 0 ? 0 : p),
|
|
2402
2406
|
y2: m(p < 0 ? 0 : p),
|
|
2403
2407
|
x1: 0 - D,
|
|
2404
|
-
x2:
|
|
2405
|
-
label:
|
|
2408
|
+
x2: N + b.right,
|
|
2409
|
+
label: $e(
|
|
2406
2410
|
p < 0 ? 0 : p,
|
|
2407
|
-
|
|
2408
|
-
|
|
2411
|
+
O,
|
|
2412
|
+
z,
|
|
2409
2413
|
me,
|
|
2410
2414
|
X
|
|
2411
2415
|
),
|
|
@@ -2419,19 +2423,19 @@ function bt(fe) {
|
|
|
2419
2423
|
axis: y?.xAxis?.axis,
|
|
2420
2424
|
label: y?.yAxis?.labels
|
|
2421
2425
|
},
|
|
2422
|
-
styles: { axis:
|
|
2426
|
+
styles: { axis: $?.xAxis?.axis, label: $?.yAxis?.labels }
|
|
2423
2427
|
}
|
|
2424
2428
|
),
|
|
2425
2429
|
Y ? /* @__PURE__ */ e.jsx(
|
|
2426
|
-
|
|
2430
|
+
ht,
|
|
2427
2431
|
{
|
|
2428
|
-
values: n.filter((
|
|
2429
|
-
y: n.filter((
|
|
2432
|
+
values: n.filter((s) => s !== 0),
|
|
2433
|
+
y: n.filter((s) => s !== 0).map((s) => m(s)),
|
|
2430
2434
|
x1: 0 - D,
|
|
2431
|
-
x2:
|
|
2435
|
+
x2: N + b.right,
|
|
2432
2436
|
styles: {
|
|
2433
|
-
gridLines:
|
|
2434
|
-
labels:
|
|
2437
|
+
gridLines: $?.yAxis?.gridLines,
|
|
2438
|
+
labels: $?.yAxis?.labels
|
|
2435
2439
|
},
|
|
2436
2440
|
classNames: {
|
|
2437
2441
|
gridLines: y?.yAxis?.gridLines,
|
|
@@ -2442,7 +2446,7 @@ function bt(fe) {
|
|
|
2442
2446
|
labelType: "secondary",
|
|
2443
2447
|
showGridLines: !0,
|
|
2444
2448
|
labelPos: "vertical",
|
|
2445
|
-
precision:
|
|
2449
|
+
precision: z
|
|
2446
2450
|
}
|
|
2447
2451
|
) : null,
|
|
2448
2452
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2450,49 +2454,49 @@ function bt(fe) {
|
|
|
2450
2454
|
{
|
|
2451
2455
|
x: 0 - D - 15,
|
|
2452
2456
|
y: P / 2,
|
|
2453
|
-
style:
|
|
2457
|
+
style: $?.yAxis?.title,
|
|
2454
2458
|
className: y?.yAxis?.title,
|
|
2455
2459
|
text: E,
|
|
2456
2460
|
rotate90: !0
|
|
2457
2461
|
}
|
|
2458
2462
|
),
|
|
2459
|
-
|
|
2463
|
+
M.filter((s) => s.position === "before").map((s) => s.layer),
|
|
2460
2464
|
/* @__PURE__ */ e.jsxs(qe, { children: [
|
|
2461
2465
|
k.map(
|
|
2462
|
-
(
|
|
2466
|
+
(s) => q(d(s.id)) ? null : /* @__PURE__ */ e.jsxs(
|
|
2463
2467
|
pe.g,
|
|
2464
2468
|
{
|
|
2465
2469
|
variants: {
|
|
2466
2470
|
initial: {
|
|
2467
|
-
x: d(`${
|
|
2471
|
+
x: d(`${s.id}`),
|
|
2468
2472
|
y: 0
|
|
2469
2473
|
},
|
|
2470
2474
|
whileInView: {
|
|
2471
|
-
x: d(`${
|
|
2475
|
+
x: d(`${s.id}`),
|
|
2472
2476
|
y: 0,
|
|
2473
2477
|
transition: { duration: x.duration }
|
|
2474
2478
|
}
|
|
2475
2479
|
},
|
|
2476
2480
|
initial: "initial",
|
|
2477
|
-
animate:
|
|
2481
|
+
animate: S ? "whileInView" : "initial",
|
|
2478
2482
|
exit: { opacity: 0, transition: { duration: x.duration } },
|
|
2479
2483
|
children: [
|
|
2480
|
-
|
|
2484
|
+
s.size.map((l, t) => /* @__PURE__ */ e.jsxs(
|
|
2481
2485
|
pe.g,
|
|
2482
2486
|
{
|
|
2483
2487
|
className: "undp-viz-g-with-hover",
|
|
2484
|
-
opacity: ae ?
|
|
2485
|
-
onMouseEnter: (
|
|
2486
|
-
R({ ...
|
|
2488
|
+
opacity: ae ? A[t] === ae ? 1 : 0.3 : 0.85,
|
|
2489
|
+
onMouseEnter: (a) => {
|
|
2490
|
+
R({ ...s, sizeIndex: t }), ee(a.clientY), W(a.clientX), U?.({ ...s, sizeIndex: t });
|
|
2487
2491
|
},
|
|
2488
|
-
onMouseMove: (
|
|
2489
|
-
R({ ...
|
|
2492
|
+
onMouseMove: (a) => {
|
|
2493
|
+
R({ ...s, sizeIndex: t }), ee(a.clientY), W(a.clientX);
|
|
2490
2494
|
},
|
|
2491
2495
|
onMouseLeave: () => {
|
|
2492
|
-
R(void 0), W(void 0),
|
|
2496
|
+
R(void 0), W(void 0), ee(void 0), U?.(void 0);
|
|
2493
2497
|
},
|
|
2494
2498
|
onClick: () => {
|
|
2495
|
-
(F ||
|
|
2499
|
+
(F || se) && (Pe(T, { ...s, sizeIndex: t }) && Z ? (V(void 0), F?.(void 0)) : (V({ ...s, sizeIndex: t }), F && F({ ...s, sizeIndex: t })));
|
|
2496
2500
|
},
|
|
2497
2501
|
children: [
|
|
2498
2502
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2504,12 +2508,12 @@ function bt(fe) {
|
|
|
2504
2508
|
initial: {
|
|
2505
2509
|
height: 0,
|
|
2506
2510
|
y: m(0),
|
|
2507
|
-
fill:
|
|
2511
|
+
fill: A[t]
|
|
2508
2512
|
},
|
|
2509
2513
|
whileInView: {
|
|
2510
|
-
height: q(
|
|
2511
|
-
y: q(
|
|
2512
|
-
fill:
|
|
2514
|
+
height: q(l) ? 0 : Math.abs(m(l) - m(0)),
|
|
2515
|
+
y: q(l) ? m(0) : l > 0 ? m(l) : m(0),
|
|
2516
|
+
fill: A[t],
|
|
2513
2517
|
transition: { duration: x.duration }
|
|
2514
2518
|
}
|
|
2515
2519
|
},
|
|
@@ -2519,203 +2523,203 @@ function bt(fe) {
|
|
|
2519
2523
|
transition: { duration: x.duration }
|
|
2520
2524
|
},
|
|
2521
2525
|
initial: "initial",
|
|
2522
|
-
animate:
|
|
2526
|
+
animate: S ? "whileInView" : "initial"
|
|
2523
2527
|
}
|
|
2524
2528
|
),
|
|
2525
|
-
|
|
2529
|
+
K ? /* @__PURE__ */ e.jsx(
|
|
2526
2530
|
pe.text,
|
|
2527
2531
|
{
|
|
2528
2532
|
x: u(`${t}`) + u.bandwidth() / 2,
|
|
2529
2533
|
style: {
|
|
2530
|
-
fill: xe ||
|
|
2534
|
+
fill: xe || A[t],
|
|
2531
2535
|
textAnchor: "middle",
|
|
2532
|
-
|
|
2536
|
+
...$?.graphObjectValues || {}
|
|
2533
2537
|
},
|
|
2534
2538
|
className: Ne("graph-value text-sm", y?.graphObjectValues),
|
|
2535
|
-
dy:
|
|
2539
|
+
dy: l ? l >= 0 ? "-5px" : "1em" : "-5px",
|
|
2536
2540
|
variants: {
|
|
2537
2541
|
initial: { y: m(0), opacity: 0 },
|
|
2538
2542
|
whileInView: {
|
|
2539
|
-
y: m(
|
|
2543
|
+
y: m(l || 0),
|
|
2540
2544
|
opacity: 1,
|
|
2541
2545
|
transition: { duration: x.duration }
|
|
2542
2546
|
}
|
|
2543
2547
|
},
|
|
2544
2548
|
initial: "initial",
|
|
2545
|
-
animate:
|
|
2549
|
+
animate: S ? "whileInView" : "initial",
|
|
2546
2550
|
exit: {
|
|
2547
2551
|
opacity: 0,
|
|
2548
2552
|
transition: { duration: x.duration }
|
|
2549
2553
|
},
|
|
2550
|
-
children:
|
|
2554
|
+
children: $e(l, O, z, me, X)
|
|
2551
2555
|
}
|
|
2552
2556
|
) : null
|
|
2553
2557
|
]
|
|
2554
2558
|
},
|
|
2555
|
-
`${
|
|
2559
|
+
`${s.label}-${w[t] || t}`
|
|
2556
2560
|
)),
|
|
2557
2561
|
ge ? /* @__PURE__ */ e.jsx(
|
|
2558
|
-
|
|
2562
|
+
dt,
|
|
2559
2563
|
{
|
|
2560
|
-
value: `${
|
|
2564
|
+
value: `${s.label}`.length < ie ? `${s.label}` : `${`${s.label}`.substring(0, ie)}...`,
|
|
2561
2565
|
y: m(0) + 5,
|
|
2562
2566
|
x: 0,
|
|
2563
2567
|
width: d.bandwidth(),
|
|
2564
2568
|
height: b.bottom,
|
|
2565
|
-
style:
|
|
2569
|
+
style: $?.xAxis?.labels,
|
|
2566
2570
|
className: y?.xAxis?.labels,
|
|
2567
2571
|
alignment: "top",
|
|
2568
2572
|
animate: x,
|
|
2569
|
-
isInView:
|
|
2573
|
+
isInView: S
|
|
2570
2574
|
}
|
|
2571
2575
|
) : null
|
|
2572
2576
|
]
|
|
2573
2577
|
},
|
|
2574
|
-
|
|
2578
|
+
s.label
|
|
2575
2579
|
)
|
|
2576
2580
|
),
|
|
2577
|
-
|
|
2578
|
-
|
|
2581
|
+
Q ? /* @__PURE__ */ e.jsx(e.Fragment, { children: Q.map((s, l) => /* @__PURE__ */ e.jsx(
|
|
2582
|
+
ct,
|
|
2579
2583
|
{
|
|
2580
|
-
text:
|
|
2581
|
-
color:
|
|
2582
|
-
y: m(
|
|
2584
|
+
text: s.text,
|
|
2585
|
+
color: s.color,
|
|
2586
|
+
y: m(s.value),
|
|
2583
2587
|
x1: 0 - D,
|
|
2584
|
-
x2:
|
|
2585
|
-
classNames:
|
|
2586
|
-
styles:
|
|
2588
|
+
x2: N + b.right,
|
|
2589
|
+
classNames: s.classNames,
|
|
2590
|
+
styles: s.styles,
|
|
2587
2591
|
animate: x,
|
|
2588
|
-
isInView:
|
|
2592
|
+
isInView: S
|
|
2589
2593
|
},
|
|
2590
|
-
|
|
2594
|
+
l
|
|
2591
2595
|
)) }) : null
|
|
2592
2596
|
] }),
|
|
2593
|
-
|
|
2597
|
+
M.filter((s) => s.position === "after").map((s) => s.layer)
|
|
2594
2598
|
] })
|
|
2595
2599
|
}
|
|
2596
2600
|
),
|
|
2597
|
-
v && _ &&
|
|
2601
|
+
v && _ && ne && H ? /* @__PURE__ */ e.jsx(
|
|
2598
2602
|
Ge,
|
|
2599
2603
|
{
|
|
2600
2604
|
data: v,
|
|
2601
2605
|
body: _,
|
|
2602
|
-
xPos:
|
|
2606
|
+
xPos: ne,
|
|
2603
2607
|
yPos: H,
|
|
2604
|
-
backgroundStyle:
|
|
2608
|
+
backgroundStyle: $?.tooltip,
|
|
2605
2609
|
className: y?.tooltip
|
|
2606
2610
|
}
|
|
2607
2611
|
) : null,
|
|
2608
|
-
|
|
2612
|
+
se && T !== void 0 ? /* @__PURE__ */ e.jsx(
|
|
2609
2613
|
We,
|
|
2610
2614
|
{
|
|
2611
|
-
open:
|
|
2615
|
+
open: T !== void 0,
|
|
2612
2616
|
onClose: () => {
|
|
2613
|
-
|
|
2617
|
+
V(void 0);
|
|
2614
2618
|
},
|
|
2615
2619
|
children: /* @__PURE__ */ e.jsx(
|
|
2616
2620
|
"div",
|
|
2617
2621
|
{
|
|
2618
2622
|
className: "graph-modal-content m-0",
|
|
2619
|
-
dangerouslySetInnerHTML: typeof
|
|
2620
|
-
children: typeof
|
|
2623
|
+
dangerouslySetInnerHTML: typeof se == "string" ? { __html: Xe(se, T) } : void 0,
|
|
2624
|
+
children: typeof se == "function" ? se(T) : null
|
|
2621
2625
|
}
|
|
2622
2626
|
)
|
|
2623
2627
|
}
|
|
2624
2628
|
) : null
|
|
2625
2629
|
] });
|
|
2626
2630
|
}
|
|
2627
|
-
function
|
|
2631
|
+
function wt(fe) {
|
|
2628
2632
|
const {
|
|
2629
2633
|
data: o,
|
|
2630
2634
|
graphTitle: g,
|
|
2631
2635
|
colors: G = je.light.categoricalColors.colors,
|
|
2632
|
-
sources:
|
|
2636
|
+
sources: A,
|
|
2633
2637
|
graphDescription: X,
|
|
2634
2638
|
barPadding: me = 0.25,
|
|
2635
2639
|
showTicks: ue = !0,
|
|
2636
2640
|
leftMargin: ge = 20,
|
|
2637
|
-
rightMargin:
|
|
2641
|
+
rightMargin: K = 20,
|
|
2638
2642
|
topMargin: Y = 20,
|
|
2639
2643
|
bottomMargin: ie = 25,
|
|
2640
2644
|
truncateBy: D = 999,
|
|
2641
|
-
showLabels:
|
|
2645
|
+
showLabels: oe = !0,
|
|
2642
2646
|
showValues: he = !0,
|
|
2643
2647
|
backgroundColor: j = !1,
|
|
2644
2648
|
suffix: _ = "",
|
|
2645
2649
|
prefix: U = "",
|
|
2646
|
-
height:
|
|
2650
|
+
height: Q,
|
|
2647
2651
|
width: C,
|
|
2648
2652
|
footNote: p,
|
|
2649
2653
|
colorDomain: F,
|
|
2650
2654
|
colorLegendTitle: ae,
|
|
2651
2655
|
padding: le,
|
|
2652
2656
|
relativeHeight: J,
|
|
2653
|
-
tooltip:
|
|
2654
|
-
onSeriesMouseOver:
|
|
2657
|
+
tooltip: Z,
|
|
2658
|
+
onSeriesMouseOver: se,
|
|
2655
2659
|
refValues: E,
|
|
2656
2660
|
graphID: xe,
|
|
2657
2661
|
maxValue: de,
|
|
2658
|
-
minValue:
|
|
2662
|
+
minValue: $,
|
|
2659
2663
|
onSeriesMouseClick: y,
|
|
2660
2664
|
graphDownload: x = !1,
|
|
2661
2665
|
dataDownload: w = !1,
|
|
2662
|
-
language:
|
|
2663
|
-
theme:
|
|
2664
|
-
labelOrder:
|
|
2665
|
-
minHeight:
|
|
2666
|
-
maxBarThickness:
|
|
2666
|
+
language: z = "en",
|
|
2667
|
+
theme: M = "light",
|
|
2668
|
+
labelOrder: O,
|
|
2669
|
+
minHeight: I = 0,
|
|
2670
|
+
maxBarThickness: S,
|
|
2667
2671
|
ariaLabel: b,
|
|
2668
2672
|
resetSelectionOnDoubleClick: v = !0,
|
|
2669
2673
|
detailsOnClick: R,
|
|
2670
|
-
barAxisTitle:
|
|
2671
|
-
noOfTicks:
|
|
2672
|
-
valueColor:
|
|
2674
|
+
barAxisTitle: T,
|
|
2675
|
+
noOfTicks: V = 5,
|
|
2676
|
+
valueColor: ne,
|
|
2673
2677
|
styles: W,
|
|
2674
2678
|
classNames: H,
|
|
2675
|
-
filterNA:
|
|
2676
|
-
showColorScale:
|
|
2679
|
+
filterNA: ee = !0,
|
|
2680
|
+
showColorScale: N = !0,
|
|
2677
2681
|
animate: P = !1,
|
|
2678
2682
|
precision: m = 2,
|
|
2679
2683
|
customLayers: k = [],
|
|
2680
2684
|
timeline: f = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
|
|
2681
2685
|
naLabel: d = "NA"
|
|
2682
|
-
} = fe, [u, n] =
|
|
2686
|
+
} = fe, [u, n] = L(0), [s, l] = L(0), [t, a] = L(f.autoplay), h = Be(
|
|
2683
2687
|
Te(
|
|
2684
2688
|
o.filter((c) => c.date !== void 0 && c.date !== null),
|
|
2685
2689
|
(c) => c.date
|
|
2686
2690
|
).map((c) => Se(`${c.date}`, f.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()),
|
|
2687
2691
|
(c, te) => tt(c, te)
|
|
2688
|
-
), [
|
|
2692
|
+
), [ve, Oe] = L(f.autoplay ? 0 : h.length - 1), [ce, be] = L(void 0), we = Me(null), re = Me(null);
|
|
2689
2693
|
ze(() => {
|
|
2690
2694
|
const c = new ResizeObserver((te) => {
|
|
2691
|
-
n(C || te[0].target.clientWidth || 620),
|
|
2695
|
+
n(C || te[0].target.clientWidth || 620), l(Q || te[0].target.clientHeight || 480);
|
|
2692
2696
|
});
|
|
2693
|
-
return
|
|
2694
|
-
}, [C,
|
|
2697
|
+
return we.current && (l(we.current.clientHeight || 480), n(we.current.clientWidth || 620), C || c.observe(we.current)), () => c.disconnect();
|
|
2698
|
+
}, [C, Q]), ze(() => {
|
|
2695
2699
|
const c = setInterval(
|
|
2696
2700
|
() => {
|
|
2697
|
-
|
|
2701
|
+
Oe((te) => te < h.length - 1 ? te + 1 : 0);
|
|
2698
2702
|
},
|
|
2699
2703
|
(f.speed || 2) * 1e3
|
|
2700
2704
|
);
|
|
2701
2705
|
return t || clearInterval(c), () => clearInterval(c);
|
|
2702
2706
|
}, [h, t, f.speed]);
|
|
2703
|
-
const
|
|
2707
|
+
const Ce = Fe(
|
|
2704
2708
|
h,
|
|
2705
|
-
|
|
2709
|
+
ve,
|
|
2706
2710
|
f.showOnlyActiveDate,
|
|
2707
2711
|
f.dateFormat || "yyyy"
|
|
2708
2712
|
);
|
|
2709
2713
|
return /* @__PURE__ */ e.jsx(
|
|
2710
2714
|
"div",
|
|
2711
2715
|
{
|
|
2712
|
-
className: `${
|
|
2713
|
-
dir:
|
|
2716
|
+
className: `${M || "light"} flex ${C ? "w-fit grow-0" : "w-full grow"}`,
|
|
2717
|
+
dir: z === "he" || z === "ar" ? "rtl" : void 0,
|
|
2714
2718
|
children: /* @__PURE__ */ e.jsx(
|
|
2715
2719
|
"div",
|
|
2716
2720
|
{
|
|
2717
2721
|
className: Ne(
|
|
2718
|
-
`${j ? j === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${
|
|
2722
|
+
`${j ? j === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${z || "en"}`,
|
|
2719
2723
|
H?.graphContainer
|
|
2720
2724
|
),
|
|
2721
2725
|
style: {
|
|
@@ -2723,7 +2727,7 @@ function vt(fe) {
|
|
|
2723
2727
|
...j && j !== !0 ? { backgroundColor: j } : {}
|
|
2724
2728
|
},
|
|
2725
2729
|
id: xe,
|
|
2726
|
-
ref:
|
|
2730
|
+
ref: re,
|
|
2727
2731
|
"aria-label": b || `${g ? `The graph shows ${g}. ` : ""}This is a grouped bar chart. ${X ? ` ${X}` : ""}`,
|
|
2728
2732
|
children: /* @__PURE__ */ e.jsx(
|
|
2729
2733
|
"div",
|
|
@@ -2745,17 +2749,17 @@ function vt(fe) {
|
|
|
2745
2749
|
graphTitle: g,
|
|
2746
2750
|
graphDescription: X,
|
|
2747
2751
|
width: C,
|
|
2748
|
-
graphDownload: x ?
|
|
2752
|
+
graphDownload: x ? re.current : void 0,
|
|
2749
2753
|
dataDownload: w ? o.map((c) => c.data).filter((c) => c !== void 0).length > 0 ? o.map((c) => c.data).filter((c) => c !== void 0) : o.filter((c) => c !== void 0) : null
|
|
2750
2754
|
}
|
|
2751
2755
|
) : null,
|
|
2752
|
-
f.enabled && h.length > 0 &&
|
|
2756
|
+
f.enabled && h.length > 0 && Ce ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
2753
2757
|
/* @__PURE__ */ e.jsx(
|
|
2754
2758
|
"button",
|
|
2755
2759
|
{
|
|
2756
2760
|
type: "button",
|
|
2757
2761
|
onClick: () => {
|
|
2758
|
-
|
|
2762
|
+
a(!t);
|
|
2759
2763
|
},
|
|
2760
2764
|
className: "p-0 border-0 cursor-pointer bg-transparent",
|
|
2761
2765
|
"aria-label": t ? "Click to pause animation" : "Click to play animation",
|
|
@@ -2767,63 +2771,63 @@ function vt(fe) {
|
|
|
2767
2771
|
{
|
|
2768
2772
|
min: h[0],
|
|
2769
2773
|
max: h[h.length - 1],
|
|
2770
|
-
marks:
|
|
2774
|
+
marks: Ce,
|
|
2771
2775
|
step: null,
|
|
2772
2776
|
defaultValue: h[h.length - 1],
|
|
2773
|
-
value: h[
|
|
2777
|
+
value: h[ve],
|
|
2774
2778
|
onChangeComplete: (c) => {
|
|
2775
|
-
|
|
2779
|
+
Oe(h.indexOf(c));
|
|
2776
2780
|
},
|
|
2777
2781
|
onChange: (c) => {
|
|
2778
|
-
|
|
2782
|
+
Oe(h.indexOf(c));
|
|
2779
2783
|
},
|
|
2780
2784
|
"aria-label": "Time slider. Use arrow keys to adjust selected time period."
|
|
2781
2785
|
}
|
|
2782
2786
|
)
|
|
2783
2787
|
] }) : null,
|
|
2784
2788
|
/* @__PURE__ */ e.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: o.length === 0 ? /* @__PURE__ */ e.jsx(Qe, {}) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2785
|
-
|
|
2789
|
+
N ? /* @__PURE__ */ e.jsx(
|
|
2786
2790
|
Ke,
|
|
2787
2791
|
{
|
|
2788
2792
|
width: C,
|
|
2789
2793
|
colorDomain: F,
|
|
2790
2794
|
colors: G,
|
|
2791
2795
|
colorLegendTitle: ae,
|
|
2792
|
-
setSelectedColor:
|
|
2796
|
+
setSelectedColor: be,
|
|
2793
2797
|
showNAColor: !1
|
|
2794
2798
|
}
|
|
2795
2799
|
) : null,
|
|
2796
|
-
/* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref:
|
|
2797
|
-
|
|
2800
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: we, "aria-label": "Graph area", children: (C || u) && (Q || s) ? /* @__PURE__ */ e.jsx(
|
|
2801
|
+
vt,
|
|
2798
2802
|
{
|
|
2799
|
-
data:
|
|
2803
|
+
data: Ae(
|
|
2800
2804
|
o,
|
|
2801
2805
|
f.dateFormat || "yyyy"
|
|
2802
2806
|
).filter(
|
|
2803
|
-
(c) => f.enabled ? c.date ===
|
|
2804
|
-
new Date(h[
|
|
2807
|
+
(c) => f.enabled ? c.date === De(
|
|
2808
|
+
new Date(h[ve]),
|
|
2805
2809
|
f.dateFormat || "yyyy"
|
|
2806
2810
|
) : c
|
|
2807
|
-
).filter((c) =>
|
|
2811
|
+
).filter((c) => ee ? !c.size.every((te) => te == null) : c),
|
|
2808
2812
|
barColors: G,
|
|
2809
2813
|
width: C || u,
|
|
2810
2814
|
height: Math.max(
|
|
2811
|
-
|
|
2812
|
-
|
|
2815
|
+
I,
|
|
2816
|
+
Q || (J ? I ? (C || u) * J > I ? (C || u) * J : I : (C || u) * J : s)
|
|
2813
2817
|
),
|
|
2814
2818
|
suffix: _,
|
|
2815
2819
|
prefix: U,
|
|
2816
2820
|
barPadding: me,
|
|
2817
|
-
showLabels:
|
|
2821
|
+
showLabels: oe,
|
|
2818
2822
|
showValues: he,
|
|
2819
2823
|
showTicks: ue,
|
|
2820
2824
|
truncateBy: D,
|
|
2821
2825
|
leftMargin: ge,
|
|
2822
|
-
rightMargin:
|
|
2826
|
+
rightMargin: K,
|
|
2823
2827
|
topMargin: Y,
|
|
2824
2828
|
bottomMargin: ie,
|
|
2825
|
-
tooltip:
|
|
2826
|
-
onSeriesMouseOver:
|
|
2829
|
+
tooltip: Z,
|
|
2830
|
+
onSeriesMouseOver: se,
|
|
2827
2831
|
refValues: E,
|
|
2828
2832
|
maxValue: q(de) ? Math.max(
|
|
2829
2833
|
...o.map(
|
|
@@ -2842,7 +2846,7 @@ function vt(fe) {
|
|
|
2842
2846
|
)
|
|
2843
2847
|
)
|
|
2844
2848
|
) : de,
|
|
2845
|
-
minValue: q(
|
|
2849
|
+
minValue: q($) ? Math.min(
|
|
2846
2850
|
...o.map(
|
|
2847
2851
|
(c) => Math.min(
|
|
2848
2852
|
...c.size.filter(
|
|
@@ -2858,16 +2862,16 @@ function vt(fe) {
|
|
|
2858
2862
|
)
|
|
2859
2863
|
)
|
|
2860
2864
|
)
|
|
2861
|
-
) :
|
|
2865
|
+
) : $,
|
|
2862
2866
|
onSeriesMouseClick: y,
|
|
2863
|
-
selectedColor:
|
|
2864
|
-
labelOrder:
|
|
2865
|
-
maxBarThickness:
|
|
2867
|
+
selectedColor: ce,
|
|
2868
|
+
labelOrder: O,
|
|
2869
|
+
maxBarThickness: S,
|
|
2866
2870
|
resetSelectionOnDoubleClick: v,
|
|
2867
2871
|
detailsOnClick: R,
|
|
2868
|
-
barAxisTitle:
|
|
2869
|
-
noOfTicks:
|
|
2870
|
-
valueColor:
|
|
2872
|
+
barAxisTitle: T,
|
|
2873
|
+
noOfTicks: V,
|
|
2874
|
+
valueColor: ne,
|
|
2871
2875
|
styles: W,
|
|
2872
2876
|
classNames: H,
|
|
2873
2877
|
animate: P === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : P || { duration: 0, once: !0, amount: 0 },
|
|
@@ -2878,7 +2882,7 @@ function vt(fe) {
|
|
|
2878
2882
|
}
|
|
2879
2883
|
) : null })
|
|
2880
2884
|
] }) }),
|
|
2881
|
-
|
|
2885
|
+
A || p ? /* @__PURE__ */ e.jsx(
|
|
2882
2886
|
Ue,
|
|
2883
2887
|
{
|
|
2884
2888
|
styles: { footnote: W?.footnote, source: W?.source },
|
|
@@ -2886,7 +2890,7 @@ function vt(fe) {
|
|
|
2886
2890
|
footnote: H?.footnote,
|
|
2887
2891
|
source: H?.source
|
|
2888
2892
|
},
|
|
2889
|
-
sources:
|
|
2893
|
+
sources: A,
|
|
2890
2894
|
footNote: p,
|
|
2891
2895
|
width: C
|
|
2892
2896
|
}
|
|
@@ -2899,58 +2903,58 @@ function vt(fe) {
|
|
|
2899
2903
|
}
|
|
2900
2904
|
);
|
|
2901
2905
|
}
|
|
2902
|
-
function
|
|
2906
|
+
function Ct(fe) {
|
|
2903
2907
|
const {
|
|
2904
2908
|
data: o,
|
|
2905
2909
|
width: g,
|
|
2906
2910
|
height: G,
|
|
2907
|
-
barColors:
|
|
2911
|
+
barColors: A,
|
|
2908
2912
|
barPadding: X,
|
|
2909
2913
|
showLabels: me,
|
|
2910
2914
|
showTicks: ue,
|
|
2911
2915
|
truncateBy: ge,
|
|
2912
|
-
leftMargin:
|
|
2916
|
+
leftMargin: K,
|
|
2913
2917
|
topMargin: Y,
|
|
2914
2918
|
bottomMargin: ie,
|
|
2915
2919
|
rightMargin: D,
|
|
2916
|
-
tooltip:
|
|
2920
|
+
tooltip: oe,
|
|
2917
2921
|
onSeriesMouseOver: he,
|
|
2918
2922
|
suffix: j,
|
|
2919
2923
|
prefix: _,
|
|
2920
2924
|
showValues: U,
|
|
2921
|
-
refValues:
|
|
2925
|
+
refValues: Q,
|
|
2922
2926
|
maxValue: C,
|
|
2923
2927
|
onSeriesMouseClick: p,
|
|
2924
2928
|
selectedColor: F,
|
|
2925
2929
|
labelOrder: ae,
|
|
2926
2930
|
maxBarThickness: le,
|
|
2927
2931
|
minBarThickness: J,
|
|
2928
|
-
resetSelectionOnDoubleClick:
|
|
2929
|
-
detailsOnClick:
|
|
2932
|
+
resetSelectionOnDoubleClick: Z,
|
|
2933
|
+
detailsOnClick: se,
|
|
2930
2934
|
barAxisTitle: E,
|
|
2931
2935
|
valueColor: xe,
|
|
2932
2936
|
noOfTicks: de,
|
|
2933
|
-
styles:
|
|
2937
|
+
styles: $,
|
|
2934
2938
|
classNames: y,
|
|
2935
2939
|
animate: x,
|
|
2936
2940
|
colorDomain: w,
|
|
2937
|
-
precision:
|
|
2938
|
-
customLayers:
|
|
2939
|
-
naLabel:
|
|
2940
|
-
} = fe,
|
|
2941
|
+
precision: z,
|
|
2942
|
+
customLayers: M,
|
|
2943
|
+
naLabel: O
|
|
2944
|
+
} = fe, I = Me(null), S = Ee(I, {
|
|
2941
2945
|
once: x.once,
|
|
2942
2946
|
amount: x.amount
|
|
2943
2947
|
}), b = {
|
|
2944
2948
|
top: Y,
|
|
2945
2949
|
bottom: ie,
|
|
2946
|
-
left: E ?
|
|
2950
|
+
left: E ? K + 30 : K,
|
|
2947
2951
|
right: D
|
|
2948
|
-
}, [v, R] =
|
|
2952
|
+
}, [v, R] = L(void 0), [T, V] = L(void 0), [ne, W] = L(void 0), [H, ee] = L(void 0), N = g - b.left - b.right, P = G - b.top - b.bottom, m = Re().domain([0, C]).range([P, 0]).nice(), k = o.map((n, s) => ({
|
|
2949
2953
|
...n,
|
|
2950
|
-
id: ae ? `${n.label}` : `${
|
|
2954
|
+
id: ae ? `${n.label}` : `${s}`
|
|
2951
2955
|
})), f = ae || k.map((n) => `${n.id}`), d = Ie().domain(f).range([
|
|
2952
2956
|
0,
|
|
2953
|
-
J ? Math.max(
|
|
2957
|
+
J ? Math.max(N, J * f.length) : le ? Math.min(N, le * f.length) : N
|
|
2954
2958
|
]).paddingInner(X), u = m.ticks(de);
|
|
2955
2959
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2956
2960
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2960,18 +2964,18 @@ function wt(fe) {
|
|
|
2960
2964
|
height: `${G}px`,
|
|
2961
2965
|
viewBox: `0 0 ${g} ${G}`,
|
|
2962
2966
|
direction: "ltr",
|
|
2963
|
-
ref:
|
|
2967
|
+
ref: I,
|
|
2964
2968
|
children: /* @__PURE__ */ e.jsxs("g", { transform: `translate(${b.left},${b.top})`, children: [
|
|
2965
2969
|
/* @__PURE__ */ e.jsx(
|
|
2966
2970
|
_e,
|
|
2967
2971
|
{
|
|
2968
2972
|
y1: m(0),
|
|
2969
2973
|
y2: m(0),
|
|
2970
|
-
x1: 0 -
|
|
2971
|
-
x2:
|
|
2972
|
-
label:
|
|
2974
|
+
x1: 0 - K,
|
|
2975
|
+
x2: N + b.right,
|
|
2976
|
+
label: $e(0, O, z, _, j),
|
|
2973
2977
|
labelPos: {
|
|
2974
|
-
x: 0 -
|
|
2978
|
+
x: 0 - K,
|
|
2975
2979
|
y: m(0),
|
|
2976
2980
|
dx: 0,
|
|
2977
2981
|
dy: -5
|
|
@@ -2980,19 +2984,19 @@ function wt(fe) {
|
|
|
2980
2984
|
axis: y?.xAxis?.axis,
|
|
2981
2985
|
label: y?.yAxis?.labels
|
|
2982
2986
|
},
|
|
2983
|
-
styles: { axis:
|
|
2987
|
+
styles: { axis: $?.xAxis?.axis, label: $?.yAxis?.labels }
|
|
2984
2988
|
}
|
|
2985
2989
|
),
|
|
2986
2990
|
ue ? /* @__PURE__ */ e.jsx(
|
|
2987
|
-
|
|
2991
|
+
ht,
|
|
2988
2992
|
{
|
|
2989
2993
|
values: u.filter((n) => n !== 0),
|
|
2990
2994
|
y: u.filter((n) => n !== 0).map((n) => m(n)),
|
|
2991
|
-
x1: 0 -
|
|
2992
|
-
x2:
|
|
2995
|
+
x1: 0 - K,
|
|
2996
|
+
x2: N + b.right,
|
|
2993
2997
|
styles: {
|
|
2994
|
-
gridLines:
|
|
2995
|
-
labels:
|
|
2998
|
+
gridLines: $?.yAxis?.gridLines,
|
|
2999
|
+
labels: $?.yAxis?.labels
|
|
2996
3000
|
},
|
|
2997
3001
|
classNames: {
|
|
2998
3002
|
gridLines: y?.yAxis?.gridLines,
|
|
@@ -3003,21 +3007,21 @@ function wt(fe) {
|
|
|
3003
3007
|
labelType: "secondary",
|
|
3004
3008
|
showGridLines: !0,
|
|
3005
3009
|
labelPos: "vertical",
|
|
3006
|
-
precision:
|
|
3010
|
+
precision: z
|
|
3007
3011
|
}
|
|
3008
3012
|
) : null,
|
|
3009
3013
|
/* @__PURE__ */ e.jsx(
|
|
3010
3014
|
Ye,
|
|
3011
3015
|
{
|
|
3012
|
-
x: 0 -
|
|
3016
|
+
x: 0 - K - 15,
|
|
3013
3017
|
y: P / 2,
|
|
3014
|
-
style:
|
|
3018
|
+
style: $?.yAxis?.title,
|
|
3015
3019
|
className: y?.yAxis?.title,
|
|
3016
3020
|
text: E,
|
|
3017
3021
|
rotate90: !0
|
|
3018
3022
|
}
|
|
3019
3023
|
),
|
|
3020
|
-
|
|
3024
|
+
M.filter((n) => n.position === "before").map((n) => n.layer),
|
|
3021
3025
|
/* @__PURE__ */ e.jsxs(qe, { children: [
|
|
3022
3026
|
k.map(
|
|
3023
3027
|
(n) => q(d(n.id)) ? null : /* @__PURE__ */ e.jsxs(
|
|
@@ -3034,24 +3038,24 @@ function wt(fe) {
|
|
|
3034
3038
|
},
|
|
3035
3039
|
transition: { duration: x.duration },
|
|
3036
3040
|
initial: "initial",
|
|
3037
|
-
animate:
|
|
3041
|
+
animate: S ? "whileInView" : "initial",
|
|
3038
3042
|
exit: { opacity: 0, transition: { duration: x.duration } },
|
|
3039
3043
|
children: [
|
|
3040
|
-
n.size.map((
|
|
3044
|
+
n.size.map((s, l) => /* @__PURE__ */ e.jsxs(
|
|
3041
3045
|
pe.g,
|
|
3042
3046
|
{
|
|
3043
|
-
opacity: F ?
|
|
3047
|
+
opacity: F ? A[l] === F ? 1 : 0.3 : 1,
|
|
3044
3048
|
onMouseEnter: (t) => {
|
|
3045
|
-
R({ ...n, sizeIndex:
|
|
3049
|
+
R({ ...n, sizeIndex: l }), ee(t.clientY), W(t.clientX), he?.({ ...n, sizeIndex: l });
|
|
3046
3050
|
},
|
|
3047
3051
|
onMouseMove: (t) => {
|
|
3048
|
-
R({ ...n, sizeIndex:
|
|
3052
|
+
R({ ...n, sizeIndex: l }), ee(t.clientY), W(t.clientX);
|
|
3049
3053
|
},
|
|
3050
3054
|
onMouseLeave: () => {
|
|
3051
|
-
R(void 0), W(void 0),
|
|
3055
|
+
R(void 0), W(void 0), ee(void 0), he?.(void 0);
|
|
3052
3056
|
},
|
|
3053
3057
|
onClick: () => {
|
|
3054
|
-
(p ||
|
|
3058
|
+
(p || se) && (Pe(T, { ...n, sizeIndex: l }) && Z ? (V(void 0), p?.(void 0)) : (V({ ...n, sizeIndex: l }), p && p({ ...n, sizeIndex: l })));
|
|
3055
3059
|
},
|
|
3056
3060
|
children: [
|
|
3057
3061
|
/* @__PURE__ */ e.jsx(
|
|
@@ -3062,20 +3066,20 @@ function wt(fe) {
|
|
|
3062
3066
|
variants: {
|
|
3063
3067
|
initial: {
|
|
3064
3068
|
height: 0,
|
|
3065
|
-
fill:
|
|
3069
|
+
fill: A[l],
|
|
3066
3070
|
y: m(0)
|
|
3067
3071
|
},
|
|
3068
3072
|
whileInView: {
|
|
3069
3073
|
height: Math.abs(
|
|
3070
|
-
m(ke(n.size.filter((t,
|
|
3074
|
+
m(ke(n.size.filter((t, a) => a <= l && t))) - m(ke(n.size.filter((t, a) => a < l && t)))
|
|
3071
3075
|
),
|
|
3072
|
-
y: m(ke(n.size.filter((t,
|
|
3073
|
-
fill:
|
|
3076
|
+
y: m(ke(n.size.filter((t, a) => a <= l && t))),
|
|
3077
|
+
fill: A[l],
|
|
3074
3078
|
transition: { duration: x.duration }
|
|
3075
3079
|
}
|
|
3076
3080
|
},
|
|
3077
3081
|
initial: "initial",
|
|
3078
|
-
animate:
|
|
3082
|
+
animate: S ? "whileInView" : "initial",
|
|
3079
3083
|
exit: {
|
|
3080
3084
|
height: 0,
|
|
3081
3085
|
y: m(0),
|
|
@@ -3088,9 +3092,9 @@ function wt(fe) {
|
|
|
3088
3092
|
{
|
|
3089
3093
|
x: d.bandwidth() / 2,
|
|
3090
3094
|
style: {
|
|
3091
|
-
fill:
|
|
3095
|
+
fill: at(A[l]),
|
|
3092
3096
|
textAnchor: "middle",
|
|
3093
|
-
|
|
3097
|
+
...$?.graphObjectValues || {}
|
|
3094
3098
|
},
|
|
3095
3099
|
className: Ne("graph-value text-sm", y?.graphObjectValues),
|
|
3096
3100
|
dy: "0.33em",
|
|
@@ -3098,42 +3102,42 @@ function wt(fe) {
|
|
|
3098
3102
|
initial: {
|
|
3099
3103
|
y: m(0),
|
|
3100
3104
|
opacity: 0,
|
|
3101
|
-
fill:
|
|
3105
|
+
fill: at(A[l])
|
|
3102
3106
|
},
|
|
3103
3107
|
whileInView: {
|
|
3104
|
-
y: m(ke(n.size.filter((t,
|
|
3105
|
-
m(ke(n.size.filter((t,
|
|
3108
|
+
y: m(ke(n.size.filter((t, a) => a <= l && t))) + Math.abs(
|
|
3109
|
+
m(ke(n.size.filter((t, a) => a <= l && t))) - m(ke(n.size.filter((t, a) => a < l && t)))
|
|
3106
3110
|
) / 2,
|
|
3107
|
-
opacity:
|
|
3108
|
-
m(ke(n.size.filter((t,
|
|
3111
|
+
opacity: s && Math.abs(
|
|
3112
|
+
m(ke(n.size.filter((t, a) => a <= l && t))) - m(ke(n.size.filter((t, a) => a < l && t)))
|
|
3109
3113
|
) > 20 ? 1 : 0,
|
|
3110
|
-
fill:
|
|
3114
|
+
fill: at(A[l]),
|
|
3111
3115
|
transition: { duration: x.duration }
|
|
3112
3116
|
}
|
|
3113
3117
|
},
|
|
3114
3118
|
initial: "initial",
|
|
3115
|
-
animate:
|
|
3119
|
+
animate: S ? "whileInView" : "initial",
|
|
3116
3120
|
exit: { opacity: 0, transition: { duration: x.duration } },
|
|
3117
|
-
children:
|
|
3121
|
+
children: $e(s, O, z, _, j)
|
|
3118
3122
|
}
|
|
3119
3123
|
) : null
|
|
3120
3124
|
]
|
|
3121
3125
|
},
|
|
3122
|
-
`${n.label}-${w[
|
|
3126
|
+
`${n.label}-${w[l] || l}`
|
|
3123
3127
|
)),
|
|
3124
3128
|
me ? /* @__PURE__ */ e.jsx(
|
|
3125
|
-
|
|
3129
|
+
dt,
|
|
3126
3130
|
{
|
|
3127
3131
|
value: `${n.label}`.length < ge ? `${n.label}` : `${`${n.label}`.substring(0, ge)}...`,
|
|
3128
3132
|
y: m(0) + 5,
|
|
3129
3133
|
x: 0,
|
|
3130
3134
|
width: d.bandwidth(),
|
|
3131
3135
|
height: b.bottom,
|
|
3132
|
-
style:
|
|
3136
|
+
style: $?.xAxis?.labels,
|
|
3133
3137
|
className: y?.xAxis?.labels,
|
|
3134
3138
|
alignment: "top",
|
|
3135
3139
|
animate: x,
|
|
3136
|
-
isInView:
|
|
3140
|
+
isInView: S
|
|
3137
3141
|
}
|
|
3138
3142
|
) : null,
|
|
3139
3143
|
U ? /* @__PURE__ */ e.jsx(
|
|
@@ -3142,7 +3146,7 @@ function wt(fe) {
|
|
|
3142
3146
|
style: {
|
|
3143
3147
|
...xe && { fill: xe },
|
|
3144
3148
|
textAnchor: "middle",
|
|
3145
|
-
|
|
3149
|
+
...$?.graphObjectValues || {}
|
|
3146
3150
|
},
|
|
3147
3151
|
x: d.bandwidth() / 2,
|
|
3148
3152
|
dy: -10,
|
|
@@ -3157,7 +3161,7 @@ function wt(fe) {
|
|
|
3157
3161
|
opacity: 0
|
|
3158
3162
|
},
|
|
3159
3163
|
whileInView: {
|
|
3160
|
-
y: m(ke(n.size.map((
|
|
3164
|
+
y: m(ke(n.size.map((s) => s || 0))),
|
|
3161
3165
|
opacity: 1,
|
|
3162
3166
|
transition: { duration: x.duration }
|
|
3163
3167
|
}
|
|
@@ -3167,11 +3171,11 @@ function wt(fe) {
|
|
|
3167
3171
|
transition: { duration: x.duration }
|
|
3168
3172
|
},
|
|
3169
3173
|
initial: "initial",
|
|
3170
|
-
animate:
|
|
3171
|
-
children:
|
|
3172
|
-
ke(n.size.filter((
|
|
3173
|
-
|
|
3174
|
-
|
|
3174
|
+
animate: S ? "whileInView" : "initial",
|
|
3175
|
+
children: $e(
|
|
3176
|
+
ke(n.size.filter((s) => s)),
|
|
3177
|
+
O,
|
|
3178
|
+
z,
|
|
3175
3179
|
_,
|
|
3176
3180
|
j
|
|
3177
3181
|
)
|
|
@@ -3182,166 +3186,167 @@ function wt(fe) {
|
|
|
3182
3186
|
n.label
|
|
3183
3187
|
)
|
|
3184
3188
|
),
|
|
3185
|
-
|
|
3186
|
-
|
|
3189
|
+
Q ? /* @__PURE__ */ e.jsx(e.Fragment, { children: Q.map((n, s) => /* @__PURE__ */ e.jsx(
|
|
3190
|
+
ct,
|
|
3187
3191
|
{
|
|
3188
3192
|
text: n.text,
|
|
3189
3193
|
color: n.color,
|
|
3190
3194
|
y: m(n.value),
|
|
3191
|
-
x1: 0 -
|
|
3192
|
-
x2:
|
|
3195
|
+
x1: 0 - K,
|
|
3196
|
+
x2: N + b.right,
|
|
3193
3197
|
classNames: n.classNames,
|
|
3194
3198
|
styles: n.styles,
|
|
3195
3199
|
animate: x,
|
|
3196
|
-
isInView:
|
|
3200
|
+
isInView: S
|
|
3197
3201
|
},
|
|
3198
|
-
|
|
3202
|
+
s
|
|
3199
3203
|
)) }) : null
|
|
3200
3204
|
] }),
|
|
3201
|
-
|
|
3205
|
+
M.filter((n) => n.position === "after").map((n) => n.layer)
|
|
3202
3206
|
] })
|
|
3203
3207
|
}
|
|
3204
3208
|
),
|
|
3205
|
-
v &&
|
|
3209
|
+
v && oe && ne && H ? /* @__PURE__ */ e.jsx(
|
|
3206
3210
|
Ge,
|
|
3207
3211
|
{
|
|
3208
3212
|
data: v,
|
|
3209
|
-
body:
|
|
3210
|
-
xPos:
|
|
3213
|
+
body: oe,
|
|
3214
|
+
xPos: ne,
|
|
3211
3215
|
yPos: H,
|
|
3212
|
-
backgroundStyle:
|
|
3216
|
+
backgroundStyle: $?.tooltip,
|
|
3213
3217
|
className: y?.tooltip
|
|
3214
3218
|
}
|
|
3215
3219
|
) : null,
|
|
3216
|
-
|
|
3220
|
+
se && T !== void 0 ? /* @__PURE__ */ e.jsx(
|
|
3217
3221
|
We,
|
|
3218
3222
|
{
|
|
3219
|
-
open:
|
|
3223
|
+
open: T !== void 0,
|
|
3220
3224
|
onClose: () => {
|
|
3221
|
-
|
|
3225
|
+
V(void 0);
|
|
3222
3226
|
},
|
|
3223
3227
|
children: /* @__PURE__ */ e.jsx(
|
|
3224
3228
|
"div",
|
|
3225
3229
|
{
|
|
3226
3230
|
className: "graph-modal-content m-0",
|
|
3227
|
-
dangerouslySetInnerHTML: typeof
|
|
3228
|
-
children: typeof
|
|
3231
|
+
dangerouslySetInnerHTML: typeof se == "string" ? { __html: Xe(se, T) } : void 0,
|
|
3232
|
+
children: typeof se == "function" ? se(T) : null
|
|
3229
3233
|
}
|
|
3230
3234
|
)
|
|
3231
3235
|
}
|
|
3232
3236
|
) : null
|
|
3233
3237
|
] });
|
|
3234
3238
|
}
|
|
3235
|
-
function
|
|
3239
|
+
function kt(fe) {
|
|
3236
3240
|
const {
|
|
3237
3241
|
data: o,
|
|
3238
3242
|
graphTitle: g,
|
|
3239
3243
|
colors: G = je.light.categoricalColors.colors,
|
|
3240
|
-
sources:
|
|
3244
|
+
sources: A,
|
|
3241
3245
|
graphDescription: X,
|
|
3242
3246
|
barPadding: me = 0.25,
|
|
3243
3247
|
showTicks: ue = !0,
|
|
3244
3248
|
leftMargin: ge = 20,
|
|
3245
|
-
rightMargin:
|
|
3249
|
+
rightMargin: K = 20,
|
|
3246
3250
|
topMargin: Y = 20,
|
|
3247
3251
|
bottomMargin: ie = 25,
|
|
3248
3252
|
truncateBy: D = 999,
|
|
3249
|
-
showLabels:
|
|
3253
|
+
showLabels: oe = !0,
|
|
3250
3254
|
showValues: he = !0,
|
|
3251
3255
|
backgroundColor: j = !1,
|
|
3252
3256
|
showColorScale: _ = !0,
|
|
3253
3257
|
suffix: U = "",
|
|
3254
|
-
prefix:
|
|
3258
|
+
prefix: Q = "",
|
|
3255
3259
|
height: C,
|
|
3256
3260
|
width: p,
|
|
3257
3261
|
footNote: F,
|
|
3258
3262
|
colorDomain: ae,
|
|
3259
3263
|
colorLegendTitle: le,
|
|
3260
3264
|
padding: J,
|
|
3261
|
-
tooltip:
|
|
3262
|
-
onSeriesMouseOver:
|
|
3265
|
+
tooltip: Z,
|
|
3266
|
+
onSeriesMouseOver: se,
|
|
3263
3267
|
relativeHeight: E,
|
|
3264
3268
|
refValues: xe,
|
|
3265
3269
|
graphID: de,
|
|
3266
|
-
maxValue:
|
|
3270
|
+
maxValue: $,
|
|
3267
3271
|
onSeriesMouseClick: y,
|
|
3268
3272
|
graphDownload: x = !1,
|
|
3269
3273
|
dataDownload: w = !1,
|
|
3270
|
-
language:
|
|
3271
|
-
theme:
|
|
3272
|
-
labelOrder:
|
|
3273
|
-
minHeight:
|
|
3274
|
-
maxBarThickness:
|
|
3274
|
+
language: z = "en",
|
|
3275
|
+
theme: M = "light",
|
|
3276
|
+
labelOrder: O,
|
|
3277
|
+
minHeight: I = 0,
|
|
3278
|
+
maxBarThickness: S,
|
|
3275
3279
|
sortParameter: b,
|
|
3276
3280
|
maxNumberOfBars: v,
|
|
3277
3281
|
minBarThickness: R,
|
|
3278
|
-
ariaLabel:
|
|
3279
|
-
resetSelectionOnDoubleClick:
|
|
3280
|
-
detailsOnClick:
|
|
3282
|
+
ariaLabel: T,
|
|
3283
|
+
resetSelectionOnDoubleClick: V = !0,
|
|
3284
|
+
detailsOnClick: ne,
|
|
3281
3285
|
barAxisTitle: W,
|
|
3282
3286
|
noOfTicks: H = 5,
|
|
3283
|
-
valueColor:
|
|
3284
|
-
styles:
|
|
3287
|
+
valueColor: ee,
|
|
3288
|
+
styles: N,
|
|
3285
3289
|
classNames: P,
|
|
3286
3290
|
filterNA: m = !0,
|
|
3287
3291
|
animate: k = !1,
|
|
3288
3292
|
precision: f = 2,
|
|
3289
3293
|
customLayers: d = [],
|
|
3290
3294
|
timeline: u = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
|
|
3291
|
-
naLabel: n = "NA"
|
|
3292
|
-
|
|
3295
|
+
naLabel: n = "NA",
|
|
3296
|
+
sortData: s
|
|
3297
|
+
} = fe, [l, t] = L(0), [a, h] = L(0), [ve, Oe] = L(u.autoplay), ce = Be(
|
|
3293
3298
|
Te(
|
|
3294
3299
|
o.filter((r) => r.date !== void 0 && r.date !== null),
|
|
3295
3300
|
(r) => r.date
|
|
3296
3301
|
).map((r) => Se(`${r.date}`, u.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()),
|
|
3297
|
-
(r,
|
|
3298
|
-
), [
|
|
3302
|
+
(r, B) => tt(r, B)
|
|
3303
|
+
), [be, we] = L(u.autoplay ? 0 : ce.length - 1), [re, Ce] = L(void 0), c = Me(null), te = Me(null);
|
|
3299
3304
|
ze(() => {
|
|
3300
|
-
const r = new ResizeObserver((
|
|
3301
|
-
|
|
3305
|
+
const r = new ResizeObserver((B) => {
|
|
3306
|
+
t(p || B[0].target.clientWidth || 620), h(C || B[0].target.clientHeight || 480);
|
|
3302
3307
|
});
|
|
3303
|
-
return
|
|
3308
|
+
return c.current && (h(c.current.clientHeight || 480), t(c.current.clientWidth || 620), p || r.observe(c.current)), () => r.disconnect();
|
|
3304
3309
|
}, [p, C]), ze(() => {
|
|
3305
3310
|
const r = setInterval(
|
|
3306
3311
|
() => {
|
|
3307
|
-
|
|
3312
|
+
we((B) => B < ce.length - 1 ? B + 1 : 0);
|
|
3308
3313
|
},
|
|
3309
3314
|
(u.speed || 2) * 1e3
|
|
3310
3315
|
);
|
|
3311
|
-
return
|
|
3312
|
-
}, [
|
|
3313
|
-
const
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
+
return ve || clearInterval(r), () => clearInterval(r);
|
|
3317
|
+
}, [ce, ve, u.speed]);
|
|
3318
|
+
const Ve = Fe(
|
|
3319
|
+
ce,
|
|
3320
|
+
be,
|
|
3316
3321
|
u.showOnlyActiveDate,
|
|
3317
3322
|
u.dateFormat || "yyyy"
|
|
3318
3323
|
);
|
|
3319
3324
|
return /* @__PURE__ */ e.jsx(
|
|
3320
3325
|
"div",
|
|
3321
3326
|
{
|
|
3322
|
-
className: `${
|
|
3323
|
-
dir:
|
|
3327
|
+
className: `${M || "light"} flex ${p ? "w-fit grow-0" : "w-full grow"}`,
|
|
3328
|
+
dir: z === "he" || z === "ar" ? "rtl" : void 0,
|
|
3324
3329
|
children: /* @__PURE__ */ e.jsx(
|
|
3325
3330
|
"div",
|
|
3326
3331
|
{
|
|
3327
3332
|
className: Ne(
|
|
3328
|
-
`${j ? j === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${
|
|
3333
|
+
`${j ? j === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${z || "en"}`,
|
|
3329
3334
|
P?.graphContainer
|
|
3330
3335
|
),
|
|
3331
3336
|
style: {
|
|
3332
|
-
...
|
|
3337
|
+
...N?.graphContainer || {},
|
|
3333
3338
|
...j && j !== !0 ? { backgroundColor: j } : {}
|
|
3334
3339
|
},
|
|
3335
3340
|
id: de,
|
|
3336
|
-
ref:
|
|
3337
|
-
"aria-label":
|
|
3341
|
+
ref: te,
|
|
3342
|
+
"aria-label": T || `${g ? `The graph shows ${g}. ` : ""}This is a stacked bar chart. ${X ? ` ${X}` : ""}`,
|
|
3338
3343
|
children: /* @__PURE__ */ e.jsx("div", { style: { padding: j ? J || "1rem" : J || 0 }, children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
3339
3344
|
g || X || x || w ? /* @__PURE__ */ e.jsx(
|
|
3340
3345
|
Je,
|
|
3341
3346
|
{
|
|
3342
3347
|
styles: {
|
|
3343
|
-
title:
|
|
3344
|
-
description:
|
|
3348
|
+
title: N?.title,
|
|
3349
|
+
description: N?.description
|
|
3345
3350
|
},
|
|
3346
3351
|
classNames: {
|
|
3347
3352
|
title: P?.title,
|
|
@@ -3350,37 +3355,37 @@ function Ct(fe) {
|
|
|
3350
3355
|
graphTitle: g,
|
|
3351
3356
|
graphDescription: X,
|
|
3352
3357
|
width: p,
|
|
3353
|
-
graphDownload: x ?
|
|
3358
|
+
graphDownload: x ? te.current : void 0,
|
|
3354
3359
|
dataDownload: w ? o.map((r) => r.data).filter((r) => r !== void 0).length > 0 ? o.map((r) => r.data).filter((r) => r !== void 0) : o.filter((r) => r !== void 0) : null
|
|
3355
3360
|
}
|
|
3356
3361
|
) : null,
|
|
3357
|
-
u.enabled &&
|
|
3362
|
+
u.enabled && ce.length > 0 && Ve ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
3358
3363
|
/* @__PURE__ */ e.jsx(
|
|
3359
3364
|
"button",
|
|
3360
3365
|
{
|
|
3361
3366
|
type: "button",
|
|
3362
3367
|
onClick: () => {
|
|
3363
|
-
Oe(!
|
|
3368
|
+
Oe(!ve);
|
|
3364
3369
|
},
|
|
3365
3370
|
className: "p-0 border-0 cursor-pointer bg-transparent",
|
|
3366
|
-
"aria-label":
|
|
3367
|
-
children:
|
|
3371
|
+
"aria-label": ve ? "Click to pause animation" : "Click to play animation",
|
|
3372
|
+
children: ve ? /* @__PURE__ */ e.jsx(Ze, {}) : /* @__PURE__ */ e.jsx(et, {})
|
|
3368
3373
|
}
|
|
3369
3374
|
),
|
|
3370
3375
|
/* @__PURE__ */ e.jsx(
|
|
3371
3376
|
He,
|
|
3372
3377
|
{
|
|
3373
|
-
min:
|
|
3374
|
-
max:
|
|
3375
|
-
marks:
|
|
3378
|
+
min: ce[0],
|
|
3379
|
+
max: ce[ce.length - 1],
|
|
3380
|
+
marks: Ve,
|
|
3376
3381
|
step: null,
|
|
3377
|
-
defaultValue:
|
|
3378
|
-
value:
|
|
3382
|
+
defaultValue: ce[ce.length - 1],
|
|
3383
|
+
value: ce[be],
|
|
3379
3384
|
onChangeComplete: (r) => {
|
|
3380
|
-
|
|
3385
|
+
we(ce.indexOf(r));
|
|
3381
3386
|
},
|
|
3382
3387
|
onChange: (r) => {
|
|
3383
|
-
|
|
3388
|
+
we(ce.indexOf(r));
|
|
3384
3389
|
},
|
|
3385
3390
|
"aria-label": "Time slider. Use arrow keys to adjust selected time period."
|
|
3386
3391
|
}
|
|
@@ -3394,79 +3399,81 @@ function Ct(fe) {
|
|
|
3394
3399
|
colorDomain: ae,
|
|
3395
3400
|
colors: G,
|
|
3396
3401
|
colorLegendTitle: le,
|
|
3397
|
-
setSelectedColor:
|
|
3402
|
+
setSelectedColor: Ce,
|
|
3398
3403
|
showNAColor: !1
|
|
3399
3404
|
}
|
|
3400
3405
|
) : null,
|
|
3401
|
-
/* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref:
|
|
3402
|
-
|
|
3406
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: c, "aria-label": "Graph area", children: (p || l) && (C || a) ? /* @__PURE__ */ e.jsx(
|
|
3407
|
+
Ct,
|
|
3403
3408
|
{
|
|
3404
|
-
data: b !== void 0 ? b === "total" ?
|
|
3405
|
-
|
|
3409
|
+
data: b !== void 0 ? b === "total" ? st(
|
|
3410
|
+
Ae(
|
|
3406
3411
|
o,
|
|
3407
3412
|
u.dateFormat || "yyyy"
|
|
3408
3413
|
).filter(
|
|
3409
|
-
(r) => u.enabled ? r.date ===
|
|
3410
|
-
new Date(
|
|
3414
|
+
(r) => u.enabled ? r.date === De(
|
|
3415
|
+
new Date(ce[be]),
|
|
3411
3416
|
u.dateFormat || "yyyy"
|
|
3412
3417
|
) : r
|
|
3413
3418
|
).filter(
|
|
3414
|
-
(r) => m ? !r.size.every((
|
|
3419
|
+
(r) => m ? !r.size.every((B) => B == null) : r
|
|
3415
3420
|
),
|
|
3416
|
-
(r) => ke(r.size.filter((
|
|
3417
|
-
|
|
3418
|
-
|
|
3421
|
+
(r) => ke(r.size.filter((B) => !q(B))),
|
|
3422
|
+
[s || "asc"]
|
|
3423
|
+
).filter((r, B) => v ? B < v : !0) : st(
|
|
3424
|
+
Ae(
|
|
3419
3425
|
o,
|
|
3420
3426
|
u.dateFormat || "yyyy"
|
|
3421
3427
|
).filter(
|
|
3422
|
-
(r) => u.enabled ? r.date ===
|
|
3423
|
-
new Date(
|
|
3428
|
+
(r) => u.enabled ? r.date === De(
|
|
3429
|
+
new Date(ce[be]),
|
|
3424
3430
|
u.dateFormat || "yyyy"
|
|
3425
3431
|
) : r
|
|
3426
3432
|
).filter(
|
|
3427
|
-
(r) => m ? !r.size.every((
|
|
3433
|
+
(r) => m ? !r.size.every((B) => B == null) : r
|
|
3428
3434
|
),
|
|
3429
|
-
(r) => q(r.size[b]) ? -1 / 0 : r.size[b]
|
|
3430
|
-
|
|
3435
|
+
(r) => q(r.size[b]) ? -1 / 0 : r.size[b],
|
|
3436
|
+
[s || "asc"]
|
|
3437
|
+
).filter((r, B) => v ? B < v : !0) : Ae(
|
|
3431
3438
|
o,
|
|
3432
3439
|
u.dateFormat || "yyyy"
|
|
3433
|
-
).filter((r) => m ? !r.size.every((
|
|
3440
|
+
).filter((r) => m ? !r.size.every((B) => B == null) : r).filter((r, B) => v ? B < v : !0),
|
|
3434
3441
|
barColors: G,
|
|
3435
|
-
width: p ||
|
|
3442
|
+
width: p || l,
|
|
3436
3443
|
height: Math.max(
|
|
3437
|
-
|
|
3438
|
-
C || (E ?
|
|
3444
|
+
I,
|
|
3445
|
+
C || (E ? I ? (p || l) * E > I ? (p || l) * E : I : (p || l) * E : a)
|
|
3439
3446
|
),
|
|
3440
3447
|
barPadding: me,
|
|
3441
|
-
showLabels:
|
|
3448
|
+
showLabels: oe,
|
|
3442
3449
|
showTicks: ue,
|
|
3443
3450
|
truncateBy: D,
|
|
3444
3451
|
leftMargin: ge,
|
|
3445
|
-
rightMargin:
|
|
3452
|
+
rightMargin: K,
|
|
3446
3453
|
topMargin: Y,
|
|
3447
3454
|
bottomMargin: ie,
|
|
3448
|
-
tooltip:
|
|
3449
|
-
onSeriesMouseOver:
|
|
3455
|
+
tooltip: Z,
|
|
3456
|
+
onSeriesMouseOver: se,
|
|
3450
3457
|
showValues: he,
|
|
3451
3458
|
suffix: U,
|
|
3452
|
-
prefix:
|
|
3459
|
+
prefix: Q,
|
|
3453
3460
|
refValues: xe,
|
|
3454
|
-
maxValue: q(
|
|
3461
|
+
maxValue: q($) ? Math.max(
|
|
3455
3462
|
...o.map(
|
|
3456
|
-
(r) => ke(r.size.filter((
|
|
3463
|
+
(r) => ke(r.size.filter((B) => !q(B))) || 0
|
|
3457
3464
|
)
|
|
3458
|
-
) :
|
|
3465
|
+
) : $,
|
|
3459
3466
|
onSeriesMouseClick: y,
|
|
3460
|
-
selectedColor:
|
|
3461
|
-
labelOrder:
|
|
3462
|
-
maxBarThickness:
|
|
3467
|
+
selectedColor: re,
|
|
3468
|
+
labelOrder: O,
|
|
3469
|
+
maxBarThickness: S,
|
|
3463
3470
|
minBarThickness: R,
|
|
3464
|
-
resetSelectionOnDoubleClick:
|
|
3465
|
-
detailsOnClick:
|
|
3471
|
+
resetSelectionOnDoubleClick: V,
|
|
3472
|
+
detailsOnClick: ne,
|
|
3466
3473
|
barAxisTitle: W,
|
|
3467
3474
|
noOfTicks: H,
|
|
3468
|
-
valueColor:
|
|
3469
|
-
styles:
|
|
3475
|
+
valueColor: ee,
|
|
3476
|
+
styles: N,
|
|
3470
3477
|
classNames: P,
|
|
3471
3478
|
animate: k === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : k || { duration: 0, once: !0, amount: 0 },
|
|
3472
3479
|
colorDomain: ae,
|
|
@@ -3476,15 +3483,15 @@ function Ct(fe) {
|
|
|
3476
3483
|
}
|
|
3477
3484
|
) : null })
|
|
3478
3485
|
] }) }),
|
|
3479
|
-
|
|
3486
|
+
A || F ? /* @__PURE__ */ e.jsx(
|
|
3480
3487
|
Ue,
|
|
3481
3488
|
{
|
|
3482
|
-
styles: { footnote:
|
|
3489
|
+
styles: { footnote: N?.footnote, source: N?.source },
|
|
3483
3490
|
classNames: {
|
|
3484
3491
|
footnote: P?.footnote,
|
|
3485
3492
|
source: P?.source
|
|
3486
3493
|
},
|
|
3487
|
-
sources:
|
|
3494
|
+
sources: A,
|
|
3488
3495
|
footNote: F,
|
|
3489
3496
|
width: p
|
|
3490
3497
|
}
|
|
@@ -3495,56 +3502,56 @@ function Ct(fe) {
|
|
|
3495
3502
|
}
|
|
3496
3503
|
);
|
|
3497
3504
|
}
|
|
3498
|
-
function
|
|
3505
|
+
function si(fe) {
|
|
3499
3506
|
const {
|
|
3500
3507
|
data: o,
|
|
3501
3508
|
graphTitle: g,
|
|
3502
3509
|
colors: G,
|
|
3503
|
-
barPadding:
|
|
3510
|
+
barPadding: A,
|
|
3504
3511
|
showTicks: X,
|
|
3505
3512
|
leftMargin: me,
|
|
3506
3513
|
rightMargin: ue,
|
|
3507
3514
|
topMargin: ge,
|
|
3508
|
-
bottomMargin:
|
|
3515
|
+
bottomMargin: K,
|
|
3509
3516
|
truncateBy: Y,
|
|
3510
3517
|
showLabels: ie,
|
|
3511
3518
|
showValues: D,
|
|
3512
|
-
backgroundColor:
|
|
3519
|
+
backgroundColor: oe,
|
|
3513
3520
|
suffix: he,
|
|
3514
3521
|
prefix: j,
|
|
3515
3522
|
sources: _,
|
|
3516
3523
|
graphDescription: U,
|
|
3517
|
-
height:
|
|
3524
|
+
height: Q,
|
|
3518
3525
|
width: C,
|
|
3519
3526
|
footNote: p,
|
|
3520
3527
|
colorDomain: F,
|
|
3521
3528
|
colorLegendTitle: ae,
|
|
3522
3529
|
padding: le,
|
|
3523
3530
|
relativeHeight: J,
|
|
3524
|
-
tooltip:
|
|
3525
|
-
onSeriesMouseOver:
|
|
3531
|
+
tooltip: Z,
|
|
3532
|
+
onSeriesMouseOver: se,
|
|
3526
3533
|
refValues: E,
|
|
3527
3534
|
showColorScale: xe,
|
|
3528
3535
|
graphID: de,
|
|
3529
|
-
maxValue:
|
|
3536
|
+
maxValue: $,
|
|
3530
3537
|
minValue: y,
|
|
3531
3538
|
highlightedDataPoints: x,
|
|
3532
3539
|
onSeriesMouseClick: w,
|
|
3533
|
-
graphDownload:
|
|
3534
|
-
dataDownload:
|
|
3535
|
-
language:
|
|
3536
|
-
theme:
|
|
3537
|
-
sortData:
|
|
3540
|
+
graphDownload: z,
|
|
3541
|
+
dataDownload: M,
|
|
3542
|
+
language: O,
|
|
3543
|
+
theme: I,
|
|
3544
|
+
sortData: S,
|
|
3538
3545
|
labelOrder: b,
|
|
3539
3546
|
showNAColor: v,
|
|
3540
3547
|
minHeight: R,
|
|
3541
|
-
maxBarThickness:
|
|
3542
|
-
maxNumberOfBars:
|
|
3543
|
-
minBarThickness:
|
|
3548
|
+
maxBarThickness: T,
|
|
3549
|
+
maxNumberOfBars: V,
|
|
3550
|
+
minBarThickness: ne,
|
|
3544
3551
|
ariaLabel: W,
|
|
3545
3552
|
resetSelectionOnDoubleClick: H,
|
|
3546
|
-
detailsOnClick:
|
|
3547
|
-
barAxisTitle:
|
|
3553
|
+
detailsOnClick: ee,
|
|
3554
|
+
barAxisTitle: N,
|
|
3548
3555
|
noOfTicks: P,
|
|
3549
3556
|
valueColor: m,
|
|
3550
3557
|
orientation: k = "vertical",
|
|
@@ -3552,188 +3559,188 @@ function ai(fe) {
|
|
|
3552
3559
|
classNames: d,
|
|
3553
3560
|
filterNA: u,
|
|
3554
3561
|
animate: n,
|
|
3555
|
-
dimmedOpacity:
|
|
3556
|
-
precision:
|
|
3562
|
+
dimmedOpacity: s,
|
|
3563
|
+
precision: l,
|
|
3557
3564
|
customLayers: t,
|
|
3558
|
-
timeline:
|
|
3565
|
+
timeline: a,
|
|
3559
3566
|
naLabel: h
|
|
3560
3567
|
} = fe;
|
|
3561
3568
|
return k === "vertical" ? /* @__PURE__ */ e.jsx(
|
|
3562
|
-
|
|
3569
|
+
bt,
|
|
3563
3570
|
{
|
|
3564
3571
|
data: o,
|
|
3565
3572
|
graphTitle: g,
|
|
3566
3573
|
colors: G,
|
|
3567
|
-
barPadding:
|
|
3574
|
+
barPadding: A,
|
|
3568
3575
|
showTicks: X,
|
|
3569
3576
|
leftMargin: me,
|
|
3570
3577
|
rightMargin: ue,
|
|
3571
3578
|
topMargin: ge,
|
|
3572
|
-
bottomMargin:
|
|
3579
|
+
bottomMargin: K,
|
|
3573
3580
|
truncateBy: Y,
|
|
3574
3581
|
showLabels: ie,
|
|
3575
3582
|
showValues: D,
|
|
3576
|
-
backgroundColor:
|
|
3583
|
+
backgroundColor: oe,
|
|
3577
3584
|
suffix: he,
|
|
3578
3585
|
prefix: j,
|
|
3579
3586
|
sources: _,
|
|
3580
3587
|
graphDescription: U,
|
|
3581
|
-
height:
|
|
3588
|
+
height: Q,
|
|
3582
3589
|
width: C,
|
|
3583
3590
|
footNote: p,
|
|
3584
3591
|
colorDomain: F,
|
|
3585
3592
|
colorLegendTitle: ae,
|
|
3586
3593
|
padding: le,
|
|
3587
3594
|
relativeHeight: J,
|
|
3588
|
-
tooltip:
|
|
3589
|
-
onSeriesMouseOver:
|
|
3595
|
+
tooltip: Z,
|
|
3596
|
+
onSeriesMouseOver: se,
|
|
3590
3597
|
refValues: E,
|
|
3591
3598
|
showColorScale: xe,
|
|
3592
3599
|
graphID: de,
|
|
3593
|
-
maxValue:
|
|
3600
|
+
maxValue: $,
|
|
3594
3601
|
minValue: y,
|
|
3595
3602
|
highlightedDataPoints: x,
|
|
3596
3603
|
onSeriesMouseClick: w,
|
|
3597
|
-
graphDownload:
|
|
3598
|
-
dataDownload:
|
|
3599
|
-
language:
|
|
3600
|
-
theme:
|
|
3601
|
-
sortData:
|
|
3604
|
+
graphDownload: z,
|
|
3605
|
+
dataDownload: M,
|
|
3606
|
+
language: O,
|
|
3607
|
+
theme: I,
|
|
3608
|
+
sortData: S,
|
|
3602
3609
|
labelOrder: b,
|
|
3603
3610
|
showNAColor: v,
|
|
3604
3611
|
minHeight: R,
|
|
3605
|
-
maxBarThickness:
|
|
3606
|
-
maxNumberOfBars:
|
|
3607
|
-
minBarThickness:
|
|
3612
|
+
maxBarThickness: T,
|
|
3613
|
+
maxNumberOfBars: V,
|
|
3614
|
+
minBarThickness: ne,
|
|
3608
3615
|
ariaLabel: W,
|
|
3609
3616
|
resetSelectionOnDoubleClick: H,
|
|
3610
3617
|
styles: f,
|
|
3611
|
-
detailsOnClick:
|
|
3612
|
-
barAxisTitle:
|
|
3618
|
+
detailsOnClick: ee,
|
|
3619
|
+
barAxisTitle: N,
|
|
3613
3620
|
noOfTicks: P,
|
|
3614
3621
|
valueColor: m,
|
|
3615
3622
|
classNames: d,
|
|
3616
3623
|
filterNA: u,
|
|
3617
3624
|
animate: n,
|
|
3618
|
-
dimmedOpacity:
|
|
3619
|
-
precision:
|
|
3625
|
+
dimmedOpacity: s,
|
|
3626
|
+
precision: l,
|
|
3620
3627
|
customLayers: t,
|
|
3621
|
-
timeline:
|
|
3628
|
+
timeline: a
|
|
3622
3629
|
}
|
|
3623
3630
|
) : /* @__PURE__ */ e.jsx(
|
|
3624
|
-
|
|
3631
|
+
mt,
|
|
3625
3632
|
{
|
|
3626
3633
|
data: o,
|
|
3627
3634
|
graphTitle: g,
|
|
3628
3635
|
colors: G,
|
|
3629
|
-
barPadding:
|
|
3636
|
+
barPadding: A,
|
|
3630
3637
|
showTicks: X,
|
|
3631
3638
|
leftMargin: me,
|
|
3632
3639
|
rightMargin: ue,
|
|
3633
3640
|
topMargin: ge,
|
|
3634
|
-
bottomMargin:
|
|
3641
|
+
bottomMargin: K,
|
|
3635
3642
|
truncateBy: Y,
|
|
3636
3643
|
showLabels: ie,
|
|
3637
3644
|
showValues: D,
|
|
3638
|
-
backgroundColor:
|
|
3645
|
+
backgroundColor: oe,
|
|
3639
3646
|
suffix: he,
|
|
3640
3647
|
prefix: j,
|
|
3641
3648
|
sources: _,
|
|
3642
3649
|
graphDescription: U,
|
|
3643
|
-
height:
|
|
3650
|
+
height: Q,
|
|
3644
3651
|
width: C,
|
|
3645
3652
|
footNote: p,
|
|
3646
3653
|
colorDomain: F,
|
|
3647
3654
|
colorLegendTitle: ae,
|
|
3648
3655
|
padding: le,
|
|
3649
3656
|
relativeHeight: J,
|
|
3650
|
-
tooltip:
|
|
3651
|
-
onSeriesMouseOver:
|
|
3657
|
+
tooltip: Z,
|
|
3658
|
+
onSeriesMouseOver: se,
|
|
3652
3659
|
refValues: E,
|
|
3653
3660
|
showColorScale: xe,
|
|
3654
3661
|
graphID: de,
|
|
3655
|
-
maxValue:
|
|
3662
|
+
maxValue: $,
|
|
3656
3663
|
minValue: y,
|
|
3657
3664
|
highlightedDataPoints: x,
|
|
3658
3665
|
onSeriesMouseClick: w,
|
|
3659
|
-
graphDownload:
|
|
3660
|
-
dataDownload:
|
|
3661
|
-
language:
|
|
3662
|
-
theme:
|
|
3663
|
-
sortData:
|
|
3666
|
+
graphDownload: z,
|
|
3667
|
+
dataDownload: M,
|
|
3668
|
+
language: O,
|
|
3669
|
+
theme: I,
|
|
3670
|
+
sortData: S,
|
|
3664
3671
|
labelOrder: b,
|
|
3665
3672
|
showNAColor: v,
|
|
3666
3673
|
minHeight: R,
|
|
3667
|
-
maxBarThickness:
|
|
3668
|
-
maxNumberOfBars:
|
|
3669
|
-
minBarThickness:
|
|
3674
|
+
maxBarThickness: T,
|
|
3675
|
+
maxNumberOfBars: V,
|
|
3676
|
+
minBarThickness: ne,
|
|
3670
3677
|
ariaLabel: W,
|
|
3671
3678
|
resetSelectionOnDoubleClick: H,
|
|
3672
3679
|
styles: f,
|
|
3673
|
-
detailsOnClick:
|
|
3674
|
-
barAxisTitle:
|
|
3680
|
+
detailsOnClick: ee,
|
|
3681
|
+
barAxisTitle: N,
|
|
3675
3682
|
noOfTicks: P,
|
|
3676
3683
|
valueColor: m,
|
|
3677
3684
|
classNames: d,
|
|
3678
3685
|
filterNA: u,
|
|
3679
|
-
dimmedOpacity:
|
|
3680
|
-
precision:
|
|
3686
|
+
dimmedOpacity: s,
|
|
3687
|
+
precision: l,
|
|
3681
3688
|
customLayers: t,
|
|
3682
|
-
timeline:
|
|
3689
|
+
timeline: a,
|
|
3683
3690
|
naLabel: h
|
|
3684
3691
|
}
|
|
3685
3692
|
);
|
|
3686
3693
|
}
|
|
3687
|
-
function
|
|
3694
|
+
function ri(fe) {
|
|
3688
3695
|
const {
|
|
3689
3696
|
data: o,
|
|
3690
3697
|
graphTitle: g,
|
|
3691
3698
|
colors: G,
|
|
3692
|
-
sources:
|
|
3699
|
+
sources: A,
|
|
3693
3700
|
graphDescription: X,
|
|
3694
3701
|
barPadding: me,
|
|
3695
3702
|
showTicks: ue,
|
|
3696
3703
|
truncateBy: ge,
|
|
3697
|
-
height:
|
|
3704
|
+
height: K,
|
|
3698
3705
|
width: Y,
|
|
3699
3706
|
footNote: ie,
|
|
3700
3707
|
colorDomain: D,
|
|
3701
|
-
colorLegendTitle:
|
|
3708
|
+
colorLegendTitle: oe,
|
|
3702
3709
|
suffix: he,
|
|
3703
3710
|
prefix: j,
|
|
3704
3711
|
showValues: _,
|
|
3705
3712
|
padding: U,
|
|
3706
|
-
backgroundColor:
|
|
3713
|
+
backgroundColor: Q,
|
|
3707
3714
|
leftMargin: C,
|
|
3708
3715
|
rightMargin: p,
|
|
3709
3716
|
topMargin: F,
|
|
3710
3717
|
bottomMargin: ae,
|
|
3711
3718
|
showLabels: le,
|
|
3712
3719
|
relativeHeight: J,
|
|
3713
|
-
tooltip:
|
|
3714
|
-
onSeriesMouseOver:
|
|
3720
|
+
tooltip: Z,
|
|
3721
|
+
onSeriesMouseOver: se,
|
|
3715
3722
|
refValues: E,
|
|
3716
3723
|
graphID: xe,
|
|
3717
3724
|
maxValue: de,
|
|
3718
|
-
minValue:
|
|
3725
|
+
minValue: $,
|
|
3719
3726
|
onSeriesMouseClick: y,
|
|
3720
3727
|
graphDownload: x,
|
|
3721
3728
|
dataDownload: w,
|
|
3722
|
-
language:
|
|
3723
|
-
labelOrder:
|
|
3724
|
-
minHeight:
|
|
3725
|
-
theme:
|
|
3726
|
-
maxBarThickness:
|
|
3729
|
+
language: z,
|
|
3730
|
+
labelOrder: M,
|
|
3731
|
+
minHeight: O,
|
|
3732
|
+
theme: I,
|
|
3733
|
+
maxBarThickness: S,
|
|
3727
3734
|
ariaLabel: b,
|
|
3728
3735
|
resetSelectionOnDoubleClick: v,
|
|
3729
3736
|
detailsOnClick: R,
|
|
3730
|
-
barAxisTitle:
|
|
3731
|
-
noOfTicks:
|
|
3732
|
-
valueColor:
|
|
3737
|
+
barAxisTitle: T,
|
|
3738
|
+
noOfTicks: V,
|
|
3739
|
+
valueColor: ne,
|
|
3733
3740
|
orientation: W = "vertical",
|
|
3734
3741
|
styles: H,
|
|
3735
|
-
classNames:
|
|
3736
|
-
filterNA:
|
|
3742
|
+
classNames: ee,
|
|
3743
|
+
filterNA: N,
|
|
3737
3744
|
animate: P,
|
|
3738
3745
|
precision: m,
|
|
3739
3746
|
customLayers: k,
|
|
@@ -3742,55 +3749,55 @@ function li(fe) {
|
|
|
3742
3749
|
naLabel: u
|
|
3743
3750
|
} = fe;
|
|
3744
3751
|
return W === "vertical" ? /* @__PURE__ */ e.jsx(
|
|
3745
|
-
|
|
3752
|
+
wt,
|
|
3746
3753
|
{
|
|
3747
3754
|
data: o,
|
|
3748
3755
|
graphTitle: g,
|
|
3749
3756
|
colors: G,
|
|
3750
|
-
sources:
|
|
3757
|
+
sources: A,
|
|
3751
3758
|
graphDescription: X,
|
|
3752
3759
|
barPadding: me,
|
|
3753
3760
|
showTicks: ue,
|
|
3754
3761
|
truncateBy: ge,
|
|
3755
|
-
height:
|
|
3762
|
+
height: K,
|
|
3756
3763
|
width: Y,
|
|
3757
3764
|
footNote: ie,
|
|
3758
3765
|
colorDomain: D,
|
|
3759
|
-
colorLegendTitle:
|
|
3766
|
+
colorLegendTitle: oe,
|
|
3760
3767
|
suffix: he,
|
|
3761
3768
|
prefix: j,
|
|
3762
3769
|
showValues: _,
|
|
3763
3770
|
padding: U,
|
|
3764
|
-
backgroundColor:
|
|
3771
|
+
backgroundColor: Q,
|
|
3765
3772
|
leftMargin: C,
|
|
3766
3773
|
rightMargin: p,
|
|
3767
3774
|
topMargin: F,
|
|
3768
3775
|
bottomMargin: ae,
|
|
3769
3776
|
showLabels: le,
|
|
3770
3777
|
relativeHeight: J,
|
|
3771
|
-
tooltip:
|
|
3772
|
-
onSeriesMouseOver:
|
|
3778
|
+
tooltip: Z,
|
|
3779
|
+
onSeriesMouseOver: se,
|
|
3773
3780
|
refValues: E,
|
|
3774
3781
|
graphID: xe,
|
|
3775
3782
|
maxValue: de,
|
|
3776
|
-
minValue:
|
|
3783
|
+
minValue: $,
|
|
3777
3784
|
onSeriesMouseClick: y,
|
|
3778
3785
|
graphDownload: x,
|
|
3779
3786
|
dataDownload: w,
|
|
3780
|
-
language:
|
|
3781
|
-
labelOrder:
|
|
3782
|
-
minHeight:
|
|
3783
|
-
theme:
|
|
3784
|
-
maxBarThickness:
|
|
3787
|
+
language: z,
|
|
3788
|
+
labelOrder: M,
|
|
3789
|
+
minHeight: O,
|
|
3790
|
+
theme: I,
|
|
3791
|
+
maxBarThickness: S,
|
|
3785
3792
|
ariaLabel: b,
|
|
3786
3793
|
resetSelectionOnDoubleClick: v,
|
|
3787
3794
|
styles: H,
|
|
3788
3795
|
detailsOnClick: R,
|
|
3789
|
-
barAxisTitle:
|
|
3790
|
-
noOfTicks:
|
|
3791
|
-
valueColor:
|
|
3792
|
-
classNames:
|
|
3793
|
-
filterNA:
|
|
3796
|
+
barAxisTitle: T,
|
|
3797
|
+
noOfTicks: V,
|
|
3798
|
+
valueColor: ne,
|
|
3799
|
+
classNames: ee,
|
|
3800
|
+
filterNA: N,
|
|
3794
3801
|
animate: P,
|
|
3795
3802
|
precision: m,
|
|
3796
3803
|
customLayers: k,
|
|
@@ -3799,55 +3806,55 @@ function li(fe) {
|
|
|
3799
3806
|
naLabel: u
|
|
3800
3807
|
}
|
|
3801
3808
|
) : /* @__PURE__ */ e.jsx(
|
|
3802
|
-
|
|
3809
|
+
xt,
|
|
3803
3810
|
{
|
|
3804
3811
|
data: o,
|
|
3805
3812
|
graphTitle: g,
|
|
3806
3813
|
colors: G,
|
|
3807
|
-
sources:
|
|
3814
|
+
sources: A,
|
|
3808
3815
|
graphDescription: X,
|
|
3809
3816
|
barPadding: me,
|
|
3810
3817
|
showTicks: ue,
|
|
3811
3818
|
truncateBy: ge,
|
|
3812
|
-
height:
|
|
3819
|
+
height: K,
|
|
3813
3820
|
width: Y,
|
|
3814
3821
|
footNote: ie,
|
|
3815
3822
|
colorDomain: D,
|
|
3816
|
-
colorLegendTitle:
|
|
3823
|
+
colorLegendTitle: oe,
|
|
3817
3824
|
suffix: he,
|
|
3818
3825
|
prefix: j,
|
|
3819
3826
|
showValues: _,
|
|
3820
3827
|
padding: U,
|
|
3821
|
-
backgroundColor:
|
|
3828
|
+
backgroundColor: Q,
|
|
3822
3829
|
leftMargin: C,
|
|
3823
3830
|
rightMargin: p,
|
|
3824
3831
|
topMargin: F,
|
|
3825
3832
|
bottomMargin: ae,
|
|
3826
3833
|
showLabels: le,
|
|
3827
3834
|
relativeHeight: J,
|
|
3828
|
-
tooltip:
|
|
3829
|
-
onSeriesMouseOver:
|
|
3835
|
+
tooltip: Z,
|
|
3836
|
+
onSeriesMouseOver: se,
|
|
3830
3837
|
refValues: E,
|
|
3831
3838
|
graphID: xe,
|
|
3832
3839
|
maxValue: de,
|
|
3833
|
-
minValue:
|
|
3840
|
+
minValue: $,
|
|
3834
3841
|
onSeriesMouseClick: y,
|
|
3835
3842
|
graphDownload: x,
|
|
3836
3843
|
dataDownload: w,
|
|
3837
|
-
language:
|
|
3838
|
-
labelOrder:
|
|
3839
|
-
minHeight:
|
|
3840
|
-
theme:
|
|
3841
|
-
maxBarThickness:
|
|
3844
|
+
language: z,
|
|
3845
|
+
labelOrder: M,
|
|
3846
|
+
minHeight: O,
|
|
3847
|
+
theme: I,
|
|
3848
|
+
maxBarThickness: S,
|
|
3842
3849
|
ariaLabel: b,
|
|
3843
3850
|
resetSelectionOnDoubleClick: v,
|
|
3844
3851
|
styles: H,
|
|
3845
3852
|
detailsOnClick: R,
|
|
3846
|
-
barAxisTitle:
|
|
3847
|
-
noOfTicks:
|
|
3848
|
-
valueColor:
|
|
3849
|
-
classNames:
|
|
3850
|
-
filterNA:
|
|
3853
|
+
barAxisTitle: T,
|
|
3854
|
+
noOfTicks: V,
|
|
3855
|
+
valueColor: ne,
|
|
3856
|
+
classNames: ee,
|
|
3857
|
+
filterNA: N,
|
|
3851
3858
|
animate: P,
|
|
3852
3859
|
precision: m,
|
|
3853
3860
|
customLayers: k,
|
|
@@ -3857,188 +3864,191 @@ function li(fe) {
|
|
|
3857
3864
|
}
|
|
3858
3865
|
);
|
|
3859
3866
|
}
|
|
3860
|
-
function
|
|
3867
|
+
function oi(fe) {
|
|
3861
3868
|
const {
|
|
3862
3869
|
data: o,
|
|
3863
3870
|
graphTitle: g,
|
|
3864
3871
|
colors: G,
|
|
3865
|
-
sources:
|
|
3872
|
+
sources: A,
|
|
3866
3873
|
graphDescription: X,
|
|
3867
3874
|
barPadding: me,
|
|
3868
3875
|
showTicks: ue,
|
|
3869
3876
|
leftMargin: ge,
|
|
3870
|
-
rightMargin:
|
|
3877
|
+
rightMargin: K,
|
|
3871
3878
|
topMargin: Y,
|
|
3872
3879
|
bottomMargin: ie,
|
|
3873
3880
|
truncateBy: D,
|
|
3874
|
-
showLabels:
|
|
3881
|
+
showLabels: oe,
|
|
3875
3882
|
showValues: he,
|
|
3876
3883
|
backgroundColor: j,
|
|
3877
3884
|
suffix: _,
|
|
3878
3885
|
prefix: U,
|
|
3879
|
-
height:
|
|
3886
|
+
height: Q,
|
|
3880
3887
|
width: C,
|
|
3881
3888
|
footNote: p,
|
|
3882
3889
|
colorDomain: F,
|
|
3883
3890
|
colorLegendTitle: ae,
|
|
3884
3891
|
padding: le,
|
|
3885
3892
|
tooltip: J,
|
|
3886
|
-
onSeriesMouseOver:
|
|
3887
|
-
relativeHeight:
|
|
3893
|
+
onSeriesMouseOver: Z,
|
|
3894
|
+
relativeHeight: se,
|
|
3888
3895
|
refValues: E,
|
|
3889
3896
|
graphID: xe,
|
|
3890
3897
|
maxValue: de,
|
|
3891
|
-
onSeriesMouseClick:
|
|
3898
|
+
onSeriesMouseClick: $,
|
|
3892
3899
|
graphDownload: y,
|
|
3893
3900
|
dataDownload: x,
|
|
3894
3901
|
language: w,
|
|
3895
|
-
theme:
|
|
3896
|
-
labelOrder:
|
|
3897
|
-
minHeight:
|
|
3898
|
-
maxBarThickness:
|
|
3899
|
-
sortParameter:
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3902
|
+
theme: z,
|
|
3903
|
+
labelOrder: M,
|
|
3904
|
+
minHeight: O,
|
|
3905
|
+
maxBarThickness: I,
|
|
3906
|
+
sortParameter: S,
|
|
3907
|
+
sortData: b,
|
|
3908
|
+
maxNumberOfBars: v,
|
|
3909
|
+
minBarThickness: R,
|
|
3910
|
+
ariaLabel: T,
|
|
3903
3911
|
resetSelectionOnDoubleClick: V,
|
|
3904
|
-
detailsOnClick:
|
|
3905
|
-
barAxisTitle:
|
|
3906
|
-
noOfTicks:
|
|
3907
|
-
valueColor:
|
|
3908
|
-
orientation:
|
|
3909
|
-
styles:
|
|
3910
|
-
classNames:
|
|
3911
|
-
filterNA:
|
|
3912
|
-
animate:
|
|
3913
|
-
precision:
|
|
3914
|
-
customLayers:
|
|
3915
|
-
showColorScale:
|
|
3916
|
-
timeline:
|
|
3917
|
-
naLabel:
|
|
3912
|
+
detailsOnClick: ne,
|
|
3913
|
+
barAxisTitle: W,
|
|
3914
|
+
noOfTicks: H,
|
|
3915
|
+
valueColor: ee,
|
|
3916
|
+
orientation: N = "vertical",
|
|
3917
|
+
styles: P,
|
|
3918
|
+
classNames: m,
|
|
3919
|
+
filterNA: k,
|
|
3920
|
+
animate: f,
|
|
3921
|
+
precision: d,
|
|
3922
|
+
customLayers: u,
|
|
3923
|
+
showColorScale: n,
|
|
3924
|
+
timeline: s,
|
|
3925
|
+
naLabel: l
|
|
3918
3926
|
} = fe;
|
|
3919
|
-
return
|
|
3920
|
-
|
|
3927
|
+
return N === "vertical" ? /* @__PURE__ */ e.jsx(
|
|
3928
|
+
kt,
|
|
3921
3929
|
{
|
|
3922
3930
|
data: o,
|
|
3923
3931
|
graphTitle: g,
|
|
3924
3932
|
colors: G,
|
|
3925
|
-
sources:
|
|
3933
|
+
sources: A,
|
|
3926
3934
|
graphDescription: X,
|
|
3927
3935
|
barPadding: me,
|
|
3928
3936
|
showTicks: ue,
|
|
3929
3937
|
leftMargin: ge,
|
|
3930
|
-
rightMargin:
|
|
3938
|
+
rightMargin: K,
|
|
3931
3939
|
topMargin: Y,
|
|
3932
3940
|
bottomMargin: ie,
|
|
3933
3941
|
truncateBy: D,
|
|
3934
|
-
showLabels:
|
|
3942
|
+
showLabels: oe,
|
|
3935
3943
|
showValues: he,
|
|
3936
3944
|
backgroundColor: j,
|
|
3937
3945
|
suffix: _,
|
|
3938
3946
|
prefix: U,
|
|
3939
|
-
height:
|
|
3947
|
+
height: Q,
|
|
3940
3948
|
width: C,
|
|
3941
3949
|
footNote: p,
|
|
3942
3950
|
colorDomain: F,
|
|
3943
3951
|
colorLegendTitle: ae,
|
|
3944
3952
|
padding: le,
|
|
3945
3953
|
tooltip: J,
|
|
3946
|
-
onSeriesMouseOver:
|
|
3947
|
-
relativeHeight:
|
|
3954
|
+
onSeriesMouseOver: Z,
|
|
3955
|
+
relativeHeight: se,
|
|
3948
3956
|
refValues: E,
|
|
3949
3957
|
graphID: xe,
|
|
3950
3958
|
maxValue: de,
|
|
3951
|
-
onSeriesMouseClick:
|
|
3959
|
+
onSeriesMouseClick: $,
|
|
3952
3960
|
graphDownload: y,
|
|
3953
3961
|
dataDownload: x,
|
|
3954
3962
|
language: w,
|
|
3955
|
-
theme:
|
|
3956
|
-
labelOrder:
|
|
3957
|
-
minHeight:
|
|
3958
|
-
maxBarThickness:
|
|
3959
|
-
sortParameter:
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
+
theme: z,
|
|
3964
|
+
labelOrder: M,
|
|
3965
|
+
minHeight: O,
|
|
3966
|
+
maxBarThickness: I,
|
|
3967
|
+
sortParameter: S,
|
|
3968
|
+
sortData: b,
|
|
3969
|
+
maxNumberOfBars: v,
|
|
3970
|
+
minBarThickness: R,
|
|
3971
|
+
ariaLabel: T,
|
|
3963
3972
|
resetSelectionOnDoubleClick: V,
|
|
3964
|
-
styles:
|
|
3965
|
-
detailsOnClick:
|
|
3966
|
-
barAxisTitle:
|
|
3967
|
-
noOfTicks:
|
|
3968
|
-
valueColor:
|
|
3969
|
-
classNames:
|
|
3970
|
-
filterNA:
|
|
3971
|
-
animate:
|
|
3972
|
-
precision:
|
|
3973
|
-
customLayers:
|
|
3974
|
-
showColorScale:
|
|
3975
|
-
timeline:
|
|
3976
|
-
naLabel:
|
|
3973
|
+
styles: P,
|
|
3974
|
+
detailsOnClick: ne,
|
|
3975
|
+
barAxisTitle: W,
|
|
3976
|
+
noOfTicks: H,
|
|
3977
|
+
valueColor: ee,
|
|
3978
|
+
classNames: m,
|
|
3979
|
+
filterNA: k,
|
|
3980
|
+
animate: f,
|
|
3981
|
+
precision: d,
|
|
3982
|
+
customLayers: u,
|
|
3983
|
+
showColorScale: n,
|
|
3984
|
+
timeline: s,
|
|
3985
|
+
naLabel: l
|
|
3977
3986
|
}
|
|
3978
3987
|
) : /* @__PURE__ */ e.jsx(
|
|
3979
|
-
|
|
3988
|
+
ft,
|
|
3980
3989
|
{
|
|
3981
3990
|
data: o,
|
|
3982
3991
|
graphTitle: g,
|
|
3983
3992
|
colors: G,
|
|
3984
|
-
sources:
|
|
3993
|
+
sources: A,
|
|
3985
3994
|
graphDescription: X,
|
|
3986
3995
|
barPadding: me,
|
|
3987
3996
|
showTicks: ue,
|
|
3988
3997
|
leftMargin: ge,
|
|
3989
|
-
rightMargin:
|
|
3998
|
+
rightMargin: K,
|
|
3990
3999
|
topMargin: Y,
|
|
3991
4000
|
bottomMargin: ie,
|
|
3992
4001
|
truncateBy: D,
|
|
3993
|
-
showLabels:
|
|
4002
|
+
showLabels: oe,
|
|
3994
4003
|
showValues: he,
|
|
3995
4004
|
backgroundColor: j,
|
|
3996
4005
|
suffix: _,
|
|
3997
4006
|
prefix: U,
|
|
3998
|
-
height:
|
|
4007
|
+
height: Q,
|
|
3999
4008
|
width: C,
|
|
4000
4009
|
footNote: p,
|
|
4001
4010
|
colorDomain: F,
|
|
4002
4011
|
colorLegendTitle: ae,
|
|
4003
4012
|
padding: le,
|
|
4004
4013
|
tooltip: J,
|
|
4005
|
-
onSeriesMouseOver:
|
|
4006
|
-
relativeHeight:
|
|
4014
|
+
onSeriesMouseOver: Z,
|
|
4015
|
+
relativeHeight: se,
|
|
4007
4016
|
refValues: E,
|
|
4008
4017
|
graphID: xe,
|
|
4009
4018
|
maxValue: de,
|
|
4010
|
-
onSeriesMouseClick:
|
|
4019
|
+
onSeriesMouseClick: $,
|
|
4011
4020
|
graphDownload: y,
|
|
4012
4021
|
dataDownload: x,
|
|
4013
4022
|
language: w,
|
|
4014
|
-
theme:
|
|
4015
|
-
labelOrder:
|
|
4016
|
-
minHeight:
|
|
4017
|
-
maxBarThickness:
|
|
4018
|
-
sortParameter:
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4023
|
+
theme: z,
|
|
4024
|
+
labelOrder: M,
|
|
4025
|
+
minHeight: O,
|
|
4026
|
+
maxBarThickness: I,
|
|
4027
|
+
sortParameter: S,
|
|
4028
|
+
sortData: b,
|
|
4029
|
+
maxNumberOfBars: v,
|
|
4030
|
+
minBarThickness: R,
|
|
4031
|
+
ariaLabel: T,
|
|
4022
4032
|
resetSelectionOnDoubleClick: V,
|
|
4023
|
-
styles:
|
|
4024
|
-
detailsOnClick:
|
|
4025
|
-
barAxisTitle:
|
|
4026
|
-
noOfTicks:
|
|
4027
|
-
valueColor:
|
|
4028
|
-
classNames:
|
|
4029
|
-
filterNA:
|
|
4030
|
-
animate:
|
|
4031
|
-
precision:
|
|
4032
|
-
customLayers:
|
|
4033
|
-
showColorScale:
|
|
4034
|
-
timeline:
|
|
4035
|
-
naLabel:
|
|
4033
|
+
styles: P,
|
|
4034
|
+
detailsOnClick: ne,
|
|
4035
|
+
barAxisTitle: W,
|
|
4036
|
+
noOfTicks: H,
|
|
4037
|
+
valueColor: ee,
|
|
4038
|
+
classNames: m,
|
|
4039
|
+
filterNA: k,
|
|
4040
|
+
animate: f,
|
|
4041
|
+
precision: d,
|
|
4042
|
+
customLayers: u,
|
|
4043
|
+
showColorScale: n,
|
|
4044
|
+
timeline: s,
|
|
4045
|
+
naLabel: l
|
|
4036
4046
|
}
|
|
4037
4047
|
);
|
|
4038
4048
|
}
|
|
4039
4049
|
export {
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4050
|
+
ri as GroupedBarGraph,
|
|
4051
|
+
si as SimpleBarGraph,
|
|
4052
|
+
oi as StackedBarGraph
|
|
4043
4053
|
};
|
|
4044
4054
|
//# sourceMappingURL=BarGraph.js.map
|