@undp/data-viz 2.3.19 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +1360 -1363
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BeeSwarmChart.cjs +1 -1
  6. package/dist/BeeSwarmChart.cjs.map +1 -1
  7. package/dist/BeeSwarmChart.js +302 -305
  8. package/dist/BeeSwarmChart.js.map +1 -1
  9. package/dist/BiVariateChoroplethMap.cjs +1 -1
  10. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  11. package/dist/BiVariateChoroplethMap.js +245 -248
  12. package/dist/BiVariateChoroplethMap.js.map +1 -1
  13. package/dist/BulletChart.cjs +1 -1
  14. package/dist/BulletChart.cjs.map +1 -1
  15. package/dist/BulletChart.js +591 -594
  16. package/dist/BulletChart.js.map +1 -1
  17. package/dist/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +283 -286
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +1 -1
  23. package/dist/DotDensityMap.cjs +1 -1
  24. package/dist/DotDensityMap.cjs.map +1 -1
  25. package/dist/DotDensityMap.js +255 -258
  26. package/dist/DotDensityMap.js.map +1 -1
  27. package/dist/DumbbellChart.cjs +1 -1
  28. package/dist/DumbbellChart.cjs.map +1 -1
  29. package/dist/DumbbellChart.js +553 -556
  30. package/dist/DumbbellChart.js.map +1 -1
  31. package/dist/{GraphEl-Dorm_qQE.js → GraphEl-B73N4RIA.js} +2 -2
  32. package/dist/{GraphEl-Dorm_qQE.js.map → GraphEl-B73N4RIA.js.map} +1 -1
  33. package/dist/{GraphEl-D8WRC8-j.cjs → GraphEl-Lt1og0C-.cjs} +2 -2
  34. package/dist/{GraphEl-D8WRC8-j.cjs.map → GraphEl-Lt1og0C-.cjs.map} +1 -1
  35. package/dist/GriddedGraphs.cjs +1 -1
  36. package/dist/GriddedGraphs.js +1 -1
  37. package/dist/Histogram.cjs +1 -1
  38. package/dist/Histogram.js +1 -1
  39. package/dist/HybridMap.cjs +1 -1
  40. package/dist/HybridMap.cjs.map +1 -1
  41. package/dist/HybridMap.js +317 -323
  42. package/dist/HybridMap.js.map +1 -1
  43. package/dist/MultiLineAltChart.cjs +1 -1
  44. package/dist/MultiLineAltChart.cjs.map +1 -1
  45. package/dist/MultiLineAltChart.js +269 -272
  46. package/dist/MultiLineAltChart.js.map +1 -1
  47. package/dist/MultiLineChart.cjs +1 -1
  48. package/dist/MultiLineChart.cjs.map +1 -1
  49. package/dist/MultiLineChart.js +319 -322
  50. package/dist/MultiLineChart.js.map +1 -1
  51. package/dist/RadarChart.cjs +1 -1
  52. package/dist/RadarChart.cjs.map +1 -1
  53. package/dist/RadarChart.js +3 -3
  54. package/dist/RadarChart.js.map +1 -1
  55. package/dist/SankeyChart.cjs +1 -1
  56. package/dist/SankeyChart.cjs.map +1 -1
  57. package/dist/SankeyChart.js +274 -280
  58. package/dist/SankeyChart.js.map +1 -1
  59. package/dist/ScatterPlot.cjs +1 -1
  60. package/dist/ScatterPlot.cjs.map +1 -1
  61. package/dist/ScatterPlot.js +341 -344
  62. package/dist/ScatterPlot.js.map +1 -1
  63. package/dist/SingleGraphDashboard.cjs +1 -1
  64. package/dist/SingleGraphDashboard.js +1 -1
  65. package/dist/SlopeChart.cjs +1 -1
  66. package/dist/SlopeChart.cjs.map +1 -1
  67. package/dist/SlopeChart.js +251 -254
  68. package/dist/SlopeChart.js.map +1 -1
  69. package/dist/StripChart.cjs +1 -1
  70. package/dist/StripChart.cjs.map +1 -1
  71. package/dist/StripChart.js +292 -295
  72. package/dist/StripChart.js.map +1 -1
  73. package/dist/ThreeDGlobe.cjs +1 -1
  74. package/dist/ThreeDGlobe.cjs.map +1 -1
  75. package/dist/ThreeDGlobe.js +116 -119
  76. package/dist/ThreeDGlobe.js.map +1 -1
  77. package/dist/TreeMapGraph.cjs +1 -1
  78. package/dist/TreeMapGraph.cjs.map +1 -1
  79. package/dist/TreeMapGraph.js +196 -199
  80. package/dist/TreeMapGraph.js.map +1 -1
  81. package/dist/WaterfallChart.cjs +1 -1
  82. package/dist/WaterfallChart.cjs.map +1 -1
  83. package/dist/WaterfallChart.js +274 -277
  84. package/dist/WaterfallChart.js.map +1 -1
  85. package/dist/index-B0Awa_de.js +377 -0
  86. package/dist/index-B0Awa_de.js.map +1 -0
  87. package/dist/index-CP8cmNzt.cjs +2 -0
  88. package/dist/index-CP8cmNzt.cjs.map +1 -0
  89. package/dist/index.cjs +1 -1
  90. package/dist/index.js +1 -1
  91. package/package.json +1 -1
  92. package/dist/index-Bdo_HXb_.cjs +0 -2
  93. package/dist/index-Bdo_HXb_.cjs.map +0 -1
  94. package/dist/index-CGrBpeUa.js +0 -380
  95. package/dist/index-CGrBpeUa.js.map +0 -1
