@undp/data-viz 2.4.0 → 2.5.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 (262) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +11 -9
  4. package/dist/AreaChart.js +320 -322
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/BarGraph.cjs +1 -1
  7. package/dist/BarGraph.cjs.map +1 -1
  8. package/dist/BarGraph.d.ts +15 -25
  9. package/dist/BarGraph.js +1694 -1694
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.cjs.map +1 -1
  13. package/dist/BasicStatCard.d.ts +13 -9
  14. package/dist/BasicStatCard.js +79 -81
  15. package/dist/BasicStatCard.js.map +1 -1
  16. package/dist/BeeSwarmChart.cjs +1 -1
  17. package/dist/BeeSwarmChart.cjs.map +1 -1
  18. package/dist/BeeSwarmChart.d.ts +11 -9
  19. package/dist/BeeSwarmChart.js +335 -336
  20. package/dist/BeeSwarmChart.js.map +1 -1
  21. package/dist/BiVariateChoroplethMap.cjs +1 -1
  22. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  23. package/dist/BiVariateChoroplethMap.d.ts +13 -3
  24. package/dist/BiVariateChoroplethMap.js +301 -302
  25. package/dist/BiVariateChoroplethMap.js.map +1 -1
  26. package/dist/BulletChart.cjs +1 -1
  27. package/dist/BulletChart.cjs.map +1 -1
  28. package/dist/BulletChart.d.ts +11 -5
  29. package/dist/BulletChart.js +560 -559
  30. package/dist/BulletChart.js.map +1 -1
  31. package/dist/ButterflyChart.cjs +1 -1
  32. package/dist/ButterflyChart.cjs.map +1 -1
  33. package/dist/ButterflyChart.d.ts +11 -9
  34. package/dist/ButterflyChart.js +348 -350
  35. package/dist/ButterflyChart.js.map +1 -1
  36. package/dist/ChoroplethMap.cjs +1 -1
  37. package/dist/ChoroplethMap.cjs.map +1 -1
  38. package/dist/ChoroplethMap.d.ts +11 -3
  39. package/dist/ChoroplethMap.js +264 -267
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.d.ts +11 -9
  43. package/dist/CirclePackingGraph.js +1 -1
  44. package/dist/DataCards.cjs +1 -1
  45. package/dist/DataCards.d.ts +1 -1
  46. package/dist/DataCards.js +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.cjs.map +1 -1
  49. package/dist/DataTable.d.ts +4 -5
  50. package/dist/DataTable.js +114 -116
  51. package/dist/DataTable.js.map +1 -1
  52. package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
  53. package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
  54. package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
  55. package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
  56. package/dist/DifferenceLineChart.cjs +1 -1
  57. package/dist/DifferenceLineChart.cjs.map +1 -1
  58. package/dist/DifferenceLineChart.d.ts +11 -9
  59. package/dist/DifferenceLineChart.js +502 -504
  60. package/dist/DifferenceLineChart.js.map +1 -1
  61. package/dist/DonutChart.cjs +1 -1
  62. package/dist/DonutChart.cjs.map +1 -1
  63. package/dist/DonutChart.d.ts +14 -9
  64. package/dist/DonutChart.js +174 -179
  65. package/dist/DonutChart.js.map +1 -1
  66. package/dist/DotDensityMap.cjs +1 -1
  67. package/dist/DotDensityMap.d.ts +1 -1
  68. package/dist/DotDensityMap.js +2 -2
  69. package/dist/DualAxisLineChart.cjs +1 -1
  70. package/dist/DualAxisLineChart.cjs.map +1 -1
  71. package/dist/DualAxisLineChart.d.ts +13 -9
  72. package/dist/DualAxisLineChart.js +341 -351
  73. package/dist/DualAxisLineChart.js.map +1 -1
  74. package/dist/DumbbellChart.cjs +1 -1
  75. package/dist/DumbbellChart.cjs.map +1 -1
  76. package/dist/DumbbellChart.d.ts +11 -9
  77. package/dist/DumbbellChart.js +592 -593
  78. package/dist/DumbbellChart.js.map +1 -1
  79. package/dist/GeoHubCompareMaps.cjs +1 -1
  80. package/dist/GeoHubCompareMaps.d.ts +1 -1
  81. package/dist/GeoHubCompareMaps.js +1 -1
  82. package/dist/GeoHubMap.cjs +1 -1
  83. package/dist/GeoHubMap.d.ts +1 -1
  84. package/dist/GeoHubMap.js +1 -1
  85. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  86. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  88. package/dist/GraphEl-B7x5ku_y.cjs +2 -0
  89. package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
  90. package/dist/GraphEl-B8tGXqWk.js +1829 -0
  91. package/dist/GraphEl-B8tGXqWk.js.map +1 -0
  92. package/dist/GriddedGraphs.cjs +1 -1
  93. package/dist/GriddedGraphs.d.ts +28 -16
  94. package/dist/GriddedGraphs.js +1 -1
  95. package/dist/GriddedGraphsFromConfig.d.ts +28 -16
  96. package/dist/HeatMap.cjs +1 -1
  97. package/dist/HeatMap.cjs.map +1 -1
  98. package/dist/HeatMap.d.ts +11 -9
  99. package/dist/HeatMap.js +203 -205
  100. package/dist/HeatMap.js.map +1 -1
  101. package/dist/Histogram.cjs +1 -1
  102. package/dist/Histogram.cjs.map +1 -1
  103. package/dist/Histogram.d.ts +11 -5
  104. package/dist/Histogram.js +88 -89
  105. package/dist/Histogram.js.map +1 -1
  106. package/dist/HybridMap.cjs +1 -1
  107. package/dist/HybridMap.cjs.map +1 -1
  108. package/dist/HybridMap.d.ts +11 -3
  109. package/dist/HybridMap.js +282 -285
  110. package/dist/HybridMap.js.map +1 -1
  111. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  112. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  113. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  114. package/dist/LineChartWithConfidenceInterval.js +393 -395
  115. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  116. package/dist/LinearColorLegend.cjs +1 -1
  117. package/dist/LinearColorLegend.js +1 -1
  118. package/dist/MultiGraphDashboard.d.ts +28 -16
  119. package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
  120. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  121. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  122. package/dist/MultiLineAltChart.cjs +1 -1
  123. package/dist/MultiLineAltChart.cjs.map +1 -1
  124. package/dist/MultiLineAltChart.d.ts +11 -9
  125. package/dist/MultiLineAltChart.js +411 -413
  126. package/dist/MultiLineAltChart.js.map +1 -1
  127. package/dist/MultiLineChart.cjs +1 -1
  128. package/dist/MultiLineChart.cjs.map +1 -1
  129. package/dist/MultiLineChart.d.ts +11 -9
  130. package/dist/MultiLineChart.js +438 -440
  131. package/dist/MultiLineChart.js.map +1 -1
  132. package/dist/ParetoChart.cjs +1 -1
  133. package/dist/ParetoChart.cjs.map +1 -1
  134. package/dist/ParetoChart.d.ts +13 -13
  135. package/dist/ParetoChart.js +347 -355
  136. package/dist/ParetoChart.js.map +1 -1
  137. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
  138. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
  139. package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
  140. package/dist/RadarChart.cjs +1 -1
  141. package/dist/RadarChart.cjs.map +1 -1
  142. package/dist/RadarChart.d.ts +11 -5
  143. package/dist/RadarChart.js +213 -213
  144. package/dist/RadarChart.js.map +1 -1
  145. package/dist/SankeyChart.cjs +1 -1
  146. package/dist/SankeyChart.cjs.map +1 -1
  147. package/dist/SankeyChart.d.ts +11 -9
  148. package/dist/SankeyChart.js +448 -450
  149. package/dist/SankeyChart.js.map +1 -1
  150. package/dist/ScatterPlot.cjs +1 -1
  151. package/dist/ScatterPlot.cjs.map +1 -1
  152. package/dist/ScatterPlot.d.ts +13 -13
  153. package/dist/ScatterPlot.js +490 -498
  154. package/dist/ScatterPlot.js.map +1 -1
  155. package/dist/ScrollStory.d.ts +28 -16
  156. package/dist/SimpleLineChart.cjs +1 -1
  157. package/dist/SimpleLineChart.cjs.map +1 -1
  158. package/dist/SimpleLineChart.d.ts +11 -9
  159. package/dist/SimpleLineChart.js +362 -364
  160. package/dist/SimpleLineChart.js.map +1 -1
  161. package/dist/SingleGraphDashboard.cjs +1 -1
  162. package/dist/SingleGraphDashboard.d.ts +28 -16
  163. package/dist/SingleGraphDashboard.js +1 -1
  164. package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
  165. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
  166. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
  167. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  168. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  169. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
  170. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  171. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
  173. package/dist/SlopeChart.cjs +1 -1
  174. package/dist/SlopeChart.d.ts +1 -1
  175. package/dist/SlopeChart.js +2 -2
  176. package/dist/SparkLine.cjs +1 -1
  177. package/dist/SparkLine.d.ts +1 -1
  178. package/dist/SparkLine.js +1 -1
  179. package/dist/StatCardFromData.cjs +1 -1
  180. package/dist/StatCardFromData.cjs.map +1 -1
  181. package/dist/StatCardFromData.d.ts +11 -9
  182. package/dist/StatCardFromData.js +113 -116
  183. package/dist/StatCardFromData.js.map +1 -1
  184. package/dist/StripChart.cjs +1 -1
  185. package/dist/StripChart.cjs.map +1 -1
  186. package/dist/StripChart.d.ts +11 -9
  187. package/dist/StripChart.js +434 -435
  188. package/dist/StripChart.js.map +1 -1
  189. package/dist/ThreeDGlobe.cjs +1 -1
  190. package/dist/ThreeDGlobe.cjs.map +1 -1
  191. package/dist/ThreeDGlobe.d.ts +11 -3
  192. package/dist/ThreeDGlobe.js +150 -153
  193. package/dist/ThreeDGlobe.js.map +1 -1
  194. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  195. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  196. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  197. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  198. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  199. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  200. package/dist/TreeMapGraph.cjs +1 -1
  201. package/dist/TreeMapGraph.cjs.map +1 -1
  202. package/dist/TreeMapGraph.d.ts +11 -9
  203. package/dist/TreeMapGraph.js +369 -371
  204. package/dist/TreeMapGraph.js.map +1 -1
  205. package/dist/Types.d.ts +28 -16
  206. package/dist/UnitChart.cjs +1 -1
  207. package/dist/UnitChart.cjs.map +1 -1
  208. package/dist/UnitChart.d.ts +11 -5
  209. package/dist/UnitChart.js +118 -119
  210. package/dist/UnitChart.js.map +1 -1
  211. package/dist/WaterfallChart.cjs +1 -1
  212. package/dist/WaterfallChart.cjs.map +1 -1
  213. package/dist/WaterfallChart.d.ts +11 -9
  214. package/dist/WaterfallChart.js +306 -308
  215. package/dist/WaterfallChart.js.map +1 -1
  216. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  217. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  218. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  219. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  220. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  221. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  222. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  223. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  224. package/dist/index-BPyj_6hG.js +375 -0
  225. package/dist/index-BPyj_6hG.js.map +1 -0
  226. package/dist/index-DuLvdHo2.cjs +2 -0
  227. package/dist/index-DuLvdHo2.cjs.map +1 -0
  228. package/dist/index.cjs +1 -1
  229. package/dist/index.d.ts +105 -245
  230. package/dist/index.js +2 -2
  231. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  232. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  233. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  234. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  235. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  236. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  237. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  238. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  239. package/dist/utils.cjs +1 -1
  240. package/dist/utils.d.ts +1 -1
  241. package/dist/utils.js +1 -1
  242. package/package.json +2 -2
  243. package/dist/GraphEl-B73N4RIA.js +0 -1906
  244. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  245. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  246. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  247. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  248. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  249. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  250. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  251. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  252. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  253. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  254. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  255. package/dist/index-B0Awa_de.js +0 -377
  256. package/dist/index-B0Awa_de.js.map +0 -1
  257. package/dist/index-CP8cmNzt.cjs +0 -2
  258. package/dist/index-CP8cmNzt.cjs.map +0 -1
  259. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  260. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  261. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  262. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
