@undp/data-viz 1.5.8 → 2.0.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 (672) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +1 -0
  4. package/dist/AreaChart.js +420 -520
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/Axis-CRyfcLjc.js +32 -0
  7. package/dist/Axis-CRyfcLjc.js.map +1 -0
  8. package/dist/Axis-DxRV2yMi.cjs +2 -0
  9. package/dist/Axis-DxRV2yMi.cjs.map +1 -0
  10. package/dist/AxisTitle-jeI7am8o.js +29 -0
  11. package/dist/AxisTitle-jeI7am8o.js.map +1 -0
  12. package/dist/AxisTitle-sS5bLLR7.cjs +2 -0
  13. package/dist/AxisTitle-sS5bLLR7.cjs.map +1 -0
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +1 -0
  17. package/dist/BarGraph.js +2188 -4045
  18. package/dist/BarGraph.js.map +1 -1
  19. package/dist/BasicStatCard.cjs +1 -1
  20. package/dist/BasicStatCard.cjs.map +1 -1
  21. package/dist/BasicStatCard.d.ts +1 -0
  22. package/dist/BasicStatCard.js +120 -186
  23. package/dist/BasicStatCard.js.map +1 -1
  24. package/dist/BeeSwarmChart.cjs +1 -1
  25. package/dist/BeeSwarmChart.cjs.map +1 -1
  26. package/dist/BeeSwarmChart.d.ts +5 -0
  27. package/dist/BeeSwarmChart.js +501 -1019
  28. package/dist/BeeSwarmChart.js.map +1 -1
  29. package/dist/BiVariateChoroplethMap.cjs +1 -1
  30. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  31. package/dist/BiVariateChoroplethMap.d.ts +3 -0
  32. package/dist/BiVariateChoroplethMap.js +458 -706
  33. package/dist/BiVariateChoroplethMap.js.map +1 -1
  34. package/dist/BulletChart.cjs +1 -1
  35. package/dist/BulletChart.cjs.map +1 -1
  36. package/dist/BulletChart.d.ts +1 -0
  37. package/dist/BulletChart.js +863 -1414
  38. package/dist/BulletChart.js.map +1 -1
  39. package/dist/ButterflyChart.cjs +1 -1
  40. package/dist/ButterflyChart.cjs.map +1 -1
  41. package/dist/ButterflyChart.d.ts +1 -0
  42. package/dist/ButterflyChart.js +474 -684
  43. package/dist/ButterflyChart.js.map +1 -1
  44. package/dist/ChoroplethMap.cjs +1 -1
  45. package/dist/ChoroplethMap.cjs.map +1 -1
  46. package/dist/ChoroplethMap.d.ts +3 -0
  47. package/dist/ChoroplethMap.js +469 -731
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +1 -0
  51. package/dist/CirclePackingGraph.js +5 -4
  52. package/dist/CirclePackingGraph.js.map +1 -1
  53. package/dist/ColorLegend.cjs +1 -1
  54. package/dist/ColorLegend.cjs.map +1 -1
  55. package/dist/ColorLegend.js +57 -44
  56. package/dist/ColorLegend.js.map +1 -1
  57. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  58. package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
  59. package/dist/ColorLegendWithMouseOver.js +60 -65
  60. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  61. package/dist/Colors.cjs.map +1 -1
  62. package/dist/Colors.js +44 -430
  63. package/dist/Colors.js.map +1 -1
  64. package/dist/CopyTextButton.cjs +4 -4
  65. package/dist/CopyTextButton.cjs.map +1 -1
  66. package/dist/CopyTextButton.js +537 -455
  67. package/dist/CopyTextButton.js.map +1 -1
  68. package/dist/CsvDownloadButton.cjs +7 -7
  69. package/dist/CsvDownloadButton.cjs.map +1 -1
  70. package/dist/CsvDownloadButton.js +442 -447
  71. package/dist/CsvDownloadButton.js.map +1 -1
  72. package/dist/DataCards.cjs +5 -5
  73. package/dist/DataCards.cjs.map +1 -1
  74. package/dist/DataCards.d.ts +1 -0
  75. package/dist/DataCards.js +488 -581
  76. package/dist/DataCards.js.map +1 -1
  77. package/dist/DataTable.cjs +1 -1
  78. package/dist/DataTable.cjs.map +1 -1
  79. package/dist/DataTable.d.ts +1 -0
  80. package/dist/DataTable.js +183 -326
  81. package/dist/DataTable.js.map +1 -1
  82. package/dist/DifferenceLineChart.cjs +1 -1
  83. package/dist/DifferenceLineChart.cjs.map +1 -1
  84. package/dist/DifferenceLineChart.d.ts +1 -0
  85. package/dist/DifferenceLineChart.js +729 -794
  86. package/dist/DifferenceLineChart.js.map +1 -1
  87. package/dist/DonutChart.cjs +1 -1
  88. package/dist/DonutChart.cjs.map +1 -1
  89. package/dist/DonutChart.d.ts +1 -4
  90. package/dist/DonutChart.js +260 -444
  91. package/dist/DonutChart.js.map +1 -1
  92. package/dist/DotDensityMap.cjs +1 -1
  93. package/dist/DotDensityMap.cjs.map +1 -1
  94. package/dist/DotDensityMap.d.ts +3 -0
  95. package/dist/DotDensityMap.js +388 -582
  96. package/dist/DotDensityMap.js.map +1 -1
  97. package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-BbdPQa2k.js} +1401 -1374
  98. package/dist/DropdownSelect-BbdPQa2k.js.map +1 -0
  99. package/dist/DropdownSelect-Doz3mCrM.cjs +29 -0
  100. package/dist/DropdownSelect-Doz3mCrM.cjs.map +1 -0
  101. package/dist/DualAxisLineChart.cjs +1 -1
  102. package/dist/DualAxisLineChart.cjs.map +1 -1
  103. package/dist/DualAxisLineChart.d.ts +1 -0
  104. package/dist/DualAxisLineChart.js +617 -712
  105. package/dist/DualAxisLineChart.js.map +1 -1
  106. package/dist/DumbbellChart.cjs +1 -1
  107. package/dist/DumbbellChart.cjs.map +1 -1
  108. package/dist/DumbbellChart.d.ts +1 -0
  109. package/dist/DumbbellChart.js +789 -1499
  110. package/dist/DumbbellChart.js.map +1 -1
  111. package/dist/EmptyState-BZo1BbAn.js +15 -0
  112. package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-BZo1BbAn.js.map} +1 -1
  113. package/dist/EmptyState-sAEZ_5rU.cjs +2 -0
  114. package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-sAEZ_5rU.cjs.map} +1 -1
  115. package/dist/ExcelDownloadButton.cjs +1 -1
  116. package/dist/ExcelDownloadButton.cjs.map +1 -1
  117. package/dist/ExcelDownloadButton.js +20 -24
  118. package/dist/ExcelDownloadButton.js.map +1 -1
  119. package/dist/FootNote.cjs +1 -1
  120. package/dist/FootNote.cjs.map +1 -1
  121. package/dist/FootNote.js +26 -17
  122. package/dist/FootNote.js.map +1 -1
  123. package/dist/GeoHubCompareMaps.cjs +1 -1
  124. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  125. package/dist/GeoHubCompareMaps.d.ts +1 -0
  126. package/dist/GeoHubCompareMaps.js +264 -354
  127. package/dist/GeoHubCompareMaps.js.map +1 -1
  128. package/dist/GeoHubMap.cjs +1 -1
  129. package/dist/GeoHubMap.cjs.map +1 -1
  130. package/dist/GeoHubMap.d.ts +1 -0
  131. package/dist/GeoHubMap.js +214 -409
  132. package/dist/GeoHubMap.js.map +1 -1
  133. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  134. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  135. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -0
  136. package/dist/GeoHubMapWithLayerSelection.js +192 -293
  137. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  138. package/dist/GraphContainer-CRqzdKu2.js +78 -0
  139. package/dist/GraphContainer-CRqzdKu2.js.map +1 -0
  140. package/dist/GraphContainer-d8A46BK2.cjs +2 -0
  141. package/dist/GraphContainer-d8A46BK2.cjs.map +1 -0
  142. package/dist/GraphDescription.cjs +1 -1
  143. package/dist/GraphDescription.cjs.map +1 -1
  144. package/dist/GraphDescription.js +23 -17
  145. package/dist/GraphDescription.js.map +1 -1
  146. package/dist/GraphEl-BkyLYXG5.cjs +2 -0
  147. package/dist/GraphEl-BkyLYXG5.cjs.map +1 -0
  148. package/dist/{GraphEl-CqWzvOyr.js → GraphEl-DzRon4cb.js} +184 -202
  149. package/dist/GraphEl-DzRon4cb.js.map +1 -0
  150. package/dist/GraphFooter.cjs +1 -1
  151. package/dist/GraphFooter.cjs.map +1 -1
  152. package/dist/GraphFooter.js +28 -18
  153. package/dist/GraphFooter.js.map +1 -1
  154. package/dist/GraphHeader.cjs +1 -1
  155. package/dist/GraphHeader.cjs.map +1 -1
  156. package/dist/GraphHeader.d.ts +2 -1
  157. package/dist/GraphHeader.js +45 -59
  158. package/dist/GraphHeader.js.map +1 -1
  159. package/dist/GraphTitle.cjs +1 -1
  160. package/dist/GraphTitle.cjs.map +1 -1
  161. package/dist/GraphTitle.js +29 -24
  162. package/dist/GraphTitle.js.map +1 -1
  163. package/dist/GriddedGraphs.cjs +1 -1
  164. package/dist/GriddedGraphs.cjs.map +1 -1
  165. package/dist/GriddedGraphs.d.ts +2 -0
  166. package/dist/GriddedGraphs.js +216 -450
  167. package/dist/GriddedGraphs.js.map +1 -1
  168. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  169. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  170. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  171. package/dist/GriddedGraphsFromConfig.js +22 -36
  172. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  173. package/dist/HeatMap.cjs +1 -1
  174. package/dist/HeatMap.cjs.map +1 -1
  175. package/dist/HeatMap.d.ts +1 -0
  176. package/dist/HeatMap.js +278 -446
  177. package/dist/HeatMap.js.map +1 -1
  178. package/dist/Histogram.cjs +1 -1
  179. package/dist/Histogram.cjs.map +1 -1
  180. package/dist/Histogram.d.ts +1 -0
  181. package/dist/Histogram.js +154 -264
  182. package/dist/Histogram.js.map +1 -1
  183. package/dist/ImageDownloadButton.cjs +1 -1
  184. package/dist/ImageDownloadButton.cjs.map +1 -1
  185. package/dist/ImageDownloadButton.d.ts +2 -1
  186. package/dist/ImageDownloadButton.js +21 -25
  187. package/dist/ImageDownloadButton.js.map +1 -1
  188. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  189. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  190. package/dist/LineChartWithConfidenceInterval.d.ts +1 -0
  191. package/dist/LineChartWithConfidenceInterval.js +674 -825
  192. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  193. package/dist/LinearColorLegend.cjs +1 -1
  194. package/dist/LinearColorLegend.cjs.map +1 -1
  195. package/dist/LinearColorLegend.js +49 -30
  196. package/dist/LinearColorLegend.js.map +1 -1
  197. package/dist/Modal-DGcuAHyK.js +1047 -0
  198. package/dist/Modal-DGcuAHyK.js.map +1 -0
  199. package/dist/Modal-JW_IExO3.cjs +46 -0
  200. package/dist/Modal-JW_IExO3.cjs.map +1 -0
  201. package/dist/MultiGraphDashboard.cjs +1 -1
  202. package/dist/MultiGraphDashboard.cjs.map +1 -1
  203. package/dist/MultiGraphDashboard.d.ts +2 -0
  204. package/dist/MultiGraphDashboard.js +122 -290
  205. package/dist/MultiGraphDashboard.js.map +1 -1
  206. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  207. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  208. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  209. package/dist/MultiGraphDashboardFromConfig.js +22 -31
  210. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  211. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  212. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  213. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -0
  214. package/dist/MultiGraphDashboardWideToLongFormat.js +137 -223
  215. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  216. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  217. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  218. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -0
  219. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +25 -27
  220. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  221. package/dist/MultiLineAltChart.cjs +1 -1
  222. package/dist/MultiLineAltChart.cjs.map +1 -1
  223. package/dist/MultiLineAltChart.d.ts +1 -0
  224. package/dist/MultiLineAltChart.js +581 -659
  225. package/dist/MultiLineAltChart.js.map +1 -1
  226. package/dist/MultiLineChart.cjs +1 -1
  227. package/dist/MultiLineChart.cjs.map +1 -1
  228. package/dist/MultiLineChart.d.ts +1 -0
  229. package/dist/MultiLineChart.js +617 -725
  230. package/dist/MultiLineChart.js.map +1 -1
  231. package/dist/ParetoChart.cjs +1 -1
  232. package/dist/ParetoChart.cjs.map +1 -1
  233. package/dist/ParetoChart.d.ts +1 -0
  234. package/dist/ParetoChart.js +531 -635
  235. package/dist/ParetoChart.js.map +1 -1
  236. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  237. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  238. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  239. package/dist/PerformanceIntensiveMultiGraphDashboard.js +147 -338
  240. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  241. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  242. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  243. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  244. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +22 -31
  245. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
  246. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  247. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  248. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  249. package/dist/PerformanceIntensiveScrollStory.js +93 -114
  250. package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
  251. package/dist/RadarChart.cjs +1 -1
  252. package/dist/RadarChart.cjs.map +1 -1
  253. package/dist/RadarChart.d.ts +1 -0
  254. package/dist/RadarChart.js +426 -575
  255. package/dist/RadarChart.js.map +1 -1
  256. package/dist/ReferenceLine-2XCwHXQ4.js +162 -0
  257. package/dist/ReferenceLine-2XCwHXQ4.js.map +1 -0
  258. package/dist/ReferenceLine-BH0qdf4R.cjs +2 -0
  259. package/dist/ReferenceLine-BH0qdf4R.cjs.map +1 -0
  260. package/dist/RegressionLine-BOTTNSrr.cjs +2 -0
  261. package/dist/RegressionLine-BOTTNSrr.cjs.map +1 -0
  262. package/dist/RegressionLine-DAcY2DjT.js +87 -0
  263. package/dist/RegressionLine-DAcY2DjT.js.map +1 -0
  264. package/dist/SVGDownloadButton.cjs +1 -1
  265. package/dist/SVGDownloadButton.cjs.map +1 -1
  266. package/dist/SVGDownloadButton.js +21 -25
  267. package/dist/SVGDownloadButton.js.map +1 -1
  268. package/dist/SankeyChart.cjs +1 -1
  269. package/dist/SankeyChart.cjs.map +1 -1
  270. package/dist/SankeyChart.d.ts +1 -0
  271. package/dist/SankeyChart.js +665 -854
  272. package/dist/SankeyChart.js.map +1 -1
  273. package/dist/ScatterPlot.cjs +1 -1
  274. package/dist/ScatterPlot.cjs.map +1 -1
  275. package/dist/ScatterPlot.d.ts +1 -0
  276. package/dist/ScatterPlot.js +675 -815
  277. package/dist/ScatterPlot.js.map +1 -1
  278. package/dist/ScrollStory.cjs +1 -1
  279. package/dist/ScrollStory.cjs.map +1 -1
  280. package/dist/ScrollStory.d.ts +2 -0
  281. package/dist/ScrollStory.js +85 -97
  282. package/dist/ScrollStory.js.map +1 -1
  283. package/dist/SimpleLineChart.cjs +1 -1
  284. package/dist/SimpleLineChart.cjs.map +1 -1
  285. package/dist/SimpleLineChart.d.ts +1 -0
  286. package/dist/SimpleLineChart.js +504 -613
  287. package/dist/SimpleLineChart.js.map +1 -1
  288. package/dist/SingleGraphDashboard.cjs +1 -1
  289. package/dist/SingleGraphDashboard.cjs.map +1 -1
  290. package/dist/SingleGraphDashboard.d.ts +3 -1
  291. package/dist/SingleGraphDashboard.js +279 -507
  292. package/dist/SingleGraphDashboard.js.map +1 -1
  293. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  294. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  295. package/dist/SingleGraphDashboardFromConfig.d.ts +3 -1
  296. package/dist/SingleGraphDashboardFromConfig.js +25 -31
  297. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  298. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  299. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  300. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  301. package/dist/SingleGraphDashboardGeoHubMaps.js +146 -168
  302. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  303. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  304. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  305. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  306. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -21
  307. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
  308. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  309. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  310. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  311. package/dist/SingleGraphDashboardThreeDGraphs.js +356 -589
  312. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  313. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  314. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  315. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  316. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +25 -31
  317. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
  318. package/dist/SlopeChart.cjs +1 -1
  319. package/dist/SlopeChart.cjs.map +1 -1
  320. package/dist/SlopeChart.d.ts +1 -0
  321. package/dist/SlopeChart.js +539 -573
  322. package/dist/SlopeChart.js.map +1 -1
  323. package/dist/Source-DYMJRrsq.cjs +2 -0
  324. package/dist/Source-DYMJRrsq.cjs.map +1 -0
  325. package/dist/Source-DwTHB8fn.js +78 -0
  326. package/dist/Source-DwTHB8fn.js.map +1 -0
  327. package/dist/Source.cjs +1 -1
  328. package/dist/Source.cjs.map +1 -1
  329. package/dist/Source.js +4 -38
  330. package/dist/Source.js.map +1 -1
  331. package/dist/SparkLine.cjs +1 -1
  332. package/dist/SparkLine.cjs.map +1 -1
  333. package/dist/SparkLine.d.ts +1 -0
  334. package/dist/SparkLine.js +286 -314
  335. package/dist/SparkLine.js.map +1 -1
  336. package/dist/Spinner-D7rnnwnA.js +47 -0
  337. package/dist/Spinner-D7rnnwnA.js.map +1 -0
  338. package/dist/Spinner-DRMBUsX7.cjs +2 -0
  339. package/dist/Spinner-DRMBUsX7.cjs.map +1 -0
  340. package/dist/StatCardFromData.cjs +1 -1
  341. package/dist/StatCardFromData.cjs.map +1 -1
  342. package/dist/StatCardFromData.d.ts +1 -0
  343. package/dist/StatCardFromData.js +163 -243
  344. package/dist/StatCardFromData.js.map +1 -1
  345. package/dist/StripChart.cjs +1 -1
  346. package/dist/StripChart.cjs.map +1 -1
  347. package/dist/StripChart.d.ts +1 -0
  348. package/dist/StripChart.js +665 -983
  349. package/dist/StripChart.js.map +1 -1
  350. package/dist/ThreeDGlobe.cjs +1 -1
  351. package/dist/ThreeDGlobe.cjs.map +1 -1
  352. package/dist/ThreeDGlobe.d.ts +3 -0
  353. package/dist/ThreeDGlobe.js +355 -526
  354. package/dist/ThreeDGlobe.js.map +1 -1
  355. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  356. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  357. package/dist/ThresholdColorLegendWithMouseOver.js +96 -126
  358. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  359. package/dist/Tooltip-4dJo4_AF.cjs +2 -0
  360. package/dist/Tooltip-4dJo4_AF.cjs.map +1 -0
  361. package/dist/Tooltip-CwWUegPB.js +43 -0
  362. package/dist/Tooltip-CwWUegPB.js.map +1 -0
  363. package/dist/TreeMapGraph.cjs +1 -1
  364. package/dist/TreeMapGraph.cjs.map +1 -1
  365. package/dist/TreeMapGraph.d.ts +1 -0
  366. package/dist/TreeMapGraph.js +479 -617
  367. package/dist/TreeMapGraph.js.map +1 -1
  368. package/dist/Types.d.ts +2 -0
  369. package/dist/Typography-DX7PlgQU.cjs +2 -0
  370. package/dist/Typography-DX7PlgQU.cjs.map +1 -0
  371. package/dist/Typography-PxtFcnJb.js +142 -0
  372. package/dist/Typography-PxtFcnJb.js.map +1 -0
  373. package/dist/UnitChart.cjs +1 -1
  374. package/dist/UnitChart.cjs.map +1 -1
  375. package/dist/UnitChart.d.ts +1 -0
  376. package/dist/UnitChart.js +160 -212
  377. package/dist/UnitChart.js.map +1 -1
  378. package/dist/XAxesLabels-D5X8jngD.cjs +2 -0
  379. package/dist/XAxesLabels-D5X8jngD.cjs.map +1 -0
  380. package/dist/XAxesLabels-DNO0KmjL.js +73 -0
  381. package/dist/XAxesLabels-DNO0KmjL.js.map +1 -0
  382. package/dist/XTicksAndGridLines-B6CELS7q.cjs +2 -0
  383. package/dist/XTicksAndGridLines-B6CELS7q.cjs.map +1 -0
  384. package/dist/XTicksAndGridLines-CObVFSm4.js +38 -0
  385. package/dist/XTicksAndGridLines-CObVFSm4.js.map +1 -0
  386. package/dist/YAxesLabels-DcS85Beo.cjs +2 -0
  387. package/dist/YAxesLabels-DcS85Beo.cjs.map +1 -0
  388. package/dist/YAxesLabels-Dnnng49-.js +70 -0
  389. package/dist/YAxesLabels-Dnnng49-.js.map +1 -0
  390. package/dist/YTicksAndGridLines-4pxTRlRK.cjs +2 -0
  391. package/dist/YTicksAndGridLines-4pxTRlRK.cjs.map +1 -0
  392. package/dist/YTicksAndGridLines-Blepl7XF.js +38 -0
  393. package/dist/YTicksAndGridLines-Blepl7XF.js.map +1 -0
  394. package/dist/{band-BEjh2CHI.js → band-CyHaVft5.js} +3 -3
  395. package/dist/{band-BEjh2CHI.js.map → band-CyHaVft5.js.map} +1 -1
  396. package/dist/{band-CAApY4Pd.cjs → band-VYfcZeJ2.cjs} +2 -2
  397. package/dist/{band-CAApY4Pd.cjs.map → band-VYfcZeJ2.cjs.map} +1 -1
  398. package/dist/checkIfMultiple-Y9iKaV_u.js +950 -0
  399. package/dist/checkIfMultiple-Y9iKaV_u.js.map +1 -0
  400. package/dist/checkIfMultiple-wg6hJLXy.cjs +12 -0
  401. package/dist/checkIfMultiple-wg6hJLXy.cjs.map +1 -0
  402. package/dist/customArea-BUhPiPT6.js +163 -0
  403. package/dist/{customArea-B-dWU0zZ.js.map → customArea-BUhPiPT6.js.map} +1 -1
  404. package/dist/customArea-CMF5g-C3.cjs +2 -0
  405. package/dist/{customArea-CK768gCn.cjs.map → customArea-CMF5g-C3.cjs.map} +1 -1
  406. package/dist/delaunay-C1uAf38t.js.map +1 -1
  407. package/dist/delaunay-rcy0HhZi.cjs.map +1 -1
  408. package/dist/{ensureCompleteData-DlmibgaI.js → ensureCompleteData-DNKEGRiP.js} +12 -32
  409. package/dist/{ensureCompleteData-DlmibgaI.js.map → ensureCompleteData-DNKEGRiP.js.map} +1 -1
  410. package/dist/{ensureCompleteData-DkQYPeDa.cjs → ensureCompleteData-I6nYmT8E.cjs} +2 -2
  411. package/dist/{ensureCompleteData-DkQYPeDa.cjs.map → ensureCompleteData-I6nYmT8E.cjs.map} +1 -1
  412. package/dist/{excelDownload-BOA-lskf.js → excelDownload-BEC1AyQW.js} +12 -2
  413. package/dist/{excelDownload-BOA-lskf.js.map → excelDownload-BEC1AyQW.js.map} +1 -1
  414. package/dist/excelDownload-BQpsCa62.cjs.map +1 -1
  415. package/dist/{fetchAndParseData-sapWbnYk.js → fetchAndParseData-BpqkBPQL.js} +15 -28
  416. package/dist/{fetchAndParseData-sapWbnYk.js.map → fetchAndParseData-BpqkBPQL.js.map} +1 -1
  417. package/dist/fetchAndParseData-l5HGMAEs.cjs +16 -0
  418. package/dist/{fetchAndParseData-Ba-_CgxS.cjs.map → fetchAndParseData-l5HGMAEs.cjs.map} +1 -1
  419. package/dist/fetchAndParseData.cjs +1 -1
  420. package/dist/fetchAndParseData.js +1 -1
  421. package/dist/{filterData-9nEcQ-Jp.js → filterData-DsAiFzKY.js} +3 -5
  422. package/dist/{filterData-9nEcQ-Jp.js.map → filterData-DsAiFzKY.js.map} +1 -1
  423. package/dist/{filterData-BoYadk0l.cjs → filterData-T5DQBE9b.cjs} +2 -2
  424. package/dist/{filterData-BoYadk0l.cjs.map → filterData-T5DQBE9b.cjs.map} +1 -1
  425. package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -1
  426. package/dist/generateRandomString-za3IQGfQ.js.map +1 -1
  427. package/dist/{getCentroidCoordinates-Dfk6IqEG.js → getCentroidCoordinates-D7r34N4w.js} +2 -2
  428. package/dist/{getCentroidCoordinates-Dfk6IqEG.js.map → getCentroidCoordinates-D7r34N4w.js.map} +1 -1
  429. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs → getCentroidCoordinates-Dng1HVjO.cjs} +2 -2
  430. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs.map → getCentroidCoordinates-Dng1HVjO.cjs.map} +1 -1
  431. package/dist/getGraphList-BpEWn1Tk.js +227 -0
  432. package/dist/{getGraphList-DuColTJM.js.map → getGraphList-BpEWn1Tk.js.map} +1 -1
  433. package/dist/getGraphList-gf02xgT2.cjs.map +1 -1
  434. package/dist/getJenks-BbngDoBQ.js.map +1 -1
  435. package/dist/getJenks-GYmdwBqm.cjs.map +1 -1
  436. package/dist/getSchema.cjs.map +1 -1
  437. package/dist/getSchema.js +445 -231
  438. package/dist/getSchema.js.map +1 -1
  439. package/dist/getSliderMarks-BmADcPQt.cjs +6 -0
  440. package/dist/getSliderMarks-BmADcPQt.cjs.map +1 -0
  441. package/dist/getSliderMarks-HIDJ0_Cd.js +1033 -0
  442. package/dist/getSliderMarks-HIDJ0_Cd.js.map +1 -0
  443. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js → getTextColorBasedOnBgColor-CDY808zi.js} +11 -3
  444. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js.map → getTextColorBasedOnBgColor-CDY808zi.js.map} +1 -1
  445. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -1
  446. package/dist/{getUniqValue-DiCh_MOD.js → getUniqValue-BKHCm3zE.js} +2 -4
  447. package/dist/{getUniqValue-DiCh_MOD.js.map → getUniqValue-BKHCm3zE.js.map} +1 -1
  448. package/dist/getUniqValue-RViz8tTw.cjs.map +1 -1
  449. package/dist/{imageDownload-Dcci2LEy.js → imageDownload-BX6SILNZ.js} +4 -2
  450. package/dist/{imageDownload-Dcci2LEy.js.map → imageDownload-BX6SILNZ.js.map} +1 -1
  451. package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -1
  452. package/dist/{index-DvVprvy6.js → index-BZQYSqar.js} +7 -7
  453. package/dist/{index-DvVprvy6.js.map → index-BZQYSqar.js.map} +1 -1
  454. package/dist/index-B_sAFsEV.cjs +2 -0
  455. package/dist/{index-BYzIB5V6.cjs.map → index-B_sAFsEV.cjs.map} +1 -1
  456. package/dist/index-BqfRwk1n.js +146 -0
  457. package/dist/index-BqfRwk1n.js.map +1 -0
  458. package/dist/{index-V_JXij1_.js → index-BuwmuDFJ.js} +3 -3
  459. package/dist/{index-V_JXij1_.js.map → index-BuwmuDFJ.js.map} +1 -1
  460. package/dist/index-CHPV5EwG-CTPQjnHt.cjs +84 -0
  461. package/dist/index-CHPV5EwG-CTPQjnHt.cjs.map +1 -0
  462. package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-Curnpaqc.js} +937 -842
  463. package/dist/index-CHPV5EwG-Curnpaqc.js.map +1 -0
  464. package/dist/index-Cno4Q0YE.cjs +2 -0
  465. package/dist/{index-CQ3e6Ewi.cjs.map → index-Cno4Q0YE.cjs.map} +1 -1
  466. package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-B2hEKjzG.js} +16 -16
  467. package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-B2hEKjzG.js.map} +1 -1
  468. package/dist/index-Cw8sCyo_-BrHiWiRF.cjs +2 -0
  469. package/dist/index-Cw8sCyo_-BrHiWiRF.cjs.map +1 -0
  470. package/dist/index-CyZ1lmi_.cjs +2 -0
  471. package/dist/{index-D72cOtq7.cjs.map → index-CyZ1lmi_.cjs.map} +1 -1
  472. package/dist/index-D491FEn1.js +184 -0
  473. package/dist/index-D491FEn1.js.map +1 -0
  474. package/dist/index-DG2bgAva.cjs +10 -0
  475. package/dist/index-DG2bgAva.cjs.map +1 -0
  476. package/dist/index-DRXx7m-C.cjs +2 -0
  477. package/dist/index-DRXx7m-C.cjs.map +1 -0
  478. package/dist/index-DoY3Ga3W.cjs +2 -0
  479. package/dist/index-DoY3Ga3W.cjs.map +1 -0
  480. package/dist/index-DxXnJ8Ti.cjs +2 -0
  481. package/dist/index-DxXnJ8Ti.cjs.map +1 -0
  482. package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-Bb7gobH_.js} +2 -2
  483. package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-Bb7gobH_.js.map} +1 -1
  484. package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-BmkfPMyc.cjs} +2 -2
  485. package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-BmkfPMyc.cjs.map} +1 -1
  486. package/dist/{index-9tDEUqOZ.js → index-GEsywGxz.js} +9 -9
  487. package/dist/index-GEsywGxz.js.map +1 -0
  488. package/dist/index-SKgJALZg.js +99 -0
  489. package/dist/{index-DKCxu1Gh.js.map → index-SKgJALZg.js.map} +1 -1
  490. package/dist/index-leTnKT2q.js +329 -0
  491. package/dist/index-leTnKT2q.js.map +1 -0
  492. package/dist/index.cjs +1 -1
  493. package/dist/index.d.ts +19 -8
  494. package/dist/index.js +13 -13
  495. package/dist/{init-BhZylTFx.js → init-BJFW6EwE.js} +3 -3
  496. package/dist/{init-BhZylTFx.js.map → init-BJFW6EwE.js.map} +1 -1
  497. package/dist/{linear-BVckp9RD.cjs → linear-BwPAspcq.cjs} +2 -2
  498. package/dist/{linear-BVckp9RD.cjs.map → linear-BwPAspcq.cjs.map} +1 -1
  499. package/dist/{linear-DUdu7l2G.js → linear-BwnDd9KF.js} +3 -3
  500. package/dist/{linear-DUdu7l2G.js.map → linear-BwnDd9KF.js.map} +1 -1
  501. package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -1
  502. package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -1
  503. package/dist/{ordinal-BOeNbyae.cjs → ordinal-CrsysVE-.cjs} +2 -2
  504. package/dist/ordinal-CrsysVE-.cjs.map +1 -0
  505. package/dist/{ordinal-w9Lu4Stb.js → ordinal-P77xw8aL.js} +24 -24
  506. package/dist/ordinal-P77xw8aL.js.map +1 -0
  507. package/dist/{pow-e8zx3AQJ.js → pow-DE4c7dbW.js} +3 -3
  508. package/dist/{pow-e8zx3AQJ.js.map → pow-DE4c7dbW.js.map} +1 -1
  509. package/dist/{pow-B5-jkdHU.cjs → pow-DgrUorRi.cjs} +2 -2
  510. package/dist/{pow-B5-jkdHU.cjs.map → pow-DgrUorRi.cjs.map} +1 -1
  511. package/dist/{proxy-CkpFesk1.js → proxy-BxkFHwUw.js} +144 -134
  512. package/dist/proxy-BxkFHwUw.js.map +1 -0
  513. package/dist/proxy-BxvUI_9l.cjs +2 -0
  514. package/dist/proxy-BxvUI_9l.cjs.map +1 -0
  515. package/dist/{removeOutliers-DR48e-18.js → removeOutliers-BqW0sPqj.js} +2 -5
  516. package/dist/{removeOutliers-DR48e-18.js.map → removeOutliers-BqW0sPqj.js.map} +1 -1
  517. package/dist/removeOutliers-WELHHqiI.cjs.map +1 -1
  518. package/dist/{sort-DfK1b0F5.js → sort-BIvMlUH1.js} +5 -5
  519. package/dist/{sort-DfK1b0F5.js.map → sort-BIvMlUH1.js.map} +1 -1
  520. package/dist/{string-CRoCZCYa.cjs → string-C-kRh1bQ.cjs} +2 -2
  521. package/dist/{string-CRoCZCYa.cjs.map → string-C-kRh1bQ.cjs.map} +1 -1
  522. package/dist/{string-B8KlVSPX.js → string-C_xJ4Wg4.js} +3 -3
  523. package/dist/{string-B8KlVSPX.js.map → string-C_xJ4Wg4.js.map} +1 -1
  524. package/dist/string2HTML-CPGr_I5E.cjs +3 -0
  525. package/dist/{string2HTML-z7CwHXcx.cjs.map → string2HTML-CPGr_I5E.cjs.map} +1 -1
  526. package/dist/{string2HTML-oFCROsus.js → string2HTML-DhG75NqA.js} +15 -9
  527. package/dist/{string2HTML-oFCROsus.js.map → string2HTML-DhG75NqA.js.map} +1 -1
  528. package/dist/style.css +1 -1
  529. package/dist/{svgDownload-C2-E3yf2.js → svgDownload-BAoarWNt.js} +4 -2
  530. package/dist/{svgDownload-C2-E3yf2.js.map → svgDownload-BAoarWNt.js.map} +1 -1
  531. package/dist/svgDownload-D9zEGjTF.cjs.map +1 -1
  532. package/dist/{threshold-DFfqcDMa.js → threshold-Bgr20hik.js} +2 -2
  533. package/dist/{threshold-DFfqcDMa.js.map → threshold-Bgr20hik.js.map} +1 -1
  534. package/dist/{time-Byw_jYQ7.cjs → time-CZd5YLSP.cjs} +2 -2
  535. package/dist/{time-Byw_jYQ7.cjs.map → time-CZd5YLSP.cjs.map} +1 -1
  536. package/dist/{time-BzJP5SPC.js → time-DCCfQk3V.js} +3 -3
  537. package/dist/{time-BzJP5SPC.js.map → time-DCCfQk3V.js.map} +1 -1
  538. package/dist/transformData.cjs +1 -1
  539. package/dist/transformData.js +3 -3
  540. package/dist/transformDataForAggregation-CE3bAlHU.js +585 -0
  541. package/dist/{transformDataForAggregation-sBpdlX8n.js.map → transformDataForAggregation-CE3bAlHU.js.map} +1 -1
  542. package/dist/transformDataForAggregation-KXGm6flX.cjs.map +1 -1
  543. package/dist/transformDataForGraphFromFile-BExxcITV.js +14 -0
  544. package/dist/{transformDataForGraphFromFile-ComYvzuz.js.map → transformDataForGraphFromFile-BExxcITV.js.map} +1 -1
  545. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs → transformDataForGraphFromFile-DaJHQCsL.cjs} +2 -2
  546. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs.map → transformDataForGraphFromFile-DaJHQCsL.cjs.map} +1 -1
  547. package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -1
  548. package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -1
  549. package/dist/uniqBy-BHy4I8PK.js.map +1 -1
  550. package/dist/uniqBy-O05lp2S5.cjs.map +1 -1
  551. package/dist/{use-in-view-yS6jzJAp.js → use-in-view-Cxa7y1TH.js} +2 -2
  552. package/dist/use-in-view-Cxa7y1TH.js.map +1 -0
  553. package/dist/use-in-view-QcfiW0w3.cjs +2 -0
  554. package/dist/use-in-view-QcfiW0w3.cjs.map +1 -0
  555. package/dist/utils.cjs +1 -1
  556. package/dist/utils.js +8 -8
  557. package/dist/validateSchema.cjs.map +1 -1
  558. package/dist/validateSchema.js +33 -29
  559. package/dist/validateSchema.js.map +1 -1
  560. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs → x-BBpi7a_7-mTo40uId.cjs} +2 -2
  561. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs.map → x-BBpi7a_7-mTo40uId.cjs.map} +1 -1
  562. package/dist/{y-D0sAaVii.js → y-BqfogMAB.js} +3 -3
  563. package/dist/{y-D0sAaVii.js.map → y-BqfogMAB.js.map} +1 -1
  564. package/dist/{zoom-QipiAl5W.js → zoom-C9MFjAaV.js} +5 -5
  565. package/dist/{zoom-QipiAl5W.js.map → zoom-C9MFjAaV.js.map} +1 -1
  566. package/dist/zoom-DPw8bba-.cjs +2 -0
  567. package/dist/{zoom-BiMNsz72.cjs.map → zoom-DPw8bba-.cjs.map} +1 -1
  568. package/package.json +9 -8
  569. package/dist/Axis-DE7dSn1_.cjs +0 -2
  570. package/dist/Axis-DE7dSn1_.cjs.map +0 -1
  571. package/dist/Axis-Ddg-seDi.js +0 -43
  572. package/dist/Axis-Ddg-seDi.js.map +0 -1
  573. package/dist/AxisTitle-BmHLMRJZ.js +0 -20
  574. package/dist/AxisTitle-BmHLMRJZ.js.map +0 -1
  575. package/dist/AxisTitle-CK9YeovX.cjs +0 -2
  576. package/dist/AxisTitle-CK9YeovX.cjs.map +0 -1
  577. package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
  578. package/dist/DropdownSelect-DBDM64B5.cjs +0 -29
  579. package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
  580. package/dist/EmptyState-DdTp-Mdn.js +0 -22
  581. package/dist/EmptyState-d8_8SxeW.cjs +0 -2
  582. package/dist/GraphEl-C6yjl1VM.cjs +0 -2
  583. package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
  584. package/dist/GraphEl-CqWzvOyr.js.map +0 -1
  585. package/dist/Modal-DVVwpKhP.js +0 -1019
  586. package/dist/Modal-DVVwpKhP.js.map +0 -1
  587. package/dist/Modal-tXZlLE5s.cjs +0 -46
  588. package/dist/Modal-tXZlLE5s.cjs.map +0 -1
  589. package/dist/ReferenceLine-CFVBBN__.cjs +0 -2
  590. package/dist/ReferenceLine-CFVBBN__.cjs.map +0 -1
  591. package/dist/ReferenceLine-CfAW3vKJ.js +0 -128
  592. package/dist/ReferenceLine-CfAW3vKJ.js.map +0 -1
  593. package/dist/RegressionLine-C2--oMQq.js +0 -49
  594. package/dist/RegressionLine-C2--oMQq.js.map +0 -1
  595. package/dist/RegressionLine-Dj0GSiAp.cjs +0 -2
  596. package/dist/RegressionLine-Dj0GSiAp.cjs.map +0 -1
  597. package/dist/Spinner-C85UF28E.js +0 -30
  598. package/dist/Spinner-C85UF28E.js.map +0 -1
  599. package/dist/Spinner-DA6Z5E4n.cjs +0 -2
  600. package/dist/Spinner-DA6Z5E4n.cjs.map +0 -1
  601. package/dist/Tooltip-CVCGWyzw.js +0 -46
  602. package/dist/Tooltip-CVCGWyzw.js.map +0 -1
  603. package/dist/Tooltip-De16GWhY.cjs +0 -2
  604. package/dist/Tooltip-De16GWhY.cjs.map +0 -1
  605. package/dist/Typography-Ctgfl1J5.js +0 -140
  606. package/dist/Typography-Ctgfl1J5.js.map +0 -1
  607. package/dist/Typography-k-kOjICQ.cjs +0 -2
  608. package/dist/Typography-k-kOjICQ.cjs.map +0 -1
  609. package/dist/XAxesLabels-Drf7M3YK.cjs +0 -2
  610. package/dist/XAxesLabels-Drf7M3YK.cjs.map +0 -1
  611. package/dist/XAxesLabels-loO78vUO.js +0 -57
  612. package/dist/XAxesLabels-loO78vUO.js.map +0 -1
  613. package/dist/XTicksAndGridLines-Bn9u5gOM.js +0 -56
  614. package/dist/XTicksAndGridLines-Bn9u5gOM.js.map +0 -1
  615. package/dist/XTicksAndGridLines-CCzXIV8d.cjs +0 -2
  616. package/dist/XTicksAndGridLines-CCzXIV8d.cjs.map +0 -1
  617. package/dist/YAxesLabels-DECkMgq8.js +0 -52
  618. package/dist/YAxesLabels-DECkMgq8.js.map +0 -1
  619. package/dist/YAxesLabels-yRFFdx1s.cjs +0 -2
  620. package/dist/YAxesLabels-yRFFdx1s.cjs.map +0 -1
  621. package/dist/YTicksAndGridLines-B6ah7CRf.js +0 -56
  622. package/dist/YTicksAndGridLines-B6ah7CRf.js.map +0 -1
  623. package/dist/YTicksAndGridLines-DBDuz6vb.cjs +0 -2
  624. package/dist/YTicksAndGridLines-DBDuz6vb.cjs.map +0 -1
  625. package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
  626. package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
  627. package/dist/checkIfMultiple-ChTJk2Tk.js +0 -912
  628. package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
  629. package/dist/customArea-B-dWU0zZ.js +0 -175
  630. package/dist/customArea-CK768gCn.cjs +0 -2
  631. package/dist/fetchAndParseData-Ba-_CgxS.cjs +0 -16
  632. package/dist/getGraphList-DuColTJM.js +0 -265
  633. package/dist/getSliderMarks-9cNoRkDx.js +0 -1023
  634. package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
  635. package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
  636. package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
  637. package/dist/index-37q0ULNQ.js +0 -430
  638. package/dist/index-37q0ULNQ.js.map +0 -1
  639. package/dist/index-9tDEUqOZ.js.map +0 -1
  640. package/dist/index-BW8iNx7E.cjs +0 -10
  641. package/dist/index-BW8iNx7E.cjs.map +0 -1
  642. package/dist/index-BW_-wD2k.cjs +0 -2
  643. package/dist/index-BW_-wD2k.cjs.map +0 -1
  644. package/dist/index-BYzIB5V6.cjs +0 -2
  645. package/dist/index-BmCqpO1B.js +0 -342
  646. package/dist/index-BmCqpO1B.js.map +0 -1
  647. package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
  648. package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
  649. package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
  650. package/dist/index-CNvov0eg.js +0 -122
  651. package/dist/index-CNvov0eg.js.map +0 -1
  652. package/dist/index-CQ3e6Ewi.cjs +0 -2
  653. package/dist/index-CVlCtJbC.cjs +0 -2
  654. package/dist/index-CVlCtJbC.cjs.map +0 -1
  655. package/dist/index-CoZbeNM9.cjs +0 -2
  656. package/dist/index-CoZbeNM9.cjs.map +0 -1
  657. package/dist/index-D72cOtq7.cjs +0 -2
  658. package/dist/index-DKCxu1Gh.js +0 -77
  659. package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
  660. package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
  661. package/dist/ordinal-BOeNbyae.cjs.map +0 -1
  662. package/dist/ordinal-w9Lu4Stb.js.map +0 -1
  663. package/dist/proxy-BHRoeZgd.cjs +0 -2
  664. package/dist/proxy-BHRoeZgd.cjs.map +0 -1
  665. package/dist/proxy-CkpFesk1.js.map +0 -1
  666. package/dist/string2HTML-z7CwHXcx.cjs +0 -3
  667. package/dist/transformDataForAggregation-sBpdlX8n.js +0 -755
  668. package/dist/transformDataForGraphFromFile-ComYvzuz.js +0 -24
  669. package/dist/use-in-view-sQJZ_xDO.cjs +0 -2
  670. package/dist/use-in-view-sQJZ_xDO.cjs.map +0 -1
  671. package/dist/use-in-view-yS6jzJAp.js.map +0 -1
  672. package/dist/zoom-BiMNsz72.cjs +0 -2
