@undp/data-viz 2.3.12 → 2.3.13

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