@undp/data-viz 2.3.12 → 2.3.14

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