@undp/data-viz 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +11 -9
  4. package/dist/AreaChart.js +320 -322
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/BarGraph.cjs +1 -1
  7. package/dist/BarGraph.cjs.map +1 -1
  8. package/dist/BarGraph.d.ts +15 -25
  9. package/dist/BarGraph.js +1694 -1694
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.cjs.map +1 -1
  13. package/dist/BasicStatCard.d.ts +13 -9
  14. package/dist/BasicStatCard.js +79 -81
  15. package/dist/BasicStatCard.js.map +1 -1
  16. package/dist/BeeSwarmChart.cjs +1 -1
  17. package/dist/BeeSwarmChart.cjs.map +1 -1
  18. package/dist/BeeSwarmChart.d.ts +11 -9
  19. package/dist/BeeSwarmChart.js +335 -336
  20. package/dist/BeeSwarmChart.js.map +1 -1
  21. package/dist/BiVariateChoroplethMap.cjs +1 -1
  22. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  23. package/dist/BiVariateChoroplethMap.d.ts +13 -3
  24. package/dist/BiVariateChoroplethMap.js +247 -245
  25. package/dist/BiVariateChoroplethMap.js.map +1 -1
  26. package/dist/BulletChart.cjs +1 -1
  27. package/dist/BulletChart.cjs.map +1 -1
  28. package/dist/BulletChart.d.ts +11 -5
  29. package/dist/BulletChart.js +560 -559
  30. package/dist/BulletChart.js.map +1 -1
  31. package/dist/ButterflyChart.cjs +1 -1
  32. package/dist/ButterflyChart.cjs.map +1 -1
  33. package/dist/ButterflyChart.d.ts +11 -9
  34. package/dist/ButterflyChart.js +348 -350
  35. package/dist/ButterflyChart.js.map +1 -1
  36. package/dist/ChoroplethMap.cjs +1 -1
  37. package/dist/ChoroplethMap.cjs.map +1 -1
  38. package/dist/ChoroplethMap.d.ts +11 -3
  39. package/dist/ChoroplethMap.js +213 -213
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.d.ts +11 -9
  43. package/dist/CirclePackingGraph.js +1 -1
  44. package/dist/DataCards.cjs +1 -1
  45. package/dist/DataCards.d.ts +1 -1
  46. package/dist/DataCards.js +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.cjs.map +1 -1
  49. package/dist/DataTable.d.ts +4 -5
  50. package/dist/DataTable.js +114 -116
  51. package/dist/DataTable.js.map +1 -1
  52. package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
  53. package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
  54. package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
  55. package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
  56. package/dist/DifferenceLineChart.cjs +1 -1
  57. package/dist/DifferenceLineChart.cjs.map +1 -1
  58. package/dist/DifferenceLineChart.d.ts +11 -9
  59. package/dist/DifferenceLineChart.js +502 -504
  60. package/dist/DifferenceLineChart.js.map +1 -1
  61. package/dist/DonutChart.cjs +1 -1
  62. package/dist/DonutChart.cjs.map +1 -1
  63. package/dist/DonutChart.d.ts +14 -9
  64. package/dist/DonutChart.js +174 -179
  65. package/dist/DonutChart.js.map +1 -1
  66. package/dist/DotDensityMap.cjs +1 -1
  67. package/dist/DotDensityMap.d.ts +1 -1
  68. package/dist/DotDensityMap.js +2 -2
  69. package/dist/DualAxisLineChart.cjs +1 -1
  70. package/dist/DualAxisLineChart.cjs.map +1 -1
  71. package/dist/DualAxisLineChart.d.ts +13 -9
  72. package/dist/DualAxisLineChart.js +341 -351
  73. package/dist/DualAxisLineChart.js.map +1 -1
  74. package/dist/DumbbellChart.cjs +1 -1
  75. package/dist/DumbbellChart.cjs.map +1 -1
  76. package/dist/DumbbellChart.d.ts +11 -9
  77. package/dist/DumbbellChart.js +592 -593
  78. package/dist/DumbbellChart.js.map +1 -1
  79. package/dist/GeoHubCompareMaps.cjs +1 -1
  80. package/dist/GeoHubCompareMaps.d.ts +1 -1
  81. package/dist/GeoHubCompareMaps.js +1 -1
  82. package/dist/GeoHubMap.cjs +1 -1
  83. package/dist/GeoHubMap.d.ts +1 -1
  84. package/dist/GeoHubMap.js +1 -1
  85. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  86. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  88. package/dist/GraphEl-B7x5ku_y.cjs +2 -0
  89. package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
  90. package/dist/GraphEl-B8tGXqWk.js +1829 -0
  91. package/dist/GraphEl-B8tGXqWk.js.map +1 -0
  92. package/dist/GriddedGraphs.cjs +1 -1
  93. package/dist/GriddedGraphs.d.ts +28 -16
  94. package/dist/GriddedGraphs.js +1 -1
  95. package/dist/GriddedGraphsFromConfig.d.ts +28 -16
  96. package/dist/HeatMap.cjs +1 -1
  97. package/dist/HeatMap.cjs.map +1 -1
  98. package/dist/HeatMap.d.ts +11 -9
  99. package/dist/HeatMap.js +203 -205
  100. package/dist/HeatMap.js.map +1 -1
  101. package/dist/Histogram.cjs +1 -1
  102. package/dist/Histogram.cjs.map +1 -1
  103. package/dist/Histogram.d.ts +11 -5
  104. package/dist/Histogram.js +88 -89
  105. package/dist/Histogram.js.map +1 -1
  106. package/dist/HybridMap.cjs +1 -1
  107. package/dist/HybridMap.cjs.map +1 -1
  108. package/dist/HybridMap.d.ts +11 -3
  109. package/dist/HybridMap.js +279 -279
  110. package/dist/HybridMap.js.map +1 -1
  111. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  112. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  113. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  114. package/dist/LineChartWithConfidenceInterval.js +393 -395
  115. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  116. package/dist/LinearColorLegend.cjs +1 -1
  117. package/dist/LinearColorLegend.js +1 -1
  118. package/dist/MultiGraphDashboard.d.ts +28 -16
  119. package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
  120. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  121. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  122. package/dist/MultiLineAltChart.cjs +1 -1
  123. package/dist/MultiLineAltChart.cjs.map +1 -1
  124. package/dist/MultiLineAltChart.d.ts +11 -9
  125. package/dist/MultiLineAltChart.js +411 -413
  126. package/dist/MultiLineAltChart.js.map +1 -1
  127. package/dist/MultiLineChart.cjs +1 -1
  128. package/dist/MultiLineChart.cjs.map +1 -1
  129. package/dist/MultiLineChart.d.ts +11 -9
  130. package/dist/MultiLineChart.js +438 -440
  131. package/dist/MultiLineChart.js.map +1 -1
  132. package/dist/ParetoChart.cjs +1 -1
  133. package/dist/ParetoChart.cjs.map +1 -1
  134. package/dist/ParetoChart.d.ts +13 -13
  135. package/dist/ParetoChart.js +347 -355
  136. package/dist/ParetoChart.js.map +1 -1
  137. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
  138. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
  139. package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
  140. package/dist/RadarChart.cjs +1 -1
  141. package/dist/RadarChart.cjs.map +1 -1
  142. package/dist/RadarChart.d.ts +11 -5
  143. package/dist/RadarChart.js +213 -213
  144. package/dist/RadarChart.js.map +1 -1
  145. package/dist/SankeyChart.cjs +1 -1
  146. package/dist/SankeyChart.cjs.map +1 -1
  147. package/dist/SankeyChart.d.ts +11 -9
  148. package/dist/SankeyChart.js +448 -450
  149. package/dist/SankeyChart.js.map +1 -1
  150. package/dist/ScatterPlot.cjs +1 -1
  151. package/dist/ScatterPlot.cjs.map +1 -1
  152. package/dist/ScatterPlot.d.ts +13 -13
  153. package/dist/ScatterPlot.js +490 -498
  154. package/dist/ScatterPlot.js.map +1 -1
  155. package/dist/ScrollStory.d.ts +28 -16
  156. package/dist/SimpleLineChart.cjs +1 -1
  157. package/dist/SimpleLineChart.cjs.map +1 -1
  158. package/dist/SimpleLineChart.d.ts +11 -9
  159. package/dist/SimpleLineChart.js +362 -364
  160. package/dist/SimpleLineChart.js.map +1 -1
  161. package/dist/SingleGraphDashboard.cjs +1 -1
  162. package/dist/SingleGraphDashboard.d.ts +28 -16
  163. package/dist/SingleGraphDashboard.js +1 -1
  164. package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
  165. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
  166. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
  167. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  168. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  169. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
  170. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  171. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
  173. package/dist/SlopeChart.cjs +1 -1
  174. package/dist/SlopeChart.d.ts +1 -1
  175. package/dist/SlopeChart.js +2 -2
  176. package/dist/SparkLine.cjs +1 -1
  177. package/dist/SparkLine.d.ts +1 -1
  178. package/dist/SparkLine.js +1 -1
  179. package/dist/StatCardFromData.cjs +1 -1
  180. package/dist/StatCardFromData.cjs.map +1 -1
  181. package/dist/StatCardFromData.d.ts +11 -9
  182. package/dist/StatCardFromData.js +113 -116
  183. package/dist/StatCardFromData.js.map +1 -1
  184. package/dist/StripChart.cjs +1 -1
  185. package/dist/StripChart.cjs.map +1 -1
  186. package/dist/StripChart.d.ts +11 -9
  187. package/dist/StripChart.js +434 -435
  188. package/dist/StripChart.js.map +1 -1
  189. package/dist/ThreeDGlobe.cjs +1 -1
  190. package/dist/ThreeDGlobe.cjs.map +1 -1
  191. package/dist/ThreeDGlobe.d.ts +11 -3
  192. package/dist/ThreeDGlobe.js +143 -143
  193. package/dist/ThreeDGlobe.js.map +1 -1
  194. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  195. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  196. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  197. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  198. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  199. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  200. package/dist/TreeMapGraph.cjs +1 -1
  201. package/dist/TreeMapGraph.cjs.map +1 -1
  202. package/dist/TreeMapGraph.d.ts +11 -9
  203. package/dist/TreeMapGraph.js +369 -371
  204. package/dist/TreeMapGraph.js.map +1 -1
  205. package/dist/Types.d.ts +28 -16
  206. package/dist/UnitChart.cjs +1 -1
  207. package/dist/UnitChart.cjs.map +1 -1
  208. package/dist/UnitChart.d.ts +11 -5
  209. package/dist/UnitChart.js +118 -119
  210. package/dist/UnitChart.js.map +1 -1
  211. package/dist/WaterfallChart.cjs +1 -1
  212. package/dist/WaterfallChart.cjs.map +1 -1
  213. package/dist/WaterfallChart.d.ts +11 -9
  214. package/dist/WaterfallChart.js +306 -308
  215. package/dist/WaterfallChart.js.map +1 -1
  216. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  217. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  218. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  219. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  220. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  221. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  222. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  223. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  224. package/dist/index-BPyj_6hG.js +375 -0
  225. package/dist/index-BPyj_6hG.js.map +1 -0
  226. package/dist/index-DuLvdHo2.cjs +2 -0
  227. package/dist/index-DuLvdHo2.cjs.map +1 -0
  228. package/dist/index.cjs +1 -1
  229. package/dist/index.d.ts +105 -245
  230. package/dist/index.js +2 -2
  231. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  232. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  233. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  234. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  235. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  236. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  237. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  238. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  239. package/dist/utils.cjs +1 -1
  240. package/dist/utils.d.ts +1 -1
  241. package/dist/utils.js +1 -1
  242. package/package.json +2 -2
  243. package/dist/GraphEl-B73N4RIA.js +0 -1906
  244. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  245. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  246. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  247. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  248. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  249. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  250. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  251. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  252. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  253. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  254. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  255. package/dist/index-B0Awa_de.js +0 -377
  256. package/dist/index-B0Awa_de.js.map +0 -1
  257. package/dist/index-CP8cmNzt.cjs +0 -2
  258. package/dist/index-CP8cmNzt.cjs.map +0 -1
  259. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  260. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  261. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  262. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
