@undp/data-viz 2.0.9 → 2.1.0

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 (204) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.d.ts +2 -0
  3. package/dist/AreaChart.js +1 -1
  4. package/dist/BarGraph.cjs +1 -1
  5. package/dist/BarGraph.cjs.map +1 -1
  6. package/dist/BarGraph.d.ts +2 -0
  7. package/dist/BarGraph.js +1188 -1213
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BasicStatCard.d.ts +2 -0
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.d.ts +2 -0
  13. package/dist/BeeSwarmChart.js +258 -267
  14. package/dist/BeeSwarmChart.js.map +1 -1
  15. package/dist/BiVariateChoroplethMap.cjs +1 -1
  16. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  17. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  18. package/dist/BiVariateChoroplethMap.js +126 -131
  19. package/dist/BiVariateChoroplethMap.js.map +1 -1
  20. package/dist/BulletChart.cjs +1 -1
  21. package/dist/BulletChart.cjs.map +1 -1
  22. package/dist/BulletChart.d.ts +2 -0
  23. package/dist/BulletChart.js +404 -413
  24. package/dist/BulletChart.js.map +1 -1
  25. package/dist/ButterflyChart.cjs +1 -1
  26. package/dist/ButterflyChart.cjs.map +1 -1
  27. package/dist/ButterflyChart.d.ts +2 -0
  28. package/dist/ButterflyChart.js +179 -184
  29. package/dist/ButterflyChart.js.map +1 -1
  30. package/dist/ChoroplethMap.cjs +1 -1
  31. package/dist/ChoroplethMap.cjs.map +1 -1
  32. package/dist/ChoroplethMap.d.ts +2 -0
  33. package/dist/ChoroplethMap.js +268 -273
  34. package/dist/ChoroplethMap.js.map +1 -1
  35. package/dist/CirclePackingGraph.cjs +1 -1
  36. package/dist/CirclePackingGraph.d.ts +2 -0
  37. package/dist/CirclePackingGraph.js +1 -1
  38. package/dist/DataCards.d.ts +2 -0
  39. package/dist/DataCards.js +1 -1
  40. package/dist/DataTable.d.ts +2 -0
  41. package/dist/DetailsModal-0Ry5nXiC.js +32 -0
  42. package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
  43. package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
  44. package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
  45. package/dist/DifferenceLineChart.cjs +1 -1
  46. package/dist/DifferenceLineChart.d.ts +2 -0
  47. package/dist/DifferenceLineChart.js +1 -1
  48. package/dist/DonutChart.cjs +1 -1
  49. package/dist/DonutChart.cjs.map +1 -1
  50. package/dist/DonutChart.d.ts +2 -0
  51. package/dist/DonutChart.js +185 -190
  52. package/dist/DonutChart.js.map +1 -1
  53. package/dist/DotDensityMap.cjs +1 -1
  54. package/dist/DotDensityMap.cjs.map +1 -1
  55. package/dist/DotDensityMap.d.ts +2 -0
  56. package/dist/DotDensityMap.js +198 -203
  57. package/dist/DotDensityMap.js.map +1 -1
  58. package/dist/DualAxisLineChart.cjs +1 -1
  59. package/dist/DualAxisLineChart.d.ts +2 -0
  60. package/dist/DualAxisLineChart.js +1 -1
  61. package/dist/DumbbellChart.cjs +1 -1
  62. package/dist/DumbbellChart.cjs.map +1 -1
  63. package/dist/DumbbellChart.d.ts +2 -0
  64. package/dist/DumbbellChart.js +364 -373
  65. package/dist/DumbbellChart.js.map +1 -1
  66. package/dist/GeoHubCompareMaps.d.ts +2 -0
  67. package/dist/GeoHubMap.d.ts +2 -0
  68. package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
  69. package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
  70. package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
  71. package/dist/{GraphEl-CGq1EWRn.js → GraphEl-ebgfxefq.js} +3 -3
  72. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.js.map} +1 -1
  73. package/dist/GriddedGraphs.cjs +1 -1
  74. package/dist/GriddedGraphs.cjs.map +1 -1
  75. package/dist/GriddedGraphs.d.ts +2 -0
  76. package/dist/GriddedGraphs.js +19 -19
  77. package/dist/GriddedGraphs.js.map +1 -1
  78. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  79. package/dist/HeatMap.cjs +1 -1
  80. package/dist/HeatMap.cjs.map +1 -1
  81. package/dist/HeatMap.d.ts +2 -0
  82. package/dist/HeatMap.js +111 -116
  83. package/dist/HeatMap.js.map +1 -1
  84. package/dist/Histogram.cjs +1 -1
  85. package/dist/Histogram.d.ts +2 -0
  86. package/dist/Histogram.js +1 -1
  87. package/dist/HybridMap.cjs +1 -1
  88. package/dist/HybridMap.cjs.map +1 -1
  89. package/dist/HybridMap.d.ts +2 -0
  90. package/dist/HybridMap.js +202 -207
  91. package/dist/HybridMap.js.map +1 -1
  92. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  93. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  94. package/dist/LineChartWithConfidenceInterval.js +1 -1
  95. package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
  96. package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
  97. package/dist/MultiGraphDashboard.cjs +1 -1
  98. package/dist/MultiGraphDashboard.cjs.map +1 -1
  99. package/dist/MultiGraphDashboard.d.ts +2 -0
  100. package/dist/MultiGraphDashboard.js +10 -10
  101. package/dist/MultiGraphDashboard.js.map +1 -1
  102. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  103. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
  104. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  105. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
  106. package/dist/MultiLineAltChart.cjs +1 -1
  107. package/dist/MultiLineAltChart.d.ts +2 -0
  108. package/dist/MultiLineAltChart.js +1 -1
  109. package/dist/MultiLineChart.cjs +1 -1
  110. package/dist/MultiLineChart.d.ts +2 -0
  111. package/dist/MultiLineChart.js +1 -1
  112. package/dist/ParetoChart.cjs +1 -1
  113. package/dist/ParetoChart.cjs.map +1 -1
  114. package/dist/ParetoChart.d.ts +2 -0
  115. package/dist/ParetoChart.js +187 -192
  116. package/dist/ParetoChart.js.map +1 -1
  117. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  118. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  122. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  123. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  124. package/dist/RadarChart.cjs +1 -1
  125. package/dist/RadarChart.cjs.map +1 -1
  126. package/dist/RadarChart.d.ts +2 -0
  127. package/dist/RadarChart.js +158 -163
  128. package/dist/RadarChart.js.map +1 -1
  129. package/dist/SankeyChart.cjs +1 -1
  130. package/dist/SankeyChart.cjs.map +1 -1
  131. package/dist/SankeyChart.d.ts +2 -0
  132. package/dist/SankeyChart.js +172 -177
  133. package/dist/SankeyChart.js.map +1 -1
  134. package/dist/ScatterPlot.cjs +1 -1
  135. package/dist/ScatterPlot.cjs.map +1 -1
  136. package/dist/ScatterPlot.d.ts +2 -0
  137. package/dist/ScatterPlot.js +222 -227
  138. package/dist/ScatterPlot.js.map +1 -1
  139. package/dist/ScrollStory.d.ts +2 -0
  140. package/dist/SimpleLineChart.cjs +1 -1
  141. package/dist/SimpleLineChart.d.ts +2 -0
  142. package/dist/SimpleLineChart.js +1 -1
  143. package/dist/SingleGraphDashboard.cjs +1 -1
  144. package/dist/SingleGraphDashboard.cjs.map +1 -1
  145. package/dist/SingleGraphDashboard.d.ts +2 -0
  146. package/dist/SingleGraphDashboard.js +24 -24
  147. package/dist/SingleGraphDashboard.js.map +1 -1
  148. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  149. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  150. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  151. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  152. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  153. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  154. package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
  155. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  156. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  157. package/dist/SlopeChart.cjs +1 -1
  158. package/dist/SlopeChart.cjs.map +1 -1
  159. package/dist/SlopeChart.d.ts +2 -0
  160. package/dist/SlopeChart.js +182 -187
  161. package/dist/SlopeChart.js.map +1 -1
  162. package/dist/SparkLine.cjs +1 -1
  163. package/dist/SparkLine.d.ts +2 -0
  164. package/dist/SparkLine.js +1 -1
  165. package/dist/StatCardFromData.d.ts +2 -0
  166. package/dist/StripChart.cjs +1 -1
  167. package/dist/StripChart.cjs.map +1 -1
  168. package/dist/StripChart.d.ts +2 -0
  169. package/dist/StripChart.js +249 -258
  170. package/dist/StripChart.js.map +1 -1
  171. package/dist/ThreeDGlobe.cjs +1 -1
  172. package/dist/ThreeDGlobe.cjs.map +1 -1
  173. package/dist/ThreeDGlobe.d.ts +2 -0
  174. package/dist/ThreeDGlobe.js +142 -147
  175. package/dist/ThreeDGlobe.js.map +1 -1
  176. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  177. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  178. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  179. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  180. package/dist/TreeMapGraph.cjs +1 -1
  181. package/dist/TreeMapGraph.cjs.map +1 -1
  182. package/dist/TreeMapGraph.d.ts +2 -0
  183. package/dist/TreeMapGraph.js +159 -164
  184. package/dist/TreeMapGraph.js.map +1 -1
  185. package/dist/Types.d.ts +2 -0
  186. package/dist/UnitChart.d.ts +2 -0
  187. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  188. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  189. package/dist/index-BBV4tAeA.js +330 -0
  190. package/dist/index-BBV4tAeA.js.map +1 -0
  191. package/dist/index-CF5hnGvG.cjs +2 -0
  192. package/dist/index-CF5hnGvG.cjs.map +1 -0
  193. package/dist/index.cjs +1 -1
  194. package/dist/index.d.ts +2 -0
  195. package/dist/index.js +1 -1
  196. package/package.json +1 -1
  197. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  198. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  199. package/dist/Tooltip-CwWUegPB.js +0 -43
  200. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  201. package/dist/index-B2LQV7Tk.js +0 -335
  202. package/dist/index-B2LQV7Tk.js.map +0 -1
  203. package/dist/index-xRHRLDIp.cjs +0 -2
  204. package/dist/index-xRHRLDIp.cjs.map +0 -1