@@ -1,94 +1,94 @@
1
- import { c as Ht, j as n, m as Zt } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as St, useState as T, useEffect as Bt } from "react";
3
- import { i as Ut } from "./index-Bwrro8-q.js";
4
- import { o as Jt } from "./index-BZQYSqar.js";
5
- import { w as Kt } from "./Spinner-B2IIKg9r.js";
6
- import { _ as de } from "./Typography-BO0gQDIT.js";
7
- import { n as Qt } from "./numberFormattingFunction-DqMf_v1m.js";
8
- import { T as _t } from "./Tooltip-Bj-s__cI.js";
9
- import { c as x } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
- import { g as te } from "./getTextColorBasedOnBgColor-CDY808zi.js";
1
+ import { c as Gt, j as n, m as It } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as At, useState as V, useEffect as Pt } from "react";
3
+ import { i as qt } from "./index-Bwrro8-q.js";
4
+ import { o as Zt } from "./index-BZQYSqar.js";
5
+ import { w as Ut } from "./Spinner-B2IIKg9r.js";
6
+ import { _ as me } from "./Typography-BO0gQDIT.js";
7
+ import { n as Jt } from "./numberFormattingFunction-DqMf_v1m.js";
8
+ import { T as Kt } from "./Tooltip-Bj-s__cI.js";
9
+ import { c as g } from "./checkIfNullOrUndefined-DmfiKkNw.js";
10
+ import { g as Qt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
11
11
  import { Colors as yt } from "./Colors.js";
12
- import { A as ee } from "./Axis-CNZYWzH0.js";
13
- import { R as pe, a as he } from "./ReferenceLine-D41VuUhE.js";
14
- import { Y as ge } from "./YTicksAndGridLines-CsNSq9W9.js";
15
- import { X as xe } from "./XTicksAndGridLines-gdbGX2rm.js";
16
- import { D as oe } from "./DetailsModal-B2XBWR7w.js";
17
- import { s as ie } from "./pow-BXYLJHCq.js";
18
- import { a as ne } from "./linear-DNXM5Pdl.js";
19
- import { f as re, a as se, b as le, c as ae, d as ce } from "./y-BqfogMAB.js";
20
- import { u as qt } from "./uniqBy-BHy4I8PK.js";
21
- import { GraphHeader as ve } from "./GraphHeader.js";
22
- import { a as ye, G as be } from "./GraphContainer-B8ZqOzKI.js";
23
- import { E as Me } from "./EmptyState-CaxXCkiN.js";
24
- import { ColorLegendWithMouseOver as je } from "./ColorLegendWithMouseOver.js";
25
- import { GraphFooter as Oe } from "./GraphFooter.js";
26
- function Ce(e) {
27
- const t = Ht.c(28), {
12
+ import { A as _t } from "./Axis-CNZYWzH0.js";
13
+ import { R as fe, a as de } from "./ReferenceLine-D41VuUhE.js";
14
+ import { Y as pe } from "./YTicksAndGridLines-CsNSq9W9.js";
15
+ import { X as he } from "./XTicksAndGridLines-gdbGX2rm.js";
16
+ import { D as te } from "./DetailsModal-B2XBWR7w.js";
17
+ import { s as ee } from "./pow-BXYLJHCq.js";
18
+ import { a as oe } from "./linear-DNXM5Pdl.js";
19
+ import { f as ie, a as ne, b as re, c as se, d as le } from "./y-BqfogMAB.js";
20
+ import { u as Wt } from "./uniqBy-BHy4I8PK.js";
21
+ import { GraphHeader as xe } from "./GraphHeader.js";
22
+ import { a as ge, G as ve } from "./GraphContainer-B8ZqOzKI.js";
23
+ import { E as ye } from "./EmptyState-CaxXCkiN.js";
24
+ import { ColorLegendWithMouseOver as be } from "./ColorLegendWithMouseOver.js";
25
+ import { GraphFooter as Me } from "./GraphFooter.js";
26
+ function je(e) {
27
+ const t = Gt.c(28), {
28
28
  data: o,
29
- circleColors: y,
30
- showTicks: rt,
31
- width: $,
32
- height: L,
33
- colorDomain: H,
29
+ circleColors: M,
30
+ showTicks: nt,
31
+ width: w,
32
+ height: $,
33
+ colorDomain: P,
34
34
  topMargin: k,
35
- bottomMargin: _,
36
- leftMargin: tt,
37
- rightMargin: st,
35
+ bottomMargin: Q,
36
+ leftMargin: _,
37
+ rightMargin: rt,
38
38
  suffix: h,
39
- prefix: F,
40
- showLabels: E,
41
- tooltip: B,
42
- onSeriesMouseOver: lt,
43
- refValues: N,
44
- selectedColor: g,
45
- startFromZero: A,
39
+ prefix: T,
40
+ showLabels: F,
41
+ tooltip: H,
42
+ onSeriesMouseOver: st,
43
+ refValues: L,
44
+ selectedColor: x,
45
+ startFromZero: N,
46
46
  radius: d,
47
- maxRadiusValue: z,
48
- maxValue: W,
49
- minValue: I,
50
- highlightedDataPoints: gt,
51
- onSeriesMouseClick: dt,
52
- resetSelectionOnDoubleClick: q,
53
- detailsOnClick: P,
47
+ maxRadiusValue: B,
48
+ maxValue: z,
49
+ minValue: W,
50
+ highlightedDataPoints: xt,
51
+ onSeriesMouseClick: ft,
52
+ resetSelectionOnDoubleClick: I,
53
+ detailsOnClick: E,
54
54
  styles: O,
55
55
  classNames: u,
56
56
  noOfTicks: v,
57
- dimmedOpacity: at,
58
- precision: ct,
59
- customLayers: pt,
60
- hideAxisLine: xt,
57
+ dimmedOpacity: lt,
58
+ precision: at,
59
+ customLayers: dt,
60
+ hideAxisLine: gt,
61
61
  locale: vt
62
- } = e, ut = k === void 0 ? 25 : k, R = _ === void 0 ? 10 : _, et = tt === void 0 ? 100 : tt, ot = st === void 0 ? 40 : st, mt = St(null), [ft, Z] = T(void 0), [X, a] = T(void 0), [c, ht] = T(null), [it, U] = T(void 0), [S, J] = T(void 0);
63
- let K;
64
- t[0] !== R || t[1] !== et || t[2] !== ot || t[3] !== ut ? (K = {
65
- top: ut,
62
+ } = e, ct = k === void 0 ? 25 : k, R = Q === void 0 ? 10 : Q, tt = _ === void 0 ? 100 : _, et = rt === void 0 ? 40 : rt, ut = At(null), [mt, q] = V(void 0), [X, a] = V(void 0), [c, pt] = V(null), [ot, Z] = V(void 0), [A, U] = V(void 0);
63
+ let J;
64
+ t[0] !== R || t[1] !== tt || t[2] !== et || t[3] !== ct ? (J = {
65
+ top: ct,
66
66
  bottom: R,
67
- left: et,
68
- right: ot
69
- }, t[0] = R, t[1] = et, t[2] = ot, t[3] = ut, t[4] = K) : K = t[4];
70
- const m = K, f = $ - m.left - m.right, nt = L - m.top - m.bottom, V = o.filter(qe).length === 0 ? o : Jt(o.filter(Ie), "radius", "desc");
71
- let Q;
72
- t[5] !== o || t[6] !== W || t[7] !== A ? (Q = x(W) ? Math.max(...o.filter(We).map(ze)) < 0 && !A ? 0 : Math.max(...o.filter(Be).map(He)) : W, t[5] = o, t[6] = W, t[7] = A, t[8] = Q) : Q = t[8];
73
- const Y = Q;
67
+ left: tt,
68
+ right: et
69
+ }, t[0] = R, t[1] = tt, t[2] = et, t[3] = ct, t[4] = J) : J = t[4];
70
+ const m = J, f = w - m.left - m.right, it = $ - m.top - m.bottom, Y = o.filter(We).length === 0 ? o : Zt(o.filter(ze), "radius", "desc");
74
71
  let G;
75
- t[9] !== o || t[10] !== I || t[11] !== A ? (G = x(I) ? Math.min(...o.filter(Ge).map(Ye)) >= 0 && !A ? 0 : Math.min(...o.filter(Xe).map(Re)) : I, t[9] = o, t[10] = I, t[11] = A, t[12] = G) : G = t[12];
76
- const p = G, s = o.filter(Pe).length !== o.length ? ie().domain([0, x(z) ? Math.max(...o.map(Ee).filter(Fe)) : z]).range([0.25, d]).nice() : void 0, l = ne().domain([p, Y]).range([nt, 0]).nice(), b = l.ticks(v);
77
- Bt(() => {
78
- const r = V.map(Te).filter(Ve);
79
- re(r).force("y", le((i) => l(i.position)).strength(5)).force("x", se((i) => f / 2).strength(1)).force("collide", ae((i) => s ? s(i.radius || 0) + 1 : d + 1)).force("charge", ce().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
80
- ht(r);
72
+ t[5] !== o || t[6] !== z || t[7] !== N ? (G = g(z) ? Math.max(...o.filter(Be).map(He)) < 0 && !N ? 0 : Math.max(...o.filter(Pe).map(Ge)) : z, t[5] = o, t[6] = z, t[7] = N, t[8] = G) : G = t[8];
73
+ const S = G;
74
+ let K;
75
+ t[9] !== o || t[10] !== W || t[11] !== N ? (K = g(W) ? Math.min(...o.filter(Ye).map(Xe)) >= 0 && !N ? 0 : Math.min(...o.filter(Re).map(Ee)) : W, t[9] = o, t[10] = W, t[11] = N, t[12] = K) : K = t[12];
76
+ const p = K, l = o.filter(Fe).length !== o.length ? ee().domain([0, g(B) ? Math.max(...o.map(Te).filter(Ve)) : B]).range([0.25, d]).nice() : void 0, s = oe().domain([p, S]).range([it, 0]).nice(), j = s.ticks(v);
77
+ Pt(() => {
78
+ const r = Y.map(Se).filter(Ae);
79
+ ie(r).force("y", re((i) => s(i.position)).strength(5)).force("x", ne((i) => f / 2).strength(1)).force("collide", se((i) => l ? l(i.radius || 0) + 1 : d + 1)).force("charge", le().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
80
+ pt(r);
81
81
  }).on("end", () => {
82
- ht(r);
82
+ pt(r);
83
83
  });
84
- }, [o, d, nt, f, p, Y, V, l, s]);
85
- const M = c ? /* @__PURE__ */ n.jsx("svg", { width: `${$}px`, height: `${L}px`, viewBox: `0 0 ${$} ${L}`, direction: "ltr", ref: mt, children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${m.left},${m.top})`, children: [
86
- rt ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
87
- /* @__PURE__ */ n.jsx(ee, { hideAxisLine: xt, y1: l(p < 0 ? 0 : p), y2: l(p < 0 ? 0 : p), x1: 0 - m.left, x2: f + m.right, label: rt ? Qt(p < 0 ? 0 : p, void 0, ct, F, h, vt) : void 0, labelPos: {
84
+ }, [o, d, it, f, p, S, Y, s, l]);
85
+ const ht = c ? /* @__PURE__ */ n.jsx("svg", { width: `${w}px`, height: `${$}px`, viewBox: `0 0 ${w} ${$}`, direction: "ltr", ref: ut, children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${m.left},${m.top})`, children: [
86
+ nt ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
87
+ /* @__PURE__ */ n.jsx(_t, { hideAxisLine: gt, y1: s(p < 0 ? 0 : p), y2: s(p < 0 ? 0 : p), x1: 0 - m.left, x2: f + m.right, label: nt ? Jt(p < 0 ? 0 : p, void 0, at, T, h, vt) : void 0, labelPos: {
88
88
  x: 0 - m.left,
89
- y: l(p < 0 ? 0 : p),
89
+ y: s(p < 0 ? 0 : p),
90
90
  dx: 0,
91
- dy: Y < 0 ? "1em" : -5
91
+ dy: S < 0 ? "1em" : -5
92
92
  }, classNames: {
93
93
  axis: u?.xAxis?.axis,
94
94
  label: u?.yAxis?.labels
@@ -96,77 +96,77 @@ function Ce(e) {
96
96
  axis: O?.xAxis?.axis,
97
97
  label: O?.yAxis?.labels
98
98
  } }),
99
- /* @__PURE__ */ n.jsx(ge, { values: b.filter(Se), y: b.filter(Ae).map((r) => l(r)), x1: 0 - m.left, x2: f + m.right, styles: {
99
+ /* @__PURE__ */ n.jsx(pe, { values: j.filter(Ne), y: j.filter(Le).map((r) => s(r)), x1: 0 - m.left, x2: f + m.right, styles: {
100
100
  gridLines: O?.yAxis?.gridLines,
101
101
  labels: O?.yAxis?.labels
102
102
  }, classNames: {
103
103
  gridLines: u?.yAxis?.gridLines,
104
104
  labels: u?.yAxis?.labels
105
- }, suffix: h, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: ct, locale: vt })
105
+ }, suffix: h, prefix: T, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: at, locale: vt })
106
106
  ] }) : null,
107
- pt.filter(Ne).map(Le),
108
- c.map((r) => /* @__PURE__ */ n.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${r.x},${r.y})`, opacity: g ? r.color && y[H.indexOf(r.color)] === g ? 1 : at : gt.length !== 0 ? gt.indexOf(r.label) !== -1 ? 0.85 : at : 0.85, onMouseEnter: (i) => {
109
- Z(r), J(i.clientY), U(i.clientX), lt?.(r);
107
+ dt.filter($e).map(we),
108
+ c.map((r) => /* @__PURE__ */ n.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${r.x},${r.y})`, opacity: x ? r.color && M[P.indexOf(r.color)] === x ? 1 : lt : xt ? xt.indexOf(r.label) !== -1 ? 0.85 : lt : 0.85, onMouseEnter: (i) => {
109
+ q(r), U(i.clientY), Z(i.clientX), st?.(r);
110
110
  }, onMouseMove: (i) => {
111
- Z(r), J(i.clientY), U(i.clientX);
111
+ q(r), U(i.clientY), Z(i.clientX);
112
112
  }, onClick: () => {
113
- (dt || P) && (Ut(X, r) && q ? (a(void 0), dt?.(void 0)) : (a(r), dt?.(r)));
113
+ (ft || E) && (qt(X, r) && I ? (a(void 0), ft?.(void 0)) : (a(r), ft?.(r)));
114
114
  }, onMouseLeave: () => {
115
- Z(void 0), U(void 0), J(void 0), lt?.(void 0);
115
+ q(void 0), Z(void 0), U(void 0), st?.(void 0);
116
116
  }, children: [
117
- /* @__PURE__ */ n.jsx("circle", { cx: 0, cy: 0, r: s ? s(r.radius || 0) : d, fill: o.filter($e).length === 0 ? y[0] : r.color ? y[H.indexOf(r.color)] : yt.gray }),
118
- (s ? s(r.radius || 0) : d) > 10 && E ? /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("foreignObject", { y: 0 - (s ? s(r.radius || 0) : d), x: 0 - (s ? s(r.radius || 0) : d), width: 2 * (s ? s(r.radius || 0) : d), height: 2 * (s ? s(r.radius || 0) : d), children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col justify-center items-center h-inherit py-0 px-1.5", children: E ? /* @__PURE__ */ n.jsx("p", { className: Zt("text-center leading-none m-0", u?.graphObjectValues), style: {
119
- fontSize: `${Math.min(Math.max(Math.round((s ? s(r.radius || 0) : d) / 4), 10), Math.max(Math.round((s ? s(r.radius || 0) : d) * 12 / `${r.label}`.length), 10), 20)}px`,
117
+ /* @__PURE__ */ n.jsx("circle", { cx: 0, cy: 0, r: l ? l(r.radius || 0) : d, fill: o.filter(De).length === 0 ? M[0] : r.color ? M[P.indexOf(r.color)] : yt.gray }),
118
+ (l ? l(r.radius || 0) : d) > 10 && F ? /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("foreignObject", { y: 0 - (l ? l(r.radius || 0) : d), x: 0 - (l ? l(r.radius || 0) : d), width: 2 * (l ? l(r.radius || 0) : d), height: 2 * (l ? l(r.radius || 0) : d), children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col justify-center items-center h-inherit py-0 px-1.5", children: F ? /* @__PURE__ */ n.jsx("p", { className: It("text-center leading-none m-0", u?.graphObjectValues), style: {
119
+ fontSize: `${Math.min(Math.max(Math.round((l ? l(r.radius || 0) : d) / 4), 10), Math.max(Math.round((l ? l(r.radius || 0) : d) * 12 / `${r.label}`.length), 10), 20)}px`,
120
120
  hyphens: "auto",
121
- color: te(o.filter(we).length === 0 ? y[0] : r.color ? y[H.indexOf(r.color)] : yt.gray),
121
+ color: Qt(o.filter(ke).length === 0 ? M[0] : r.color ? M[P.indexOf(r.color)] : yt.gray),
122
122
  ...O?.graphObjectValues || {}
123
123
  }, children: r.label }) : null }) }) }) : null
124
124
  ] }, r.label)),
