@undp/data-viz 2.2.1 → 2.2.3

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