@@ -1,39 +1,38 @@
1
1
  import { j as i, m as lt, c as ct } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useState as U, useRef as Qe, useEffect as H, useCallback as dt, useEffectEvent as pt } from "react";
2
+ import { useState as I, useRef as Qe, useEffect as G, useCallback as dt, useEffectEvent as pt } from "react";
3
3
  import { w as ht } from "./Spinner-D7rnnwnA.js";
4
4
  import mt from "react-globe.gl";
5
5
  import { i as ut } from "./index-Bwrro8-q.js";
6
- import * as W from "three";
7
- import { l as gt } from "./Modal-DGcuAHyK.js";
6
+ import * as $ from "three";
8
7
  import { j as et } from "./Typography-PxtFcnJb.js";
9
- import { g as ft } from "./_commonjsHelpers-ByX85dGu.js";
10
- import { T as vt } from "./Tooltip-CwWUegPB.js";
11
- import { n as yt } from "./numberFormattingFunction-14YCbkN2.js";
12
- import { X as bt } from "./index-D491FEn1.js";
13
- import { s as xt } from "./string2HTML-DhG75NqA.js";
14
- import { g as wt } from "./getCentroidCoordinates-D7r34N4w.js";
15
- import { o as Ct } from "./ordinal-P77xw8aL.js";
16
- import { t as Dt } from "./threshold-Bgr20hik.js";
17
- import { GraphHeader as St } from "./GraphHeader.js";
18
- import { GraphFooter as jt } from "./GraphFooter.js";
19
- import { f as Nt } from "./fetchAndParseData-BpqkBPQL.js";
20
- import { Colors as te } from "./Colors.js";
21
- import { g as kt } from "./getUniqValue-DsqSii6M.js";
22
- import { g as Rt } from "./getJenks-BbngDoBQ.js";
23
- import { a as Lt, G as Ot } from "./GraphContainer-CRqzdKu2.js";
8
+ import { g as gt } from "./_commonjsHelpers-ByX85dGu.js";
9
+ import { T as ft } from "./Tooltip-Dj5eVppQ.js";
10
+ import { n as vt } from "./numberFormattingFunction-14YCbkN2.js";
11
+ import { X as yt } from "./index-D491FEn1.js";
12
+ import { g as bt } from "./getCentroidCoordinates-D7r34N4w.js";
13
+ import { D as xt } from "./DetailsModal-0Ry5nXiC.js";
14
+ import { o as wt } from "./ordinal-P77xw8aL.js";
15
+ import { t as Ct } from "./threshold-Bgr20hik.js";
16
+ import { GraphHeader as Dt } from "./GraphHeader.js";
17
+ import { GraphFooter as St } from "./GraphFooter.js";
18
+ import { f as jt } from "./fetchAndParseData-BpqkBPQL.js";
19
+ import { Colors as oe } from "./Colors.js";
20
+ import { g as Nt } from "./getUniqValue-DsqSii6M.js";
21
+ import { g as kt } from "./getJenks-BbngDoBQ.js";
22
+ import { a as Rt, G as Ot } from "./GraphContainer-CRqzdKu2.js";
24
23
  var Ke, tt;