@@ -1,29 +1,29 @@
1
- import { j as i, m as dt, c as pt } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useState as I, useRef as tt, useEffect as G, useCallback as ht, useEffectEvent as mt } from "react";
3
- import { w as ut } from "./Spinner-B2IIKg9r.js";
4
- import gt from "react-globe.gl";
5
- import { i as ft } from "./index-Bwrro8-q.js";
6
- import * as H from "three";
7
- import { _ as ot } from "./Typography-BO0gQDIT.js";
8
- import { g as vt } from "./_commonjsHelpers-ByX85dGu.js";
9
- import { T as yt } from "./Tooltip-Bj-s__cI.js";
10
- import { n as bt } from "./numberFormattingFunction-DqMf_v1m.js";
11
- import { X as xt, E as wt } from "./index-ApTBN0kp.js";
12
- import { g as Ct } from "./getCentroidCoordinates-s0OOUjLF.js";
13
- import { D as Dt } from "./DetailsModal-B2XBWR7w.js";
14
- import { o as St } from "./ordinal-CHaxGJ_l.js";
15
- import { t as jt } from "./threshold-DFfqcDMa.js";
16
- import { GraphHeader as Nt } from "./GraphHeader.js";
17
- import { GraphFooter as Rt } from "./GraphFooter.js";
18
- import { f as kt } from "./fetchAndParseData-BAXhgTDM.js";
19
- import { Colors as re } from "./Colors.js";
20
- import { g as Ot } from "./getUniqValue-DsqSii6M.js";
21
- import { g as Et } from "./getJenks-DTCcQSDi.js";
22
- import { a as Lt, G as Pt } from "./GraphContainer-B8ZqOzKI.js";
23
- var et, rt;
24
- function zt() {
25
- if (rt) return et;
26
- rt = 1;
1
+ import { j as i, m as nt, c as lt } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useState as I, useRef as Ke, useEffect as G, useCallback as ct, useEffectEvent as dt } from "react";
3
+ import { w as pt } from "./Spinner-B2IIKg9r.js";
4
+ import ht from "react-globe.gl";
5
+ import { i as mt } from "./index-Bwrro8-q.js";
6
+ import * as $ from "three";
7
+ import { _ as Qe } from "./Typography-BO0gQDIT.js";
8
+ import { g as ut } from "./_commonjsHelpers-ByX85dGu.js";
9
+ import { T as gt } from "./Tooltip-3EYDVa3w.js";
10
+ import { n as ft } from "./numberFormattingFunction-BUUV_luR.js";
11
+ import { X as vt, E as yt } from "./index-ApTBN0kp.js";
12
+ import { g as bt } from "./getCentroidCoordinates-s0OOUjLF.js";
13
+ import { D as xt } from "./DetailsModal-GqEbGHY2.js";
14
+ import { o as wt } from "./ordinal-CHaxGJ_l.js";
15
+ import { t as Ct } from "./threshold-DFfqcDMa.js";
16
+ import { GraphHeader as Dt } from "./GraphHeader.js";
17
+ import { GraphFooter as St } from "./GraphFooter.js";
18
+ import { f as jt } from "./fetchAndParseData-BAXhgTDM.js";
19
+ import { Colors as ae } from "./Colors.js";
20
+ import { g as Nt } from "./getUniqValue-DsqSii6M.js";
21
+ import { g as Rt } from "./getJenks-DTCcQSDi.js";
22
+ import { a as kt, G as Ot } from "./GraphContainer-B8ZqOzKI.js";
23
+ var Ye, et;
24
+ function Et() {
25
+ if (et) return Ye;
26
+ et = 1;
27
27
  var t = function(o) {
28
28
  return o.charAt(0) === "#" ? o.slice(1) : o;
29
29
  }, e = function(o) {
@@ -53,31 +53,31 @@ function zt() {
53
53
  var f = t(o), s = e(f), w = b(s);
54
54
  return D(w, n);
55
55
  };
56
- return et = g, et;
56
+ return Ye = g, Ye;
57
57
  }
58
- var Mt = zt();
59
- const at = /* @__PURE__ */ vt(Mt);
60
- function Tt(t) {
58
+ var Lt = Et();
59
+ const tt = /* @__PURE__ */ ut(Lt);
60
+ function Pt(t) {
61
61
  let e;
62
62
  switch (t.type) {
63
63
  case "ambient":
64
- e = new H.AmbientLight(t.color, t.intensity);
64
+ e = new $.AmbientLight(t.color, t.intensity);
65
65
  break;
66
66
  case "directional":
67
- e = new H.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));
68
68
  break;
69
69
  case "point":
70
- e = new H.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));
71
71
  break;