125
- N ? /* @__PURE__ */ n.jsx(n.Fragment, { children: N.map((r, i) => /* @__PURE__ */ n.jsx(he, { text: r.text, color: r.color, y: l(r.value), x1: 0 - m.left, x2: f + m.right, classNames: r.classNames, styles: r.styles, isInView: !0 }, i)) }) : null,
126
- pt.filter(ke).map(De)
125
+ L ? /* @__PURE__ */ n.jsx(n.Fragment, { children: L.map((r, i) => /* @__PURE__ */ n.jsx(de, { text: r.text, color: r.color, y: s(r.value), x1: 0 - m.left, x2: f + m.right, classNames: r.classNames, styles: r.styles, isInView: !0 }, i)) }) : null,
126
+ dt.filter(Ce).map(Oe)
127
127
  ] }) }) : /* @__PURE__ */ n.jsx("div", { style: {
128
- width: `${$}px`,
129
- height: `${L}px`
130
- }, children: /* @__PURE__ */ n.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ n.jsx(Kt, {}) }) });
131
- let w;
132
- t[13] !== u?.tooltip || t[14] !== it || t[15] !== S || t[16] !== ft || t[17] !== O?.tooltip || t[18] !== B ? (w = ft && B && it && S ? /* @__PURE__ */ n.jsx(_t, { data: ft, body: B, xPos: it, yPos: S, backgroundStyle: O?.tooltip, className: u?.tooltip }) : null, t[13] = u?.tooltip, t[14] = it, t[15] = S, t[16] = ft, t[17] = O?.tooltip, t[18] = B, t[19] = w) : w = t[19];
133
- let C;
134
- t[20] !== u?.modal || t[21] !== P || t[22] !== X ? (C = P && X !== void 0 ? /* @__PURE__ */ n.jsx(oe, { body: P, data: X, setData: a, className: u?.modal }) : null, t[20] = u?.modal, t[21] = P, t[22] = X, t[23] = C) : C = t[23];
128
+ width: `${w}px`,
129
+ height: `${$}px`
130
+ }, children: /* @__PURE__ */ n.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ n.jsx(Ut, {}) }) });
135
131
  let D;
136
- return t[24] !== M || t[25] !== w || t[26] !== C ? (D = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
137
- M,
138
- w,
139
- C
140
- ] }), t[24] = M, t[25] = w, t[26] = C, t[27] = D) : D = t[27], D;
132
+ t[13] !== u?.tooltip || t[14] !== ot || t[15] !== A || t[16] !== mt || t[17] !== O?.tooltip || t[18] !== H ? (D = mt && H && ot && A ? /* @__PURE__ */ n.jsx(Kt, { data: mt, body: H, xPos: ot, yPos: A, backgroundStyle: O?.tooltip, className: u?.tooltip }) : null, t[13] = u?.tooltip, t[14] = ot, t[15] = A, t[16] = mt, t[17] = O?.tooltip, t[18] = H, t[19] = D) : D = t[19];
133
+ let y;
134
+ t[20] !== u?.modal || t[21] !== E || t[22] !== X ? (y = E && X !== void 0 ? /* @__PURE__ */ n.jsx(te, { body: E, data: X, setData: a, className: u?.modal }) : null, t[20] = u?.modal, t[21] = E, t[22] = X, t[23] = y) : y = t[23];
135
+ let C;
136
+ return t[24] !== ht || t[25] !== D || t[26] !== y ? (C = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
137
+ ht,
138
+ D,
139
+ y
140
+ ] }), t[24] = ht, t[25] = D, t[26] = y, t[27] = C) : C = t[27], C;
141
141
  }