25
- function Tt() {
24
+ function Lt() {
26
25
  if (tt) return Ke;
27
26
  tt = 1;
28
27
  var t = function(o) {
29
28
  return o.charAt(0) === "#" ? o.slice(1) : o;
30
29
  }, e = function(o) {
31
- var n = o.length === 3 || o.length === 4, f = n ? "".concat(o.slice(0, 1)).concat(o.slice(0, 1)) : o.slice(0, 2), s = n ? "".concat(o.slice(1, 2)).concat(o.slice(1, 2)) : o.slice(2, 4), w = n ? "".concat(o.slice(2, 3)).concat(o.slice(2, 3)) : o.slice(4, 6), M = (n ? "".concat(o.slice(3, 4)).concat(o.slice(3, 4)) : o.slice(6, 8)) || "ff";
30
+ var n = o.length === 3 || o.length === 4, f = n ? "".concat(o.slice(0, 1)).concat(o.slice(0, 1)) : o.slice(0, 2), s = n ? "".concat(o.slice(1, 2)).concat(o.slice(1, 2)) : o.slice(2, 4), w = n ? "".concat(o.slice(2, 3)).concat(o.slice(2, 3)) : o.slice(4, 6), L = (n ? "".concat(o.slice(3, 4)).concat(o.slice(3, 4)) : o.slice(6, 8)) || "ff";
32
31
  return {
33
32
  r: f,
34
33
  g: s,
35
34
  b: w,
36
- a: M
35
+ a: L
37
36
  };
38
37
  }, d = function(o) {
39
38
  return parseInt(o, 16);
@@ -48,7 +47,7 @@ function Tt() {
48
47
  }, x = function(o) {
49
48
  return !isNaN(parseFloat(o)) && isFinite(o);
50
49
  }, D = function(o, n) {
51
- var f = o.r, s = o.g, w = o.b, M = o.a, P = x(n) ? n : M;
50
+ var f = o.r, s = o.g, w = o.b, L = o.a, P = x(n) ? n : L;
52
51
  return "rgba(".concat(f, ", ").concat(s, ", ").concat(w, ", ").concat(P, ")");
53
52
  }, g = function(o, n) {
54
53
  var f = t(o), s = e(f), w = b(s);
@@ -56,29 +55,29 @@ function Tt() {
56
55
  };
57
56
  return Ke = g, Ke;
58
57
  }
59
- var Mt = Tt();
60
- const ot = /* @__PURE__ */ ft(Mt);
61
- function Pt(t) {
58
+ var Pt = Lt();
59
+ const ot = /* @__PURE__ */ gt(Pt);
60
+ function zt(t) {
62
61
  let e;
63
62
  switch (t.type) {
64
63
  case "ambient":
65
- e = new W.AmbientLight(t.color, t.intensity);
64
+ e = new $.AmbientLight(t.color, t.intensity);
66
65
  break;
67
66
  case "directional":
68
- e = new W.DirectionalLight(t.color, t.intensity), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z === void 0 ? -1 : t.target.z), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
67
+ e = new $.DirectionalLight(t.color, t.intensity), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z === void 0 ? -1 : t.target.z), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
69
68
  break;
70
69
  case "point":
71
- e = new W.PointLight(t.color, t.intensity, t.distance || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z));
70
+ e = new $.PointLight(t.color, t.intensity, t.distance || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z));
72
71
  break;
73
72
  case "spot":
74
- e = new W.SpotLight(t.color, t.intensity, t.distance || 0, t.angle || Math.PI / 3, t.penumbra || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z || 0), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
73
+ e = new $.SpotLight(t.color, t.intensity, t.distance || 0, t.angle || Math.PI / 3, t.penumbra || 0, t.decay || 2), t.position && (t.position === "camera" ? e.position.set(0, 0, 0) : e.position.set(t.position.x, t.position.y, t.position.z)), (t.target || t.position === "camera") && e.target.position.set(t.target?.x || 0, t.target?.y || 0, t.target?.z || 0), t.castShadow && (e.castShadow = !0, t.shadow && (e.shadow.mapSize.width = t.shadow.mapSize.width, e.shadow.mapSize.height = t.shadow.mapSize.height, e.shadow.camera.near = t.shadow.camera.near, e.shadow.camera.far = t.shadow.camera.far));
75
74
  break;
76
75
  default:
77
76
  throw new Error("Unknown light type");
78
77
  }
79
78
  return e;
80
79
  }
