@undp/data-viz 2.0.4 → 2.0.6
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/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +2 -0
- package/dist/BulletChart.js +515 -508
- package/dist/BulletChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +3 -1
- package/dist/ThreeDGlobe.js +317 -277
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/package.json +2 -1
package/dist/BulletChart.js
CHANGED
|
@@ -1,224 +1,226 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { o as
|
|
4
|
-
import { i as
|
|
5
|
-
import { l as
|
|
1
|
+
import { c as Vi, j as n, m as zi } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as Mi, useState as oi, useEffect as Ri } from "react";
|
|
3
|
+
import { o as Si } from "./index-BZQYSqar.js";
|
|
4
|
+
import { i as ji } from "./index-Bwrro8-q.js";
|
|
5
|
+
import { l as Ci } from "./Modal-DGcuAHyK.js";
|
|
6
6
|
import { s as pi } from "./index-CeVNqhMO.js";
|
|
7
|
-
import { n as
|
|
8
|
-
import { T as
|
|
7
|
+
import { n as Ai } from "./numberFormattingFunction-14YCbkN2.js";
|
|
8
|
+
import { T as ki } from "./Tooltip-CwWUegPB.js";
|
|
9
9
|
import { c as p } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
10
|
-
import { s as
|
|
11
|
-
import { A as
|
|
12
|
-
import { A as
|
|
13
|
-
import { X as
|
|
14
|
-
import { R as
|
|
15
|
-
import { Y as
|
|
16
|
-
import { X as
|
|
17
|
-
import { Y as
|
|
18
|
-
import { a as
|
|
10
|
+
import { s as Li } from "./string2HTML-DhG75NqA.js";
|
|
11
|
+
import { A as Oi } from "./Axis-CRyfcLjc.js";
|
|
12
|
+
import { A as Ni } from "./AxisTitle-jeI7am8o.js";
|
|
13
|
+
import { X as qi } from "./XAxesLabels-Dy8E1SEo.js";
|
|
14
|
+
import { R as Fi, a as Bi } from "./ReferenceLine-2XCwHXQ4.js";
|
|
15
|
+
import { Y as Pi } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
16
|
+
import { X as Hi } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
17
|
+
import { Y as Xi } from "./YAxesLabels-a57ZRv-0.js";
|
|
18
|
+
import { a as Ti } from "./linear-BwnDd9KF.js";
|
|
19
19
|
import { b as $i } from "./band-CyHaVft5.js";
|
|
20
20
|
import { u as Ii } from "./use-in-view-Cxa7y1TH.js";
|
|
21
|
-
import { m as
|
|
22
|
-
import { A as
|
|
23
|
-
import { Colors as
|
|
24
|
-
import { E as
|
|
25
|
-
import { a as
|
|
26
|
-
import { GraphFooter as
|
|
27
|
-
import { GraphHeader as
|
|
28
|
-
import { ColorLegend as
|
|
29
|
-
function
|
|
30
|
-
const t =
|
|
21
|
+
import { m as dt } from "./proxy-BxkFHwUw.js";
|
|
22
|
+
import { A as Di } from "./index-BqfRwk1n.js";
|
|
23
|
+
import { Colors as wi } from "./Colors.js";
|
|
24
|
+
import { E as Yi } from "./EmptyState-BZo1BbAn.js";
|
|
25
|
+
import { a as Ei, G as Gi } from "./GraphContainer-CRqzdKu2.js";
|
|
26
|
+
import { GraphFooter as Wi } from "./GraphFooter.js";
|
|
27
|
+
import { GraphHeader as Ui } from "./GraphHeader.js";
|
|
28
|
+
import { ColorLegend as Ji } from "./ColorLegend.js";
|
|
29
|
+
function Ki(i) {
|
|
30
|
+
const t = Vi.c(155), {
|
|
31
31
|
data: a,
|
|
32
|
-
width:
|
|
33
|
-
height:
|
|
34
|
-
barColor:
|
|
35
|
-
suffix:
|
|
36
|
-
prefix:
|
|
37
|
-
barPadding:
|
|
38
|
-
showLabels:
|
|
39
|
-
showValues:
|
|
32
|
+
width: yt,
|
|
33
|
+
height: Ut,
|
|
34
|
+
barColor: Rt,
|
|
35
|
+
suffix: bt,
|
|
36
|
+
prefix: C,
|
|
37
|
+
barPadding: St,
|
|
38
|
+
showLabels: qt,
|
|
39
|
+
showValues: Jt,
|
|
40
40
|
showTicks: ii,
|
|
41
|
-
truncateBy:
|
|
41
|
+
truncateBy: Kt,
|
|
42
42
|
leftMargin: ei,
|
|
43
|
-
rightMargin:
|
|
44
|
-
topMargin:
|
|
43
|
+
rightMargin: Ft,
|
|
44
|
+
topMargin: Qt,
|
|
45
45
|
bottomMargin: ri,
|
|
46
|
-
tooltip:
|
|
47
|
-
onSeriesMouseOver:
|
|
48
|
-
refValues:
|
|
46
|
+
tooltip: ct,
|
|
47
|
+
onSeriesMouseOver: ut,
|
|
48
|
+
refValues: vt,
|
|
49
49
|
maxValue: d,
|
|
50
|
-
minValue:
|
|
51
|
-
highlightedDataPoints:
|
|
52
|
-
onSeriesMouseClick:
|
|
53
|
-
labelOrder:
|
|
54
|
-
maxBarThickness:
|
|
55
|
-
minBarThickness:
|
|
56
|
-
resetSelectionOnDoubleClick:
|
|
50
|
+
minValue: mt,
|
|
51
|
+
highlightedDataPoints: Z,
|
|
52
|
+
onSeriesMouseClick: nt,
|
|
53
|
+
labelOrder: B,
|
|
54
|
+
maxBarThickness: Bt,
|
|
55
|
+
minBarThickness: wt,
|
|
56
|
+
resetSelectionOnDoubleClick: Pt,
|
|
57
57
|
detailsOnClick: k,
|
|
58
58
|
barAxisTitle: A,
|
|
59
|
-
valueColor:
|
|
60
|
-
noOfTicks:
|
|
61
|
-
styles:
|
|
59
|
+
valueColor: _,
|
|
60
|
+
noOfTicks: Mt,
|
|
61
|
+
styles: f,
|
|
62
62
|
classNames: l,
|
|
63
|
-
targetStyle:
|
|
64
|
-
targetColor:
|
|
65
|
-
qualitativeRangeColors:
|
|
66
|
-
measureBarWidthFactor:
|
|
67
|
-
animate:
|
|
63
|
+
targetStyle: h,
|
|
64
|
+
targetColor: P,
|
|
65
|
+
qualitativeRangeColors: tt,
|
|
66
|
+
measureBarWidthFactor: g,
|
|
67
|
+
animate: o,
|
|
68
68
|
dimmedOpacity: u,
|
|
69
|
-
precision:
|
|
70
|
-
customLayers:
|
|
71
|
-
naLabel: L
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
69
|
+
precision: lt,
|
|
70
|
+
customLayers: it,
|
|
71
|
+
naLabel: L,
|
|
72
|
+
targetLineThickness: Zt
|
|
73
|
+
} = i, H = ei === void 0 ? 20 : ei, Ht = Ft === void 0 ? 20 : Ft, ai = Qt === void 0 ? 20 : Qt, Xt = ri === void 0 ? 25 : ri, ci = Mi(null);
|
|
74
|
+
let ni;
|
|
75
|
+
t[0] !== o.amount || t[1] !== o.once ? (ni = {
|
|
76
|
+
once: o.once,
|
|
77
|
+
amount: o.amount
|
|
78
|
+
}, t[0] = o.amount, t[1] = o.once, t[2] = ni) : ni = t[2];
|
|
79
|
+
const O = Ii(ci, ni), X = A ? H + 30 : H;
|
|
80
|
+
let Yt;
|
|
81
|
+
t[3] !== Xt || t[4] !== Ht || t[5] !== X || t[6] !== ai ? (Yt = {
|
|
81
82
|
top: ai,
|
|
82
|
-
bottom:
|
|
83
|
-
left:
|
|
84
|
-
right:
|
|
85
|
-
}, t[3] =
|
|
86
|
-
const
|
|
87
|
-
let
|
|
88
|
-
t[8] !== a ? (
|
|
89
|
-
const
|
|
90
|
-
let Mt;
|
|
91
|
-
t[10] !== a ? (Mt = Math.max(...a.filter(ge).map(pe)) < 0 ? 0 : Math.max(...a.filter(xe).map(fe)), t[10] = a, t[11] = Mt) : Mt = t[11];
|
|
92
|
-
const At = Mt;
|
|
93
|
-
let Vt;
|
|
94
|
-
t[12] !== a ? (Vt = Math.max(...a.map(me)), t[12] = a, t[13] = Vt) : Vt = t[13];
|
|
95
|
-
const zt = Vt;
|
|
83
|
+
bottom: Xt,
|
|
84
|
+
left: X,
|
|
85
|
+
right: Ht
|
|
86
|
+
}, t[3] = Xt, t[4] = Ht, t[5] = X, t[6] = ai, t[7] = Yt) : Yt = t[7];
|
|
87
|
+
const x = Yt, [N, li] = oi(void 0), [T, ft] = oi(void 0), [At, _t] = oi(void 0), [ti, Et] = oi(void 0), m = yt - x.left - x.right, Vt = Ut - x.top - x.bottom;
|
|
88
|
+
let et;
|
|
89
|
+
t[8] !== a ? (et = Math.max(...a.filter(we).map(ve)) < 0 ? 0 : Math.max(...a.filter(be).map(ye)), t[8] = a, t[9] = et) : et = t[9];
|
|
90
|
+
const zt = et;
|
|
96
91
|
let jt;
|
|
97
|
-
t[
|
|
92
|
+
t[10] !== a ? (jt = Math.max(...a.filter(de).map(pe)) < 0 ? 0 : Math.max(...a.filter(ge).map(xe)), t[10] = a, t[11] = jt) : jt = t[11];
|
|
98
93
|
const Ct = jt;
|
|
99
|
-
let Ht;
|
|
100
|
-
t[19] !== a ? (Ht = Math.min(...a.filter(ue).map(ce)) >= 0 ? 0 : Math.min(...a.filter(re).map(oe)), t[19] = a, t[20] = Ht) : Ht = t[20];
|
|
101
|
-
const Ot = Ht;
|
|
102
94
|
let kt;
|
|
103
|
-
t[
|
|
104
|
-
const
|
|
105
|
-
let
|
|
106
|
-
t[
|
|
107
|
-
const
|
|
108
|
-
let
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
95
|
+
t[12] !== a ? (kt = Math.max(...a.map(fe)), t[12] = a, t[13] = kt) : kt = t[13];
|
|
96
|
+
const Lt = kt;
|
|
97
|
+
let Ot;
|
|
98
|
+
t[14] !== zt || t[15] !== d || t[16] !== Lt || t[17] !== Ct ? (Ot = p(d) ? Math.max(...[zt, Ct, Lt].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[zt, Ct, Lt].filter(Number.isFinite)) : d, t[14] = zt, t[15] = d, t[16] = Lt, t[17] = Ct, t[18] = Ot) : Ot = t[18];
|
|
99
|
+
const Nt = Ot;
|
|
100
|
+
let Gt;
|
|
101
|
+
t[19] !== a ? (Gt = Math.min(...a.filter(me).map(ue)) >= 0 ? 0 : Math.min(...a.filter(ce).map(re)), t[19] = a, t[20] = Gt) : Gt = t[20];
|
|
102
|
+
const Tt = Gt;
|
|
103
|
+
let $t;
|
|
104
|
+
t[21] !== a ? ($t = Math.min(...a.filter(oe).map(se)) >= 0 ? 0 : Math.min(...a.filter(le).map(ne)), t[21] = a, t[22] = $t) : $t = t[22];
|
|
105
|
+
const ht = $t;
|
|
106
|
+
let It;
|
|
107
|
+
t[23] !== Tt || t[24] !== mt || t[25] !== ht ? (It = p(mt) ? Math.min(...[Tt, ht].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[Tt, ht].filter(Number.isFinite)) : mt, t[23] = Tt, t[24] = mt, t[25] = ht, t[26] = It) : It = t[26];
|
|
108
|
+
const b = It;
|
|
109
|
+
let $, I, Y, E, D, G, W, v, V, z, R, S, w, M;
|
|
110
|
+
if (t[27] !== o || t[28] !== A || t[29] !== Rt || t[30] !== St || t[31] !== l?.graphObjectValues || t[32] !== l?.xAxis?.axis || t[33] !== l?.xAxis?.labels || t[34] !== l?.yAxis?.gridLines || t[35] !== l?.yAxis?.labels || t[36] !== l?.yAxis?.title || t[37] !== it || t[38] !== a || t[39] !== k || t[40] !== u || t[41] !== Vt || t[42] !== m || t[43] !== Ut || t[44] !== Z || t[45] !== O || t[46] !== B || t[47] !== H || t[48] !== x.bottom || t[49] !== x.left || t[50] !== x.right || t[51] !== x.top || t[52] !== Bt || t[53] !== g || t[54] !== wt || t[55] !== T || t[56] !== L || t[57] !== Mt || t[58] !== nt || t[59] !== ut || t[60] !== lt || t[61] !== C || t[62] !== tt || t[63] !== vt || t[64] !== Pt || t[65] !== qt || t[66] !== ii || t[67] !== Jt || t[68] !== f?.graphObjectValues || t[69] !== f?.xAxis?.axis || t[70] !== f?.xAxis?.labels || t[71] !== f?.yAxis?.gridLines || t[72] !== f?.yAxis?.labels || t[73] !== f?.yAxis?.title || t[74] !== bt || t[75] !== P || t[76] !== Zt || t[77] !== h || t[78] !== Kt || t[79] !== _ || t[80] !== yt || t[81] !== Nt || t[82] !== b) {
|
|
111
|
+
const c = Ti().domain([b, Nt]).range([Vt, 0]).nice();
|
|
112
|
+
let Dt;
|
|
113
|
+
t[97] !== B ? (Dt = (s, si) => ({
|
|
113
114
|
...s,
|
|
114
|
-
id:
|
|
115
|
-
}), t[
|
|
116
|
-
const
|
|
117
|
-
I =
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
t[
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
t[
|
|
124
|
-
axis:
|
|
125
|
-
label:
|
|
126
|
-
}, t[
|
|
127
|
-
const
|
|
115
|
+
id: B ? `${s.label}` : `${si}`
|
|
116
|
+
}), t[97] = B, t[98] = Dt) : Dt = t[98];
|
|
117
|
+
const fi = a.map(Dt), r = B || fi.map(ae), j = $i().domain(r).range([0, wt ? Math.max(m, wt * r.length) : Bt ? Math.min(m, Bt * r.length) : m]).paddingInner(St), F = c.ticks(Mt);
|
|
118
|
+
I = dt.svg, z = `${yt}px`, R = `${Ut}px`, S = `0 0 ${yt} ${Ut}`, w = "ltr", M = ci, D = `translate(${x.left},${x.top})`;
|
|
119
|
+
const hi = c(b < 0 ? 0 : b), ui = c(b < 0 ? 0 : b), xt = b < 0 ? 0 : b;
|
|
120
|
+
let ot;
|
|
121
|
+
t[99] !== L || t[100] !== lt || t[101] !== C || t[102] !== bt || t[103] !== xt ? (ot = Ai(xt, L, lt, C, bt), t[99] = L, t[100] = lt, t[101] = C, t[102] = bt, t[103] = xt, t[104] = ot) : ot = t[104];
|
|
122
|
+
const gt = l?.xAxis?.axis, Wt = l?.yAxis?.labels;
|
|
123
|
+
let y;
|
|
124
|
+
t[105] !== gt || t[106] !== Wt ? (y = {
|
|
125
|
+
axis: gt,
|
|
126
|
+
label: Wt
|
|
127
|
+
}, t[105] = gt, t[106] = Wt, t[107] = y) : y = t[107];
|
|
128
|
+
const pt = f?.xAxis?.axis, xi = f?.yAxis?.labels;
|
|
128
129
|
let e;
|
|
129
|
-
t[
|
|
130
|
-
axis:
|
|
131
|
-
label:
|
|
132
|
-
}, t[
|
|
133
|
-
x: 0 -
|
|
130
|
+
t[108] !== pt || t[109] !== xi ? (e = {
|
|
131
|
+
axis: pt,
|
|
132
|
+
label: xi
|
|
133
|
+
}, t[108] = pt, t[109] = xi, t[110] = e) : e = t[110], G = /* @__PURE__ */ n.jsx(Oi, { y1: hi, y2: ui, x1: 0 - H, x2: m + x.right, label: ot, labelPos: {
|
|
134
|
+
x: 0 - H,
|
|
134
135
|
dx: 0,
|
|
135
|
-
dy:
|
|
136
|
-
y: c(
|
|
137
|
-
}, classNames:
|
|
138
|
-
gridLines:
|
|
139
|
-
labels:
|
|
136
|
+
dy: Nt < 0 ? "1em" : -5,
|
|
137
|
+
y: c(b < 0 ? 0 : b)
|
|
138
|
+
}, classNames: y, styles: e }), W = ii ? /* @__PURE__ */ n.jsx(Pi, { values: F.filter(ee), y: F.filter(ie).map((s) => c(s)), x1: 0 - H, x2: m + x.right, styles: {
|
|
139
|
+
gridLines: f?.yAxis?.gridLines,
|
|
140
|
+
labels: f?.yAxis?.labels
|
|
140
141
|
}, classNames: {
|
|
141
142
|
gridLines: l?.yAxis?.gridLines,
|
|
142
143
|
labels: l?.yAxis?.labels
|
|
143
|
-
}, suffix:
|
|
144
|
-
const
|
|
145
|
-
t[
|
|
146
|
-
|
|
144
|
+
}, suffix: bt, prefix: C, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: lt }) : null;
|
|
145
|
+
const rt = 0 - H - 15, mi = Vt / 2, di = f?.yAxis?.title, yi = l?.yAxis?.title;
|
|
146
|
+
t[111] !== A || t[112] !== rt || t[113] !== mi || t[114] !== di || t[115] !== yi ? (v = /* @__PURE__ */ n.jsx(Ni, { x: rt, y: mi, style: di, className: yi, text: A, rotate90: !0 }), t[111] = A, t[112] = rt, t[113] = mi, t[114] = di, t[115] = yi, t[116] = v) : v = t[116], t[117] !== it ? (V = it.filter(te).map(_i), t[117] = it, t[118] = V) : V = t[118], $ = Di, Y = fi.map((s) => p(j(s.id)) ? null : /* @__PURE__ */ n.jsxs(dt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (si) => {
|
|
147
|
+
li(s), Et(si.clientY), _t(si.clientX), ut?.(s);
|
|
147
148
|
}, onClick: () => {
|
|
148
|
-
(
|
|
149
|
+
(nt || k) && (ji(T, s) && Pt ? (ft(void 0), nt?.(void 0)) : (ft(s), nt?.(s)));
|
|
149
150
|
}, onMouseMove: (si) => {
|
|
150
|
-
|
|
151
|
+
li(s), Et(si.clientY), _t(si.clientX);
|
|
151
152
|
}, onMouseLeave: () => {
|
|
152
|
-
|
|
153
|
+
li(void 0), _t(void 0), Et(void 0), ut?.(void 0);
|
|
153
154
|
}, exit: {
|
|
154
155
|
opacity: 0,
|
|
155
156
|
transition: {
|
|
156
|
-
duration:
|
|
157
|
+
duration: o.duration
|
|
157
158
|
}
|
|
158
159
|
}, variants: {
|
|
159
160
|
initial: {
|
|
160
|
-
x:
|
|
161
|
+
x: j(`${s.id}`),
|
|
161
162
|
y: 0,
|
|
162
|
-
opacity:
|
|
163
|
+
opacity: Z.length !== 0 ? Z.indexOf(s.label) !== -1 ? 0.85 : u : 0.85
|
|
163
164
|
},
|
|
164
165
|
whileInView: {
|
|
165
|
-
x:
|
|
166
|
+
x: j(`${s.id}`),
|
|
166
167
|
y: 0,
|
|
167
|
-
opacity:
|
|
168
|
+
opacity: Z.length !== 0 ? Z.indexOf(s.label) !== -1 ? 0.85 : u : 0.85,
|
|
168
169
|
transition: {
|
|
169
|
-
duration:
|
|
170
|
+
duration: o.duration
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
|
-
}, initial: "initial", animate:
|
|
173
|
-
s.qualitativeRange ? s.qualitativeRange.map((si,
|
|
173
|
+
}, initial: "initial", animate: O ? "whileInView" : "initial", children: [
|
|
174
|
+
s.qualitativeRange ? s.qualitativeRange.map((si, gi) => /* @__PURE__ */ n.jsx(dt.rect, { x: 0, exit: {
|
|
174
175
|
height: 0,
|
|
175
176
|
y: c(0),
|
|
176
177
|
transition: {
|
|
177
|
-
duration:
|
|
178
|
+
duration: o.duration
|
|
178
179
|
}
|
|
179
180
|
}, variants: {
|
|
180
181
|
initial: {
|
|
181
182
|
height: 0,
|
|
182
183
|
y: c(0),
|
|
183
|
-
fill:
|
|
184
|
+
fill: tt[gi]
|
|
184
185
|
},
|
|
185
186
|
whileInView: {
|
|
186
|
-
height: Math.abs(c(pi(s.qualitativeRange.filter((
|
|
187
|
-
y: c(pi(s.qualitativeRange.filter((
|
|
188
|
-
fill:
|
|
187
|
+
height: Math.abs(c(pi(s.qualitativeRange.filter((bi, vi) => vi <= gi && bi))) - c(pi(s.qualitativeRange.filter((bi, vi) => vi < gi && bi)))),
|
|
188
|
+
y: c(pi(s.qualitativeRange.filter((bi, vi) => vi <= gi && bi))),
|
|
189
|
+
fill: tt[gi],
|
|
189
190
|
transition: {
|
|
190
|
-
duration:
|
|
191
|
+
duration: o.duration
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
|
-
}, initial: "initial", animate:
|
|
194
|
-
s.target &&
|
|
195
|
-
fill: vt
|
|
196
|
-
}, exit: {
|
|
194
|
+
}, initial: "initial", animate: O ? "whileInView" : "initial", width: j.bandwidth() }, gi)) : null,
|
|
195
|
+
s.target && h === "background" ? /* @__PURE__ */ n.jsx(dt.rect, { x: 0, width: j.bandwidth(), exit: {
|
|
197
196
|
height: 0,
|
|
198
197
|
y: c(0),
|
|
198
|
+
fill: P,
|
|
199
199
|
transition: {
|
|
200
|
-
duration:
|
|
200
|
+
duration: o.duration
|
|
201
201
|
}
|
|
202
202
|
}, variants: {
|
|
203
203
|
initial: {
|
|
204
204
|
height: 0,
|
|
205
|
+
fill: P,
|
|
205
206
|
y: c(0)
|
|
206
207
|
},
|
|
207
208
|
whileInView: {
|
|
208
209
|
height: Math.abs(c(s.target) - c(0)),
|
|
210
|
+
fill: P,
|
|
209
211
|
y: s.target > 0 ? c(s.target) : c(0),
|
|
210
212
|
transition: {
|
|
211
|
-
duration:
|
|
213
|
+
duration: o.duration
|
|
212
214
|
}
|
|
213
215
|
}
|
|
214
|
-
}, initial: "initial", animate:
|
|
215
|
-
s.size ? /* @__PURE__ */ n.jsx(
|
|
216
|
-
fill:
|
|
216
|
+
}, initial: "initial", animate: O ? "whileInView" : "initial" }) : null,
|
|
217
|
+
s.size ? /* @__PURE__ */ n.jsx(dt.rect, { x: j.bandwidth() * ((1 - g) / 2), width: j.bandwidth() * g, style: {
|
|
218
|
+
fill: Rt
|
|
217
219
|
}, exit: {
|
|
218
220
|
height: 0,
|
|
219
221
|
y: c(0),
|
|
220
222
|
transition: {
|
|
221
|
-
duration:
|
|
223
|
+
duration: o.duration
|
|
222
224
|
}
|
|
223
225
|
}, variants: {
|
|
224
226
|
initial: {
|
|
@@ -229,280 +231,282 @@ function Ji(i) {
|
|
|
229
231
|
height: Math.abs(c(s.size) - c(0)),
|
|
230
232
|
y: s.size > 0 ? c(s.size) : c(0),
|
|
231
233
|
transition: {
|
|
232
|
-
duration:
|
|
234
|
+
duration: o.duration
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
|
-
}, initial: "initial", animate:
|
|
236
|
-
s.target &&
|
|
237
|
-
fill: vt
|
|
238
|
-
}, exit: {
|
|
237
|
+
}, initial: "initial", animate: O ? "whileInView" : "initial" }) : null,
|
|
238
|
+
s.target && h === "line" ? /* @__PURE__ */ n.jsx(dt.rect, { x: 0, width: j.bandwidth(), exit: {
|
|
239
239
|
y: c(0),
|
|
240
240
|
opacity: 0,
|
|
241
|
+
fill: P,
|
|
241
242
|
transition: {
|
|
242
|
-
duration:
|
|
243
|
+
duration: o.duration
|
|
243
244
|
}
|
|
244
245
|
}, variants: {
|
|
245
246
|
initial: {
|
|
246
247
|
y: c(0),
|
|
247
|
-
opacity: 0
|
|
248
|
+
opacity: 0,
|
|
249
|
+
fill: P
|
|
248
250
|
},
|
|
249
251
|
whileInView: {
|
|
250
|
-
y: c(s.target) -
|
|
252
|
+
y: c(s.target) - Zt / 2,
|
|
251
253
|
opacity: 1,
|
|
254
|
+
fill: P,
|
|
252
255
|
transition: {
|
|
253
|
-
duration:
|
|
256
|
+
duration: o.duration
|
|
254
257
|
}
|
|
255
258
|
}
|
|
256
|
-
}, initial: "initial", animate:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
+
}, initial: "initial", animate: O ? "whileInView" : "initial", height: Zt }) : null,
|
|
260
|
+
qt ? /* @__PURE__ */ n.jsx(qi, { value: `${s.label}`.length < Kt ? `${s.label}` : `${`${s.label}`.substring(0, Kt)}...`, y: (s.size || 0) < 0 ? 0 : c(0) + 5, x: 0, width: j.bandwidth(), height: (s.size || 0) < 0 ? c(0) - 5 : x.bottom, style: f?.xAxis?.labels, className: l?.xAxis?.labels, alignment: (s.size || 0) < 0 ? "bottom" : "top", animate: o, isInView: O }) : null,
|
|
261
|
+
Jt ? /* @__PURE__ */ n.jsx(dt.text, { x: j.bandwidth() / 2, style: {
|
|
259
262
|
textAnchor: "middle",
|
|
260
|
-
...
|
|
261
|
-
}, className:
|
|
263
|
+
...f?.graphObjectValues || {}
|
|
264
|
+
}, className: zi("graph-value text-sm", !_ && Rt.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", l?.graphObjectValues), dy: s.size ? s.size >= 0 ? "-5px" : "1em" : "-5px", exit: {
|
|
262
265
|
opacity: 0,
|
|
263
266
|
transition: {
|
|
264
|
-
duration:
|
|
267
|
+
duration: o.duration
|
|
265
268
|
}
|
|
266
269
|
}, variants: {
|
|
267
270
|
initial: {
|
|
268
271
|
y: c(0),
|
|
269
272
|
opacity: 0,
|
|
270
|
-
fill:
|
|
273
|
+
fill: _ || Rt
|
|
271
274
|
},
|
|
272
275
|
whileInView: {
|
|
273
276
|
y: c(s.size || 0),
|
|
274
277
|
opacity: 1,
|
|
275
|
-
fill:
|
|
278
|
+
fill: _ || Rt,
|
|
276
279
|
transition: {
|
|
277
|
-
duration:
|
|
280
|
+
duration: o.duration
|
|
278
281
|
}
|
|
279
282
|
}
|
|
280
|
-
}, initial: "initial", animate:
|
|
281
|
-
] }, s.label)),
|
|
283
|
+
}, initial: "initial", animate: O ? "whileInView" : "initial", children: Ai(s.size, L, lt, C, bt) }) : null
|
|
284
|
+
] }, s.label)), E = vt ? /* @__PURE__ */ n.jsx(n.Fragment, { children: vt.map((s, si) => /* @__PURE__ */ n.jsx(Bi, { text: s.text, color: s.color, y: c(s.value), x1: 0 - H, x2: m + x.right, classNames: s.classNames, styles: s.styles, animate: o, isInView: O }, si)) }) : null, t[27] = o, t[28] = A, t[29] = Rt, t[30] = St, t[31] = l?.graphObjectValues, t[32] = l?.xAxis?.axis, t[33] = l?.xAxis?.labels, t[34] = l?.yAxis?.gridLines, t[35] = l?.yAxis?.labels, t[36] = l?.yAxis?.title, t[37] = it, t[38] = a, t[39] = k, t[40] = u, t[41] = Vt, t[42] = m, t[43] = Ut, t[44] = Z, t[45] = O, t[46] = B, t[47] = H, t[48] = x.bottom, t[49] = x.left, t[50] = x.right, t[51] = x.top, t[52] = Bt, t[53] = g, t[54] = wt, t[55] = T, t[56] = L, t[57] = Mt, t[58] = nt, t[59] = ut, t[60] = lt, t[61] = C, t[62] = tt, t[63] = vt, t[64] = Pt, t[65] = qt, t[66] = ii, t[67] = Jt, t[68] = f?.graphObjectValues, t[69] = f?.xAxis?.axis, t[70] = f?.xAxis?.labels, t[71] = f?.yAxis?.gridLines, t[72] = f?.yAxis?.labels, t[73] = f?.yAxis?.title, t[74] = bt, t[75] = P, t[76] = Zt, t[77] = h, t[78] = Kt, t[79] = _, t[80] = yt, t[81] = Nt, t[82] = b, t[83] = $, t[84] = I, t[85] = Y, t[86] = E, t[87] = D, t[88] = G, t[89] = W, t[90] = v, t[91] = V, t[92] = z, t[93] = R, t[94] = S, t[95] = w, t[96] = M;
|
|
282
285
|
} else
|
|
283
|
-
$ = t[
|
|
284
|
-
let G;
|
|
285
|
-
t[118] !== $ || t[119] !== H || t[120] !== X ? (G = /* @__PURE__ */ n.jsxs($, { children: [
|
|
286
|
-
H,
|
|
287
|
-
X
|
|
288
|
-
] }), t[118] = $, t[119] = H, t[120] = X, t[121] = G) : G = t[121];
|
|
289
|
-
let W;
|
|
290
|
-
t[122] !== Z ? (W = Z.filter(Qi).map(Ki), t[122] = Z, t[123] = W) : W = t[123];
|
|
286
|
+
$ = t[83], I = t[84], Y = t[85], E = t[86], D = t[87], G = t[88], W = t[89], v = t[90], V = t[91], z = t[92], R = t[93], S = t[94], w = t[95], M = t[96];
|
|
291
287
|
let U;
|
|
292
|
-
t[
|
|
288
|
+
t[119] !== $ || t[120] !== Y || t[121] !== E ? (U = /* @__PURE__ */ n.jsxs($, { children: [
|
|
293
289
|
Y,
|
|
294
|
-
E
|
|
295
|
-
|
|
296
|
-
|
|
290
|
+
E
|
|
291
|
+
] }), t[119] = $, t[120] = Y, t[121] = E, t[122] = U) : U = t[122];
|
|
292
|
+
let J;
|
|
293
|
+
t[123] !== it ? (J = it.filter(Zi).map(Qi), t[123] = it, t[124] = J) : J = t[124];
|
|
294
|
+
let K;
|
|
295
|
+
t[125] !== D || t[126] !== G || t[127] !== W || t[128] !== v || t[129] !== V || t[130] !== U || t[131] !== J ? (K = /* @__PURE__ */ n.jsxs("g", { transform: D, children: [
|
|
297
296
|
G,
|
|
298
|
-
W
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
297
|
+
W,
|
|
298
|
+
v,
|
|
299
|
+
V,
|
|
300
|
+
U,
|
|
301
|
+
J
|
|
302
|
+
] }), t[125] = D, t[126] = G, t[127] = W, t[128] = v, t[129] = V, t[130] = U, t[131] = J, t[132] = K) : K = t[132];
|
|
303
|
+
let Q;
|
|
304
|
+
t[133] !== I || t[134] !== z || t[135] !== R || t[136] !== S || t[137] !== w || t[138] !== M || t[139] !== K ? (Q = /* @__PURE__ */ n.jsx(I, { width: z, height: R, viewBox: S, direction: w, ref: M, children: K }), t[133] = I, t[134] = z, t[135] = R, t[136] = S, t[137] = w, t[138] = M, t[139] = K, t[140] = Q) : Q = t[140];
|
|
304
305
|
let q;
|
|
305
|
-
t[
|
|
306
|
-
|
|
306
|
+
t[141] !== l?.tooltip || t[142] !== At || t[143] !== ti || t[144] !== N || t[145] !== f?.tooltip || t[146] !== ct ? (q = N && ct && At && ti ? /* @__PURE__ */ n.jsx(ki, { data: N, body: ct, xPos: At, yPos: ti, backgroundStyle: f?.tooltip, className: l?.tooltip }) : null, t[141] = l?.tooltip, t[142] = At, t[143] = ti, t[144] = N, t[145] = f?.tooltip, t[146] = ct, t[147] = q) : q = t[147];
|
|
307
|
+
let st;
|
|
308
|
+
t[148] !== k || t[149] !== T ? (st = k && T !== void 0 ? /* @__PURE__ */ n.jsx(Ci, { open: T !== void 0, onClose: () => {
|
|
309
|
+
ft(void 0);
|
|
307
310
|
}, children: /* @__PURE__ */ n.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof k == "string" ? {
|
|
308
|
-
__html:
|
|
309
|
-
} : void 0, children: typeof k == "function" ? k(
|
|
310
|
-
let
|
|
311
|
-
return t[
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
] }), t[
|
|
316
|
-
}
|
|
317
|
-
function Ki(i) {
|
|
318
|
-
return i.layer;
|
|
311
|
+
__html: Li(k, T)
|
|
312
|
+
} : void 0, children: typeof k == "function" ? k(T) : null }) }) : null, t[148] = k, t[149] = T, t[150] = st) : st = t[150];
|
|
313
|
+
let at;
|
|
314
|
+
return t[151] !== Q || t[152] !== q || t[153] !== st ? (at = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
315
|
+
Q,
|
|
316
|
+
q,
|
|
317
|
+
st
|
|
318
|
+
] }), t[151] = Q, t[152] = q, t[153] = st, t[154] = at) : at = t[154], at;
|
|
319
319
|
}
|
|
320
320
|
function Qi(i) {
|
|
321
|
-
return i.
|
|
321
|
+
return i.layer;
|
|
322
322
|
}
|
|
323
323
|
function Zi(i) {
|
|
324
|
-
return i.
|
|
324
|
+
return i.position === "after";
|
|
325
325
|
}
|
|
326
326
|
function _i(i) {
|
|
327
|
-
return i.
|
|
327
|
+
return i.layer;
|
|
328
328
|
}
|
|
329
329
|
function te(i) {
|
|
330
|
-
return i
|
|
330
|
+
return i.position === "before";
|
|
331
331
|
}
|
|
332
332
|
function ie(i) {
|
|
333
333
|
return i !== 0;
|
|
334
334
|
}
|
|
335
335
|
function ee(i) {
|
|
336
|
-
return
|
|
336
|
+
return i !== 0;
|
|
337
337
|
}
|
|
338
338
|
function ae(i) {
|
|
339
|
-
return i.
|
|
339
|
+
return `${i.id}`;
|
|
340
340
|
}
|
|
341
341
|
function ne(i) {
|
|
342
|
-
return
|
|
342
|
+
return i.target;
|
|
343
343
|
}
|
|
344
344
|
function le(i) {
|
|
345
|
-
return i.target;
|
|
345
|
+
return !p(i.target);
|
|
346
346
|
}
|
|
347
347
|
function se(i) {
|
|
348
|
-
return
|
|
348
|
+
return i.target;
|
|
349
349
|
}
|
|
350
350
|
function oe(i) {
|
|
351
|
-
return i.
|
|
351
|
+
return !p(i.target);
|
|
352
352
|
}
|
|
353
353
|
function re(i) {
|
|
354
|
-
return
|
|
354
|
+
return i.size;
|
|
355
355
|
}
|
|
356
356
|
function ce(i) {
|
|
357
|
-
return i.size;
|
|
357
|
+
return !p(i.size);
|
|
358
358
|
}
|
|
359
359
|
function ue(i) {
|
|
360
|
-
return
|
|
360
|
+
return i.size;
|
|
361
361
|
}
|
|
362
362
|
function me(i) {
|
|
363
|
+
return !p(i.size);
|
|
364
|
+
}
|
|
365
|
+
function fe(i) {
|
|
363
366
|
return pi((i.qualitativeRange || []).filter(he)) || 0;
|
|
364
367
|
}
|
|
365
368
|
function he(i) {
|
|
366
369
|
return !p(i);
|
|
367
370
|
}
|
|
368
|
-
function
|
|
371
|
+
function xe(i) {
|
|
369
372
|
return i.target;
|
|
370
373
|
}
|
|
371
|
-
function
|
|
374
|
+
function ge(i) {
|
|
372
375
|
return !p(i.size);
|
|
373
376
|
}
|
|
374
377
|
function pe(i) {
|
|
375
378
|
return i.target;
|
|
376
379
|
}
|
|
377
|
-
function
|
|
380
|
+
function de(i) {
|
|
378
381
|
return !p(i.target);
|
|
379
382
|
}
|
|
380
|
-
function
|
|
383
|
+
function ye(i) {
|
|
381
384
|
return i.size;
|
|
382
385
|
}
|
|
383
|
-
function
|
|
386
|
+
function be(i) {
|
|
384
387
|
return !p(i.size);
|
|
385
388
|
}
|
|
386
|
-
function
|
|
389
|
+
function ve(i) {
|
|
387
390
|
return i.size;
|
|
388
391
|
}
|
|
389
|
-
function
|
|
392
|
+
function we(i) {
|
|
390
393
|
return !p(i.size);
|
|
391
394
|
}
|
|
392
|
-
function
|
|
393
|
-
const t =
|
|
395
|
+
function Me(i) {
|
|
396
|
+
const t = Vi.c(147), {
|
|
394
397
|
data: a,
|
|
395
|
-
topMargin:
|
|
396
|
-
bottomMargin:
|
|
397
|
-
leftMargin:
|
|
398
|
-
rightMargin:
|
|
399
|
-
barColor:
|
|
400
|
-
suffix:
|
|
401
|
-
prefix:
|
|
402
|
-
barPadding:
|
|
398
|
+
topMargin: yt,
|
|
399
|
+
bottomMargin: Ut,
|
|
400
|
+
leftMargin: Rt,
|
|
401
|
+
rightMargin: bt,
|
|
402
|
+
barColor: C,
|
|
403
|
+
suffix: St,
|
|
404
|
+
prefix: qt,
|
|
405
|
+
barPadding: Jt,
|
|
403
406
|
showValues: ii,
|
|
404
|
-
showTicks:
|
|
407
|
+
showTicks: Kt,
|
|
405
408
|
truncateBy: ei,
|
|
406
|
-
width:
|
|
407
|
-
height:
|
|
409
|
+
width: Ft,
|
|
410
|
+
height: Qt,
|
|
408
411
|
showLabels: ri,
|
|
409
|
-
tooltip:
|
|
410
|
-
onSeriesMouseOver:
|
|
411
|
-
refValues:
|
|
412
|
+
tooltip: ct,
|
|
413
|
+
onSeriesMouseOver: ut,
|
|
414
|
+
refValues: vt,
|
|
412
415
|
highlightedDataPoints: d,
|
|
413
|
-
maxValue:
|
|
414
|
-
minValue:
|
|
415
|
-
onSeriesMouseClick:
|
|
416
|
-
labelOrder:
|
|
417
|
-
rtl:
|
|
418
|
-
maxBarThickness:
|
|
419
|
-
minBarThickness:
|
|
416
|
+
maxValue: mt,
|
|
417
|
+
minValue: Z,
|
|
418
|
+
onSeriesMouseClick: nt,
|
|
419
|
+
labelOrder: B,
|
|
420
|
+
rtl: Bt,
|
|
421
|
+
maxBarThickness: wt,
|
|
422
|
+
minBarThickness: Pt,
|
|
420
423
|
resetSelectionOnDoubleClick: k,
|
|
421
424
|
detailsOnClick: A,
|
|
422
|
-
barAxisTitle:
|
|
423
|
-
valueColor:
|
|
424
|
-
noOfTicks:
|
|
425
|
+
barAxisTitle: _,
|
|
426
|
+
valueColor: Mt,
|
|
427
|
+
noOfTicks: f,
|
|
425
428
|
styles: l,
|
|
426
|
-
classNames:
|
|
427
|
-
targetStyle:
|
|
428
|
-
targetColor:
|
|
429
|
-
qualitativeRangeColors:
|
|
430
|
-
measureBarWidthFactor:
|
|
429
|
+
classNames: h,
|
|
430
|
+
targetStyle: P,
|
|
431
|
+
targetColor: tt,
|
|
432
|
+
qualitativeRangeColors: g,
|
|
433
|
+
measureBarWidthFactor: o,
|
|
431
434
|
animate: u,
|
|
432
|
-
dimmedOpacity:
|
|
433
|
-
precision:
|
|
435
|
+
dimmedOpacity: lt,
|
|
436
|
+
precision: it,
|
|
434
437
|
customLayers: L,
|
|
435
|
-
naLabel:
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
438
|
+
naLabel: Zt,
|
|
439
|
+
targetLineThickness: H
|
|
440
|
+
} = i, Ht = yt === void 0 ? 25 : yt, ai = Ut === void 0 ? 10 : Ut, Xt = Rt === void 0 ? 100 : Rt, ci = bt === void 0 ? 40 : bt, ni = Mi(null);
|
|
441
|
+
let O;
|
|
442
|
+
t[0] !== u.amount || t[1] !== u.once ? (O = {
|
|
439
443
|
once: u.once,
|
|
440
444
|
amount: u.amount
|
|
441
|
-
}, t[0] = u.amount, t[1] = u.once, t[2] =
|
|
442
|
-
const
|
|
443
|
-
let
|
|
444
|
-
t[3] !== ai || t[4] !==
|
|
445
|
-
top:
|
|
445
|
+
}, t[0] = u.amount, t[1] = u.once, t[2] = O) : O = t[2];
|
|
446
|
+
const X = Ii(ni, O), [Yt, x] = oi(void 0), [N, li] = oi(void 0), [T, ft] = oi(void 0), [At, _t] = oi(void 0), ti = _ ? Ht + 25 : Ht;
|
|
447
|
+
let Et;
|
|
448
|
+
t[3] !== ai || t[4] !== Xt || t[5] !== ci || t[6] !== ti ? (Et = {
|
|
449
|
+
top: ti,
|
|
446
450
|
bottom: ai,
|
|
447
|
-
left:
|
|
448
|
-
right:
|
|
449
|
-
}, t[3] = ai, t[4] =
|
|
450
|
-
const m =
|
|
451
|
-
let wt;
|
|
452
|
-
t[8] !== a ? (wt = Math.max(...a.filter(Ge).map(Ee)) < 0 ? 0 : Math.max(...a.filter(Ye).map(Xe)), t[8] = a, t[9] = wt) : wt = t[9];
|
|
453
|
-
const Mt = wt;
|
|
454
|
-
let At;
|
|
455
|
-
t[10] !== a ? (At = Math.max(...a.filter(He).map(Pe)) < 0 ? 0 : Math.max(...a.filter(Be).map(Fe)), t[10] = a, t[11] = At) : At = t[11];
|
|
456
|
-
const Vt = At;
|
|
451
|
+
left: Xt,
|
|
452
|
+
right: ci
|
|
453
|
+
}, t[3] = ai, t[4] = Xt, t[5] = ci, t[6] = ti, t[7] = Et) : Et = t[7];
|
|
454
|
+
const m = Et, Vt = Ft - m.left - m.right, et = Qt - m.top - m.bottom;
|
|
457
455
|
let zt;
|
|
458
|
-
t[
|
|
456
|
+
t[8] !== a ? (zt = Math.max(...a.filter(We).map(Ge)) < 0 ? 0 : Math.max(...a.filter(Ee).map(Ye)), t[8] = a, t[9] = zt) : zt = t[9];
|
|
459
457
|
const jt = zt;
|
|
460
458
|
let Ct;
|
|
461
|
-
t[
|
|
462
|
-
const
|
|
463
|
-
let
|
|
464
|
-
t[
|
|
465
|
-
const
|
|
459
|
+
t[10] !== a ? (Ct = Math.max(...a.filter(Xe).map(He)) < 0 ? 0 : Math.max(...a.filter(Pe).map(Be)), t[10] = a, t[11] = Ct) : Ct = t[11];
|
|
460
|
+
const kt = Ct;
|
|
461
|
+
let Lt;
|
|
462
|
+
t[12] !== a ? (Lt = Math.max(...a.map(qe)), t[12] = a, t[13] = Lt) : Lt = t[13];
|
|
463
|
+
const Ot = Lt;
|
|
464
|
+
let Nt;
|
|
465
|
+
t[14] !== jt || t[15] !== mt || t[16] !== Ot || t[17] !== kt ? (Nt = p(mt) ? Math.max(...[jt, kt, Ot].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[jt, kt, Ot].filter(Number.isFinite)) : mt, t[14] = jt, t[15] = mt, t[16] = Ot, t[17] = kt, t[18] = Nt) : Nt = t[18];
|
|
466
|
+
const Gt = Nt;
|
|
467
|
+
let Tt;
|
|
468
|
+
t[19] !== a ? (Tt = Math.min(...a.filter(Se).map(Re)) >= 0 ? 0 : Math.min(...a.filter(De).map(Ie)), t[19] = a, t[20] = Tt) : Tt = t[20];
|
|
469
|
+
const $t = Tt;
|
|
466
470
|
let ht;
|
|
467
|
-
t[21] !== a ? (ht = Math.min(...a.filter($e).map(
|
|
468
|
-
const
|
|
469
|
-
let
|
|
470
|
-
t[23] !==
|
|
471
|
-
const $ =
|
|
472
|
-
let I,
|
|
473
|
-
if (t[27] !== u || t[28] !==
|
|
474
|
-
let
|
|
475
|
-
t[
|
|
471
|
+
t[21] !== a ? (ht = Math.min(...a.filter($e).map(Te)) >= 0 ? 0 : Math.min(...a.filter(Ne).map(Oe)), t[21] = a, t[22] = ht) : ht = t[22];
|
|
472
|
+
const It = ht;
|
|
473
|
+
let b;
|
|
474
|
+
t[23] !== $t || t[24] !== Z || t[25] !== It ? (b = p(Z) ? Math.min(...[$t, It].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[$t, It].filter(Number.isFinite)) : Z, t[23] = $t, t[24] = Z, t[25] = It, t[26] = b) : b = t[26];
|
|
475
|
+
const $ = b;
|
|
476
|
+
let I, Y, E, D, G, W, v, V, z, R, S, w, M, U;
|
|
477
|
+
if (t[27] !== u || t[28] !== _ || t[29] !== C || t[30] !== Jt || t[31] !== h?.graphObjectValues || t[32] !== h?.xAxis?.gridLines || t[33] !== h?.xAxis?.labels || t[34] !== h?.xAxis?.title || t[35] !== h?.yAxis?.axis || t[36] !== h?.yAxis?.labels || t[37] !== L || t[38] !== a || t[39] !== A || t[40] !== lt || t[41] !== et || t[42] !== Vt || t[43] !== Qt || t[44] !== d || t[45] !== X || t[46] !== B || t[47] !== m.bottom || t[48] !== m.left || t[49] !== m.top || t[50] !== wt || t[51] !== o || t[52] !== Pt || t[53] !== N || t[54] !== Zt || t[55] !== f || t[56] !== nt || t[57] !== ut || t[58] !== it || t[59] !== qt || t[60] !== g || t[61] !== vt || t[62] !== k || t[63] !== Bt || t[64] !== ri || t[65] !== Kt || t[66] !== ii || t[67] !== l?.graphObjectValues || t[68] !== l?.xAxis?.gridLines || t[69] !== l?.xAxis?.labels || t[70] !== l?.xAxis?.title || t[71] !== l?.yAxis?.axis || t[72] !== l?.yAxis?.labels || t[73] !== St || t[74] !== tt || t[75] !== H || t[76] !== P || t[77] !== Ht || t[78] !== ei || t[79] !== Mt || t[80] !== Ft || t[81] !== Gt || t[82] !== $) {
|
|
478
|
+
let Dt;
|
|
479
|
+
t[97] !== B ? (Dt = (e, rt) => ({
|
|
476
480
|
...e,
|
|
477
|
-
id:
|
|
478
|
-
}), t[
|
|
479
|
-
const
|
|
480
|
-
|
|
481
|
+
id: B ? `${e.label}` : `${rt}`
|
|
482
|
+
}), t[97] = B, t[98] = Dt) : Dt = t[98];
|
|
483
|
+
const fi = a.map(Dt), r = Ti().domain([$, Gt]).range([0, Vt]).nice(), j = B || fi.map(Le), F = $i().domain(j).range([0, Pt ? Math.max(et, Pt * j.length) : wt ? Math.min(et, wt * j.length) : et]).paddingInner(Jt), hi = r.ticks(f);
|
|
484
|
+
Y = dt.svg, R = `${Ft}px`, S = `${Qt}px`, w = `0 0 ${Ft} ${Qt}`, M = "ltr", U = ni, G = `translate(${m.left},${m.top})`, W = Kt ? /* @__PURE__ */ n.jsx(Hi, { values: hi.filter(ke), x: hi.filter(Ce).map((e) => r(e)), y1: 0 - Ht, y2: et + m.bottom, styles: {
|
|
481
485
|
gridLines: l?.xAxis?.gridLines,
|
|
482
486
|
labels: l?.xAxis?.labels
|
|
483
487
|
}, classNames: {
|
|
484
|
-
gridLines:
|
|
485
|
-
labels:
|
|
486
|
-
}, suffix:
|
|
487
|
-
const
|
|
488
|
-
t[
|
|
489
|
-
const
|
|
490
|
-
let
|
|
491
|
-
t[
|
|
492
|
-
axis:
|
|
493
|
-
}, t[
|
|
494
|
-
const
|
|
495
|
-
let
|
|
496
|
-
t[
|
|
497
|
-
axis:
|
|
498
|
-
}, t[
|
|
499
|
-
|
|
488
|
+
gridLines: h?.xAxis?.gridLines,
|
|
489
|
+
labels: h?.xAxis?.labels
|
|
490
|
+
}, suffix: St, prefix: qt, labelType: "secondary", showGridLines: !0, precision: it }) : null;
|
|
491
|
+
const ui = Vt / 2, xt = 0 - m.top + 15, ot = l?.xAxis?.title, gt = h?.xAxis?.title;
|
|
492
|
+
t[99] !== _ || t[100] !== ui || t[101] !== xt || t[102] !== ot || t[103] !== gt ? (v = /* @__PURE__ */ n.jsx(Ni, { x: ui, y: xt, style: ot, className: gt, text: _ }), t[99] = _, t[100] = ui, t[101] = xt, t[102] = ot, t[103] = gt, t[104] = v) : v = t[104];
|
|
493
|
+
const Wt = h?.yAxis?.axis;
|
|
494
|
+
let y;
|
|
495
|
+
t[105] !== Wt ? (y = {
|
|
496
|
+
axis: Wt
|
|
497
|
+
}, t[105] = Wt, t[106] = y) : y = t[106];
|
|
498
|
+
const pt = l?.yAxis?.axis;
|
|
499
|
+
let xi;
|
|
500
|
+
t[107] !== pt ? (xi = {
|
|
501
|
+
axis: pt
|
|
502
|
+
}, t[107] = pt, t[108] = xi) : xi = t[108], V = /* @__PURE__ */ n.jsx(Oi, { x1: r($ < 0 ? 0 : $), x2: r($ < 0 ? 0 : $), y1: -2.5, y2: et + m.bottom, classNames: y, styles: xi }), t[109] !== L ? (z = L.filter(je).map(ze), t[109] = L, t[110] = z) : z = t[110], I = Di, E = fi.map((e) => p(F(e.id)) ? null : /* @__PURE__ */ n.jsxs(dt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (rt) => {
|
|
503
|
+
x(e), _t(rt.clientY), ft(rt.clientX), ut?.(e);
|
|
500
504
|
}, onClick: () => {
|
|
501
|
-
(
|
|
502
|
-
}, onMouseMove: (
|
|
503
|
-
|
|
505
|
+
(nt || A) && (ji(N, e) && k ? (li(void 0), nt?.(void 0)) : (li(e), nt?.(e)));
|
|
506
|
+
}, onMouseMove: (rt) => {
|
|
507
|
+
x(e), _t(rt.clientY), ft(rt.clientX);
|
|
504
508
|
}, onMouseLeave: () => {
|
|
505
|
-
|
|
509
|
+
x(void 0), ft(void 0), _t(void 0), ut?.(void 0);
|
|
506
510
|
}, exit: {
|
|
507
511
|
opacity: 0,
|
|
508
512
|
transition: {
|
|
@@ -511,190 +515,192 @@ function we(i) {
|
|
|
511
515
|
}, variants: {
|
|
512
516
|
initial: {
|
|
513
517
|
x: 0,
|
|
514
|
-
y:
|
|
515
|
-
opacity: d.length !== 0 ? d.indexOf(e.label) !== -1 ? 0.85 :
|
|
518
|
+
y: F(`${e.id}`),
|
|
519
|
+
opacity: d.length !== 0 ? d.indexOf(e.label) !== -1 ? 0.85 : lt : 0.85
|
|
516
520
|
},
|
|
517
521
|
whileInView: {
|
|
518
522
|
x: 0,
|
|
519
|
-
y:
|
|
520
|
-
opacity: d.length !== 0 ? d.indexOf(e.label) !== -1 ? 0.85 :
|
|
523
|
+
y: F(`${e.id}`),
|
|
524
|
+
opacity: d.length !== 0 ? d.indexOf(e.label) !== -1 ? 0.85 : lt : 0.85,
|
|
521
525
|
transition: {
|
|
522
526
|
duration: u.duration
|
|
523
527
|
}
|
|
524
528
|
}
|
|
525
|
-
}, initial: "initial", animate:
|
|
526
|
-
e.qualitativeRange ? e.qualitativeRange.map((
|
|
529
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial", children: [
|
|
530
|
+
e.qualitativeRange ? e.qualitativeRange.map((rt, mi) => /* @__PURE__ */ n.jsx(dt.rect, { exit: {
|
|
527
531
|
width: 0,
|
|
528
|
-
x:
|
|
532
|
+
x: r(0),
|
|
529
533
|
transition: {
|
|
530
534
|
duration: u.duration
|
|
531
535
|
}
|
|
532
536
|
}, variants: {
|
|
533
537
|
initial: {
|
|
534
|
-
x:
|
|
538
|
+
x: r(0),
|
|
535
539
|
width: 0,
|
|
536
|
-
fill:
|
|
540
|
+
fill: g[mi]
|
|
537
541
|
},
|
|
538
542
|
whileInView: {
|
|
539
|
-
x:
|
|
540
|
-
width:
|
|
541
|
-
fill:
|
|
543
|
+
x: r(mi === 0 ? 0 : pi(e.qualitativeRange.filter((di, yi) => yi < mi && di))),
|
|
544
|
+
width: r(rt),
|
|
545
|
+
fill: g[mi],
|
|
542
546
|
transition: {
|
|
543
547
|
duration: u.duration
|
|
544
548
|
}
|
|
545
549
|
}
|
|
546
|
-
}, initial: "initial", animate:
|
|
547
|
-
e.target &&
|
|
548
|
-
fill: qt
|
|
549
|
-
}, exit: {
|
|
550
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial", y: 0, height: F.bandwidth() }, mi)) : null,
|
|
551
|
+
e.target && P === "background" ? /* @__PURE__ */ n.jsx(dt.rect, { y: 0, x: e.target >= 0 ? r(0) : r(e.target), height: F.bandwidth(), exit: {
|
|
550
552
|
width: 0,
|
|
551
|
-
x:
|
|
553
|
+
x: r(0),
|
|
554
|
+
fill: tt,
|
|
552
555
|
transition: {
|
|
553
556
|
duration: u.duration
|
|
554
557
|
}
|
|
555
558
|
}, variants: {
|
|
556
559
|
initial: {
|
|
557
|
-
x:
|
|
560
|
+
x: r(0),
|
|
561
|
+
fill: tt,
|
|
558
562
|
width: 0
|
|
559
563
|
},
|
|
560
564
|
whileInView: {
|
|
561
|
-
x: e.target >= 0 ?
|
|
562
|
-
|
|
565
|
+
x: e.target >= 0 ? r(0) : r(e.target),
|
|
566
|
+
fill: tt,
|
|
567
|
+
width: e.target >= 0 ? r(e.target) - r(0) : r(0) - r(e.target),
|
|
563
568
|
transition: {
|
|
564
569
|
duration: u.duration
|
|
565
570
|
}
|
|
566
571
|
}
|
|
567
|
-
}, initial: "initial", animate:
|
|
568
|
-
e.size ? /* @__PURE__ */ n.jsx(
|
|
569
|
-
fill:
|
|
570
|
-
}, height:
|
|
572
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial" }) : null,
|
|
573
|
+
e.size ? /* @__PURE__ */ n.jsx(dt.rect, { y: F.bandwidth() * ((1 - o) / 2), style: {
|
|
574
|
+
fill: C
|
|
575
|
+
}, height: F.bandwidth() * o, exit: {
|
|
571
576
|
width: 0,
|
|
572
|
-
x:
|
|
577
|
+
x: r(0),
|
|
573
578
|
transition: {
|
|
574
579
|
duration: u.duration
|
|
575
580
|
}
|
|
576
581
|
}, variants: {
|
|
577
582
|
initial: {
|
|
578
|
-
x:
|
|
583
|
+
x: r(0),
|
|
579
584
|
width: 0
|
|
580
585
|
},
|
|
581
586
|
whileInView: {
|
|
582
|
-
x: e.size >= 0 ?
|
|
583
|
-
width: e.size >= 0 ?
|
|
587
|
+
x: e.size >= 0 ? r(0) : r(e.size),
|
|
588
|
+
width: e.size >= 0 ? r(e.size) - r(0) : r(0) - r(e.size),
|
|
584
589
|
transition: {
|
|
585
590
|
duration: u.duration
|
|
586
591
|
}
|
|
587
592
|
}
|
|
588
|
-
}, initial: "initial", animate:
|
|
589
|
-
e.target &&
|
|
590
|
-
fill: qt
|
|
591
|
-
}, width: 2, exit: {
|
|
593
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial" }) : null,
|
|
594
|
+
e.target && P === "line" ? /* @__PURE__ */ n.jsx(dt.rect, { y: 0, height: F.bandwidth(), width: H, exit: {
|
|
592
595
|
opacity: 0,
|
|
593
|
-
x:
|
|
596
|
+
x: r(0),
|
|
597
|
+
fill: tt,
|
|
594
598
|
transition: {
|
|
595
599
|
duration: u.duration
|
|
596
600
|
}
|
|
597
601
|
}, variants: {
|
|
598
602
|
initial: {
|
|
599
|
-
x:
|
|
600
|
-
opacity: 0
|
|
603
|
+
x: r(0),
|
|
604
|
+
opacity: 0,
|
|
605
|
+
fill: tt
|
|
601
606
|
},
|
|
602
607
|
whileInView: {
|
|
603
|
-
x:
|
|
608
|
+
x: r(e.target) - H / 2,
|
|
604
609
|
opacity: 1,
|
|
610
|
+
fill: tt,
|
|
605
611
|
transition: {
|
|
606
612
|
duration: u.duration
|
|
607
613
|
}
|
|
608
614
|
}
|
|
609
|
-
}, initial: "initial", animate:
|
|
610
|
-
ri ? /* @__PURE__ */ n.jsx(
|
|
611
|
-
ii ? /* @__PURE__ */ n.jsx(
|
|
615
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial" }) : null,
|
|
616
|
+
ri ? /* @__PURE__ */ n.jsx(Xi, { value: `${e.label}`.length < ei ? `${e.label}` : `${`${e.label}`.substring(0, ei)}...`, y: 0, x: (e.size || 0) < 0 ? r(0) : 0 - m.left, width: (e.size || 0) < 0 ? Ft - r(0) : r(0) + m.left, height: F.bandwidth(), alignment: e.size && e.size < 0 ? "left" : "right", style: l?.yAxis?.labels, className: h?.yAxis?.labels, animate: u, isInView: X }) : null,
|
|
617
|
+
ii ? /* @__PURE__ */ n.jsx(dt.text, { y: F.bandwidth() / 2, style: {
|
|
612
618
|
textAnchor: e.size && e.size < 0 ? "end" : "start",
|
|
613
619
|
...l?.graphObjectValues || {}
|
|
614
|
-
}, className:
|
|
620
|
+
}, className: zi("graph-value text-sm", !Mt && C.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", h?.graphObjectValues), dx: e.size && e.size < 0 ? -5 : 5, dy: "0.33em", exit: {
|
|
615
621
|
opacity: 0,
|
|
616
622
|
transition: {
|
|
617
623
|
duration: u.duration
|
|
618
624
|
}
|
|
619
625
|
}, variants: {
|
|
620
626
|
initial: {
|
|
621
|
-
x:
|
|
627
|
+
x: r(0),
|
|
622
628
|
opacity: 0,
|
|
623
|
-
fill:
|
|
629
|
+
fill: Mt || C
|
|
624
630
|
},
|
|
625
631
|
whileInView: {
|
|
626
|
-
x: e.size ?
|
|
632
|
+
x: e.size ? r(e.size) : r(0),
|
|
627
633
|
opacity: 1,
|
|
628
|
-
fill:
|
|
634
|
+
fill: Mt || C,
|
|
629
635
|
transition: {
|
|
630
636
|
duration: u.duration
|
|
631
637
|
}
|
|
632
638
|
}
|
|
633
|
-
}, initial: "initial", animate:
|
|
634
|
-
] }, e.label)),
|
|
639
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial", children: Ai(e.size, Zt, it, qt, St) }) : null
|
|
640
|
+
] }, e.label)), D = vt ? /* @__PURE__ */ n.jsx(n.Fragment, { children: vt.map((e, rt) => /* @__PURE__ */ n.jsx(Fi, { text: e.text, color: e.color, x: r(e.value), y1: 0 - m.top, y2: et + m.bottom, textSide: r(e.value) > Vt * 0.75 || Bt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: u, isInView: X }, rt)) }) : null, t[27] = u, t[28] = _, t[29] = C, t[30] = Jt, t[31] = h?.graphObjectValues, t[32] = h?.xAxis?.gridLines, t[33] = h?.xAxis?.labels, t[34] = h?.xAxis?.title, t[35] = h?.yAxis?.axis, t[36] = h?.yAxis?.labels, t[37] = L, t[38] = a, t[39] = A, t[40] = lt, t[41] = et, t[42] = Vt, t[43] = Qt, t[44] = d, t[45] = X, t[46] = B, t[47] = m.bottom, t[48] = m.left, t[49] = m.top, t[50] = wt, t[51] = o, t[52] = Pt, t[53] = N, t[54] = Zt, t[55] = f, t[56] = nt, t[57] = ut, t[58] = it, t[59] = qt, t[60] = g, t[61] = vt, t[62] = k, t[63] = Bt, t[64] = ri, t[65] = Kt, t[66] = ii, t[67] = l?.graphObjectValues, t[68] = l?.xAxis?.gridLines, t[69] = l?.xAxis?.labels, t[70] = l?.xAxis?.title, t[71] = l?.yAxis?.axis, t[72] = l?.yAxis?.labels, t[73] = St, t[74] = tt, t[75] = H, t[76] = P, t[77] = Ht, t[78] = ei, t[79] = Mt, t[80] = Ft, t[81] = Gt, t[82] = $, t[83] = I, t[84] = Y, t[85] = E, t[86] = D, t[87] = G, t[88] = W, t[89] = v, t[90] = V, t[91] = z, t[92] = R, t[93] = S, t[94] = w, t[95] = M, t[96] = U;
|
|
635
641
|
} else
|
|
636
|
-
I = t[
|
|
637
|
-
let
|
|
638
|
-
t[
|
|
639
|
-
X,
|
|
640
|
-
T
|
|
641
|
-
] }), t[110] = I, t[111] = X, t[112] = T, t[113] = W) : W = t[113];
|
|
642
|
-
let U;
|
|
643
|
-
t[114] !== L ? (U = L.filter(Ae).map(Me), t[114] = L, t[115] = U) : U = t[115];
|
|
644
|
-
let S;
|
|
645
|
-
t[116] !== Y || t[117] !== E || t[118] !== b || t[119] !== z || t[120] !== j || t[121] !== W || t[122] !== U ? (S = /* @__PURE__ */ n.jsxs("g", { transform: Y, children: [
|
|
642
|
+
I = t[83], Y = t[84], E = t[85], D = t[86], G = t[87], W = t[88], v = t[89], V = t[90], z = t[91], R = t[92], S = t[93], w = t[94], M = t[95], U = t[96];
|
|
643
|
+
let J;
|
|
644
|
+
t[111] !== I || t[112] !== E || t[113] !== D ? (J = /* @__PURE__ */ n.jsxs(I, { children: [
|
|
646
645
|
E,
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
646
|
+
D
|
|
647
|
+
] }), t[111] = I, t[112] = E, t[113] = D, t[114] = J) : J = t[114];
|
|
648
|
+
let K;
|
|
649
|
+
t[115] !== L ? (K = L.filter(Ve).map(Ae), t[115] = L, t[116] = K) : K = t[116];
|
|
650
|
+
let Q;
|
|
651
|
+
t[117] !== G || t[118] !== W || t[119] !== v || t[120] !== V || t[121] !== z || t[122] !== J || t[123] !== K ? (Q = /* @__PURE__ */ n.jsxs("g", { transform: G, children: [
|
|
650
652
|
W,
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
653
|
+
v,
|
|
654
|
+
V,
|
|
655
|
+
z,
|
|
656
|
+
J,
|
|
657
|
+
K
|
|
658
|
+
] }), t[117] = G, t[118] = W, t[119] = v, t[120] = V, t[121] = z, t[122] = J, t[123] = K, t[124] = Q) : Q = t[124];
|
|
655
659
|
let q;
|
|
656
|
-
t[
|
|
657
|
-
let
|
|
658
|
-
t[
|
|
659
|
-
|
|
660
|
+
t[125] !== Y || t[126] !== R || t[127] !== S || t[128] !== w || t[129] !== M || t[130] !== U || t[131] !== Q ? (q = /* @__PURE__ */ n.jsx(Y, { width: R, height: S, viewBox: w, direction: M, ref: U, children: Q }), t[125] = Y, t[126] = R, t[127] = S, t[128] = w, t[129] = M, t[130] = U, t[131] = Q, t[132] = q) : q = t[132];
|
|
661
|
+
let st;
|
|
662
|
+
t[133] !== h?.tooltip || t[134] !== T || t[135] !== At || t[136] !== Yt || t[137] !== l?.tooltip || t[138] !== ct ? (st = Yt && ct && T && At ? /* @__PURE__ */ n.jsx(ki, { data: Yt, body: ct, xPos: T, yPos: At, backgroundStyle: l?.tooltip, className: h?.tooltip }) : null, t[133] = h?.tooltip, t[134] = T, t[135] = At, t[136] = Yt, t[137] = l?.tooltip, t[138] = ct, t[139] = st) : st = t[139];
|
|
663
|
+
let at;
|
|
664
|
+
t[140] !== A || t[141] !== N ? (at = A && N !== void 0 ? /* @__PURE__ */ n.jsx(Ci, { open: N !== void 0, onClose: () => {
|
|
665
|
+
li(void 0);
|
|
660
666
|
}, children: /* @__PURE__ */ n.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof A == "string" ? {
|
|
661
|
-
__html:
|
|
662
|
-
} : void 0, children: typeof A == "function" ? A(
|
|
667
|
+
__html: Li(A, N)
|
|
668
|
+
} : void 0, children: typeof A == "function" ? A(N) : null }) }) : null, t[140] = A, t[141] = N, t[142] = at) : at = t[142];
|
|
663
669
|
let c;
|
|
664
|
-
return t[
|
|
665
|
-
lt,
|
|
670
|
+
return t[143] !== q || t[144] !== st || t[145] !== at ? (c = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
666
671
|
q,
|
|
667
|
-
|
|
668
|
-
|
|
672
|
+
st,
|
|
673
|
+
at
|
|
674
|
+
] }), t[143] = q, t[144] = st, t[145] = at, t[146] = c) : c = t[146], c;
|
|
669
675
|
}
|
|
670
|
-
function
|
|
676
|
+
function Ae(i) {
|
|
671
677
|
return i.layer;
|
|
672
678
|
}
|
|
673
|
-
function
|
|
679
|
+
function Ve(i) {
|
|
674
680
|
return i.position === "after";
|
|
675
681
|
}
|
|
676
|
-
function
|
|
682
|
+
function ze(i) {
|
|
677
683
|
return i.layer;
|
|
678
684
|
}
|
|
679
|
-
function
|
|
685
|
+
function je(i) {
|
|
680
686
|
return i.position === "before";
|
|
681
687
|
}
|
|
682
|
-
function
|
|
688
|
+
function Ce(i) {
|
|
683
689
|
return i !== 0;
|
|
684
690
|
}
|
|
685
|
-
function
|
|
691
|
+
function ke(i) {
|
|
686
692
|
return i !== 0;
|
|
687
693
|
}
|
|
688
|
-
function
|
|
694
|
+
function Le(i) {
|
|
689
695
|
return `${i.id}`;
|
|
690
696
|
}
|
|
691
|
-
function
|
|
697
|
+
function Oe(i) {
|
|
692
698
|
return i.target;
|
|
693
699
|
}
|
|
694
|
-
function
|
|
700
|
+
function Ne(i) {
|
|
695
701
|
return !p(i.target);
|
|
696
702
|
}
|
|
697
|
-
function
|
|
703
|
+
function Te(i) {
|
|
698
704
|
return i.target;
|
|
699
705
|
}
|
|
700
706
|
function $e(i) {
|
|
@@ -703,179 +709,180 @@ function $e(i) {
|
|
|
703
709
|
function Ie(i) {
|
|
704
710
|
return i.size;
|
|
705
711
|
}
|
|
706
|
-
function Te(i) {
|
|
707
|
-
return !p(i.size);
|
|
708
|
-
}
|
|
709
712
|
function De(i) {
|
|
710
|
-
return i.size;
|
|
713
|
+
return !p(i.size);
|
|
711
714
|
}
|
|
712
715
|
function Re(i) {
|
|
713
|
-
return
|
|
716
|
+
return i.size;
|
|
714
717
|
}
|
|
715
718
|
function Se(i) {
|
|
716
|
-
return
|
|
719
|
+
return !p(i.size);
|
|
717
720
|
}
|
|
718
721
|
function qe(i) {
|
|
719
|
-
return
|
|
722
|
+
return pi((i.qualitativeRange || []).filter(Fe)) || 0;
|
|
720
723
|
}
|
|
721
724
|
function Fe(i) {
|
|
722
|
-
return i
|
|
725
|
+
return !p(i);
|
|
723
726
|
}
|
|
724
727
|
function Be(i) {
|
|
725
|
-
return
|
|
728
|
+
return i.target;
|
|
726
729
|
}
|
|
727
730
|
function Pe(i) {
|
|
728
|
-
return i.target;
|
|
731
|
+
return !p(i.target);
|
|
729
732
|
}
|
|
730
733
|
function He(i) {
|
|
731
|
-
return
|
|
734
|
+
return i.target;
|
|
732
735
|
}
|
|
733
736
|
function Xe(i) {
|
|
734
|
-
return i.
|
|
737
|
+
return !p(i.target);
|
|
735
738
|
}
|
|
736
739
|
function Ye(i) {
|
|
737
|
-
return
|
|
740
|
+
return i.size;
|
|
738
741
|
}
|
|
739
742
|
function Ee(i) {
|
|
740
|
-
return i.size;
|
|
743
|
+
return !p(i.size);
|
|
741
744
|
}
|
|
742
745
|
function Ge(i) {
|
|
746
|
+
return i.size;
|
|
747
|
+
}
|
|
748
|
+
function We(i) {
|
|
743
749
|
return !p(i.size);
|
|
744
750
|
}
|
|
745
|
-
function
|
|
746
|
-
const t =
|
|
751
|
+
function ka(i) {
|
|
752
|
+
const t = Vi.c(95), {
|
|
747
753
|
data: a,
|
|
748
|
-
graphTitle:
|
|
749
|
-
barColor:
|
|
750
|
-
barPadding:
|
|
751
|
-
showTicks:
|
|
752
|
-
leftMargin:
|
|
753
|
-
rightMargin:
|
|
754
|
-
topMargin:
|
|
755
|
-
bottomMargin:
|
|
754
|
+
graphTitle: yt,
|
|
755
|
+
barColor: Ut,
|
|
756
|
+
barPadding: Rt,
|
|
757
|
+
showTicks: bt,
|
|
758
|
+
leftMargin: C,
|
|
759
|
+
rightMargin: St,
|
|
760
|
+
topMargin: qt,
|
|
761
|
+
bottomMargin: Jt,
|
|
756
762
|
truncateBy: ii,
|
|
757
|
-
showLabels:
|
|
763
|
+
showLabels: Kt,
|
|
758
764
|
showValues: ei,
|
|
759
|
-
backgroundColor:
|
|
760
|
-
suffix:
|
|
765
|
+
backgroundColor: Ft,
|
|
766
|
+
suffix: Qt,
|
|
761
767
|
prefix: ri,
|
|
762
|
-
sources:
|
|
763
|
-
graphDescription:
|
|
764
|
-
height:
|
|
768
|
+
sources: ct,
|
|
769
|
+
graphDescription: ut,
|
|
770
|
+
height: vt,
|
|
765
771
|
width: d,
|
|
766
|
-
footNote:
|
|
767
|
-
colorDomain:
|
|
768
|
-
colorLegendTitle:
|
|
769
|
-
padding:
|
|
770
|
-
relativeHeight:
|
|
771
|
-
tooltip:
|
|
772
|
-
onSeriesMouseOver:
|
|
772
|
+
footNote: mt,
|
|
773
|
+
colorDomain: Z,
|
|
774
|
+
colorLegendTitle: nt,
|
|
775
|
+
padding: B,
|
|
776
|
+
relativeHeight: Bt,
|
|
777
|
+
tooltip: wt,
|
|
778
|
+
onSeriesMouseOver: Pt,
|
|
773
779
|
refValues: k,
|
|
774
780
|
showColorScale: A,
|
|
775
|
-
graphID:
|
|
776
|
-
maxValue:
|
|
777
|
-
minValue:
|
|
781
|
+
graphID: _,
|
|
782
|
+
maxValue: Mt,
|
|
783
|
+
minValue: f,
|
|
778
784
|
highlightedDataPoints: l,
|
|
779
|
-
onSeriesMouseClick:
|
|
780
|
-
valueColor:
|
|
781
|
-
orientation:
|
|
782
|
-
styles:
|
|
783
|
-
classNames:
|
|
785
|
+
onSeriesMouseClick: h,
|
|
786
|
+
valueColor: P,
|
|
787
|
+
orientation: tt,
|
|
788
|
+
styles: g,
|
|
789
|
+
classNames: o,
|
|
784
790
|
qualitativeRangeColors: u,
|
|
785
|
-
targetColor:
|
|
786
|
-
filterNA:
|
|
791
|
+
targetColor: lt,
|
|
792
|
+
filterNA: it,
|
|
787
793
|
targetStyle: L,
|
|
788
|
-
measureBarWidthFactor:
|
|
789
|
-
animate:
|
|
790
|
-
dimmedOpacity:
|
|
791
|
-
precision:
|
|
792
|
-
customLayers:
|
|
793
|
-
naLabel:
|
|
794
|
-
graphDownload:
|
|
795
|
-
dataDownload:
|
|
796
|
-
language:
|
|
797
|
-
theme:
|
|
798
|
-
sortData:
|
|
799
|
-
labelOrder:
|
|
800
|
-
minHeight:
|
|
801
|
-
maxBarThickness:
|
|
802
|
-
maxNumberOfBars:
|
|
803
|
-
minBarThickness:
|
|
804
|
-
ariaLabel:
|
|
794
|
+
measureBarWidthFactor: Zt,
|
|
795
|
+
animate: H,
|
|
796
|
+
dimmedOpacity: Ht,
|
|
797
|
+
precision: ai,
|
|
798
|
+
customLayers: Xt,
|
|
799
|
+
naLabel: ci,
|
|
800
|
+
graphDownload: ni,
|
|
801
|
+
dataDownload: O,
|
|
802
|
+
language: X,
|
|
803
|
+
theme: Yt,
|
|
804
|
+
sortData: x,
|
|
805
|
+
labelOrder: N,
|
|
806
|
+
minHeight: li,
|
|
807
|
+
maxBarThickness: T,
|
|
808
|
+
maxNumberOfBars: ft,
|
|
809
|
+
minBarThickness: At,
|
|
810
|
+
ariaLabel: _t,
|
|
805
811
|
resetSelectionOnDoubleClick: ti,
|
|
806
|
-
detailsOnClick:
|
|
807
|
-
barAxisTitle:
|
|
808
|
-
noOfTicks:
|
|
809
|
-
|
|
812
|
+
detailsOnClick: Et,
|
|
813
|
+
barAxisTitle: m,
|
|
814
|
+
noOfTicks: Vt,
|
|
815
|
+
targetLineThickness: et
|
|
816
|
+
} = i, zt = Ut === void 0 ? wi.primaryColors["blue-600"] : Ut, jt = Rt === void 0 ? 0.25 : Rt, Ct = bt === void 0 ? !0 : bt, kt = ii === void 0 ? 999 : ii, Lt = Kt === void 0 ? !0 : Kt, Ot = ei === void 0 ? !0 : ei, Nt = Ft === void 0 ? !1 : Ft, Gt = Qt === void 0 ? "" : Qt, Tt = ri === void 0 ? "" : ri, $t = A === void 0 ? !0 : A;
|
|
810
817
|
let ht;
|
|
811
818
|
t[0] !== l ? (ht = l === void 0 ? [] : l, t[0] = l, t[1] = ht) : ht = t[1];
|
|
812
|
-
const
|
|
813
|
-
let
|
|
814
|
-
t[2] !==
|
|
815
|
-
const
|
|
816
|
-
let
|
|
817
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
818
|
-
const
|
|
819
|
-
|
|
819
|
+
const It = ht, b = tt === void 0 ? "vertical" : tt, $ = lt === void 0 ? wi.light.grays["gray-700"] : lt, I = it === void 0 ? !0 : it, Y = L === void 0 ? "line" : L, E = Zt === void 0 ? 0.4 : Zt, D = H === void 0 ? !1 : H, G = Ht === void 0 ? 0.3 : Ht, W = ai === void 0 ? 2 : ai;
|
|
820
|
+
let v;
|
|
821
|
+
t[2] !== Xt ? (v = Xt === void 0 ? [] : Xt, t[2] = Xt, t[3] = v) : v = t[3];
|
|
822
|
+
const V = v, z = ci === void 0 ? "NA" : ci, R = ni === void 0 ? !1 : ni, S = O === void 0 ? !1 : O, w = X === void 0 ? "en" : X, M = Yt === void 0 ? "light" : Yt, U = li === void 0 ? 0 : li, J = ti === void 0 ? !0 : ti, K = Vt === void 0 ? 5 : Vt, Q = et === void 0 ? 2 : et, [q, st] = oi(0), [at, c] = oi(0), Dt = Mi(null), fi = Mi(null), r = b === "horizontal" ? Me : Ki;
|
|
823
|
+
let j, F;
|
|
824
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (j = () => {
|
|
825
|
+
const y = new ResizeObserver((pt) => {
|
|
826
|
+
st(pt[0].target.clientWidth || 620), c(pt[0].target.clientHeight || 480);
|
|
820
827
|
});
|
|
821
|
-
return
|
|
822
|
-
},
|
|
823
|
-
const
|
|
824
|
-
let
|
|
825
|
-
t[6] !==
|
|
826
|
-
title:
|
|
827
|
-
description:
|
|
828
|
+
return Dt.current && y.observe(Dt.current), () => y.disconnect();
|
|
829
|
+
}, F = [], t[4] = j, t[5] = F) : (j = t[4], F = t[5]), Ri(j, F);
|
|
830
|
+
const hi = o?.graphContainer, ui = g?.graphContainer;
|
|
831
|
+
let xt;
|
|
832
|
+
t[6] !== o?.description || t[7] !== o?.title || t[8] !== a || t[9] !== S || t[10] !== ut || t[11] !== R || t[12] !== yt || t[13] !== g?.description || t[14] !== g?.title || t[15] !== d ? (xt = yt || ut || R || S ? /* @__PURE__ */ n.jsx(Ui, { styles: {
|
|
833
|
+
title: g?.title,
|
|
834
|
+
description: g?.description
|
|
828
835
|
}, classNames: {
|
|
829
|
-
title:
|
|
830
|
-
description:
|
|
831
|
-
}, graphTitle:
|
|
832
|
-
let
|
|
833
|
-
t[17] !==
|
|
834
|
-
|
|
835
|
-
/* @__PURE__ */ n.jsx(
|
|
836
|
+
title: o?.title,
|
|
837
|
+
description: o?.description
|
|
838
|
+
}, graphTitle: yt, graphDescription: ut, width: d, graphDownload: R ? fi : void 0, dataDownload: S ? a.map(_e).filter(Ze).length > 0 ? a.map(Qe).filter(Ke) : a.filter(Je) : null }) : null, t[6] = o?.description, t[7] = o?.title, t[8] = a, t[9] = S, t[10] = ut, t[11] = R, t[12] = yt, t[13] = g?.description, t[14] = g?.title, t[15] = d, t[16] = xt) : xt = t[16];
|
|
839
|
+
let ot;
|
|
840
|
+
t[17] !== r || t[18] !== D || t[19] !== m || t[20] !== zt || t[21] !== jt || t[22] !== Jt || t[23] !== o || t[24] !== Z || t[25] !== nt || t[26] !== V || t[27] !== a || t[28] !== Et || t[29] !== G || t[30] !== I || t[31] !== It || t[32] !== N || t[33] !== w || t[34] !== C || t[35] !== T || t[36] !== ft || t[37] !== Mt || t[38] !== E || t[39] !== At || t[40] !== f || t[41] !== z || t[42] !== K || t[43] !== h || t[44] !== Pt || t[45] !== b || t[46] !== W || t[47] !== Tt || t[48] !== u || t[49] !== k || t[50] !== J || t[51] !== St || t[52] !== $t || t[53] !== Lt || t[54] !== Ct || t[55] !== Ot || t[56] !== x || t[57] !== g || t[58] !== Gt || t[59] !== at || t[60] !== q || t[61] !== $ || t[62] !== Q || t[63] !== Y || t[64] !== M || t[65] !== wt || t[66] !== qt || t[67] !== kt || t[68] !== P || t[69] !== d ? (ot = a.length === 0 ? /* @__PURE__ */ n.jsx(Yi, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
841
|
+
$t && a.filter(Ue).length !== 0 && Z ? /* @__PURE__ */ n.jsx(Ji, { width: d, colorLegendTitle: nt, colors: u || wi[M].sequentialColors.positiveColorsx10, colorDomain: Z, showNAColor: !1, className: o?.colorLegend }) : null,
|
|
842
|
+
/* @__PURE__ */ n.jsx(Ei, { ref: Dt, children: q && at ? /* @__PURE__ */ n.jsx(r, { data: x ? Si(a.filter((y) => I ? !p(y.size) : y), [(y) => y.size === void 0 ? x === "asc" ? (b === "horizontal" ? 1 : -1) * (1 / 0) : (b === "horizontal" ? -1 : 1) * (1 / 0) : y.size], [x]).filter((y, pt) => ft ? pt < ft : !0) : a.filter((y) => I ? !p(y.size) : y).filter((y, pt) => ft ? pt < ft : !0), barColor: zt, targetColor: $, width: q, refValues: k, height: at, suffix: Gt, prefix: Tt, barPadding: jt, showLabels: Lt, showValues: Ot, showTicks: Ct, truncateBy: kt, leftMargin: C, rightMargin: St, qualitativeRangeColors: u || wi[M].sequentialColors.positiveColorsx10, topMargin: qt, bottomMargin: Jt, tooltip: wt, onSeriesMouseOver: Pt, maxValue: Mt, minValue: f, highlightedDataPoints: It, onSeriesMouseClick: h, labelOrder: N, maxBarThickness: T, minBarThickness: At, resetSelectionOnDoubleClick: J, detailsOnClick: Et, barAxisTitle: m, noOfTicks: K, valueColor: P, styles: g, classNames: o, targetStyle: Y, dimmedOpacity: G, measureBarWidthFactor: E, animate: D === !0 ? {
|
|
836
843
|
duration: 0.5,
|
|
837
844
|
once: !0,
|
|
838
845
|
amount: 0.5
|
|
839
|
-
} :
|
|
846
|
+
} : D || {
|
|
840
847
|
duration: 0,
|
|
841
848
|
once: !0,
|
|
842
849
|
amount: 0
|
|
843
|
-
}, precision:
|
|
844
|
-
] }), t[17] =
|
|
845
|
-
let
|
|
846
|
-
t[
|
|
847
|
-
footnote:
|
|
848
|
-
source:
|
|
850
|
+
}, precision: W, customLayers: V, naLabel: z, targetLineThickness: Q, rtl: w === "ar" || w === "he" }) : null })
|
|
851
|
+
] }), t[17] = r, t[18] = D, t[19] = m, t[20] = zt, t[21] = jt, t[22] = Jt, t[23] = o, t[24] = Z, t[25] = nt, t[26] = V, t[27] = a, t[28] = Et, t[29] = G, t[30] = I, t[31] = It, t[32] = N, t[33] = w, t[34] = C, t[35] = T, t[36] = ft, t[37] = Mt, t[38] = E, t[39] = At, t[40] = f, t[41] = z, t[42] = K, t[43] = h, t[44] = Pt, t[45] = b, t[46] = W, t[47] = Tt, t[48] = u, t[49] = k, t[50] = J, t[51] = St, t[52] = $t, t[53] = Lt, t[54] = Ct, t[55] = Ot, t[56] = x, t[57] = g, t[58] = Gt, t[59] = at, t[60] = q, t[61] = $, t[62] = Q, t[63] = Y, t[64] = M, t[65] = wt, t[66] = qt, t[67] = kt, t[68] = P, t[69] = d, t[70] = ot) : ot = t[70];
|
|
852
|
+
let gt;
|
|
853
|
+
t[71] !== o?.footnote || t[72] !== o?.source || t[73] !== mt || t[74] !== ct || t[75] !== g?.footnote || t[76] !== g?.source || t[77] !== d ? (gt = ct || mt ? /* @__PURE__ */ n.jsx(Wi, { styles: {
|
|
854
|
+
footnote: g?.footnote,
|
|
855
|
+
source: g?.source
|
|
849
856
|
}, classNames: {
|
|
850
|
-
footnote:
|
|
851
|
-
source:
|
|
852
|
-
}, sources:
|
|
853
|
-
let
|
|
854
|
-
return t[
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
] }), t[
|
|
859
|
-
}
|
|
860
|
-
function We(i) {
|
|
861
|
-
return i.qualitativeRange;
|
|
857
|
+
footnote: o?.footnote,
|
|
858
|
+
source: o?.source
|
|
859
|
+
}, sources: ct, footNote: mt, width: d }) : null, t[71] = o?.footnote, t[72] = o?.source, t[73] = mt, t[74] = ct, t[75] = g?.footnote, t[76] = g?.source, t[77] = d, t[78] = gt) : gt = t[78];
|
|
860
|
+
let Wt;
|
|
861
|
+
return t[79] !== _t || t[80] !== Nt || t[81] !== _ || t[82] !== vt || t[83] !== w || t[84] !== U || t[85] !== B || t[86] !== Bt || t[87] !== hi || t[88] !== ui || t[89] !== xt || t[90] !== ot || t[91] !== gt || t[92] !== M || t[93] !== d ? (Wt = /* @__PURE__ */ n.jsxs(Gi, { className: hi, style: ui, id: _, ref: fi, "aria-label": _t, backgroundColor: Nt, theme: M, language: w, minHeight: U, width: d, height: vt, relativeHeight: Bt, padding: B, children: [
|
|
862
|
+
xt,
|
|
863
|
+
ot,
|
|
864
|
+
gt
|
|
865
|
+
] }), t[79] = _t, t[80] = Nt, t[81] = _, t[82] = vt, t[83] = w, t[84] = U, t[85] = B, t[86] = Bt, t[87] = hi, t[88] = ui, t[89] = xt, t[90] = ot, t[91] = gt, t[92] = M, t[93] = d, t[94] = Wt) : Wt = t[94], Wt;
|
|
862
866
|
}
|
|
863
867
|
function Ue(i) {
|
|
864
|
-
return i
|
|
868
|
+
return i.qualitativeRange;
|
|
865
869
|
}
|
|
866
870
|
function Je(i) {
|
|
867
871
|
return i !== void 0;
|
|
868
872
|
}
|
|
869
873
|
function Ke(i) {
|
|
870
|
-
return i
|
|
874
|
+
return i !== void 0;
|
|
871
875
|
}
|
|
872
876
|
function Qe(i) {
|
|
873
|
-
return i
|
|
877
|
+
return i.data;
|
|
874
878
|
}
|
|
875
879
|
function Ze(i) {
|
|
880
|
+
return i !== void 0;
|
|
881
|
+
}
|
|
882
|
+
function _e(i) {
|
|
876
883
|
return i.data;
|
|
877
884
|
}
|
|
878
885
|
export {
|
|
879
|
-
|
|
886
|
+
ka as BulletChart
|
|
880
887
|
};
|
|
881
888
|
//# sourceMappingURL=BulletChart.js.map
|