142
- function De(e) {
142
+ function Oe(e) {
143
143
  return e.layer;
144
144
  }
145
- function ke(e) {
145
+ function Ce(e) {
146
146
  return e.position === "after";
147
147
  }
148
- function we(e) {
148
+ function ke(e) {
149
149
  return e.color;
150
150
  }
151
- function $e(e) {
151
+ function De(e) {
152
152
  return e.color;
153
153
  }
154
- function Le(e) {
154
+ function we(e) {
155
155
  return e.layer;
156
156
  }
157
- function Ne(e) {
157
+ function $e(e) {
158
158
  return e.position === "before";
159
159
  }
160
- function Ae(e) {
160
+ function Le(e) {
161
161
  return e !== 0;
162
162
  }
163
- function Se(e) {
163
+ function Ne(e) {
164
164
  return e !== 0;
165
165
  }
166
- function Ve(e) {
166
+ function Ae(e) {
167
167
  return e.position;
168
168
  }
169
- function Te(e) {
169
+ function Se(e) {
170
170
  return {
171
171
  ...e,
172
172
  ...e.data && {
@@ -176,109 +176,109 @@ function Te(e) {
176
176
  }
177
177
  };
178
178
  }
179
- function Fe(e) {
179
+ function Ve(e) {
180
180
  return e != null;
181
181
  }
182
- function Ee(e) {
182
+ function Te(e) {
183
183
  return e.radius;
184
184
  }
185
- function Pe(e) {
185
+ function Fe(e) {
186
186
  return e.radius === void 0 || e.radius === null;
187
187
  }
188
- function Re(e) {
188
+ function Ee(e) {
189
189
  return e.position;
190
190
  }
191
+ function Re(e) {
192
+ return !g(e.position);
193
+ }
191
194
  function Xe(e) {
192
- return !x(e.position);
195
+ return e.position;
193
196
  }
194
197
  function Ye(e) {
195
- return e.position;
198
+ return !g(e.position);
196
199
  }
197
200
  function Ge(e) {
198
- return !x(e.position);
201
+ return e.position;
202
+ }
203
+ function Pe(e) {
204
+ return !g(e.position);
199
205
  }
200
206
  function He(e) {
201
207
  return e.position;
202
208
  }
203
209
  function Be(e) {
204
- return !x(e.position);
210
+ return !g(e.position);
205
211
  }
206
212
  function ze(e) {
207
- return e.position;
213
+ return !g(e.radius);
208
214
  }
209
215
  function We(e) {
210
- return !x(e.position);
216
+ return !g(e.radius);
211
217
  }
212
218
  function Ie(e) {
213
- return !x(e.radius);
214
- }
215
- function qe(e) {
216
- return !x(e.radius);
217
- }
218
- function Ze(e) {
219
- const t = Ht.c(28), {
219
+ const t = Gt.c(28), {
220
220
  data: o,
221
- circleColors: y,
222
- showTicks: rt,
223
- width: $,
224
- height: L,
225
- colorDomain: H,
221
+ circleColors: M,
222
+ showTicks: nt,
223
+ width: w,
224
+ height: $,
225
+ colorDomain: P,
226
226
  topMargin: k,
227
- bottomMargin: _,
228
- leftMargin: tt,
229
- rightMargin: st,
227
+ bottomMargin: Q,
228
+ leftMargin: _,
229
+ rightMargin: rt,
230
230
  showLabels: h,
231
- tooltip: F,
232
- onSeriesMouseOver: E,
233
- refValues: B,
234
- selectedColor: lt,
235
- startFromZero: N,
236
- radius: g,
237
- maxRadiusValue: A,
231
+ tooltip: T,
232
+ onSeriesMouseOver: F,
233
+ refValues: H,
234
+ selectedColor: st,
235
+ startFromZero: L,
236
+ radius: x,
237
+ maxRadiusValue: N,
238
238
  maxValue: d,
239
- minValue: z,
240
- highlightedDataPoints: W,
241
- onSeriesMouseClick: I,
242
- rtl: gt,
243
- resetSelectionOnDoubleClick: dt,
244
- detailsOnClick: q,
245
- suffix: P,
239
+ minValue: B,
240
+ highlightedDataPoints: z,
241
+ onSeriesMouseClick: W,
242
+ rtl: xt,
243
+ resetSelectionOnDoubleClick: ft,
244
+ detailsOnClick: I,
245
+ suffix: E,
246
246
  prefix: O,
247
247
  styles: u,
248
248
  classNames: v,
249
- noOfTicks: at,
250
- dimmedOpacity: ct,
251
- precision: pt,
252
- customLayers: xt,
249
+ noOfTicks: lt,
250
+ dimmedOpacity: at,
251
+ precision: dt,
252
+ customLayers: gt,
253
253
  hideAxisLine: vt,
254
- locale: ut
255
- } = e, R = k === void 0 ? 25 : k, et = _ === void 0 ? 10 : _, ot = tt === void 0 ? 10 : tt, mt = st === void 0 ? 10 : st, ft = St(null), [Z, X] = T(void 0), [a, c] = T(void 0), [ht, it] = T(null), [U, S] = T(void 0), [J, K] = T(void 0);
254
+ locale: ct
255
+ } = e, R = k === void 0 ? 25 : k, tt = Q === void 0 ? 10 : Q, et = _ === void 0 ? 10 : _, ut = rt === void 0 ? 10 : rt, mt = At(null), [q, X] = V(void 0), [a, c] = V(void 0), [pt, ot] = V(null), [Z, A] = V(void 0), [U, J] = V(void 0);
256
256
  let m;
257
- t[0] !== et || t[1] !== ot || t[2] !== mt || t[3] !== R ? (m = {
257
+ t[0] !== tt || t[1] !== et || t[2] !== ut || t[3] !== R ? (m = {
258
258
  top: R,
259
- bottom: et,
260
- left: ot,
261
- right: mt
262
- }, t[0] = et, t[1] = ot, t[2] = mt, t[3] = R, t[4] = m) : m = t[4];
263
- const f = m, nt = $ - f.left - f.right, V = L - f.top - f.bottom, Q = o.filter(vo).length === 0 ? o : Jt(o.filter(xo), "radius", "desc");
264
- let Y;
265
- t[5] !== o || t[6] !== d || t[7] !== N ? (Y = x(d) ? Math.max(...o.filter(go).map(ho)) < 0 && !N ? 0 : Math.max(...o.filter(po).map(fo)) : d, t[5] = o, t[6] = d, t[7] = N, t[8] = Y) : Y = t[8];
266
- const G = Y;
259
+ bottom: tt,
260
+ left: et,
261
+ right: ut
262
+ }, t[0] = tt, t[1] = et, t[2] = ut, t[3] = R, t[4] = m) : m = t[4];
263
+ const f = m, it = w - f.left - f.right, Y = $ - f.top - f.bottom, G = o.filter(xo).length === 0 ? o : Zt(o.filter(ho), "radius", "desc");
264
+ let S;
265
+ t[5] !== o || t[6] !== d || t[7] !== L ? (S = g(d) ? Math.max(...o.filter(po).map(fo)) < 0 && !L ? 0 : Math.max(...o.filter(mo).map(uo)) : d, t[5] = o, t[6] = d, t[7] = L, t[8] = S) : S = t[8];
266
+ const K = S;
267
267
  let p;
268
- t[9] !== o || t[10] !== z || t[11] !== N ? (p = x(z) ? Math.min(...o.filter(mo).map(uo)) >= 0 && !N ? 0 : Math.min(...o.filter(co).map(ao)) : z, t[9] = o, t[10] = z, t[11] = N, t[12] = p) : p = t[12];
269
- const s = p, l = o.filter(lo).length !== o.length ? ie().domain([0, x(A) ? Math.max(...o.map(so).filter(ro)) : A]).range([0.25, g]).nice() : void 0, b = ne().domain([s, G]).range([0, nt]).nice(), M = b.ticks(at);
270
- Bt(() => {
271
- const i = Q.map(no).filter(io);
272
- re(i).force("x", se((j) => b(j.position)).strength(5)).force("y", le((j) => V / 2).strength(1)).force("collide", ae((j) => l ? l(j.radius || 0) + 1 : g + 1)).force("charge", ce().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
273
- it(i);
268
+ t[9] !== o || t[10] !== B || t[11] !== L ? (p = g(B) ? Math.min(...o.filter(co).map(ao)) >= 0 && !L ? 0 : Math.min(...o.filter(lo).map(so)) : B, t[9] = o, t[10] = B, t[11] = L, t[12] = p) : p = t[12];
269
+ const l = p, s = o.filter(ro).length !== o.length ? ee().domain([0, g(N) ? Math.max(...o.map(no).filter(io)) : N]).range([0.25, x]).nice() : void 0, j = oe().domain([l, K]).range([0, it]).nice(), ht = j.ticks(lt);
270
+ Pt(() => {
271
+ const i = G.map(oo).filter(eo);
272
+ ie(i).force("x", ne((b) => j(b.position)).strength(5)).force("y", re((b) => Y / 2).strength(1)).force("collide", se((b) => s ? s(b.radius || 0) + 1 : x + 1)).force("charge", le().strength(-15)).alphaDecay(0.05).tick(1e4).on("tick", () => {
273
+ ot(i);
274
274
  }).on("end", () => {
275
- it(i);
275
+ ot(i);
276
276
  });
277
- }, [o, g, V, nt, s, G, Q, b, l]);
278
- const w = ht ? /* @__PURE__ */ n.jsx("svg", { width: `${$}px`, height: `${L}px`, viewBox: `0 0 ${$} ${L}`, direction: "ltr", ref: ft, children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${f.left},${f.top})`, children: [
279
- rt ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
280
- /* @__PURE__ */ n.jsx(ee, { hideAxisLine: vt, x1: b(s < 0 ? 0 : s), x2: b(s < 0 ? 0 : s), y1: 0 - f.top, y2: V + f.bottom, label: rt ? Qt(s < 0 ? 0 : s, void 0, pt, O, P, ut) : void 0, labelPos: {
281
- x: b(s < 0 ? 0 : s),
277
+ }, [o, x, Y, it, l, K, G, j, s]);
278
+ const D = pt ? /* @__PURE__ */ n.jsx("svg", { width: `${w}px`, height: `${$}px`, viewBox: `0 0 ${w} ${$}`, direction: "ltr", ref: mt, children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${f.left},${f.top})`, children: [
279
+ nt ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
280
+ /* @__PURE__ */ n.jsx(_t, { hideAxisLine: vt, x1: j(l < 0 ? 0 : l), x2: j(l < 0 ? 0 : l), y1: 0 - f.top, y2: Y + f.bottom, label: nt ? Jt(l < 0 ? 0 : l, void 0, dt, O, E, ct) : void 0, labelPos: {
281
+ x: j(l < 0 ? 0 : l),
282
282
  y: 0 - R,
283
283
  dy: "0.75em",
284
284
  dx: 3
@@ -289,77 +289,77 @@ function Ze(e) {
289
289
  axis: u?.xAxis?.axis,
290
290
  label: u?.yAxis?.labels
291
291
  } }),
292
- /* @__PURE__ */ n.jsx(xe, { values: M.filter(oo), x: M.filter(eo).map((i) => b(i)), y1: 0 - R, y2: V + f.bottom, styles: {
292
+ /* @__PURE__ */ n.jsx(he, { values: ht.filter(to), x: ht.filter(_e).map((i) => j(i)), y1: 0 - R, y2: Y + f.bottom, styles: {
293
293
  gridLines: u?.xAxis?.gridLines,
294
294
  labels: u?.xAxis?.labels
295
295
  }, classNames: {
296
296
  gridLines: v?.xAxis?.gridLines,
297
297
  labels: v?.xAxis?.labels
298
- }, suffix: P, prefix: O, labelType: "secondary", showGridLines: !0, precision: pt, locale: ut })
298
+ }, suffix: E, prefix: O, labelType: "secondary", showGridLines: !0, precision: dt, locale: ct })
299
299
  ] }) : null,
300
- xt.filter(to).map(_e),
301
- ht.map((i) => /* @__PURE__ */ n.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${i.x},${i.y})`, opacity: lt ? i.color && y[H.indexOf(i.color)] === lt ? 1 : ct : W.length !== 0 ? W.indexOf(i.label) !== -1 ? 0.85 : ct : 0.85, onMouseEnter: (j) => {
302
- X(i), K(j.clientY), S(j.clientX), E?.(i);
303
- }, onMouseMove: (j) => {
304
- X(i), K(j.clientY), S(j.clientX);
300
+ gt.filter(Qe).map(Ke),
301
+ pt.map((i) => /* @__PURE__ */ n.jsxs("g", { className: "undp-viz-g-with-hover", transform: `translate(${i.x},${i.y})`, opacity: st ? i.color && M[P.indexOf(i.color)] === st ? 1 : at : z ? z.indexOf(i.label) !== -1 ? 0.85 : at : 0.85, onMouseEnter: (b) => {
302
+ X(i), J(b.clientY), A(b.clientX), F?.(i);
303
+ }, onMouseMove: (b) => {
304
+ X(i), J(b.clientY), A(b.clientX);
305
305
  }, onClick: () => {
306
- (I || q) && (Ut(a, i) && dt ? (c(void 0), I?.(void 0)) : (c(i), I?.(i)));
306
+ (W || I) && (qt(a, i) && ft ? (c(void 0), W?.(void 0)) : (c(i), W?.(i)));
307
307
  }, onMouseLeave: () => {
308
- X(void 0), S(void 0), K(void 0), E?.(void 0);
308
+ X(void 0), A(void 0), J(void 0), F?.(void 0);
309
309
  }, children: [
310
- /* @__PURE__ */ n.jsx("circle", { cx: 0, cy: 0, fill: o.filter(Qe).length === 0 ? y[0] : i.color ? y[H.indexOf(i.color)] : yt.gray, radius: l ? l(i.radius || 0) : g }),
311
- (l ? l(i.radius || 0) : g) > 10 && h ? /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("foreignObject", { y: 0 - (l ? l(i.radius || 0) : g), x: 0 - (l ? l(i.radius || 0) : g), width: 2 * (l ? l(i.radius || 0) : g), height: 2 * (l ? l(i.radius || 0) : g), children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-1.5", children: h ? /* @__PURE__ */ n.jsx(de, { className: Zt("text-center leading-none m-0", v?.graphObjectValues), marginBottom: "none", style: {
312
- fontSize: `${Math.min(Math.max(Math.round((l ? l(i.radius || 0) : g) / 4), 10), Math.max(Math.round((l ? l(i.radius || 0) : g) * 12 / `${i.label}`.length), 10), 20)}px`,
313
- color: te(o.filter(Ke).length === 0 ? y[0] : i.color ? y[H.indexOf(i.color)] : yt.gray),
310
+ /* @__PURE__ */ n.jsx("circle", { cx: 0, cy: 0, fill: o.filter(Je).length === 0 ? M[0] : i.color ? M[P.indexOf(i.color)] : yt.gray, radius: s ? s(i.radius || 0) : x }),
311
+ (s ? s(i.radius || 0) : x) > 10 && h ? /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("foreignObject", { y: 0 - (s ? s(i.radius || 0) : x), x: 0 - (s ? s(i.radius || 0) : x), width: 2 * (s ? s(i.radius || 0) : x), height: 2 * (s ? s(i.radius || 0) : x), children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-1.5", children: h ? /* @__PURE__ */ n.jsx(me, { className: It("text-center leading-none m-0", v?.graphObjectValues), marginBottom: "none", style: {
312
+ fontSize: `${Math.min(Math.max(Math.round((s ? s(i.radius || 0) : x) / 4), 10), Math.max(Math.round((s ? s(i.radius || 0) : x) * 12 / `${i.label}`.length), 10), 20)}px`,
313
+ color: Qt(o.filter(Ue).length === 0 ? M[0] : i.color ? M[P.indexOf(i.color)] : yt.gray),
314
314
  hyphens: "auto",
315
315
  ...u?.graphObjectValues || {}
316
316
  }, children: i.label }) : null }) }) }) : null
317
317
  ] }, i.label)),
318
- B ? /* @__PURE__ */ n.jsx(n.Fragment, { children: B.map((i, j) => /* @__PURE__ */ n.jsx(pe, { text: i.text, color: i.color, x: b(i.value), y1: 0 - f.top, y2: V + f.bottom, textSide: b(i.value) > nt * 0.75 || gt ? "left" : "right", classNames: i.classNames, styles: i.styles, isInView: !0 }, j)) }) : null,
319
- xt.filter(Je).map(Ue)
318
+ H ? /* @__PURE__ */ n.jsx(n.Fragment, { children: H.map((i, b) => /* @__PURE__ */ n.jsx(fe, { text: i.text, color: i.color, x: j(i.value), y1: 0 - f.top, y2: Y + f.bottom, textSide: j(i.value) > it * 0.75 || xt ? "left" : "right", classNames: i.classNames, styles: i.styles, isInView: !0 }, b)) }) : null,
319
+ gt.filter(Ze).map(qe)
320
320
  ] }) }) : /* @__PURE__ */ n.jsx("div", { style: {
321
- width: `${$}px`,
322
- height: `${L}px`
323
- }, children: /* @__PURE__ */ n.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ n.jsx(Kt, {}) }) });
321
+ width: `${w}px`,
322
+ height: `${$}px`
323
+ }, children: /* @__PURE__ */ n.jsx("div", { className: "flex m-auto items-center justify-center p-0 leading-none text-base h-40", children: /* @__PURE__ */ n.jsx(Ut, {}) }) });
324
+ let y;
325
+ t[13] !== v?.tooltip || t[14] !== Z || t[15] !== U || t[16] !== q || t[17] !== u?.tooltip || t[18] !== T ? (y = q && T && Z && U ? /* @__PURE__ */ n.jsx(Kt, { data: q, body: T, xPos: Z, yPos: U, backgroundStyle: u?.tooltip, className: v?.tooltip }) : null, t[13] = v?.tooltip, t[14] = Z, t[15] = U, t[16] = q, t[17] = u?.tooltip, t[18] = T, t[19] = y) : y = t[19];
324
326
  let C;
325
- t[13] !== v?.tooltip || t[14] !== U || t[15] !== J || t[16] !== Z || t[17] !== u?.tooltip || t[18] !== F ? (C = Z && F && U && J ? /* @__PURE__ */ n.jsx(_t, { data: Z, body: F, xPos: U, yPos: J, backgroundStyle: u?.tooltip, className: v?.tooltip }) : null, t[13] = v?.tooltip, t[14] = U, t[15] = J, t[16] = Z, t[17] = u?.tooltip, t[18] = F, t[19] = C) : C = t[19];
326
- let D;
327
- t[20] !== v?.modal || t[21] !== q || t[22] !== a ? (D = q && a !== void 0 ? /* @__PURE__ */ n.jsx(oe, { body: q, data: a, setData: c, className: v?.modal }) : null, t[20] = v?.modal, t[21] = q, t[22] = a, t[23] = D) : D = t[23];
327
+ t[20] !== v?.modal || t[21] !== I || t[22] !== a ? (C = I && a !== void 0 ? /* @__PURE__ */ n.jsx(te, { body: I, data: a, setData: c, className: v?.modal }) : null, t[20] = v?.modal, t[21] = I, t[22] = a, t[23] = C) : C = t[23];
328
328
  let r;
329
- return t[24] !== w || t[25] !== C || t[26] !== D ? (r = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
330
- w,
331
- C,
332
- D
333
- ] }), t[24] = w, t[25] = C, t[26] = D, t[27] = r) : r = t[27], r;
329
+ return t[24] !== D || t[25] !== y || t[26] !== C ? (r = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
330
+ D,
331
+ y,
332
+ C
333
+ ] }), t[24] = D, t[25] = y, t[26] = C, t[27] = r) : r = t[27], r;
334
334
  }
335
- function Ue(e) {
335
+ function qe(e) {
336
336
  return e.layer;
337
337
  }
338
- function Je(e) {
338
+ function Ze(e) {
339
339
  return e.position === "after";
340
340
  }
341
- function Ke(e) {
341
+ function Ue(e) {
342
342
  return e.color;
343
343
  }
344
- function Qe(e) {
344
+ function Je(e) {
345
345
  return e.color;
346
346
  }
347
- function _e(e) {
347
+ function Ke(e) {
348
348
  return e.layer;
349
349
  }
350
- function to(e) {
350
+ function Qe(e) {
351
351
  return e.position === "before";
352
352
  }
353
- function eo(e) {
353
+ function _e(e) {
354
354
  return e !== 0;
355
355
  }
356
- function oo(e) {
356
+ function to(e) {
357
357
  return e !== 0;
358
358
  }
359
- function io(e) {
359
+ function eo(e) {
360
360
  return e.position;
361
361
  }
362
- function no(e) {
362
+ function oo(e) {
363
363
  return {
364
364
  ...e,
365
365
  ...e.data && {
@@ -369,172 +369,169 @@ function no(e) {
369
369
  }
370
370
  };
371
371
  }
372
- function ro(e) {
372
+ function io(e) {
373
373
  return e != null;
374
374
  }
375
- function so(e) {
375
+ function no(e) {
376
376
  return e.radius;
377
377
  }
378
- function lo(e) {
378
+ function ro(e) {
379
379
  return e.radius === void 0 || e.radius === null;
380
380
  }
381
+ function so(e) {
382
+ return e.position;
383
+ }
384
+ function lo(e) {
385
+ return !g(e.position);
386
+ }
381
387
  function ao(e) {
382
388
  return e.position;
383
389
  }
384
390
  function co(e) {
385
- return !x(e.position);
391
+ return !g(e.position);
386
392
  }
387
393
  function uo(e) {
388
394
  return e.position;
389
395
  }
390
396
  function mo(e) {
391
- return !x(e.position);
397
+ return !g(e.position);
392
398
  }
393
399
  function fo(e) {
394
400
  return e.position;
395
401
  }
396
402
  function po(e) {
397
- return !x(e.position);
403
+ return !g(e.position);
398
404
  }
399
405
  function ho(e) {
400
- return e.position;
401
- }
402
- function go(e) {
403
- return !x(e.position);
406
+ return !g(e.radius);
404
407
  }
405
408
  function xo(e) {
406
- return !x(e.radius);
407
- }
408
- function vo(e) {
409
- return !x(e.radius);
409
+ return !g(e.radius);
410
410
  }
411
- function Qo(e) {
412
- const t = Ht.c(93), {
411
+ function Jo(e) {
412
+ const t = Gt.c(91), {
413
413
  data: o,
414
- graphTitle: y,
415
- topMargin: rt,
416
- bottomMargin: $,
417
- leftMargin: L,
418
- rightMargin: H,
414
+ graphTitle: M,
415
+ topMargin: nt,
416
+ bottomMargin: w,
417
+ leftMargin: $,
418
+ rightMargin: P,
419
419
  colors: k,
420
- sources: _,
421
- graphDescription: tt,
422
- height: st,
420
+ sources: Q,
421
+ graphDescription: _,
422
+ height: rt,
423
423
  width: h,
424
- footNote: F,
425
- colorDomain: E,
426
- colorLegendTitle: B,
427
- padding: lt,
428
- relativeHeight: N,
429
- tooltip: g,
430
- onSeriesMouseOver: A,
424
+ footNote: T,
425
+ colorDomain: F,
426
+ colorLegendTitle: H,
427
+ padding: st,
428
+ relativeHeight: L,
429
+ tooltip: x,
430
+ onSeriesMouseOver: N,
431
431
  refValues: d,
432
- showColorScale: z,
433
- graphID: W,
434
- radius: I,
435
- showLabels: gt,
436
- showTicks: dt,
437
- maxRadiusValue: q,
438
- maxValue: P,
432
+ showColorScale: B,
433
+ graphID: z,
434
+ radius: W,
435
+ showLabels: xt,
436
+ showTicks: ft,
437
+ maxRadiusValue: I,
438
+ maxValue: E,
439
439
  minValue: O,
440
440
  highlightedDataPoints: u,
441
441
  onSeriesMouseClick: v,
442
- ariaLabel: at,
443
- backgroundColor: ct,
444
- graphDownload: pt,
445
- dataDownload: xt,
442
+ ariaLabel: lt,
443
+ backgroundColor: at,
444
+ graphDownload: dt,
445
+ dataDownload: gt,
446
446
  language: vt,
447
- showNAColor: ut,
447
+ showNAColor: ct,
448
448
  minHeight: R,
449
- theme: et,
450
- resetSelectionOnDoubleClick: ot,
451
- detailsOnClick: mt,
452
- orientation: ft,
453
- suffix: Z,
449
+ theme: tt,
450
+ resetSelectionOnDoubleClick: et,
451
+ detailsOnClick: ut,
452
+ orientation: mt,
453
+ suffix: q,
454
454
  prefix: X,
455
455
  styles: a,
456
456
  classNames: c,
457
- noOfTicks: ht,
458
- dimmedOpacity: it,
459
- precision: U,
460
- customLayers: S,
461
- hideAxisLine: J,
462
- locale: K
463
- } = e, m = I === void 0 ? 5 : I, f = gt === void 0 ? !0 : gt, nt = dt === void 0 ? !0 : dt;
464
- let V;
465
- t[0] !== u ? (V = u === void 0 ? [] : u, t[0] = u, t[1] = V) : V = t[1];
466
- const Q = V, Y = ct === void 0 ? !1 : ct, G = pt === void 0 ? !1 : pt, p = xt === void 0 ? !1 : xt, s = vt === void 0 ? "en" : vt, l = ut === void 0 ? !0 : ut, b = R === void 0 ? 0 : R, M = et === void 0 ? "light" : et, w = ot === void 0 ? !0 : ot, C = ft === void 0 ? "vertical" : ft, D = Z === void 0 ? "" : Z, r = X === void 0 ? "" : X, i = ht === void 0 ? 5 : ht, j = it === void 0 ? 0.3 : it, Vt = U === void 0 ? 2 : U;
467
- let kt;
468
- t[2] !== S ? (kt = S === void 0 ? [] : S, t[2] = S, t[3] = kt) : kt = t[3];
469
- const Tt = kt, Ft = J === void 0 ? !1 : J, Et = K === void 0 ? "en" : K, [wt, ue] = T(0), [$t, me] = T(0), [Pt, fe] = T(void 0), Rt = St(null), zt = St(null), Xt = C === "horizontal" ? Ze : Ce;
470
- let Lt, Nt;
471
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Lt = () => {
472
- const Wt = new ResizeObserver((It) => {
473
- ue(It[0].target.clientWidth || 620), me(It[0].target.clientHeight || 480);
457
+ noOfTicks: pt,
458
+ dimmedOpacity: ot,
459
+ precision: Z,
460
+ customLayers: A,
461
+ hideAxisLine: U,
462
+ locale: J
463
+ } = e, m = W === void 0 ? 5 : W, f = xt === void 0 ? !0 : xt, it = ft === void 0 ? !0 : ft, Y = at === void 0 ? !1 : at, G = dt === void 0 ? !1 : dt, S = gt === void 0 ? !1 : gt, K = vt === void 0 ? "en" : vt, p = ct === void 0 ? !0 : ct, l = R === void 0 ? 0 : R, s = tt === void 0 ? "light" : tt, j = et === void 0 ? !0 : et, ht = mt === void 0 ? "vertical" : mt, D = q === void 0 ? "" : q, y = X === void 0 ? "" : X, C = pt === void 0 ? 5 : pt, r = ot === void 0 ? 0.3 : ot, i = Z === void 0 ? 2 : Z;
464
+ let b;
465
+ t[0] !== A ? (b = A === void 0 ? [] : A, t[0] = A, t[1] = b) : b = t[1];
466
+ const St = b, Vt = U === void 0 ? !1 : U, Tt = J === void 0 ? "en" : J, [Dt, ae] = V(0), [wt, ce] = V(0), [Ft, ue] = V(void 0), Et = At(null), Ht = At(null), Rt = ht === "horizontal" ? Ie : je;
467
+ let $t, Lt;
468
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($t = () => {
469
+ const Bt = new ResizeObserver((zt) => {
470
+ ae(zt[0].target.clientWidth || 620), ce(zt[0].target.clientHeight || 480);
474
471
  });
475
- return Rt.current && Wt.observe(Rt.current), () => Wt.disconnect();
476
- }, Nt = [], t[4] = Lt, t[5] = Nt) : (Lt = t[4], Nt = t[5]), Bt(Lt, Nt);
477
- const Yt = c?.graphContainer, Gt = a?.graphContainer;
472
+ return Et.current && Bt.observe(Et.current), () => Bt.disconnect();
473
+ }, Lt = [], t[2] = $t, t[3] = Lt) : ($t = t[2], Lt = t[3]), Pt($t, Lt);
474
+ const Xt = c?.graphContainer, Yt = a?.graphContainer;
478
475
  let bt;
479
- t[6] !== c?.description || t[7] !== c?.title || t[8] !== o || t[9] !== p || t[10] !== tt || t[11] !== G || t[12] !== y || t[13] !== a?.description || t[14] !== a?.title || t[15] !== h ? (bt = y || tt || G || p ? /* @__PURE__ */ n.jsx(ve, { styles: {
476
+ t[4] !== c?.description || t[5] !== c?.title || t[6] !== o || t[7] !== S || t[8] !== _ || t[9] !== G || t[10] !== M || t[11] !== a?.description || t[12] !== a?.title || t[13] !== h ? (bt = M || _ || G || S ? /* @__PURE__ */ n.jsx(xe, { styles: {
480
477
  title: a?.title,
481
478
  description: a?.description
482
479
  }, classNames: {
483
480
  title: c?.title,
484
481
  description: c?.description
485
- }, graphTitle: y, graphDescription: tt, width: h, graphDownload: G ? zt : void 0, dataDownload: p ? o.map(ko).filter(Do).length > 0 ? o.map(Co).filter(Oo) : o.filter(jo) : null }) : null, t[6] = c?.description, t[7] = c?.title, t[8] = o, t[9] = p, t[10] = tt, t[11] = G, t[12] = y, t[13] = a?.description, t[14] = a?.title, t[15] = h, t[16] = bt) : bt = t[16];
482
+ }, graphTitle: M, graphDescription: _, width: h, graphDownload: G ? Ht : void 0, dataDownload: S ? o.map(Co).filter(Oo).length > 0 ? o.map(jo).filter(Mo) : o.filter(bo) : null }) : null, t[4] = c?.description, t[5] = c?.title, t[6] = o, t[7] = S, t[8] = _, t[9] = G, t[10] = M, t[11] = a?.description, t[12] = a?.title, t[13] = h, t[14] = bt) : bt = t[14];
486
483
  let Mt;
487
- t[17] !== c?.colorLegend || t[18] !== E || t[19] !== B || t[20] !== k || t[21] !== o || t[22] !== z || t[23] !== l || t[24] !== M || t[25] !== h ? (Mt = z !== !1 && o.filter(Mo).length !== 0 && o.length > 0 ? /* @__PURE__ */ n.jsx(je, { width: h, colorLegendTitle: B, colors: k || yt[M].categoricalColors.colors, colorDomain: E || qt(o, "color", !0), setSelectedColor: fe, showNAColor: l, className: c?.colorLegend }) : null, t[17] = c?.colorLegend, t[18] = E, t[19] = B, t[20] = k, t[21] = o, t[22] = z, t[23] = l, t[24] = M, t[25] = h, t[26] = Mt) : Mt = t[26];
484
+ t[15] !== c?.colorLegend || t[16] !== F || t[17] !== H || t[18] !== k || t[19] !== o || t[20] !== B || t[21] !== p || t[22] !== s || t[23] !== h ? (Mt = B !== !1 && o.filter(yo).length !== 0 && o.length > 0 ? /* @__PURE__ */ n.jsx(be, { width: h, colorLegendTitle: H, colors: k || yt[s].categoricalColors.colors, colorDomain: F || Wt(o, "color", !0), setSelectedColor: ue, showNAColor: p, className: c?.colorLegend }) : null, t[15] = c?.colorLegend, t[16] = F, t[17] = H, t[18] = k, t[19] = o, t[20] = B, t[21] = p, t[22] = s, t[23] = h, t[24] = Mt) : Mt = t[24];
488
485
  let jt;
489
- t[27] !== o.length ? (jt = o.length === 0 && /* @__PURE__ */ n.jsx(Me, {}), t[27] = o.length, t[28] = jt) : jt = t[28];
486
+ t[25] !== o.length ? (jt = o.length === 0 && /* @__PURE__ */ n.jsx(ye, {}), t[25] = o.length, t[26] = jt) : jt = t[26];
490
487
  let Ot;
491
- t[29] !== Xt || t[30] !== $ || t[31] !== c || t[32] !== E || t[33] !== k || t[34] !== Tt || t[35] !== o || t[36] !== mt || t[37] !== j || t[38] !== Ft || t[39] !== Q || t[40] !== L || t[41] !== Et || t[42] !== q || t[43] !== P || t[44] !== O || t[45] !== i || t[46] !== v || t[47] !== A || t[48] !== Vt || t[49] !== r || t[50] !== m || t[51] !== d || t[52] !== w || t[53] !== H || t[54] !== Pt || t[55] !== f || t[56] !== nt || t[57] !== a || t[58] !== D || t[59] !== $t || t[60] !== wt || t[61] !== M || t[62] !== g || t[63] !== rt ? (Ot = wt && $t && o.length > 0 ? /* @__PURE__ */ n.jsx(Xt, { hideAxisLine: Ft, data: o, circleColors: o.filter(bo).length === 0 ? k ? [k] : [yt.primaryColors["blue-600"]] : k || yt[M].categoricalColors.colors, colorDomain: o.filter(yo).length === 0 ? [] : E || qt(o, "color", !0), width: wt, selectedColor: Pt, height: $t, showTicks: nt, leftMargin: L, rightMargin: H, topMargin: rt, bottomMargin: $, showLabels: f, tooltip: g, onSeriesMouseOver: A, refValues: d, startFromZero: !1, radius: m, maxRadiusValue: q, maxValue: P, minValue: O, highlightedDataPoints: Q, onSeriesMouseClick: v, resetSelectionOnDoubleClick: w, detailsOnClick: mt, styles: a, classNames: c, suffix: D, prefix: r, noOfTicks: i || 5, dimmedOpacity: j, precision: Vt, customLayers: Tt, locale: Et }) : null, t[29] = Xt, t[30] = $, t[31] = c, t[32] = E, t[33] = k, t[34] = Tt, t[35] = o, t[36] = mt, t[37] = j, t[38] = Ft, t[39] = Q, t[40] = L, t[41] = Et, t[42] = q, t[43] = P, t[44] = O, t[45] = i, t[46] = v, t[47] = A, t[48] = Vt, t[49] = r, t[50] = m, t[51] = d, t[52] = w, t[53] = H, t[54] = Pt, t[55] = f, t[56] = nt, t[57] = a, t[58] = D, t[59] = $t, t[60] = wt, t[61] = M, t[62] = g, t[63] = rt, t[64] = Ot) : Ot = t[64];
488
+ t[27] !== Rt || t[28] !== w || t[29] !== c || t[30] !== F || t[31] !== k || t[32] !== St || t[33] !== o || t[34] !== ut || t[35] !== r || t[36] !== Vt || t[37] !== u || t[38] !== $ || t[39] !== Tt || t[40] !== I || t[41] !== E || t[42] !== O || t[43] !== C || t[44] !== v || t[45] !== N || t[46] !== i || t[47] !== y || t[48] !== m || t[49] !== d || t[50] !== j || t[51] !== P || t[52] !== Ft || t[53] !== f || t[54] !== it || t[55] !== a || t[56] !== D || t[57] !== wt || t[58] !== Dt || t[59] !== s || t[60] !== x || t[61] !== nt ? (Ot = Dt && wt && o.length > 0 ? /* @__PURE__ */ n.jsx(Rt, { hideAxisLine: Vt, data: o, circleColors: o.filter(vo).length === 0 ? k ? [k] : [yt.primaryColors["blue-600"]] : k || yt[s].categoricalColors.colors, colorDomain: o.filter(go).length === 0 ? [] : F || Wt(o, "color", !0), width: Dt, selectedColor: Ft, height: wt, showTicks: it, leftMargin: $, rightMargin: P, topMargin: nt, bottomMargin: w, showLabels: f, tooltip: x, onSeriesMouseOver: N, refValues: d, startFromZero: !1, radius: m, maxRadiusValue: I, maxValue: E, minValue: O, highlightedDataPoints: u, onSeriesMouseClick: v, resetSelectionOnDoubleClick: j, detailsOnClick: ut, styles: a, classNames: c, suffix: D, prefix: y, noOfTicks: C || 5, dimmedOpacity: r, precision: i, customLayers: St, locale: Tt }) : null, t[27] = Rt, t[28] = w, t[29] = c, t[30] = F, t[31] = k, t[32] = St, t[33] = o, t[34] = ut, t[35] = r, t[36] = Vt, t[37] = u, t[38] = $, t[39] = Tt, t[40] = I, t[41] = E, t[42] = O, t[43] = C, t[44] = v, t[45] = N, t[46] = i, t[47] = y, t[48] = m, t[49] = d, t[50] = j, t[51] = P, t[52] = Ft, t[53] = f, t[54] = it, t[55] = a, t[56] = D, t[57] = wt, t[58] = Dt, t[59] = s, t[60] = x, t[61] = nt, t[62] = Ot) : Ot = t[62];
492
489
  let Ct;
493
- t[65] !== jt || t[66] !== Ot ? (Ct = /* @__PURE__ */ n.jsxs(ye, { ref: Rt, children: [
490
+ t[63] !== jt || t[64] !== Ot ? (Ct = /* @__PURE__ */ n.jsxs(ge, { ref: Et, children: [
494
491
  jt,
495
492
  Ot
496
- ] }), t[65] = jt, t[66] = Ot, t[67] = Ct) : Ct = t[67];
497
- let Dt;
498
- t[68] !== c?.footnote || t[69] !== c?.source || t[70] !== F || t[71] !== _ || t[72] !== a?.footnote || t[73] !== a?.source || t[74] !== h ? (Dt = _ || F ? /* @__PURE__ */ n.jsx(Oe, { styles: {
493
+ ] }), t[63] = jt, t[64] = Ot, t[65] = Ct) : Ct = t[65];
494
+ let kt;
495
+ t[66] !== c?.footnote || t[67] !== c?.source || t[68] !== T || t[69] !== Q || t[70] !== a?.footnote || t[71] !== a?.source || t[72] !== h ? (kt = Q || T ? /* @__PURE__ */ n.jsx(Me, { styles: {
499
496
  footnote: a?.footnote,
500
497
  source: a?.source
501
498
  }, classNames: {
502
499
  footnote: c?.footnote,
503
500
  source: c?.source
504
- }, sources: _, footNote: F, width: h }) : null, t[68] = c?.footnote, t[69] = c?.source, t[70] = F, t[71] = _, t[72] = a?.footnote, t[73] = a?.source, t[74] = h, t[75] = Dt) : Dt = t[75];
505
- let At;
506
- return t[76] !== at || t[77] !== Y || t[78] !== W || t[79] !== st || t[80] !== s || t[81] !== b || t[82] !== lt || t[83] !== N || t[84] !== Yt || t[85] !== Gt || t[86] !== bt || t[87] !== Mt || t[88] !== Ct || t[89] !== Dt || t[90] !== M || t[91] !== h ? (At = /* @__PURE__ */ n.jsxs(be, { className: Yt, style: Gt, id: W, ref: zt, "aria-label": at, backgroundColor: Y, theme: M, language: s, minHeight: b, width: h, height: st, relativeHeight: N, padding: lt, children: [
501
+ }, sources: Q, footNote: T, width: h }) : null, t[66] = c?.footnote, t[67] = c?.source, t[68] = T, t[69] = Q, t[70] = a?.footnote, t[71] = a?.source, t[72] = h, t[73] = kt) : kt = t[73];
502
+ let Nt;
503
+ return t[74] !== lt || t[75] !== Y || t[76] !== z || t[77] !== rt || t[78] !== K || t[79] !== l || t[80] !== st || t[81] !== L || t[82] !== Xt || t[83] !== Yt || t[84] !== bt || t[85] !== Mt || t[86] !== Ct || t[87] !== kt || t[88] !== s || t[89] !== h ? (Nt = /* @__PURE__ */ n.jsxs(ve, { className: Xt, style: Yt, id: z, ref: Ht, "aria-label": lt, backgroundColor: Y, theme: s, language: K, minHeight: l, width: h, height: rt, relativeHeight: L, padding: st, children: [
507
504
  bt,
508
505
  Mt,
509
506
  Ct,
510
- Dt
511
- ] }), t[76] = at, t[77] = Y, t[78] = W, t[79] = st, t[80] = s, t[81] = b, t[82] = lt, t[83] = N, t[84] = Yt, t[85] = Gt, t[86] = bt, t[87] = Mt, t[88] = Ct, t[89] = Dt, t[90] = M, t[91] = h, t[92] = At) : At = t[92], At;
507
+ kt
508
+ ] }), t[74] = lt, t[75] = Y, t[76] = z, t[77] = rt, t[78] = K, t[79] = l, t[80] = st, t[81] = L, t[82] = Xt, t[83] = Yt, t[84] = bt, t[85] = Mt, t[86] = Ct, t[87] = kt, t[88] = s, t[89] = h, t[90] = Nt) : Nt = t[90], Nt;
512
509
  }
513
- function yo(e) {
510
+ function go(e) {
514
511
  return e.color;
515
512
  }
516
- function bo(e) {
513
+ function vo(e) {
517
514
  return e.color;
518
515
  }
519
- function Mo(e) {
516
+ function yo(e) {
520
517
  return e.color;
521
518
  }
522
- function jo(e) {
519
+ function bo(e) {
523
520
  return e !== void 0;
524
521
  }
525
- function Oo(e) {
522
+ function Mo(e) {
526
523
  return e !== void 0;
527
524
  }
528
- function Co(e) {
525
+ function jo(e) {
529
526
  return e.data;
530
527
  }
531
- function Do(e) {
528
+ function Oo(e) {
532
529
  return e !== void 0;
533
530
  }
534
- function ko(e) {
531
+ function Co(e) {
535
532
  return e.data;
536
533
  }
537
534
  export {
538
- Qo as BeeSwarmChart
535
+ Jo as BeeSwarmChart
539
536
  };
540
537
  //# sourceMappingURL=BeeSwarmChart.js.map