81
- function zt(t) {
80
+ function Mt(t) {
82
81
  const {
83
82
  width: e,
84
83
  autoRotate: d,
@@ -92,50 +91,50 @@ function zt(t) {
92
91
  polygonData: f,
93
92
  mapProperty: s,
94
93
  mapBorderColor: w,
95
- atmosphereColor: M,
94
+ atmosphereColor: L,
96
95
  tooltip: P,
97
96
  styles: ye,
98
- classNames: oe,
97
+ classNames: W,
99
98
  mapNoDataColor: re,
100
99
  colorLegendTitle: C,
101
100
  showColorScale: ae,
102
101
  hoverStrokeColor: ie,
103
- detailsOnClick: k,
104
- onSeriesMouseClick: _,
102
+ detailsOnClick: V,
103
+ onSeriesMouseClick: Z,
105
104
  onSeriesMouseOver: be,
106
105
  resetSelectionOnDoubleClick: xe,
107
106
  highlightedIds: z,
108
- scale: E,
107
+ scale: M,
109
108
  globeOffset: m,
110
109
  polygonAltitude: u,
111
- centerLng: V,
112
- centerLat: Z,
110
+ centerLng: _,
111
+ centerLat: J,
113
112
  atmosphereAltitude: se,
114
- globeCurvatureResolution: J,
115
- fogSettings: A,
116
- lights: B,
113
+ globeCurvatureResolution: X,
114
+ fogSettings: T,
115
+ lights: E,
117
116
  highlightedAltitude: ne,
118
117
  selectedId: v,
119
- collapseColorScaleByDefault: X,
120
- dimmedOpacity: F
121
- } = t, [q, we] = U(!1), p = Qe(void 0), [R, L] = U(void 0), [Ce, le] = U(X === void 0 ? !(e < 680) : !X), [ce, de] = U({
118
+ collapseColorScaleByDefault: Y,
119
+ dimmedOpacity: A
120
+ } = t, [U, we] = I(!1), p = Qe(void 0), [q, k] = I(void 0), [Ce, le] = I(Y === void 0 ? !(e < 680) : !Y), [ce, de] = I({
122
121
  x: 0,
123
122
  y: 0
124
- }), [S, pe] = U(void 0), Y = D ? Ct().domain(g).range(l) : Dt().domain(g).range(l);
125
- H(() => {
123
+ }), [S, pe] = I(void 0), K = D ? wt().domain(g).range(l) : Ct().domain(g).range(l);
124
+ G(() => {
126
125
  p.current && (p.current.controls().enableZoom = x);
127
- }, [x]), H(() => {
126
+ }, [x]), G(() => {
128
127
  p.current && (S || v ? p.current.controls().autoRotate = !1 : (p.current.controls().autoRotate = d !== 0, p.current.controls().autoRotateSpeed = d));
129
- }, [S, v, d]), H(() => {
128
+ }, [S, v, d]), G(() => {
130
129
  if (p.current && v) {
131
- const r = f.find((y) => y.properties[s] === v), [a, c] = wt(r);
130
+ const r = f.find((y) => y.properties[s] === v), [a, c] = bt(r);
132
131
  p.current.pointOfView({
133
132
  lat: c,
134
133
  lng: a,
135
- altitude: E
134
+ altitude: M
136
135
  }, 1e3);
137
136
  }
138
- }, [v, E, f, s]), H(() => {
137
+ }, [v, M, f, s]), G(() => {
139
138
  const r = p.current?.renderer().domElement;
140
139
  if (!r) return;
141
140
  const a = (c) => {
@@ -145,49 +144,49 @@ function zt(t) {
145
144
  });
146
145
  };
147
146
  return r.addEventListener("mousemove", a), () => r.removeEventListener("mousemove", a);
148
- }, []), H(() => {
147
+ }, []), G(() => {
149
148
  p.current && p.current.pointOfView({
150
- lat: Z,
151
- lng: V,
152
- altitude: E
149
+ lat: J,
150
+ lng: _,
151
+ altitude: M
153
152
  }, 1e3);
154
- }, [E, V, Z]);
155
- const j = o || new W.MeshBasicMaterial({
153
+ }, [M, _, J]);
154
+ const j = o || new $.MeshBasicMaterial({
156
155
  color: "#FFF"
157
- }), G = dt(() => {
156
+ }), B = dt(() => {
158
157
  if (!p.current) return;
159
158
  const r = p.current.scene(), a = p.current.camera();
160
159
  let c = [];
161
160
  r.traverse((h) => {
162
- h instanceof W.Light && c.push(h);
163
- }), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)), B.map((h) => Pt(h)).forEach((h, N) => {
164
- B[N].type !== "ambient" && B[N].position === "camera" ? (a.add(h), B[N].type !== "point" && a.add(h.target)) : r.add(h);
165
- }), A && (r.fog = new W.Fog(A.color, A.near, A.far));
166
- }, [B, A]), O = () => {
167
- we(!0), G();
161
+ h instanceof $.Light && c.push(h);
162
+ }), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)), E.map((h) => zt(h)).forEach((h, N) => {
163
+ E[N].type !== "ambient" && E[N].position === "camera" ? (a.add(h), E[N].type !== "point" && a.add(h.target)) : r.add(h);
164
+ }), T && (r.fog = new $.Fog(T.color, T.near, T.far));
165
+ }, [E, T]), R = () => {
166
+ we(!0), B();
168
167
  };
169
- return H(() => {
170
- q && G();
171
- }, [q, G]), /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
172
- /* @__PURE__ */ i.jsx(mt, { ref: p, height: n, width: e, globeOffset: m, lineHoverPrecision: 0, polygonsData: f, polygonAltitude: (r) => z.includes(r?.properties?.[s]) || r?.properties?.[s] === v || r?.properties?.[s] === S?.id || r?.properties?.[s] === R?.id ? ne : u, polygonCapColor: (r) => {
173
- const a = v ? r?.properties?.[s] === v ? 1 : F : z.length !== 0 ? z.includes(r?.properties?.[s]) ? 1 : F : 1, c = r?.properties?.[s], y = b.find((N) => N.id === c)?.x, h = y != null ? Y(y) : re;
168
+ return G(() => {
169
+ U && B();
170
+ }, [U, B]), /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
171
+ /* @__PURE__ */ i.jsx(mt, { ref: p, height: n, width: e, globeOffset: m, lineHoverPrecision: 0, polygonsData: f, polygonAltitude: (r) => z.includes(r?.properties?.[s]) || r?.properties?.[s] === v || r?.properties?.[s] === S?.id || r?.properties?.[s] === q?.id ? ne : u, polygonCapColor: (r) => {
172
+ const a = v ? r?.properties?.[s] === v ? 1 : A : z.length !== 0 ? z.includes(r?.properties?.[s]) ? 1 : A : 1, c = r?.properties?.[s], y = b.find((N) => N.id === c)?.x, h = y != null ? K(y) : re;
174
173
  return ot(h, `${a}`);
175
174
  }, polygonSideColor: (r) => {
176
- const a = r?.properties?.[s], c = b.find((N) => N.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 : F : z.length !== 0 ? z.includes(r?.properties?.[s]) ? 1 : F : 1, h = c != null ? Y(c) : re;
175
+ const a = r?.properties?.[s], c = b.find((N) => N.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 : A : z.length !== 0 ? z.includes(r?.properties?.[s]) ? 1 : A : 1, h = c != null ? K(c) : re;
177
176
  return ot(h, `${y}`);
178
177
  }, polygonStrokeColor: (r) => r?.properties?.[s] === S?.id ? ie : w, onGlobeClick: () => {
179
- L(void 0);
178
+ k(void 0);
180
179
  }, onPolygonClick: (r) => {
181
180
  const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
182
- (_ || k) && (ut(R, a) && xe && a ? (L(void 0), _?.(void 0)) : (L(a), _?.(a)));
181
+ (Z || V) && (ut(q, a) && xe && a ? (k(void 0), Z?.(void 0)) : (k(a), Z?.(a)));
183
182
  }, onPolygonHover: (r) => {
184
183
  const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
185
184
  pe(a), be?.(a);
186
- }, atmosphereColor: M, atmosphereAltitude: se, globeCurvatureResolution: J, globeMaterial: j, backgroundColor: "rgba(0, 0, 0, 0)", polygonsTransitionDuration: 100, onGlobeReady: () => {
185
+ }, atmosphereColor: L, atmosphereAltitude: se, globeCurvatureResolution: X, globeMaterial: j, backgroundColor: "rgba(0, 0, 0, 0)", polygonsTransitionDuration: 100, onGlobeReady: () => {
187
186
  if (p.current) {
188
187
  p.current.pointOfView({
189
- lat: Z,
190
- lng: V
188
+ lat: J,
189
+ lng: _
191
190
  });
192
191
  const r = p.current.scene();
193
192
  setTimeout(() => {
@@ -197,13 +196,13 @@ function zt(t) {
197
196
  });
198
197
  }, 300);
199
198
  const a = p.current.camera();
200
- r.add(a), O();
199
+ r.add(a), R();
201
200
  }
202
201
  } }),
203
- ae === !1 ? null : /* @__PURE__ */ i.jsx("div", { className: lt("absolute left-4 bottom-4 map-color-legend", oe?.colorLegend), children: Ce ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
202
+ ae === !1 ? null : /* @__PURE__ */ i.jsx("div", { className: lt("absolute left-4 bottom-4 map-color-legend", W?.colorLegend), children: Ce ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
204
203
  /* @__PURE__ */ i.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
205
204
  le(!1);
206
- }, children: /* @__PURE__ */ i.jsx(bt, {}) }),
205
+ }, children: /* @__PURE__ */ i.jsx(yt, {}) }),
207
206
  /* @__PURE__ */ i.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
208
207
  width: D ? void 0 : "340px"
209
208
  }, children: [
@@ -225,7 +224,7 @@ function zt(t) {
225
224
  } }),