package/dist/HeatMap.js CHANGED
@@ -1,290 +1,288 @@
1
- import { c as Ut, j as o, m as Kt } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as Wt, useState as mt, useEffect as Qt } from "react";
1
+ import { c as Gt, j as l, m as Xt } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as Tt, useState as pt, useEffect as Yt } from "react";
3
3
  import { i as Zt } from "./index-Bwrro8-q.js";
4
- import { n as _t } from "./numberFormattingFunction-DqMf_v1m.js";
5
- import { T as te } from "./Tooltip-Bj-s__cI.js";
6
- import { g as ee } from "./getTextColorBasedOnBgColor-CDY808zi.js";
7
- import { c as Bt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
- import { X as oe } from "./XAxesLabels-B9gkjUiC.js";
9
- import { Y as ie } from "./YAxesLabels-hWEUCTvs.js";
10
- import { u as Pt } from "./uniqBy-BHy4I8PK.js";
11
- import { D as le } from "./DetailsModal-B2XBWR7w.js";
12
- import { b as zt } from "./band-DYty33LD.js";
13
- import { o as re } from "./ordinal-CHaxGJ_l.js";
14
- import { t as se } from "./threshold-DFfqcDMa.js";
15
- import { a as ae } from "./linear-DNXM5Pdl.js";
16
- import { m as It } from "./proxy-BsxtcZKa.js";
17
- import { u as ne } from "./use-in-view-KOXq5Kmc.js";
18
- import { GraphHeader as ce } from "./GraphHeader.js";
19
- import { GraphFooter as ue } from "./GraphFooter.js";
20
- import { ColorLegendWithMouseOver as me } from "./ColorLegendWithMouseOver.js";
21
- import { LinearColorLegend as he } from "./LinearColorLegend.js";
22
- import { ThresholdColorLegendWithMouseOver as de } from "./ThresholdColorLegendWithMouseOver.js";
23
- import { Colors as g } from "./Colors.js";
24
- import { E as ge } from "./EmptyState-CaxXCkiN.js";
25
- import { a as pe, G as fe } from "./GraphContainer-B8ZqOzKI.js";
26
- function xe(u) {
27
- const t = Ut.c(87), {
28
- data: a,
4
+ import { n as Ft } from "./numberFormattingFunction-BUUV_luR.js";
5
+ import { T as Pt } from "./Tooltip-3EYDVa3w.js";
6
+ import { g as zt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
7
+ import { c as Et } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
+ import { X as Ut } from "./XAxesLabels-B9gkjUiC.js";
9
+ import { Y as Jt } from "./YAxesLabels-hWEUCTvs.js";
10
+ import { u as Wt } from "./uniqBy-BHy4I8PK.js";
11
+ import { D as Kt } from "./DetailsModal-GqEbGHY2.js";
12
+ import { b as Bt } from "./band-DYty33LD.js";
13
+ import { o as Qt } from "./ordinal-CHaxGJ_l.js";
14
+ import { t as _t } from "./threshold-DFfqcDMa.js";
15
+ import { a as te } from "./linear-DNXM5Pdl.js";
16
+ import { m as Ht } from "./proxy-BsxtcZKa.js";
17
+ import { u as ee } from "./use-in-view-KOXq5Kmc.js";
18
+ import { GraphHeader as oe } from "./GraphHeader.js";
19
+ import { GraphFooter as le } from "./GraphFooter.js";
20
+ import { ColorLegendWithMouseOver as ie } from "./ColorLegendWithMouseOver.js";
21
+ import { LinearColorLegend as re } from "./LinearColorLegend.js";
22
+ import { ThresholdColorLegendWithMouseOver as se } from "./ThresholdColorLegendWithMouseOver.js";
23
+ import { Colors as f } from "./Colors.js";
24
+ import { E as ae } from "./EmptyState-CaxXCkiN.js";
25
+ import { a as ne, G as ce } from "./GraphContainer-B8ZqOzKI.js";
26
+ function ue(m) {
27
+ const t = Gt.c(88), {
28
+ data: n,
29
29
  showColumnLabels: z,
30
30
  leftMargin: v,
31
31
  rightMargin: U,
32
- truncateBy: b,
32
+ truncateBy: w,
33
33
  width: J,
34
34
  height: K,
35
- topMargin: ht,
36
- bottomMargin: dt,
35
+ topMargin: gt,
36
+ bottomMargin: ft,
37
37
  tooltip: Q,
38
- onSeriesMouseOver: s,
39
- suffix: Mt,
38
+ onSeriesMouseOver: a,
39
+ suffix: Ot,
40
40
  prefix: r,
41
- showValues: Z,
42
- colorDomain: w,
43
- colors: I,
44
- noDataColor: lt,
45
- scaleType: rt,
46
- showRowLabels: gt,
47
- selectedColor: _,
48
- onSeriesMouseClick: W,
49
- resetSelectionOnDoubleClick: pt,
50
- detailsOnClick: D,
41
+ showValues: _,
42
+ colorDomain: j,
43
+ colors: X,
44
+ noDataColor: et,
45
+ scaleType: ot,
46
+ showRowLabels: xt,
47
+ selectedColor: tt,
48
+ onSeriesMouseClick: Y,
49
+ resetSelectionOnDoubleClick: vt,
50
+ detailsOnClick: $,
51
51
  styles: d,
52
- classNames: c,
53
- animate: h,
54
- precision: st,
55
- locale: ft
56
- } = u, Ot = Wt(null);
57
- let tt;
58
- t[0] !== h.amount || t[1] !== h.once ? (tt = {
59
- once: h.once,
60
- amount: h.amount
61
- }, t[0] = h.amount, t[1] = h.once, t[2] = tt) : tt = t[2];
62
- const B = ne(Ot, tt);
63
- let at;
64
- t[3] !== dt || t[4] !== v || t[5] !== U || t[6] !== ht ? (at = {
65
- top: ht,
66
- bottom: dt,
52
+ classNames: u,
53
+ animate: g,
54
+ precision: yt,
55
+ locale: lt,
56
+ padZeros: Ct
57
+ } = m, Lt = Tt(null);
58
+ let it;
59
+ t[0] !== g.amount || t[1] !== g.once ? (it = {
60
+ once: g.once,
61
+ amount: g.amount
62
+ }, t[0] = g.amount, t[1] = g.once, t[2] = it) : it = t[2];
63
+ const Z = ee(Lt, it);
64
+ let rt;
65
+ t[3] !== ft || t[4] !== v || t[5] !== U || t[6] !== gt ? (rt = {
66
+ top: gt,
67
+ bottom: ft,
67
68
  left: v,
68
69
  right: U
69
- }, t[3] = dt, t[4] = v, t[5] = U, t[6] = ht, t[7] = at) : at = t[7];
70
- const m = at, [M, xt] = mt(void 0), [y, vt] = mt(void 0), [et, yt] = mt(void 0), [ot, n] = mt(void 0), l = J - m.left - m.right, Ct = K - m.top - m.bottom;
71
- let G, X, Y, O, L, N, A, S, V, q, H, T, C;
72
- if (t[8] !== h.duration || t[9] !== c?.graphObjectValues || t[10] !== c?.xAxis?.labels || t[11] !== c?.yAxis?.labels || t[12] !== w || t[13] !== I || t[14] !== a || t[15] !== D || t[16] !== Ct || t[17] !== l || t[18] !== K || t[19] !== B || t[20] !== ft || t[21] !== m.left || t[22] !== m.top || t[23] !== M || t[24] !== y || t[25] !== lt || t[26] !== W || t[27] !== s || t[28] !== st || t[29] !== r || t[30] !== pt || t[31] !== rt || t[32] !== _ || t[33] !== z || t[34] !== gt || t[35] !== Z || t[36] !== d?.graphObjectValues || t[37] !== d?.xAxis?.labels || t[38] !== d?.yAxis?.labels || t[39] !== Mt || t[40] !== b || t[41] !== J) {
73
- const nt = Pt(a, "column", !0), it = Pt(a, "row", !0), F = zt().domain(it).range([0, Ct]), i = F.bandwidth(), P = zt().domain(nt).range([0, l]), R = P.bandwidth(), Lt = rt === "categorical" ? re().domain(w).range(I) : rt === "threshold" ? se().domain(w).range(I) : ae().domain(w).range(I);
74
- G = It.svg, q = `${J}px`, H = `${K}px`, T = `0 0 ${J} ${K}`, t[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
70
+ }, t[3] = ft, t[4] = v, t[5] = U, t[6] = gt, t[7] = rt) : rt = t[7];
71
+ const h = rt, [O, st] = pt(void 0), [y, at] = pt(void 0), [c, i] = pt(void 0), [nt, bt] = pt(void 0), s = J - h.left - h.right, ct = K - h.top - h.bottom;
72
+ let L, N, A, S, V, q, H, x, T, D, k, p, C;
73
+ if (t[8] !== g.duration || t[9] !== u?.graphObjectValues || t[10] !== u?.xAxis?.labels || t[11] !== u?.yAxis?.labels || t[12] !== j || t[13] !== X || t[14] !== n || t[15] !== $ || t[16] !== ct || t[17] !== s || t[18] !== K || t[19] !== Z || t[20] !== lt || t[21] !== h.left || t[22] !== h.top || t[23] !== O || t[24] !== y || t[25] !== et || t[26] !== Y || t[27] !== a || t[28] !== Ct || t[29] !== yt || t[30] !== r || t[31] !== vt || t[32] !== ot || t[33] !== tt || t[34] !== z || t[35] !== xt || t[36] !== _ || t[37] !== d?.graphObjectValues || t[38] !== d?.xAxis?.labels || t[39] !== d?.yAxis?.labels || t[40] !== Ot || t[41] !== w || t[42] !== J) {
74
+ const ut = Wt(n, "column", !0), I = Wt(n, "row", !0), mt = Bt().domain(I).range([0, ct]), W = mt.bandwidth(), ht = Bt().domain(ut).range([0, s]), P = ht.bandwidth(), Nt = ot === "categorical" ? Qt().domain(j).range(X) : ot === "threshold" ? _t().domain(j).range(X) : te().domain(j).range(X);
75
+ L = Ht.svg, D = `${J}px`, k = `${K}px`, p = `0 0 ${J} ${K}`, t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
75
76
  marginLeft: "auto",
76
77
  marginRight: "auto"
77
- }, t[55] = C) : C = t[55], X = "ltr", Y = Ot, O = /* @__PURE__ */ o.jsx("g", { transform: `translate(${m.left},0)`, children: z ? nt.map((e, k) => /* @__PURE__ */ o.jsx(oe, { y: 0, x: P(e), width: R, height: m.top - 5, value: `${e}`.length < b ? `${e}` : `${`${e}`.substring(0, b)}...`, style: d?.xAxis?.labels, className: c?.xAxis?.labels, alignment: "bottom", animate: {
78
+ }, t[56] = C) : C = t[56], N = "ltr", A = Lt, S = /* @__PURE__ */ l.jsx("g", { transform: `translate(${h.left},0)`, children: z ? ut.map((e, B) => /* @__PURE__ */ l.jsx(Ut, { y: 0, x: ht(e), width: P, height: h.top - 5, value: `${e}`.length < w ? `${e}` : `${`${e}`.substring(0, w)}...`, style: d?.xAxis?.labels, className: u?.xAxis?.labels, alignment: "bottom", animate: {
78
79
  duration: 0,
79
80
  once: !0,
80
81
  amount: 0
81
- }, isInView: B }, k)) : null }), L = /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${m.top})`, children: gt ? it.map((e, k) => /* @__PURE__ */ o.jsx(ie, { value: `${e}`.length < b ? `${e}` : `${`${e}`.substring(0, b)}...`, y: F(e), x: 0, width: m.left, height: i, alignment: "right", style: d?.yAxis?.labels, className: c?.yAxis?.labels, animate: {
82
+ }, isInView: Z }, B)) : null }), V = /* @__PURE__ */ l.jsx("g", { transform: `translate(0,${h.top})`, children: xt ? I.map((e, B) => /* @__PURE__ */ l.jsx(Jt, { value: `${e}`.length < w ? `${e}` : `${`${e}`.substring(0, w)}...`, y: mt(e), x: 0, width: h.left, height: W, alignment: "right", style: d?.yAxis?.labels, className: u?.yAxis?.labels, animate: {
82
83
  duration: 0,
83
84
  once: !0,
84
85
  amount: 0
85
- }, isInView: B }, k)) : null }), N = `translate(${m.left},${m.top})`, A = it.map((e, k) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${F(e)})`, children: nt.map((f) => /* @__PURE__ */ o.jsx("rect", { x: P(f), y: 0, width: R, height: i, style: {
86
- fill: lt
87
- }, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700" }, `${e}-${f}`)) }, k)), S = a.filter(ve).map((e, k) => {
88
- const f = Bt(e.value) ? lt : Lt(e.value);
89
- return /* @__PURE__ */ o.jsxs("g", { transform: `translate(${P(e.column)},${F(e.row)})`, onMouseEnter: (ct) => {
90
- vt(e), n(ct.clientY), yt(ct.clientX), s?.(e);
86
+ }, isInView: Z }, B)) : null }), q = `translate(${h.left},${h.top})`, H = I.map((e, B) => /* @__PURE__ */ l.jsx("g", { transform: `translate(0,${mt(e)})`, children: ut.map((b) => /* @__PURE__ */ l.jsx("rect", { x: ht(b), y: 0, width: P, height: W, style: {
87
+ fill: et
88
+ }, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700" }, `${e}-${b}`)) }, B)), x = n.filter(me).map((e, B) => {
89
+ const b = Et(e.value) ? et : Nt(e.value);
90
+ return /* @__PURE__ */ l.jsxs("g", { transform: `translate(${ht(e.column)},${mt(e.row)})`, onMouseEnter: (G) => {
91
+ at(e), bt(G.clientY), i(G.clientX), a?.(e);
91
92
  }, onClick: () => {
92
- (W || D) && (Zt(M, e) && pt ? (xt(void 0), W?.(void 0)) : (xt(e), W?.(e)));
93
- }, onMouseMove: (ct) => {
94
- vt(e), n(ct.clientY), yt(ct.clientX);
93
+ (Y || $) && (Zt(O, e) && vt ? (st(void 0), Y?.(void 0)) : (st(e), Y?.(e)));
94
+ }, onMouseMove: (G) => {
95
+ at(e), bt(G.clientY), i(G.clientX);
95
96
  }, onMouseLeave: () => {
96
- vt(void 0), yt(void 0), n(void 0), s?.(void 0);
97
- }, opacity: _ ? _ === f ? 1 : 0.3 : 1, children: [
98
- /* @__PURE__ */ o.jsx(It.rect, { x: 0, y: 0, width: R, height: i, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700", exit: {
97
+ at(void 0), i(void 0), bt(void 0), a?.(void 0);
98
+ }, opacity: tt ? tt === b ? 1 : 0.3 : 1, children: [
99
+ /* @__PURE__ */ l.jsx(Ht.rect, { x: 0, y: 0, width: P, height: W, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700", exit: {
99
100
  opacity: 0,
100
101
  transition: {
101
- duration: h.duration
102
+ duration: g.duration
102
103
  }
103
104
  }, variants: {
104
105
  initial: {
105
- fill: f,
106
+ fill: b,
106
107
  opacity: 0
107
108
  },
108
109
  whileInView: {
109
- fill: f,
110
+ fill: b,
110
111
  opacity: 1,
111
112
  transition: {
112
- duration: h.duration
113
+ duration: g.duration
113
114
  }
114
115
  }
115
- }, initial: "initial", animate: B ? "whileInView" : "initial" }),
116
- Z && !Bt(e.value) ? /* @__PURE__ */ o.jsx(It.g, { variants: {
116
+ }, initial: "initial", animate: Z ? "whileInView" : "initial" }),
117
+ _ && !Et(e.value) ? /* @__PURE__ */ l.jsx(Ht.g, { variants: {
117
118
  initial: {
118
119
  opacity: 0
119
120
  },
120
121
  whileInView: {
121
122
  opacity: 1,
122
123
  transition: {
123
- duration: h.duration
124
+ duration: g.duration
124
125
  }
125
126
  }
126
- }, initial: "initial", animate: B ? "whileInView" : "initial", exit: {
127
+ }, initial: "initial", animate: Z ? "whileInView" : "initial", exit: {
127
128
  opacity: 0,
128
129
  transition: {
129
- duration: h.duration
130
+ duration: g.duration
130
131
  }
131
- }, children: /* @__PURE__ */ o.jsx("foreignObject", { y: 0, x: 0, width: R, height: i, children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-col justify-center items-center h-inherit p-1", children: /* @__PURE__ */ o.jsx("p", { className: Kt("text-xs text-center m-0 leading-[1.25] graph-value", c?.graphObjectValues), style: {
132
- color: ee(f),
132
+ }, children: /* @__PURE__ */ l.jsx("foreignObject", { y: 0, x: 0, width: P, height: W, children: /* @__PURE__ */ l.jsx("div", { className: "flex flex-col justify-center items-center h-inherit p-1", children: /* @__PURE__ */ l.jsx("p", { className: Xt("text-xs text-center m-0 leading-[1.25] graph-value", u?.graphObjectValues), style: {
133
+ color: zt(b),
133
134
  ...d?.graphObjectValues || {}
134
- }, children: _t(e.value, void 0, st, r, Mt, ft) }) }) }, k) }) : null
135
+ }, children: Ft(e.value, void 0, yt, r, Ot, lt, Ct) }) }) }, B) }) : null
135
136
  ] }, `${e.column}-${e.row}`);
136
- }), V = y ? /* @__PURE__ */ o.jsx("rect", { x: P(y.column), y: F(y.row), width: R, height: i, style: {
137
+ }), T = y ? /* @__PURE__ */ l.jsx("rect", { x: ht(y.column), y: mt(y.row), width: P, height: W, style: {
137
138
  fill: "none",
138
139
  fillOpacity: 0,
139
140
  strokeWidth: 1.5
140
- }, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300" }) : null, t[8] = h.duration, t[9] = c?.graphObjectValues, t[10] = c?.xAxis?.labels, t[11] = c?.yAxis?.labels, t[12] = w, t[13] = I, t[14] = a, t[15] = D, t[16] = Ct, t[17] = l, t[18] = K, t[19] = B, t[20] = ft, t[21] = m.left, t[22] = m.top, t[23] = M, t[24] = y, t[25] = lt, t[26] = W, t[27] = s, t[28] = st, t[29] = r, t[30] = pt, t[31] = rt, t[32] = _, t[33] = z, t[34] = gt, t[35] = Z, t[36] = d?.graphObjectValues, t[37] = d?.xAxis?.labels, t[38] = d?.yAxis?.labels, t[39] = Mt, t[40] = b, t[41] = J, t[42] = G, t[43] = X, t[44] = Y, t[45] = O, t[46] = L, t[47] = N, t[48] = A, t[49] = S, t[50] = V, t[51] = q, t[52] = H, t[53] = T, t[54] = C;
141
+ }, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300" }) : null, t[8] = g.duration, t[9] = u?.graphObjectValues, t[10] = u?.xAxis?.labels, t[11] = u?.yAxis?.labels, t[12] = j, t[13] = X, t[14] = n, t[15] = $, t[16] = ct, t[17] = s, t[18] = K, t[19] = Z, t[20] = lt, t[21] = h.left, t[22] = h.top, t[23] = O, t[24] = y, t[25] = et, t[26] = Y, t[27] = a, t[28] = Ct, t[29] = yt, t[30] = r, t[31] = vt, t[32] = ot, t[33] = tt, t[34] = z, t[35] = xt, t[36] = _, t[37] = d?.graphObjectValues, t[38] = d?.xAxis?.labels, t[39] = d?.yAxis?.labels, t[40] = Ot, t[41] = w, t[42] = J, t[43] = L, t[44] = N, t[45] = A, t[46] = S, t[47] = V, t[48] = q, t[49] = H, t[50] = x, t[51] = T, t[52] = D, t[53] = k, t[54] = p, t[55] = C;
141
142
  } else
142
- G = t[42], X = t[43], Y = t[44], O = t[45], L = t[46], N = t[47], A = t[48], S = t[49], V = t[50], q = t[51], H = t[52], T = t[53], C = t[54];
143
- let x;
144
- t[56] !== N || t[57] !== A || t[58] !== S || t[59] !== V ? (x = /* @__PURE__ */ o.jsxs("g", { transform: N, children: [
145
- A,
146
- S,
147
- V
148
- ] }), t[56] = N, t[57] = A, t[58] = S, t[59] = V, t[60] = x) : x = t[60];
143
+ L = t[43], N = t[44], A = t[45], S = t[46], V = t[47], q = t[48], H = t[49], x = t[50], T = t[51], D = t[52], k = t[53], p = t[54], C = t[55];
144
+ let M;
145
+ t[57] !== q || t[58] !== H || t[59] !== x || t[60] !== T ? (M = /* @__PURE__ */ l.jsxs("g", { transform: q, children: [
146
+ H,
147
+ x,
148
+ T
149
+ ] }), t[57] = q, t[58] = H, t[59] = x, t[60] = T, t[61] = M) : M = t[61];
149
150
  let E;
150
- t[61] !== G || t[62] !== X || t[63] !== Y || t[64] !== O || t[65] !== L || t[66] !== x || t[67] !== q || t[68] !== H || t[69] !== T || t[70] !== C ? (E = /* @__PURE__ */ o.jsxs(G, { width: q, height: H, viewBox: T, style: C, direction: X, ref: Y, children: [
151
- O,
152
- L,
153
- x
154
- ] }), t[61] = G, t[62] = X, t[63] = Y, t[64] = O, t[65] = L, t[66] = x, t[67] = q, t[68] = H, t[69] = T, t[70] = C, t[71] = E) : E = t[71];
155
- let j;
156
- t[72] !== c?.tooltip || t[73] !== et || t[74] !== ot || t[75] !== y || t[76] !== d?.tooltip || t[77] !== Q ? (j = y && Q && et && ot ? /* @__PURE__ */ o.jsx(te, { data: y, body: Q, xPos: et, yPos: ot, backgroundStyle: d?.tooltip, className: c?.tooltip }) : null, t[72] = c?.tooltip, t[73] = et, t[74] = ot, t[75] = y, t[76] = d?.tooltip, t[77] = Q, t[78] = j) : j = t[78];
157
- let $;
158
- t[79] !== c?.modal || t[80] !== D || t[81] !== M ? ($ = D && M !== void 0 ? /* @__PURE__ */ o.jsx(le, { body: D, data: M, setData: xt, className: c?.modal }) : null, t[79] = c?.modal, t[80] = D, t[81] = M, t[82] = $) : $ = t[82];
159
- let p;
160
- return t[83] !== E || t[84] !== j || t[85] !== $ ? (p = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
151
+ t[62] !== L || t[63] !== N || t[64] !== A || t[65] !== S || t[66] !== V || t[67] !== M || t[68] !== D || t[69] !== k || t[70] !== p || t[71] !== C ? (E = /* @__PURE__ */ l.jsxs(L, { width: D, height: k, viewBox: p, style: C, direction: N, ref: A, children: [
152
+ S,
153
+ V,
154
+ M
155
+ ] }), t[62] = L, t[63] = N, t[64] = A, t[65] = S, t[66] = V, t[67] = M, t[68] = D, t[69] = k, t[70] = p, t[71] = C, t[72] = E) : E = t[72];
156
+ let o;
157
+ t[73] !== u?.tooltip || t[74] !== c || t[75] !== nt || t[76] !== y || t[77] !== d?.tooltip || t[78] !== Q ? (o = y && Q && c && nt ? /* @__PURE__ */ l.jsx(Pt, { data: y, body: Q, xPos: c, yPos: nt, backgroundStyle: d?.tooltip, className: u?.tooltip }) : null, t[73] = u?.tooltip, t[74] = c, t[75] = nt, t[76] = y, t[77] = d?.tooltip, t[78] = Q, t[79] = o) : o = t[79];
158
+ let R;
159
+ t[80] !== u?.modal || t[81] !== $ || t[82] !== O ? (R = $ && O !== void 0 ? /* @__PURE__ */ l.jsx(Kt, { body: $, data: O, setData: st, className: u?.modal }) : null, t[80] = u?.modal, t[81] = $, t[82] = O, t[83] = R) : R = t[83];
160
+ let F;
161
+ return t[84] !== E || t[85] !== o || t[86] !== R ? (F = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
161
162
  E,
162
- j,
163
- $
164
- ] }), t[83] = E, t[84] = j, t[85] = $, t[86] = p) : p = t[86], p;
163
+ o,
164
+ R
165
+ ] }), t[84] = E, t[85] = o, t[86] = R, t[87] = F) : F = t[87], F;
165
166
  }