72
72
  case "spot":
73
- e = new H.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));
74
74
  break;
75
75
  default:
76
76
  throw new Error("Unknown light type");
77
77
  }
78
78
  return e;
79
79
  }
80
- function At(t) {
80
+ function zt(t) {
81
81
  const {
82
82
  width: e,
83
83
  autoRotate: d,
@@ -94,12 +94,12 @@ function At(t) {
94
94
  atmosphereColor: E,
95
95
  tooltip: L,
96
96
  styles: be,
97
- classNames: $,
98
- mapNoDataColor: ae,
97
+ classNames: W,
98
+ mapNoDataColor: ie,
99
99
  colorLegendTitle: C,
100
- showColorScale: ie,
101
- hoverStrokeColor: se,
102
- detailsOnClick: W,
100
+ showColorScale: se,
101
+ hoverStrokeColor: ne,
102
+ detailsOnClick: Z,
103
103
  onSeriesMouseClick: V,
104
104
  onSeriesMouseOver: xe,
105
105
  resetSelectionOnDoubleClick: we,
@@ -107,28 +107,28 @@ function At(t) {
107
107
  scale: z,
108
108
  globeOffset: m,
109
109
  polygonAltitude: u,
110
- centerLng: Z,
111
- centerLat: _,
112
- atmosphereAltitude: ne,
113
- globeCurvatureResolution: J,
110
+ centerLng: _,
111
+ centerLat: J,
112
+ atmosphereAltitude: le,
113
+ globeCurvatureResolution: X,
114
114
  fogSettings: M,
115
115
  lights: T,
116
- highlightedAltitude: le,
116
+ highlightedAltitude: ce,
117
117
  selectedId: v,
118
- collapseColorScaleByDefault: X,
118
+ collapseColorScaleByDefault: Y,
119
119
  dimmedOpacity: A,
120
- locale: Y
121
- } = t, [ce, Ce] = I(!1), p = tt(void 0), [R, U] = I(void 0), [De, de] = I(X === void 0 ? !(e < 680) : !X), [K, Q] = I({
120
+ numberDisplayOptions: U
121
+ } = t, [de, Ce] = I(!1), p = Ke(void 0), [R, q] = I(void 0), [De, pe] = I(Y === void 0 ? !(e < 680) : !Y), [K, Q] = I({
122
122
  x: 0,
123
123
  y: 0
124
- }), [N, pe] = I(void 0), he = D ? St().domain(g).range(l) : jt().domain(g).range(l);
124
+ }), [N, he] = I(void 0), ee = D ? wt().domain(g).range(l) : Ct().domain(g).range(l);
125
125
  G(() => {
126
126
  p.current && (p.current.controls().enableZoom = x);
127
127
  }, [x]), G(() => {
128
128
  p.current && (N || v ? p.current.controls().autoRotate = !1 : (p.current.controls().autoRotate = d !== 0, p.current.controls().autoRotateSpeed = d));
129
129
  }, [N, v, d]), G(() => {
130
130
  if (p.current && v) {
131
- const r = f.find((y) => y.properties[s] === v), [a, c] = Ct(r);
131
+ const r = f.find((y) => y.properties[s] === v), [a, c] = bt(r);
132
132
  p.current.pointOfView({
133
133
  lat: c,
134
134
  lng: a,
@@ -147,47 +147,47 @@ function At(t) {
147
147
  return r.addEventListener("mousemove", a), () => r.removeEventListener("mousemove", a);
148
148
  }, []), G(() => {
149
149
  p.current && p.current.pointOfView({
150
- lat: _,
151
- lng: Z,
150
+ lat: J,
151
+ lng: _,
152
152
  altitude: z
153
153
  }, 1e3);
154
- }, [z, Z, _]);
155
- const S = o || new H.MeshBasicMaterial({
154
+ }, [z, _, J]);
155
+ const S = o || new $.MeshBasicMaterial({
156
156
  color: "#FFF"
157
- }), B = ht(() => {
157
+ }), B = ct(() => {
158
158
  if (!p.current) return;
159
159
  const r = p.current.scene(), a = p.current.camera();
160
160
  let c = [];
161
161
  r.traverse((h) => {
162
- h instanceof H.Light && c.push(h);
163
- }), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)), T.map((h) => Tt(h)).forEach((h, j) => {
162
+ h instanceof $.Light && c.push(h);
163
+ }), c = [...c, ...a.children], c.forEach((h) => h.parent?.remove(h)), T.map((h) => Pt(h)).forEach((h, j) => {
164
164
  T[j].type !== "ambient" && T[j].position === "camera" ? (a.add(h), T[j].type !== "point" && a.add(h.target)) : r.add(h);
165
- }), M && (r.fog = new H.Fog(M.color, M.near, M.far));
165
+ }), M && (r.fog = new $.Fog(M.color, M.near, M.far));
166
166
  }, [T, M]), k = () => {
167
167
  Ce(!0), B();
168
168
  };
169
169
  return G(() => {
170
- ce && B();
171
- }, [ce, B]), /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
172
- /* @__PURE__ */ i.jsx(gt, { ref: p, height: n, width: e, globeOffset: m, lineHoverPrecision: 0, polygonsData: f, polygonAltitude: (r) => P?.includes(r?.properties?.[s]) || r?.properties?.[s] === v || r?.properties?.[s] === N?.id || r?.properties?.[s] === R?.id ? le : u, polygonCapColor: (r) => {
173
- const a = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, c = r?.properties?.[s], y = b.find((j) => j.id === c)?.x, h = y != null ? he(y) : ae;
174
- return at(h, `${a}`);
170
+ de && B();
171
+ }, [de, B]), /* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
172
+ /* @__PURE__ */ i.jsx(ht, { ref: p, height: n, width: e, globeOffset: m, lineHoverPrecision: 0, polygonsData: f, polygonAltitude: (r) => P?.includes(r?.properties?.[s]) || r?.properties?.[s] === v || r?.properties?.[s] === N?.id || r?.properties?.[s] === R?.id ? ce : u, polygonCapColor: (r) => {
173
+ const a = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, c = r?.properties?.[s], y = b.find((j) => j.id === c)?.x, h = y != null ? ee(y) : ie;
174
+ return tt(h, `${a}`);
175
175
  }, polygonSideColor: (r) => {
176
- const a = r?.properties?.[s], c = b.find((j) => j.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, h = c != null ? he(c) : ae;
177
- return at(h, `${y}`);
178
- }, polygonStrokeColor: (r) => r?.properties?.[s] === N?.id ? se : w, onGlobeClick: () => {
179
- U(void 0);
176
+ const a = r?.properties?.[s], c = b.find((j) => j.id === a)?.x, y = v ? r?.properties?.[s] === v ? 1 : A : P ? P.includes(r?.properties?.[s]) ? 1 : A : 1, h = c != null ? ee(c) : ie;
177
+ return tt(h, `${y}`);
178
+ }, polygonStrokeColor: (r) => r?.properties?.[s] === N?.id ? ne : w, onGlobeClick: () => {
179
+ q(void 0);
180
180
  }, onPolygonClick: (r) => {
181
181
  const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
182
- (V || W) && (ft(R, a) && we && a ? (U(void 0), V?.(void 0)) : (U(a), V?.(a)));
182
+ (V || Z) && (mt(R, a) && we && a ? (q(void 0), V?.(void 0)) : (q(a), V?.(a)));
183
183
  }, onPolygonHover: (r) => {
184
184
  const a = r?.properties?.[s] ? b.find((c) => c.id === r?.properties?.[s]) : void 0;
185
- pe(a), xe?.(a);
186
- }, atmosphereColor: E, atmosphereAltitude: ne, globeCurvatureResolution: J, globeMaterial: S, backgroundColor: "rgba(0, 0, 0, 0)", polygonsTransitionDuration: 100, onGlobeReady: () => {
185
+ he(a), xe?.(a);
186
+ }, atmosphereColor: E, atmosphereAltitude: le, globeCurvatureResolution: X, globeMaterial: S, backgroundColor: "rgba(0, 0, 0, 0)", polygonsTransitionDuration: 100, onGlobeReady: () => {
187
187
  if (p.current) {
188
188
  p.current.pointOfView({
189
- lat: _,
190
- lng: Z
189
+ lat: J,
190
+ lng: _
191
191
  });
192
192
  const r = p.current.scene();
193
193
  setTimeout(() => {
@@ -200,14 +200,14 @@ function At(t) {
200
200
  r.add(a), k();
201
201
  }
202
202
  } }),
203
- ie === !1 ? null : /* @__PURE__ */ i.jsx("div", { className: dt("absolute left-4 bottom-4 map-color-legend", $?.colorLegend), children: De ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
203
+ se === !1 ? null : /* @__PURE__ */ i.jsx("div", { className: nt("absolute left-4 bottom-4 map-color-legend", W?.colorLegend), children: De ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
204
204
  /* @__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
- de(!1);
206
- }, children: /* @__PURE__ */ i.jsx(xt, {}) }),
205
+ pe(!1);
206
+ }, children: /* @__PURE__ */ i.jsx(vt, {}) }),
207
207
  /* @__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
208
  width: D ? void 0 : "340px"
209
209
  }, children: [
210
- C && C !== "" ? /* @__PURE__ */ i.jsx(ot, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
210
+ C && C !== "" ? /* @__PURE__ */ i.jsx(Qe, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
211
211
  display: "-webkit-box",
212
212
  WebkitLineClamp: "1",
213
213
  WebkitBoxOrient: "vertical"
@@ -216,7 +216,7 @@ function At(t) {
216
216
  /* @__PURE__ */ i.jsx("div", { className: "w-2 h-2 rounded-full", style: {
217
217
  backgroundColor: l[a % l.length]
218
218
  } }),
219
- /* @__PURE__ */ i.jsx(ot, { size: "sm", marginBottom: "none", leading: "none", children: r })
219
+ /* @__PURE__ */ i.jsx(Qe, { size: "sm", marginBottom: "none", leading: "none", children: r })
220
220
  ] }, a)) }) : /* @__PURE__ */ i.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ i.jsxs("g", { children: [
221
221
  g.map((r, a) => /* @__PURE__ */ i.jsxs("g", { className: "cursor-pointer", children: [
222
222
  /* @__PURE__ */ i.jsx("rect", { x: a * 320 / l.length + 1, y: 1, width: 320 / l.length - 2, height: 8, style: {
@@ -225,7 +225,7 @@ function At(t) {
225
225
  } }),
226
226
  /* @__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
227
  textAnchor: "middle"
228
- }, children: bt(r, void 0, void 0, void 0, void 0, Y) })
228
+ }, children: ft(r, void 0, U?.precision ?? 2, void 0, void 0, U?.locale || "en", U?.padZeros || !1) })
229
229
  ] }, a)),
230
230
  /* @__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
231
  fill: l[g.length],
@@ -234,14 +234,14 @@ function At(t) {
234
234
  ] }) })
235
235
  ] })
236
236
  ] }) : /* @__PURE__ */ i.jsx("button", { type: "button", className: "p-1 border-0 rounded-[2px] text-primary-gray-700 bg-primary-gray-300 dark:bg-primary-gray-500 map-legend-button", onClick: () => {
237
- de(!0);
238
- }, children: /* @__PURE__ */ i.jsx(wt, {}) }) }),
239
- N && L ? /* @__PURE__ */ i.jsx(yt, { data: N, body: L, xPos: K.x, yPos: K.y, backgroundStyle: be?.tooltip, className: $?.tooltip }) : null,
240
- W && R !== void 0 ? /* @__PURE__ */ i.jsx(Dt, { body: W, data: R, setData: U, className: $?.modal }) : null
237
+ pe(!0);
238
+ }, children: /* @__PURE__ */ i.jsx(yt, {}) }) }),
239
+ N && L ? /* @__PURE__ */ i.jsx(gt, { data: N, body: L, xPos: K.x, yPos: K.y, backgroundStyle: be?.tooltip, className: W?.tooltip }) : null,
240
+ Z && R !== void 0 ? /* @__PURE__ */ i.jsx(xt, { body: Z, data: R, setData: q, className: W?.modal }) : null
241
241
  ] });
242
242
  }
243
- function ho(t) {
244
- const e = pt.c(98), {
243
+ function lo(t) {
244
+ const e = lt.c(96), {
245
245
  data: d,
246
246
  mapData: b,
247
247
  graphTitle: x,
@@ -256,12 +256,12 @@ function ho(t) {
256
256
  scaleType: E,
257
257
  padding: L,
258
258
  mapNoDataColor: be,
259
- backgroundColor: $,
260
- mapBorderColor: ae,
259
+ backgroundColor: W,
260
+ mapBorderColor: ie,
261
261
  relativeHeight: C,
262
- tooltip: ie,
263
- graphID: se,
264
- mapProperty: W,
262
+ tooltip: se,
263
+ graphID: ne,
264
+ mapProperty: Z,
265
265
  dataDownload: V,
266
266
  language: xe,
267
267
  minHeight: we,
@@ -269,41 +269,38 @@ function ho(t) {
269
269
  ariaLabel: z,
270
270
  styles: m,
271
271
  classNames: u,
272
- autoRotate: Z,
273
- enableZoom: _,
274
- globeMaterial: ne,
275
- centerPoint: J,
272
+ autoRotate: _,
273
+ enableZoom: J,
274
+ globeMaterial: le,
275
+ centerPoint: X,
276
276
  atmosphereColor: M,
277
277
  showColorScale: T,
278
- resetSelectionOnDoubleClick: le,
278
+ resetSelectionOnDoubleClick: ce,
279
279
  detailsOnClick: v,
280
- onSeriesMouseOver: X,
280
+ onSeriesMouseOver: Y,
281
281
  onSeriesMouseClick: A,
282
- highlightedIds: Y,
283
- highlightedAltitude: ce,
282
+ highlightedIds: U,
283
+ highlightedAltitude: de,
284
284
  dimmedOpacity: Ce,
285
285
  scale: p,
286
286
  globeOffset: R,
287
- polygonAltitude: U,
287
+ polygonAltitude: q,
288
288
  globeCurvatureResolution: De,
289
- atmosphereAltitude: de,
289
+ atmosphereAltitude: pe,
290
290
  fogSettings: K,
291
291
  lights: Q,
292
292
  selectedId: N,
293
- collapseColorScaleByDefault: pe,
294
- locale: he
295
- } = t, S = 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, k = E === void 0 ? "threshold" : E, r = be === void 0 ? re.light.graphNoData : be, a = $ === void 0 ? !1 : $, c = ae === void 0 ? re.light.grays["gray-500"] : ae, y = W === void 0 ? "ISO3" : W, h = V === void 0 ? !1 : V, j = xe === void 0 ? "en" : xe, O = we === void 0 ? 0 : we, F = P === void 0 ? "light" : P, me = Z === void 0 ? !0 : Z, Be = _ === void 0 ? !0 : _;
293
+ collapseColorScaleByDefault: he,
294
+ numberDisplayOptions: ee
295
+ } = t, S = 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, k = E === void 0 ? "threshold" : E, r = be === void 0 ? ae.light.graphNoData : be, a = W === void 0 ? !1 : W, c = ie === void 0 ? ae.light.grays["gray-500"] : ie, y = Z === void 0 ? "ISO3" : Z, h = V === void 0 ? !1 : V, j = xe === void 0 ? "en" : xe, O = we === void 0 ? 0 : we, F = P === void 0 ? "light" : P, me = _ === void 0 ? !0 : _, Ae = J === void 0 ? !0 : J;
296
296
  let Se;
297
- e[0] !== J ? (Se = J === void 0 ? [0, 0] : J, e[0] = J, e[1] = Se) : Se = e[1];
298
- const je = Se, Fe = M === void 0 ? "#999" : M, Ge = T === void 0 ? !0 : T, Ie = le === void 0 ? !0 : le;
297
+ e[0] !== X ? (Se = X === void 0 ? [0, 0] : X, e[0] = X, e[1] = Se) : Se = e[1];
298
+ const je = Se, Be = M === void 0 ? "#999" : M, Fe = T === void 0 ? !0 : T, Ge = ce === void 0 ? !0 : ce, Ie = de === void 0 ? 0.1 : de, Ue = Ce === void 0 ? 0.3 : Ce, qe = p === void 0 ? 1 : p;
299
299
  let Ne;
300
- e[2] !== Y ? (Ne = Y === void 0 ? [] : Y, e[2] = Y, e[3] = Ne) : Ne = e[3];
301
- const Ue = Ne, qe = ce === void 0 ? 0.1 : ce, He = Ce === void 0 ? 0.3 : Ce, $e = p === void 0 ? 1 : p;
300
+ e[2] !== R ? (Ne = R === void 0 ? [0, 0] : R, e[2] = R, e[3] = Ne) : Ne = e[3];
301
+ const He = Ne, $e = q === void 0 ? 0.01 : q, We = De === void 0 ? 4 : De, Ze = pe === void 0 ? 0.15 : pe;
302
302
  let Re;
303
- e[4] !== R ? (Re = R === void 0 ? [0, 0] : R, e[4] = R, e[5] = Re) : Re = e[5];
304
- const We = Re, Ve = U === void 0 ? 0.01 : U, Ze = De === void 0 ? 4 : De, _e = de === void 0 ? 0.15 : de;
305
- let ke;
306
- e[6] !== Q ? (ke = Q === void 0 ? [{
303
+ e[4] !== Q ? (Re = Q === void 0 ? [{
307
304
  type: "ambient",
308
305
  color: 4210752,
309
306
  intensity: 0.4
@@ -316,81 +313,81 @@ function ho(t) {
316
313
  y: 10,
317
314
  z: 5
318
315
  }
319
- }] : Q, e[6] = Q, e[7] = ke) : ke = e[7];
320
- const Je = ke, Xe = he === void 0 ? "en" : he, [Oe, it] = I(void 0), [q, st] = I(0), [ue, nt] = I(0), Ye = tt(null), lt = tt(null);
321
- let Ee, Le;
322
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ee = () => {
316
+ }] : Q, e[4] = Q, e[5] = Re) : Re = e[5];
317
+ const Ve = Re, [ke, ot] = I(void 0), [H, rt] = I(0), [ue, at] = I(0), _e = Ke(null), it = Ke(null);
318
+ let Oe, Ee;
319
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = () => {
323
320
  const ve = new ResizeObserver((ye) => {
324
- st(ye[0].target.clientWidth || 620), nt(ye[0].target.clientHeight || 480);
321
+ rt(ye[0].target.clientWidth || 620), at(ye[0].target.clientHeight || 480);
325
322
  });
326
- return Ye.current && ve.observe(Ye.current), () => ve.disconnect();
327
- }, Le = [], e[8] = Ee, e[9] = Le) : (Ee = e[8], Le = e[9]), G(Ee, Le);
323
+ return _e.current && ve.observe(_e.current), () => ve.disconnect();
324
+ }, Ee = [], e[6] = Oe, e[7] = Ee) : (Oe = e[6], Ee = e[7]), G(Oe, Ee);
325
+ let Le;
326
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = (ve) => {
327
+ ot(ve);
328
+ }, e[8] = Le) : Le = e[8];
329
+ const ge = dt(Le);
328
330
  let Pe;
329
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = (ve) => {
330
- it(ve);
331
- }, e[10] = Pe) : Pe = e[10];
332
- const ge = mt(Pe);
333
- let ze;
334
- e[11] !== S || e[12] !== ge ? (ze = () => {
335
- typeof S == "string" ? kt(S).then((ye) => {
331
+ e[9] !== S || e[10] !== ge ? (Pe = () => {
332
+ typeof S == "string" ? jt(S).then((ye) => {
336
333
  if (S === "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-simplified.json") {
337
- const ct = ye.features.map(Ht);
338
- ge(ct);
334
+ const st = ye.features.map(It);
335
+ ge(st);
339
336
  } else
340
337
  ge(ye.features);
341
338
  }) : ge(S.features);
342
- }, e[11] = S, e[12] = ge, e[13] = ze) : ze = e[13];
339
+ }, e[9] = S, e[10] = ge, e[11] = Pe) : Pe = e[11];
340
+ let ze;
341
+ e[12] !== S ? (ze = [S], e[12] = S, e[13] = ze) : ze = e[13], G(Pe, ze);
343
342
  let Me;
344
- e[14] !== S ? (Me = [S], e[14] = S, e[15] = Me) : Me = e[15], G(ze, Me);
345
- let Te;
346
- e[16] !== s || e[17] !== D?.length || e[18] !== d || e[19] !== k ? (Te = s || (k === "categorical" ? Ot(d, "x") : Et(d.map(qt), D?.length || 4)), e[16] = s, e[17] = D?.length, e[18] = d, e[19] = k, e[20] = Te) : Te = e[20];
347
- const fe = Te, Ke = u?.graphContainer, Qe = m?.graphContainer;
348
- let ee;
349
- 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 ? (ee = x || l || h ? /* @__PURE__ */ i.jsx(Nt, { styles: {
343
+ e[14] !== s || e[15] !== D?.length || e[16] !== d || e[17] !== k ? (Me = s || (k === "categorical" ? Nt(d, "x") : Rt(d.map(Gt), D?.length || 4)), e[14] = s, e[15] = D?.length, e[16] = d, e[17] = k, e[18] = Me) : Me = e[18];
344
+ const fe = Me, Je = u?.graphContainer, Xe = m?.graphContainer;
345
+ let te;
346
+ e[19] !== u?.description || e[20] !== u?.title || e[21] !== d || e[22] !== h || e[23] !== l || e[24] !== x || e[25] !== m?.description || e[26] !== m?.title || e[27] !== n ? (te = x || l || h ? /* @__PURE__ */ i.jsx(Dt, { styles: {
350
347
  title: m?.title,
351
348
  description: m?.description
352
349
  }, classNames: {
353
350
  title: u?.title,
354
351
  description: u?.description
355
- }, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(Ut).filter(It).length > 0 ? d.map(Gt).filter(Ft) : d.filter(Bt) : 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] = ee) : ee = e[30];
356
- let te;
357
- e[31] !== _e || e[32] !== Fe || e[33] !== me || e[34] !== je || e[35] !== u || e[36] !== pe || e[37] !== w || e[38] !== D || e[39] !== d || e[40] !== v || e[41] !== He || e[42] !== fe || e[43] !== Be || e[44] !== K || e[45] !== Ze || e[46] !== ne || e[47] !== We || e[48] !== o || e[49] !== qe || e[50] !== Ue || e[51] !== Je || e[52] !== Xe || e[53] !== c || e[54] !== r || e[55] !== y || e[56] !== Oe || e[57] !== O || e[58] !== A || e[59] !== X || e[60] !== Ve || e[61] !== C || e[62] !== Ie || e[63] !== $e || e[64] !== k || e[65] !== N || e[66] !== Ge || e[67] !== m || e[68] !== ue || e[69] !== q || e[70] !== F || e[71] !== ie || e[72] !== n ? (te = /* @__PURE__ */ i.jsx(Lt, { ref: Ye, children: q && ue && Oe ? /* @__PURE__ */ i.jsx(At, { data: d, globeOffset: We, polygonData: Oe, colorDomain: fe, width: q, height: ue, colors: D || (k === "categorical" ? re[F].sequentialColors[`neutralColorsx0${fe.length}`] : re[F].sequentialColors[`neutralColorsx0${fe.length + 1}`]), mapNoDataColor: r, categorical: k === "categorical", mapBorderColor: c, tooltip: ie, mapProperty: y, styles: m, classNames: u, autoRotate: me === !0 ? 1.5 : me === !1 ? 0 : me, enableZoom: Be, globeMaterial: ne, atmosphereColor: Fe, colorLegendTitle: w, showColorScale: Ge, hoverStrokeColor: F === "light" ? re.light.grays["gray-700"] : re.light.grays["gray-300"], highlightedIds: Ue, resetSelectionOnDoubleClick: Ie, detailsOnClick: v, onSeriesMouseOver: X, onSeriesMouseClick: A, scale: $e, polygonAltitude: Ve, centerLat: je[0], centerLng: je[1], atmosphereAltitude: _e, globeCurvatureResolution: Ze, fogSettings: K, lights: Je, highlightedAltitude: qe, selectedId: N, collapseColorScaleByDefault: pe, dimmedOpacity: He, locale: Xe }) : /* @__PURE__ */ i.jsx("div", { style: {
358
- height: `${Math.max(O, o || (C ? O ? (n || q) * C > O ? (n || q) * C : O : (n || q) * C : ue))}px`
359
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(ut, { "aria-label": "Loading graph" }) }) }), e[31] = _e, e[32] = Fe, e[33] = me, e[34] = je, e[35] = u, e[36] = pe, e[37] = w, e[38] = D, e[39] = d, e[40] = v, e[41] = He, e[42] = fe, e[43] = Be, e[44] = K, e[45] = Ze, e[46] = ne, e[47] = We, e[48] = o, e[49] = qe, e[50] = Ue, e[51] = Je, e[52] = Xe, e[53] = c, e[54] = r, e[55] = y, e[56] = Oe, e[57] = O, e[58] = A, e[59] = X, e[60] = Ve, e[61] = C, e[62] = Ie, e[63] = $e, e[64] = k, e[65] = N, e[66] = Ge, e[67] = m, e[68] = ue, e[69] = q, e[70] = F, e[71] = ie, e[72] = n, e[73] = te) : te = e[73];
352
+ }, graphTitle: x, graphDescription: l, width: n, graphDownload: void 0, dataDownload: h ? d.map(Ft).filter(Bt).length > 0 ? d.map(At).filter(Tt) : d.filter(Mt) : null }) : null, e[19] = u?.description, e[20] = u?.title, e[21] = d, e[22] = h, e[23] = l, e[24] = x, e[25] = m?.description, e[26] = m?.title, e[27] = n, e[28] = te) : te = e[28];
360
353
  let oe;
361
- e[74] !== u?.footnote || e[75] !== u?.source || e[76] !== B || e[77] !== g || e[78] !== m?.footnote || e[79] !== m?.source || e[80] !== n ? (oe = g || B ? /* @__PURE__ */ i.jsx(Rt, { styles: {
354
+ e[29] !== Ze || e[30] !== Be || e[31] !== me || e[32] !== je || e[33] !== u || e[34] !== he || e[35] !== w || e[36] !== D || e[37] !== d || e[38] !== v || e[39] !== Ue || e[40] !== fe || e[41] !== Ae || e[42] !== K || e[43] !== We || e[44] !== le || e[45] !== He || e[46] !== o || e[47] !== Ie || e[48] !== U || e[49] !== Ve || e[50] !== c || e[51] !== r || e[52] !== y || e[53] !== ke || e[54] !== O || e[55] !== ee || e[56] !== A || e[57] !== Y || e[58] !== $e || e[59] !== C || e[60] !== Ge || e[61] !== qe || e[62] !== k || e[63] !== N || e[64] !== Fe || e[65] !== m || e[66] !== ue || e[67] !== H || e[68] !== F || e[69] !== se || e[70] !== n ? (oe = /* @__PURE__ */ i.jsx(kt, { ref: _e, children: H && ue && ke ? /* @__PURE__ */ i.jsx(zt, { data: d, globeOffset: He, polygonData: ke, colorDomain: fe, width: H, height: ue, colors: D || (k === "categorical" ? ae[F].sequentialColors[`neutralColorsx0${fe.length}`] : ae[F].sequentialColors[`neutralColorsx0${fe.length + 1}`]), mapNoDataColor: r, categorical: k === "categorical", mapBorderColor: c, tooltip: se, mapProperty: y, styles: m, classNames: u, autoRotate: me === !0 ? 1.5 : me === !1 ? 0 : me, enableZoom: Ae, globeMaterial: le, atmosphereColor: Be, colorLegendTitle: w, showColorScale: Fe, hoverStrokeColor: F === "light" ? ae.light.grays["gray-700"] : ae.light.grays["gray-300"], highlightedIds: U, resetSelectionOnDoubleClick: Ge, detailsOnClick: v, onSeriesMouseOver: Y, onSeriesMouseClick: A, scale: qe, polygonAltitude: $e, centerLat: je[0], centerLng: je[1], atmosphereAltitude: Ze, globeCurvatureResolution: We, fogSettings: K, lights: Ve, highlightedAltitude: Ie, selectedId: N, collapseColorScaleByDefault: he, dimmedOpacity: Ue, numberDisplayOptions: ee }) : /* @__PURE__ */ i.jsx("div", { style: {
355
+ height: `${Math.max(O, o || (C ? O ? (n || H) * C > O ? (n || H) * C : O : (n || H) * C : ue))}px`
356
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ i.jsx(pt, { "aria-label": "Loading graph" }) }) }), e[29] = Ze, e[30] = Be, e[31] = me, e[32] = je, e[33] = u, e[34] = he, e[35] = w, e[36] = D, e[37] = d, e[38] = v, e[39] = Ue, e[40] = fe, e[41] = Ae, e[42] = K, e[43] = We, e[44] = le, e[45] = He, e[46] = o, e[47] = Ie, e[48] = U, e[49] = Ve, e[50] = c, e[51] = r, e[52] = y, e[53] = ke, e[54] = O, e[55] = ee, e[56] = A, e[57] = Y, e[58] = $e, e[59] = C, e[60] = Ge, e[61] = qe, e[62] = k, e[63] = N, e[64] = Fe, e[65] = m, e[66] = ue, e[67] = H, e[68] = F, e[69] = se, e[70] = n, e[71] = oe) : oe = e[71];
357
+ let re;
358
+ e[72] !== u?.footnote || e[73] !== u?.source || e[74] !== B || e[75] !== g || e[76] !== m?.footnote || e[77] !== m?.source || e[78] !== n ? (re = g || B ? /* @__PURE__ */ i.jsx(St, { styles: {
362
359
  footnote: m?.footnote,
363
360
  source: m?.source
364
361
  }, classNames: {
365
362
  footnote: u?.footnote,
366
363
  source: u?.source
367
- }, sources: g, footNote: B, width: n }) : null, e[74] = u?.footnote, e[75] = u?.source, e[76] = B, e[77] = g, e[78] = m?.footnote, e[79] = m?.source, e[80] = n, e[81] = oe) : oe = e[81];
368
- let Ae;
369
- return e[82] !== z || e[83] !== a || e[84] !== se || e[85] !== o || e[86] !== j || e[87] !== O || e[88] !== L || e[89] !== C || e[90] !== Ke || e[91] !== Qe || e[92] !== ee || e[93] !== te || e[94] !== oe || e[95] !== F || e[96] !== n ? (Ae = /* @__PURE__ */ i.jsxs(Pt, { className: Ke, style: Qe, id: se, ref: lt, "aria-label": z, backgroundColor: a, theme: F, language: j, minHeight: O, width: n, height: o, relativeHeight: C, padding: L, children: [
370
- ee,
364
+ }, sources: g, footNote: B, width: n }) : null, e[72] = u?.footnote, e[73] = u?.source, e[74] = B, e[75] = g, e[76] = m?.footnote, e[77] = m?.source, e[78] = n, e[79] = re) : re = e[79];
365
+ let Te;
366
+ return e[80] !== z || e[81] !== a || e[82] !== ne || e[83] !== o || e[84] !== j || e[85] !== O || e[86] !== L || e[87] !== C || e[88] !== Je || e[89] !== Xe || e[90] !== te || e[91] !== oe || e[92] !== re || e[93] !== F || e[94] !== n ? (Te = /* @__PURE__ */ i.jsxs(Ot, { className: Je, style: Xe, id: ne, ref: it, "aria-label": z, backgroundColor: a, theme: F, language: j, minHeight: O, width: n, height: o, relativeHeight: C, padding: L, children: [
371
367
  te,
372
- oe
373
- ] }), e[82] = z, e[83] = a, e[84] = se, e[85] = o, e[86] = j, e[87] = O, e[88] = L, e[89] = C, e[90] = Ke, e[91] = Qe, e[92] = ee, e[93] = te, e[94] = oe, e[95] = F, e[96] = n, e[97] = Ae) : Ae = e[97], Ae;
368
+ oe,
369
+ re
370
+ ] }), e[80] = z, e[81] = a, e[82] = ne, e[83] = o, e[84] = j, e[85] = O, e[86] = L, e[87] = C, e[88] = Je, e[89] = Xe, e[90] = te, e[91] = oe, e[92] = re, e[93] = F, e[94] = n, e[95] = Te) : Te = e[95], Te;
374
371
  }
375
- function Bt(t) {
372
+ function Mt(t) {
376
373
  return t !== void 0;
377
374
  }
378
- function Ft(t) {
375
+ function Tt(t) {
379
376
  return t !== void 0;
380
377
  }
381
- function Gt(t) {
378
+ function At(t) {
382
379
  return t.data;
383
380
  }
384
- function It(t) {
381
+ function Bt(t) {
385
382
  return t !== void 0;
386
383
  }
387
- function Ut(t) {
384
+ function Ft(t) {
388
385
  return t.data;
389
386
  }
390
- function qt(t) {
387
+ function Gt(t) {
391
388
  return t.x;
392
389
  }
393
- function Ht(t) {
390
+ function It(t) {
394
391
  if (t.geometry.type === "Polygon") {
395
392
  const b = [...t.geometry.coordinates[0]].reverse(), x = {
396
393
  ...t.geometry,
@@ -416,6 +413,6 @@ function Ht(t) {
416
413
  };
417
414
  }
418
415
  export {
419
- ho as ThreeDGlobe
416
+ lo as ThreeDGlobe
420
417
  };
421
418
  //# sourceMappingURL=ThreeDGlobe.js.map