226
225
  /* @__PURE__ */ i.jsx("text", { x: (a + 1) * 320 / l.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
227
226
  textAnchor: "middle"
228
- }, children: yt(r, "NA") })
227
+ }, children: vt(r, "NA") })
229
228
  ] }, a)),
230
229
  /* @__PURE__ */ i.jsx("g", { children: /* @__PURE__ */ i.jsx("rect", { x: g.length * 320 / l.length + 1, y: 1, width: 320 / l.length - 2, height: 8, style: {
231
230
  fill: l[g.length],
@@ -236,15 +235,11 @@ function zt(t) {
236
235
  ] }) : /* @__PURE__ */ i.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start", onClick: () => {
237
236
  le(!0);
238
237
  }, children: /* @__PURE__ */ i.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" }) }) }),
239
- S && P ? /* @__PURE__ */ i.jsx(vt, { data: S, body: P, xPos: ce.x, yPos: ce.y, backgroundStyle: ye?.tooltip, className: oe?.tooltip }) : null,
240
- k && R !== void 0 ? /* @__PURE__ */ i.jsx(gt, { open: R !== void 0, onClose: () => {
241
- L(void 0);
242
- }, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof k == "string" ? {
243
- __html: xt(k, R)
244
- } : void 0, children: typeof k == "function" ? k(R) : null }) }) : null
238
+ S && P ? /* @__PURE__ */ i.jsx(ft, { data: S, body: P, xPos: ce.x, yPos: ce.y, backgroundStyle: ye?.tooltip, className: W?.tooltip }) : null,
239
+ V && q !== void 0 ? /* @__PURE__ */ i.jsx(xt, { body: V, data: q, setData: k, className: W?.modal }) : null
245
240
  ] });
246
241
  }