@@ -1,122 +1,101 @@
1
- import { j as i } from "./index-CHPV5EwG-BPSP-7Jg.js";
2
- import { useState as y, useRef as S } from "react";
3
- import { SingleGraphDashboard as x } from "./SingleGraphDashboard.js";
4
- import { SingleGraphDashboardThreeDGraphs as j } from "./SingleGraphDashboardThreeDGraphs.js";
5
- import { SingleGraphDashboardGeoHubMaps as v } from "./SingleGraphDashboardGeoHubMaps.js";
6
- import { m as D } from "./proxy-CkpFesk1.js";
7
- import { u as b } from "./use-in-view-yS6jzJAp.js";
8
- function B(n) {
9
- const {
10
- chapters: h,
11
- visibilityThreshold: g = 0.5,
12
- mode: r = "overlay",
13
- infoWidth: o = "320px",
14
- infoPosition: s = "left",
15
- infoBackgroundColor: c = "rgba(255,255,255,0.8)"
16
- } = n, [t, p] = y(0), u = ["threeDGlobe"], d = ["geoHubCompareMap", "geoHubMap", "geoHubMapWithLayerSelection"], a = [];
17
- return h.forEach((e, l) => {
18
- e.sections.forEach((f, m) => {
19
- a.push({
20
- chapter: l,
21
- dataSettings: e.dataSettings,
22
- section: m,
23
- graphType: e.graphType,
24
- infoBox: f.infoBox,
25
- graphSettings: { ...e.graphSettings, ...f.graphSettings || {}, animate: !0 },
26
- graphDataConfiguration: f.graphDataConfiguration || e.graphDataConfiguration || []
1
+ import { c as k, j as c } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useState as A, useRef as P } from "react";
3
+ import { SingleGraphDashboard as R } from "./SingleGraphDashboard.js";
4
+ import { SingleGraphDashboardThreeDGraphs as V } from "./SingleGraphDashboardThreeDGraphs.js";
5
+ import { SingleGraphDashboardGeoHubMaps as W } from "./SingleGraphDashboardGeoHubMaps.js";
6
+ import { m as z } from "./proxy-BxkFHwUw.js";
7
+ import { u as L } from "./use-in-view-Cxa7y1TH.js";
8
+ function Y(G) {
9
+ const t = k.c(27), {
10
+ chapters: a,
11
+ visibilityThreshold: v,
12
+ mode: b,
13
+ infoWidth: x,
14
+ infoPosition: j,
15
+ infoBackgroundColor: f
16
+ } = G, g = v === void 0 ? 0.5 : v, n = b === void 0 ? "overlay" : b, p = x === void 0 ? "320px" : x, r = j === void 0 ? "left" : j, T = f === void 0 ? "rgba(255,255,255,0.8)" : f, [i, S] = A(0);
17
+ let o;
18
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = ["threeDGlobe"], t[0] = o) : o = t[0];
19
+ const h = o;
20
+ let s;
21
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (s = ["geoHubCompareMap", "geoHubMap", "geoHubMapWithLayerSelection"], t[1] = s) : s = t[1];
22
+ const E = s;
23
+ let e;
24
+ t[2] !== a ? (e = [], a.forEach((l, H) => {
25
+ l.sections.forEach((M, N) => {
26
+ e.push({
27
+ chapter: H,
28
+ dataSettings: l.dataSettings,
29
+ section: N,
30
+ graphType: l.graphType,
31
+ infoBox: M.infoBox,
32
+ graphSettings: {
33
+ ...l.graphSettings,
34
+ ...M.graphSettings || {},
35
+ animate: !0
36
+ },
37
+ graphDataConfiguration: M.graphDataConfiguration || l.graphDataConfiguration || []
27
38
  });
28
39
  });
29
- }), /* @__PURE__ */ i.jsxs("div", { className: "relative w-full h-full", children: [
30
- /* @__PURE__ */ i.jsx(
31
- D.div,
32
- {
33
- className: "fixed top-0 h-full -z-10",
34
- initial: { opacity: 0 },
35
- animate: { opacity: 1 },
36
- transition: { duration: 0.5 },
37
- style: {
38
- left: r === "overlay" || s === "right" ? 0 : o,
39
- width: r === "overlay" ? "100%" : `calc(100% - ${o})`
40
- },
41
- children: u.includes(a[t].graphType) ? /* @__PURE__ */ i.jsx(
42
- j,
43
- {
44
- graphType: a[t].graphType,
45
- dataSettings: a[t].dataSettings,
46
- graphSettings: a[t].graphSettings,
47
- graphDataConfiguration: a[t].graphDataConfiguration
48
- }
49
- ) : d.includes(a[t].graphType) ? /* @__PURE__ */ i.jsx(
50
- v,
51
- {
52
- graphType: a[t].graphType,
53
- graphSettings: a[t].graphSettings
54
- }
55
- ) : /* @__PURE__ */ i.jsx(
56
- x,
57
- {
58
- graphType: a[t].graphType,
59
- dataSettings: a[t].dataSettings,
60
- graphSettings: a[t].graphSettings,
61
- graphDataConfiguration: a[t].graphDataConfiguration
62
- }
63
- )
64
- },
65
- a[t].chapter
66
- ),
67
- /* @__PURE__ */ i.jsx("div", { children: a.map((e, l) => /* @__PURE__ */ i.jsx(
68
- T,
69
- {
70
- width: o,
71
- index: l,
72
- infoBox: e.infoBox,
73
- setActiveIndex: p,
74
- position: s,
75
- mode: r,
76
- visibilityThreshold: g,
77
- backgroundColor: c
78
- },
79
- `${e.chapter}-${e.section}`
80
- )) })
81
- ] });
40
+ }), t[2] = a, t[3] = e) : e = t[3];
41
+ const I = e[i];
42
+ let D, C, w;
43
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (C = {
44
+ opacity: 0
45
+ }, w = {
46
+ opacity: 1
47
+ }, D = {
48
+ duration: 0.5
49
+ }, t[4] = D, t[5] = C, t[6] = w) : (D = t[4], C = t[5], w = t[6]);
50
+ const $ = n === "overlay" || r === "right" ? 0 : p, _ = n === "overlay" ? "100%" : `calc(100% - ${p})`;
51
+ let d;
52
+ t[7] !== $ || t[8] !== _ ? (d = {
53
+ left: $,
54
+ width: _
55
+ }, t[7] = $, t[8] = _, t[9] = d) : d = t[9];
56
+ let m;
57
+ t[10] !== i || t[11] !== e ? (m = h.includes(e[i].graphType) ? /* @__PURE__ */ c.jsx(V, { graphType: e[i].graphType, dataSettings: e[i].dataSettings, graphSettings: e[i].graphSettings, graphDataConfiguration: e[i].graphDataConfiguration }) : E.includes(e[i].graphType) ? /* @__PURE__ */ c.jsx(W, { graphType: e[i].graphType, graphSettings: e[i].graphSettings }) : /* @__PURE__ */ c.jsx(R, { graphType: e[i].graphType, dataSettings: e[i].dataSettings, graphSettings: e[i].graphSettings, graphDataConfiguration: e[i].graphDataConfiguration }), t[10] = i, t[11] = e, t[12] = m) : m = t[12];
58
+ let u;
59
+ t[13] !== d || t[14] !== m || t[15] !== I.chapter ? (u = /* @__PURE__ */ c.jsx(z.div, { className: "fixed top-0 h-full -z-10", initial: C, animate: w, transition: D, style: d, children: m }, I.chapter), t[13] = d, t[14] = m, t[15] = I.chapter, t[16] = u) : u = t[16];
60
+ let y;
61
+ t[17] !== T || t[18] !== r || t[19] !== p || t[20] !== n || t[21] !== e || t[22] !== g ? (y = /* @__PURE__ */ c.jsx("div", { children: e.map((l, H) => /* @__PURE__ */ c.jsx(q, { width: p, index: H, infoBox: l.infoBox, setActiveIndex: S, position: r, mode: n, visibilityThreshold: g, backgroundColor: T }, `${l.chapter}-${l.section}`)) }), t[17] = T, t[18] = r, t[19] = p, t[20] = n, t[21] = e, t[22] = g, t[23] = y) : y = t[23];
62
+ let B;
63
+ return t[24] !== u || t[25] !== y ? (B = /* @__PURE__ */ c.jsxs("div", { className: "relative w-full h-full", children: [
64
+ u,
65
+ y
66
+ ] }), t[24] = u, t[25] = y, t[26] = B) : B = t[26], B;
82
67
  }
83
- function T({
84
- infoBox: n,
85
- index: h,
86
- setActiveIndex: g,
87
- position: r,
88
- mode: o,
89
- visibilityThreshold: s,
90
- backgroundColor: c,
91
- width: t
92
- }) {
93
- const p = S(null);
94
- return b(p, {
68
+ function q(G) {
69
+ const t = k.c(13), {
70
+ infoBox: a,
71
+ index: v,
72
+ setActiveIndex: b,
73
+ position: x,
74
+ mode: j,
75
+ visibilityThreshold: f,
76
+ backgroundColor: g,
77
+ width: n
78
+ } = G, p = P(null);
79
+ let r;
80
+ t[0] !== f ? (r = {
95
81
  once: !1,
96
- amount: s
97
- }) && g(h), /* @__PURE__ */ i.jsx(
98
- "section",
99
- {
100
- ref: p,
101
- className: `min-h-screen flex ${r === "center" ? "justify-center" : r === "right" ? "justify-end" : "justify-start"}`,
102
- children: /* @__PURE__ */ i.jsxs(
103
- "div",
104
- {
105
- className: `p-8 ${o === "overlay" ? "h-fit mx-10 " : ""}`,
106
- style: {
107
- backgroundColor: c,
108
- width: t
109
- },
110
- children: [
111
- n.title,
112
- n.description
113
- ]
114
- }
115
- )
116
- }
117
- );
82
+ amount: f
83
+ }, t[0] = f, t[1] = r) : r = t[1], L(p, r) && b(v);
84
+ const i = `min-h-screen flex ${x === "center" ? "justify-center" : x === "right" ? "justify-end" : "justify-start"}`, S = `p-8 ${j === "overlay" ? "h-fit mx-10 " : ""}`;
85
+ let o;
86
+ t[2] !== g || t[3] !== n ? (o = {
87
+ backgroundColor: g,
88
+ width: n
89
+ }, t[2] = g, t[3] = n, t[4] = o) : o = t[4];
90
+ let h;
91
+ t[5] !== a.description || t[6] !== a.title || t[7] !== S || t[8] !== o ? (h = /* @__PURE__ */ c.jsxs("div", { className: S, style: o, children: [
92
+ a.title,
93
+ a.description
94
+ ] }), t[5] = a.description, t[6] = a.title, t[7] = S, t[8] = o, t[9] = h) : h = t[9];
95
+ let s;
96
+ return t[10] !== i || t[11] !== h ? (s = /* @__PURE__ */ c.jsx("section", { ref: p, className: i, children: h }), t[10] = i, t[11] = h, t[12] = s) : s = t[12], s;
118
97
  }
119
98
  export {
120
- B as PerformanceIntensiveScrollStory
99
+ Y as PerformanceIntensiveScrollStory
121
100
  };
122
101
  //# sourceMappingURL=PerformanceIntensiveScrollStory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PerformanceIntensiveScrollStory.js","sources":["../src/Components/Dashboard/PerformanceIntensive/ScrollStory.tsx"],"sourcesContent":["// Scrollytelling.tsx\r\nimport { motion, useInView } from 'motion/react';\r\nimport { useRef, useState } from 'react';\r\n\r\nimport { SingleGraphDashboard } from '../SingleGraphDashboard';\r\n\r\nimport { SingleGraphDashboardThreeDGraphs } from './SingleGraphDashboardThreeDGraphs';\r\nimport { SingleGraphDashboardGeoHubMaps } from './SingleGraphDashboardGeoHubMaps';\r\n\r\nimport {\r\n PerformanceIntensiveChaptersDataType,\r\n InfoBoxDataType,\r\n SectionsArrDataType,\r\n ThreeDGraphType,\r\n GeoHubGraphType,\r\n GraphType,\r\n} from '@/Types';\r\n\r\ninterface Props {\r\n /** Defines if the information is shown as overlay or on the side */\r\n mode?: 'overlay' | 'side';\r\n /** Defines the width of the info section */\r\n infoWidth?: string;\r\n /** Defined the different chapters for the story and different sections within the story */\r\n chapters: PerformanceIntensiveChaptersDataType[];\r\n /** Position of info on the page */\r\n infoPosition?: 'left' | 'right' | 'center';\r\n /** Sets how much of the element (from 0 to 1) must be visible before it's considered in view and it trigger the animation in the scrollytelling */\r\n visibilityThreshold?: number;\r\n /** Sets background color of the info box. */\r\n infoBackgroundColor?: string;\r\n}\r\n\r\n/** ScrollStory is a scrollytelling container component that reveals content step-by-step as the user scrolls through the page. */\r\nexport function PerformanceIntensiveScrollStory(props: Props) {\r\n const {\r\n chapters,\r\n visibilityThreshold = 0.5,\r\n mode = 'overlay',\r\n infoWidth = '320px',\r\n infoPosition = 'left',\r\n infoBackgroundColor = 'rgba(255,255,255,0.8)',\r\n } = props;\r\n const [activeIndex, setActiveIndex] = useState(0);\r\n const threeDGraphs = ['threeDGlobe'];\r\n const geoHubMaps = ['geoHubCompareMap', 'geoHubMap', 'geoHubMapWithLayerSelection'];\r\n const sectionsArr: SectionsArrDataType[] = [];\r\n chapters.forEach((d, i) => {\r\n d.sections.forEach((s, j) => {\r\n sectionsArr.push({\r\n chapter: i,\r\n dataSettings: d.dataSettings,\r\n section: j,\r\n graphType: d.graphType,\r\n infoBox: s.infoBox,\r\n graphSettings: { ...d.graphSettings, ...(s.graphSettings || {}), animate: true },\r\n graphDataConfiguration: s.graphDataConfiguration || d.graphDataConfiguration || [],\r\n });\r\n });\r\n });\r\n return (\r\n <div className='relative w-full h-full'>\r\n {/* Background Layer */}\r\n <motion.div\r\n key={sectionsArr[activeIndex].chapter}\r\n className='fixed top-0 h-full -z-10'\r\n initial={{ opacity: 0 }}\r\n animate={{ opacity: 1 }}\r\n transition={{ duration: 0.5 }}\r\n style={{\r\n left: mode === 'overlay' ? 0 : infoPosition === 'right' ? 0 : infoWidth,\r\n width: mode === 'overlay' ? '100%' : `calc(100% - ${infoWidth})`,\r\n }}\r\n >\r\n {threeDGraphs.includes(sectionsArr[activeIndex].graphType) ? (\r\n <SingleGraphDashboardThreeDGraphs\r\n graphType={sectionsArr[activeIndex].graphType as ThreeDGraphType}\r\n dataSettings={sectionsArr[activeIndex].dataSettings}\r\n graphSettings={sectionsArr[activeIndex].graphSettings}\r\n graphDataConfiguration={sectionsArr[activeIndex].graphDataConfiguration}\r\n />\r\n ) : geoHubMaps.includes(sectionsArr[activeIndex].graphType) ? (\r\n <SingleGraphDashboardGeoHubMaps\r\n graphType={sectionsArr[activeIndex].graphType as GeoHubGraphType}\r\n graphSettings={sectionsArr[activeIndex].graphSettings}\r\n />\r\n ) : (\r\n <SingleGraphDashboard\r\n graphType={sectionsArr[activeIndex].graphType as GraphType}\r\n dataSettings={sectionsArr[activeIndex].dataSettings}\r\n graphSettings={sectionsArr[activeIndex].graphSettings}\r\n graphDataConfiguration={sectionsArr[activeIndex].graphDataConfiguration}\r\n />\r\n )}\r\n </motion.div>\r\n <div>\r\n {sectionsArr.map((section, idx) => (\r\n <ScrollySection\r\n width={infoWidth}\r\n key={`${section.chapter}-${section.section}`}\r\n index={idx}\r\n infoBox={section.infoBox}\r\n setActiveIndex={setActiveIndex}\r\n position={infoPosition}\r\n mode={mode}\r\n visibilityThreshold={visibilityThreshold}\r\n backgroundColor={infoBackgroundColor}\r\n />\r\n ))}\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nfunction ScrollySection({\r\n infoBox,\r\n index,\r\n setActiveIndex,\r\n position,\r\n mode,\r\n visibilityThreshold,\r\n backgroundColor,\r\n width,\r\n}: {\r\n infoBox: InfoBoxDataType;\r\n index: number;\r\n setActiveIndex: (idx: number) => void;\r\n position: 'left' | 'right' | 'center';\r\n mode: 'overlay' | 'side';\r\n visibilityThreshold: number;\r\n backgroundColor: string;\r\n width: string;\r\n}) {\r\n const ref = useRef(null);\r\n const isInView = useInView(ref, {\r\n once: false,\r\n amount: visibilityThreshold,\r\n });\r\n if (isInView) setActiveIndex(index);\r\n return (\r\n <section\r\n ref={ref}\r\n className={`min-h-screen flex ${position === 'center' ? 'justify-center' : position === 'right' ? 'justify-end' : 'justify-start'}`}\r\n >\r\n <div\r\n className={`p-8 ${mode === 'overlay' ? 'h-fit mx-10 ' : ''}`}\r\n style={{\r\n backgroundColor,\r\n width,\r\n }}\r\n >\r\n {infoBox.title}\r\n {infoBox.description}\r\n </div>\r\n </section>\r\n );\r\n}\r\n"],"names":["PerformanceIntensiveScrollStory","props","chapters","visibilityThreshold","mode","infoWidth","infoPosition","infoBackgroundColor","activeIndex","setActiveIndex","useState","threeDGraphs","geoHubMaps","sectionsArr","d","i","s","j","jsxs","jsx","motion","SingleGraphDashboardThreeDGraphs","SingleGraphDashboardGeoHubMaps","SingleGraphDashboard","section","idx","ScrollySection","infoBox","index","position","backgroundColor","width","ref","useRef","useInView"],"mappings":"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"}
1
+ {"version":3,"file":"PerformanceIntensiveScrollStory.js","sources":["../src/Components/Dashboard/PerformanceIntensive/ScrollStory.tsx"],"sourcesContent":["// Scrollytelling.tsx\r\nimport { motion, useInView } from 'motion/react';\r\nimport { useRef, useState } from 'react';\r\n\r\nimport { SingleGraphDashboard } from '../SingleGraphDashboard';\r\n\r\nimport { SingleGraphDashboardThreeDGraphs } from './SingleGraphDashboardThreeDGraphs';\r\nimport { SingleGraphDashboardGeoHubMaps } from './SingleGraphDashboardGeoHubMaps';\r\n\r\nimport {\r\n PerformanceIntensiveChaptersDataType,\r\n InfoBoxDataType,\r\n SectionsArrDataType,\r\n ThreeDGraphType,\r\n GeoHubGraphType,\r\n GraphType,\r\n} from '@/Types';\r\n\r\ninterface Props {\r\n /** Defines if the information is shown as overlay or on the side */\r\n mode?: 'overlay' | 'side';\r\n /** Defines the width of the info section */\r\n infoWidth?: string;\r\n /** Defined the different chapters for the story and different sections within the story */\r\n chapters: PerformanceIntensiveChaptersDataType[];\r\n /** Position of info on the page */\r\n infoPosition?: 'left' | 'right' | 'center';\r\n /** Sets how much of the element (from 0 to 1) must be visible before it's considered in view and it trigger the animation in the scrollytelling */\r\n visibilityThreshold?: number;\r\n /** Sets background color of the info box. */\r\n infoBackgroundColor?: string;\r\n}\r\n\r\n/** ScrollStory is a scrollytelling container component that reveals content step-by-step as the user scrolls through the page. */\r\nexport function PerformanceIntensiveScrollStory(props: Props) {\r\n const {\r\n chapters,\r\n visibilityThreshold = 0.5,\r\n mode = 'overlay',\r\n infoWidth = '320px',\r\n infoPosition = 'left',\r\n infoBackgroundColor = 'rgba(255,255,255,0.8)',\r\n } = props;\r\n const [activeIndex, setActiveIndex] = useState(0);\r\n const threeDGraphs = ['threeDGlobe'];\r\n const geoHubMaps = ['geoHubCompareMap', 'geoHubMap', 'geoHubMapWithLayerSelection'];\r\n const sectionsArr: SectionsArrDataType[] = [];\r\n chapters.forEach((d, i) => {\r\n d.sections.forEach((s, j) => {\r\n sectionsArr.push({\r\n chapter: i,\r\n dataSettings: d.dataSettings,\r\n section: j,\r\n graphType: d.graphType,\r\n infoBox: s.infoBox,\r\n graphSettings: { ...d.graphSettings, ...(s.graphSettings || {}), animate: true },\r\n graphDataConfiguration: s.graphDataConfiguration || d.graphDataConfiguration || [],\r\n });\r\n });\r\n });\r\n return (\r\n <div className='relative w-full h-full'>\r\n {/* Background Layer */}\r\n <motion.div\r\n key={sectionsArr[activeIndex].chapter}\r\n className='fixed top-0 h-full -z-10'\r\n initial={{ opacity: 0 }}\r\n animate={{ opacity: 1 }}\r\n transition={{ duration: 0.5 }}\r\n style={{\r\n left: mode === 'overlay' ? 0 : infoPosition === 'right' ? 0 : infoWidth,\r\n width: mode === 'overlay' ? '100%' : `calc(100% - ${infoWidth})`,\r\n }}\r\n >\r\n {threeDGraphs.includes(sectionsArr[activeIndex].graphType) ? (\r\n <SingleGraphDashboardThreeDGraphs\r\n graphType={sectionsArr[activeIndex].graphType as ThreeDGraphType}\r\n dataSettings={sectionsArr[activeIndex].dataSettings}\r\n graphSettings={sectionsArr[activeIndex].graphSettings}\r\n graphDataConfiguration={sectionsArr[activeIndex].graphDataConfiguration}\r\n />\r\n ) : geoHubMaps.includes(sectionsArr[activeIndex].graphType) ? (\r\n <SingleGraphDashboardGeoHubMaps\r\n graphType={sectionsArr[activeIndex].graphType as GeoHubGraphType}\r\n graphSettings={sectionsArr[activeIndex].graphSettings}\r\n />\r\n ) : (\r\n <SingleGraphDashboard\r\n graphType={sectionsArr[activeIndex].graphType as GraphType}\r\n dataSettings={sectionsArr[activeIndex].dataSettings}\r\n graphSettings={sectionsArr[activeIndex].graphSettings}\r\n graphDataConfiguration={sectionsArr[activeIndex].graphDataConfiguration}\r\n />\r\n )}\r\n </motion.div>\r\n <div>\r\n {sectionsArr.map((section, idx) => (\r\n <ScrollySection\r\n width={infoWidth}\r\n key={`${section.chapter}-${section.section}`}\r\n index={idx}\r\n infoBox={section.infoBox}\r\n setActiveIndex={setActiveIndex}\r\n position={infoPosition}\r\n mode={mode}\r\n visibilityThreshold={visibilityThreshold}\r\n backgroundColor={infoBackgroundColor}\r\n />\r\n ))}\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nfunction ScrollySection({\r\n infoBox,\r\n index,\r\n setActiveIndex,\r\n position,\r\n mode,\r\n visibilityThreshold,\r\n backgroundColor,\r\n width,\r\n}: {\r\n infoBox: InfoBoxDataType;\r\n index: number;\r\n setActiveIndex: (idx: number) => void;\r\n position: 'left' | 'right' | 'center';\r\n mode: 'overlay' | 'side';\r\n visibilityThreshold: number;\r\n backgroundColor: string;\r\n width: string;\r\n}) {\r\n const ref = useRef(null);\r\n const isInView = useInView(ref, {\r\n once: false,\r\n amount: visibilityThreshold,\r\n });\r\n if (isInView) setActiveIndex(index);\r\n return (\r\n <section\r\n ref={ref}\r\n className={`min-h-screen flex ${position === 'center' ? 'justify-center' : position === 'right' ? 'justify-end' : 'justify-start'}`}\r\n >\r\n <div\r\n className={`p-8 ${mode === 'overlay' ? 'h-fit mx-10 ' : ''}`}\r\n style={{\r\n backgroundColor,\r\n width,\r\n }}\r\n >\r\n {infoBox.title}\r\n {infoBox.description}\r\n </div>\r\n </section>\r\n );\r\n}\r\n"],"names":["PerformanceIntensiveScrollStory","props","$","_c","chapters","visibilityThreshold","t0","mode","t1","infoWidth","t2","infoPosition","t3","infoBackgroundColor","t4","undefined","activeIndex","setActiveIndex","useState","t5","Symbol","for","threeDGraphs","t6","geoHubMaps","sectionsArr","forEach","d","i","sections","s","j","push","chapter","dataSettings","section","graphType","infoBox","graphSettings","animate","graphDataConfiguration","t7","t10","t8","t9","opacity","duration","t11","t12","t13","left","width","t14","includes","jsx","SingleGraphDashboardThreeDGraphs","SingleGraphDashboardGeoHubMaps","SingleGraphDashboard","t15","t16","map","idx","ScrollySection","t17","jsxs","index","position","backgroundColor","ref","useRef","once","amount","useInView","description","title"],"mappings":";;;;;;;AAkCO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,UAAAA;AAAAA,IAAAC,qBAAAC;AAAAA,IAAAC,MAAAC;AAAAA,IAAAC,WAAAC;AAAAA,IAAAC,cAAAC;AAAAA,IAAAC,qBAAAC;AAAAA,EAAAA,IAOIb,GALFI,IAAAC,MAAAS,SAAA,MAAAT,GACAC,IAAAC,MAAAO,SAAA,YAAAP,GACAC,IAAAC,MAAAK,SAAA,UAAAL,GACAC,IAAAC,MAAAG,SAAA,SAAAH,GACAC,IAAAC,MAAAC,SAAA,0BAAAD,GAEF,CAAAE,GAAAC,CAAA,IAAsCC,EAAS,CAAC;AAAE,MAAAC;AAAA,EAAAjB,EAAA,CAAA,MAAAkB,OAAAC,IAAA,2BAAA,KAC7BF,IAAA,CAAC,aAAa,GAACjB,OAAAiB,KAAAA,IAAAjB,EAAA,CAAA;AAApC,QAAAoB,IAAqBH;AAAgB,MAAAI;AAAA,EAAArB,EAAA,CAAA,MAAAkB,OAAAC,IAAA,2BAAA,KAClBE,KAAC,oBAAoB,aAAa,6BAA6B,GAACrB,OAAAqB,KAAAA,IAAArB,EAAA,CAAA;AAAnF,QAAAsB,IAAmBD;AAAiE,MAAAE;AAAA,EAAAvB,SAAAE,KACpFqB,IAA2C,CAAA,GAC3CrB,EAAQsB,QAAS,CAAAC,GAAAC,MAAA;AACfD,IAAAA,EAACE,SAASH,QAAS,CAAAI,GAAAC,MAAA;AACjBN,MAAAA,EAAWO,KAAM;AAAA,QAAAC,SACNL;AAAAA,QAACM,cACIP,EAACO;AAAAA,QAAaC,SACnBJ;AAAAA,QAACK,WACCT,EAACS;AAAAA,QAAUC,SACbP,EAACO;AAAAA,QAAQC,eACH;AAAA,UAAA,GAAKX,EAACW;AAAAA,UAAc,GAAMR,EAACQ,iBAAD,CAAA;AAAA,UAAqBC,SAAY;AAAA,QAAA;AAAA,QAAMC,wBACxDV,EAACU,0BAA2Bb,EAACa,0BAA7B,CAAA;AAAA,MAAA,CACzB;AAAA,IAAC,CACH;AAAA,EAAC,CACH,GAACtC,OAAAE,GAAAF,OAAAuB,KAAAA,IAAAvB,EAAA,CAAA;AAKS,QAAAuC,IAAAhB,EAAYT,CAAW;AAAC,MAAA0B,GAAAC,GAAAC;AAAA,EAAA1C,EAAA,CAAA,MAAAkB,OAAAC,IAAA,2BAAA,KAEpBsB,IAAA;AAAA,IAAAE,SAAW;AAAA,EAAA,GACXD,IAAA;AAAA,IAAAC,SAAW;AAAA,EAAA,GACRH,IAAA;AAAA,IAAAI,UAAY;AAAA,EAAA,GAAK5C,OAAAwC,GAAAxC,OAAAyC,GAAAzC,OAAA0C,MAAAF,IAAAxC,EAAA,CAAA,GAAAyC,IAAAzC,EAAA,CAAA,GAAA0C,IAAA1C,EAAA,CAAA;AAErB,QAAA6C,IAAAxC,MAAS,aAAgBI,MAAiB,UAA1C,IAAyBF,GACxBuC,IAAAzC,MAAS,YAAT,SAAA,eAA6CE,CAAS;AAAG,MAAAwC;AAAA,EAAA/C,EAAA,CAAA,MAAA6C,KAAA7C,SAAA8C,KAF3DC,IAAA;AAAA,IAAAC,MACCH;AAAAA,IAAiEI,OAChEH;AAAAA,EAAAA,GACR9C,OAAA6C,GAAA7C,OAAA8C,GAAA9C,OAAA+C,KAAAA,IAAA/C,EAAA,CAAA;AAAA,MAAAkD;AAAA,EAAAlD,EAAA,EAAA,MAAAc,KAAAd,UAAAuB,KAEA2B,IAAA9B,EAAY+B,SAAU5B,EAAYT,CAAW,EAACoB,SAmB/C,IAlBEkB,gBAAAA,EAAAA,IAACC,GAAA,EACY,WAAA9B,EAAYT,CAAW,EAACoB,WACrB,cAAAX,EAAYT,CAAW,EAACkB,cACvB,eAAAT,EAAYT,CAAW,EAACsB,eACf,wBAAAb,EAAYT,CAAW,EAACwB,uBAAAA,CAAuB,IAEvEhB,EAAU6B,SAAU5B,EAAYT,CAAW,EAACoB,SAYhD,IAXEkB,gBAAAA,EAAAA,IAACE,GAAA,EACY,WAAA/B,EAAYT,CAAW,EAACoB,WACpB,eAAAX,EAAYT,CAAW,EAACsB,cAAAA,KAGzCgB,gBAAAA,EAAAA,IAACG,KACY,WAAAhC,EAAYT,CAAW,EAACoB,WACrB,cAAAX,EAAYT,CAAW,EAACkB,cACvB,eAAAT,EAAYT,CAAW,EAACsB,eACf,wBAAAb,EAAYT,CAAW,EAACwB,wBAAuB,GAE1EtC,QAAAc,GAAAd,QAAAuB,GAAAvB,QAAAkD,KAAAA,IAAAlD,EAAA,EAAA;AAAA,MAAAwD;AAAA,EAAAxD,EAAA,EAAA,MAAA+C,KAAA/C,EAAA,EAAA,MAAAkD,KAAAlD,EAAA,EAAA,MAAAuC,EAAAR,WA9BHyB,mCAEY,WAAA,4BACD,SAAAf,GACA,SAAAC,GACG,YAAAF,GACL,OAAAO,GAKNG,UAAAA,EAAAA,GAVIX,EAAwBR,OA8B/B,GAAa/B,QAAA+C,GAAA/C,QAAAkD,GAAAlD,EAAA,EAAA,IAAAuC,EAAAR,SAAA/B,QAAAwD,KAAAA,IAAAxD,EAAA,EAAA;AAAA,MAAAyD;AAAA,EAAAzD,UAAAW,KAAAX,EAAA,EAAA,MAAAS,KAAAT,EAAA,EAAA,MAAAO,KAAAP,EAAA,EAAA,MAAAK,KAAAL,UAAAuB,KAAAvB,EAAA,EAAA,MAAAG,KACbsD,IAAAL,gBAAAA,EAAAA,IAAA,OAAA,EACG7B,UAAAA,EAAWmC,IAAK,CAAAzB,GAAA0B,MACfP,gBAAAA,EAAAA,IAACQ,GAAA,EACQrD,OAAAA,GAEAoD,OAAAA,GACE,SAAA1B,EAAOE,SACApB,gBAAAA,GACNN,UAAAA,GACJJ,MAAAA,GACeF,qBAAAA,GACJQ,iBAAAA,EAAAA,GAPZ,GAAGsB,EAAOF,OAAQ,IAAIE,EAAOA,OAAQ,EAON,CAEvC,GACH,GAAMjC,QAAAW,GAAAX,QAAAS,GAAAT,QAAAO,GAAAP,QAAAK,GAAAL,QAAAuB,GAAAvB,QAAAG,GAAAH,QAAAyD,KAAAA,IAAAzD,EAAA,EAAA;AAAA,MAAA6D;AAAA,SAAA7D,EAAA,EAAA,MAAAwD,KAAAxD,UAAAyD,KAhDRI,IAAAC,gBAAAA,EAAAA,KAAA,OAAA,EAAe,WAAA,0BAEbN,UAAAA;AAAAA,IAAAA;AAAAA,IAgCAC;AAAAA,EAAAA,GAeF,GAAMzD,QAAAwD,GAAAxD,QAAAyD,GAAAzD,QAAA6D,KAAAA,IAAA7D,EAAA,EAAA,GAjDN6D;AAiDM;AAIV,SAAAD,EAAAxD,GAAA;AAAA,QAAAJ,IAAAC,EAAAA,EAAA,EAAA,GAAwB;AAAA,IAAAkC,SAAAA;AAAAA,IAAA4B,OAAAA;AAAAA,IAAAhD,gBAAAA;AAAAA,IAAAiD,UAAAA;AAAAA,IAAA3D,MAAAA;AAAAA,IAAAF,qBAAAA;AAAAA,IAAA8D,iBAAAA;AAAAA,IAAAhB,OAAAA;AAAAA,EAAAA,IAAA7C,GAmBtB8D,IAAYC,EAAO,IAAI;AAAE,MAAA7D;AAAA,EAAAN,SAAAG,KACOG,IAAA;AAAA,IAAA8D,MACxB;AAAA,IAAKC,QACHlE;AAAAA,EAAAA,GACTH,OAAAG,GAAAH,OAAAM,KAAAA,IAAAN,EAAA,CAAA,GAHgBsE,EAAUJ,GAAK5D,CAG/B,KACaS,EAAegD,CAAK;AAInB,QAAAvD,IAAA,qBAAqBwD,MAAa,WAAb,mBAA2CA,MAAa,UAAb,gBAAA,eAAsD,IAGpHtD,WAAOL,MAAS,YAAT,iBAAA,EAAwC;AAAE,MAAAO;AAAA,EAAAZ,EAAA,CAAA,MAAAiE,KAAAjE,SAAAiD,KACrDrC,IAAA;AAAA,IAAAqD,iBAAAA;AAAAA,IAAAhB,OAAAA;AAAAA,EAAAA,GAGNjD,OAAAiE,GAAAjE,OAAAiD,GAAAjD,OAAAY,KAAAA,IAAAZ,EAAA,CAAA;AAAA,MAAAiB;AAAA,EAAAjB,EAAA,CAAA,MAAAmC,EAAAoC,eAAAvE,EAAA,CAAA,MAAAmC,EAAAqC,SAAAxE,EAAA,CAAA,MAAAU,KAAAV,SAAAY,KALHK,IAAA6C,gBAAAA,EAAAA,KAAA,OAAA,EACa,WAAApD,GACJ,OAAAE,GAKNuB,UAAAA;AAAAA,IAAAA,EAAOqC;AAAAA,IACPrC,EAAOoC;AAAAA,EAAAA,GACV,GAAMvE,EAAA,CAAA,IAAAmC,EAAAoC,aAAAvE,EAAA,CAAA,IAAAmC,EAAAqC,OAAAxE,OAAAU,GAAAV,OAAAY,GAAAZ,OAAAiB,KAAAA,IAAAjB,EAAA,CAAA;AAAA,MAAAqB;AAAA,SAAArB,EAAA,EAAA,MAAAQ,KAAAR,UAAAiB,KAbRI,uCACO6C,KAAAA,GACM,WAAA1D,GAEXS,UAAAA,GAUF,GAAUjB,QAAAQ,GAAAR,QAAAiB,GAAAjB,QAAAqB,KAAAA,IAAArB,EAAA,EAAA,GAdVqB;AAcU;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-DDoeWRVt.cjs"),f=require("react"),wt=require("./index-DQA8q5sC.cjs"),bt=require("./Modal-tXZlLE5s.cjs"),Et=require("./Tooltip-De16GWhY.cjs"),M=require("./Colors.cjs"),xt=require("./numberFormattingFunction-02t-wJta.cjs"),kt=require("./string2HTML-z7CwHXcx.cjs"),N=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),dt=require("./linear-BVckp9RD.cjs"),mt=require("./line-DHV4JwCR.cjs"),Rt=require("./use-in-view-sQJZ_xDO.cjs"),G=require("./proxy-BHRoeZgd.cjs"),Ct=require("./index-BW8iNx7E.cjs"),It=require("./GraphFooter.cjs"),Ot=require("./GraphHeader.cjs"),St=require("./EmptyState-d8_8SxeW.cjs"),Nt=require("./ColorLegendWithMouseOver.cjs"),pt=require("./uniqBy-O05lp2S5.cjs");var Pt=gt(mt.curveLinear);function ft(t){this._curve=t}ft.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,i){this._curve.point(i*Math.sin(t),i*-Math.cos(t))}};function gt(t){function i(a){return new ft(t(a))}return i._curve=t,i}function qt(t){var i=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(a){return arguments.length?i(gt(a)):i()._curve},t}function Tt(){return qt(mt.line().curve(Pt))}function it(){}function ht(t,i,a){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-i),t._y2+t._k*(t._y1-a),t._x2,t._y2)}function _t(t,i){this._context=t,this._k=(1-i)/6}_t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ht(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:ht(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};(function t(i){function a(o){return new _t(o,i)}return a.tension=function(o){return t(+o)},a})(0);function yt(t,i){this._context=t,this._k=(1-i)/6}yt.prototype={areaStart:it,areaEnd:it,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:ht(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const Vt=function t(i){function a(o){return new yt(o,i)}return a.tension=function(o){return t(+o)},a}(0);function vt(t){this._context=t}vt.prototype={areaStart:it,areaEnd:it,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}};function $t(t){return new vt(t)}function Dt(t){const{data:i,radius:a,lineColors:o,tooltip:R,onSeriesMouseOver:D,onSeriesMouseClick:j,colorDomain:h,detailsOnClick:w,styles:y,classNames:p,selectedColor:P,axisLabels:U,strokeWidth:X,showValues:nt,showDots:st,rightMargin:ot,topMargin:B,bottomMargin:rt,leftMargin:L,curveType:Y,noOfTicks:z,minValue:q,maxValue:T,resetSelectionOnDoubleClick:at,fillShape:c,highlightedLines:g,animate:x,dimmedOpacity:_,precision:C,customLayers:J}=t,K=f.useRef(null),V=Rt.useInView(K,{once:x.once,amount:x.amount}),b=Y==="linear"?$t:Vt,E={top:B,left:L},v=Math.min((2*a-L-ot)/2,(2*a-B-rt)/2),[k,A]=f.useState(void 0),[I,H]=f.useState(void 0),[Q,F]=f.useState(void 0),[Z,W]=f.useState(void 0),l=dt.linear().domain([0,i[0].values.length]).range([0,2*Math.PI]),tt=N.checkIfNullOrUndefined(T)?Math.max(...i.map(e=>Math.max(...e.values.filter(s=>!N.checkIfNullOrUndefined(s)))))<0?0:Math.max(...i.map(e=>Math.max(...e.values.filter(s=>!N.checkIfNullOrUndefined(s))))):T,lt=N.checkIfNullOrUndefined(q)?Math.min(...i.map(e=>Math.min(...e.values.filter(s=>!N.checkIfNullOrUndefined(s)))))>=0?0:Math.min(...i.map(e=>Math.min(...e.values.filter(s=>!N.checkIfNullOrUndefined(s))))):q,m=dt.linear().domain([lt,tt]).range([0,v]).nice(),ct=m.ticks(z),O=Tt().radius(e=>m(e)).angle((e,s)=>l(s)).curve(b);return n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(G.motion.svg,{width:`${a*2}px`,height:`${a*2}px`,viewBox:`0 0 ${a*2} ${a*2}`,direction:"ltr",ref:K,children:n.jsxRuntimeExports.jsxs("g",{transform:`translate(${E.left},${E.top})`,children:[J.filter(e=>e.position==="before").map(e=>e.layer),n.jsxRuntimeExports.jsxs("g",{transform:`translate(${v},${v})`,children:[U.map((e,s)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{x1:0,y1:0,x2:Math.cos(l(s)-Math.PI/2)*v,y2:Math.sin(l(s)-Math.PI/2)*v,className:n.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",p?.xAxis?.axis),style:y?.xAxis?.axis},s),n.jsxRuntimeExports.jsx("text",{x:Math.cos(l(s)-Math.PI/2)*(v+6),y:Math.sin(l(s)-Math.PI/2)*(v+6),style:{textAnchor:Math.cos(l(s)-Math.PI/2)<0?"end":Math.cos(l(s)-Math.PI/2)<1e-5?"middle":"start",...y?.xAxis?.labels||""},dy:Math.sin(l(s)-Math.PI/2)<0?0:Math.sin(l(s)-Math.PI/2)<1e-5?5:10,className:n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",p?.xAxis?.labels),children:e})]},s)),ct.map((e,s)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("path",{d:O(Array(U.length).fill(e))||"",className:n.mo("stroke-primary-gray-500 dark:stroke-primary-gray-550",p?.xAxis?.gridLines),style:{...y?.xAxis?.gridLines,fill:"none"}}),n.jsxRuntimeExports.jsx("foreignObject",{x:-25,y:Math.sin(-Math.PI/2)*m(e)>-1e-4?Math.sin(-Math.PI/2)*m(e)-7:Math.sin(-Math.PI/2)*m(e)-5,width:50,height:12,children:n.jsxRuntimeExports.jsx("div",{className:"flex justify-center",children:n.jsxRuntimeExports.jsx("p",{className:n.mo("fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700",p?.xAxis?.labels),style:y?.xAxis?.labels,children:xt.numberFormattingFunction(e,"NA",C)})})})]},s)),n.jsxRuntimeExports.jsx(Ct.AnimatePresence,{children:i.map((e,s)=>n.jsxRuntimeExports.jsxs(G.motion.g,{variants:{initial:{opacity:k?e.label===k.label?1:_:P?e.color&&o[h.indexOf(e.color)]===P?1:_:g.length!==0?e.label&&g.indexOf(e.label)!==-1?1:.3:1},whileInView:{opacity:k?e.label===k.label?1:_:P?e.color&&o[h.indexOf(e.color)]===P?1:_:g.length!==0?e.label&&g.indexOf(e.label)!==-1?1:_:1,transition:{duration:x.duration}}},initial:"initial",animate:V?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},onMouseEnter:r=>{A(e),W(r.clientY),F(r.clientX),D?.(e)},onMouseMove:r=>{A(e),W(r.clientY),F(r.clientX)},onMouseLeave:()=>{A(void 0),F(void 0),W(void 0),D?.(void 0)},onClick:()=>{(j||w)&&(wt.isEqual(I,e)&&at?(H(void 0),j?.(void 0)):(H(e),j?.(e)))},children:[n.jsxRuntimeExports.jsx(G.motion.path,{d:O(e.values)||"",variants:{initial:{d:O(e.values.map(r=>0))||"",stroke:i.filter(r=>r.color).length===0?o[0]:e.color?o[h.indexOf(e.color)]:M.Colors.gray,fill:c?i.filter(r=>r.color).length===0?o[0]:e.color?o[h.indexOf(e.color)]:M.Colors.gray:"none",strokeWidth:X},whileInView:{d:O(e.values)||"",transition:{duration:x.duration},stroke:i.filter(r=>r.color).length===0?o[0]:e.color?o[h.indexOf(e.color)]:M.Colors.gray,fill:c?i.filter(r=>r.color).length===0?o[0]:e.color?o[h.indexOf(e.color)]:M.Colors.gray:"none",strokeWidth:X}},initial:"initial",animate:V?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},style:{fillOpacity:.1}}),n.jsxRuntimeExports.jsx("g",{children:e.values.map((r,d)=>n.jsxRuntimeExports.jsx("g",{children:N.checkIfNullOrUndefined(r)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[st?n.jsxRuntimeExports.jsx(G.motion.circle,{r:4,variants:{initial:{cx:0,cy:0,opacity:0,fill:i.filter($=>$.color).length===0?o[0]:e.color?o[h.indexOf(e.color)]:M.Colors.gray},whileInView:{cx:Math.cos(l(d)-Math.PI/2)*m(r),cy:Math.sin(l(d)-Math.PI/2)*m(r),opacity:1,transition:{duration:x.duration},fill:i.filter($=>$.color).length===0?o[0]:e.color?o[h.indexOf(e.color)]:M.Colors.gray}},initial:"initial",animate:V?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}}}):null,nt?n.jsxRuntimeExports.jsx(G.motion.text,{style:{...y?.graphObjectValues||{}},dy:Math.sin(l(d)-Math.PI/2)<0?10:(Math.sin(l(d)-Math.PI/2)<1e-5,0),className:n.mo("graph-value text-xs font-bold",p?.graphObjectValues),variants:{initial:{opacity:0,x:Math.cos(l(d)-Math.PI/2)*(m(r)+6),y:Math.sin(l(d)-Math.PI/2)*(m(r)+6),fill:o[s],textAnchor:Math.cos(l(d)-Math.PI/2)<0?"end":Math.cos(l(d)-Math.PI/2)<1e-5?"middle":"start"},whileInView:{opacity:1,x:Math.cos(l(d)-Math.PI/2)*(m(r)+6),y:Math.sin(l(d)-Math.PI/2)*(m(r)+6),fill:o[s],textAnchor:Math.cos(l(d)-Math.PI/2)<0?"end":Math.cos(l(d)-Math.PI/2)<1e-5?"middle":"start",transition:{duration:x.duration}}},initial:"initial",animate:V?"whileInView":"initial",exit:{opacity:0,transition:{duration:x.duration}},children:xt.numberFormattingFunction(r,"NA",C)}):null]})},d))})]},e.label||s))})]}),J.filter(e=>e.position==="after").map(e=>e.layer)]})}),k&&R&&Q&&Z?n.jsxRuntimeExports.jsx(Et.Tooltip,{data:k,body:R,xPos:Q,yPos:Z,backgroundStyle:y?.tooltip,className:p?.tooltip}):null,w&&I!==void 0?n.jsxRuntimeExports.jsx(bt.X,{open:I!==void 0,onClose:()=>{H(void 0)},children:n.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof w=="string"?{__html:kt.string2HTML(w,I)}:void 0,children:typeof w=="function"?w(I):null})}):null]})}function Lt(t){const{graphTitle:i,colors:a,sources:o,graphDescription:R,footNote:D,radius:j,data:h,showColorScale:w=!0,padding:y,backgroundColor:p=!1,tooltip:P,onSeriesMouseOver:U,graphID:X,onSeriesMouseClick:nt,topMargin:st=75,bottomMargin:ot=75,leftMargin:B=75,rightMargin:rt=75,graphDownload:L=!1,dataDownload:Y=!1,colorDomain:z,language:q="en",theme:T="light",highlightedLines:at=[],width:c,height:g,minHeight:x=0,strokeWidth:_=2,relativeHeight:C,ariaLabel:J,colorLegendTitle:K,detailsOnClick:V,styles:b,classNames:E,showNAColor:v=!0,axisLabels:k,showDots:A=!0,showValues:I=!1,curveType:H="curve",noOfTicks:Q=5,minValue:F,maxValue:Z,fillShape:W=!1,resetSelectionOnDoubleClick:l=!0,animate:tt=!1,dimmedOpacity:lt=.3,precision:m=2,customLayers:ct=[]}=t,[O,e]=f.useState(0),[s,r]=f.useState(0),[d,$]=f.useState(0),[Mt,jt]=f.useState(void 0),S=f.useRef(null),ut=f.useRef(null);return f.useEffect(()=>{const u=new ResizeObserver(et=>{r(c||et[0].target.clientWidth||420),$(g||et[0].target.clientHeight||420),e((Math.min(c||et[0].target.clientWidth||620,g||et[0].target.clientHeight||480)||420)/2)});return S.current&&($(S.current.clientHeight||420),r(S.current.clientWidth||420),e((Math.min(S.current.clientWidth,S.current.clientHeight)||420)/2),(!c||!j)&&u.observe(S.current)),()=>u.disconnect()},[c,g,j]),n.jsxRuntimeExports.jsx("div",{className:`${T||"light"} flex ${c?"w-fit grow-0":"w-full grow"}`,dir:q==="he"||q==="ar"?"rtl":void 0,children:n.jsxRuntimeExports.jsx("div",{className:n.mo(`${p?p===!0?"bg-primary-gray-200 dark:bg-primary-gray-650 ":"":"bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${q||"en"}`,c?"w-fit":"w-full",E?.graphContainer),style:{...b?.graphContainer||{},minHeight:"inherit",...p&&p!==!0?{backgroundColor:p}:{}},id:X,ref:ut,"aria-label":J||`${i?`The graph shows ${i}. `:""}This is a donut or pie chart chart. ${R?` ${R}`:""}`,children:n.jsxRuntimeExports.jsx("div",{className:"flex grow",style:{padding:p?y||"1rem":y||0},children:n.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-2 w-full grow justify-between",children:[i||R||L||Y?n.jsxRuntimeExports.jsx(Ot.GraphHeader,{styles:{title:b?.title,description:b?.description},classNames:{title:E?.title,description:E?.description},graphTitle:i,graphDescription:R,width:c,graphDownload:L?ut.current:void 0,dataDownload:Y?h.map(u=>u.data).filter(u=>u!==void 0).length>0?h.map(u=>u.data).filter(u=>u!==void 0):h.filter(u=>u!==void 0):null}):null,n.jsxRuntimeExports.jsx("div",{className:"flex grow flex-col justify-center items-stretch gap-8 flex-wrap",style:{width:c?`${c}px`:"100%"},children:h.length===0?n.jsxRuntimeExports.jsx(St.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[w&&h.filter(u=>u.color).length!==0?n.jsxRuntimeExports.jsx(Nt.ColorLegendWithMouseOver,{width:c,colorLegendTitle:K,colors:a||M.Colors[T].categoricalColors.colors,colorDomain:z||pt.uniqBy(h,"color",!0),setSelectedColor:jt,showNAColor:v}):null,n.jsxRuntimeExports.jsx("div",{className:`flex ${c?"grow-0":"grow"} items-center justify-center leading-0`,style:{width:c?`${c}px`:"100%",height:g?`${Math.max(x,g||(C?x?(c||s)*C>x?(c||s)*C:x:(c||s)*C:d))}px`:"auto"},ref:S,"aria-label":"Graph area",children:n.jsxRuntimeExports.jsx("div",{className:"w-full flex justify-center leading-0",children:j||O?n.jsxRuntimeExports.jsx(Dt,{data:h,lineColors:h.filter(u=>u.color).length===0?a?[a]:[M.Colors.primaryColors["blue-600"]]:a||M.Colors[T].categoricalColors.colors,radius:j||O,tooltip:P,colorDomain:z||pt.uniqBy(h,"color",!0),onSeriesMouseOver:U,onSeriesMouseClick:nt,styles:b,detailsOnClick:V,selectedColor:Mt,axisLabels:k,strokeWidth:_,showValues:I,showDots:A,topMargin:st,bottomMargin:ot,leftMargin:B,rightMargin:rt,curveType:H,noOfTicks:Q,minValue:F,maxValue:Z,fillShape:W,highlightedLines:at,resetSelectionOnDoubleClick:l,animate:tt===!0?{duration:.5,once:!0,amount:.5}:tt||{duration:0,once:!0,amount:0},dimmedOpacity:lt,precision:m,customLayers:ct}):null})})]})}),o||D?n.jsxRuntimeExports.jsx(It.GraphFooter,{styles:{footnote:b?.footnote,source:b?.source},classNames:{footnote:E?.footnote,source:E?.source},sources:o,footNote:D,width:c}):n.jsxRuntimeExports.jsx("div",{})]})})})})}exports.RadarChart=Lt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),I=require("react"),Ut=require("./index-DQA8q5sC.cjs"),Wt=require("./Modal-JW_IExO3.cjs"),Bt=require("./Tooltip-4dJo4_AF.cjs"),S=require("./Colors.cjs"),Pt=require("./numberFormattingFunction-02t-wJta.cjs"),Xt=require("./string2HTML-CPGr_I5E.cjs"),z=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),St=require("./linear-BwPAspcq.cjs"),Vt=require("./line-DHV4JwCR.cjs"),Yt=require("./use-in-view-QcfiW0w3.cjs"),bt=require("./proxy-BxvUI_9l.cjs"),zt=require("./index-DG2bgAva.cjs"),Jt=require("./GraphFooter.cjs"),Kt=require("./GraphHeader.cjs"),Qt=require("./EmptyState-sAEZ_5rU.cjs"),Zt=require("./ColorLegendWithMouseOver.cjs"),Nt=require("./uniqBy-O05lp2S5.cjs"),At=require("./GraphContainer-d8A46BK2.cjs");var te=qt(Vt.curveLinear);function Lt(e){this._curve=e}Lt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function qt(e){function t(o){return new Lt(e(o))}return t._curve=e,t}function ee(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(o){return arguments.length?t(qt(o)):t()._curve},e}function ie(){return ee(Vt.line().curve(te))}function wt(){}function Ot(e,t,o){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-o),e._x2,e._y2)}function Tt(e,t){this._context=e,this._k=(1-t)/6}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ot(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function o(l){return new Tt(l,t)}return o.tension=function(l){return e(+l)},o})(0);function Dt(e,t){this._context=e,this._k=(1-t)/6}Dt.prototype={areaStart:wt,areaEnd:wt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ne=(function e(t){function o(l){return new Dt(l,t)}return o.tension=function(l){return e(+l)},o})(0);function Ft(e){this._context=e}Ft.prototype={areaStart:wt,areaEnd:wt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function oe(e){return new Ft(e)}function se(e){const t=n.compilerRuntimeExports.c(105),{data:o,radius:l,lineColors:r,tooltip:U,onSeriesMouseOver:W,onSeriesMouseClick:p,colorDomain:g,detailsOnClick:y,styles:c,classNames:u,selectedColor:N,axisLabels:J,strokeWidth:K,showValues:mt,showDots:ft,rightMargin:Q,topMargin:Z,bottomMargin:B,leftMargin:X,curveType:jt,noOfTicks:dt,minValue:E,maxValue:A,resetSelectionOnDoubleClick:V,fillShape:tt,highlightedLines:L,animate:h,dimmedOpacity:_,precision:et,customLayers:C}=e,kt=I.useRef(null);let v;t[0]!==h.amount||t[1]!==h.once?(v={once:h.once,amount:h.amount},t[0]=h.amount,t[1]=h.once,t[2]=v):v=t[2];const f=Yt.useInView(kt,v),gt=jt==="linear"?oe:ne;let it;t[3]!==B||t[4]!==X||t[5]!==Q||t[6]!==Z?(it={top:Z,bottom:B,left:X,right:Q},t[3]=B,t[4]=X,t[5]=Q,t[6]=Z,t[7]=it):it=t[7];const q=it,b=Math.min((2*l-X-Q)/2,(2*l-Z-B)/2),[M,yt]=I.useState(void 0),[j,_t]=I.useState(void 0),[nt,Mt]=I.useState(void 0),[Y,vt]=I.useState(void 0);let T,D,w,F,$,G,R,O,s,P,ot,H,st,rt;if(t[8]!==h.duration||t[9]!==J||t[10]!==u?.graphObjectValues||t[11]!==u?.xAxis?.axis||t[12]!==u?.xAxis?.gridLines||t[13]!==u?.xAxis?.labels||t[14]!==g||t[15]!==gt||t[16]!==C||t[17]!==o||t[18]!==y||t[19]!==_||t[20]!==tt||t[21]!==L||t[22]!==f||t[23]!==r||t[24]!==q.left||t[25]!==q.top||t[26]!==A||t[27]!==E||t[28]!==j||t[29]!==M||t[30]!==dt||t[31]!==p||t[32]!==W||t[33]!==et||t[34]!==l||t[35]!==b||t[36]!==V||t[37]!==N||t[38]!==ft||t[39]!==mt||t[40]!==K||t[41]!==c?.graphObjectValues||t[42]!==c?.xAxis?.axis||t[43]!==c?.xAxis?.gridLines||t[44]!==c?.xAxis?.labels){const a=St.linear().domain([0,o[0].values.length]).range([0,2*Math.PI]);let Ct;t[59]!==o||t[60]!==A?(Ct=z.checkIfNullOrUndefined(A)?Math.max(...o.map(je))<0?0:Math.max(...o.map(ve)):A,t[59]=o,t[60]=A,t[61]=Ct):Ct=t[61];const $t=Ct;let Rt;t[62]!==o||t[63]!==E?(Rt=z.checkIfNullOrUndefined(E)?Math.min(...o.map(_e))>=0?0:Math.min(...o.map(ge)):E,t[62]=o,t[63]=E,t[64]=Rt):Rt=t[64];const Gt=Rt,k=St.linear().domain([Gt,$t]).range([0,b]).nice(),Ht=k.ticks(dt),It=ie().radius(i=>k(i)).angle((i,x)=>a(x)).curve(gt);D=bt.motion.svg,st=`${l*2}px`,rt=`${l*2}px`,w=`0 0 ${l*2} ${l*2}`,F="ltr",$=kt,G="mx-auto",ot=`translate(${q.left},${q.top})`,t[65]!==C?(H=C.filter(de).map(fe),t[65]=C,t[66]=H):H=t[66],O=`translate(${b},${b})`,s=J.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{x1:0,y1:0,x2:Math.cos(a(x)-Math.PI/2)*b,y2:Math.sin(a(x)-Math.PI/2)*b,className:n.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",u?.xAxis?.axis),style:c?.xAxis?.axis},x),n.jsxRuntimeExports.jsx("text",{x:Math.cos(a(x)-Math.PI/2)*(b+6),y:Math.sin(a(x)-Math.PI/2)*(b+6),style:{textAnchor:Math.cos(a(x)-Math.PI/2)<0?"end":Math.cos(a(x)-Math.PI/2)<1e-5?"middle":"start",...c?.xAxis?.labels||""},dy:Math.sin(a(x)-Math.PI/2)<0?0:Math.sin(a(x)-Math.PI/2)<1e-5?5:10,className:n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",u?.xAxis?.labels),children:i})]},x)),P=Ht.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("path",{d:It(Array(J.length).fill(i))||"",className:n.mo("stroke-primary-gray-500 dark:stroke-primary-gray-550",u?.xAxis?.gridLines),style:{...c?.xAxis?.gridLines,fill:"none"}}),n.jsxRuntimeExports.jsx("foreignObject",{x:-25,y:Math.sin(-Math.PI/2)*k(i)>-1e-4?Math.sin(-Math.PI/2)*k(i)-7:Math.sin(-Math.PI/2)*k(i)-5,width:50,height:12,children:n.jsxRuntimeExports.jsx("div",{className:"flex justify-center",children:n.jsxRuntimeExports.jsx("p",{className:n.mo("fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700",u?.xAxis?.labels),style:c?.xAxis?.labels,children:Pt.numberFormattingFunction(i,"NA",et)})})})]},x)),T=zt.AnimatePresence,R=o.map((i,x)=>n.jsxRuntimeExports.jsxs(bt.motion.g,{variants:{initial:{opacity:M?i.label===M.label?1:_:N?i.color&&r[g.indexOf(i.color)]===N?1:_:L.length!==0?i.label&&L.indexOf(i.label)!==-1?1:.3:1},whileInView:{opacity:M?i.label===M.label?1:_:N?i.color&&r[g.indexOf(i.color)]===N?1:_:L.length!==0?i.label&&L.indexOf(i.label)!==-1?1:_:1,transition:{duration:h.duration}}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},onMouseEnter:m=>{yt(i),vt(m.clientY),Mt(m.clientX),W?.(i)},onMouseMove:m=>{yt(i),vt(m.clientY),Mt(m.clientX)},onMouseLeave:()=>{yt(void 0),Mt(void 0),vt(void 0),W?.(void 0)},onClick:()=>{(p||y)&&(Ut.isEqual(j,i)&&V?(_t(void 0),p?.(void 0)):(_t(i),p?.(i)))},children:[n.jsxRuntimeExports.jsx(bt.motion.path,{d:It(i.values)||"",variants:{initial:{d:It(i.values.map(me))||"",stroke:o.filter(pe).length===0?r[0]:i.color?r[g.indexOf(i.color)]:S.Colors.gray,fill:tt?o.filter(xe).length===0?r[0]:i.color?r[g.indexOf(i.color)]:S.Colors.gray:"none",strokeWidth:K},whileInView:{d:It(i.values)||"",transition:{duration:h.duration},stroke:o.filter(he).length===0?r[0]:i.color?r[g.indexOf(i.color)]:S.Colors.gray,fill:tt?o.filter(ue).length===0?r[0]:i.color?r[g.indexOf(i.color)]:S.Colors.gray:"none",strokeWidth:K}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},style:{fillOpacity:.1}}),n.jsxRuntimeExports.jsx("g",{children:i.values.map((m,d)=>n.jsxRuntimeExports.jsx("g",{children:z.checkIfNullOrUndefined(m)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[ft?n.jsxRuntimeExports.jsx(bt.motion.circle,{r:4,variants:{initial:{cx:0,cy:0,opacity:0,fill:o.filter(ce).length===0?r[0]:i.color?r[g.indexOf(i.color)]:S.Colors.gray},whileInView:{cx:Math.cos(a(d)-Math.PI/2)*k(m),cy:Math.sin(a(d)-Math.PI/2)*k(m),opacity:1,transition:{duration:h.duration},fill:o.filter(le).length===0?r[0]:i.color?r[g.indexOf(i.color)]:S.Colors.gray}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}}}):null,mt?n.jsxRuntimeExports.jsx(bt.motion.text,{style:{...c?.graphObjectValues||{}},dy:Math.sin(a(d)-Math.PI/2)<0?10:(Math.sin(a(d)-Math.PI/2)<1e-5,0),className:n.mo("graph-value text-xs font-bold",u?.graphObjectValues),variants:{initial:{opacity:0,x:Math.cos(a(d)-Math.PI/2)*(k(m)+6),y:Math.sin(a(d)-Math.PI/2)*(k(m)+6),fill:r[x],textAnchor:Math.cos(a(d)-Math.PI/2)<0?"end":Math.cos(a(d)-Math.PI/2)<1e-5?"middle":"start"},whileInView:{opacity:1,x:Math.cos(a(d)-Math.PI/2)*(k(m)+6),y:Math.sin(a(d)-Math.PI/2)*(k(m)+6),fill:r[x],textAnchor:Math.cos(a(d)-Math.PI/2)<0?"end":Math.cos(a(d)-Math.PI/2)<1e-5?"middle":"start",transition:{duration:h.duration}}},initial:"initial",animate:f?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:Pt.numberFormattingFunction(m,"NA",et)}):null]})},d))})]},i.label||x)),t[8]=h.duration,t[9]=J,t[10]=u?.graphObjectValues,t[11]=u?.xAxis?.axis,t[12]=u?.xAxis?.gridLines,t[13]=u?.xAxis?.labels,t[14]=g,t[15]=gt,t[16]=C,t[17]=o,t[18]=y,t[19]=_,t[20]=tt,t[21]=L,t[22]=f,t[23]=r,t[24]=q.left,t[25]=q.top,t[26]=A,t[27]=E,t[28]=j,t[29]=M,t[30]=dt,t[31]=p,t[32]=W,t[33]=et,t[34]=l,t[35]=b,t[36]=V,t[37]=N,t[38]=ft,t[39]=mt,t[40]=K,t[41]=c?.graphObjectValues,t[42]=c?.xAxis?.axis,t[43]=c?.xAxis?.gridLines,t[44]=c?.xAxis?.labels,t[45]=T,t[46]=D,t[47]=w,t[48]=F,t[49]=$,t[50]=G,t[51]=R,t[52]=O,t[53]=s,t[54]=P,t[55]=ot,t[56]=H,t[57]=st,t[58]=rt}else T=t[45],D=t[46],w=t[47],F=t[48],$=t[49],G=t[50],R=t[51],O=t[52],s=t[53],P=t[54],ot=t[55],H=t[56],st=t[57],rt=t[58];let at;t[67]!==T||t[68]!==R?(at=n.jsxRuntimeExports.jsx(T,{children:R}),t[67]=T,t[68]=R,t[69]=at):at=t[69];let lt;t[70]!==at||t[71]!==O||t[72]!==s||t[73]!==P?(lt=n.jsxRuntimeExports.jsxs("g",{transform:O,children:[s,P,at]}),t[70]=at,t[71]=O,t[72]=s,t[73]=P,t[74]=lt):lt=t[74];let ct;t[75]!==C?(ct=C.filter(ae).map(re),t[75]=C,t[76]=ct):ct=t[76];let ut;t[77]!==lt||t[78]!==ct||t[79]!==ot||t[80]!==H?(ut=n.jsxRuntimeExports.jsxs("g",{transform:ot,children:[H,lt,ct]}),t[77]=lt,t[78]=ct,t[79]=ot,t[80]=H,t[81]=ut):ut=t[81];let ht;t[82]!==D||t[83]!==w||t[84]!==F||t[85]!==$||t[86]!==G||t[87]!==ut||t[88]!==st||t[89]!==rt?(ht=n.jsxRuntimeExports.jsx(D,{width:st,height:rt,viewBox:w,direction:F,ref:$,className:G,children:ut}),t[82]=D,t[83]=w,t[84]=F,t[85]=$,t[86]=G,t[87]=ut,t[88]=st,t[89]=rt,t[90]=ht):ht=t[90];let xt;t[91]!==u?.tooltip||t[92]!==nt||t[93]!==Y||t[94]!==M||t[95]!==c?.tooltip||t[96]!==U?(xt=M&&U&&nt&&Y?n.jsxRuntimeExports.jsx(Bt.Tooltip,{data:M,body:U,xPos:nt,yPos:Y,backgroundStyle:c?.tooltip,className:u?.tooltip}):null,t[91]=u?.tooltip,t[92]=nt,t[93]=Y,t[94]=M,t[95]=c?.tooltip,t[96]=U,t[97]=xt):xt=t[97];let pt;t[98]!==y||t[99]!==j?(pt=y&&j!==void 0?n.jsxRuntimeExports.jsx(Wt.le,{open:j!==void 0,onClose:()=>{_t(void 0)},children:n.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof y=="string"?{__html:Xt.string2HTML(y,j)}:void 0,children:typeof y=="function"?y(j):null})}):null,t[98]=y,t[99]=j,t[100]=pt):pt=t[100];let Et;return t[101]!==ht||t[102]!==xt||t[103]!==pt?(Et=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[ht,xt,pt]}),t[101]=ht,t[102]=xt,t[103]=pt,t[104]=Et):Et=t[104],Et}function re(e){return e.layer}function ae(e){return e.position==="after"}function le(e){return e.color}function ce(e){return e.color}function ue(e){return e.color}function he(e){return e.color}function xe(e){return e.color}function pe(e){return e.color}function me(e){return 0}function fe(e){return e.layer}function de(e){return e.position==="before"}function ge(e){return Math.min(...e.values.filter(ye))}function ye(e){return!z.checkIfNullOrUndefined(e)}function _e(e){return Math.min(...e.values.filter(Me))}function Me(e){return!z.checkIfNullOrUndefined(e)}function ve(e){return Math.max(...e.values.filter(be))}function be(e){return!z.checkIfNullOrUndefined(e)}function je(e){return Math.max(...e.values.filter(ke))}function ke(e){return!z.checkIfNullOrUndefined(e)}function Ee(e){const{graphTitle:t,colors:o,sources:l,graphDescription:r,footNote:U,radius:W,data:p,showColorScale:g=!0,padding:y,backgroundColor:c=!1,tooltip:u,onSeriesMouseOver:N,graphID:J,onSeriesMouseClick:K,topMargin:mt=75,bottomMargin:ft=75,leftMargin:Q=75,rightMargin:Z=75,graphDownload:B=!1,dataDownload:X=!1,colorDomain:jt,language:dt="en",theme:E="light",highlightedLines:A=[],width:V,height:tt,minHeight:L=0,strokeWidth:h=2,relativeHeight:_,ariaLabel:et,colorLegendTitle:C,detailsOnClick:kt,styles:v,classNames:f,showNAColor:gt=!0,axisLabels:it,showDots:q=!0,showValues:b=!1,curveType:M="curve",noOfTicks:yt=5,minValue:j,maxValue:_t,fillShape:nt=!1,resetSelectionOnDoubleClick:Mt=!0,animate:Y=!1,dimmedOpacity:vt=.3,precision:T=2,customLayers:D=[]}=e,[w,F]=I.useState(0),[$,G]=I.useState(void 0),R=I.useRef(null),O=I.useRef(null);return I.useEffect(()=>{const s=new ResizeObserver(P=>{F((Math.min(P[0].target.clientWidth||620,P[0].target.clientHeight||480,W||1/0)||420)/2)});return R.current&&s.observe(R.current),()=>s.disconnect()},[W]),n.jsxRuntimeExports.jsxs(At.GraphContainer,{className:f?.graphContainer,style:v?.graphContainer,id:J,ref:O,"aria-label":et,backgroundColor:c,theme:E,language:dt,minHeight:L,width:V,height:tt,relativeHeight:_,padding:y,children:[t||r||B||X?n.jsxRuntimeExports.jsx(Kt.GraphHeader,{styles:{title:v?.title,description:v?.description},classNames:{title:f?.title,description:f?.description},graphTitle:t,graphDescription:r,width:V,graphDownload:B?O:void 0,dataDownload:X?p.map(s=>s.data).filter(s=>s!==void 0).length>0?p.map(s=>s.data).filter(s=>s!==void 0):p.filter(s=>s!==void 0):null}):null,p.length===0?n.jsxRuntimeExports.jsx(Qt.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[g&&p.filter(s=>s.color).length!==0?n.jsxRuntimeExports.jsx(Zt.ColorLegendWithMouseOver,{width:V,colorLegendTitle:C,colors:o||S.Colors[E].categoricalColors.colors,colorDomain:jt||Nt.uniqBy(p,"color",!0),setSelectedColor:G,showNAColor:gt,className:f?.colorLegend,isCenter:!0}):null,n.jsxRuntimeExports.jsx(At.GraphArea,{ref:R,children:w?n.jsxRuntimeExports.jsx(se,{data:p,lineColors:p.filter(s=>s.color).length===0?o?[o]:[S.Colors.primaryColors["blue-600"]]:o||S.Colors[E].categoricalColors.colors,radius:w,tooltip:u,colorDomain:jt||Nt.uniqBy(p,"color",!0),onSeriesMouseOver:N,onSeriesMouseClick:K,styles:v,detailsOnClick:kt,selectedColor:$,axisLabels:it,strokeWidth:h,showValues:b,showDots:q,topMargin:mt,bottomMargin:ft,leftMargin:Q,rightMargin:Z,curveType:M,noOfTicks:yt,minValue:j,maxValue:_t,fillShape:nt,highlightedLines:A,resetSelectionOnDoubleClick:Mt,animate:Y===!0?{duration:.5,once:!0,amount:.5}:Y||{duration:0,once:!0,amount:0},dimmedOpacity:vt,precision:T,customLayers:D}):null})]}),l||U?n.jsxRuntimeExports.jsx(Jt.GraphFooter,{styles:{footnote:v?.footnote,source:v?.source},classNames:{footnote:f?.footnote,source:f?.source},sources:l,footNote:U,width:V}):null]})}exports.RadarChart=Ee;
2
2
  //# sourceMappingURL=RadarChart.cjs.map