166
- function ve(u) {
167
- return !Bt(u.value);
167
+ function me(m) {
168
+ return !Et(m.value);
168
169
  }
169
- function Ke(u) {
170
- const t = Ut.c(90), {
171
- data: a,
170
+ function Xe(m) {
171
+ const t = Gt.c(91), {
172
+ data: n,
172
173
  graphTitle: z,
173
174
  colors: v,
174
175
  sources: U,
175
- graphDescription: b,
176
+ graphDescription: w,
176
177
  showColumnLabels: J,
177
178
  leftMargin: K,
178
- rightMargin: ht,
179
- truncateBy: dt,
179
+ rightMargin: gt,
180
+ truncateBy: ft,
180
181
  height: Q,
181
- width: s,
182
- scaleType: Mt,
182
+ width: a,
183
+ scaleType: Ot,
183
184
  colorDomain: r,
184
- footNote: Z,
185
- colorLegendTitle: w,
186
- padding: I,
187
- backgroundColor: lt,
188
- topMargin: rt,
189
- bottomMargin: gt,
190
- tooltip: _,
191
- onSeriesMouseOver: W,
192
- suffix: pt,
193
- prefix: D,
194
- showRowLabels: d,
195
- relativeHeight: c,
196
- showValues: h,
197
- graphID: st,
198
- noDataColor: ft,
199
- showColorScale: Ot,
200
- onSeriesMouseClick: tt,
201
- graphDownload: B,
202
- dataDownload: at,
203
- fillContainer: m,
204
- language: M,
205
- showNAColor: xt,
206
- minHeight: y,
207
- theme: vt,
208
- ariaLabel: et,
209
- resetSelectionOnDoubleClick: yt,
210
- detailsOnClick: ot,
211
- styles: n,
212
- classNames: l,
213
- animate: Ct,
214
- precision: G,
215
- locale: X,
216
- naLabel: Y
217
- } = u, O = J === void 0 ? !0 : J, L = K === void 0 ? 100 : K, N = ht === void 0 ? 10 : ht, A = dt === void 0 ? 999 : dt, S = lt === void 0 ? !1 : lt, V = rt === void 0 ? 30 : rt, q = gt === void 0 ? 10 : gt, H = pt === void 0 ? "" : pt, T = D === void 0 ? "" : D, C = d === void 0 ? !0 : d, x = ft === void 0 ? g.gray : ft, E = Ot === void 0 ? !0 : Ot, j = B === void 0 ? !1 : B, $ = at === void 0 ? !1 : at, p = m === void 0 ? !0 : m, nt = M === void 0 ? "en" : M, it = xt === void 0 ? !0 : xt, F = y === void 0 ? 0 : y, i = vt === void 0 ? "light" : vt, P = yt === void 0 ? !0 : yt, R = Ct === void 0 ? !1 : Ct, Lt = G === void 0 ? 2 : G, e = X === void 0 ? "en" : X, k = Y === void 0 ? "NA" : Y, [f, ct] = mt(0), [Nt, Jt] = mt(0), [qt, Gt] = mt(void 0), Ht = Wt(null), Xt = Wt(null);
218
- let At, St;
219
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (At = () => {
220
- const Yt = new ResizeObserver((Ft) => {
221
- ct(Ft[0].target.clientWidth || 620), Jt(Ft[0].target.clientHeight || 480);
185
+ footNote: _,
186
+ colorLegendTitle: j,
187
+ padding: X,
188
+ backgroundColor: et,
189
+ topMargin: ot,
190
+ bottomMargin: xt,
191
+ tooltip: tt,
192
+ onSeriesMouseOver: Y,
193
+ showRowLabels: vt,
194
+ relativeHeight: $,
195
+ showValues: d,
196
+ graphID: u,
197
+ noDataColor: g,
198
+ showColorScale: yt,
199
+ onSeriesMouseClick: lt,
200
+ graphDownload: Ct,
201
+ dataDownload: Lt,
202
+ fillContainer: it,
203
+ language: Z,
204
+ showNAColor: rt,
205
+ minHeight: h,
206
+ theme: O,
207
+ ariaLabel: st,
208
+ resetSelectionOnDoubleClick: y,
209
+ detailsOnClick: at,
210
+ styles: c,
211
+ classNames: i,
212
+ animate: nt,
213
+ naLabel: bt,
214
+ numberDisplayOptions: s
215
+ } = m, ct = J === void 0 ? !0 : J, L = K === void 0 ? 100 : K, N = gt === void 0 ? 10 : gt, A = ft === void 0 ? 999 : ft, S = et === void 0 ? !1 : et, V = ot === void 0 ? 30 : ot, q = xt === void 0 ? 10 : xt, H = vt === void 0 ? !0 : vt, x = g === void 0 ? f.gray : g, T = yt === void 0 ? !0 : yt, D = Ct === void 0 ? !1 : Ct, k = Lt === void 0 ? !1 : Lt, p = it === void 0 ? !0 : it, C = Z === void 0 ? "en" : Z, M = rt === void 0 ? !0 : rt, E = h === void 0 ? 0 : h, o = O === void 0 ? "light" : O, R = y === void 0 ? !0 : y, F = nt === void 0 ? !1 : nt, ut = bt === void 0 ? "NA" : bt, [I, mt] = pt(0), [W, ht] = pt(0), [P, Nt] = pt(void 0), e = Tt(null), B = Tt(null);
216
+ let b, G;
217
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => {
218
+ const Rt = new ResizeObserver((It) => {
219
+ mt(It[0].target.clientWidth || 620), ht(It[0].target.clientHeight || 480);
222
220
  });
223
- return Ht.current && Yt.observe(Ht.current), () => Yt.disconnect();
224
- }, St = [], t[0] = At, t[1] = St) : (At = t[0], St = t[1]), Qt(At, St);
225
- const ut = Mt || (typeof r[0] == "string" ? "categorical" : r.length === 2 ? "linear" : "threshold"), Tt = l?.graphContainer, Et = n?.graphContainer, Rt = p ? void 0 : s;
226
- let bt;
227
- t[2] !== l?.description || t[3] !== l?.title || t[4] !== a || t[5] !== $ || t[6] !== b || t[7] !== j || t[8] !== z || t[9] !== n?.description || t[10] !== n?.title || t[11] !== s ? (bt = z || b || j || $ ? /* @__PURE__ */ o.jsx(ce, { styles: {
228
- title: n?.title,
229
- description: n?.description
230
- }, classNames: {
231
- title: l?.title,
232
- description: l?.description
233
- }, graphTitle: z, graphDescription: b, width: s, graphDownload: j ? Xt : void 0, dataDownload: $ ? a.map($e).filter(je).length > 0 ? a.map(we).filter(be) : a.filter(Ce) : null }) : null, t[2] = l?.description, t[3] = l?.title, t[4] = a, t[5] = $, t[6] = b, t[7] = j, t[8] = z, t[9] = n?.description, t[10] = n?.title, t[11] = s, t[12] = bt) : bt = t[12];
221
+ return e.current && Rt.observe(e.current), () => Rt.disconnect();
222
+ }, G = [], t[0] = b, t[1] = G) : (b = t[0], G = t[1]), Yt(b, G);
223
+ const dt = Ot || (typeof r[0] == "string" ? "categorical" : r.length === 2 ? "linear" : "threshold"), St = i?.graphContainer, Vt = c?.graphContainer, qt = p ? void 0 : a;
234
224
  let wt;
235
- t[13] !== l?.colorLegend || t[14] !== r || t[15] !== w || t[16] !== v || t[17] !== a.length || t[18] !== p || t[19] !== e || t[20] !== k || t[21] !== x || t[22] !== ut || t[23] !== E || t[24] !== it || t[25] !== i || t[26] !== s ? (wt = E && a.length > 0 ? ut === "categorical" ? /* @__PURE__ */ o.jsx(me, { width: p ? void 0 : s, colorLegendTitle: w, colors: v || (typeof r[0] == "string" ? g[i].categoricalColors.colors : r.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${r.length + 1}`]), colorDomain: r.map(ye), setSelectedColor: Gt, showNAColor: it, className: l?.colorLegend }) : ut === "threshold" ? /* @__PURE__ */ o.jsx(de, { width: p ? void 0 : s, colorLegendTitle: w, colors: v || (typeof r[0] == "string" ? g[i].categoricalColors.colors : r.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${r.length + 1}`]), colorDomain: r, setSelectedColor: Gt, naColor: x, locale: e, showNAColor: it, naLabel: k }) : /* @__PURE__ */ o.jsx(he, { width: p ? void 0 : s, colorLegendTitle: w, colors: v || [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]], locale: e, colorDomain: r, className: l?.colorLegend }) : null, t[13] = l?.colorLegend, t[14] = r, t[15] = w, t[16] = v, t[17] = a.length, t[18] = p, t[19] = e, t[20] = k, t[21] = x, t[22] = ut, t[23] = E, t[24] = it, t[25] = i, t[26] = s, t[27] = wt) : wt = t[27];
225
+ t[2] !== i?.description || t[3] !== i?.title || t[4] !== n || t[5] !== k || t[6] !== w || t[7] !== D || t[8] !== z || t[9] !== c?.description || t[10] !== c?.title || t[11] !== a ? (wt = z || w || D || k ? /* @__PURE__ */ l.jsx(oe, { styles: {
226
+ title: c?.title,
227
+ description: c?.description
228
+ }, classNames: {
229
+ title: i?.title,
230
+ description: i?.description
231
+ }, graphTitle: z, graphDescription: w, width: a, graphDownload: D ? B : void 0, dataDownload: k ? n.map(xe).filter(fe).length > 0 ? n.map(ge).filter(pe) : n.filter(de) : null }) : null, t[2] = i?.description, t[3] = i?.title, t[4] = n, t[5] = k, t[6] = w, t[7] = D, t[8] = z, t[9] = c?.description, t[10] = c?.title, t[11] = a, t[12] = wt) : wt = t[12];
236
232
  let jt;
237
- t[28] !== a.length ? (jt = a.length === 0 && /* @__PURE__ */ o.jsx(ge, {}), t[28] = a.length, t[29] = jt) : jt = t[29];
233
+ t[13] !== i?.colorLegend || t[14] !== r || t[15] !== j || t[16] !== v || t[17] !== n.length || t[18] !== p || t[19] !== ut || t[20] !== x || t[21] !== s?.locale || t[22] !== dt || t[23] !== T || t[24] !== M || t[25] !== o || t[26] !== a ? (jt = T && n.length > 0 ? dt === "categorical" ? /* @__PURE__ */ l.jsx(ie, { width: p ? void 0 : a, colorLegendTitle: j, colors: v || (typeof r[0] == "string" ? f[o].categoricalColors.colors : r.length === 2 ? [f[o].sequentialColors.neutralColorsx09[0], f[o].sequentialColors.neutralColorsx09[8]] : f[o].sequentialColors[`neutralColorsx0${r.length + 1}`]), colorDomain: r.map(he), setSelectedColor: Nt, showNAColor: M, className: i?.colorLegend }) : dt === "threshold" ? /* @__PURE__ */ l.jsx(se, { width: p ? void 0 : a, colorLegendTitle: j, colors: v || (typeof r[0] == "string" ? f[o].categoricalColors.colors : r.length === 2 ? [f[o].sequentialColors.neutralColorsx09[0], f[o].sequentialColors.neutralColorsx09[8]] : f[o].sequentialColors[`neutralColorsx0${r.length + 1}`]), colorDomain: r, setSelectedColor: Nt, naColor: x, locale: s?.locale || "en", showNAColor: M, naLabel: ut }) : /* @__PURE__ */ l.jsx(re, { width: p ? void 0 : a, colorLegendTitle: j, colors: v || [f[o].sequentialColors.neutralColorsx09[0], f[o].sequentialColors.neutralColorsx09[8]], locale: s?.locale || "en", colorDomain: r, className: i?.colorLegend }) : null, t[13] = i?.colorLegend, t[14] = r, t[15] = j, t[16] = v, t[17] = n.length, t[18] = p, t[19] = ut, t[20] = x, t[21] = s?.locale, t[22] = dt, t[23] = T, t[24] = M, t[25] = o, t[26] = a, t[27] = jt) : jt = t[27];
238
234
  let $t;
239
- t[30] !== R || t[31] !== q || t[32] !== l || t[33] !== r || t[34] !== v || t[35] !== a || t[36] !== ot || t[37] !== p || t[38] !== L || t[39] !== e || t[40] !== x || t[41] !== tt || t[42] !== W || t[43] !== Lt || t[44] !== T || t[45] !== P || t[46] !== N || t[47] !== ut || t[48] !== qt || t[49] !== O || t[50] !== C || t[51] !== h || t[52] !== n || t[53] !== H || t[54] !== Nt || t[55] !== f || t[56] !== i || t[57] !== _ || t[58] !== V || t[59] !== A || t[60] !== s ? ($t = f && Nt && a.length > 0 ? /* @__PURE__ */ o.jsx(xe, { data: a, colorDomain: r, width: p || !s || f < s ? f : s, height: Nt, colors: v || (typeof r[0] == "string" ? g[i].categoricalColors.colors : r.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${r.length + 1}`]), noDataColor: x, scaleType: ut, showColumnLabels: O, leftMargin: L, rightMargin: N, topMargin: V, bottomMargin: q, selectedColor: qt, truncateBy: A, showRowLabels: C, tooltip: _, onSeriesMouseOver: W, showValues: h, suffix: H, prefix: T, onSeriesMouseClick: tt, resetSelectionOnDoubleClick: P, detailsOnClick: ot, styles: n, classNames: l, animate: R === !0 ? {
235
+ t[28] !== n.length ? ($t = n.length === 0 && /* @__PURE__ */ l.jsx(ae, {}), t[28] = n.length, t[29] = $t) : $t = t[29];
236
+ let Dt;
237
+ t[30] !== F || t[31] !== q || t[32] !== i || t[33] !== r || t[34] !== v || t[35] !== n || t[36] !== at || t[37] !== p || t[38] !== L || t[39] !== x || t[40] !== s?.locale || t[41] !== s?.padZeros || t[42] !== s?.precision || t[43] !== s?.prefix || t[44] !== s?.suffix || t[45] !== lt || t[46] !== Y || t[47] !== R || t[48] !== N || t[49] !== dt || t[50] !== P || t[51] !== ct || t[52] !== H || t[53] !== d || t[54] !== c || t[55] !== W || t[56] !== I || t[57] !== o || t[58] !== tt || t[59] !== V || t[60] !== A || t[61] !== a ? (Dt = I && W && n.length > 0 ? /* @__PURE__ */ l.jsx(ue, { data: n, colorDomain: r, width: p || !a || I < a ? I : a, height: W, colors: v || (typeof r[0] == "string" ? f[o].categoricalColors.colors : r.length === 2 ? [f[o].sequentialColors.neutralColorsx09[0], f[o].sequentialColors.neutralColorsx09[8]] : f[o].sequentialColors[`neutralColorsx0${r.length + 1}`]), noDataColor: x, scaleType: dt, showColumnLabels: ct, leftMargin: L, rightMargin: N, topMargin: V, bottomMargin: q, selectedColor: P, truncateBy: A, showRowLabels: H, tooltip: tt, onSeriesMouseOver: Y, showValues: d, onSeriesMouseClick: lt, resetSelectionOnDoubleClick: R, detailsOnClick: at, styles: c, classNames: i, animate: F === !0 ? {
240
238
  duration: 0.5,
241
239
  once: !0,
242
240
  amount: 0.5
243
- } : R || {
241
+ } : F || {
244
242
  duration: 0,
245
243
  once: !0,
246
244
  amount: 0
247
- }, precision: Lt, locale: e }) : null, t[30] = R, t[31] = q, t[32] = l, t[33] = r, t[34] = v, t[35] = a, t[36] = ot, t[37] = p, t[38] = L, t[39] = e, t[40] = x, t[41] = tt, t[42] = W, t[43] = Lt, t[44] = T, t[45] = P, t[46] = N, t[47] = ut, t[48] = qt, t[49] = O, t[50] = C, t[51] = h, t[52] = n, t[53] = H, t[54] = Nt, t[55] = f, t[56] = i, t[57] = _, t[58] = V, t[59] = A, t[60] = s, t[61] = $t) : $t = t[61];
245
+ }, locale: s?.locale || "en", padZeros: s?.padZeros || !1, suffix: s?.suffix || "", prefix: s?.prefix || "", precision: s?.precision ?? 2 }) : null, t[30] = F, t[31] = q, t[32] = i, t[33] = r, t[34] = v, t[35] = n, t[36] = at, t[37] = p, t[38] = L, t[39] = x, t[40] = s?.locale, t[41] = s?.padZeros, t[42] = s?.precision, t[43] = s?.prefix, t[44] = s?.suffix, t[45] = lt, t[46] = Y, t[47] = R, t[48] = N, t[49] = dt, t[50] = P, t[51] = ct, t[52] = H, t[53] = d, t[54] = c, t[55] = W, t[56] = I, t[57] = o, t[58] = tt, t[59] = V, t[60] = A, t[61] = a, t[62] = Dt) : Dt = t[62];
248
246
  let kt;
249
- t[62] !== jt || t[63] !== $t ? (kt = /* @__PURE__ */ o.jsxs(pe, { ref: Ht, children: [
250
- jt,
251
- $t
252
- ] }), t[62] = jt, t[63] = $t, t[64] = kt) : kt = t[64];
253
- let Dt;
254
- t[65] !== l?.footnote || t[66] !== l?.source || t[67] !== Z || t[68] !== U || t[69] !== n?.footnote || t[70] !== n?.source || t[71] !== s ? (Dt = U || Z ? /* @__PURE__ */ o.jsx(ue, { styles: {
255
- footnote: n?.footnote,
256
- source: n?.source
247
+ t[63] !== $t || t[64] !== Dt ? (kt = /* @__PURE__ */ l.jsxs(ne, { ref: e, children: [
248
+ $t,
249
+ Dt
250
+ ] }), t[63] = $t, t[64] = Dt, t[65] = kt) : kt = t[65];
251
+ let Mt;
252
+ t[66] !== i?.footnote || t[67] !== i?.source || t[68] !== _ || t[69] !== U || t[70] !== c?.footnote || t[71] !== c?.source || t[72] !== a ? (Mt = U || _ ? /* @__PURE__ */ l.jsx(le, { styles: {
253
+ footnote: c?.footnote,
254
+ source: c?.source
257
255
  }, classNames: {
258
- footnote: l?.footnote,
259
- source: l?.source
260
- }, sources: U, footNote: Z, width: s }) : null, t[65] = l?.footnote, t[66] = l?.source, t[67] = Z, t[68] = U, t[69] = n?.footnote, t[70] = n?.source, t[71] = s, t[72] = Dt) : Dt = t[72];
261
- let Vt;
262
- return t[73] !== et || t[74] !== S || t[75] !== st || t[76] !== Q || t[77] !== nt || t[78] !== F || t[79] !== I || t[80] !== c || t[81] !== Tt || t[82] !== Et || t[83] !== Rt || t[84] !== bt || t[85] !== wt || t[86] !== kt || t[87] !== Dt || t[88] !== i ? (Vt = /* @__PURE__ */ o.jsxs(fe, { className: Tt, style: Et, id: st, ref: Xt, "aria-label": et, backgroundColor: S, theme: i, language: nt, minHeight: F, width: Rt, height: Q, relativeHeight: c, padding: I, children: [
263
- bt,
256
+ footnote: i?.footnote,
257
+ source: i?.source
258
+ }, sources: U, footNote: _, width: a }) : null, t[66] = i?.footnote, t[67] = i?.source, t[68] = _, t[69] = U, t[70] = c?.footnote, t[71] = c?.source, t[72] = a, t[73] = Mt) : Mt = t[73];
259
+ let At;
260
+ return t[74] !== st || t[75] !== S || t[76] !== u || t[77] !== Q || t[78] !== C || t[79] !== E || t[80] !== X || t[81] !== $ || t[82] !== St || t[83] !== Vt || t[84] !== qt || t[85] !== wt || t[86] !== jt || t[87] !== kt || t[88] !== Mt || t[89] !== o ? (At = /* @__PURE__ */ l.jsxs(ce, { className: St, style: Vt, id: u, ref: B, "aria-label": st, backgroundColor: S, theme: o, language: C, minHeight: E, width: qt, height: Q, relativeHeight: $, padding: X, children: [
264
261
  wt,
262
+ jt,
265
263
  kt,
266
- Dt
267
- ] }), t[73] = et, t[74] = S, t[75] = st, t[76] = Q, t[77] = nt, t[78] = F, t[79] = I, t[80] = c, t[81] = Tt, t[82] = Et, t[83] = Rt, t[84] = bt, t[85] = wt, t[86] = kt, t[87] = Dt, t[88] = i, t[89] = Vt) : Vt = t[89], Vt;
264
+ Mt
265
+ ] }), t[74] = st, t[75] = S, t[76] = u, t[77] = Q, t[78] = C, t[79] = E, t[80] = X, t[81] = $, t[82] = St, t[83] = Vt, t[84] = qt, t[85] = wt, t[86] = jt, t[87] = kt, t[88] = Mt, t[89] = o, t[90] = At) : At = t[90], At;
268
266
  }
269
- function ye(u) {
270
- return `${u}`;
267
+ function he(m) {
268
+ return `${m}`;
271
269
  }
272
- function Ce(u) {
273
- return u !== void 0;
270
+ function de(m) {
271
+ return m !== void 0;
274
272
  }
275
- function be(u) {
276
- return u !== void 0;
273
+ function pe(m) {
274
+ return m !== void 0;
277
275
  }
278
- function we(u) {
279
- return u.data;
276
+ function ge(m) {
277
+ return m.data;
280
278
  }
281
- function je(u) {
282
- return u !== void 0;
279
+ function fe(m) {
280
+ return m !== void 0;
283
281
  }
284
- function $e(u) {
285
- return u.data;
282
+ function xe(m) {
283
+ return m.data;
286
284
  }
287
285
  export {
288
- Ke as HeatMap
286
+ Xe as HeatMap
289
287
  };
290
288
  //# sourceMappingURL=HeatMap.js.map