247
- function po(t) {
242
+ function lo(t) {
248
243
  const e = ct.c(97), {
249
244
  data: d,
250
245
  mapData: b,
@@ -257,54 +252,54 @@ function po(t) {
257
252
  footNote: f,
258
253
  colorDomain: s,
259
254
  colorLegendTitle: w,
260
- scaleType: M,
255
+ scaleType: L,
261
256
  padding: P,
262
257
  mapNoDataColor: ye,
263
- backgroundColor: oe,
258
+ backgroundColor: W,
264
259
  mapBorderColor: re,
265
260
  relativeHeight: C,
266
261
  tooltip: ae,
267
262
  graphID: ie,
268
- mapProperty: k,
269
- dataDownload: _,
263
+ mapProperty: V,
264
+ dataDownload: Z,
270
265
  language: be,
271
266
  minHeight: xe,
272
267
  theme: z,
273
- ariaLabel: E,
268
+ ariaLabel: M,
274
269
  styles: m,
275
270
  classNames: u,
276
- autoRotate: V,
277
- enableZoom: Z,
271
+ autoRotate: _,
272
+ enableZoom: J,
278
273
  globeMaterial: se,
279
- centerPoint: J,
280
- atmosphereColor: A,
281
- showColorScale: B,
274
+ centerPoint: X,
275
+ atmosphereColor: T,
276
+ showColorScale: E,
282
277
  resetSelectionOnDoubleClick: ne,
283
278
  detailsOnClick: v,
284
- onSeriesMouseOver: X,
285
- onSeriesMouseClick: F,
286
- highlightedIds: q,
279
+ onSeriesMouseOver: Y,
280
+ onSeriesMouseClick: A,
281
+ highlightedIds: U,
287
282
  highlightedAltitude: we,
288
283
  dimmedOpacity: p,
289
- scale: R,
290
- globeOffset: L,
284
+ scale: q,
285
+ globeOffset: k,
291
286
  polygonAltitude: Ce,
292
287
  globeCurvatureResolution: le,
293
288
  atmosphereAltitude: ce,
294
289
  fogSettings: de,
295
290
  lights: S,
296
291
  selectedId: pe,
297
- collapseColorScaleByDefault: Y
298
- } = t, j = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json" : b, G = f === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : f, O = M === void 0 ? "threshold" : M, r = ye === void 0 ? te.light.graphNoData : ye, a = oe === void 0 ? !1 : oe, c = re === void 0 ? te.light.grays["gray-500"] : re, y = k === void 0 ? "ISO3" : k, h = _ === void 0 ? !1 : _, N = be === void 0 ? "en" : be, T = xe === void 0 ? 0 : xe, I = z === void 0 ? "light" : z, he = V === void 0 ? !0 : V, Ae = Z === void 0 ? !0 : Z;
292
+ collapseColorScaleByDefault: K
293
+ } = t, j = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json" : b, B = f === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : f, R = L === void 0 ? "threshold" : L, r = ye === void 0 ? oe.light.graphNoData : ye, a = W === void 0 ? !1 : W, c = re === void 0 ? oe.light.grays["gray-500"] : re, y = V === void 0 ? "ISO3" : V, h = Z === void 0 ? !1 : Z, N = be === void 0 ? "en" : be, O = xe === void 0 ? 0 : xe, F = z === void 0 ? "light" : z, he = _ === void 0 ? !0 : _, Ae = J === void 0 ? !0 : J;
299
294
  let De;
300
- e[0] !== J ? (De = J === void 0 ? [0, 0] : J, e[0] = J, e[1] = De) : De = e[1];
301
- const Se = De, Be = A === void 0 ? "#999" : A, Fe = B === void 0 ? !0 : B, Ge = ne === void 0 ? !0 : ne;
295
+ e[0] !== X ? (De = X === void 0 ? [0, 0] : X, e[0] = X, e[1] = De) : De = e[1];
296
+ const Se = De, Be = T === void 0 ? "#999" : T, Fe = E === void 0 ? !0 : E, Ge = ne === void 0 ? !0 : ne;
302
297
  let je;
303
- e[2] !== q ? (je = q === void 0 ? [] : q, e[2] = q, e[3] = je) : je = e[3];
304
- const Ie = je, He = we === void 0 ? 0.1 : we, Ue = p === void 0 ? 0.3 : p, qe = R === void 0 ? 1 : R;
298
+ e[2] !== U ? (je = U === void 0 ? [] : U, e[2] = U, e[3] = je) : je = e[3];
299
+ const Ie = je, Ue = we === void 0 ? 0.1 : we, qe = p === void 0 ? 0.3 : p, He = q === void 0 ? 1 : q;
305
300
  let Ne;
306
- e[4] !== L ? (Ne = L === void 0 ? [0, 0] : L, e[4] = L, e[5] = Ne) : Ne = e[5];
307
- const $e = Ne, We = Ce === void 0 ? 0.01 : Ce, _e = le === void 0 ? 4 : le, Ve = ce === void 0 ? 0.15 : ce;
301
+ e[4] !== k ? (Ne = k === void 0 ? [0, 0] : k, e[4] = k, e[5] = Ne) : Ne = e[5];
302
+ const $e = Ne, We = Ce === void 0 ? 0.01 : Ce, Ve = le === void 0 ? 4 : le, Ze = ce === void 0 ? 0.15 : ce;
308
303
  let ke;
309
304
  e[6] !== S ? (ke = S === void 0 ? [{
310
305
  type: "ambient",
@@ -320,80 +315,80 @@ function po(t) {
320
315
  z: 5
321
316
  }
322
317
  }] : S, e[6] = S, e[7] = ke) : ke = e[7];
323
- const Ze = ke, [Re, rt] = U(void 0), [$, at] = U(0), [me, it] = U(0), Je = Qe(null), st = Qe(null);
324
- let Le, Oe;
325
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (Le = () => {
318
+ const _e = ke, [Re, rt] = I(void 0), [H, at] = I(0), [me, it] = I(0), Je = Qe(null), st = Qe(null);
319
+ let Oe, Le;
320
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (Oe = () => {
326
321
  const fe = new ResizeObserver((ve) => {
327
322
  at(ve[0].target.clientWidth || 620), it(ve[0].target.clientHeight || 480);
328
323
  });
329
324
  return Je.current && fe.observe(Je.current), () => fe.disconnect();
330
- }, Oe = [], e[8] = Le, e[9] = Oe) : (Le = e[8], Oe = e[9]), H(Le, Oe);
331
- let Te;
332
- e[10] === Symbol.for("react.memo_cache_sentinel") ? (Te = (fe) => {
325
+ }, Le = [], e[8] = Oe, e[9] = Le) : (Oe = e[8], Le = e[9]), G(Oe, Le);
326
+ let Pe;
327
+ e[10] === Symbol.for("react.memo_cache_sentinel") ? (Pe = (fe) => {
333
328
  rt(fe);
334
- }, e[10] = Te) : Te = e[10];
335
- const ue = pt(Te);
336
- let Me;
337
- e[11] !== j || e[12] !== ue ? (Me = () => {
338
- typeof j == "string" ? Nt(j).then((ve) => {
329
+ }, e[10] = Pe) : Pe = e[10];
330
+ const ue = pt(Pe);
331
+ let ze;
332
+ e[11] !== j || e[12] !== ue ? (ze = () => {
333
+ typeof j == "string" ? jt(j).then((ve) => {
339
334
  if (j === "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json") {
340
- const nt = ve.features.map(Ht);
335
+ const nt = ve.features.map(It);
341
336
  ue(nt);
342
337
  } else
343
338
  ue(ve.features);
344
339
  }) : ue(j.features);
345
- }, e[11] = j, e[12] = ue, e[13] = Me) : Me = e[13];
346
- let Pe;
347
- e[14] !== j ? (Pe = [j], e[14] = j, e[15] = Pe) : Pe = e[15], H(Me, Pe);
348
- let ze;
349
- e[16] !== s || e[17] !== D?.length || e[18] !== d || e[19] !== O ? (ze = s || (O === "categorical" ? kt(d, "x") : Rt(d.map(It), D?.length || 4)), e[16] = s, e[17] = D?.length, e[18] = d, e[19] = O, e[20] = ze) : ze = e[20];
350
- const ge = ze, Xe = u?.graphContainer, Ye = m?.graphContainer;
351
- let K;
352
- e[21] !== u?.description || e[22] !== u?.title || e[23] !== d || e[24] !== h || e[25] !== l || e[26] !== x || e[27] !== m?.description || e[28] !== m?.title || e[29] !== n ? (K = x || l || h ? /* @__PURE__ */ i.jsx(St, { styles: {
340
+ }, e[11] = j, e[12] = ue, e[13] = ze) : ze = e[13];
341
+ let Me;
342
+ e[14] !== j ? (Me = [j], e[14] = j, e[15] = Me) : Me = e[15], G(ze, Me);
343
+ let Te;
344
+ e[16] !== s || e[17] !== D?.length || e[18] !== d || e[19] !== R ? (Te = s || (R === "categorical" ? Nt(d, "x") : kt(d.map(Gt), D?.length || 4)), e[16] = s, e[17] = D?.length, e[18] = d, e[19] = R, e[20] = Te) : Te = e[20];
345
+ const ge = Te, Xe = u?.graphContainer, Ye = m?.graphContainer;
346
+ let Q;
347
+ e[21] !== u?.description || e[22] !== u?.title || e[23] !== d || e[24] !== h || e[25] !== l || e[26] !== x || e[27] !== m?.description || e[28] !== m?.title || e[29] !== n ? (Q = x || l || h ? /* @__PURE__ */ i.jsx(Dt, { styles: {
353
348
  title: m?.title,
354
349
  description: m?.description
355
350
  }, classNames: {
356
351
  title: u?.title,
357
352
  description: u?.description
358
- }, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(Gt).filter(Ft).length > 0 ? d.map(Bt).filter(At) : d.filter(Et) : null }) : null, e[21] = u?.description, e[22] = u?.title, e[23] = d, e[24] = h, e[25] = l, e[26] = x, e[27] = m?.description, e[28] = m?.title, e[29] = n, e[30] = K) : K = e[30];
359
- let Q;
360
- e[31] !== Ve || e[32] !== Be || e[33] !== he || e[34] !== Se || e[35] !== u || e[36] !== Y || e[37] !== w || e[38] !== D || e[39] !== d || e[40] !== v || e[41] !== Ue || e[42] !== ge || e[43] !== Ae || e[44] !== de || e[45] !== _e || e[46] !== se || e[47] !== $e || e[48] !== o || e[49] !== He || e[50] !== Ie || e[51] !== Ze || e[52] !== c || e[53] !== r || e[54] !== y || e[55] !== Re || e[56] !== T || e[57] !== F || e[58] !== X || e[59] !== We || e[60] !== C || e[61] !== Ge || e[62] !== qe || e[63] !== O || e[64] !== pe || e[65] !== Fe || e[66] !== m || e[67] !== me || e[68] !== $ || e[69] !== I || e[70] !== ae || e[71] !== n ? (Q = /* @__PURE__ */ i.jsx(Lt, { ref: Je, children: $ && me && Re ? /* @__PURE__ */ i.jsx(zt, { data: d, globeOffset: $e, polygonData: Re, colorDomain: ge, width: $, height: me, colors: D || (O === "categorical" ? te[I].sequentialColors[`neutralColorsx0${ge.length}`] : te[I].sequentialColors[`neutralColorsx0${ge.length + 1}`]), mapNoDataColor: r, categorical: O === "categorical", mapBorderColor: c, tooltip: ae, mapProperty: y, styles: m, classNames: u, autoRotate: he === !0 ? 1.5 : he === !1 ? 0 : he, enableZoom: Ae, globeMaterial: se, atmosphereColor: Be, colorLegendTitle: w, showColorScale: Fe, hoverStrokeColor: I === "light" ? te.light.grays["gray-700"] : te.light.grays["gray-300"], highlightedIds: Ie, resetSelectionOnDoubleClick: Ge, detailsOnClick: v, onSeriesMouseOver: X, onSeriesMouseClick: F, scale: qe, polygonAltitude: We, centerLat: Se[0], centerLng: Se[1], atmosphereAltitude: Ve, globeCurvatureResolution: _e, fogSettings: de, lights: Ze, highlightedAltitude: He, selectedId: pe, collapseColorScaleByDefault: Y, dimmedOpacity: Ue }) : /* @__PURE__ */ i.jsx("div", { style: {
361
- height: `${Math.max(T, o || (C ? T ? (n || $) * C > T ? (n || $) * C : T : (n || $) * C : me))}px`
362
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(ht, { "aria-label": "Loading graph" }) }) }), e[31] = Ve, e[32] = Be, e[33] = he, e[34] = Se, e[35] = u, e[36] = Y, e[37] = w, e[38] = D, e[39] = d, e[40] = v, e[41] = Ue, e[42] = ge, e[43] = Ae, e[44] = de, e[45] = _e, e[46] = se, e[47] = $e, e[48] = o, e[49] = He, e[50] = Ie, e[51] = Ze, e[52] = c, e[53] = r, e[54] = y, e[55] = Re, e[56] = T, e[57] = F, e[58] = X, e[59] = We, e[60] = C, e[61] = Ge, e[62] = qe, e[63] = O, e[64] = pe, e[65] = Fe, e[66] = m, e[67] = me, e[68] = $, e[69] = I, e[70] = ae, e[71] = n, e[72] = Q) : Q = e[72];
353
+ }, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(Ft).filter(Bt).length > 0 ? d.map(At).filter(Et) : d.filter(Tt) : null }) : null, e[21] = u?.description, e[22] = u?.title, e[23] = d, e[24] = h, e[25] = l, e[26] = x, e[27] = m?.description, e[28] = m?.title, e[29] = n, e[30] = Q) : Q = e[30];
363
354
  let ee;
364
- e[73] !== u?.footnote || e[74] !== u?.source || e[75] !== G || e[76] !== g || e[77] !== m?.footnote || e[78] !== m?.source || e[79] !== n ? (ee = g || G ? /* @__PURE__ */ i.jsx(jt, { styles: {
355
+ e[31] !== Ze || e[32] !== Be || e[33] !== he || e[34] !== Se || e[35] !== u || e[36] !== K || e[37] !== w || e[38] !== D || e[39] !== d || e[40] !== v || e[41] !== qe || e[42] !== ge || e[43] !== Ae || e[44] !== de || e[45] !== Ve || e[46] !== se || e[47] !== $e || e[48] !== o || e[49] !== Ue || e[50] !== Ie || e[51] !== _e || e[52] !== c || e[53] !== r || e[54] !== y || e[55] !== Re || e[56] !== O || e[57] !== A || e[58] !== Y || e[59] !== We || e[60] !== C || e[61] !== Ge || e[62] !== He || e[63] !== R || e[64] !== pe || e[65] !== Fe || e[66] !== m || e[67] !== me || e[68] !== H || e[69] !== F || e[70] !== ae || e[71] !== n ? (ee = /* @__PURE__ */ i.jsx(Rt, { ref: Je, children: H && me && Re ? /* @__PURE__ */ i.jsx(Mt, { data: d, globeOffset: $e, polygonData: Re, colorDomain: ge, width: H, height: me, colors: D || (R === "categorical" ? oe[F].sequentialColors[`neutralColorsx0${ge.length}`] : oe[F].sequentialColors[`neutralColorsx0${ge.length + 1}`]), mapNoDataColor: r, categorical: R === "categorical", mapBorderColor: c, tooltip: ae, mapProperty: y, styles: m, classNames: u, autoRotate: he === !0 ? 1.5 : he === !1 ? 0 : he, enableZoom: Ae, globeMaterial: se, atmosphereColor: Be, colorLegendTitle: w, showColorScale: Fe, hoverStrokeColor: F === "light" ? oe.light.grays["gray-700"] : oe.light.grays["gray-300"], highlightedIds: Ie, resetSelectionOnDoubleClick: Ge, detailsOnClick: v, onSeriesMouseOver: Y, onSeriesMouseClick: A, scale: He, polygonAltitude: We, centerLat: Se[0], centerLng: Se[1], atmosphereAltitude: Ze, globeCurvatureResolution: Ve, fogSettings: de, lights: _e, highlightedAltitude: Ue, selectedId: pe, collapseColorScaleByDefault: K, dimmedOpacity: qe }) : /* @__PURE__ */ i.jsx("div", { style: {
356
+ height: `${Math.max(O, o || (C ? O ? (n || H) * C > O ? (n || H) * C : O : (n || H) * C : me))}px`
357
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(ht, { "aria-label": "Loading graph" }) }) }), e[31] = Ze, e[32] = Be, e[33] = he, e[34] = Se, e[35] = u, e[36] = K, e[37] = w, e[38] = D, e[39] = d, e[40] = v, e[41] = qe, e[42] = ge, e[43] = Ae, e[44] = de, e[45] = Ve, e[46] = se, e[47] = $e, e[48] = o, e[49] = Ue, e[50] = Ie, e[51] = _e, e[52] = c, e[53] = r, e[54] = y, e[55] = Re, e[56] = O, e[57] = A, e[58] = Y, e[59] = We, e[60] = C, e[61] = Ge, e[62] = He, e[63] = R, e[64] = pe, e[65] = Fe, e[66] = m, e[67] = me, e[68] = H, e[69] = F, e[70] = ae, e[71] = n, e[72] = ee) : ee = e[72];
358
+ let te;
359
+ e[73] !== u?.footnote || e[74] !== u?.source || e[75] !== B || e[76] !== g || e[77] !== m?.footnote || e[78] !== m?.source || e[79] !== n ? (te = g || B ? /* @__PURE__ */ i.jsx(St, { styles: {
365
360
  footnote: m?.footnote,
366
361
  source: m?.source
367
362
  }, classNames: {
368
363
  footnote: u?.footnote,
369
364
  source: u?.source
370
- }, sources: g, footNote: G, width: n }) : null, e[73] = u?.footnote, e[74] = u?.source, e[75] = G, e[76] = g, e[77] = m?.footnote, e[78] = m?.source, e[79] = n, e[80] = ee) : ee = e[80];
365
+ }, sources: g, footNote: B, width: n }) : null, e[73] = u?.footnote, e[74] = u?.source, e[75] = B, e[76] = g, e[77] = m?.footnote, e[78] = m?.source, e[79] = n, e[80] = te) : te = e[80];
371
366
  let Ee;
372
- return e[81] !== E || e[82] !== a || e[83] !== ie || e[84] !== o || e[85] !== N || e[86] !== T || e[87] !== P || e[88] !== C || e[89] !== Xe || e[90] !== Ye || e[91] !== K || e[92] !== Q || e[93] !== ee || e[94] !== I || e[95] !== n ? (Ee = /* @__PURE__ */ i.jsxs(Ot, { className: Xe, style: Ye, id: ie, ref: st, "aria-label": E, backgroundColor: a, theme: I, language: N, minHeight: T, width: n, height: o, relativeHeight: C, padding: P, children: [
373
- K,
367
+ return e[81] !== M || e[82] !== a || e[83] !== ie || e[84] !== o || e[85] !== N || e[86] !== O || e[87] !== P || e[88] !== C || e[89] !== Xe || e[90] !== Ye || e[91] !== Q || e[92] !== ee || e[93] !== te || e[94] !== F || e[95] !== n ? (Ee = /* @__PURE__ */ i.jsxs(Ot, { className: Xe, style: Ye, id: ie, ref: st, "aria-label": M, backgroundColor: a, theme: F, language: N, minHeight: O, width: n, height: o, relativeHeight: C, padding: P, children: [
374
368
  Q,
375
- ee
376
- ] }), e[81] = E, e[82] = a, e[83] = ie, e[84] = o, e[85] = N, e[86] = T, e[87] = P, e[88] = C, e[89] = Xe, e[90] = Ye, e[91] = K, e[92] = Q, e[93] = ee, e[94] = I, e[95] = n, e[96] = Ee) : Ee = e[96], Ee;
369
+ ee,
370
+ te
371
+ ] }), e[81] = M, e[82] = a, e[83] = ie, e[84] = o, e[85] = N, e[86] = O, e[87] = P, e[88] = C, e[89] = Xe, e[90] = Ye, e[91] = Q, e[92] = ee, e[93] = te, e[94] = F, e[95] = n, e[96] = Ee) : Ee = e[96], Ee;
377
372
  }
378
- function Et(t) {
373
+ function Tt(t) {
379
374
  return t !== void 0;
380
375
  }
381
- function At(t) {
376
+ function Et(t) {
382
377
  return t !== void 0;
383
378
  }
384
- function Bt(t) {
379
+ function At(t) {
385
380
  return t.data;
386
381
  }
387
- function Ft(t) {
382
+ function Bt(t) {
388
383
  return t !== void 0;
389
384
  }
390
- function Gt(t) {
385
+ function Ft(t) {
391
386
  return t.data;
392
387
  }
393
- function It(t) {
388
+ function Gt(t) {
394
389
  return t.x;
395
390
  }
396
- function Ht(t) {
391
+ function It(t) {
397
392
  if (t.geometry.type === "Polygon") {
398
393
  const b = [...t.geometry.coordinates[0]].reverse(), x = {
399
394
  ...t.geometry,
@@ -419,6 +414,6 @@ function Ht(t) {
419
414
  };
420
415
  }
421
416
  export {
422
- po as ThreeDGlobe
417
+ lo as ThreeDGlobe
423
418
  };
424
419
  //# sourceMappingURL=ThreeDGlobe.js.map