@undp/data-viz 2.0.0 → 2.0.1
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.js +957 -957
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.js +45 -47
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +76 -56
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +157 -157
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +185 -185
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -4
- package/dist/CirclePackingGraph.js.map +1 -1
- package/dist/Data/barChart.json +70 -0
- package/dist/Data/basic.csv +20 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +224 -223
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +156 -156
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +326 -325
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.cjs.map +1 -1
- package/dist/GeoHubCompareMaps.js +183 -183
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
- package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
- package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
- package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +133 -132
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.js +52 -50
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
- package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +149 -148
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +182 -181
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +123 -122
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.js +83 -79
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
- package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.js +44 -46
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.js +134 -134
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
- package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
- package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
- package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
- package/dist/index-C6LorfZ-.cjs +2 -0
- package/dist/index-C6LorfZ-.cjs.map +1 -0
- package/dist/index-Ceppbd8C.js +342 -0
- package/dist/index-Ceppbd8C.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-DoY3Ga3W.cjs +0 -2
- package/dist/index-DoY3Ga3W.cjs.map +0 -1
- package/dist/index-leTnKT2q.js +0 -329
- package/dist/index-leTnKT2q.js.map +0 -1
package/dist/BarGraph.js
CHANGED
|
@@ -37,81 +37,81 @@ import { g as Te } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
|
37
37
|
function ei(e) {
|
|
38
38
|
const t = xe.c(122), {
|
|
39
39
|
data: m,
|
|
40
|
-
leftMargin:
|
|
40
|
+
leftMargin: D,
|
|
41
41
|
rightMargin: Xt,
|
|
42
42
|
topMargin: St,
|
|
43
43
|
bottomMargin: gt,
|
|
44
|
-
barColors:
|
|
45
|
-
barPadding:
|
|
46
|
-
showTicks:
|
|
47
|
-
truncateBy:
|
|
48
|
-
width:
|
|
49
|
-
height:
|
|
50
|
-
suffix:
|
|
51
|
-
prefix:
|
|
52
|
-
showValues:
|
|
53
|
-
showLabels:
|
|
54
|
-
tooltip:
|
|
55
|
-
onSeriesMouseOver:
|
|
56
|
-
refValues:
|
|
44
|
+
barColors: tt,
|
|
45
|
+
barPadding: ut,
|
|
46
|
+
showTicks: C,
|
|
47
|
+
truncateBy: T,
|
|
48
|
+
width: y,
|
|
49
|
+
height: P,
|
|
50
|
+
suffix: Dt,
|
|
51
|
+
prefix: rt,
|
|
52
|
+
showValues: zt,
|
|
53
|
+
showLabels: F,
|
|
54
|
+
tooltip: et,
|
|
55
|
+
onSeriesMouseOver: dt,
|
|
56
|
+
refValues: xt,
|
|
57
57
|
maxValue: Tt,
|
|
58
58
|
minValue: w,
|
|
59
|
-
onSeriesMouseClick:
|
|
60
|
-
selectedColor:
|
|
61
|
-
rtl:
|
|
62
|
-
labelOrder:
|
|
63
|
-
maxBarThickness:
|
|
64
|
-
resetSelectionOnDoubleClick:
|
|
65
|
-
detailsOnClick:
|
|
66
|
-
barAxisTitle:
|
|
67
|
-
valueColor:
|
|
59
|
+
onSeriesMouseClick: it,
|
|
60
|
+
selectedColor: W,
|
|
61
|
+
rtl: Y,
|
|
62
|
+
labelOrder: K,
|
|
63
|
+
maxBarThickness: R,
|
|
64
|
+
resetSelectionOnDoubleClick: H,
|
|
65
|
+
detailsOnClick: O,
|
|
66
|
+
barAxisTitle: q,
|
|
67
|
+
valueColor: I,
|
|
68
68
|
noOfTicks: a,
|
|
69
69
|
styles: s,
|
|
70
70
|
classNames: n,
|
|
71
71
|
animate: u,
|
|
72
72
|
colorDomain: d,
|
|
73
|
-
precision:
|
|
73
|
+
precision: f,
|
|
74
74
|
customLayers: x,
|
|
75
75
|
naLabel: $
|
|
76
|
-
} = e,
|
|
77
|
-
let
|
|
78
|
-
t[0] !== u.amount || t[1] !== u.once ? (
|
|
76
|
+
} = e, Q = D === void 0 ? 100 : D, U = Xt === void 0 ? 40 : Xt, ct = St === void 0 ? 25 : St, Ft = gt === void 0 ? 10 : gt, Yt = de(null);
|
|
77
|
+
let E;
|
|
78
|
+
t[0] !== u.amount || t[1] !== u.once ? (E = {
|
|
79
79
|
once: u.once,
|
|
80
80
|
amount: u.amount
|
|
81
|
-
}, t[0] = u.amount, t[1] = u.once, t[2] =
|
|
82
|
-
const yt = Ve(Yt,
|
|
81
|
+
}, t[0] = u.amount, t[1] = u.once, t[2] = E) : E = t[2];
|
|
82
|
+
const yt = Ve(Yt, E), Bt = q ? ct + 25 : ct;
|
|
83
83
|
let r;
|
|
84
|
-
t[3] !== Ft || t[4] !==
|
|
84
|
+
t[3] !== Ft || t[4] !== Q || t[5] !== U || t[6] !== Bt ? (r = {
|
|
85
85
|
top: Bt,
|
|
86
86
|
bottom: Ft,
|
|
87
|
-
left:
|
|
88
|
-
right:
|
|
89
|
-
}, t[3] = Ft, t[4] =
|
|
90
|
-
const c = r, [
|
|
91
|
-
let
|
|
92
|
-
if (t[8] !== u || t[9] !==
|
|
93
|
-
let
|
|
94
|
-
t[72] !==
|
|
87
|
+
left: Q,
|
|
88
|
+
right: U
|
|
89
|
+
}, t[3] = Ft, t[4] = Q, t[5] = U, t[6] = Bt, t[7] = r) : r = t[7];
|
|
90
|
+
const c = r, [B, h] = Wt(void 0), [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), mt = y - c.left - c.right, L = P - c.top - c.bottom;
|
|
91
|
+
let g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft, pt;
|
|
92
|
+
if (t[8] !== u || t[9] !== q || t[10] !== tt || t[11] !== ut || t[12] !== n?.graphObjectValues || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.axis || t[17] !== n?.yAxis?.labels || t[18] !== d || t[19] !== x || t[20] !== m || t[21] !== O || t[22] !== L || t[23] !== mt || t[24] !== P || t[25] !== yt || t[26] !== K || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== R || t[31] !== Tt || t[32] !== w || t[33] !== V || t[34] !== $ || t[35] !== a || t[36] !== it || t[37] !== dt || t[38] !== f || t[39] !== rt || t[40] !== xt || t[41] !== H || t[42] !== Y || t[43] !== W || t[44] !== F || t[45] !== C || t[46] !== zt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== Dt || t[54] !== ct || t[55] !== T || t[56] !== I || t[57] !== y) {
|
|
93
|
+
let at;
|
|
94
|
+
t[72] !== K ? (at = (v, k) => ({
|
|
95
95
|
...v,
|
|
96
|
-
id:
|
|
97
|
-
}), t[72] =
|
|
98
|
-
const It = m.map(
|
|
99
|
-
|
|
96
|
+
id: K ? `${v.label}` : `${k}`
|
|
97
|
+
}), t[72] = K, t[73] = at) : at = t[73];
|
|
98
|
+
const It = m.map(at), Et = K || It.map(ci), M = Le().domain([w, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, R ? Math.min(L, R * Et.length) : L]).paddingInner(ut), Nt = ge().domain(m[0].size.map(ri)).range([0, qt.bandwidth()]).paddingInner(0.1), Kt = M.ticks(a);
|
|
99
|
+
Z = Zt.svg, kt = Yt, ot = `${y}px`, Ct = `${P}px`, G = `0 0 ${y} ${P}`, nt = "ltr", _ = `translate(${c.left},${c.top})`, J = C ? /* @__PURE__ */ i.jsx(Fe, { values: Kt.filter(ai), x: Kt.filter(li).map((v) => M(v)), y1: 0 - ct, y2: L + c.bottom, styles: {
|
|
100
100
|
gridLines: s?.xAxis?.gridLines,
|
|
101
101
|
labels: s?.xAxis?.labels
|
|
102
102
|
}, classNames: {
|
|
103
103
|
gridLines: n?.xAxis?.gridLines,
|
|
104
104
|
labels: n?.xAxis?.labels
|
|
105
|
-
}, suffix:
|
|
106
|
-
const
|
|
107
|
-
t[74] !==
|
|
105
|
+
}, suffix: Dt, prefix: rt, labelType: "secondary", showGridLines: !0, precision: f }) : null;
|
|
106
|
+
const jt = mt / 2, Qt = 0 - c.top + 15, Ut = s?.xAxis?.title, Ht = n?.xAxis?.title;
|
|
107
|
+
t[74] !== q || t[75] !== jt || t[76] !== Qt || t[77] !== Ut || t[78] !== Ht ? (j = /* @__PURE__ */ i.jsx(Ce, { x: jt, y: Qt, style: Ut, className: Ht, text: q }), t[74] = q, t[75] = jt, t[76] = Qt, t[77] = Ut, t[78] = Ht, t[79] = j) : j = t[79], t[80] !== x ? (ht = x.filter(ni).map(oi), t[80] = x, t[81] = ht) : ht = t[81], g = je, X = It.map((v) => _t(qt(v.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
|
|
108
108
|
initial: {
|
|
109
109
|
x: 0,
|
|
110
|
-
y:
|
|
110
|
+
y: qt(`${v.id}`)
|
|
111
111
|
},
|
|
112
112
|
whileInView: {
|
|
113
113
|
x: 0,
|
|
114
|
-
y:
|
|
114
|
+
y: qt(`${v.id}`),
|
|
115
115
|
transition: {
|
|
116
116
|
duration: u.duration
|
|
117
117
|
}
|
|
@@ -122,67 +122,67 @@ function ei(e) {
|
|
|
122
122
|
duration: u.duration
|
|
123
123
|
}
|
|
124
124
|
}, children: [
|
|
125
|
-
v.size.map((
|
|
125
|
+
v.size.map((k, o) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: W ? tt[o] === W ? 1 : 0.3 : 0.85, onMouseEnter: (p) => {
|
|
126
126
|
h({
|
|
127
127
|
...v,
|
|
128
128
|
sizeIndex: o
|
|
129
|
-
}),
|
|
129
|
+
}), st(p.clientY), Lt(p.clientX), dt?.({
|
|
130
130
|
...v,
|
|
131
131
|
sizeIndex: o
|
|
132
132
|
});
|
|
133
|
-
}, onMouseMove: (
|
|
133
|
+
}, onMouseMove: (p) => {
|
|
134
134
|
h({
|
|
135
135
|
...v,
|
|
136
136
|
sizeIndex: o
|
|
137
|
-
}),
|
|
137
|
+
}), st(p.clientY), Lt(p.clientX);
|
|
138
138
|
}, onMouseLeave: () => {
|
|
139
|
-
h(void 0),
|
|
139
|
+
h(void 0), Lt(void 0), st(void 0), dt?.(void 0);
|
|
140
140
|
}, onClick: () => {
|
|
141
|
-
(
|
|
141
|
+
(it || O) && (Ae(V, {
|
|
142
142
|
...v,
|
|
143
143
|
sizeIndex: o
|
|
144
|
-
}) &&
|
|
144
|
+
}) && H ? (S(void 0), it?.(void 0)) : (S({
|
|
145
145
|
...v,
|
|
146
146
|
sizeIndex: o
|
|
147
|
-
}),
|
|
147
|
+
}), it && it({
|
|
148
148
|
...v,
|
|
149
149
|
sizeIndex: o
|
|
150
150
|
})));
|
|
151
151
|
}, children: [
|
|
152
|
-
_t(
|
|
152
|
+
_t(k) ? null : /* @__PURE__ */ i.jsx(Zt.rect, { y: Nt(`${o}`), variants: {
|
|
153
153
|
initial: {
|
|
154
154
|
width: 0,
|
|
155
|
-
x:
|
|
156
|
-
fill:
|
|
155
|
+
x: M(0),
|
|
156
|
+
fill: tt[o]
|
|
157
157
|
},
|
|
158
158
|
whileInView: {
|
|
159
|
-
width: _t(
|
|
160
|
-
x:
|
|
161
|
-
fill:
|
|
159
|
+
width: _t(k) ? 0 : k >= 0 ? M(k) - M(0) : M(0) - M(k),
|
|
160
|
+
x: k >= 0 ? M(0) : M(k),
|
|
161
|
+
fill: tt[o],
|
|
162
162
|
transition: {
|
|
163
163
|
duration: u.duration
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
}, exit: {
|
|
167
167
|
width: 0,
|
|
168
|
-
x:
|
|
168
|
+
x: M(0),
|
|
169
169
|
transition: {
|
|
170
170
|
duration: u.duration
|
|
171
171
|
}
|
|
172
|
-
}, height:
|
|
173
|
-
|
|
174
|
-
textAnchor:
|
|
172
|
+
}, height: Nt.bandwidth(), initial: "initial", animate: yt ? "whileInView" : "initial" }),
|
|
173
|
+
zt ? /* @__PURE__ */ i.jsx(Zt.text, { y: Nt(`${o}`) + Nt.bandwidth() / 2, style: {
|
|
174
|
+
textAnchor: k && k < 0 ? "end" : "start",
|
|
175
175
|
...s?.graphObjectValues || {}
|
|
176
|
-
}, className: pe("graph-value text-sm", n?.graphObjectValues), dx:
|
|
176
|
+
}, className: pe("graph-value text-sm", n?.graphObjectValues), dx: k && k < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
177
177
|
initial: {
|
|
178
|
-
x:
|
|
178
|
+
x: M(0),
|
|
179
179
|
opacity: 0,
|
|
180
|
-
fill:
|
|
180
|
+
fill: I || tt[o]
|
|
181
181
|
},
|
|
182
182
|
whileInView: {
|
|
183
|
-
x: k
|
|
183
|
+
x: M(k || 0),
|
|
184
184
|
opacity: 1,
|
|
185
|
-
fill:
|
|
185
|
+
fill: I || tt[o],
|
|
186
186
|
transition: {
|
|
187
187
|
duration: u.duration
|
|
188
188
|
}
|
|
@@ -192,48 +192,48 @@ function ei(e) {
|
|
|
192
192
|
transition: {
|
|
193
193
|
duration: u.duration
|
|
194
194
|
}
|
|
195
|
-
}, children: ue(
|
|
195
|
+
}, children: ue(k, $, f, rt, Dt) }) : null
|
|
196
196
|
] }, `${v.label}-${d[o] || o}`)),
|
|
197
|
-
|
|
197
|
+
F ? /* @__PURE__ */ i.jsx(Pe, { value: `${v.label}`.length < T ? `${v.label}` : `${`${v.label}`.substring(0, T)}...`, y: 0, x: 0 - c.left, width: M(w < 0 ? 0 : w) + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: yt }) : null
|
|
198
198
|
] }, v.label));
|
|
199
|
-
const
|
|
200
|
-
let
|
|
201
|
-
t[82] !==
|
|
202
|
-
axis:
|
|
203
|
-
}, t[82] =
|
|
199
|
+
const Mt = n?.yAxis?.axis;
|
|
200
|
+
let Rt;
|
|
201
|
+
t[82] !== Mt ? (Rt = {
|
|
202
|
+
axis: Mt
|
|
203
|
+
}, t[82] = Mt, t[83] = Rt) : Rt = t[83];
|
|
204
204
|
const Jt = s?.yAxis?.axis;
|
|
205
|
-
let
|
|
206
|
-
t[84] !== Jt ? (
|
|
205
|
+
let N;
|
|
206
|
+
t[84] !== Jt ? (N = {
|
|
207
207
|
axis: Jt
|
|
208
|
-
}, t[84] = Jt, t[85] =
|
|
208
|
+
}, t[84] = Jt, t[85] = N) : N = t[85], ft = /* @__PURE__ */ i.jsx(ke, { x1: M(w < 0 ? 0 : w), x2: M(w < 0 ? 0 : w), y1: -2.5, y2: L + c.bottom, classNames: Rt, styles: N }), pt = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((v, k) => /* @__PURE__ */ i.jsx(He, { text: v.text, color: v.color, x: M(v.value), y1: 0 - c.top, y2: L + c.bottom, textSide: M(v.value) > mt * 0.75 || Y ? "left" : "right", classNames: v.classNames, styles: v.styles, animate: u, isInView: yt }, k)) }) : null, t[8] = u, t[9] = q, t[10] = tt, t[11] = ut, t[12] = n?.graphObjectValues, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.axis, t[17] = n?.yAxis?.labels, t[18] = d, t[19] = x, t[20] = m, t[21] = O, t[22] = L, t[23] = mt, t[24] = P, t[25] = yt, t[26] = K, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = R, t[31] = Tt, t[32] = w, t[33] = V, t[34] = $, t[35] = a, t[36] = it, t[37] = dt, t[38] = f, t[39] = rt, t[40] = xt, t[41] = H, t[42] = Y, t[43] = W, t[44] = F, t[45] = C, t[46] = zt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = Dt, t[54] = ct, t[55] = T, t[56] = I, t[57] = y, t[58] = g, t[59] = Z, t[60] = _, t[61] = J, t[62] = j, t[63] = ht, t[64] = kt, t[65] = ot, t[66] = Ct, t[67] = G, t[68] = nt, t[69] = X, t[70] = ft, t[71] = pt;
|
|
209
209
|
} else
|
|
210
|
-
|
|
210
|
+
g = t[58], Z = t[59], _ = t[60], J = t[61], j = t[62], ht = t[63], kt = t[64], ot = t[65], Ct = t[66], G = t[67], nt = t[68], X = t[69], ft = t[70], pt = t[71];
|
|
211
211
|
let vt;
|
|
212
|
-
t[86] !==
|
|
213
|
-
|
|
214
|
-
|
|
212
|
+
t[86] !== g || t[87] !== X || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
|
|
213
|
+
X,
|
|
214
|
+
ft,
|
|
215
215
|
pt
|
|
216
|
-
] }), t[86] =
|
|
216
|
+
] }), t[86] = g, t[87] = X, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
|
|
217
217
|
let wt;
|
|
218
218
|
t[91] !== x ? (wt = x.filter(si).map(ii), t[91] = x, t[92] = wt) : wt = t[92];
|
|
219
|
-
let
|
|
220
|
-
t[93] !==
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
219
|
+
let lt;
|
|
220
|
+
t[93] !== _ || t[94] !== J || t[95] !== j || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (lt = /* @__PURE__ */ i.jsxs("g", { transform: _, children: [
|
|
221
|
+
J,
|
|
222
|
+
j,
|
|
223
|
+
ht,
|
|
224
224
|
vt,
|
|
225
225
|
wt
|
|
226
|
-
] }), t[93] =
|
|
226
|
+
] }), t[93] = _, t[94] = J, t[95] = j, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = lt) : lt = t[99];
|
|
227
227
|
let At;
|
|
228
|
-
t[100] !==
|
|
228
|
+
t[100] !== Z || t[101] !== kt || t[102] !== ot || t[103] !== Ct || t[104] !== G || t[105] !== nt || t[106] !== lt ? (At = /* @__PURE__ */ i.jsx(Z, { ref: kt, width: ot, height: Ct, viewBox: G, direction: nt, children: lt }), t[100] = Z, t[101] = kt, t[102] = ot, t[103] = Ct, t[104] = G, t[105] = nt, t[106] = lt, t[107] = At) : At = t[107];
|
|
229
229
|
let $t;
|
|
230
|
-
t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !==
|
|
230
|
+
t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !== B || t[112] !== s?.tooltip || t[113] !== et ? ($t = B && et && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: B, body: et, xPos: A, yPos: bt, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[108] = n?.tooltip, t[109] = A, t[110] = bt, t[111] = B, t[112] = s?.tooltip, t[113] = et, t[114] = $t) : $t = t[114];
|
|
231
231
|
let Ot;
|
|
232
|
-
t[115] !==
|
|
233
|
-
|
|
234
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof
|
|
235
|
-
__html: Me(
|
|
236
|
-
} : void 0, children: typeof
|
|
232
|
+
t[115] !== O || t[116] !== V ? (Ot = O && V !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: V !== void 0, onClose: () => {
|
|
233
|
+
S(void 0);
|
|
234
|
+
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
|
|
235
|
+
__html: Me(O, V)
|
|
236
|
+
} : void 0, children: typeof O == "function" ? O(V) : null }) }) : null, t[115] = O, t[116] = V, t[117] = Ot) : Ot = t[117];
|
|
237
237
|
let b;
|
|
238
238
|
return t[118] !== At || t[119] !== $t || t[120] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
239
239
|
At,
|
|
@@ -268,148 +268,148 @@ function ci(e) {
|
|
|
268
268
|
function ui(e) {
|
|
269
269
|
const t = xe.c(130), {
|
|
270
270
|
data: m,
|
|
271
|
-
leftMargin:
|
|
271
|
+
leftMargin: D,
|
|
272
272
|
rightMargin: Xt,
|
|
273
273
|
topMargin: St,
|
|
274
274
|
bottomMargin: gt,
|
|
275
|
-
width:
|
|
276
|
-
height:
|
|
277
|
-
barColors:
|
|
278
|
-
suffix:
|
|
279
|
-
prefix:
|
|
280
|
-
barPadding:
|
|
281
|
-
showLabels:
|
|
282
|
-
showValues:
|
|
283
|
-
showTicks:
|
|
284
|
-
truncateBy:
|
|
285
|
-
tooltip:
|
|
286
|
-
onSeriesMouseOver:
|
|
287
|
-
refValues:
|
|
275
|
+
width: tt,
|
|
276
|
+
height: ut,
|
|
277
|
+
barColors: C,
|
|
278
|
+
suffix: T,
|
|
279
|
+
prefix: y,
|
|
280
|
+
barPadding: P,
|
|
281
|
+
showLabels: Dt,
|
|
282
|
+
showValues: rt,
|
|
283
|
+
showTicks: zt,
|
|
284
|
+
truncateBy: F,
|
|
285
|
+
tooltip: et,
|
|
286
|
+
onSeriesMouseOver: dt,
|
|
287
|
+
refValues: xt,
|
|
288
288
|
maxValue: Tt,
|
|
289
289
|
minValue: w,
|
|
290
|
-
onSeriesMouseClick:
|
|
291
|
-
selectedColor:
|
|
292
|
-
labelOrder:
|
|
293
|
-
maxBarThickness:
|
|
294
|
-
resetSelectionOnDoubleClick:
|
|
295
|
-
detailsOnClick:
|
|
296
|
-
barAxisTitle:
|
|
297
|
-
valueColor:
|
|
298
|
-
noOfTicks:
|
|
290
|
+
onSeriesMouseClick: it,
|
|
291
|
+
selectedColor: W,
|
|
292
|
+
labelOrder: Y,
|
|
293
|
+
maxBarThickness: K,
|
|
294
|
+
resetSelectionOnDoubleClick: R,
|
|
295
|
+
detailsOnClick: H,
|
|
296
|
+
barAxisTitle: O,
|
|
297
|
+
valueColor: q,
|
|
298
|
+
noOfTicks: I,
|
|
299
299
|
styles: a,
|
|
300
300
|
classNames: s,
|
|
301
301
|
animate: n,
|
|
302
302
|
colorDomain: u,
|
|
303
303
|
precision: d,
|
|
304
|
-
customLayers:
|
|
304
|
+
customLayers: f,
|
|
305
305
|
naLabel: x
|
|
306
|
-
} = e, $ =
|
|
306
|
+
} = e, $ = D === void 0 ? 20 : D, Q = Xt === void 0 ? 20 : Xt, U = St === void 0 ? 20 : St, ct = gt === void 0 ? 25 : gt, Ft = de(null);
|
|
307
307
|
let Yt;
|
|
308
308
|
t[0] !== n.amount || t[1] !== n.once ? (Yt = {
|
|
309
309
|
once: n.once,
|
|
310
310
|
amount: n.amount
|
|
311
311
|
}, t[0] = n.amount, t[1] = n.once, t[2] = Yt) : Yt = t[2];
|
|
312
|
-
const
|
|
312
|
+
const E = Ve(Ft, Yt), yt = O ? $ + 30 : $;
|
|
313
313
|
let Bt;
|
|
314
|
-
t[3] !==
|
|
315
|
-
top:
|
|
316
|
-
bottom:
|
|
314
|
+
t[3] !== ct || t[4] !== Q || t[5] !== yt || t[6] !== U ? (Bt = {
|
|
315
|
+
top: U,
|
|
316
|
+
bottom: ct,
|
|
317
317
|
left: yt,
|
|
318
|
-
right:
|
|
319
|
-
}, t[3] =
|
|
320
|
-
const r = Bt, [c,
|
|
321
|
-
let
|
|
322
|
-
if (t[8] !== n || t[9] !==
|
|
323
|
-
const b = Le().domain([w, Tt]).range([
|
|
324
|
-
let
|
|
325
|
-
t[72] !==
|
|
326
|
-
...
|
|
327
|
-
id:
|
|
328
|
-
}), t[72] =
|
|
329
|
-
const It = m.map(
|
|
330
|
-
|
|
331
|
-
const Kt = b(w < 0 ? 0 : w),
|
|
318
|
+
right: Q
|
|
319
|
+
}, t[3] = ct, t[4] = Q, t[5] = yt, t[6] = U, t[7] = Bt) : Bt = t[7];
|
|
320
|
+
const r = Bt, [c, B] = Wt(void 0), [h, V] = Wt(void 0), [S, A] = Wt(void 0), [Lt, bt] = Wt(void 0), st = tt - r.left - r.right, mt = ut - r.top - r.bottom;
|
|
321
|
+
let L, g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft;
|
|
322
|
+
if (t[8] !== n || t[9] !== O || t[10] !== C || t[11] !== P || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== u || t[19] !== f || t[20] !== m || t[21] !== H || t[22] !== mt || t[23] !== st || t[24] !== ut || t[25] !== E || t[26] !== Y || t[27] !== $ || t[28] !== r.bottom || t[29] !== r.left || t[30] !== r.right || t[31] !== r.top || t[32] !== K || t[33] !== Tt || t[34] !== w || t[35] !== h || t[36] !== x || t[37] !== I || t[38] !== it || t[39] !== dt || t[40] !== d || t[41] !== y || t[42] !== xt || t[43] !== R || t[44] !== W || t[45] !== Dt || t[46] !== zt || t[47] !== rt || t[48] !== a?.graphObjectValues || t[49] !== a?.xAxis?.axis || t[50] !== a?.xAxis?.labels || t[51] !== a?.yAxis?.gridLines || t[52] !== a?.yAxis?.labels || t[53] !== a?.yAxis?.title || t[54] !== T || t[55] !== F || t[56] !== q || t[57] !== tt) {
|
|
323
|
+
const b = Le().domain([w, Tt]).range([mt, 0]).nice();
|
|
324
|
+
let at;
|
|
325
|
+
t[72] !== Y ? (at = (z, Vt) => ({
|
|
326
|
+
...z,
|
|
327
|
+
id: Y ? `${z.label}` : `${Vt}`
|
|
328
|
+
}), t[72] = Y, t[73] = at) : at = t[73];
|
|
329
|
+
const It = m.map(at), Et = Y || It.map(yi), M = ge().domain(Et).range([0, K ? Math.min(st, K * Et.length) : st]).paddingInner(P), qt = ge().domain(m[0].size.map(gi)).range([0, M.bandwidth()]).paddingInner(0.1), Nt = b.ticks(I);
|
|
330
|
+
g = Zt.svg, ht = `${tt}px`, kt = `${ut}px`, ot = `0 0 ${tt} ${ut}`, Ct = "ltr", G = Ft, ft = `translate(${r.left},${r.top})`;
|
|
331
|
+
const Kt = b(w < 0 ? 0 : w), jt = b(w < 0 ? 0 : w), Qt = w < 0 ? 0 : w;
|
|
332
332
|
let Ut;
|
|
333
|
-
t[74] !== x || t[75] !== d || t[76] !==
|
|
334
|
-
const Ht = s?.xAxis?.axis,
|
|
335
|
-
let
|
|
336
|
-
t[80] !== Ht || t[81] !==
|
|
333
|
+
t[74] !== x || t[75] !== d || t[76] !== y || t[77] !== T || t[78] !== Qt ? (Ut = ue(Qt, x, d, y, T), t[74] = x, t[75] = d, t[76] = y, t[77] = T, t[78] = Qt, t[79] = Ut) : Ut = t[79];
|
|
334
|
+
const Ht = s?.xAxis?.axis, Mt = s?.yAxis?.labels;
|
|
335
|
+
let Rt;
|
|
336
|
+
t[80] !== Ht || t[81] !== Mt ? (Rt = {
|
|
337
337
|
axis: Ht,
|
|
338
|
-
label:
|
|
339
|
-
}, t[80] = Ht, t[81] =
|
|
340
|
-
const Jt = a?.xAxis?.axis,
|
|
338
|
+
label: Mt
|
|
339
|
+
}, t[80] = Ht, t[81] = Mt, t[82] = Rt) : Rt = t[82];
|
|
340
|
+
const Jt = a?.xAxis?.axis, N = a?.yAxis?.labels;
|
|
341
341
|
let v;
|
|
342
|
-
t[83] !== Jt || t[84] !==
|
|
342
|
+
t[83] !== Jt || t[84] !== N ? (v = {
|
|
343
343
|
axis: Jt,
|
|
344
|
-
label:
|
|
345
|
-
}, t[83] = Jt, t[84] =
|
|
344
|
+
label: N
|
|
345
|
+
}, t[83] = Jt, t[84] = N, t[85] = v) : v = t[85], Z = /* @__PURE__ */ i.jsx(ke, { y1: Kt, y2: jt, x1: 0 - $, x2: st + r.right, label: Ut, labelPos: {
|
|
346
346
|
x: 0 - $,
|
|
347
347
|
dx: 0,
|
|
348
348
|
dy: Tt < 0 ? "1em" : -5,
|
|
349
349
|
y: b(w < 0 ? 0 : w)
|
|
350
|
-
}, classNames:
|
|
350
|
+
}, classNames: Rt, styles: v }), _ = zt ? /* @__PURE__ */ i.jsx(Ye, { values: Nt.filter(pi), y: Nt.filter(fi).map((z) => b(z)), x1: 0 - $, x2: st + r.right, styles: {
|
|
351
351
|
gridLines: a?.yAxis?.gridLines,
|
|
352
352
|
labels: a?.yAxis?.labels
|
|
353
353
|
}, classNames: {
|
|
354
354
|
gridLines: s?.yAxis?.gridLines,
|
|
355
355
|
labels: s?.yAxis?.labels
|
|
356
|
-
}, suffix:
|
|
357
|
-
const
|
|
358
|
-
t[86] !==
|
|
356
|
+
}, suffix: T, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
|
|
357
|
+
const k = 0 - $ - 15, o = mt / 2, p = a?.yAxis?.title, ee = s?.yAxis?.title;
|
|
358
|
+
t[86] !== O || t[87] !== k || t[88] !== o || t[89] !== p || t[90] !== ee ? (J = /* @__PURE__ */ i.jsx(Ce, { x: k, y: o, style: p, className: ee, text: O, rotate90: !0 }), t[86] = O, t[87] = k, t[88] = o, t[89] = p, t[90] = ee, t[91] = J) : J = t[91], t[92] !== f ? (j = f.filter(hi).map(mi), t[92] = f, t[93] = j) : j = t[93], L = je, nt = It.map((z) => _t(M(z.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
|
|
359
359
|
initial: {
|
|
360
|
-
x:
|
|
360
|
+
x: M(`${z.id}`),
|
|
361
361
|
y: 0
|
|
362
362
|
},
|
|
363
363
|
whileInView: {
|
|
364
|
-
x:
|
|
364
|
+
x: M(`${z.id}`),
|
|
365
365
|
y: 0,
|
|
366
366
|
transition: {
|
|
367
367
|
duration: n.duration
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
}, initial: "initial", animate:
|
|
370
|
+
}, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
|
|
371
371
|
opacity: 0,
|
|
372
372
|
transition: {
|
|
373
373
|
duration: n.duration
|
|
374
374
|
}
|
|
375
375
|
}, children: [
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
...
|
|
376
|
+
z.size.map((Vt, l) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: W ? C[l] === W ? 1 : 0.3 : 0.85, onMouseEnter: (ie) => {
|
|
377
|
+
B({
|
|
378
|
+
...z,
|
|
379
379
|
sizeIndex: l
|
|
380
|
-
}), bt(ie.clientY), A(ie.clientX),
|
|
381
|
-
...
|
|
380
|
+
}), bt(ie.clientY), A(ie.clientX), dt?.({
|
|
381
|
+
...z,
|
|
382
382
|
sizeIndex: l
|
|
383
383
|
});
|
|
384
384
|
}, onMouseMove: (ie) => {
|
|
385
|
-
|
|
386
|
-
...
|
|
385
|
+
B({
|
|
386
|
+
...z,
|
|
387
387
|
sizeIndex: l
|
|
388
388
|
}), bt(ie.clientY), A(ie.clientX);
|
|
389
389
|
}, onMouseLeave: () => {
|
|
390
|
-
|
|
390
|
+
B(void 0), A(void 0), bt(void 0), dt?.(void 0);
|
|
391
391
|
}, onClick: () => {
|
|
392
|
-
(
|
|
393
|
-
...
|
|
392
|
+
(it || H) && (Ae(h, {
|
|
393
|
+
...z,
|
|
394
394
|
sizeIndex: l
|
|
395
|
-
}) &&
|
|
396
|
-
...
|
|
395
|
+
}) && R ? (V(void 0), it?.(void 0)) : (V({
|
|
396
|
+
...z,
|
|
397
397
|
sizeIndex: l
|
|
398
|
-
}),
|
|
399
|
-
...
|
|
398
|
+
}), it && it({
|
|
399
|
+
...z,
|
|
400
400
|
sizeIndex: l
|
|
401
401
|
})));
|
|
402
402
|
}, children: [
|
|
403
|
-
/* @__PURE__ */ i.jsx(Zt.rect, { x:
|
|
403
|
+
/* @__PURE__ */ i.jsx(Zt.rect, { x: qt(`${l}`), width: qt.bandwidth(), variants: {
|
|
404
404
|
initial: {
|
|
405
405
|
height: 0,
|
|
406
406
|
y: b(0),
|
|
407
|
-
fill:
|
|
407
|
+
fill: C[l]
|
|
408
408
|
},
|
|
409
409
|
whileInView: {
|
|
410
|
-
height: _t(
|
|
411
|
-
y: _t(
|
|
412
|
-
fill:
|
|
410
|
+
height: _t(Vt) ? 0 : Math.abs(b(Vt) - b(0)),
|
|
411
|
+
y: _t(Vt) ? b(0) : Vt > 0 ? b(Vt) : b(0),
|
|
412
|
+
fill: C[l],
|
|
413
413
|
transition: {
|
|
414
414
|
duration: n.duration
|
|
415
415
|
}
|
|
@@ -420,67 +420,67 @@ function ui(e) {
|
|
|
420
420
|
transition: {
|
|
421
421
|
duration: n.duration
|
|
422
422
|
}
|
|
423
|
-
}, initial: "initial", animate:
|
|
424
|
-
|
|
423
|
+
}, initial: "initial", animate: E ? "whileInView" : "initial" }),
|
|
424
|
+
rt ? /* @__PURE__ */ i.jsx(Zt.text, { x: qt(`${l}`) + qt.bandwidth() / 2, style: {
|
|
425
425
|
textAnchor: "middle",
|
|
426
426
|
...a?.graphObjectValues || {}
|
|
427
|
-
}, className: pe("graph-value text-sm", s?.graphObjectValues), dy:
|
|
427
|
+
}, className: pe("graph-value text-sm", s?.graphObjectValues), dy: Vt ? Vt >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
428
428
|
initial: {
|
|
429
429
|
y: b(0),
|
|
430
430
|
opacity: 0,
|
|
431
|
-
fill:
|
|
431
|
+
fill: q || C[l]
|
|
432
432
|
},
|
|
433
433
|
whileInView: {
|
|
434
|
-
y: b(
|
|
434
|
+
y: b(Vt || 0),
|
|
435
435
|
opacity: 1,
|
|
436
|
-
fill:
|
|
436
|
+
fill: q || C[l],
|
|
437
437
|
transition: {
|
|
438
438
|
duration: n.duration
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
}, initial: "initial", animate:
|
|
441
|
+
}, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
|
|
442
442
|
opacity: 0,
|
|
443
443
|
transition: {
|
|
444
444
|
duration: n.duration
|
|
445
445
|
}
|
|
446
|
-
}, children: ue(
|
|
447
|
-
] }, `${
|
|
448
|
-
|
|
449
|
-
] },
|
|
446
|
+
}, children: ue(Vt, x, d, y, T) }) : null
|
|
447
|
+
] }, `${z.label}-${u[l] || l}`)),
|
|
448
|
+
Dt ? /* @__PURE__ */ i.jsx(Ee, { value: `${z.label}`.length < F ? `${z.label}` : `${`${z.label}`.substring(0, F)}...`, y: b(0) + 5, x: 0, width: M.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: n, isInView: E }) : null
|
|
449
|
+
] }, z.label)), X = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((z, Vt) => /* @__PURE__ */ i.jsx(Xe, { text: z.text, color: z.color, y: b(z.value), x1: 0 - $, x2: st + r.right, classNames: z.classNames, styles: z.styles, animate: n, isInView: E }, Vt)) }) : null, t[8] = n, t[9] = O, t[10] = C, t[11] = P, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = u, t[19] = f, t[20] = m, t[21] = H, t[22] = mt, t[23] = st, t[24] = ut, t[25] = E, t[26] = Y, t[27] = $, t[28] = r.bottom, t[29] = r.left, t[30] = r.right, t[31] = r.top, t[32] = K, t[33] = Tt, t[34] = w, t[35] = h, t[36] = x, t[37] = I, t[38] = it, t[39] = dt, t[40] = d, t[41] = y, t[42] = xt, t[43] = R, t[44] = W, t[45] = Dt, t[46] = zt, t[47] = rt, t[48] = a?.graphObjectValues, t[49] = a?.xAxis?.axis, t[50] = a?.xAxis?.labels, t[51] = a?.yAxis?.gridLines, t[52] = a?.yAxis?.labels, t[53] = a?.yAxis?.title, t[54] = T, t[55] = F, t[56] = q, t[57] = tt, t[58] = L, t[59] = g, t[60] = Z, t[61] = _, t[62] = J, t[63] = j, t[64] = ht, t[65] = kt, t[66] = ot, t[67] = Ct, t[68] = G, t[69] = nt, t[70] = X, t[71] = ft;
|
|
450
450
|
} else
|
|
451
|
-
|
|
451
|
+
L = t[58], g = t[59], Z = t[60], _ = t[61], J = t[62], j = t[63], ht = t[64], kt = t[65], ot = t[66], Ct = t[67], G = t[68], nt = t[69], X = t[70], ft = t[71];
|
|
452
452
|
let pt;
|
|
453
|
-
t[94] !==
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
] }), t[94] =
|
|
453
|
+
t[94] !== L || t[95] !== nt || t[96] !== X ? (pt = /* @__PURE__ */ i.jsxs(L, { children: [
|
|
454
|
+
nt,
|
|
455
|
+
X
|
|
456
|
+
] }), t[94] = L, t[95] = nt, t[96] = X, t[97] = pt) : pt = t[97];
|
|
457
457
|
let vt;
|
|
458
|
-
t[98] !==
|
|
458
|
+
t[98] !== f ? (vt = f.filter(xi).map(di), t[98] = f, t[99] = vt) : vt = t[99];
|
|
459
459
|
let wt;
|
|
460
|
-
t[100] !==
|
|
460
|
+
t[100] !== Z || t[101] !== _ || t[102] !== J || t[103] !== j || t[104] !== pt || t[105] !== vt || t[106] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
|
|
461
|
+
Z,
|
|
461
462
|
_,
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
D,
|
|
463
|
+
J,
|
|
464
|
+
j,
|
|
465
465
|
pt,
|
|
466
466
|
vt
|
|
467
|
-
] }), t[100] =
|
|
468
|
-
let
|
|
469
|
-
t[108] !==
|
|
467
|
+
] }), t[100] = Z, t[101] = _, t[102] = J, t[103] = j, t[104] = pt, t[105] = vt, t[106] = ft, t[107] = wt) : wt = t[107];
|
|
468
|
+
let lt;
|
|
469
|
+
t[108] !== g || t[109] !== ht || t[110] !== kt || t[111] !== ot || t[112] !== Ct || t[113] !== G || t[114] !== wt ? (lt = /* @__PURE__ */ i.jsx(g, { width: ht, height: kt, viewBox: ot, direction: Ct, ref: G, children: wt }), t[108] = g, t[109] = ht, t[110] = kt, t[111] = ot, t[112] = Ct, t[113] = G, t[114] = wt, t[115] = lt) : lt = t[115];
|
|
470
470
|
let At;
|
|
471
|
-
t[116] !== s?.tooltip || t[117] !==
|
|
471
|
+
t[116] !== s?.tooltip || t[117] !== S || t[118] !== Lt || t[119] !== c || t[120] !== a?.tooltip || t[121] !== et ? (At = c && et && S && Lt ? /* @__PURE__ */ i.jsx(Oe, { data: c, body: et, xPos: S, yPos: Lt, backgroundStyle: a?.tooltip, className: s?.tooltip }) : null, t[116] = s?.tooltip, t[117] = S, t[118] = Lt, t[119] = c, t[120] = a?.tooltip, t[121] = et, t[122] = At) : At = t[122];
|
|
472
472
|
let $t;
|
|
473
|
-
t[123] !==
|
|
474
|
-
|
|
475
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof
|
|
476
|
-
__html: Me(
|
|
477
|
-
} : void 0, children: typeof
|
|
473
|
+
t[123] !== H || t[124] !== h ? ($t = H && h !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: h !== void 0, onClose: () => {
|
|
474
|
+
V(void 0);
|
|
475
|
+
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof H == "string" ? {
|
|
476
|
+
__html: Me(H, h)
|
|
477
|
+
} : void 0, children: typeof H == "function" ? H(h) : null }) }) : null, t[123] = H, t[124] = h, t[125] = $t) : $t = t[125];
|
|
478
478
|
let Ot;
|
|
479
|
-
return t[126] !==
|
|
480
|
-
|
|
479
|
+
return t[126] !== lt || t[127] !== At || t[128] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
480
|
+
lt,
|
|
481
481
|
At,
|
|
482
482
|
$t
|
|
483
|
-
] }), t[126] =
|
|
483
|
+
] }), t[126] = lt, t[127] = At, t[128] = $t, t[129] = Ot) : Ot = t[129], Ot;
|
|
484
484
|
}
|
|
485
485
|
function di(e) {
|
|
486
486
|
return e.layer;
|
|
@@ -509,102 +509,102 @@ function yi(e) {
|
|
|
509
509
|
function bi(e) {
|
|
510
510
|
const t = xe.c(43), {
|
|
511
511
|
data: m,
|
|
512
|
-
graphTitle:
|
|
512
|
+
graphTitle: D,
|
|
513
513
|
colors: Xt,
|
|
514
514
|
sources: St,
|
|
515
515
|
graphDescription: gt,
|
|
516
|
-
barPadding:
|
|
517
|
-
showTicks:
|
|
518
|
-
truncateBy:
|
|
519
|
-
height:
|
|
520
|
-
width:
|
|
521
|
-
footNote:
|
|
522
|
-
colorDomain:
|
|
523
|
-
colorLegendTitle:
|
|
524
|
-
suffix:
|
|
525
|
-
prefix:
|
|
526
|
-
showValues:
|
|
527
|
-
showColorScale:
|
|
528
|
-
padding:
|
|
516
|
+
barPadding: tt,
|
|
517
|
+
showTicks: ut,
|
|
518
|
+
truncateBy: C,
|
|
519
|
+
height: T,
|
|
520
|
+
width: y,
|
|
521
|
+
footNote: P,
|
|
522
|
+
colorDomain: Dt,
|
|
523
|
+
colorLegendTitle: rt,
|
|
524
|
+
suffix: zt,
|
|
525
|
+
prefix: F,
|
|
526
|
+
showValues: et,
|
|
527
|
+
showColorScale: dt,
|
|
528
|
+
padding: xt,
|
|
529
529
|
backgroundColor: Tt,
|
|
530
530
|
leftMargin: w,
|
|
531
|
-
rightMargin:
|
|
532
|
-
topMargin:
|
|
533
|
-
bottomMargin:
|
|
534
|
-
showLabels:
|
|
535
|
-
relativeHeight:
|
|
536
|
-
tooltip:
|
|
537
|
-
onSeriesMouseOver:
|
|
538
|
-
refValues:
|
|
539
|
-
graphID:
|
|
531
|
+
rightMargin: it,
|
|
532
|
+
topMargin: W,
|
|
533
|
+
bottomMargin: Y,
|
|
534
|
+
showLabels: K,
|
|
535
|
+
relativeHeight: R,
|
|
536
|
+
tooltip: H,
|
|
537
|
+
onSeriesMouseOver: O,
|
|
538
|
+
refValues: q,
|
|
539
|
+
graphID: I,
|
|
540
540
|
maxValue: a,
|
|
541
541
|
minValue: s,
|
|
542
542
|
onSeriesMouseClick: n,
|
|
543
543
|
graphDownload: u,
|
|
544
544
|
dataDownload: d,
|
|
545
|
-
language:
|
|
545
|
+
language: f,
|
|
546
546
|
labelOrder: x,
|
|
547
547
|
minHeight: $,
|
|
548
|
-
theme:
|
|
549
|
-
maxBarThickness:
|
|
550
|
-
ariaLabel:
|
|
548
|
+
theme: Q,
|
|
549
|
+
maxBarThickness: U,
|
|
550
|
+
ariaLabel: ct,
|
|
551
551
|
resetSelectionOnDoubleClick: Ft,
|
|
552
552
|
detailsOnClick: Yt,
|
|
553
|
-
barAxisTitle:
|
|
553
|
+
barAxisTitle: E,
|
|
554
554
|
noOfTicks: yt,
|
|
555
555
|
valueColor: Bt,
|
|
556
556
|
styles: r,
|
|
557
557
|
classNames: c,
|
|
558
|
-
filterNA:
|
|
558
|
+
filterNA: B,
|
|
559
559
|
animate: h,
|
|
560
|
-
precision:
|
|
561
|
-
customLayers:
|
|
560
|
+
precision: V,
|
|
561
|
+
customLayers: S,
|
|
562
562
|
timeline: A,
|
|
563
|
-
naLabel:
|
|
563
|
+
naLabel: Lt,
|
|
564
564
|
sortParameter: bt,
|
|
565
|
-
sortData:
|
|
566
|
-
orientation:
|
|
567
|
-
} = e,
|
|
565
|
+
sortData: st,
|
|
566
|
+
orientation: mt
|
|
567
|
+
} = e, L = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, g = tt === void 0 ? 0.25 : tt, Z = ut === void 0 ? !0 : ut, _ = C === void 0 ? 999 : C, J = zt === void 0 ? "" : zt, j = F === void 0 ? "" : F, ht = et === void 0 ? !0 : et, kt = dt === void 0 ? !0 : dt, ot = Tt === void 0 ? !1 : Tt, Ct = K === void 0 ? !0 : K, G = u === void 0 ? !1 : u, nt = d === void 0 ? !1 : d, X = f === void 0 ? "en" : f, ft = $ === void 0 ? 0 : $, pt = Q === void 0 ? "light" : Q, vt = Ft === void 0 ? !0 : Ft, wt = yt === void 0 ? 5 : yt, lt = B === void 0 ? !0 : B, At = h === void 0 ? !1 : h, $t = V === void 0 ? 2 : V;
|
|
568
568
|
let Ot;
|
|
569
|
-
t[0] !==
|
|
570
|
-
const b = Ot,
|
|
569
|
+
t[0] !== S ? (Ot = S === void 0 ? [] : S, t[0] = S, t[1] = Ot) : Ot = t[1];
|
|
570
|
+
const b = Ot, at = A === void 0 ? {
|
|
571
571
|
enabled: !1,
|
|
572
572
|
autoplay: !1,
|
|
573
573
|
showOnlyActiveDate: !0
|
|
574
|
-
} : A, It =
|
|
575
|
-
let o,
|
|
574
|
+
} : A, It = Lt === void 0 ? "NA" : Lt, M = (mt === void 0 ? "vertical" : mt) === "horizontal" ? ei : ui, [qt, Nt] = Wt(0), [Kt, jt] = Wt(0), [Qt, Ut] = Wt(at.autoplay), Ht = Ze(De(m, "date", !0).map((Gt) => Be(`${Gt}`, at.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Pi), [Mt, Rt] = Wt(at.autoplay ? 0 : Ht.length - 1), [Jt, N] = Wt(void 0), v = de(null), k = de(null);
|
|
575
|
+
let o, p;
|
|
576
576
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
|
|
577
577
|
const Gt = new ResizeObserver((Pt) => {
|
|
578
|
-
|
|
578
|
+
Nt(Pt[0].target.clientWidth || 620), jt(Pt[0].target.clientHeight || 480);
|
|
579
579
|
});
|
|
580
580
|
return v.current && Gt.observe(v.current), () => Gt.disconnect();
|
|
581
|
-
},
|
|
581
|
+
}, p = [], t[2] = o, t[3] = p) : (o = t[2], p = t[3]), we(o, p), we(() => {
|
|
582
582
|
const Gt = setInterval(() => {
|
|
583
|
-
|
|
584
|
-
}, (
|
|
583
|
+
Rt((Pt) => Pt < Ht.length - 1 ? Pt + 1 : 0);
|
|
584
|
+
}, (at.speed || 2) * 1e3);
|
|
585
585
|
return Qt || clearInterval(Gt), () => clearInterval(Gt);
|
|
586
|
-
}, [Ht, Qt,
|
|
587
|
-
const ee = Ie(Ht,
|
|
586
|
+
}, [Ht, Qt, at.speed]);
|
|
587
|
+
const ee = Ie(Ht, Mt, at.showOnlyActiveDate, at.dateFormat || "yyyy"), z = Qe, Vt = c?.graphContainer, l = r?.graphContainer;
|
|
588
588
|
let ie;
|
|
589
|
-
t[4] !== c?.description || t[5] !== c?.title || t[6] !== m || t[7] !==
|
|
589
|
+
t[4] !== c?.description || t[5] !== c?.title || t[6] !== m || t[7] !== nt || t[8] !== gt || t[9] !== G || t[10] !== D || t[11] !== r?.description || t[12] !== r?.title || t[13] !== y ? (ie = D || gt || G || nt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
|
|
590
590
|
title: r?.title,
|
|
591
591
|
description: r?.description
|
|
592
592
|
}, classNames: {
|
|
593
593
|
title: c?.title,
|
|
594
594
|
description: c?.description
|
|
595
|
-
}, graphTitle:
|
|
596
|
-
const se =
|
|
595
|
+
}, graphTitle: D, graphDescription: gt, width: y, graphDownload: G ? k : void 0, dataDownload: nt ? m.map(Bi).filter(Si).length > 0 ? m.map(Ii).filter(Ti) : m.filter(Ni) : null }) : null, t[4] = c?.description, t[5] = c?.title, t[6] = m, t[7] = nt, t[8] = gt, t[9] = G, t[10] = D, t[11] = r?.description, t[12] = r?.title, t[13] = y, t[14] = ie) : ie = t[14];
|
|
596
|
+
const se = at.enabled && Ht.length > 0 && ee ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
597
597
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
598
598
|
Ut(!Qt);
|
|
599
599
|
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Qt ? "Click to pause animation" : "Click to play animation", children: Qt ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
|
|
600
|
-
/* @__PURE__ */ i.jsx(Se, { min: Ht[0], max: Ht[Ht.length - 1], marks: ee, step: null, defaultValue: Ht[Ht.length - 1], value: Ht[
|
|
601
|
-
|
|
600
|
+
/* @__PURE__ */ i.jsx(Se, { min: Ht[0], max: Ht[Ht.length - 1], marks: ee, step: null, defaultValue: Ht[Ht.length - 1], value: Ht[Mt], onChangeComplete: (Gt) => {
|
|
601
|
+
Rt(Ht.indexOf(Gt));
|
|
602
602
|
}, onChange: (Gt) => {
|
|
603
|
-
|
|
603
|
+
Rt(Ht.indexOf(Gt));
|
|
604
604
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
605
605
|
] }) : null, me = "grow flex flex-col justify-center gap-3 w-full", fe = m.length === 0 ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
606
|
-
|
|
607
|
-
/* @__PURE__ */ i.jsx(Ke, { ref: v, children:
|
|
606
|
+
kt ? /* @__PURE__ */ i.jsx(Re, { width: y, colorDomain: Dt, colors: L, colorLegendTitle: rt, setSelectedColor: N, showNAColor: !1, className: c?.colorLegend }) : null,
|
|
607
|
+
/* @__PURE__ */ i.jsx(Ke, { ref: v, children: qt && Kt ? /* @__PURE__ */ i.jsx(M, { data: bt !== void 0 ? bt === "total" ? ze(ve(m, at.dateFormat || "yyyy").filter((Gt) => at.enabled ? Gt.date === ye(new Date(Ht[Mt]), at.dateFormat || "yyyy") : Gt).filter((Gt) => lt ? !Gt.size.every(zi) : Gt), ji, [st || "asc"]) : ze(ve(m, at.dateFormat || "yyyy").filter((Gt) => at.enabled ? Gt.date === ye(new Date(Ht[Mt]), at.dateFormat || "yyyy") : Gt).filter((Gt) => lt ? !Gt.size.every(Li) : Gt), (Gt) => _t(Gt.size[bt]) ? -1 / 0 : Gt.size[bt], [st || "asc"]) : ve(m, at.dateFormat || "yyyy").filter((Gt) => lt ? !Gt.size.every(Vi) : Gt), barColors: L, width: qt, height: Kt, suffix: J, prefix: j, showValues: ht, barPadding: g, showTicks: Z, leftMargin: w, rightMargin: it, topMargin: W, bottomMargin: Y, truncateBy: _, showLabels: Ct, tooltip: H, onSeriesMouseOver: O, refValues: q, maxValue: _t(a) ? Math.max(...m.map(ki)) < 0 ? 0 : Math.max(...m.map(Oi)) : a, minValue: _t(s) ? Math.min(...m.map(Ai)) >= 0 ? 0 : Math.min(...m.map(vi)) : s, onSeriesMouseClick: n, selectedColor: Jt, labelOrder: x, rtl: X === "he" || X === "ar", maxBarThickness: U, resetSelectionOnDoubleClick: vt, detailsOnClick: Yt, barAxisTitle: E, noOfTicks: wt, valueColor: Bt, styles: r, classNames: c, colorDomain: Dt, animate: At === !0 ? {
|
|
608
608
|
duration: 0.5,
|
|
609
609
|
once: !0,
|
|
610
610
|
amount: 0.5
|
|
@@ -617,20 +617,20 @@ function bi(e) {
|
|
|
617
617
|
let re;
|
|
618
618
|
t[15] !== fe ? (re = /* @__PURE__ */ i.jsx("div", { className: me, children: fe }), t[15] = fe, t[16] = re) : re = t[16];
|
|
619
619
|
let oe;
|
|
620
|
-
t[17] !== c?.footnote || t[18] !== c?.source || t[19] !==
|
|
620
|
+
t[17] !== c?.footnote || t[18] !== c?.source || t[19] !== P || t[20] !== St || t[21] !== r?.footnote || t[22] !== r?.source || t[23] !== y ? (oe = St || P ? /* @__PURE__ */ i.jsx(We, { styles: {
|
|
621
621
|
footnote: r?.footnote,
|
|
622
622
|
source: r?.source
|
|
623
623
|
}, classNames: {
|
|
624
624
|
footnote: c?.footnote,
|
|
625
625
|
source: c?.source
|
|
626
|
-
}, sources: St, footNote:
|
|
626
|
+
}, sources: St, footNote: P, width: y }) : null, t[17] = c?.footnote, t[18] = c?.source, t[19] = P, t[20] = St, t[21] = r?.footnote, t[22] = r?.source, t[23] = y, t[24] = oe) : oe = t[24];
|
|
627
627
|
let le;
|
|
628
|
-
return t[25] !==
|
|
628
|
+
return t[25] !== z || t[26] !== ct || t[27] !== ot || t[28] !== I || t[29] !== T || t[30] !== X || t[31] !== ft || t[32] !== xt || t[33] !== R || t[34] !== Vt || t[35] !== l || t[36] !== ie || t[37] !== se || t[38] !== re || t[39] !== oe || t[40] !== pt || t[41] !== y ? (le = /* @__PURE__ */ i.jsxs(z, { className: Vt, style: l, id: I, ref: k, "aria-label": ct, backgroundColor: ot, theme: pt, language: X, minHeight: ft, width: y, height: T, relativeHeight: R, padding: xt, children: [
|
|
629
629
|
ie,
|
|
630
630
|
se,
|
|
631
631
|
re,
|
|
632
632
|
oe
|
|
633
|
-
] }), t[25] =
|
|
633
|
+
] }), t[25] = z, t[26] = ct, t[27] = ot, t[28] = I, t[29] = T, t[30] = X, t[31] = ft, t[32] = xt, t[33] = R, t[34] = Vt, t[35] = l, t[36] = ie, t[37] = se, t[38] = re, t[39] = oe, t[40] = pt, t[41] = y, t[42] = le) : le = t[42], le;
|
|
634
634
|
}
|
|
635
635
|
function vi(e) {
|
|
636
636
|
return Math.min(...e.size.filter(wi));
|
|
@@ -692,82 +692,82 @@ function Pi(e, t) {
|
|
|
692
692
|
function Fi(e) {
|
|
693
693
|
const t = xe.c(125), {
|
|
694
694
|
data: m,
|
|
695
|
-
barColor:
|
|
695
|
+
barColor: D,
|
|
696
696
|
suffix: Xt,
|
|
697
697
|
prefix: St,
|
|
698
698
|
barPadding: gt,
|
|
699
|
-
showValues:
|
|
700
|
-
showTicks:
|
|
701
|
-
truncateBy:
|
|
702
|
-
width:
|
|
703
|
-
height:
|
|
704
|
-
colorDomain:
|
|
705
|
-
topMargin:
|
|
706
|
-
bottomMargin:
|
|
707
|
-
leftMargin:
|
|
708
|
-
rightMargin:
|
|
709
|
-
showLabels:
|
|
710
|
-
tooltip:
|
|
711
|
-
onSeriesMouseOver:
|
|
699
|
+
showValues: tt,
|
|
700
|
+
showTicks: ut,
|
|
701
|
+
truncateBy: C,
|
|
702
|
+
width: T,
|
|
703
|
+
height: y,
|
|
704
|
+
colorDomain: P,
|
|
705
|
+
topMargin: Dt,
|
|
706
|
+
bottomMargin: rt,
|
|
707
|
+
leftMargin: zt,
|
|
708
|
+
rightMargin: F,
|
|
709
|
+
showLabels: et,
|
|
710
|
+
tooltip: dt,
|
|
711
|
+
onSeriesMouseOver: xt,
|
|
712
712
|
refValues: Tt,
|
|
713
713
|
selectedColor: w,
|
|
714
|
-
highlightedDataPoints:
|
|
715
|
-
maxValue:
|
|
716
|
-
minValue:
|
|
717
|
-
onSeriesMouseClick:
|
|
718
|
-
labelOrder:
|
|
719
|
-
rtl:
|
|
720
|
-
maxBarThickness:
|
|
721
|
-
minBarThickness:
|
|
722
|
-
resetSelectionOnDoubleClick:
|
|
714
|
+
highlightedDataPoints: it,
|
|
715
|
+
maxValue: W,
|
|
716
|
+
minValue: Y,
|
|
717
|
+
onSeriesMouseClick: K,
|
|
718
|
+
labelOrder: R,
|
|
719
|
+
rtl: H,
|
|
720
|
+
maxBarThickness: O,
|
|
721
|
+
minBarThickness: q,
|
|
722
|
+
resetSelectionOnDoubleClick: I,
|
|
723
723
|
detailsOnClick: a,
|
|
724
724
|
barAxisTitle: s,
|
|
725
725
|
valueColor: n,
|
|
726
726
|
noOfTicks: u,
|
|
727
727
|
styles: d,
|
|
728
|
-
classNames:
|
|
728
|
+
classNames: f,
|
|
729
729
|
animate: x,
|
|
730
730
|
dimmedOpacity: $,
|
|
731
|
-
precision:
|
|
732
|
-
customLayers:
|
|
733
|
-
naLabel:
|
|
734
|
-
} = e, Ft =
|
|
731
|
+
precision: Q,
|
|
732
|
+
customLayers: U,
|
|
733
|
+
naLabel: ct
|
|
734
|
+
} = e, Ft = Dt === void 0 ? 25 : Dt, Yt = rt === void 0 ? 10 : rt, E = zt === void 0 ? 100 : zt, yt = F === void 0 ? 40 : F, Bt = de(null);
|
|
735
735
|
let r;
|
|
736
736
|
t[0] !== x.amount || t[1] !== x.once ? (r = {
|
|
737
737
|
once: x.once,
|
|
738
738
|
amount: x.amount
|
|
739
739
|
}, t[0] = x.amount, t[1] = x.once, t[2] = r) : r = t[2];
|
|
740
|
-
const c = Ve(Bt, r), [
|
|
741
|
-
let
|
|
742
|
-
t[3] !== Yt || t[4] !==
|
|
743
|
-
top:
|
|
740
|
+
const c = Ve(Bt, r), [B, h] = Wt(void 0), [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), mt = s ? Ft + 25 : Ft;
|
|
741
|
+
let L;
|
|
742
|
+
t[3] !== Yt || t[4] !== E || t[5] !== yt || t[6] !== mt ? (L = {
|
|
743
|
+
top: mt,
|
|
744
744
|
bottom: Yt,
|
|
745
|
-
left:
|
|
745
|
+
left: E,
|
|
746
746
|
right: yt
|
|
747
|
-
}, t[3] = Yt, t[4] =
|
|
748
|
-
const
|
|
749
|
-
let
|
|
750
|
-
if (t[8] !== x || t[9] !== s || t[10] !==
|
|
751
|
-
let
|
|
752
|
-
t[75] !==
|
|
747
|
+
}, t[3] = Yt, t[4] = E, t[5] = yt, t[6] = mt, t[7] = L) : L = t[7];
|
|
748
|
+
const g = L, Z = T - g.left - g.right, _ = y - g.top - g.bottom;
|
|
749
|
+
let J, j, ht, kt, ot, Ct, G, nt, X, ft, pt, vt, wt, lt;
|
|
750
|
+
if (t[8] !== x || t[9] !== s || t[10] !== D || t[11] !== gt || t[12] !== f?.graphObjectValues || t[13] !== f?.xAxis?.gridLines || t[14] !== f?.xAxis?.labels || t[15] !== f?.xAxis?.title || t[16] !== f?.yAxis?.axis || t[17] !== f?.yAxis?.labels || t[18] !== P || t[19] !== U || t[20] !== m || t[21] !== a || t[22] !== $ || t[23] !== _ || t[24] !== Z || t[25] !== y || t[26] !== it || t[27] !== c || t[28] !== R || t[29] !== g.bottom || t[30] !== g.left || t[31] !== g.top || t[32] !== O || t[33] !== W || t[34] !== q || t[35] !== Y || t[36] !== V || t[37] !== ct || t[38] !== u || t[39] !== K || t[40] !== xt || t[41] !== Q || t[42] !== St || t[43] !== Tt || t[44] !== I || t[45] !== H || t[46] !== w || t[47] !== et || t[48] !== ut || t[49] !== tt || t[50] !== d?.graphObjectValues || t[51] !== d?.xAxis?.gridLines || t[52] !== d?.xAxis?.labels || t[53] !== d?.xAxis?.title || t[54] !== d?.yAxis?.axis || t[55] !== d?.yAxis?.labels || t[56] !== Xt || t[57] !== Ft || t[58] !== C || t[59] !== n || t[60] !== T) {
|
|
751
|
+
let M;
|
|
752
|
+
t[75] !== R ? (M = (o, p) => ({
|
|
753
753
|
...o,
|
|
754
|
-
id:
|
|
755
|
-
}), t[75] =
|
|
756
|
-
const
|
|
757
|
-
|
|
754
|
+
id: R ? `${o.label}` : `${p}`
|
|
755
|
+
}), t[75] = R, t[76] = M) : M = t[76];
|
|
756
|
+
const qt = m.map(M), Nt = Le().domain([Y, W]).range([0, Z]).nice(), Kt = R || qt.map(Ki), jt = ge().domain(Kt).range([0, q ? Math.max(_, q * Kt.length) : O ? Math.min(_, O * Kt.length) : _]).paddingInner(gt), Qt = Nt.ticks(u);
|
|
757
|
+
j = Zt.svg, G = Bt, nt = `${T}px`, X = `${y}px`, ft = `0 0 ${T} ${y}`, pt = "ltr", ht = `translate(${g.left},${g.top})`, kt = ut ? /* @__PURE__ */ i.jsx(Fe, { values: Qt.filter(Ji), x: Qt.filter(Ui).map((o) => Nt(o)), y1: 0 - Ft, y2: _ + g.bottom, styles: {
|
|
758
758
|
gridLines: d?.xAxis?.gridLines,
|
|
759
759
|
labels: d?.xAxis?.labels
|
|
760
760
|
}, classNames: {
|
|
761
|
-
gridLines:
|
|
762
|
-
labels:
|
|
763
|
-
}, suffix: Xt, prefix: St, labelType: "secondary", showGridLines: !0, precision:
|
|
764
|
-
const Ut =
|
|
765
|
-
t[77] !== s || t[78] !== Ut || t[79] !== Ht || t[80] !==
|
|
761
|
+
gridLines: f?.xAxis?.gridLines,
|
|
762
|
+
labels: f?.xAxis?.labels
|
|
763
|
+
}, suffix: Xt, prefix: St, labelType: "secondary", showGridLines: !0, precision: Q }) : null;
|
|
764
|
+
const Ut = Z / 2, Ht = 0 - g.top + 15, Mt = d?.xAxis?.title, Rt = f?.xAxis?.title;
|
|
765
|
+
t[77] !== s || t[78] !== Ut || t[79] !== Ht || t[80] !== Mt || t[81] !== Rt ? (ot = /* @__PURE__ */ i.jsx(Ce, { x: Ut, y: Ht, style: Mt, className: Rt, text: s }), t[77] = s, t[78] = Ut, t[79] = Ht, t[80] = Mt, t[81] = Rt, t[82] = ot) : ot = t[82], t[83] !== U ? (Ct = U.filter(qi).map(Ri), t[83] = U, t[84] = Ct) : Ct = t[84], J = je, vt = qt.map((o) => _t(jt(o.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", variants: {
|
|
766
766
|
initial: {
|
|
767
|
-
opacity: w ? o.color &&
|
|
767
|
+
opacity: w ? o.color && D[P.indexOf(o.color)] === w ? 1 : $ : it.length !== 0 ? it.indexOf(o.label) !== -1 ? 0.85 : $ : 0.85
|
|
768
768
|
},
|
|
769
769
|
whileInView: {
|
|
770
|
-
opacity: w ? o.color &&
|
|
770
|
+
opacity: w ? o.color && D[P.indexOf(o.color)] === w ? 1 : $ : it.length !== 0 ? it.indexOf(o.label) !== -1 ? 0.85 : $ : 0.85,
|
|
771
771
|
transition: {
|
|
772
772
|
duration: x.duration
|
|
773
773
|
}
|
|
@@ -777,54 +777,54 @@ function Fi(e) {
|
|
|
777
777
|
transition: {
|
|
778
778
|
duration: x.duration
|
|
779
779
|
}
|
|
780
|
-
}, onMouseEnter: (
|
|
781
|
-
h(o),
|
|
780
|
+
}, onMouseEnter: (p) => {
|
|
781
|
+
h(o), st(p.clientY), Lt(p.clientX), xt?.(o);
|
|
782
782
|
}, onClick: () => {
|
|
783
|
-
(
|
|
784
|
-
}, onMouseMove: (
|
|
785
|
-
h(o),
|
|
783
|
+
(K || a) && (Ae(V, o) && I ? (S(void 0), K?.(void 0)) : (S(o), K?.(o)));
|
|
784
|
+
}, onMouseMove: (p) => {
|
|
785
|
+
h(o), st(p.clientY), Lt(p.clientX);
|
|
786
786
|
}, onMouseLeave: () => {
|
|
787
|
-
h(void 0),
|
|
787
|
+
h(void 0), Lt(void 0), st(void 0), xt?.(void 0);
|
|
788
788
|
}, children: [
|
|
789
789
|
o.size ? /* @__PURE__ */ i.jsx(Zt.rect, { variants: {
|
|
790
790
|
initial: {
|
|
791
791
|
width: 0,
|
|
792
|
-
x:
|
|
793
|
-
y:
|
|
794
|
-
fill: m.filter(Wi).length === 0 ?
|
|
792
|
+
x: Nt(0),
|
|
793
|
+
y: jt(`${o.id}`),
|
|
794
|
+
fill: m.filter(Wi).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray
|
|
795
795
|
},
|
|
796
796
|
whileInView: {
|
|
797
|
-
width: o.size >= 0 ?
|
|
798
|
-
x: o.size >= 0 ?
|
|
799
|
-
y:
|
|
800
|
-
fill: m.filter(Gi).length === 0 ?
|
|
797
|
+
width: o.size >= 0 ? Nt(o.size) - Nt(0) : Nt(0) - Nt(o.size),
|
|
798
|
+
x: o.size >= 0 ? Nt(0) : Nt(o.size),
|
|
799
|
+
y: jt(`${o.id}`),
|
|
800
|
+
fill: m.filter(Gi).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray,
|
|
801
801
|
transition: {
|
|
802
802
|
duration: x.duration
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
805
|
}, initial: "initial", animate: c ? "whileInView" : "initial", exit: {
|
|
806
806
|
width: 0,
|
|
807
|
-
x:
|
|
807
|
+
x: Nt(0),
|
|
808
808
|
transition: {
|
|
809
809
|
duration: x.duration
|
|
810
810
|
}
|
|
811
|
-
}, height:
|
|
812
|
-
|
|
813
|
-
|
|
811
|
+
}, height: jt.bandwidth() }) : null,
|
|
812
|
+
et ? /* @__PURE__ */ i.jsx(Pe, { value: `${o.label}`.length < C ? `${o.label}` : `${`${o.label}`.substring(0, C)}...`, y: jt(o.id) || 0, x: (o.size || 0) < 0 ? Nt(0) : 0 - g.left, width: (o.size || 0) < 0 ? T - Nt(0) : Nt(0) + g.left, height: jt.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: f?.yAxis?.labels, animate: x, isInView: c }) : null,
|
|
813
|
+
tt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
|
|
814
814
|
textAnchor: o.size && o.size < 0 ? "end" : "start",
|
|
815
815
|
...d?.graphObjectValues || {}
|
|
816
|
-
}, className: pe("graph-value text-sm", !n &&
|
|
816
|
+
}, className: pe("graph-value text-sm", !n && D.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", f?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
817
817
|
initial: {
|
|
818
|
-
x:
|
|
819
|
-
y:
|
|
818
|
+
x: Nt(0),
|
|
819
|
+
y: jt(`${o.id}`) + jt.bandwidth() / 2,
|
|
820
820
|
opacity: 0,
|
|
821
|
-
fill: n || (m.filter(Ei).length === 0 ?
|
|
821
|
+
fill: n || (m.filter(Ei).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray)
|
|
822
822
|
},
|
|
823
823
|
whileInView: {
|
|
824
|
-
x: o.size ?
|
|
824
|
+
x: o.size ? Nt(o.size) : Nt(0),
|
|
825
825
|
opacity: 1,
|
|
826
|
-
y:
|
|
827
|
-
fill: n || (m.filter(Yi).length === 0 ?
|
|
826
|
+
y: jt(`${o.id}`) + jt.bandwidth() / 2,
|
|
827
|
+
fill: n || (m.filter(Yi).length === 0 ? D[0] : o.color ? D[P.indexOf(o.color)] : ce.gray),
|
|
828
828
|
transition: {
|
|
829
829
|
duration: x.duration
|
|
830
830
|
}
|
|
@@ -834,52 +834,52 @@ function Fi(e) {
|
|
|
834
834
|
transition: {
|
|
835
835
|
duration: x.duration
|
|
836
836
|
}
|
|
837
|
-
}, children: ue(o.size,
|
|
837
|
+
}, children: ue(o.size, ct, Q, St, Xt) }) : null
|
|
838
838
|
] }, o.label));
|
|
839
|
-
const Jt =
|
|
840
|
-
let
|
|
841
|
-
t[85] !== Jt ? (
|
|
839
|
+
const Jt = f?.yAxis?.axis;
|
|
840
|
+
let N;
|
|
841
|
+
t[85] !== Jt ? (N = {
|
|
842
842
|
axis: Jt
|
|
843
|
-
}, t[85] = Jt, t[86] =
|
|
843
|
+
}, t[85] = Jt, t[86] = N) : N = t[86];
|
|
844
844
|
const v = d?.yAxis?.axis;
|
|
845
|
-
let
|
|
846
|
-
t[87] !== v ? (
|
|
845
|
+
let k;
|
|
846
|
+
t[87] !== v ? (k = {
|
|
847
847
|
axis: v
|
|
848
|
-
}, t[87] = v, t[88] =
|
|
848
|
+
}, t[87] = v, t[88] = k) : k = t[88], wt = /* @__PURE__ */ i.jsx(ke, { x1: Nt(Y < 0 ? 0 : Y), x2: Nt(Y < 0 ? 0 : Y), y1: -2.5, y2: _ + g.bottom, classNames: N, styles: k }), lt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((o, p) => /* @__PURE__ */ i.jsx(He, { text: o.text, color: o.color, x: Nt(o.value), y1: 0 - g.top, y2: _ + g.bottom, textSide: Nt(o.value) > Z * 0.75 || H ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: x, isInView: c }, p)) }) : null, t[8] = x, t[9] = s, t[10] = D, t[11] = gt, t[12] = f?.graphObjectValues, t[13] = f?.xAxis?.gridLines, t[14] = f?.xAxis?.labels, t[15] = f?.xAxis?.title, t[16] = f?.yAxis?.axis, t[17] = f?.yAxis?.labels, t[18] = P, t[19] = U, t[20] = m, t[21] = a, t[22] = $, t[23] = _, t[24] = Z, t[25] = y, t[26] = it, t[27] = c, t[28] = R, t[29] = g.bottom, t[30] = g.left, t[31] = g.top, t[32] = O, t[33] = W, t[34] = q, t[35] = Y, t[36] = V, t[37] = ct, t[38] = u, t[39] = K, t[40] = xt, t[41] = Q, t[42] = St, t[43] = Tt, t[44] = I, t[45] = H, t[46] = w, t[47] = et, t[48] = ut, t[49] = tt, t[50] = d?.graphObjectValues, t[51] = d?.xAxis?.gridLines, t[52] = d?.xAxis?.labels, t[53] = d?.xAxis?.title, t[54] = d?.yAxis?.axis, t[55] = d?.yAxis?.labels, t[56] = Xt, t[57] = Ft, t[58] = C, t[59] = n, t[60] = T, t[61] = J, t[62] = j, t[63] = ht, t[64] = kt, t[65] = ot, t[66] = Ct, t[67] = G, t[68] = nt, t[69] = X, t[70] = ft, t[71] = pt, t[72] = vt, t[73] = wt, t[74] = lt;
|
|
849
849
|
} else
|
|
850
|
-
|
|
850
|
+
J = t[61], j = t[62], ht = t[63], kt = t[64], ot = t[65], Ct = t[66], G = t[67], nt = t[68], X = t[69], ft = t[70], pt = t[71], vt = t[72], wt = t[73], lt = t[74];
|
|
851
851
|
let At;
|
|
852
|
-
t[89] !==
|
|
852
|
+
t[89] !== J || t[90] !== vt || t[91] !== wt || t[92] !== lt ? (At = /* @__PURE__ */ i.jsxs(J, { children: [
|
|
853
853
|
vt,
|
|
854
854
|
wt,
|
|
855
|
-
|
|
856
|
-
] }), t[89] =
|
|
855
|
+
lt
|
|
856
|
+
] }), t[89] = J, t[90] = vt, t[91] = wt, t[92] = lt, t[93] = At) : At = t[93];
|
|
857
857
|
let $t;
|
|
858
|
-
t[94] !==
|
|
858
|
+
t[94] !== U ? ($t = U.filter(Xi).map(Hi), t[94] = U, t[95] = $t) : $t = t[95];
|
|
859
859
|
let Ot;
|
|
860
|
-
t[96] !==
|
|
860
|
+
t[96] !== ht || t[97] !== kt || t[98] !== ot || t[99] !== Ct || t[100] !== At || t[101] !== $t ? (Ot = /* @__PURE__ */ i.jsxs("g", { transform: ht, children: [
|
|
861
|
+
kt,
|
|
862
|
+
ot,
|
|
861
863
|
Ct,
|
|
862
|
-
nt,
|
|
863
|
-
Vt,
|
|
864
864
|
At,
|
|
865
865
|
$t
|
|
866
|
-
] }), t[96] =
|
|
866
|
+
] }), t[96] = ht, t[97] = kt, t[98] = ot, t[99] = Ct, t[100] = At, t[101] = $t, t[102] = Ot) : Ot = t[102];
|
|
867
867
|
let b;
|
|
868
|
-
t[103] !==
|
|
869
|
-
let
|
|
870
|
-
t[111] !==
|
|
868
|
+
t[103] !== j || t[104] !== G || t[105] !== nt || t[106] !== X || t[107] !== ft || t[108] !== pt || t[109] !== Ot ? (b = /* @__PURE__ */ i.jsx(j, { ref: G, width: nt, height: X, viewBox: ft, direction: pt, children: Ot }), t[103] = j, t[104] = G, t[105] = nt, t[106] = X, t[107] = ft, t[108] = pt, t[109] = Ot, t[110] = b) : b = t[110];
|
|
869
|
+
let at;
|
|
870
|
+
t[111] !== f?.tooltip || t[112] !== A || t[113] !== bt || t[114] !== B || t[115] !== d?.tooltip || t[116] !== dt ? (at = B && dt && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: B, body: dt, xPos: A, yPos: bt, backgroundStyle: d?.tooltip, className: f?.tooltip }) : null, t[111] = f?.tooltip, t[112] = A, t[113] = bt, t[114] = B, t[115] = d?.tooltip, t[116] = dt, t[117] = at) : at = t[117];
|
|
871
871
|
let It;
|
|
872
|
-
t[118] !== a || t[119] !==
|
|
873
|
-
|
|
872
|
+
t[118] !== a || t[119] !== V ? (It = a && V !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: V !== void 0, onClose: () => {
|
|
873
|
+
S(void 0);
|
|
874
874
|
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof a == "string" ? {
|
|
875
|
-
__html: Me(a,
|
|
876
|
-
} : void 0, children: typeof a == "function" ? a(
|
|
875
|
+
__html: Me(a, V)
|
|
876
|
+
} : void 0, children: typeof a == "function" ? a(V) : null }) }) : null, t[118] = a, t[119] = V, t[120] = It) : It = t[120];
|
|
877
877
|
let Et;
|
|
878
|
-
return t[121] !== b || t[122] !==
|
|
878
|
+
return t[121] !== b || t[122] !== at || t[123] !== It ? (Et = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
879
879
|
b,
|
|
880
|
-
|
|
880
|
+
at,
|
|
881
881
|
It
|
|
882
|
-
] }), t[121] = b, t[122] =
|
|
882
|
+
] }), t[121] = b, t[122] = at, t[123] = It, t[124] = Et) : Et = t[124], Et;
|
|
883
883
|
}
|
|
884
884
|
function Hi(e) {
|
|
885
885
|
return e.layer;
|
|
@@ -917,102 +917,102 @@ function Ki(e) {
|
|
|
917
917
|
function Qi(e) {
|
|
918
918
|
const t = xe.c(133), {
|
|
919
919
|
leftMargin: m,
|
|
920
|
-
rightMargin:
|
|
920
|
+
rightMargin: D,
|
|
921
921
|
topMargin: Xt,
|
|
922
922
|
bottomMargin: St,
|
|
923
923
|
data: gt,
|
|
924
|
-
width:
|
|
925
|
-
height:
|
|
926
|
-
barColor:
|
|
927
|
-
suffix:
|
|
928
|
-
prefix:
|
|
929
|
-
barPadding:
|
|
930
|
-
showLabels:
|
|
931
|
-
showValues:
|
|
932
|
-
showTicks:
|
|
933
|
-
colorDomain:
|
|
934
|
-
truncateBy:
|
|
935
|
-
tooltip:
|
|
936
|
-
onSeriesMouseOver:
|
|
924
|
+
width: tt,
|
|
925
|
+
height: ut,
|
|
926
|
+
barColor: C,
|
|
927
|
+
suffix: T,
|
|
928
|
+
prefix: y,
|
|
929
|
+
barPadding: P,
|
|
930
|
+
showLabels: Dt,
|
|
931
|
+
showValues: rt,
|
|
932
|
+
showTicks: zt,
|
|
933
|
+
colorDomain: F,
|
|
934
|
+
truncateBy: et,
|
|
935
|
+
tooltip: dt,
|
|
936
|
+
onSeriesMouseOver: xt,
|
|
937
937
|
refValues: Tt,
|
|
938
938
|
selectedColor: w,
|
|
939
|
-
maxValue:
|
|
940
|
-
minValue:
|
|
941
|
-
highlightedDataPoints:
|
|
942
|
-
onSeriesMouseClick:
|
|
943
|
-
labelOrder:
|
|
944
|
-
maxBarThickness:
|
|
945
|
-
minBarThickness:
|
|
946
|
-
resetSelectionOnDoubleClick:
|
|
947
|
-
detailsOnClick:
|
|
939
|
+
maxValue: it,
|
|
940
|
+
minValue: W,
|
|
941
|
+
highlightedDataPoints: Y,
|
|
942
|
+
onSeriesMouseClick: K,
|
|
943
|
+
labelOrder: R,
|
|
944
|
+
maxBarThickness: H,
|
|
945
|
+
minBarThickness: O,
|
|
946
|
+
resetSelectionOnDoubleClick: q,
|
|
947
|
+
detailsOnClick: I,
|
|
948
948
|
barAxisTitle: a,
|
|
949
949
|
valueColor: s,
|
|
950
950
|
noOfTicks: n,
|
|
951
951
|
styles: u,
|
|
952
952
|
classNames: d,
|
|
953
|
-
dimmedOpacity:
|
|
953
|
+
dimmedOpacity: f,
|
|
954
954
|
animate: x,
|
|
955
955
|
precision: $,
|
|
956
|
-
customLayers:
|
|
957
|
-
naLabel:
|
|
958
|
-
} = e,
|
|
956
|
+
customLayers: Q,
|
|
957
|
+
naLabel: U
|
|
958
|
+
} = e, ct = m === void 0 ? 20 : m, Ft = D === void 0 ? 20 : D, Yt = Xt === void 0 ? 20 : Xt, E = St === void 0 ? 25 : St, yt = de(null);
|
|
959
959
|
let Bt;
|
|
960
960
|
t[0] !== x.amount || t[1] !== x.once ? (Bt = {
|
|
961
961
|
once: x.once,
|
|
962
962
|
amount: x.amount
|
|
963
963
|
}, t[0] = x.amount, t[1] = x.once, t[2] = Bt) : Bt = t[2];
|
|
964
|
-
const r = Ve(yt, Bt), c = a ?
|
|
965
|
-
let
|
|
966
|
-
t[3] !==
|
|
964
|
+
const r = Ve(yt, Bt), c = a ? ct + 30 : ct;
|
|
965
|
+
let B;
|
|
966
|
+
t[3] !== E || t[4] !== Ft || t[5] !== c || t[6] !== Yt ? (B = {
|
|
967
967
|
top: Yt,
|
|
968
|
-
bottom:
|
|
968
|
+
bottom: E,
|
|
969
969
|
left: c,
|
|
970
970
|
right: Ft
|
|
971
|
-
}, t[3] =
|
|
972
|
-
const h =
|
|
973
|
-
let
|
|
974
|
-
if (t[8] !== x || t[9] !== a || t[10] !==
|
|
975
|
-
const Et = Le().domain([
|
|
976
|
-
let
|
|
977
|
-
t[75] !==
|
|
971
|
+
}, t[3] = E, t[4] = Ft, t[5] = c, t[6] = Yt, t[7] = B) : B = t[7];
|
|
972
|
+
const h = B, [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), [mt, L] = Wt(void 0), g = tt - h.left - h.right, Z = ut - h.top - h.bottom;
|
|
973
|
+
let _, J, j, ht, kt, ot, Ct, G, nt, X, ft, pt, vt, wt;
|
|
974
|
+
if (t[8] !== x || t[9] !== a || t[10] !== C || t[11] !== P || t[12] !== d?.graphObjectValues || t[13] !== d?.xAxis?.axis || t[14] !== d?.xAxis?.labels || t[15] !== d?.yAxis?.gridLines || t[16] !== d?.yAxis?.labels || t[17] !== d?.yAxis?.title || t[18] !== F || t[19] !== Q || t[20] !== gt || t[21] !== I || t[22] !== f || t[23] !== Z || t[24] !== g || t[25] !== ut || t[26] !== Y || t[27] !== r || t[28] !== R || t[29] !== ct || t[30] !== h.bottom || t[31] !== h.left || t[32] !== h.right || t[33] !== h.top || t[34] !== H || t[35] !== it || t[36] !== O || t[37] !== W || t[38] !== A || t[39] !== U || t[40] !== n || t[41] !== K || t[42] !== xt || t[43] !== $ || t[44] !== y || t[45] !== Tt || t[46] !== q || t[47] !== w || t[48] !== Dt || t[49] !== zt || t[50] !== rt || t[51] !== u?.graphObjectValues || t[52] !== u?.xAxis?.axis || t[53] !== u?.xAxis?.labels || t[54] !== u?.yAxis?.gridLines || t[55] !== u?.yAxis?.labels || t[56] !== u?.yAxis?.title || t[57] !== T || t[58] !== et || t[59] !== s || t[60] !== tt) {
|
|
975
|
+
const Et = Le().domain([W, it]).range([Z, 0]).nice();
|
|
976
|
+
let M;
|
|
977
|
+
t[75] !== R ? (M = (l, ie) => ({
|
|
978
978
|
...l,
|
|
979
|
-
id:
|
|
980
|
-
}), t[75] =
|
|
981
|
-
const
|
|
982
|
-
|
|
983
|
-
const Qt = Et(
|
|
984
|
-
let
|
|
985
|
-
t[77] !==
|
|
986
|
-
const
|
|
987
|
-
let
|
|
988
|
-
t[83] !==
|
|
989
|
-
axis:
|
|
979
|
+
id: R ? `${l.label}` : `${ie}`
|
|
980
|
+
}), t[75] = R, t[76] = M) : M = t[76];
|
|
981
|
+
const qt = gt.map(M), Nt = R || qt.map(rs), Kt = ge().domain(Nt).range([0, O ? Math.max(g, O * Nt.length) : H ? Math.min(g, H * Nt.length) : g]).paddingInner(P), jt = Et.ticks(n);
|
|
982
|
+
J = Zt.svg, Ct = yt, G = `${tt}px`, nt = `${ut}px`, X = `0 0 ${tt} ${ut}`, ft = "ltr", wt = `translate(${h.left},${h.top})`;
|
|
983
|
+
const Qt = Et(W < 0 ? 0 : W), Ut = Et(W < 0 ? 0 : W), Ht = W < 0 ? 0 : W;
|
|
984
|
+
let Mt;
|
|
985
|
+
t[77] !== U || t[78] !== $ || t[79] !== y || t[80] !== T || t[81] !== Ht ? (Mt = ue(Ht, U, $, y, T), t[77] = U, t[78] = $, t[79] = y, t[80] = T, t[81] = Ht, t[82] = Mt) : Mt = t[82];
|
|
986
|
+
const Rt = d?.xAxis?.axis, Jt = d?.yAxis?.labels;
|
|
987
|
+
let N;
|
|
988
|
+
t[83] !== Rt || t[84] !== Jt ? (N = {
|
|
989
|
+
axis: Rt,
|
|
990
990
|
label: Jt
|
|
991
|
-
}, t[83] =
|
|
992
|
-
const v = u?.xAxis?.axis,
|
|
991
|
+
}, t[83] = Rt, t[84] = Jt, t[85] = N) : N = t[85];
|
|
992
|
+
const v = u?.xAxis?.axis, k = u?.yAxis?.labels;
|
|
993
993
|
let o;
|
|
994
|
-
t[86] !== v || t[87] !==
|
|
994
|
+
t[86] !== v || t[87] !== k ? (o = {
|
|
995
995
|
axis: v,
|
|
996
|
-
label:
|
|
997
|
-
}, t[86] = v, t[87] =
|
|
998
|
-
x: 0 -
|
|
996
|
+
label: k
|
|
997
|
+
}, t[86] = v, t[87] = k, t[88] = o) : o = t[88], j = /* @__PURE__ */ i.jsx(ke, { y1: Qt, y2: Ut, x1: 0 - ct, x2: g + h.right, label: Mt, labelPos: {
|
|
998
|
+
x: 0 - ct,
|
|
999
999
|
dx: 0,
|
|
1000
|
-
dy:
|
|
1001
|
-
y: Et(
|
|
1002
|
-
}, classNames:
|
|
1000
|
+
dy: it < 0 ? "1em" : -5,
|
|
1001
|
+
y: Et(W < 0 ? 0 : W)
|
|
1002
|
+
}, classNames: N, styles: o }), ht = zt ? /* @__PURE__ */ i.jsx(Ye, { values: jt.filter(as), y: jt.filter(ls).map((l) => Et(l)), x1: 0 - ct, x2: g + h.right, styles: {
|
|
1003
1003
|
gridLines: u?.yAxis?.gridLines,
|
|
1004
1004
|
labels: u?.yAxis?.labels
|
|
1005
1005
|
}, classNames: {
|
|
1006
1006
|
gridLines: d?.yAxis?.gridLines,
|
|
1007
1007
|
labels: d?.yAxis?.labels
|
|
1008
|
-
}, suffix:
|
|
1009
|
-
const
|
|
1010
|
-
t[89] !== a || t[90] !==
|
|
1008
|
+
}, suffix: T, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: $ }) : null;
|
|
1009
|
+
const p = 0 - ct - 15, ee = Z / 2, z = u?.yAxis?.title, Vt = d?.yAxis?.title;
|
|
1010
|
+
t[89] !== a || t[90] !== p || t[91] !== ee || t[92] !== z || t[93] !== Vt ? (kt = /* @__PURE__ */ i.jsx(Ce, { x: p, y: ee, style: z, className: Vt, text: a, rotate90: !0 }), t[89] = a, t[90] = p, t[91] = ee, t[92] = z, t[93] = Vt, t[94] = kt) : kt = t[94], t[95] !== Q ? (ot = Q.filter(ns).map(os), t[95] = Q, t[96] = ot) : ot = t[96], _ = je, pt = qt.map((l, ie) => _t(Kt(l.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
|
|
1011
1011
|
initial: {
|
|
1012
|
-
opacity: w ? l.color &&
|
|
1012
|
+
opacity: w ? l.color && C[F.indexOf(l.color)] === w ? 1 : f : Y.length !== 0 ? Y.indexOf(l.label) !== -1 ? 0.85 : f : 0.85
|
|
1013
1013
|
},
|
|
1014
1014
|
whileInView: {
|
|
1015
|
-
opacity: w ? l.color &&
|
|
1015
|
+
opacity: w ? l.color && C[F.indexOf(l.color)] === w ? 1 : f : Y.length !== 0 ? Y.indexOf(l.label) !== -1 ? 0.85 : f : 0.85,
|
|
1016
1016
|
transition: {
|
|
1017
1017
|
duration: x.duration
|
|
1018
1018
|
}
|
|
@@ -1023,26 +1023,26 @@ function Qi(e) {
|
|
|
1023
1023
|
duration: x.duration
|
|
1024
1024
|
}
|
|
1025
1025
|
}, onMouseEnter: (se) => {
|
|
1026
|
-
|
|
1026
|
+
S(l), L(se.clientY), st(se.clientX), xt?.(l);
|
|
1027
1027
|
}, onClick: () => {
|
|
1028
|
-
(
|
|
1028
|
+
(K || I) && (Ae(A, l) && q ? (Lt(void 0), K?.(void 0)) : (Lt(l), K?.(l)));
|
|
1029
1029
|
}, onMouseMove: (se) => {
|
|
1030
|
-
|
|
1030
|
+
S(l), L(se.clientY), st(se.clientX);
|
|
1031
1031
|
}, onMouseLeave: () => {
|
|
1032
|
-
|
|
1032
|
+
S(void 0), st(void 0), L(void 0), xt?.(void 0);
|
|
1033
1033
|
}, children: [
|
|
1034
1034
|
l.size ? /* @__PURE__ */ i.jsx(Zt.rect, { width: Kt.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
|
|
1035
1035
|
initial: {
|
|
1036
1036
|
height: 0,
|
|
1037
1037
|
x: Kt(`${l.id}`),
|
|
1038
1038
|
y: Et(0),
|
|
1039
|
-
fill: gt.filter(ss).length === 0 ?
|
|
1039
|
+
fill: gt.filter(ss).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray
|
|
1040
1040
|
},
|
|
1041
1041
|
whileInView: {
|
|
1042
1042
|
height: l.size ? Math.abs(Et(l.size) - Et(0)) : 0,
|
|
1043
1043
|
y: l.size && l.size > 0 ? Et(l.size) : Et(0),
|
|
1044
1044
|
x: Kt(`${l.id}`),
|
|
1045
|
-
fill: gt.filter(is).length === 0 ?
|
|
1045
|
+
fill: gt.filter(is).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray,
|
|
1046
1046
|
transition: {
|
|
1047
1047
|
duration: x.duration
|
|
1048
1048
|
}
|
|
@@ -1054,21 +1054,21 @@ function Qi(e) {
|
|
|
1054
1054
|
duration: x.duration
|
|
1055
1055
|
}
|
|
1056
1056
|
} }) : null,
|
|
1057
|
-
|
|
1058
|
-
|
|
1057
|
+
Dt ? /* @__PURE__ */ i.jsx(Ee, { value: `${l.label}`.length < et ? `${l.label}` : `${`${l.label}`.substring(0, et)}...`, y: (l.size || 0) < 0 ? 0 : Et(0) + 5, x: Kt(`${l.id}`), width: Kt.bandwidth(), height: (l.size || 0) < 0 ? Et(0) - 5 : h.bottom, style: u?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (l.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
|
|
1058
|
+
rt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
|
|
1059
1059
|
textAnchor: "middle",
|
|
1060
1060
|
...u?.graphObjectValues || {}
|
|
1061
|
-
}, className: pe("graph-value text-sm", !s &&
|
|
1061
|
+
}, className: pe("graph-value text-sm", !s && C.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: l.size ? l.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
1062
1062
|
initial: {
|
|
1063
1063
|
x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
|
|
1064
1064
|
y: Et(0),
|
|
1065
1065
|
opacity: 0,
|
|
1066
|
-
fill: s || (gt.filter(es).length === 0 ?
|
|
1066
|
+
fill: s || (gt.filter(es).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray)
|
|
1067
1067
|
},
|
|
1068
1068
|
whileInView: {
|
|
1069
1069
|
x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
|
|
1070
1070
|
y: Et(l.size || 0),
|
|
1071
|
-
fill: s || (gt.filter(ts).length === 0 ?
|
|
1071
|
+
fill: s || (gt.filter(ts).length === 0 ? C[0] : l.color ? C[F.indexOf(l.color)] : ce.gray),
|
|
1072
1072
|
opacity: 1,
|
|
1073
1073
|
transition: {
|
|
1074
1074
|
duration: x.duration
|
|
@@ -1079,42 +1079,42 @@ function Qi(e) {
|
|
|
1079
1079
|
transition: {
|
|
1080
1080
|
duration: x.duration
|
|
1081
1081
|
}
|
|
1082
|
-
}, children: ue(l.size,
|
|
1083
|
-
] }, l.label)), vt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((l, ie) => /* @__PURE__ */ i.jsx(Xe, { text: l.text, color: l.color, y: Et(l.value), x1: 0 -
|
|
1082
|
+
}, children: ue(l.size, U, $, y, T) }) : null
|
|
1083
|
+
] }, l.label)), vt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((l, ie) => /* @__PURE__ */ i.jsx(Xe, { text: l.text, color: l.color, y: Et(l.value), x1: 0 - ct, x2: g + h.right, classNames: l.classNames, styles: l.styles, animate: x, isInView: r }, ie)) }) : null, t[8] = x, t[9] = a, t[10] = C, t[11] = P, t[12] = d?.graphObjectValues, t[13] = d?.xAxis?.axis, t[14] = d?.xAxis?.labels, t[15] = d?.yAxis?.gridLines, t[16] = d?.yAxis?.labels, t[17] = d?.yAxis?.title, t[18] = F, t[19] = Q, t[20] = gt, t[21] = I, t[22] = f, t[23] = Z, t[24] = g, t[25] = ut, t[26] = Y, t[27] = r, t[28] = R, t[29] = ct, t[30] = h.bottom, t[31] = h.left, t[32] = h.right, t[33] = h.top, t[34] = H, t[35] = it, t[36] = O, t[37] = W, t[38] = A, t[39] = U, t[40] = n, t[41] = K, t[42] = xt, t[43] = $, t[44] = y, t[45] = Tt, t[46] = q, t[47] = w, t[48] = Dt, t[49] = zt, t[50] = rt, t[51] = u?.graphObjectValues, t[52] = u?.xAxis?.axis, t[53] = u?.xAxis?.labels, t[54] = u?.yAxis?.gridLines, t[55] = u?.yAxis?.labels, t[56] = u?.yAxis?.title, t[57] = T, t[58] = et, t[59] = s, t[60] = tt, t[61] = _, t[62] = J, t[63] = j, t[64] = ht, t[65] = kt, t[66] = ot, t[67] = Ct, t[68] = G, t[69] = nt, t[70] = X, t[71] = ft, t[72] = pt, t[73] = vt, t[74] = wt;
|
|
1084
1084
|
} else
|
|
1085
|
-
|
|
1086
|
-
let
|
|
1087
|
-
t[97] !==
|
|
1085
|
+
_ = t[61], J = t[62], j = t[63], ht = t[64], kt = t[65], ot = t[66], Ct = t[67], G = t[68], nt = t[69], X = t[70], ft = t[71], pt = t[72], vt = t[73], wt = t[74];
|
|
1086
|
+
let lt;
|
|
1087
|
+
t[97] !== _ || t[98] !== pt || t[99] !== vt ? (lt = /* @__PURE__ */ i.jsxs(_, { children: [
|
|
1088
1088
|
pt,
|
|
1089
1089
|
vt
|
|
1090
|
-
] }), t[97] =
|
|
1090
|
+
] }), t[97] = _, t[98] = pt, t[99] = vt, t[100] = lt) : lt = t[100];
|
|
1091
1091
|
let At;
|
|
1092
|
-
t[101] !==
|
|
1092
|
+
t[101] !== Q ? (At = Q.filter(_i).map(Zi), t[101] = Q, t[102] = At) : At = t[102];
|
|
1093
1093
|
let $t;
|
|
1094
|
-
t[103] !==
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1094
|
+
t[103] !== j || t[104] !== ht || t[105] !== kt || t[106] !== ot || t[107] !== lt || t[108] !== At || t[109] !== wt ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: wt, children: [
|
|
1095
|
+
j,
|
|
1096
|
+
ht,
|
|
1097
|
+
kt,
|
|
1098
|
+
ot,
|
|
1099
|
+
lt,
|
|
1100
1100
|
At
|
|
1101
|
-
] }), t[103] =
|
|
1101
|
+
] }), t[103] = j, t[104] = ht, t[105] = kt, t[106] = ot, t[107] = lt, t[108] = At, t[109] = wt, t[110] = $t) : $t = t[110];
|
|
1102
1102
|
let Ot;
|
|
1103
|
-
t[111] !==
|
|
1103
|
+
t[111] !== J || t[112] !== Ct || t[113] !== G || t[114] !== nt || t[115] !== X || t[116] !== ft || t[117] !== $t ? (Ot = /* @__PURE__ */ i.jsx(J, { ref: Ct, width: G, height: nt, viewBox: X, direction: ft, children: $t }), t[111] = J, t[112] = Ct, t[113] = G, t[114] = nt, t[115] = X, t[116] = ft, t[117] = $t, t[118] = Ot) : Ot = t[118];
|
|
1104
1104
|
let b;
|
|
1105
|
-
t[119] !== d?.tooltip || t[120] !== bt || t[121] !==
|
|
1106
|
-
let
|
|
1107
|
-
t[126] !==
|
|
1108
|
-
|
|
1109
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof
|
|
1110
|
-
__html: Me(
|
|
1111
|
-
} : void 0, children: typeof
|
|
1105
|
+
t[119] !== d?.tooltip || t[120] !== bt || t[121] !== mt || t[122] !== V || t[123] !== u?.tooltip || t[124] !== dt ? (b = V && dt && bt && mt ? /* @__PURE__ */ i.jsx(Oe, { data: V, body: dt, xPos: bt, yPos: mt, backgroundStyle: u?.tooltip, className: d?.tooltip }) : null, t[119] = d?.tooltip, t[120] = bt, t[121] = mt, t[122] = V, t[123] = u?.tooltip, t[124] = dt, t[125] = b) : b = t[125];
|
|
1106
|
+
let at;
|
|
1107
|
+
t[126] !== I || t[127] !== A ? (at = I && A !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: A !== void 0, onClose: () => {
|
|
1108
|
+
Lt(void 0);
|
|
1109
|
+
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof I == "string" ? {
|
|
1110
|
+
__html: Me(I, A)
|
|
1111
|
+
} : void 0, children: typeof I == "function" ? I(A) : null }) }) : null, t[126] = I, t[127] = A, t[128] = at) : at = t[128];
|
|
1112
1112
|
let It;
|
|
1113
|
-
return t[129] !== Ot || t[130] !== b || t[131] !==
|
|
1113
|
+
return t[129] !== Ot || t[130] !== b || t[131] !== at ? (It = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1114
1114
|
Ot,
|
|
1115
1115
|
b,
|
|
1116
|
-
|
|
1117
|
-
] }), t[129] = Ot, t[130] = b, t[131] =
|
|
1116
|
+
at
|
|
1117
|
+
] }), t[129] = Ot, t[130] = b, t[131] = at, t[132] = It) : It = t[132], It;
|
|
1118
1118
|
}
|
|
1119
1119
|
function Zi(e) {
|
|
1120
1120
|
return e.layer;
|
|
@@ -1152,109 +1152,109 @@ function rs(e) {
|
|
|
1152
1152
|
function cs(e) {
|
|
1153
1153
|
const t = xe.c(43), {
|
|
1154
1154
|
data: m,
|
|
1155
|
-
graphTitle:
|
|
1155
|
+
graphTitle: D,
|
|
1156
1156
|
colors: Xt,
|
|
1157
1157
|
suffix: St,
|
|
1158
1158
|
sources: gt,
|
|
1159
|
-
prefix:
|
|
1160
|
-
graphDescription:
|
|
1161
|
-
barPadding:
|
|
1162
|
-
showValues:
|
|
1163
|
-
showTicks:
|
|
1164
|
-
truncateBy:
|
|
1165
|
-
height:
|
|
1166
|
-
width:
|
|
1167
|
-
footNote:
|
|
1168
|
-
colorDomain:
|
|
1169
|
-
colorLegendTitle:
|
|
1170
|
-
highlightedDataPoints:
|
|
1171
|
-
padding:
|
|
1159
|
+
prefix: tt,
|
|
1160
|
+
graphDescription: ut,
|
|
1161
|
+
barPadding: C,
|
|
1162
|
+
showValues: T,
|
|
1163
|
+
showTicks: y,
|
|
1164
|
+
truncateBy: P,
|
|
1165
|
+
height: Dt,
|
|
1166
|
+
width: rt,
|
|
1167
|
+
footNote: zt,
|
|
1168
|
+
colorDomain: F,
|
|
1169
|
+
colorLegendTitle: et,
|
|
1170
|
+
highlightedDataPoints: dt,
|
|
1171
|
+
padding: xt,
|
|
1172
1172
|
backgroundColor: Tt,
|
|
1173
1173
|
topMargin: w,
|
|
1174
|
-
bottomMargin:
|
|
1175
|
-
leftMargin:
|
|
1176
|
-
rightMargin:
|
|
1177
|
-
showLabels:
|
|
1178
|
-
relativeHeight:
|
|
1179
|
-
tooltip:
|
|
1180
|
-
onSeriesMouseOver:
|
|
1181
|
-
refValues:
|
|
1182
|
-
showColorScale:
|
|
1174
|
+
bottomMargin: it,
|
|
1175
|
+
leftMargin: W,
|
|
1176
|
+
rightMargin: Y,
|
|
1177
|
+
showLabels: K,
|
|
1178
|
+
relativeHeight: R,
|
|
1179
|
+
tooltip: H,
|
|
1180
|
+
onSeriesMouseOver: O,
|
|
1181
|
+
refValues: q,
|
|
1182
|
+
showColorScale: I,
|
|
1183
1183
|
graphID: a,
|
|
1184
1184
|
maxValue: s,
|
|
1185
1185
|
minValue: n,
|
|
1186
1186
|
onSeriesMouseClick: u,
|
|
1187
1187
|
graphDownload: d,
|
|
1188
|
-
dataDownload:
|
|
1188
|
+
dataDownload: f,
|
|
1189
1189
|
sortData: x,
|
|
1190
1190
|
labelOrder: $,
|
|
1191
|
-
language:
|
|
1192
|
-
showNAColor:
|
|
1193
|
-
minHeight:
|
|
1191
|
+
language: Q,
|
|
1192
|
+
showNAColor: U,
|
|
1193
|
+
minHeight: ct,
|
|
1194
1194
|
theme: Ft,
|
|
1195
1195
|
maxBarThickness: Yt,
|
|
1196
|
-
maxNumberOfBars:
|
|
1196
|
+
maxNumberOfBars: E,
|
|
1197
1197
|
minBarThickness: yt,
|
|
1198
1198
|
ariaLabel: Bt,
|
|
1199
1199
|
resetSelectionOnDoubleClick: r,
|
|
1200
1200
|
detailsOnClick: c,
|
|
1201
|
-
barAxisTitle:
|
|
1201
|
+
barAxisTitle: B,
|
|
1202
1202
|
noOfTicks: h,
|
|
1203
|
-
valueColor:
|
|
1204
|
-
styles:
|
|
1203
|
+
valueColor: V,
|
|
1204
|
+
styles: S,
|
|
1205
1205
|
classNames: A,
|
|
1206
|
-
filterNA:
|
|
1206
|
+
filterNA: Lt,
|
|
1207
1207
|
animate: bt,
|
|
1208
|
-
dimmedOpacity:
|
|
1209
|
-
precision:
|
|
1210
|
-
customLayers:
|
|
1211
|
-
timeline:
|
|
1212
|
-
naLabel:
|
|
1213
|
-
orientation:
|
|
1214
|
-
} = e,
|
|
1215
|
-
let
|
|
1216
|
-
t[0] !==
|
|
1217
|
-
const
|
|
1218
|
-
let
|
|
1219
|
-
t[2] !==
|
|
1220
|
-
const Kt =
|
|
1208
|
+
dimmedOpacity: st,
|
|
1209
|
+
precision: mt,
|
|
1210
|
+
customLayers: L,
|
|
1211
|
+
timeline: g,
|
|
1212
|
+
naLabel: Z,
|
|
1213
|
+
orientation: _
|
|
1214
|
+
} = e, J = St === void 0 ? "" : St, j = tt === void 0 ? "" : tt, ht = C === void 0 ? 0.25 : C, kt = T === void 0 ? !0 : T, ot = y === void 0 ? !0 : y, Ct = P === void 0 ? 999 : P;
|
|
1215
|
+
let G;
|
|
1216
|
+
t[0] !== dt ? (G = dt === void 0 ? [] : dt, t[0] = dt, t[1] = G) : G = t[1];
|
|
1217
|
+
const nt = G, X = Tt === void 0 ? !1 : Tt, ft = K === void 0 ? !0 : K, pt = I === void 0 ? !0 : I, vt = d === void 0 ? !1 : d, wt = f === void 0 ? !1 : f, lt = Q === void 0 ? "en" : Q, At = U === void 0 ? !0 : U, $t = ct === void 0 ? 0 : ct, Ot = Ft === void 0 ? "light" : Ft, b = r === void 0 ? !0 : r, at = h === void 0 ? 5 : h, It = Lt === void 0 ? !0 : Lt, Et = bt === void 0 ? !1 : bt, M = st === void 0 ? 0.3 : st, qt = mt === void 0 ? 2 : mt;
|
|
1218
|
+
let Nt;
|
|
1219
|
+
t[2] !== L ? (Nt = L === void 0 ? [] : L, t[2] = L, t[3] = Nt) : Nt = t[3];
|
|
1220
|
+
const Kt = Nt, jt = g === void 0 ? {
|
|
1221
1221
|
enabled: !1,
|
|
1222
1222
|
autoplay: !1,
|
|
1223
1223
|
showOnlyActiveDate: !0
|
|
1224
|
-
} :
|
|
1224
|
+
} : g, Qt = Z === void 0 ? "NA" : Z, Ut = _ === void 0 ? "vertical" : _, Ht = Ut === "horizontal" ? Fi : Qi, [Mt, Rt] = Wt(0), [Jt, N] = Wt(0), [v, k] = Wt(jt.autoplay), o = Ze(De(m, "date", !0).map((te) => Be(`${te}`, jt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), ks), [p, ee] = Wt(jt.autoplay ? 0 : o.length - 1), [z, Vt] = Wt(void 0), l = de(null), ie = de(null);
|
|
1225
1225
|
let se, me;
|
|
1226
1226
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
|
|
1227
1227
|
const te = new ResizeObserver((he) => {
|
|
1228
|
-
|
|
1228
|
+
Rt(he[0].target.clientWidth || 620), N(he[0].target.clientHeight || 480);
|
|
1229
1229
|
});
|
|
1230
1230
|
return l.current && te.observe(l.current), () => te.disconnect();
|
|
1231
1231
|
}, me = [], t[4] = se, t[5] = me) : (se = t[4], me = t[5]), we(se, me), we(() => {
|
|
1232
1232
|
const te = setInterval(() => {
|
|
1233
1233
|
ee((he) => he < o.length - 1 ? he + 1 : 0);
|
|
1234
|
-
}, (
|
|
1234
|
+
}, (jt.speed || 2) * 1e3);
|
|
1235
1235
|
return v || clearInterval(te), () => clearInterval(te);
|
|
1236
|
-
}, [o, v,
|
|
1237
|
-
const fe = Ie(o,
|
|
1236
|
+
}, [o, v, jt.speed]);
|
|
1237
|
+
const fe = Ie(o, p, jt.showOnlyActiveDate, jt.dateFormat || "yyyy"), re = Qe, oe = A?.graphContainer, le = S?.graphContainer;
|
|
1238
1238
|
let Gt;
|
|
1239
|
-
t[6] !== A?.description || t[7] !== A?.title || t[8] !== m || t[9] !== wt || t[10] !==
|
|
1240
|
-
title:
|
|
1241
|
-
description:
|
|
1239
|
+
t[6] !== A?.description || t[7] !== A?.title || t[8] !== m || t[9] !== wt || t[10] !== ut || t[11] !== vt || t[12] !== D || t[13] !== S?.description || t[14] !== S?.title || t[15] !== rt ? (Gt = D || ut || vt || wt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
|
|
1240
|
+
title: S?.title,
|
|
1241
|
+
description: S?.description
|
|
1242
1242
|
}, classNames: {
|
|
1243
1243
|
title: A?.title,
|
|
1244
1244
|
description: A?.description
|
|
1245
|
-
}, graphTitle:
|
|
1246
|
-
const Pt =
|
|
1245
|
+
}, graphTitle: D, graphDescription: ut, width: rt, graphDownload: vt ? ie : void 0, dataDownload: wt ? m.map(Ms).filter(Os).length > 0 ? m.map($s).filter(As) : m.filter(ws) : null }) : null, t[6] = A?.description, t[7] = A?.title, t[8] = m, t[9] = wt, t[10] = ut, t[11] = vt, t[12] = D, t[13] = S?.description, t[14] = S?.title, t[15] = rt, t[16] = Gt) : Gt = t[16];
|
|
1246
|
+
const Pt = jt.enabled && o.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
|
|
1247
1247
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
1248
|
-
|
|
1248
|
+
k(!v);
|
|
1249
1249
|
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": v ? "Click to pause animation" : "Click to play animation", children: v ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
|
|
1250
|
-
/* @__PURE__ */ i.jsx(Se, { min: o[0], max: o[o.length - 1], marks: fe, step: null, defaultValue: o[o.length - 1], value: o[
|
|
1250
|
+
/* @__PURE__ */ i.jsx(Se, { min: o[0], max: o[o.length - 1], marks: fe, step: null, defaultValue: o[o.length - 1], value: o[p], onChangeComplete: (te) => {
|
|
1251
1251
|
ee(o.indexOf(te));
|
|
1252
1252
|
}, onChange: (te) => {
|
|
1253
1253
|
ee(o.indexOf(te));
|
|
1254
1254
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
1255
1255
|
] }) : null, ae = m.length === 0 ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1256
|
-
pt && m.filter(vs).length !== 0 ? /* @__PURE__ */ i.jsx(Re, { width:
|
|
1257
|
-
/* @__PURE__ */ i.jsx(Ke, { ref: l, children:
|
|
1256
|
+
pt && m.filter(vs).length !== 0 ? /* @__PURE__ */ i.jsx(Re, { width: rt, colorLegendTitle: et, colors: Xt || ce[Ot].categoricalColors.colors, colorDomain: F || De(m, "color", !0), setSelectedColor: Vt, showNAColor: At, className: A?.colorLegend }) : null,
|
|
1257
|
+
/* @__PURE__ */ i.jsx(Ke, { ref: l, children: Mt && Jt ? /* @__PURE__ */ i.jsx(Ht, { data: x ? ze(ti(m, jt.dateFormat || "yyyy").filter((te) => jt.enabled ? te.date === ye(new Date(o[p]), jt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Ut === "horizontal" ? 1 : -1) * (1 / 0) : (Ut === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, he) => E ? he < E : !0) : ti(m, jt.dateFormat || "yyyy").filter((te) => jt.enabled ? te.date === ye(new Date(o[p]), jt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te).filter((te, he) => E ? he < E : !0), barColor: m.filter(bs).length === 0 ? Xt ? [Xt] : [ce.primaryColors["blue-600"]] : Xt || ce[Ot].categoricalColors.colors, colorDomain: m.filter(ys).length === 0 ? [] : F || De(m, "color", !0), selectedColor: z, width: Mt, height: Jt, suffix: J, prefix: j, barPadding: ht, showValues: kt, showTicks: ot, leftMargin: W, rightMargin: Y, topMargin: w, bottomMargin: it, truncateBy: Ct, showLabels: ft, tooltip: H, onSeriesMouseOver: O, refValues: q, maxValue: _t(s) ? Math.max(...m.filter(gs).map(ps)) < 0 ? 0 : Math.max(...m.filter(fs).map(hs)) : s, minValue: _t(n) ? Math.min(...m.filter(ms).map(xs)) >= 0 ? 0 : Math.min(...m.filter(ds).map(us)) : n, highlightedDataPoints: nt, onSeriesMouseClick: u, labelOrder: $, rtl: lt === "he" || lt === "ar", maxBarThickness: Yt, minBarThickness: yt, resetSelectionOnDoubleClick: b, detailsOnClick: c, barAxisTitle: B, noOfTicks: at, valueColor: V, classNames: A, styles: S, animate: Et === !0 ? {
|
|
1258
1258
|
duration: 0.5,
|
|
1259
1259
|
once: !0,
|
|
1260
1260
|
amount: 0.5
|
|
@@ -1262,23 +1262,23 @@ function cs(e) {
|
|
|
1262
1262
|
duration: 0,
|
|
1263
1263
|
once: !0,
|
|
1264
1264
|
amount: 0
|
|
1265
|
-
}, dimmedOpacity:
|
|
1265
|
+
}, dimmedOpacity: M, precision: qt, customLayers: Kt, naLabel: Qt }) : null })
|
|
1266
1266
|
] });
|
|
1267
1267
|
let be;
|
|
1268
|
-
t[17] !== A?.footnote || t[18] !== A?.source || t[19] !==
|
|
1269
|
-
footnote:
|
|
1270
|
-
source:
|
|
1268
|
+
t[17] !== A?.footnote || t[18] !== A?.source || t[19] !== zt || t[20] !== gt || t[21] !== S?.footnote || t[22] !== S?.source || t[23] !== rt ? (be = gt || zt ? /* @__PURE__ */ i.jsx(We, { sources: gt, footNote: zt, width: rt, styles: {
|
|
1269
|
+
footnote: S?.footnote,
|
|
1270
|
+
source: S?.source
|
|
1271
1271
|
}, classNames: {
|
|
1272
1272
|
footnote: A?.footnote,
|
|
1273
1273
|
source: A?.source
|
|
1274
|
-
} }) : null, t[17] = A?.footnote, t[18] = A?.source, t[19] =
|
|
1274
|
+
} }) : null, t[17] = A?.footnote, t[18] = A?.source, t[19] = zt, t[20] = gt, t[21] = S?.footnote, t[22] = S?.source, t[23] = rt, t[24] = be) : be = t[24];
|
|
1275
1275
|
let Ne;
|
|
1276
|
-
return t[25] !== re || t[26] !== Bt || t[27] !==
|
|
1276
|
+
return t[25] !== re || t[26] !== Bt || t[27] !== X || t[28] !== a || t[29] !== Dt || t[30] !== lt || t[31] !== $t || t[32] !== xt || t[33] !== R || t[34] !== oe || t[35] !== le || t[36] !== Gt || t[37] !== Pt || t[38] !== ae || t[39] !== be || t[40] !== Ot || t[41] !== rt ? (Ne = /* @__PURE__ */ i.jsxs(re, { className: oe, style: le, id: a, ref: ie, "aria-label": Bt, backgroundColor: X, theme: Ot, language: lt, minHeight: $t, width: rt, height: Dt, relativeHeight: R, padding: xt, children: [
|
|
1277
1277
|
Gt,
|
|
1278
1278
|
Pt,
|
|
1279
1279
|
ae,
|
|
1280
1280
|
be
|
|
1281
|
-
] }), t[25] = re, t[26] = Bt, t[27] =
|
|
1281
|
+
] }), t[25] = re, t[26] = Bt, t[27] = X, t[28] = a, t[29] = Dt, t[30] = lt, t[31] = $t, t[32] = xt, t[33] = R, t[34] = oe, t[35] = le, t[36] = Gt, t[37] = Pt, t[38] = ae, t[39] = be, t[40] = Ot, t[41] = rt, t[42] = Ne) : Ne = t[42], Ne;
|
|
1282
1282
|
}
|
|
1283
1283
|
function us(e) {
|
|
1284
1284
|
return e.size;
|
|
@@ -1334,81 +1334,81 @@ function ks(e, t) {
|
|
|
1334
1334
|
function Cs(e) {
|
|
1335
1335
|
const t = xe.c(122), {
|
|
1336
1336
|
data: m,
|
|
1337
|
-
barColors:
|
|
1337
|
+
barColors: D,
|
|
1338
1338
|
barPadding: Xt,
|
|
1339
1339
|
showTicks: St,
|
|
1340
1340
|
topMargin: gt,
|
|
1341
|
-
bottomMargin:
|
|
1342
|
-
leftMargin:
|
|
1343
|
-
rightMargin:
|
|
1344
|
-
truncateBy:
|
|
1345
|
-
width:
|
|
1346
|
-
height:
|
|
1347
|
-
tooltip:
|
|
1348
|
-
onSeriesMouseOver:
|
|
1349
|
-
showLabels:
|
|
1350
|
-
suffix:
|
|
1351
|
-
prefix:
|
|
1352
|
-
showValues:
|
|
1353
|
-
refValues:
|
|
1341
|
+
bottomMargin: tt,
|
|
1342
|
+
leftMargin: ut,
|
|
1343
|
+
rightMargin: C,
|
|
1344
|
+
truncateBy: T,
|
|
1345
|
+
width: y,
|
|
1346
|
+
height: P,
|
|
1347
|
+
tooltip: Dt,
|
|
1348
|
+
onSeriesMouseOver: rt,
|
|
1349
|
+
showLabels: zt,
|
|
1350
|
+
suffix: F,
|
|
1351
|
+
prefix: et,
|
|
1352
|
+
showValues: dt,
|
|
1353
|
+
refValues: xt,
|
|
1354
1354
|
maxValue: Tt,
|
|
1355
1355
|
onSeriesMouseClick: w,
|
|
1356
|
-
selectedColor:
|
|
1357
|
-
rtl:
|
|
1358
|
-
labelOrder:
|
|
1359
|
-
maxBarThickness:
|
|
1360
|
-
minBarThickness:
|
|
1361
|
-
resetSelectionOnDoubleClick:
|
|
1362
|
-
detailsOnClick:
|
|
1363
|
-
barAxisTitle:
|
|
1364
|
-
valueColor:
|
|
1356
|
+
selectedColor: it,
|
|
1357
|
+
rtl: W,
|
|
1358
|
+
labelOrder: Y,
|
|
1359
|
+
maxBarThickness: K,
|
|
1360
|
+
minBarThickness: R,
|
|
1361
|
+
resetSelectionOnDoubleClick: H,
|
|
1362
|
+
detailsOnClick: O,
|
|
1363
|
+
barAxisTitle: q,
|
|
1364
|
+
valueColor: I,
|
|
1365
1365
|
noOfTicks: a,
|
|
1366
1366
|
styles: s,
|
|
1367
1367
|
classNames: n,
|
|
1368
1368
|
animate: u,
|
|
1369
1369
|
colorDomain: d,
|
|
1370
|
-
precision:
|
|
1370
|
+
precision: f,
|
|
1371
1371
|
customLayers: x,
|
|
1372
1372
|
naLabel: $
|
|
1373
|
-
} = e,
|
|
1374
|
-
let
|
|
1375
|
-
t[0] !== u.amount || t[1] !== u.once ? (
|
|
1373
|
+
} = e, Q = gt === void 0 ? 25 : gt, U = tt === void 0 ? 10 : tt, ct = ut === void 0 ? 100 : ut, Ft = C === void 0 ? 40 : C, Yt = de(null);
|
|
1374
|
+
let E;
|
|
1375
|
+
t[0] !== u.amount || t[1] !== u.once ? (E = {
|
|
1376
1376
|
once: u.once,
|
|
1377
1377
|
amount: u.amount
|
|
1378
|
-
}, t[0] = u.amount, t[1] = u.once, t[2] =
|
|
1379
|
-
const yt = Ve(Yt,
|
|
1378
|
+
}, t[0] = u.amount, t[1] = u.once, t[2] = E) : E = t[2];
|
|
1379
|
+
const yt = Ve(Yt, E), Bt = q ? Q + 25 : Q;
|
|
1380
1380
|
let r;
|
|
1381
|
-
t[3] !==
|
|
1381
|
+
t[3] !== U || t[4] !== ct || t[5] !== Ft || t[6] !== Bt ? (r = {
|
|
1382
1382
|
top: Bt,
|
|
1383
|
-
bottom:
|
|
1384
|
-
left:
|
|
1383
|
+
bottom: U,
|
|
1384
|
+
left: ct,
|
|
1385
1385
|
right: Ft
|
|
1386
|
-
}, t[3] =
|
|
1387
|
-
const c = r, [
|
|
1388
|
-
let
|
|
1389
|
-
if (t[8] !== u || t[9] !==
|
|
1390
|
-
let
|
|
1391
|
-
t[72] !==
|
|
1392
|
-
...
|
|
1393
|
-
id:
|
|
1394
|
-
}), t[72] =
|
|
1395
|
-
const It = m.map(
|
|
1396
|
-
|
|
1386
|
+
}, t[3] = U, t[4] = ct, t[5] = Ft, t[6] = Bt, t[7] = r) : r = t[7];
|
|
1387
|
+
const c = r, [B, h] = Wt(void 0), [V, S] = Wt(void 0), [A, Lt] = Wt(void 0), [bt, st] = Wt(void 0), mt = y - c.left - c.right, L = P - c.top - c.bottom;
|
|
1388
|
+
let g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft, pt;
|
|
1389
|
+
if (t[8] !== u || t[9] !== q || t[10] !== D || t[11] !== Xt || t[12] !== n?.graphObjectValues || t[13] !== n?.xAxis?.gridLines || t[14] !== n?.xAxis?.labels || t[15] !== n?.xAxis?.title || t[16] !== n?.yAxis?.axis || t[17] !== n?.yAxis?.labels || t[18] !== d || t[19] !== x || t[20] !== m || t[21] !== O || t[22] !== L || t[23] !== mt || t[24] !== P || t[25] !== yt || t[26] !== Y || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== K || t[31] !== Tt || t[32] !== R || t[33] !== V || t[34] !== $ || t[35] !== a || t[36] !== w || t[37] !== rt || t[38] !== f || t[39] !== et || t[40] !== xt || t[41] !== H || t[42] !== W || t[43] !== it || t[44] !== zt || t[45] !== St || t[46] !== dt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== F || t[54] !== Q || t[55] !== T || t[56] !== I || t[57] !== y) {
|
|
1390
|
+
let at;
|
|
1391
|
+
t[72] !== Y ? (at = (N, v) => ({
|
|
1392
|
+
...N,
|
|
1393
|
+
id: Y ? `${N.label}` : `${v}`
|
|
1394
|
+
}), t[72] = Y, t[73] = at) : at = t[73];
|
|
1395
|
+
const It = m.map(at), Et = Y || It.map(Ss), M = Le().domain([0, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, R ? Math.max(L, R * Et.length) : K ? Math.min(L, K * Et.length) : L]).paddingInner(Xt), Nt = M.ticks(a);
|
|
1396
|
+
Z = Zt.svg, kt = Yt, ot = `${y}px`, Ct = `${P}px`, G = `0 0 ${y} ${P}`, nt = "ltr", _ = `translate(${c.left},${c.top})`, J = St ? /* @__PURE__ */ i.jsx(Fe, { values: Nt.filter(Is), x: Nt.filter(Ts).map((N) => M(N)), y1: 0 - Q, y2: L + c.bottom, styles: {
|
|
1397
1397
|
gridLines: s?.xAxis?.gridLines,
|
|
1398
1398
|
labels: s?.xAxis?.labels
|
|
1399
1399
|
}, classNames: {
|
|
1400
1400
|
gridLines: n?.xAxis?.gridLines,
|
|
1401
1401
|
labels: n?.xAxis?.labels
|
|
1402
|
-
}, suffix:
|
|
1403
|
-
const Kt =
|
|
1404
|
-
t[74] !==
|
|
1402
|
+
}, suffix: F, prefix: et, labelType: "secondary", showGridLines: !0, precision: f }) : null;
|
|
1403
|
+
const Kt = mt / 2, jt = 0 - c.top + 15, Qt = s?.xAxis?.title, Ut = n?.xAxis?.title;
|
|
1404
|
+
t[74] !== q || t[75] !== Kt || t[76] !== jt || t[77] !== Qt || t[78] !== Ut ? (j = /* @__PURE__ */ i.jsx(Ce, { x: Kt, y: jt, style: Qt, className: Ut, text: q }), t[74] = q, t[75] = Kt, t[76] = jt, t[77] = Qt, t[78] = Ut, t[79] = j) : j = t[79], t[80] !== x ? (ht = x.filter(Ns).map(zs), t[80] = x, t[81] = ht) : ht = t[81], g = je, X = It.map((N) => _t(qt(N.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1405
1405
|
initial: {
|
|
1406
1406
|
x: 0,
|
|
1407
|
-
y:
|
|
1407
|
+
y: qt(`${N.id}`)
|
|
1408
1408
|
},
|
|
1409
1409
|
whileInView: {
|
|
1410
1410
|
x: 0,
|
|
1411
|
-
y:
|
|
1411
|
+
y: qt(`${N.id}`),
|
|
1412
1412
|
transition: {
|
|
1413
1413
|
duration: u.duration
|
|
1414
1414
|
}
|
|
@@ -1419,57 +1419,57 @@ function Cs(e) {
|
|
|
1419
1419
|
duration: u.duration
|
|
1420
1420
|
}
|
|
1421
1421
|
}, children: [
|
|
1422
|
-
|
|
1422
|
+
N.size.map((v, k) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: it ? D[k] === it ? 1 : 0.3 : 1, onMouseEnter: (o) => {
|
|
1423
1423
|
h({
|
|
1424
|
-
...
|
|
1425
|
-
sizeIndex:
|
|
1426
|
-
}),
|
|
1427
|
-
...
|
|
1428
|
-
sizeIndex:
|
|
1424
|
+
...N,
|
|
1425
|
+
sizeIndex: k
|
|
1426
|
+
}), st(o.clientY), Lt(o.clientX), rt?.({
|
|
1427
|
+
...N,
|
|
1428
|
+
sizeIndex: k
|
|
1429
1429
|
});
|
|
1430
1430
|
}, onMouseMove: (o) => {
|
|
1431
1431
|
h({
|
|
1432
|
-
...
|
|
1433
|
-
sizeIndex:
|
|
1434
|
-
}),
|
|
1432
|
+
...N,
|
|
1433
|
+
sizeIndex: k
|
|
1434
|
+
}), st(o.clientY), Lt(o.clientX);
|
|
1435
1435
|
}, onMouseLeave: () => {
|
|
1436
|
-
h(void 0),
|
|
1436
|
+
h(void 0), Lt(void 0), st(void 0), rt?.(void 0);
|
|
1437
1437
|
}, onClick: () => {
|
|
1438
|
-
(w ||
|
|
1439
|
-
...
|
|
1440
|
-
sizeIndex:
|
|
1441
|
-
}) &&
|
|
1442
|
-
...
|
|
1443
|
-
sizeIndex:
|
|
1438
|
+
(w || O) && (Ae(V, {
|
|
1439
|
+
...N,
|
|
1440
|
+
sizeIndex: k
|
|
1441
|
+
}) && H ? (S(void 0), w?.(void 0)) : (S({
|
|
1442
|
+
...N,
|
|
1443
|
+
sizeIndex: k
|
|
1444
1444
|
}), w && w({
|
|
1445
|
-
...
|
|
1446
|
-
sizeIndex:
|
|
1445
|
+
...N,
|
|
1446
|
+
sizeIndex: k
|
|
1447
1447
|
})));
|
|
1448
1448
|
}, children: [
|
|
1449
1449
|
v ? /* @__PURE__ */ i.jsx(Zt.rect, { y: 0, style: {
|
|
1450
|
-
fill:
|
|
1451
|
-
}, height:
|
|
1450
|
+
fill: D[k]
|
|
1451
|
+
}, height: qt.bandwidth(), exit: {
|
|
1452
1452
|
width: 0,
|
|
1453
|
-
x:
|
|
1453
|
+
x: M(0),
|
|
1454
1454
|
transition: {
|
|
1455
1455
|
duration: u.duration
|
|
1456
1456
|
}
|
|
1457
1457
|
}, variants: {
|
|
1458
1458
|
initial: {
|
|
1459
1459
|
width: 0,
|
|
1460
|
-
x:
|
|
1461
|
-
fill:
|
|
1460
|
+
x: M(0),
|
|
1461
|
+
fill: D[k]
|
|
1462
1462
|
},
|
|
1463
1463
|
whileInView: {
|
|
1464
|
-
width:
|
|
1465
|
-
x: k
|
|
1466
|
-
fill:
|
|
1464
|
+
width: M(v || 0),
|
|
1465
|
+
x: M(k === 0 ? 0 : ne(N.size.filter((o, p) => p < k && o))),
|
|
1466
|
+
fill: D[k],
|
|
1467
1467
|
transition: {
|
|
1468
1468
|
duration: u.duration
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
|
-
}, initial: "initial", animate: yt ? "whileInView" : "initial" },
|
|
1472
|
-
|
|
1471
|
+
}, initial: "initial", animate: yt ? "whileInView" : "initial" }, k) : null,
|
|
1472
|
+
dt ? /* @__PURE__ */ i.jsx(Zt.text, { y: qt.bandwidth() / 2, style: {
|
|
1473
1473
|
textAnchor: "middle",
|
|
1474
1474
|
...s?.graphObjectValues || {}
|
|
1475
1475
|
}, dy: "0.33em", className: pe("graph-value text-sm", n?.graphObjectValues), exit: {
|
|
@@ -1479,40 +1479,40 @@ function Cs(e) {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
}, variants: {
|
|
1481
1481
|
initial: {
|
|
1482
|
-
x:
|
|
1482
|
+
x: M(0),
|
|
1483
1483
|
opacity: 0,
|
|
1484
|
-
fill: Te(
|
|
1484
|
+
fill: Te(D[k])
|
|
1485
1485
|
},
|
|
1486
1486
|
whileInView: {
|
|
1487
|
-
x: k
|
|
1488
|
-
opacity: v &&
|
|
1489
|
-
fill: Te(
|
|
1487
|
+
x: M(k === 0 ? 0 : ne(N.size.filter((o, p) => p < k && o))) + M(v || 0) / 2,
|
|
1488
|
+
opacity: v && M(v) / ue(v, $, f, et, F).length > 12 ? 1 : 0,
|
|
1489
|
+
fill: Te(D[k]),
|
|
1490
1490
|
transition: {
|
|
1491
1491
|
duration: u.duration
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
|
-
}, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(v, $,
|
|
1495
|
-
] }, `${
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
...
|
|
1499
|
-
fill:
|
|
1494
|
+
}, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(v, $, f, et, F) }) : null
|
|
1495
|
+
] }, `${N.label}-${d[k] || k}`)),
|
|
1496
|
+
zt ? /* @__PURE__ */ i.jsx(Pe, { value: `${N.label}`.length < T ? `${N.label}` : `${`${N.label}`.substring(0, T)}...`, y: 0, x: 0 - c.left, width: 0 + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: yt }) : null,
|
|
1497
|
+
dt ? /* @__PURE__ */ i.jsx(Zt.text, { className: pe("graph-value graph-value-total text-sm", I ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", n?.graphObjectValues), style: {
|
|
1498
|
+
...I ? {
|
|
1499
|
+
fill: I
|
|
1500
1500
|
} : {},
|
|
1501
1501
|
textAnchor: "start",
|
|
1502
1502
|
...s?.graphObjectValues || {}
|
|
1503
|
-
}, y:
|
|
1503
|
+
}, y: qt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
|
|
1504
1504
|
initial: {
|
|
1505
|
-
x:
|
|
1505
|
+
x: M(0),
|
|
1506
1506
|
opacity: 0,
|
|
1507
|
-
...
|
|
1508
|
-
fill:
|
|
1507
|
+
...I ? {
|
|
1508
|
+
fill: I
|
|
1509
1509
|
} : {}
|
|
1510
1510
|
},
|
|
1511
1511
|
whileInView: {
|
|
1512
|
-
x:
|
|
1512
|
+
x: M(ne(N.size.map(Ds))),
|
|
1513
1513
|
opacity: 1,
|
|
1514
|
-
...
|
|
1515
|
-
fill:
|
|
1514
|
+
...I ? {
|
|
1515
|
+
fill: I
|
|
1516
1516
|
} : {},
|
|
1517
1517
|
transition: {
|
|
1518
1518
|
duration: u.duration
|
|
@@ -1523,46 +1523,46 @@ function Cs(e) {
|
|
|
1523
1523
|
transition: {
|
|
1524
1524
|
duration: u.duration
|
|
1525
1525
|
}
|
|
1526
|
-
}, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(ne(
|
|
1527
|
-
] },
|
|
1526
|
+
}, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(ne(N.size.filter(js)), $, f, et, F) }) : null
|
|
1527
|
+
] }, N.label));
|
|
1528
1528
|
const Ht = n?.yAxis?.axis;
|
|
1529
|
-
let
|
|
1530
|
-
t[82] !== Ht ? (
|
|
1529
|
+
let Mt;
|
|
1530
|
+
t[82] !== Ht ? (Mt = {
|
|
1531
1531
|
axis: Ht
|
|
1532
|
-
}, t[82] = Ht, t[83] =
|
|
1533
|
-
const
|
|
1532
|
+
}, t[82] = Ht, t[83] = Mt) : Mt = t[83];
|
|
1533
|
+
const Rt = s?.yAxis?.axis;
|
|
1534
1534
|
let Jt;
|
|
1535
|
-
t[84] !==
|
|
1536
|
-
axis:
|
|
1537
|
-
}, t[84] =
|
|
1535
|
+
t[84] !== Rt ? (Jt = {
|
|
1536
|
+
axis: Rt
|
|
1537
|
+
}, t[84] = Rt, t[85] = Jt) : Jt = t[85], ft = /* @__PURE__ */ i.jsx(ke, { x1: M(0), x2: M(0), y1: -2.5, y2: L + c.bottom, classNames: Mt, styles: Jt }), pt = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((N, v) => /* @__PURE__ */ i.jsx(He, { text: N.text, color: N.color, x: M(N.value), y1: 0 - c.top, y2: L + c.bottom, textSide: M(N.value) > mt * 0.75 || W ? "left" : "right", classNames: N.classNames, styles: N.styles, animate: u, isInView: yt }, v)) }) : null, t[8] = u, t[9] = q, t[10] = D, t[11] = Xt, t[12] = n?.graphObjectValues, t[13] = n?.xAxis?.gridLines, t[14] = n?.xAxis?.labels, t[15] = n?.xAxis?.title, t[16] = n?.yAxis?.axis, t[17] = n?.yAxis?.labels, t[18] = d, t[19] = x, t[20] = m, t[21] = O, t[22] = L, t[23] = mt, t[24] = P, t[25] = yt, t[26] = Y, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = K, t[31] = Tt, t[32] = R, t[33] = V, t[34] = $, t[35] = a, t[36] = w, t[37] = rt, t[38] = f, t[39] = et, t[40] = xt, t[41] = H, t[42] = W, t[43] = it, t[44] = zt, t[45] = St, t[46] = dt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = F, t[54] = Q, t[55] = T, t[56] = I, t[57] = y, t[58] = g, t[59] = Z, t[60] = _, t[61] = J, t[62] = j, t[63] = ht, t[64] = kt, t[65] = ot, t[66] = Ct, t[67] = G, t[68] = nt, t[69] = X, t[70] = ft, t[71] = pt;
|
|
1538
1538
|
} else
|
|
1539
|
-
|
|
1539
|
+
g = t[58], Z = t[59], _ = t[60], J = t[61], j = t[62], ht = t[63], kt = t[64], ot = t[65], Ct = t[66], G = t[67], nt = t[68], X = t[69], ft = t[70], pt = t[71];
|
|
1540
1540
|
let vt;
|
|
1541
|
-
t[86] !==
|
|
1542
|
-
|
|
1543
|
-
|
|
1541
|
+
t[86] !== g || t[87] !== X || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
|
|
1542
|
+
X,
|
|
1543
|
+
ft,
|
|
1544
1544
|
pt
|
|
1545
|
-
] }), t[86] =
|
|
1545
|
+
] }), t[86] = g, t[87] = X, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
|
|
1546
1546
|
let wt;
|
|
1547
1547
|
t[91] !== x ? (wt = x.filter(Ls).map(Vs), t[91] = x, t[92] = wt) : wt = t[92];
|
|
1548
|
-
let
|
|
1549
|
-
t[93] !==
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1548
|
+
let lt;
|
|
1549
|
+
t[93] !== _ || t[94] !== J || t[95] !== j || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (lt = /* @__PURE__ */ i.jsxs("g", { transform: _, children: [
|
|
1550
|
+
J,
|
|
1551
|
+
j,
|
|
1552
|
+
ht,
|
|
1553
1553
|
vt,
|
|
1554
1554
|
wt
|
|
1555
|
-
] }), t[93] =
|
|
1555
|
+
] }), t[93] = _, t[94] = J, t[95] = j, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = lt) : lt = t[99];
|
|
1556
1556
|
let At;
|
|
1557
|
-
t[100] !==
|
|
1557
|
+
t[100] !== Z || t[101] !== kt || t[102] !== ot || t[103] !== Ct || t[104] !== G || t[105] !== nt || t[106] !== lt ? (At = /* @__PURE__ */ i.jsx(Z, { ref: kt, width: ot, height: Ct, viewBox: G, direction: nt, children: lt }), t[100] = Z, t[101] = kt, t[102] = ot, t[103] = Ct, t[104] = G, t[105] = nt, t[106] = lt, t[107] = At) : At = t[107];
|
|
1558
1558
|
let $t;
|
|
1559
|
-
t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !==
|
|
1559
|
+
t[108] !== n?.tooltip || t[109] !== A || t[110] !== bt || t[111] !== B || t[112] !== s?.tooltip || t[113] !== Dt ? ($t = B && Dt && A && bt ? /* @__PURE__ */ i.jsx(Oe, { data: B, body: Dt, xPos: A, yPos: bt, backgroundStyle: s?.tooltip, className: n?.tooltip }) : null, t[108] = n?.tooltip, t[109] = A, t[110] = bt, t[111] = B, t[112] = s?.tooltip, t[113] = Dt, t[114] = $t) : $t = t[114];
|
|
1560
1560
|
let Ot;
|
|
1561
|
-
t[115] !==
|
|
1562
|
-
|
|
1563
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof
|
|
1564
|
-
__html: Me(
|
|
1565
|
-
} : void 0, children: typeof
|
|
1561
|
+
t[115] !== O || t[116] !== V ? (Ot = O && V !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: V !== void 0, onClose: () => {
|
|
1562
|
+
S(void 0);
|
|
1563
|
+
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
|
|
1564
|
+
__html: Me(O, V)
|
|
1565
|
+
} : void 0, children: typeof O == "function" ? O(V) : null }) }) : null, t[115] = O, t[116] = V, t[117] = Ot) : Ot = t[117];
|
|
1566
1566
|
let b;
|
|
1567
1567
|
return t[118] !== At || t[119] !== $t || t[120] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1568
1568
|
At,
|
|
@@ -1600,100 +1600,100 @@ function Ss(e) {
|
|
|
1600
1600
|
function Bs(e) {
|
|
1601
1601
|
const t = xe.c(129), {
|
|
1602
1602
|
data: m,
|
|
1603
|
-
leftMargin:
|
|
1603
|
+
leftMargin: D,
|
|
1604
1604
|
rightMargin: Xt,
|
|
1605
1605
|
topMargin: St,
|
|
1606
1606
|
bottomMargin: gt,
|
|
1607
|
-
width:
|
|
1608
|
-
height:
|
|
1609
|
-
barColors:
|
|
1610
|
-
barPadding:
|
|
1611
|
-
showLabels:
|
|
1612
|
-
showTicks:
|
|
1613
|
-
truncateBy:
|
|
1614
|
-
tooltip:
|
|
1615
|
-
onSeriesMouseOver:
|
|
1616
|
-
suffix:
|
|
1617
|
-
prefix:
|
|
1618
|
-
showValues:
|
|
1619
|
-
refValues:
|
|
1607
|
+
width: tt,
|
|
1608
|
+
height: ut,
|
|
1609
|
+
barColors: C,
|
|
1610
|
+
barPadding: T,
|
|
1611
|
+
showLabels: y,
|
|
1612
|
+
showTicks: P,
|
|
1613
|
+
truncateBy: Dt,
|
|
1614
|
+
tooltip: rt,
|
|
1615
|
+
onSeriesMouseOver: zt,
|
|
1616
|
+
suffix: F,
|
|
1617
|
+
prefix: et,
|
|
1618
|
+
showValues: dt,
|
|
1619
|
+
refValues: xt,
|
|
1620
1620
|
maxValue: Tt,
|
|
1621
1621
|
onSeriesMouseClick: w,
|
|
1622
|
-
selectedColor:
|
|
1623
|
-
labelOrder:
|
|
1624
|
-
maxBarThickness:
|
|
1625
|
-
minBarThickness:
|
|
1626
|
-
resetSelectionOnDoubleClick:
|
|
1627
|
-
detailsOnClick:
|
|
1628
|
-
barAxisTitle:
|
|
1629
|
-
valueColor:
|
|
1630
|
-
noOfTicks:
|
|
1622
|
+
selectedColor: it,
|
|
1623
|
+
labelOrder: W,
|
|
1624
|
+
maxBarThickness: Y,
|
|
1625
|
+
minBarThickness: K,
|
|
1626
|
+
resetSelectionOnDoubleClick: R,
|
|
1627
|
+
detailsOnClick: H,
|
|
1628
|
+
barAxisTitle: O,
|
|
1629
|
+
valueColor: q,
|
|
1630
|
+
noOfTicks: I,
|
|
1631
1631
|
styles: a,
|
|
1632
1632
|
classNames: s,
|
|
1633
1633
|
animate: n,
|
|
1634
1634
|
colorDomain: u,
|
|
1635
1635
|
precision: d,
|
|
1636
|
-
customLayers:
|
|
1636
|
+
customLayers: f,
|
|
1637
1637
|
naLabel: x
|
|
1638
|
-
} = e, $ =
|
|
1638
|
+
} = e, $ = D === void 0 ? 20 : D, Q = Xt === void 0 ? 20 : Xt, U = St === void 0 ? 20 : St, ct = gt === void 0 ? 25 : gt, Ft = de(null);
|
|
1639
1639
|
let Yt;
|
|
1640
1640
|
t[0] !== n.amount || t[1] !== n.once ? (Yt = {
|
|
1641
1641
|
once: n.once,
|
|
1642
1642
|
amount: n.amount
|
|
1643
1643
|
}, t[0] = n.amount, t[1] = n.once, t[2] = Yt) : Yt = t[2];
|
|
1644
|
-
const
|
|
1644
|
+
const E = Ve(Ft, Yt), yt = O ? $ + 30 : $;
|
|
1645
1645
|
let Bt;
|
|
1646
|
-
t[3] !==
|
|
1647
|
-
top:
|
|
1648
|
-
bottom:
|
|
1646
|
+
t[3] !== ct || t[4] !== Q || t[5] !== yt || t[6] !== U ? (Bt = {
|
|
1647
|
+
top: U,
|
|
1648
|
+
bottom: ct,
|
|
1649
1649
|
left: yt,
|
|
1650
|
-
right:
|
|
1651
|
-
}, t[3] =
|
|
1652
|
-
const r = Bt, [c,
|
|
1653
|
-
let
|
|
1654
|
-
if (t[8] !== n || t[9] !==
|
|
1655
|
-
const b = Le().domain([0, Tt]).range([
|
|
1656
|
-
let
|
|
1657
|
-
t[72] !==
|
|
1658
|
-
...
|
|
1659
|
-
id:
|
|
1660
|
-
}), t[72] =
|
|
1661
|
-
const It = m.map(
|
|
1662
|
-
|
|
1663
|
-
const
|
|
1664
|
-
let
|
|
1665
|
-
t[74] !== x || t[75] !== d || t[76] !==
|
|
1650
|
+
right: Q
|
|
1651
|
+
}, t[3] = ct, t[4] = Q, t[5] = yt, t[6] = U, t[7] = Bt) : Bt = t[7];
|
|
1652
|
+
const r = Bt, [c, B] = Wt(void 0), [h, V] = Wt(void 0), [S, A] = Wt(void 0), [Lt, bt] = Wt(void 0), st = tt - r.left - r.right, mt = ut - r.top - r.bottom;
|
|
1653
|
+
let L, g, Z, _, J, j, ht, kt, ot, Ct, G, nt, X, ft;
|
|
1654
|
+
if (t[8] !== n || t[9] !== O || t[10] !== C || t[11] !== T || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== u || t[19] !== f || t[20] !== m || t[21] !== H || t[22] !== mt || t[23] !== st || t[24] !== ut || t[25] !== E || t[26] !== W || t[27] !== $ || t[28] !== r.bottom || t[29] !== r.left || t[30] !== r.right || t[31] !== r.top || t[32] !== Y || t[33] !== Tt || t[34] !== K || t[35] !== h || t[36] !== x || t[37] !== I || t[38] !== w || t[39] !== zt || t[40] !== d || t[41] !== et || t[42] !== xt || t[43] !== R || t[44] !== it || t[45] !== y || t[46] !== P || t[47] !== dt || t[48] !== a?.graphObjectValues || t[49] !== a?.xAxis?.axis || t[50] !== a?.xAxis?.labels || t[51] !== a?.yAxis?.gridLines || t[52] !== a?.yAxis?.labels || t[53] !== a?.yAxis?.title || t[54] !== F || t[55] !== Dt || t[56] !== q || t[57] !== tt) {
|
|
1655
|
+
const b = Le().domain([0, Tt]).range([mt, 0]).nice();
|
|
1656
|
+
let at;
|
|
1657
|
+
t[72] !== W ? (at = (p, ee) => ({
|
|
1658
|
+
...p,
|
|
1659
|
+
id: W ? `${p.label}` : `${ee}`
|
|
1660
|
+
}), t[72] = W, t[73] = at) : at = t[73];
|
|
1661
|
+
const It = m.map(at), Et = W || It.map(Rs), M = ge().domain(Et).range([0, K ? Math.max(st, K * Et.length) : Y ? Math.min(st, Y * Et.length) : st]).paddingInner(T), qt = b.ticks(I);
|
|
1662
|
+
g = Zt.svg, ht = `${tt}px`, kt = `${ut}px`, ot = `0 0 ${tt} ${ut}`, Ct = "ltr", G = Ft, ft = `translate(${r.left},${r.top})`;
|
|
1663
|
+
const Nt = b(0), Kt = b(0);
|
|
1664
|
+
let jt;
|
|
1665
|
+
t[74] !== x || t[75] !== d || t[76] !== et || t[77] !== F ? (jt = ue(0, x, d, et, F), t[74] = x, t[75] = d, t[76] = et, t[77] = F, t[78] = jt) : jt = t[78];
|
|
1666
1666
|
const Qt = s?.xAxis?.axis, Ut = s?.yAxis?.labels;
|
|
1667
1667
|
let Ht;
|
|
1668
1668
|
t[79] !== Qt || t[80] !== Ut ? (Ht = {
|
|
1669
1669
|
axis: Qt,
|
|
1670
1670
|
label: Ut
|
|
1671
1671
|
}, t[79] = Qt, t[80] = Ut, t[81] = Ht) : Ht = t[81];
|
|
1672
|
-
const
|
|
1672
|
+
const Mt = a?.xAxis?.axis, Rt = a?.yAxis?.labels;
|
|
1673
1673
|
let Jt;
|
|
1674
|
-
t[82] !==
|
|
1675
|
-
axis:
|
|
1676
|
-
label:
|
|
1677
|
-
}, t[82] =
|
|
1674
|
+
t[82] !== Mt || t[83] !== Rt ? (Jt = {
|
|
1675
|
+
axis: Mt,
|
|
1676
|
+
label: Rt
|
|
1677
|
+
}, t[82] = Mt, t[83] = Rt, t[84] = Jt) : Jt = t[84], Z = /* @__PURE__ */ i.jsx(ke, { y1: Nt, y2: Kt, x1: 0 - $, x2: st + r.right, label: jt, labelPos: {
|
|
1678
1678
|
x: 0 - $,
|
|
1679
1679
|
y: b(0),
|
|
1680
1680
|
dx: 0,
|
|
1681
1681
|
dy: -5
|
|
1682
|
-
}, classNames: Ht, styles: Jt }),
|
|
1682
|
+
}, classNames: Ht, styles: Jt }), _ = P ? /* @__PURE__ */ i.jsx(Ye, { values: qt.filter(Ws), y: qt.filter(Gs).map((p) => b(p)), x1: 0 - $, x2: st + r.right, styles: {
|
|
1683
1683
|
gridLines: a?.yAxis?.gridLines,
|
|
1684
1684
|
labels: a?.yAxis?.labels
|
|
1685
1685
|
}, classNames: {
|
|
1686
1686
|
gridLines: s?.yAxis?.gridLines,
|
|
1687
1687
|
labels: s?.yAxis?.labels
|
|
1688
|
-
}, suffix:
|
|
1689
|
-
const
|
|
1690
|
-
t[85] !==
|
|
1688
|
+
}, suffix: F, prefix: et, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
|
|
1689
|
+
const N = 0 - $ - 15, v = mt / 2, k = a?.yAxis?.title, o = s?.yAxis?.title;
|
|
1690
|
+
t[85] !== O || t[86] !== N || t[87] !== v || t[88] !== k || t[89] !== o ? (J = /* @__PURE__ */ i.jsx(Ce, { x: N, y: v, style: k, className: o, text: O, rotate90: !0 }), t[85] = O, t[86] = N, t[87] = v, t[88] = k, t[89] = o, t[90] = J) : J = t[90], t[91] !== f ? (j = f.filter(Es).map(Ys), t[91] = f, t[92] = j) : j = t[92], L = je, nt = It.map((p) => _t(M(p.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1691
1691
|
initial: {
|
|
1692
|
-
x:
|
|
1692
|
+
x: M(`${p.id}`),
|
|
1693
1693
|
y: 0
|
|
1694
1694
|
},
|
|
1695
1695
|
whileInView: {
|
|
1696
|
-
x:
|
|
1696
|
+
x: M(`${p.id}`),
|
|
1697
1697
|
y: 0,
|
|
1698
1698
|
transition: {
|
|
1699
1699
|
duration: n.duration
|
|
@@ -1701,101 +1701,101 @@ function Bs(e) {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
}, transition: {
|
|
1703
1703
|
duration: n.duration
|
|
1704
|
-
}, initial: "initial", animate:
|
|
1704
|
+
}, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
|
|
1705
1705
|
opacity: 0,
|
|
1706
1706
|
transition: {
|
|
1707
1707
|
duration: n.duration
|
|
1708
1708
|
}
|
|
1709
1709
|
}, children: [
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
...
|
|
1713
|
-
sizeIndex:
|
|
1714
|
-
}), bt(
|
|
1715
|
-
...
|
|
1716
|
-
sizeIndex:
|
|
1710
|
+
p.size.map((ee, z) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: it ? C[z] === it ? 1 : 0.3 : 1, onMouseEnter: (Vt) => {
|
|
1711
|
+
B({
|
|
1712
|
+
...p,
|
|
1713
|
+
sizeIndex: z
|
|
1714
|
+
}), bt(Vt.clientY), A(Vt.clientX), zt?.({
|
|
1715
|
+
...p,
|
|
1716
|
+
sizeIndex: z
|
|
1717
1717
|
});
|
|
1718
|
-
}, onMouseMove: (
|
|
1719
|
-
|
|
1720
|
-
...
|
|
1721
|
-
sizeIndex:
|
|
1722
|
-
}), bt(
|
|
1718
|
+
}, onMouseMove: (Vt) => {
|
|
1719
|
+
B({
|
|
1720
|
+
...p,
|
|
1721
|
+
sizeIndex: z
|
|
1722
|
+
}), bt(Vt.clientY), A(Vt.clientX);
|
|
1723
1723
|
}, onMouseLeave: () => {
|
|
1724
|
-
|
|
1724
|
+
B(void 0), A(void 0), bt(void 0), zt?.(void 0);
|
|
1725
1725
|
}, onClick: () => {
|
|
1726
|
-
(w ||
|
|
1727
|
-
...
|
|
1728
|
-
sizeIndex:
|
|
1729
|
-
}) &&
|
|
1730
|
-
...
|
|
1731
|
-
sizeIndex:
|
|
1726
|
+
(w || H) && (Ae(h, {
|
|
1727
|
+
...p,
|
|
1728
|
+
sizeIndex: z
|
|
1729
|
+
}) && R ? (V(void 0), w?.(void 0)) : (V({
|
|
1730
|
+
...p,
|
|
1731
|
+
sizeIndex: z
|
|
1732
1732
|
}), w && w({
|
|
1733
|
-
...
|
|
1734
|
-
sizeIndex:
|
|
1733
|
+
...p,
|
|
1734
|
+
sizeIndex: z
|
|
1735
1735
|
})));
|
|
1736
1736
|
}, children: [
|
|
1737
|
-
/* @__PURE__ */ i.jsx(Zt.rect, { x: 0, width:
|
|
1737
|
+
/* @__PURE__ */ i.jsx(Zt.rect, { x: 0, width: M.bandwidth(), variants: {
|
|
1738
1738
|
initial: {
|
|
1739
1739
|
height: 0,
|
|
1740
|
-
fill:
|
|
1740
|
+
fill: C[z],
|
|
1741
1741
|
y: b(0)
|
|
1742
1742
|
},
|
|
1743
1743
|
whileInView: {
|
|
1744
|
-
height: Math.abs(b(ne(
|
|
1745
|
-
y: b(ne(
|
|
1746
|
-
fill:
|
|
1744
|
+
height: Math.abs(b(ne(p.size.filter((Vt, l) => l <= z && Vt))) - b(ne(p.size.filter((Vt, l) => l < z && Vt)))),
|
|
1745
|
+
y: b(ne(p.size.filter((Vt, l) => l <= z && Vt))),
|
|
1746
|
+
fill: C[z],
|
|
1747
1747
|
transition: {
|
|
1748
1748
|
duration: n.duration
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
}, initial: "initial", animate:
|
|
1751
|
+
}, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
|
|
1752
1752
|
height: 0,
|
|
1753
1753
|
y: b(0),
|
|
1754
1754
|
transition: {
|
|
1755
1755
|
duration: n.duration
|
|
1756
1756
|
}
|
|
1757
1757
|
} }),
|
|
1758
|
-
|
|
1758
|
+
dt ? /* @__PURE__ */ i.jsx(Zt.text, { x: M.bandwidth() / 2, style: {
|
|
1759
1759
|
textAnchor: "middle",
|
|
1760
1760
|
...a?.graphObjectValues || {}
|
|
1761
1761
|
}, className: pe("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
|
|
1762
1762
|
initial: {
|
|
1763
1763
|
y: b(0),
|
|
1764
1764
|
opacity: 0,
|
|
1765
|
-
fill: Te(
|
|
1765
|
+
fill: Te(C[z])
|
|
1766
1766
|
},
|
|
1767
1767
|
whileInView: {
|
|
1768
|
-
y: b(ne(
|
|
1769
|
-
opacity: ee && Math.abs(b(ne(
|
|
1770
|
-
fill: Te(
|
|
1768
|
+
y: b(ne(p.size.filter((Vt, l) => l <= z && Vt))) + Math.abs(b(ne(p.size.filter((Vt, l) => l <= z && Vt))) - b(ne(p.size.filter((Vt, l) => l < z && Vt)))) / 2,
|
|
1769
|
+
opacity: ee && Math.abs(b(ne(p.size.filter((Vt, l) => l <= z && Vt))) - b(ne(p.size.filter((Vt, l) => l < z && Vt)))) > 20 ? 1 : 0,
|
|
1770
|
+
fill: Te(C[z]),
|
|
1771
1771
|
transition: {
|
|
1772
1772
|
duration: n.duration
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
|
-
}, initial: "initial", animate:
|
|
1775
|
+
}, initial: "initial", animate: E ? "whileInView" : "initial", exit: {
|
|
1776
1776
|
opacity: 0,
|
|
1777
1777
|
transition: {
|
|
1778
1778
|
duration: n.duration
|
|
1779
1779
|
}
|
|
1780
|
-
}, children: ue(ee, x, d,
|
|
1781
|
-
] }, `${
|
|
1782
|
-
|
|
1783
|
-
|
|
1780
|
+
}, children: ue(ee, x, d, et, F) }) : null
|
|
1781
|
+
] }, `${p.label}-${u[z] || z}`)),
|
|
1782
|
+
y ? /* @__PURE__ */ i.jsx(Ee, { value: `${p.label}`.length < Dt ? `${p.label}` : `${`${p.label}`.substring(0, Dt)}...`, y: b(0) + 5, x: 0, width: M.bandwidth(), height: r.bottom, style: a?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: n, isInView: E }) : null,
|
|
1783
|
+
dt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
|
|
1784
1784
|
textAnchor: "middle",
|
|
1785
1785
|
...a?.graphObjectValues || {}
|
|
1786
|
-
}, x:
|
|
1786
|
+
}, x: M.bandwidth() / 2, dy: -10, className: pe("graph-value graph-value-total", q ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
|
|
1787
1787
|
initial: {
|
|
1788
1788
|
y: b(0),
|
|
1789
1789
|
opacity: 0,
|
|
1790
|
-
...
|
|
1791
|
-
fill:
|
|
1790
|
+
...q && {
|
|
1791
|
+
fill: q
|
|
1792
1792
|
}
|
|
1793
1793
|
},
|
|
1794
1794
|
whileInView: {
|
|
1795
|
-
y: b(ne(
|
|
1795
|
+
y: b(ne(p.size.map(Xs))),
|
|
1796
1796
|
opacity: 1,
|
|
1797
|
-
...
|
|
1798
|
-
fill:
|
|
1797
|
+
...q && {
|
|
1798
|
+
fill: q
|
|
1799
1799
|
},
|
|
1800
1800
|
transition: {
|
|
1801
1801
|
duration: n.duration
|
|
@@ -1806,42 +1806,42 @@ function Bs(e) {
|
|
|
1806
1806
|
transition: {
|
|
1807
1807
|
duration: n.duration
|
|
1808
1808
|
}
|
|
1809
|
-
}, initial: "initial", animate:
|
|
1810
|
-
] },
|
|
1809
|
+
}, initial: "initial", animate: E ? "whileInView" : "initial", children: ue(ne(p.size.filter(Hs)), x, d, et, F) }) : null
|
|
1810
|
+
] }, p.label)), X = xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: xt.map((p, ee) => /* @__PURE__ */ i.jsx(Xe, { text: p.text, color: p.color, y: b(p.value), x1: 0 - $, x2: st + r.right, classNames: p.classNames, styles: p.styles, animate: n, isInView: E }, ee)) }) : null, t[8] = n, t[9] = O, t[10] = C, t[11] = T, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = u, t[19] = f, t[20] = m, t[21] = H, t[22] = mt, t[23] = st, t[24] = ut, t[25] = E, t[26] = W, t[27] = $, t[28] = r.bottom, t[29] = r.left, t[30] = r.right, t[31] = r.top, t[32] = Y, t[33] = Tt, t[34] = K, t[35] = h, t[36] = x, t[37] = I, t[38] = w, t[39] = zt, t[40] = d, t[41] = et, t[42] = xt, t[43] = R, t[44] = it, t[45] = y, t[46] = P, t[47] = dt, t[48] = a?.graphObjectValues, t[49] = a?.xAxis?.axis, t[50] = a?.xAxis?.labels, t[51] = a?.yAxis?.gridLines, t[52] = a?.yAxis?.labels, t[53] = a?.yAxis?.title, t[54] = F, t[55] = Dt, t[56] = q, t[57] = tt, t[58] = L, t[59] = g, t[60] = Z, t[61] = _, t[62] = J, t[63] = j, t[64] = ht, t[65] = kt, t[66] = ot, t[67] = Ct, t[68] = G, t[69] = nt, t[70] = X, t[71] = ft;
|
|
1811
1811
|
} else
|
|
1812
|
-
|
|
1812
|
+
L = t[58], g = t[59], Z = t[60], _ = t[61], J = t[62], j = t[63], ht = t[64], kt = t[65], ot = t[66], Ct = t[67], G = t[68], nt = t[69], X = t[70], ft = t[71];
|
|
1813
1813
|
let pt;
|
|
1814
|
-
t[93] !==
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
] }), t[93] =
|
|
1814
|
+
t[93] !== L || t[94] !== nt || t[95] !== X ? (pt = /* @__PURE__ */ i.jsxs(L, { children: [
|
|
1815
|
+
nt,
|
|
1816
|
+
X
|
|
1817
|
+
] }), t[93] = L, t[94] = nt, t[95] = X, t[96] = pt) : pt = t[96];
|
|
1818
1818
|
let vt;
|
|
1819
|
-
t[97] !==
|
|
1819
|
+
t[97] !== f ? (vt = f.filter(Fs).map(Ps), t[97] = f, t[98] = vt) : vt = t[98];
|
|
1820
1820
|
let wt;
|
|
1821
|
-
t[99] !==
|
|
1821
|
+
t[99] !== Z || t[100] !== _ || t[101] !== J || t[102] !== j || t[103] !== pt || t[104] !== vt || t[105] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
|
|
1822
|
+
Z,
|
|
1822
1823
|
_,
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
D,
|
|
1824
|
+
J,
|
|
1825
|
+
j,
|
|
1826
1826
|
pt,
|
|
1827
1827
|
vt
|
|
1828
|
-
] }), t[99] =
|
|
1829
|
-
let
|
|
1830
|
-
t[107] !==
|
|
1828
|
+
] }), t[99] = Z, t[100] = _, t[101] = J, t[102] = j, t[103] = pt, t[104] = vt, t[105] = ft, t[106] = wt) : wt = t[106];
|
|
1829
|
+
let lt;
|
|
1830
|
+
t[107] !== g || t[108] !== ht || t[109] !== kt || t[110] !== ot || t[111] !== Ct || t[112] !== G || t[113] !== wt ? (lt = /* @__PURE__ */ i.jsx(g, { width: ht, height: kt, viewBox: ot, direction: Ct, ref: G, children: wt }), t[107] = g, t[108] = ht, t[109] = kt, t[110] = ot, t[111] = Ct, t[112] = G, t[113] = wt, t[114] = lt) : lt = t[114];
|
|
1831
1831
|
let At;
|
|
1832
|
-
t[115] !== s?.tooltip || t[116] !==
|
|
1832
|
+
t[115] !== s?.tooltip || t[116] !== S || t[117] !== Lt || t[118] !== c || t[119] !== a?.tooltip || t[120] !== rt ? (At = c && rt && S && Lt ? /* @__PURE__ */ i.jsx(Oe, { data: c, body: rt, xPos: S, yPos: Lt, backgroundStyle: a?.tooltip, className: s?.tooltip }) : null, t[115] = s?.tooltip, t[116] = S, t[117] = Lt, t[118] = c, t[119] = a?.tooltip, t[120] = rt, t[121] = At) : At = t[121];
|
|
1833
1833
|
let $t;
|
|
1834
|
-
t[122] !==
|
|
1835
|
-
|
|
1836
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof
|
|
1837
|
-
__html: Me(
|
|
1838
|
-
} : void 0, children: typeof
|
|
1834
|
+
t[122] !== H || t[123] !== h ? ($t = H && h !== void 0 ? /* @__PURE__ */ i.jsx($e, { open: h !== void 0, onClose: () => {
|
|
1835
|
+
V(void 0);
|
|
1836
|
+
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof H == "string" ? {
|
|
1837
|
+
__html: Me(H, h)
|
|
1838
|
+
} : void 0, children: typeof H == "function" ? H(h) : null }) }) : null, t[122] = H, t[123] = h, t[124] = $t) : $t = t[124];
|
|
1839
1839
|
let Ot;
|
|
1840
|
-
return t[125] !==
|
|
1841
|
-
|
|
1840
|
+
return t[125] !== lt || t[126] !== At || t[127] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1841
|
+
lt,
|
|
1842
1842
|
At,
|
|
1843
1843
|
$t
|
|
1844
|
-
] }), t[125] =
|
|
1844
|
+
] }), t[125] = lt, t[126] = At, t[127] = $t, t[128] = Ot) : Ot = t[128], Ot;
|
|
1845
1845
|
}
|
|
1846
1846
|
function Ps(e) {
|
|
1847
1847
|
return e.layer;
|
|
@@ -1873,103 +1873,103 @@ function Rs(e) {
|
|
|
1873
1873
|
function qs(e) {
|
|
1874
1874
|
const t = xe.c(43), {
|
|
1875
1875
|
data: m,
|
|
1876
|
-
graphTitle:
|
|
1876
|
+
graphTitle: D,
|
|
1877
1877
|
colors: Xt,
|
|
1878
1878
|
sources: St,
|
|
1879
1879
|
graphDescription: gt,
|
|
1880
|
-
barPadding:
|
|
1881
|
-
showTicks:
|
|
1882
|
-
truncateBy:
|
|
1883
|
-
height:
|
|
1884
|
-
width:
|
|
1885
|
-
footNote:
|
|
1886
|
-
colorDomain:
|
|
1887
|
-
colorLegendTitle:
|
|
1888
|
-
padding:
|
|
1889
|
-
backgroundColor:
|
|
1890
|
-
topMargin:
|
|
1891
|
-
bottomMargin:
|
|
1892
|
-
leftMargin:
|
|
1880
|
+
barPadding: tt,
|
|
1881
|
+
showTicks: ut,
|
|
1882
|
+
truncateBy: C,
|
|
1883
|
+
height: T,
|
|
1884
|
+
width: y,
|
|
1885
|
+
footNote: P,
|
|
1886
|
+
colorDomain: Dt,
|
|
1887
|
+
colorLegendTitle: rt,
|
|
1888
|
+
padding: zt,
|
|
1889
|
+
backgroundColor: F,
|
|
1890
|
+
topMargin: et,
|
|
1891
|
+
bottomMargin: dt,
|
|
1892
|
+
leftMargin: xt,
|
|
1893
1893
|
rightMargin: Tt,
|
|
1894
1894
|
tooltip: w,
|
|
1895
|
-
onSeriesMouseOver:
|
|
1896
|
-
suffix:
|
|
1897
|
-
prefix:
|
|
1898
|
-
showLabels:
|
|
1899
|
-
relativeHeight:
|
|
1900
|
-
showValues:
|
|
1901
|
-
refValues:
|
|
1902
|
-
graphID:
|
|
1903
|
-
maxValue:
|
|
1895
|
+
onSeriesMouseOver: it,
|
|
1896
|
+
suffix: W,
|
|
1897
|
+
prefix: Y,
|
|
1898
|
+
showLabels: K,
|
|
1899
|
+
relativeHeight: R,
|
|
1900
|
+
showValues: H,
|
|
1901
|
+
refValues: O,
|
|
1902
|
+
graphID: q,
|
|
1903
|
+
maxValue: I,
|
|
1904
1904
|
onSeriesMouseClick: a,
|
|
1905
1905
|
graphDownload: s,
|
|
1906
1906
|
dataDownload: n,
|
|
1907
1907
|
language: u,
|
|
1908
1908
|
labelOrder: d,
|
|
1909
|
-
minHeight:
|
|
1909
|
+
minHeight: f,
|
|
1910
1910
|
theme: x,
|
|
1911
1911
|
maxBarThickness: $,
|
|
1912
|
-
sortParameter:
|
|
1913
|
-
maxNumberOfBars:
|
|
1914
|
-
minBarThickness:
|
|
1912
|
+
sortParameter: Q,
|
|
1913
|
+
maxNumberOfBars: U,
|
|
1914
|
+
minBarThickness: ct,
|
|
1915
1915
|
showColorScale: Ft,
|
|
1916
1916
|
ariaLabel: Yt,
|
|
1917
|
-
resetSelectionOnDoubleClick:
|
|
1917
|
+
resetSelectionOnDoubleClick: E,
|
|
1918
1918
|
detailsOnClick: yt,
|
|
1919
1919
|
barAxisTitle: Bt,
|
|
1920
1920
|
noOfTicks: r,
|
|
1921
1921
|
valueColor: c,
|
|
1922
|
-
styles:
|
|
1922
|
+
styles: B,
|
|
1923
1923
|
classNames: h,
|
|
1924
|
-
filterNA:
|
|
1925
|
-
animate:
|
|
1924
|
+
filterNA: V,
|
|
1925
|
+
animate: S,
|
|
1926
1926
|
precision: A,
|
|
1927
|
-
customLayers:
|
|
1927
|
+
customLayers: Lt,
|
|
1928
1928
|
timeline: bt,
|
|
1929
|
-
naLabel:
|
|
1930
|
-
sortData:
|
|
1931
|
-
orientation:
|
|
1932
|
-
} = e,
|
|
1929
|
+
naLabel: st,
|
|
1930
|
+
sortData: mt,
|
|
1931
|
+
orientation: L
|
|
1932
|
+
} = e, g = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, Z = tt === void 0 ? 0.25 : tt, _ = ut === void 0 ? !0 : ut, J = C === void 0 ? 999 : C, j = F === void 0 ? !1 : F, ht = W === void 0 ? "" : W, kt = Y === void 0 ? "" : Y, ot = K === void 0 ? !0 : K, Ct = H === void 0 ? !0 : H, G = s === void 0 ? !1 : s, nt = n === void 0 ? !1 : n, X = u === void 0 ? "en" : u, ft = f === void 0 ? 0 : f, pt = x === void 0 ? "light" : x, vt = Ft === void 0 ? !0 : Ft, wt = E === void 0 ? !0 : E, lt = r === void 0 ? 5 : r, At = V === void 0 ? !0 : V, $t = S === void 0 ? !1 : S, Ot = A === void 0 ? 2 : A;
|
|
1933
1933
|
let b;
|
|
1934
|
-
t[0] !==
|
|
1935
|
-
const
|
|
1934
|
+
t[0] !== Lt ? (b = Lt === void 0 ? [] : Lt, t[0] = Lt, t[1] = b) : b = t[1];
|
|
1935
|
+
const at = b, It = bt === void 0 ? {
|
|
1936
1936
|
enabled: !1,
|
|
1937
1937
|
autoplay: !1,
|
|
1938
1938
|
showOnlyActiveDate: !0
|
|
1939
|
-
} : bt, Et =
|
|
1940
|
-
let
|
|
1941
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1939
|
+
} : bt, Et = st === void 0 ? "NA" : st, qt = (L === void 0 ? "vertical" : L) === "horizontal" ? Cs : Bs, [Nt, Kt] = Wt(0), [jt, Qt] = Wt(0), [Ut, Ht] = Wt(It.autoplay), Mt = Ze(De(m, "date", !0).map((Pt) => Be(`${Pt}`, It.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), lo), [Rt, Jt] = Wt(It.autoplay ? 0 : Mt.length - 1), [N, v] = Wt(void 0), k = de(null), o = de(null);
|
|
1940
|
+
let p, ee;
|
|
1941
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
|
|
1942
1942
|
const Pt = new ResizeObserver((ae) => {
|
|
1943
1943
|
Kt(ae[0].target.clientWidth || 620), Qt(ae[0].target.clientHeight || 480);
|
|
1944
1944
|
});
|
|
1945
|
-
return
|
|
1946
|
-
}, ee = [], t[2] =
|
|
1945
|
+
return k.current && Pt.observe(k.current), () => Pt.disconnect();
|
|
1946
|
+
}, ee = [], t[2] = p, t[3] = ee) : (p = t[2], ee = t[3]), we(p, ee), we(() => {
|
|
1947
1947
|
const Pt = setInterval(() => {
|
|
1948
|
-
Jt((ae) => ae <
|
|
1948
|
+
Jt((ae) => ae < Mt.length - 1 ? ae + 1 : 0);
|
|
1949
1949
|
}, (It.speed || 2) * 1e3);
|
|
1950
1950
|
return Ut || clearInterval(Pt), () => clearInterval(Pt);
|
|
1951
|
-
}, [
|
|
1952
|
-
const
|
|
1951
|
+
}, [Mt, Ut, It.speed]);
|
|
1952
|
+
const z = Ie(Mt, Rt, It.showOnlyActiveDate, It.dateFormat || "yyyy"), Vt = Qe, l = h?.graphContainer, ie = B?.graphContainer;
|
|
1953
1953
|
let se;
|
|
1954
|
-
t[4] !== h?.description || t[5] !== h?.title || t[6] !== m || t[7] !==
|
|
1955
|
-
title:
|
|
1956
|
-
description:
|
|
1954
|
+
t[4] !== h?.description || t[5] !== h?.title || t[6] !== m || t[7] !== nt || t[8] !== gt || t[9] !== G || t[10] !== D || t[11] !== B?.description || t[12] !== B?.title || t[13] !== y ? (se = D || gt || G || nt ? /* @__PURE__ */ i.jsx(Ge, { styles: {
|
|
1955
|
+
title: B?.title,
|
|
1956
|
+
description: B?.description
|
|
1957
1957
|
}, classNames: {
|
|
1958
1958
|
title: h?.title,
|
|
1959
1959
|
description: h?.description
|
|
1960
|
-
}, graphTitle:
|
|
1961
|
-
const me = It.enabled &&
|
|
1960
|
+
}, graphTitle: D, graphDescription: gt, width: y, graphDownload: G ? o : void 0, dataDownload: nt ? m.map(no).filter(oo).length > 0 ? m.map(so).filter(io) : m.filter(eo) : null }) : null, t[4] = h?.description, t[5] = h?.title, t[6] = m, t[7] = nt, t[8] = gt, t[9] = G, t[10] = D, t[11] = B?.description, t[12] = B?.title, t[13] = y, t[14] = se) : se = t[14];
|
|
1961
|
+
const me = It.enabled && Mt.length > 0 && z ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
1962
1962
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
1963
1963
|
Ht(!Ut);
|
|
1964
1964
|
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Ut ? "Click to pause animation" : "Click to play animation", children: Ut ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
|
|
1965
|
-
/* @__PURE__ */ i.jsx(Se, { min:
|
|
1966
|
-
Jt(
|
|
1965
|
+
/* @__PURE__ */ i.jsx(Se, { min: Mt[0], max: Mt[Mt.length - 1], marks: z, step: null, defaultValue: Mt[Mt.length - 1], value: Mt[Rt], onChangeComplete: (Pt) => {
|
|
1966
|
+
Jt(Mt.indexOf(Pt));
|
|
1967
1967
|
}, onChange: (Pt) => {
|
|
1968
|
-
Jt(
|
|
1968
|
+
Jt(Mt.indexOf(Pt));
|
|
1969
1969
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
1970
1970
|
] }) : null, fe = "grow flex flex-col justify-center gap-3 w-full", re = m.length === 0 ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1971
|
-
vt ? /* @__PURE__ */ i.jsx(Re, { width:
|
|
1972
|
-
/* @__PURE__ */ i.jsx(Ke, { ref:
|
|
1971
|
+
vt ? /* @__PURE__ */ i.jsx(Re, { width: y, colorDomain: Dt, colors: g, colorLegendTitle: rt, setSelectedColor: v, showNAColor: !1, className: h?.colorLegend }) : null,
|
|
1972
|
+
/* @__PURE__ */ i.jsx(Ke, { ref: k, children: Nt && jt ? /* @__PURE__ */ i.jsx(qt, { data: Q !== void 0 ? Q === "total" ? ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(Mt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(to) : Pt), Zs, [mt || "asc"]).filter((Pt, ae) => U ? ae < U : !0) : ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(Mt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Qs) : Pt), (Pt) => _t(Pt.size[Q]) ? -1 / 0 : Pt.size[Q], [mt || "asc"]).filter((Pt, ae) => U ? ae < U : !0) : ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(Mt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Ks) : Pt).filter((Pt, ae) => U ? ae < U : !0), barColors: g, width: Nt, height: jt, barPadding: Z, showTicks: _, leftMargin: xt, rightMargin: Tt, topMargin: et, bottomMargin: dt, truncateBy: J, showLabels: ot, tooltip: w, onSeriesMouseOver: it, showValues: Ct, suffix: ht, prefix: kt, refValues: O, maxValue: _t(I) ? Math.max(...m.map(Us)) : I, onSeriesMouseClick: a, selectedColor: N, rtl: X === "he" || X === "ar", labelOrder: d, maxBarThickness: $, minBarThickness: ct, resetSelectionOnDoubleClick: wt, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: lt, valueColor: c, classNames: h, styles: B, animate: $t === !0 ? {
|
|
1973
1973
|
duration: 0.5,
|
|
1974
1974
|
once: !0,
|
|
1975
1975
|
amount: 0.5
|
|
@@ -1977,25 +1977,25 @@ function qs(e) {
|
|
|
1977
1977
|
duration: 0,
|
|
1978
1978
|
once: !0,
|
|
1979
1979
|
amount: 0
|
|
1980
|
-
}, colorDomain:
|
|
1980
|
+
}, colorDomain: Dt, precision: Ot, customLayers: at, naLabel: Et }) : null })
|
|
1981
1981
|
] });
|
|
1982
1982
|
let oe;
|
|
1983
1983
|
t[15] !== re ? (oe = /* @__PURE__ */ i.jsx("div", { className: fe, children: re }), t[15] = re, t[16] = oe) : oe = t[16];
|
|
1984
1984
|
let le;
|
|
1985
|
-
t[17] !== h?.footnote || t[18] !== h?.source || t[19] !==
|
|
1986
|
-
footnote:
|
|
1987
|
-
source:
|
|
1985
|
+
t[17] !== h?.footnote || t[18] !== h?.source || t[19] !== P || t[20] !== St || t[21] !== B?.footnote || t[22] !== B?.source || t[23] !== y ? (le = St || P ? /* @__PURE__ */ i.jsx(We, { styles: {
|
|
1986
|
+
footnote: B?.footnote,
|
|
1987
|
+
source: B?.source
|
|
1988
1988
|
}, classNames: {
|
|
1989
1989
|
footnote: h?.footnote,
|
|
1990
1990
|
source: h?.source
|
|
1991
|
-
}, sources: St, footNote:
|
|
1991
|
+
}, sources: St, footNote: P, width: y }) : null, t[17] = h?.footnote, t[18] = h?.source, t[19] = P, t[20] = St, t[21] = B?.footnote, t[22] = B?.source, t[23] = y, t[24] = le) : le = t[24];
|
|
1992
1992
|
let Gt;
|
|
1993
|
-
return t[25] !==
|
|
1993
|
+
return t[25] !== Vt || t[26] !== Yt || t[27] !== j || t[28] !== q || t[29] !== T || t[30] !== X || t[31] !== ft || t[32] !== zt || t[33] !== R || t[34] !== l || t[35] !== ie || t[36] !== se || t[37] !== me || t[38] !== oe || t[39] !== le || t[40] !== pt || t[41] !== y ? (Gt = /* @__PURE__ */ i.jsxs(Vt, { className: l, style: ie, id: q, ref: o, "aria-label": Yt, backgroundColor: j, theme: pt, language: X, minHeight: ft, width: y, height: T, relativeHeight: R, padding: zt, children: [
|
|
1994
1994
|
se,
|
|
1995
1995
|
me,
|
|
1996
1996
|
oe,
|
|
1997
1997
|
le
|
|
1998
|
-
] }), t[25] =
|
|
1998
|
+
] }), t[25] = Vt, t[26] = Yt, t[27] = j, t[28] = q, t[29] = T, t[30] = X, t[31] = ft, t[32] = zt, t[33] = R, t[34] = l, t[35] = ie, t[36] = se, t[37] = me, t[38] = oe, t[39] = le, t[40] = pt, t[41] = y, t[42] = Gt) : Gt = t[42], Gt;
|
|
1999
1999
|
}
|
|
2000
2000
|
function Us(e) {
|
|
2001
2001
|
return ne(e.size.filter(Js)) || 0;
|
|
@@ -2039,193 +2039,193 @@ function lo(e, t) {
|
|
|
2039
2039
|
function Go(e) {
|
|
2040
2040
|
const t = xe.c(61), {
|
|
2041
2041
|
data: m,
|
|
2042
|
-
graphTitle:
|
|
2042
|
+
graphTitle: D,
|
|
2043
2043
|
colors: Xt,
|
|
2044
2044
|
barPadding: St,
|
|
2045
2045
|
showTicks: gt,
|
|
2046
|
-
leftMargin:
|
|
2047
|
-
rightMargin:
|
|
2048
|
-
topMargin:
|
|
2049
|
-
bottomMargin:
|
|
2050
|
-
truncateBy:
|
|
2051
|
-
showLabels:
|
|
2052
|
-
showValues:
|
|
2053
|
-
backgroundColor:
|
|
2054
|
-
suffix:
|
|
2055
|
-
prefix:
|
|
2056
|
-
sources:
|
|
2057
|
-
graphDescription:
|
|
2058
|
-
height:
|
|
2046
|
+
leftMargin: tt,
|
|
2047
|
+
rightMargin: ut,
|
|
2048
|
+
topMargin: C,
|
|
2049
|
+
bottomMargin: T,
|
|
2050
|
+
truncateBy: y,
|
|
2051
|
+
showLabels: P,
|
|
2052
|
+
showValues: Dt,
|
|
2053
|
+
backgroundColor: rt,
|
|
2054
|
+
suffix: zt,
|
|
2055
|
+
prefix: F,
|
|
2056
|
+
sources: et,
|
|
2057
|
+
graphDescription: dt,
|
|
2058
|
+
height: xt,
|
|
2059
2059
|
width: Tt,
|
|
2060
2060
|
footNote: w,
|
|
2061
|
-
colorDomain:
|
|
2062
|
-
colorLegendTitle:
|
|
2063
|
-
padding:
|
|
2064
|
-
relativeHeight:
|
|
2065
|
-
tooltip:
|
|
2066
|
-
onSeriesMouseOver:
|
|
2067
|
-
refValues:
|
|
2068
|
-
showColorScale:
|
|
2069
|
-
graphID:
|
|
2061
|
+
colorDomain: it,
|
|
2062
|
+
colorLegendTitle: W,
|
|
2063
|
+
padding: Y,
|
|
2064
|
+
relativeHeight: K,
|
|
2065
|
+
tooltip: R,
|
|
2066
|
+
onSeriesMouseOver: H,
|
|
2067
|
+
refValues: O,
|
|
2068
|
+
showColorScale: q,
|
|
2069
|
+
graphID: I,
|
|
2070
2070
|
maxValue: a,
|
|
2071
2071
|
minValue: s,
|
|
2072
2072
|
highlightedDataPoints: n,
|
|
2073
2073
|
onSeriesMouseClick: u,
|
|
2074
2074
|
graphDownload: d,
|
|
2075
|
-
dataDownload:
|
|
2075
|
+
dataDownload: f,
|
|
2076
2076
|
language: x,
|
|
2077
2077
|
theme: $,
|
|
2078
|
-
sortData:
|
|
2079
|
-
labelOrder:
|
|
2080
|
-
showNAColor:
|
|
2078
|
+
sortData: Q,
|
|
2079
|
+
labelOrder: U,
|
|
2080
|
+
showNAColor: ct,
|
|
2081
2081
|
minHeight: Ft,
|
|
2082
2082
|
maxBarThickness: Yt,
|
|
2083
|
-
maxNumberOfBars:
|
|
2083
|
+
maxNumberOfBars: E,
|
|
2084
2084
|
minBarThickness: yt,
|
|
2085
2085
|
ariaLabel: Bt,
|
|
2086
2086
|
resetSelectionOnDoubleClick: r,
|
|
2087
2087
|
detailsOnClick: c,
|
|
2088
|
-
barAxisTitle:
|
|
2088
|
+
barAxisTitle: B,
|
|
2089
2089
|
noOfTicks: h,
|
|
2090
|
-
valueColor:
|
|
2091
|
-
orientation:
|
|
2090
|
+
valueColor: V,
|
|
2091
|
+
orientation: S,
|
|
2092
2092
|
styles: A,
|
|
2093
|
-
classNames:
|
|
2093
|
+
classNames: Lt,
|
|
2094
2094
|
filterNA: bt,
|
|
2095
|
-
animate:
|
|
2096
|
-
dimmedOpacity:
|
|
2097
|
-
precision:
|
|
2098
|
-
customLayers:
|
|
2099
|
-
timeline:
|
|
2100
|
-
naLabel:
|
|
2101
|
-
} = e,
|
|
2102
|
-
let
|
|
2103
|
-
return t[0] !==
|
|
2095
|
+
animate: st,
|
|
2096
|
+
dimmedOpacity: mt,
|
|
2097
|
+
precision: L,
|
|
2098
|
+
customLayers: g,
|
|
2099
|
+
timeline: Z,
|
|
2100
|
+
naLabel: _
|
|
2101
|
+
} = e, J = S === void 0 ? "vertical" : S;
|
|
2102
|
+
let j;
|
|
2103
|
+
return t[0] !== st || t[1] !== Bt || t[2] !== rt || t[3] !== B || t[4] !== St || t[5] !== T || t[6] !== Lt || t[7] !== it || t[8] !== W || t[9] !== Xt || t[10] !== g || t[11] !== m || t[12] !== f || t[13] !== c || t[14] !== mt || t[15] !== bt || t[16] !== w || t[17] !== dt || t[18] !== d || t[19] !== I || t[20] !== D || t[21] !== xt || t[22] !== n || t[23] !== U || t[24] !== x || t[25] !== tt || t[26] !== Yt || t[27] !== E || t[28] !== a || t[29] !== yt || t[30] !== Ft || t[31] !== s || t[32] !== _ || t[33] !== h || t[34] !== u || t[35] !== H || t[36] !== J || t[37] !== Y || t[38] !== L || t[39] !== F || t[40] !== O || t[41] !== K || t[42] !== r || t[43] !== ut || t[44] !== q || t[45] !== P || t[46] !== ct || t[47] !== gt || t[48] !== Dt || t[49] !== Q || t[50] !== et || t[51] !== A || t[52] !== zt || t[53] !== $ || t[54] !== Z || t[55] !== R || t[56] !== C || t[57] !== y || t[58] !== V || t[59] !== Tt ? (j = /* @__PURE__ */ i.jsx(cs, { data: m, graphTitle: D, colors: Xt, barPadding: St, showTicks: gt, leftMargin: tt, rightMargin: ut, topMargin: C, bottomMargin: T, truncateBy: y, showLabels: P, showValues: Dt, backgroundColor: rt, suffix: zt, prefix: F, sources: et, graphDescription: dt, height: xt, width: Tt, footNote: w, colorDomain: it, colorLegendTitle: W, padding: Y, relativeHeight: K, tooltip: R, onSeriesMouseOver: H, refValues: O, showColorScale: q, graphID: I, maxValue: a, minValue: s, highlightedDataPoints: n, onSeriesMouseClick: u, graphDownload: d, dataDownload: f, language: x, theme: $, sortData: Q, labelOrder: U, showNAColor: ct, minHeight: Ft, maxBarThickness: Yt, maxNumberOfBars: E, minBarThickness: yt, ariaLabel: Bt, resetSelectionOnDoubleClick: r, styles: A, detailsOnClick: c, barAxisTitle: B, noOfTicks: h, valueColor: V, classNames: Lt, filterNA: bt, animate: st, dimmedOpacity: mt, precision: L, customLayers: g, timeline: Z, naLabel: _, orientation: J }), t[0] = st, t[1] = Bt, t[2] = rt, t[3] = B, t[4] = St, t[5] = T, t[6] = Lt, t[7] = it, t[8] = W, t[9] = Xt, t[10] = g, t[11] = m, t[12] = f, t[13] = c, t[14] = mt, t[15] = bt, t[16] = w, t[17] = dt, t[18] = d, t[19] = I, t[20] = D, t[21] = xt, t[22] = n, t[23] = U, t[24] = x, t[25] = tt, t[26] = Yt, t[27] = E, t[28] = a, t[29] = yt, t[30] = Ft, t[31] = s, t[32] = _, t[33] = h, t[34] = u, t[35] = H, t[36] = J, t[37] = Y, t[38] = L, t[39] = F, t[40] = O, t[41] = K, t[42] = r, t[43] = ut, t[44] = q, t[45] = P, t[46] = ct, t[47] = gt, t[48] = Dt, t[49] = Q, t[50] = et, t[51] = A, t[52] = zt, t[53] = $, t[54] = Z, t[55] = R, t[56] = C, t[57] = y, t[58] = V, t[59] = Tt, t[60] = j) : j = t[60], j;
|
|
2104
2104
|
}
|
|
2105
2105
|
function Wo(e) {
|
|
2106
2106
|
const t = xe.c(57), {
|
|
2107
2107
|
data: m,
|
|
2108
|
-
graphTitle:
|
|
2108
|
+
graphTitle: D,
|
|
2109
2109
|
colors: Xt,
|
|
2110
2110
|
sources: St,
|
|
2111
2111
|
graphDescription: gt,
|
|
2112
|
-
barPadding:
|
|
2113
|
-
showTicks:
|
|
2114
|
-
truncateBy:
|
|
2115
|
-
height:
|
|
2116
|
-
width:
|
|
2117
|
-
footNote:
|
|
2118
|
-
colorDomain:
|
|
2119
|
-
colorLegendTitle:
|
|
2120
|
-
suffix:
|
|
2121
|
-
prefix:
|
|
2122
|
-
showValues:
|
|
2123
|
-
padding:
|
|
2124
|
-
backgroundColor:
|
|
2112
|
+
barPadding: tt,
|
|
2113
|
+
showTicks: ut,
|
|
2114
|
+
truncateBy: C,
|
|
2115
|
+
height: T,
|
|
2116
|
+
width: y,
|
|
2117
|
+
footNote: P,
|
|
2118
|
+
colorDomain: Dt,
|
|
2119
|
+
colorLegendTitle: rt,
|
|
2120
|
+
suffix: zt,
|
|
2121
|
+
prefix: F,
|
|
2122
|
+
showValues: et,
|
|
2123
|
+
padding: dt,
|
|
2124
|
+
backgroundColor: xt,
|
|
2125
2125
|
leftMargin: Tt,
|
|
2126
2126
|
rightMargin: w,
|
|
2127
|
-
topMargin:
|
|
2128
|
-
bottomMargin:
|
|
2129
|
-
showLabels:
|
|
2130
|
-
relativeHeight:
|
|
2131
|
-
tooltip:
|
|
2132
|
-
onSeriesMouseOver:
|
|
2133
|
-
refValues:
|
|
2134
|
-
graphID:
|
|
2135
|
-
maxValue:
|
|
2127
|
+
topMargin: it,
|
|
2128
|
+
bottomMargin: W,
|
|
2129
|
+
showLabels: Y,
|
|
2130
|
+
relativeHeight: K,
|
|
2131
|
+
tooltip: R,
|
|
2132
|
+
onSeriesMouseOver: H,
|
|
2133
|
+
refValues: O,
|
|
2134
|
+
graphID: q,
|
|
2135
|
+
maxValue: I,
|
|
2136
2136
|
minValue: a,
|
|
2137
2137
|
onSeriesMouseClick: s,
|
|
2138
2138
|
graphDownload: n,
|
|
2139
2139
|
dataDownload: u,
|
|
2140
2140
|
language: d,
|
|
2141
|
-
labelOrder:
|
|
2141
|
+
labelOrder: f,
|
|
2142
2142
|
minHeight: x,
|
|
2143
2143
|
theme: $,
|
|
2144
|
-
sortParameter:
|
|
2145
|
-
sortData:
|
|
2146
|
-
maxBarThickness:
|
|
2144
|
+
sortParameter: Q,
|
|
2145
|
+
sortData: U,
|
|
2146
|
+
maxBarThickness: ct,
|
|
2147
2147
|
ariaLabel: Ft,
|
|
2148
2148
|
resetSelectionOnDoubleClick: Yt,
|
|
2149
|
-
detailsOnClick:
|
|
2149
|
+
detailsOnClick: E,
|
|
2150
2150
|
barAxisTitle: yt,
|
|
2151
2151
|
noOfTicks: Bt,
|
|
2152
2152
|
valueColor: r,
|
|
2153
2153
|
orientation: c,
|
|
2154
|
-
styles:
|
|
2154
|
+
styles: B,
|
|
2155
2155
|
classNames: h,
|
|
2156
|
-
filterNA:
|
|
2157
|
-
animate:
|
|
2156
|
+
filterNA: V,
|
|
2157
|
+
animate: S,
|
|
2158
2158
|
precision: A,
|
|
2159
|
-
customLayers:
|
|
2159
|
+
customLayers: Lt,
|
|
2160
2160
|
showColorScale: bt,
|
|
2161
|
-
timeline:
|
|
2162
|
-
naLabel:
|
|
2163
|
-
} = e,
|
|
2164
|
-
let
|
|
2165
|
-
return t[0] !==
|
|
2161
|
+
timeline: st,
|
|
2162
|
+
naLabel: mt
|
|
2163
|
+
} = e, L = c === void 0 ? "vertical" : c;
|
|
2164
|
+
let g;
|
|
2165
|
+
return t[0] !== S || t[1] !== Ft || t[2] !== xt || t[3] !== yt || t[4] !== tt || t[5] !== W || t[6] !== h || t[7] !== Dt || t[8] !== rt || t[9] !== Xt || t[10] !== Lt || t[11] !== m || t[12] !== u || t[13] !== E || t[14] !== V || t[15] !== P || t[16] !== gt || t[17] !== n || t[18] !== q || t[19] !== D || t[20] !== T || t[21] !== f || t[22] !== d || t[23] !== Tt || t[24] !== ct || t[25] !== I || t[26] !== x || t[27] !== a || t[28] !== mt || t[29] !== Bt || t[30] !== s || t[31] !== H || t[32] !== L || t[33] !== dt || t[34] !== A || t[35] !== F || t[36] !== O || t[37] !== K || t[38] !== Yt || t[39] !== w || t[40] !== bt || t[41] !== Y || t[42] !== ut || t[43] !== et || t[44] !== U || t[45] !== Q || t[46] !== St || t[47] !== B || t[48] !== zt || t[49] !== $ || t[50] !== st || t[51] !== R || t[52] !== it || t[53] !== C || t[54] !== r || t[55] !== y ? (g = /* @__PURE__ */ i.jsx(bi, { orientation: L, data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: tt, showTicks: ut, truncateBy: C, height: T, width: y, footNote: P, colorDomain: Dt, colorLegendTitle: rt, suffix: zt, prefix: F, showValues: et, padding: dt, backgroundColor: xt, leftMargin: Tt, rightMargin: w, sortParameter: Q, sortData: U, topMargin: it, bottomMargin: W, showLabels: Y, relativeHeight: K, tooltip: R, onSeriesMouseOver: H, refValues: O, graphID: q, maxValue: I, minValue: a, onSeriesMouseClick: s, graphDownload: n, dataDownload: u, language: d, labelOrder: f, minHeight: x, theme: $, maxBarThickness: ct, ariaLabel: Ft, resetSelectionOnDoubleClick: Yt, styles: B, detailsOnClick: E, barAxisTitle: yt, noOfTicks: Bt, valueColor: r, classNames: h, filterNA: V, animate: S, precision: A, customLayers: Lt, showColorScale: bt, timeline: st, naLabel: mt }), t[0] = S, t[1] = Ft, t[2] = xt, t[3] = yt, t[4] = tt, t[5] = W, t[6] = h, t[7] = Dt, t[8] = rt, t[9] = Xt, t[10] = Lt, t[11] = m, t[12] = u, t[13] = E, t[14] = V, t[15] = P, t[16] = gt, t[17] = n, t[18] = q, t[19] = D, t[20] = T, t[21] = f, t[22] = d, t[23] = Tt, t[24] = ct, t[25] = I, t[26] = x, t[27] = a, t[28] = mt, t[29] = Bt, t[30] = s, t[31] = H, t[32] = L, t[33] = dt, t[34] = A, t[35] = F, t[36] = O, t[37] = K, t[38] = Yt, t[39] = w, t[40] = bt, t[41] = Y, t[42] = ut, t[43] = et, t[44] = U, t[45] = Q, t[46] = St, t[47] = B, t[48] = zt, t[49] = $, t[50] = st, t[51] = R, t[52] = it, t[53] = C, t[54] = r, t[55] = y, t[56] = g) : g = t[56], g;
|
|
2166
2166
|
}
|
|
2167
2167
|
function Ro(e) {
|
|
2168
2168
|
const t = xe.c(58), {
|
|
2169
2169
|
data: m,
|
|
2170
|
-
graphTitle:
|
|
2170
|
+
graphTitle: D,
|
|
2171
2171
|
colors: Xt,
|
|
2172
2172
|
sources: St,
|
|
2173
2173
|
graphDescription: gt,
|
|
2174
|
-
barPadding:
|
|
2175
|
-
showTicks:
|
|
2176
|
-
leftMargin:
|
|
2177
|
-
rightMargin:
|
|
2178
|
-
topMargin:
|
|
2179
|
-
bottomMargin:
|
|
2180
|
-
truncateBy:
|
|
2181
|
-
showLabels:
|
|
2182
|
-
showValues:
|
|
2183
|
-
backgroundColor:
|
|
2184
|
-
suffix:
|
|
2185
|
-
prefix:
|
|
2186
|
-
height:
|
|
2174
|
+
barPadding: tt,
|
|
2175
|
+
showTicks: ut,
|
|
2176
|
+
leftMargin: C,
|
|
2177
|
+
rightMargin: T,
|
|
2178
|
+
topMargin: y,
|
|
2179
|
+
bottomMargin: P,
|
|
2180
|
+
truncateBy: Dt,
|
|
2181
|
+
showLabels: rt,
|
|
2182
|
+
showValues: zt,
|
|
2183
|
+
backgroundColor: F,
|
|
2184
|
+
suffix: et,
|
|
2185
|
+
prefix: dt,
|
|
2186
|
+
height: xt,
|
|
2187
2187
|
width: Tt,
|
|
2188
2188
|
footNote: w,
|
|
2189
|
-
colorDomain:
|
|
2190
|
-
colorLegendTitle:
|
|
2191
|
-
padding:
|
|
2192
|
-
tooltip:
|
|
2193
|
-
onSeriesMouseOver:
|
|
2194
|
-
relativeHeight:
|
|
2195
|
-
refValues:
|
|
2196
|
-
graphID:
|
|
2197
|
-
maxValue:
|
|
2189
|
+
colorDomain: it,
|
|
2190
|
+
colorLegendTitle: W,
|
|
2191
|
+
padding: Y,
|
|
2192
|
+
tooltip: K,
|
|
2193
|
+
onSeriesMouseOver: R,
|
|
2194
|
+
relativeHeight: H,
|
|
2195
|
+
refValues: O,
|
|
2196
|
+
graphID: q,
|
|
2197
|
+
maxValue: I,
|
|
2198
2198
|
onSeriesMouseClick: a,
|
|
2199
2199
|
graphDownload: s,
|
|
2200
2200
|
dataDownload: n,
|
|
2201
2201
|
language: u,
|
|
2202
2202
|
theme: d,
|
|
2203
|
-
labelOrder:
|
|
2203
|
+
labelOrder: f,
|
|
2204
2204
|
minHeight: x,
|
|
2205
2205
|
maxBarThickness: $,
|
|
2206
|
-
sortParameter:
|
|
2207
|
-
sortData:
|
|
2208
|
-
maxNumberOfBars:
|
|
2206
|
+
sortParameter: Q,
|
|
2207
|
+
sortData: U,
|
|
2208
|
+
maxNumberOfBars: ct,
|
|
2209
2209
|
minBarThickness: Ft,
|
|
2210
2210
|
ariaLabel: Yt,
|
|
2211
|
-
resetSelectionOnDoubleClick:
|
|
2211
|
+
resetSelectionOnDoubleClick: E,
|
|
2212
2212
|
detailsOnClick: yt,
|
|
2213
2213
|
barAxisTitle: Bt,
|
|
2214
2214
|
noOfTicks: r,
|
|
2215
2215
|
valueColor: c,
|
|
2216
|
-
orientation:
|
|
2216
|
+
orientation: B,
|
|
2217
2217
|
styles: h,
|
|
2218
|
-
classNames:
|
|
2219
|
-
filterNA:
|
|
2218
|
+
classNames: V,
|
|
2219
|
+
filterNA: S,
|
|
2220
2220
|
animate: A,
|
|
2221
|
-
precision:
|
|
2221
|
+
precision: Lt,
|
|
2222
2222
|
customLayers: bt,
|
|
2223
|
-
showColorScale:
|
|
2224
|
-
timeline:
|
|
2225
|
-
naLabel:
|
|
2226
|
-
} = e,
|
|
2227
|
-
let
|
|
2228
|
-
return t[0] !== A || t[1] !== Yt || t[2] !==
|
|
2223
|
+
showColorScale: st,
|
|
2224
|
+
timeline: mt,
|
|
2225
|
+
naLabel: L
|
|
2226
|
+
} = e, g = B === void 0 ? "vertical" : B;
|
|
2227
|
+
let Z;
|
|
2228
|
+
return t[0] !== A || t[1] !== Yt || t[2] !== F || t[3] !== Bt || t[4] !== tt || t[5] !== P || t[6] !== V || t[7] !== it || t[8] !== W || t[9] !== Xt || t[10] !== bt || t[11] !== m || t[12] !== n || t[13] !== yt || t[14] !== S || t[15] !== w || t[16] !== gt || t[17] !== s || t[18] !== q || t[19] !== D || t[20] !== xt || t[21] !== f || t[22] !== u || t[23] !== C || t[24] !== $ || t[25] !== ct || t[26] !== I || t[27] !== Ft || t[28] !== x || t[29] !== L || t[30] !== r || t[31] !== a || t[32] !== R || t[33] !== g || t[34] !== Y || t[35] !== Lt || t[36] !== dt || t[37] !== O || t[38] !== H || t[39] !== E || t[40] !== T || t[41] !== st || t[42] !== rt || t[43] !== ut || t[44] !== zt || t[45] !== U || t[46] !== Q || t[47] !== St || t[48] !== h || t[49] !== et || t[50] !== d || t[51] !== mt || t[52] !== K || t[53] !== y || t[54] !== Dt || t[55] !== c || t[56] !== Tt ? (Z = /* @__PURE__ */ i.jsx(qs, { data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: tt, showTicks: ut, leftMargin: C, rightMargin: T, topMargin: y, bottomMargin: P, truncateBy: Dt, showLabels: rt, showValues: zt, backgroundColor: F, suffix: et, prefix: dt, height: xt, width: Tt, footNote: w, colorDomain: it, colorLegendTitle: W, padding: Y, tooltip: K, onSeriesMouseOver: R, relativeHeight: H, refValues: O, graphID: q, maxValue: I, onSeriesMouseClick: a, graphDownload: s, dataDownload: n, language: u, theme: d, labelOrder: f, minHeight: x, maxBarThickness: $, sortParameter: Q, sortData: U, maxNumberOfBars: ct, minBarThickness: Ft, ariaLabel: Yt, resetSelectionOnDoubleClick: E, styles: h, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: r, valueColor: c, classNames: V, filterNA: S, animate: A, precision: Lt, customLayers: bt, showColorScale: st, timeline: mt, naLabel: L, orientation: g }), t[0] = A, t[1] = Yt, t[2] = F, t[3] = Bt, t[4] = tt, t[5] = P, t[6] = V, t[7] = it, t[8] = W, t[9] = Xt, t[10] = bt, t[11] = m, t[12] = n, t[13] = yt, t[14] = S, t[15] = w, t[16] = gt, t[17] = s, t[18] = q, t[19] = D, t[20] = xt, t[21] = f, t[22] = u, t[23] = C, t[24] = $, t[25] = ct, t[26] = I, t[27] = Ft, t[28] = x, t[29] = L, t[30] = r, t[31] = a, t[32] = R, t[33] = g, t[34] = Y, t[35] = Lt, t[36] = dt, t[37] = O, t[38] = H, t[39] = E, t[40] = T, t[41] = st, t[42] = rt, t[43] = ut, t[44] = zt, t[45] = U, t[46] = Q, t[47] = St, t[48] = h, t[49] = et, t[50] = d, t[51] = mt, t[52] = K, t[53] = y, t[54] = Dt, t[55] = c, t[56] = Tt, t[57] = Z) : Z = t[57], Z;
|
|
2229
2229
|
}
|
|
2230
2230
|
export {
|
|
2231
2231
|
Wo as GroupedBarGraph,
|