@undp/data-viz 2.0.9 → 2.1.1

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 (224) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.d.ts +2 -0
  3. package/dist/AreaChart.js +4 -4
  4. package/dist/BarGraph.cjs +1 -1
  5. package/dist/BarGraph.cjs.map +1 -1
  6. package/dist/BarGraph.d.ts +2 -0
  7. package/dist/BarGraph.js +1699 -1577
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BasicStatCard.d.ts +2 -0
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.d.ts +2 -0
  13. package/dist/BeeSwarmChart.js +258 -267
  14. package/dist/BeeSwarmChart.js.map +1 -1
  15. package/dist/BiVariateChoroplethMap.cjs +1 -1
  16. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  17. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  18. package/dist/BiVariateChoroplethMap.js +252 -245
  19. package/dist/BiVariateChoroplethMap.js.map +1 -1
  20. package/dist/BulletChart.cjs +1 -1
  21. package/dist/BulletChart.cjs.map +1 -1
  22. package/dist/BulletChart.d.ts +2 -0
  23. package/dist/BulletChart.js +566 -536
  24. package/dist/BulletChart.js.map +1 -1
  25. package/dist/ButterflyChart.cjs +1 -1
  26. package/dist/ButterflyChart.cjs.map +1 -1
  27. package/dist/ButterflyChart.d.ts +2 -0
  28. package/dist/ButterflyChart.js +388 -378
  29. package/dist/ButterflyChart.js.map +1 -1
  30. package/dist/ChoroplethMap.cjs +1 -1
  31. package/dist/ChoroplethMap.cjs.map +1 -1
  32. package/dist/ChoroplethMap.d.ts +2 -0
  33. package/dist/ChoroplethMap.js +297 -291
  34. package/dist/ChoroplethMap.js.map +1 -1
  35. package/dist/CirclePackingGraph.cjs +1 -1
  36. package/dist/CirclePackingGraph.d.ts +2 -0
  37. package/dist/CirclePackingGraph.js +1 -1
  38. package/dist/DataCards.d.ts +2 -0
  39. package/dist/DataCards.js +1 -1
  40. package/dist/DataTable.d.ts +2 -0
  41. package/dist/DetailsModal-0Ry5nXiC.js +32 -0
  42. package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
  43. package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
  44. package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
  45. package/dist/DifferenceLineChart.cjs +1 -1
  46. package/dist/DifferenceLineChart.d.ts +2 -0
  47. package/dist/DifferenceLineChart.js +4 -4
  48. package/dist/DonutChart.cjs +1 -1
  49. package/dist/DonutChart.cjs.map +1 -1
  50. package/dist/DonutChart.d.ts +2 -0
  51. package/dist/DonutChart.js +185 -190
  52. package/dist/DonutChart.js.map +1 -1
  53. package/dist/DotDensityMap.cjs +1 -1
  54. package/dist/DotDensityMap.cjs.map +1 -1
  55. package/dist/DotDensityMap.d.ts +2 -0
  56. package/dist/DotDensityMap.js +252 -244
  57. package/dist/DotDensityMap.js.map +1 -1
  58. package/dist/DualAxisLineChart.cjs +1 -1
  59. package/dist/DualAxisLineChart.d.ts +2 -0
  60. package/dist/DualAxisLineChart.js +4 -4
  61. package/dist/DumbbellChart.cjs +1 -1
  62. package/dist/DumbbellChart.cjs.map +1 -1
  63. package/dist/DumbbellChart.d.ts +2 -0
  64. package/dist/DumbbellChart.js +563 -525
  65. package/dist/DumbbellChart.js.map +1 -1
  66. package/dist/GeoHubCompareMaps.d.ts +2 -0
  67. package/dist/GeoHubMap.d.ts +2 -0
  68. package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
  69. package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
  70. package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
  71. package/dist/{GraphEl-CGq1EWRn.js → GraphEl-DEzobeOM.js} +3 -3
  72. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-DEzobeOM.js.map} +1 -1
  73. package/dist/GriddedGraphs.cjs +1 -1
  74. package/dist/GriddedGraphs.cjs.map +1 -1
  75. package/dist/GriddedGraphs.d.ts +2 -0
  76. package/dist/GriddedGraphs.js +19 -19
  77. package/dist/GriddedGraphs.js.map +1 -1
  78. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  79. package/dist/HeatMap.cjs +1 -1
  80. package/dist/HeatMap.cjs.map +1 -1
  81. package/dist/HeatMap.d.ts +2 -0
  82. package/dist/HeatMap.js +112 -117
  83. package/dist/HeatMap.js.map +1 -1
  84. package/dist/Histogram.cjs +1 -1
  85. package/dist/Histogram.d.ts +2 -0
  86. package/dist/Histogram.js +3 -3
  87. package/dist/HybridMap.cjs +1 -1
  88. package/dist/HybridMap.cjs.map +1 -1
  89. package/dist/HybridMap.d.ts +2 -0
  90. package/dist/HybridMap.js +366 -359
  91. package/dist/HybridMap.js.map +1 -1
  92. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  93. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  94. package/dist/LineChartWithConfidenceInterval.js +4 -4
  95. package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
  96. package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
  97. package/dist/MultiGraphDashboard.cjs +1 -1
  98. package/dist/MultiGraphDashboard.cjs.map +1 -1
  99. package/dist/MultiGraphDashboard.d.ts +2 -0
  100. package/dist/MultiGraphDashboard.js +10 -10
  101. package/dist/MultiGraphDashboard.js.map +1 -1
  102. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  103. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
  104. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  105. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
  106. package/dist/MultiLineAltChart.cjs +1 -1
  107. package/dist/MultiLineAltChart.cjs.map +1 -1
  108. package/dist/MultiLineAltChart.d.ts +2 -0
  109. package/dist/MultiLineAltChart.js +453 -425
  110. package/dist/MultiLineAltChart.js.map +1 -1
  111. package/dist/MultiLineChart.cjs +1 -1
  112. package/dist/MultiLineChart.d.ts +2 -0
  113. package/dist/MultiLineChart.js +4 -4
  114. package/dist/ParetoChart.cjs +1 -1
  115. package/dist/ParetoChart.cjs.map +1 -1
  116. package/dist/ParetoChart.d.ts +2 -0
  117. package/dist/ParetoChart.js +188 -193
  118. package/dist/ParetoChart.js.map +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  122. package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
  123. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  124. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  125. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  126. package/dist/RadarChart.cjs +1 -1
  127. package/dist/RadarChart.cjs.map +1 -1
  128. package/dist/RadarChart.d.ts +2 -0
  129. package/dist/RadarChart.js +158 -163
  130. package/dist/RadarChart.js.map +1 -1
  131. package/dist/SankeyChart.cjs +1 -1
  132. package/dist/SankeyChart.cjs.map +1 -1
  133. package/dist/SankeyChart.d.ts +2 -0
  134. package/dist/SankeyChart.js +172 -177
  135. package/dist/SankeyChart.js.map +1 -1
  136. package/dist/ScatterPlot.cjs +1 -1
  137. package/dist/ScatterPlot.cjs.map +1 -1
  138. package/dist/ScatterPlot.d.ts +2 -0
  139. package/dist/ScatterPlot.js +494 -483
  140. package/dist/ScatterPlot.js.map +1 -1
  141. package/dist/ScrollStory.d.ts +2 -0
  142. package/dist/SimpleLineChart.cjs +1 -1
  143. package/dist/SimpleLineChart.d.ts +2 -0
  144. package/dist/SimpleLineChart.js +4 -4
  145. package/dist/SingleGraphDashboard.cjs +1 -1
  146. package/dist/SingleGraphDashboard.cjs.map +1 -1
  147. package/dist/SingleGraphDashboard.d.ts +2 -0
  148. package/dist/SingleGraphDashboard.js +24 -24
  149. package/dist/SingleGraphDashboard.js.map +1 -1
  150. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  151. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  152. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  153. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  154. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  155. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  156. package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
  157. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  158. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  159. package/dist/SlopeChart.cjs +1 -1
  160. package/dist/SlopeChart.cjs.map +1 -1
  161. package/dist/SlopeChart.d.ts +2 -0
  162. package/dist/SlopeChart.js +182 -187
  163. package/dist/SlopeChart.js.map +1 -1
  164. package/dist/SparkLine.cjs +1 -1
  165. package/dist/SparkLine.d.ts +2 -0
  166. package/dist/SparkLine.js +4 -4
  167. package/dist/StatCardFromData.d.ts +2 -0
  168. package/dist/StripChart.cjs +1 -1
  169. package/dist/StripChart.cjs.map +1 -1
  170. package/dist/StripChart.d.ts +2 -0
  171. package/dist/StripChart.js +249 -258
  172. package/dist/StripChart.js.map +1 -1
  173. package/dist/ThreeDGlobe.cjs +1 -1
  174. package/dist/ThreeDGlobe.cjs.map +1 -1
  175. package/dist/ThreeDGlobe.d.ts +2 -0
  176. package/dist/ThreeDGlobe.js +142 -147
  177. package/dist/ThreeDGlobe.js.map +1 -1
  178. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  179. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  180. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  181. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  182. package/dist/TreeMapGraph.cjs +1 -1
  183. package/dist/TreeMapGraph.cjs.map +1 -1
  184. package/dist/TreeMapGraph.d.ts +2 -0
  185. package/dist/TreeMapGraph.js +159 -164
  186. package/dist/TreeMapGraph.js.map +1 -1
  187. package/dist/Types.d.ts +2 -0
  188. package/dist/UnitChart.d.ts +2 -0
  189. package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
  190. package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
  191. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  192. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  193. package/dist/index-CF5hnGvG.cjs +2 -0
  194. package/dist/index-CF5hnGvG.cjs.map +1 -0
  195. package/dist/index-DPGq3eIL.js +330 -0
  196. package/dist/index-DPGq3eIL.js.map +1 -0
  197. package/dist/index.cjs +1 -1
  198. package/dist/index.d.ts +2 -0
  199. package/dist/index.js +1 -1
  200. package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
  201. package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
  202. package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
  203. package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
  204. package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
  205. package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
  206. package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
  207. package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
  208. package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
  209. package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
  210. package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
  211. package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
  212. package/package.json +4 -4
  213. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  214. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  215. package/dist/Tooltip-CwWUegPB.js +0 -43
  216. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  217. package/dist/index-B2LQV7Tk.js +0 -335
  218. package/dist/index-B2LQV7Tk.js.map +0 -1
  219. package/dist/index-xRHRLDIp.cjs +0 -2
  220. package/dist/index-xRHRLDIp.cjs.map +0 -1
  221. package/dist/sort-BIvMlUH1.js +0 -34
  222. package/dist/sort-BIvMlUH1.js.map +0 -1
  223. package/dist/sort-O96oMZLb.cjs +0 -2
  224. package/dist/sort-O96oMZLb.cjs.map +0 -1
package/dist/HeatMap.js CHANGED
@@ -1,36 +1,35 @@
1
1
  import { c as Gt, j as o, m as Xt } from "./index-CHPV5EwG-Curnpaqc.js";
2
2
  import { useRef as qt, useState as dt, useEffect as Yt } from "react";
3
3
  import { i as Ft } from "./index-Bwrro8-q.js";
4
- import { l as Pt } from "./Modal-DGcuAHyK.js";
5
- import { n as zt } from "./numberFormattingFunction-14YCbkN2.js";
6
- import { T as Ut } from "./Tooltip-CwWUegPB.js";
7
- import { g as Jt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
4
+ import { n as Pt } from "./numberFormattingFunction-14YCbkN2.js";
5
+ import { T as zt } from "./Tooltip-Dj5eVppQ.js";
6
+ import { g as Ut } from "./getTextColorBasedOnBgColor-CDY808zi.js";
8
7
  import { c as Ht } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
- import { s as Kt } from "./string2HTML-DhG75NqA.js";
10
- import { X as Qt } from "./XAxesLabels-Dy8E1SEo.js";
11
- import { Y as Zt } from "./YAxesLabels-a57ZRv-0.js";
8
+ import { X as Jt } from "./XAxesLabels-Dy8E1SEo.js";
9
+ import { Y as Kt } from "./YAxesLabels-a57ZRv-0.js";
12
10
  import { u as Wt } from "./uniqBy-BHy4I8PK.js";
13
- import { b as Bt } from "./band-CyHaVft5.js";
14
- import { o as _t } from "./ordinal-P77xw8aL.js";
15
- import { t as to } from "./threshold-Bgr20hik.js";
16
- import { a as oo } from "./linear-BwnDd9KF.js";
17
- import { u as eo } from "./use-in-view-Cxa7y1TH.js";
11
+ import { D as Qt } from "./DetailsModal-0Ry5nXiC.js";
12
+ import { b as Bt } from "./band-DHUZ2X7J.js";
13
+ import { o as Zt } from "./ordinal-BJ6O_LC5.js";
14
+ import { t as _t } from "./threshold-DFfqcDMa.js";
15
+ import { a as to } from "./linear-BqltdMeF.js";
16
+ import { u as oo } from "./use-in-view-Cxa7y1TH.js";
18
17
  import { m as Vt } from "./proxy-BxkFHwUw.js";
19
- import { GraphHeader as io } from "./GraphHeader.js";
20
- import { GraphFooter as ro } from "./GraphFooter.js";
21
- import { ColorLegendWithMouseOver as lo } from "./ColorLegendWithMouseOver.js";
22
- import { LinearColorLegend as so } from "./LinearColorLegend.js";
23
- import { ThresholdColorLegendWithMouseOver as no } from "./ThresholdColorLegendWithMouseOver.js";
18
+ import { GraphHeader as eo } from "./GraphHeader.js";
19
+ import { GraphFooter as io } from "./GraphFooter.js";
20
+ import { ColorLegendWithMouseOver as ro } from "./ColorLegendWithMouseOver.js";
21
+ import { LinearColorLegend as lo } from "./LinearColorLegend.js";
22
+ import { ThresholdColorLegendWithMouseOver as so } from "./ThresholdColorLegendWithMouseOver.js";
24
23
  import { Colors as g } from "./Colors.js";
25
24
  import { E as ao } from "./EmptyState-BZo1BbAn.js";
26
- import { a as co, G as uo } from "./GraphContainer-CRqzdKu2.js";
27
- function mo(a) {
28
- const t = Gt.c(85), {
25
+ import { a as no, G as co } from "./GraphContainer-CRqzdKu2.js";
26
+ function uo(c) {
27
+ const t = Gt.c(86), {
29
28
  data: h,
30
29
  showColumnLabels: z,
31
- leftMargin: M,
30
+ leftMargin: j,
32
31
  rightMargin: U,
33
- truncateBy: b,
32
+ truncateBy: y,
34
33
  width: J,
35
34
  height: K,
36
35
  topMargin: gt,
@@ -40,56 +39,56 @@ function mo(a) {
40
39
  suffix: jt,
41
40
  prefix: l,
42
41
  showValues: Z,
43
- colorDomain: w,
44
- colors: R,
42
+ colorDomain: C,
43
+ colors: I,
45
44
  noDataColor: it,
46
45
  scaleType: rt,
47
46
  showRowLabels: ft,
48
47
  selectedColor: _,
49
48
  onSeriesMouseClick: W,
50
49
  resetSelectionOnDoubleClick: xt,
51
- detailsOnClick: f,
50
+ detailsOnClick: $,
52
51
  styles: d,
53
- classNames: u,
52
+ classNames: n,
54
53
  animate: m,
55
54
  precision: lt
56
- } = a, $t = qt(null);
55
+ } = c, $t = qt(null);
57
56
  let st;
58
57
  t[0] !== m.amount || t[1] !== m.once ? (st = {
59
58
  once: m.once,
60
59
  amount: m.amount
61
60
  }, t[0] = m.amount, t[1] = m.once, t[2] = st) : st = t[2];
62
- const k = eo($t, st);
63
- let nt;
64
- t[3] !== pt || t[4] !== M || t[5] !== U || t[6] !== gt ? (nt = {
61
+ const k = oo($t, st);
62
+ let at;
63
+ t[3] !== pt || t[4] !== j || t[5] !== U || t[6] !== gt ? (at = {
65
64
  top: gt,
66
65
  bottom: pt,
67
- left: M,
66
+ left: j,
68
67
  right: U
69
- }, t[3] = pt, t[4] = M, t[5] = U, t[6] = gt, t[7] = nt) : nt = t[7];
70
- const c = nt, [v, vt] = dt(void 0), [y, yt] = dt(void 0), [at, ct] = dt(void 0), [ut, mt] = dt(void 0), n = J - c.left - c.right, r = K - c.top - c.bottom;
71
- let B, G, D, O, N, L, S, A, V, q, H, T, x;
72
- if (t[8] !== m.duration || t[9] !== u?.graphObjectValues || t[10] !== u?.xAxis?.labels || t[11] !== u?.yAxis?.labels || t[12] !== w || t[13] !== R || t[14] !== h || t[15] !== f || t[16] !== r || t[17] !== n || t[18] !== K || t[19] !== k || t[20] !== c.left || t[21] !== c.top || t[22] !== v || t[23] !== y || t[24] !== it || t[25] !== W || t[26] !== s || t[27] !== lt || t[28] !== l || t[29] !== xt || t[30] !== rt || t[31] !== _ || t[32] !== z || t[33] !== ft || t[34] !== Z || t[35] !== d?.graphObjectValues || t[36] !== d?.xAxis?.labels || t[37] !== d?.yAxis?.labels || t[38] !== jt || t[39] !== b || t[40] !== J) {
73
- const ot = Wt(h, "column", !0), ht = Wt(h, "row", !0), i = Bt().domain(ht).range([0, r]), X = i.bandwidth(), I = Bt().domain(ot).range([0, n]), Y = I.bandwidth(), et = rt === "categorical" ? _t().domain(w).range(R) : rt === "threshold" ? to().domain(w).range(R) : oo().domain(w).range(R);
74
- B = Vt.svg, q = `${J}px`, H = `${K}px`, T = `0 0 ${J} ${K}`, t[54] === Symbol.for("react.memo_cache_sentinel") ? (x = {
68
+ }, t[3] = pt, t[4] = j, t[5] = U, t[6] = gt, t[7] = at) : at = t[7];
69
+ const u = at, [D, vt] = dt(void 0), [x, yt] = dt(void 0), [nt, ct] = dt(void 0), [ut, mt] = dt(void 0), a = J - u.left - u.right, r = K - u.top - u.bottom;
70
+ let B, G, M, O, N, A, L, S, V, q, H, T, f;
71
+ if (t[8] !== m.duration || t[9] !== n?.graphObjectValues || t[10] !== n?.xAxis?.labels || t[11] !== n?.yAxis?.labels || t[12] !== C || t[13] !== I || t[14] !== h || t[15] !== $ || t[16] !== r || t[17] !== a || t[18] !== K || t[19] !== k || t[20] !== u.left || t[21] !== u.top || t[22] !== D || t[23] !== x || t[24] !== it || t[25] !== W || t[26] !== s || t[27] !== lt || t[28] !== l || t[29] !== xt || t[30] !== rt || t[31] !== _ || t[32] !== z || t[33] !== ft || t[34] !== Z || t[35] !== d?.graphObjectValues || t[36] !== d?.xAxis?.labels || t[37] !== d?.yAxis?.labels || t[38] !== jt || t[39] !== y || t[40] !== J) {
72
+ const ot = Wt(h, "column", !0), ht = Wt(h, "row", !0), i = Bt().domain(ht).range([0, r]), X = i.bandwidth(), R = Bt().domain(ot).range([0, a]), Y = R.bandwidth(), et = rt === "categorical" ? Zt().domain(C).range(I) : rt === "threshold" ? _t().domain(C).range(I) : to().domain(C).range(I);
73
+ B = Vt.svg, q = `${J}px`, H = `${K}px`, T = `0 0 ${J} ${K}`, t[54] === Symbol.for("react.memo_cache_sentinel") ? (f = {
75
74
  marginLeft: "auto",
76
75
  marginRight: "auto"
77
- }, t[54] = x) : x = t[54], G = "ltr", D = $t, O = /* @__PURE__ */ o.jsx("g", { transform: `translate(${c.left},0)`, children: z ? ot.map((e, C) => /* @__PURE__ */ o.jsx(Qt, { y: 0, x: I(e), width: Y, height: c.top - 5, value: `${e}`.length < b ? `${e}` : `${`${e}`.substring(0, b)}...`, style: d?.xAxis?.labels, className: u?.xAxis?.labels, alignment: "bottom", animate: {
76
+ }, t[54] = f) : f = t[54], G = "ltr", M = $t, O = /* @__PURE__ */ o.jsx("g", { transform: `translate(${u.left},0)`, children: z ? ot.map((e, v) => /* @__PURE__ */ o.jsx(Jt, { y: 0, x: R(e), width: Y, height: u.top - 5, value: `${e}`.length < y ? `${e}` : `${`${e}`.substring(0, y)}...`, style: d?.xAxis?.labels, className: n?.xAxis?.labels, alignment: "bottom", animate: {
78
77
  duration: 0,
79
78
  once: !0,
80
79
  amount: 0
81
- }, isInView: k }, C)) : null }), N = /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${c.top})`, children: ft ? ht.map((e, C) => /* @__PURE__ */ o.jsx(Zt, { value: `${e}`.length < b ? `${e}` : `${`${e}`.substring(0, b)}...`, y: i(e), x: 0, width: c.left, height: X, alignment: "right", style: d?.yAxis?.labels, className: u?.yAxis?.labels, animate: {
80
+ }, isInView: k }, v)) : null }), N = /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${u.top})`, children: ft ? ht.map((e, v) => /* @__PURE__ */ o.jsx(Kt, { value: `${e}`.length < y ? `${e}` : `${`${e}`.substring(0, y)}...`, y: i(e), x: 0, width: u.left, height: X, alignment: "right", style: d?.yAxis?.labels, className: n?.yAxis?.labels, animate: {
82
81
  duration: 0,
83
82
  once: !0,
84
83
  amount: 0
85
- }, isInView: k }, C)) : null }), L = `translate(${c.left},${c.top})`, S = ht.map((e, C) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${i(e)})`, children: ot.map((F) => /* @__PURE__ */ o.jsx("rect", { x: I(F), y: 0, width: Y, height: X, style: {
84
+ }, isInView: k }, v)) : null }), A = `translate(${u.left},${u.top})`, L = ht.map((e, v) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${i(e)})`, children: ot.map((F) => /* @__PURE__ */ o.jsx("rect", { x: R(F), y: 0, width: Y, height: X, style: {
86
85
  fill: it
87
- }, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700" }, `${e}-${F}`)) }, C)), A = h.filter(ho).map((e, C) => {
86
+ }, className: "stroke-1 stroke-primary-white dark:stroke-primary-gray-700" }, `${e}-${F}`)) }, v)), S = h.filter(mo).map((e, v) => {
88
87
  const F = Ht(e.value) ? it : et(e.value);
89
- return /* @__PURE__ */ o.jsxs("g", { transform: `translate(${I(e.column)},${i(e.row)})`, onMouseEnter: (P) => {
88
+ return /* @__PURE__ */ o.jsxs("g", { transform: `translate(${R(e.column)},${i(e.row)})`, onMouseEnter: (P) => {
90
89
  yt(e), mt(P.clientY), ct(P.clientX), s?.(e);
91
90
  }, onClick: () => {
92
- (W || f) && (Ft(v, e) && xt ? (vt(void 0), W?.(void 0)) : (vt(e), W?.(e)));
91
+ (W || $) && (Ft(D, e) && xt ? (vt(void 0), W?.(void 0)) : (vt(e), W?.(e)));
93
92
  }, onMouseMove: (P) => {
94
93
  yt(e), mt(P.clientY), ct(P.clientX);
95
94
  }, onMouseLeave: () => {
@@ -128,55 +127,51 @@ function mo(a) {
128
127
  transition: {
129
128
  duration: m.duration
130
129
  }
131
- }, children: /* @__PURE__ */ o.jsx("foreignObject", { y: 0, x: 0, width: Y, height: X, children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-col justify-center items-center h-inherit p-1", children: /* @__PURE__ */ o.jsx("p", { className: Xt("text-xs text-center m-0 leading-[1.25] graph-value", u?.graphObjectValues), style: {
132
- color: Jt(F),
130
+ }, children: /* @__PURE__ */ o.jsx("foreignObject", { y: 0, x: 0, width: Y, height: X, children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-col justify-center items-center h-inherit p-1", children: /* @__PURE__ */ o.jsx("p", { className: Xt("text-xs text-center m-0 leading-[1.25] graph-value", n?.graphObjectValues), style: {
131
+ color: Ut(F),
133
132
  ...d?.graphObjectValues || {}
134
- }, children: zt(e.value, "NA", lt, l, jt) }) }) }, C) }) : null
133
+ }, children: Pt(e.value, "NA", lt, l, jt) }) }) }, v) }) : null
135
134
  ] }, `${e.column}-${e.row}`);
136
- }), V = y ? /* @__PURE__ */ o.jsx("rect", { x: I(y.column), y: i(y.row), width: Y, height: X, style: {
135
+ }), V = x ? /* @__PURE__ */ o.jsx("rect", { x: R(x.column), y: i(x.row), width: Y, height: X, style: {
137
136
  fill: "none",
138
137
  fillOpacity: 0,
139
138
  strokeWidth: 1.5
140
- }, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300" }) : null, t[8] = m.duration, t[9] = u?.graphObjectValues, t[10] = u?.xAxis?.labels, t[11] = u?.yAxis?.labels, t[12] = w, t[13] = R, t[14] = h, t[15] = f, t[16] = r, t[17] = n, t[18] = K, t[19] = k, t[20] = c.left, t[21] = c.top, t[22] = v, t[23] = y, t[24] = it, t[25] = W, t[26] = s, t[27] = lt, t[28] = l, t[29] = xt, t[30] = rt, t[31] = _, t[32] = z, t[33] = ft, t[34] = Z, t[35] = d?.graphObjectValues, t[36] = d?.xAxis?.labels, t[37] = d?.yAxis?.labels, t[38] = jt, t[39] = b, t[40] = J, t[41] = B, t[42] = G, t[43] = D, t[44] = O, t[45] = N, t[46] = L, t[47] = S, t[48] = A, t[49] = V, t[50] = q, t[51] = H, t[52] = T, t[53] = x;
139
+ }, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300" }) : null, t[8] = m.duration, t[9] = n?.graphObjectValues, t[10] = n?.xAxis?.labels, t[11] = n?.yAxis?.labels, t[12] = C, t[13] = I, t[14] = h, t[15] = $, t[16] = r, t[17] = a, t[18] = K, t[19] = k, t[20] = u.left, t[21] = u.top, t[22] = D, t[23] = x, t[24] = it, t[25] = W, t[26] = s, t[27] = lt, t[28] = l, t[29] = xt, t[30] = rt, t[31] = _, t[32] = z, t[33] = ft, t[34] = Z, t[35] = d?.graphObjectValues, t[36] = d?.xAxis?.labels, t[37] = d?.yAxis?.labels, t[38] = jt, t[39] = y, t[40] = J, t[41] = B, t[42] = G, t[43] = M, t[44] = O, t[45] = N, t[46] = A, t[47] = L, t[48] = S, t[49] = V, t[50] = q, t[51] = H, t[52] = T, t[53] = f;
141
140
  } else
142
- B = t[41], G = t[42], D = t[43], O = t[44], N = t[45], L = t[46], S = t[47], A = t[48], V = t[49], q = t[50], H = t[51], T = t[52], x = t[53];
141
+ B = t[41], G = t[42], M = t[43], O = t[44], N = t[45], A = t[46], L = t[47], S = t[48], V = t[49], q = t[50], H = t[51], T = t[52], f = t[53];
143
142
  let E;
144
- t[55] !== L || t[56] !== S || t[57] !== A || t[58] !== V ? (E = /* @__PURE__ */ o.jsxs("g", { transform: L, children: [
143
+ t[55] !== A || t[56] !== L || t[57] !== S || t[58] !== V ? (E = /* @__PURE__ */ o.jsxs("g", { transform: A, children: [
144
+ L,
145
145
  S,
146
- A,
147
146
  V
148
- ] }), t[55] = L, t[56] = S, t[57] = A, t[58] = V, t[59] = E) : E = t[59];
149
- let j;
150
- t[60] !== B || t[61] !== G || t[62] !== D || t[63] !== O || t[64] !== N || t[65] !== E || t[66] !== q || t[67] !== H || t[68] !== T || t[69] !== x ? (j = /* @__PURE__ */ o.jsxs(B, { width: q, height: H, viewBox: T, style: x, direction: G, ref: D, children: [
147
+ ] }), t[55] = A, t[56] = L, t[57] = S, t[58] = V, t[59] = E) : E = t[59];
148
+ let b;
149
+ t[60] !== B || t[61] !== G || t[62] !== M || t[63] !== O || t[64] !== N || t[65] !== E || t[66] !== q || t[67] !== H || t[68] !== T || t[69] !== f ? (b = /* @__PURE__ */ o.jsxs(B, { width: q, height: H, viewBox: T, style: f, direction: G, ref: M, children: [
151
150
  O,
152
151
  N,
153
152
  E
154
- ] }), t[60] = B, t[61] = G, t[62] = D, t[63] = O, t[64] = N, t[65] = E, t[66] = q, t[67] = H, t[68] = T, t[69] = x, t[70] = j) : j = t[70];
155
- let $;
156
- t[71] !== u?.tooltip || t[72] !== at || t[73] !== ut || t[74] !== y || t[75] !== d?.tooltip || t[76] !== Q ? ($ = y && Q && at && ut ? /* @__PURE__ */ o.jsx(Ut, { data: y, body: Q, xPos: at, yPos: ut, backgroundStyle: d?.tooltip, className: u?.tooltip }) : null, t[71] = u?.tooltip, t[72] = at, t[73] = ut, t[74] = y, t[75] = d?.tooltip, t[76] = Q, t[77] = $) : $ = t[77];
153
+ ] }), t[60] = B, t[61] = G, t[62] = M, t[63] = O, t[64] = N, t[65] = E, t[66] = q, t[67] = H, t[68] = T, t[69] = f, t[70] = b) : b = t[70];
154
+ let w;
155
+ t[71] !== n?.tooltip || t[72] !== nt || t[73] !== ut || t[74] !== x || t[75] !== d?.tooltip || t[76] !== Q ? (w = x && Q && nt && ut ? /* @__PURE__ */ o.jsx(zt, { data: x, body: Q, xPos: nt, yPos: ut, backgroundStyle: d?.tooltip, className: n?.tooltip }) : null, t[71] = n?.tooltip, t[72] = nt, t[73] = ut, t[74] = x, t[75] = d?.tooltip, t[76] = Q, t[77] = w) : w = t[77];
157
156
  let p;
158
- t[78] !== f || t[79] !== v ? (p = f && v !== void 0 ? /* @__PURE__ */ o.jsx(Pt, { open: v !== void 0, onClose: () => {
159
- vt(void 0);
160
- }, children: /* @__PURE__ */ o.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof f == "string" ? {
161
- __html: Kt(f, v)
162
- } : void 0, children: typeof f == "function" ? f(v) : null }) }) : null, t[78] = f, t[79] = v, t[80] = p) : p = t[80];
157
+ t[78] !== n?.modal || t[79] !== $ || t[80] !== D ? (p = $ && D !== void 0 ? /* @__PURE__ */ o.jsx(Qt, { body: $, data: D, setData: vt, className: n?.modal }) : null, t[78] = n?.modal, t[79] = $, t[80] = D, t[81] = p) : p = t[81];
163
158
  let tt;
164
- return t[81] !== j || t[82] !== $ || t[83] !== p ? (tt = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
165
- j,
166
- $,
159
+ return t[82] !== b || t[83] !== w || t[84] !== p ? (tt = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
160
+ b,
161
+ w,
167
162
  p
168
- ] }), t[81] = j, t[82] = $, t[83] = p, t[84] = tt) : tt = t[84], tt;
163
+ ] }), t[82] = b, t[83] = w, t[84] = p, t[85] = tt) : tt = t[85], tt;
169
164
  }
170
- function ho(a) {
171
- return !Ht(a.value);
165
+ function mo(c) {
166
+ return !Ht(c.value);
172
167
  }
173
- function Po(a) {
168
+ function Yo(c) {
174
169
  const t = Gt.c(71), {
175
170
  data: h,
176
171
  graphTitle: z,
177
- colors: M,
172
+ colors: j,
178
173
  sources: U,
179
- graphDescription: b,
174
+ graphDescription: y,
180
175
  showColumnLabels: J,
181
176
  leftMargin: K,
182
177
  rightMargin: gt,
@@ -186,100 +181,100 @@ function Po(a) {
186
181
  scaleType: jt,
187
182
  colorDomain: l,
188
183
  footNote: Z,
189
- colorLegendTitle: w,
190
- padding: R,
184
+ colorLegendTitle: C,
185
+ padding: I,
191
186
  backgroundColor: it,
192
187
  topMargin: rt,
193
188
  bottomMargin: ft,
194
189
  tooltip: _,
195
190
  onSeriesMouseOver: W,
196
191
  suffix: xt,
197
- prefix: f,
192
+ prefix: $,
198
193
  showRowLabels: d,
199
- relativeHeight: u,
194
+ relativeHeight: n,
200
195
  showValues: m,
201
196
  graphID: lt,
202
197
  noDataColor: $t,
203
198
  showColorScale: st,
204
199
  onSeriesMouseClick: k,
205
- graphDownload: nt,
206
- dataDownload: c,
207
- fillContainer: v,
200
+ graphDownload: at,
201
+ dataDownload: u,
202
+ fillContainer: D,
208
203
  language: vt,
209
- showNAColor: y,
204
+ showNAColor: x,
210
205
  minHeight: yt,
211
- theme: at,
206
+ theme: nt,
212
207
  ariaLabel: ct,
213
208
  resetSelectionOnDoubleClick: ut,
214
209
  detailsOnClick: mt,
215
- styles: n,
210
+ styles: a,
216
211
  classNames: r,
217
212
  animate: B,
218
213
  precision: G
219
- } = a, D = J === void 0 ? !0 : J, O = K === void 0 ? 100 : K, N = gt === void 0 ? 10 : gt, L = pt === void 0 ? 999 : pt, S = it === void 0 ? !1 : it, A = rt === void 0 ? 30 : rt, V = ft === void 0 ? 10 : ft, q = xt === void 0 ? "" : xt, H = f === void 0 ? "" : f, T = d === void 0 ? !0 : d, x = $t === void 0 ? g.gray : $t, E = st === void 0 ? !0 : st, j = nt === void 0 ? !1 : nt, $ = c === void 0 ? !1 : c, p = v === void 0 ? !0 : v, tt = vt === void 0 ? "en" : vt, ot = y === void 0 ? !0 : y, ht = yt === void 0 ? 0 : yt, i = at === void 0 ? "light" : at, X = ut === void 0 ? !0 : ut, I = B === void 0 ? !1 : B, Y = G === void 0 ? 2 : G, [et, e] = dt(0), [C, F] = dt(0), [P, Tt] = dt(void 0), Nt = qt(null), Et = qt(null);
220
- let kt, Dt;
221
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (kt = () => {
222
- const It = new ResizeObserver((Rt) => {
223
- e(Rt[0].target.clientWidth || 620), F(Rt[0].target.clientHeight || 480);
214
+ } = c, M = J === void 0 ? !0 : J, O = K === void 0 ? 100 : K, N = gt === void 0 ? 10 : gt, A = pt === void 0 ? 999 : pt, L = it === void 0 ? !1 : it, S = rt === void 0 ? 30 : rt, V = ft === void 0 ? 10 : ft, q = xt === void 0 ? "" : xt, H = $ === void 0 ? "" : $, T = d === void 0 ? !0 : d, f = $t === void 0 ? g.gray : $t, E = st === void 0 ? !0 : st, b = at === void 0 ? !1 : at, w = u === void 0 ? !1 : u, p = D === void 0 ? !0 : D, tt = vt === void 0 ? "en" : vt, ot = x === void 0 ? !0 : x, ht = yt === void 0 ? 0 : yt, i = nt === void 0 ? "light" : nt, X = ut === void 0 ? !0 : ut, R = B === void 0 ? !1 : B, Y = G === void 0 ? 2 : G, [et, e] = dt(0), [v, F] = dt(0), [P, Tt] = dt(void 0), Nt = qt(null), Et = qt(null);
215
+ let Dt, Mt;
216
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (Dt = () => {
217
+ const Rt = new ResizeObserver((It) => {
218
+ e(It[0].target.clientWidth || 620), F(It[0].target.clientHeight || 480);
224
219
  });
225
- return Nt.current && It.observe(Nt.current), () => It.disconnect();
226
- }, Dt = [], t[0] = kt, t[1] = Dt) : (kt = t[0], Dt = t[1]), Yt(kt, Dt);
227
- const Mt = jt || (typeof l[0] == "string" ? "categorical" : l.length === 2 ? "linear" : "threshold"), Lt = r?.graphContainer, St = n?.graphContainer, At = p ? void 0 : s;
220
+ return Nt.current && Rt.observe(Nt.current), () => Rt.disconnect();
221
+ }, Mt = [], t[0] = Dt, t[1] = Mt) : (Dt = t[0], Mt = t[1]), Yt(Dt, Mt);
222
+ const kt = jt || (typeof l[0] == "string" ? "categorical" : l.length === 2 ? "linear" : "threshold"), At = r?.graphContainer, Lt = a?.graphContainer, St = p ? void 0 : s;
228
223
  let Ct;
229
- t[2] !== r?.description || t[3] !== r?.title || t[4] !== h || t[5] !== $ || t[6] !== b || t[7] !== j || t[8] !== z || t[9] !== n?.description || t[10] !== n?.title || t[11] !== s ? (Ct = z || b || j || $ ? /* @__PURE__ */ o.jsx(io, { styles: {
230
- title: n?.title,
231
- description: n?.description
224
+ t[2] !== r?.description || t[3] !== r?.title || t[4] !== h || t[5] !== w || t[6] !== y || t[7] !== b || t[8] !== z || t[9] !== a?.description || t[10] !== a?.title || t[11] !== s ? (Ct = z || y || b || w ? /* @__PURE__ */ o.jsx(eo, { styles: {
225
+ title: a?.title,
226
+ description: a?.description
232
227
  }, classNames: {
233
228
  title: r?.title,
234
229
  description: r?.description
235
- }, graphTitle: z, graphDescription: b, width: s, graphDownload: j ? Et : void 0, dataDownload: $ ? h.map(yo).filter(vo).length > 0 ? h.map(xo).filter(fo) : h.filter(po) : null }) : null, t[2] = r?.description, t[3] = r?.title, t[4] = h, t[5] = $, t[6] = b, t[7] = j, t[8] = z, t[9] = n?.description, t[10] = n?.title, t[11] = s, t[12] = Ct) : Ct = t[12];
230
+ }, graphTitle: z, graphDescription: y, width: s, graphDownload: b ? Et : void 0, dataDownload: w ? h.map(vo).filter(xo).length > 0 ? h.map(fo).filter(po) : h.filter(go) : null }) : null, t[2] = r?.description, t[3] = r?.title, t[4] = h, t[5] = w, t[6] = y, t[7] = b, t[8] = z, t[9] = a?.description, t[10] = a?.title, t[11] = s, t[12] = Ct) : Ct = t[12];
236
231
  let bt;
237
- t[13] !== I || t[14] !== V || t[15] !== r || t[16] !== l || t[17] !== w || t[18] !== M || t[19] !== h || t[20] !== mt || t[21] !== p || t[22] !== O || t[23] !== x || t[24] !== k || t[25] !== W || t[26] !== Y || t[27] !== H || t[28] !== X || t[29] !== N || t[30] !== Mt || t[31] !== P || t[32] !== E || t[33] !== D || t[34] !== ot || t[35] !== T || t[36] !== m || t[37] !== n || t[38] !== q || t[39] !== C || t[40] !== et || t[41] !== i || t[42] !== _ || t[43] !== A || t[44] !== L || t[45] !== s ? (bt = h.length === 0 ? /* @__PURE__ */ o.jsx(ao, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
238
- E ? Mt === "categorical" ? /* @__PURE__ */ o.jsx(lo, { width: p ? void 0 : s, colorLegendTitle: w, colors: M || (typeof l[0] == "string" ? g[i].categoricalColors.colors : l.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${l.length + 1}`]), colorDomain: l.map(go), setSelectedColor: Tt, showNAColor: ot, className: r?.colorLegend }) : Mt === "threshold" ? /* @__PURE__ */ o.jsx(no, { width: p ? void 0 : s, colorLegendTitle: w, colors: M || (typeof l[0] == "string" ? g[i].categoricalColors.colors : l.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${l.length + 1}`]), colorDomain: l, setSelectedColor: Tt, naColor: x, showNAColor: ot }) : /* @__PURE__ */ o.jsx(so, { width: p ? void 0 : s, colorLegendTitle: w, colors: M || [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]], colorDomain: l, className: r?.colorLegend }) : null,
239
- /* @__PURE__ */ o.jsx(co, { ref: Nt, children: et && C ? /* @__PURE__ */ o.jsx(mo, { data: h, colorDomain: l, width: p || !s || et < s ? et : s, height: C, colors: M || (typeof l[0] == "string" ? g[i].categoricalColors.colors : l.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${l.length + 1}`]), noDataColor: x, scaleType: Mt, showColumnLabels: D, leftMargin: O, rightMargin: N, topMargin: A, bottomMargin: V, selectedColor: P, truncateBy: L, showRowLabels: T, tooltip: _, onSeriesMouseOver: W, showValues: m, suffix: q, prefix: H, onSeriesMouseClick: k, resetSelectionOnDoubleClick: X, detailsOnClick: mt, styles: n, classNames: r, animate: I === !0 ? {
232
+ t[13] !== R || t[14] !== V || t[15] !== r || t[16] !== l || t[17] !== C || t[18] !== j || t[19] !== h || t[20] !== mt || t[21] !== p || t[22] !== O || t[23] !== f || t[24] !== k || t[25] !== W || t[26] !== Y || t[27] !== H || t[28] !== X || t[29] !== N || t[30] !== kt || t[31] !== P || t[32] !== E || t[33] !== M || t[34] !== ot || t[35] !== T || t[36] !== m || t[37] !== a || t[38] !== q || t[39] !== v || t[40] !== et || t[41] !== i || t[42] !== _ || t[43] !== S || t[44] !== A || t[45] !== s ? (bt = h.length === 0 ? /* @__PURE__ */ o.jsx(ao, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
233
+ E ? kt === "categorical" ? /* @__PURE__ */ o.jsx(ro, { width: p ? void 0 : s, colorLegendTitle: C, colors: j || (typeof l[0] == "string" ? g[i].categoricalColors.colors : l.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${l.length + 1}`]), colorDomain: l.map(ho), setSelectedColor: Tt, showNAColor: ot, className: r?.colorLegend }) : kt === "threshold" ? /* @__PURE__ */ o.jsx(so, { width: p ? void 0 : s, colorLegendTitle: C, colors: j || (typeof l[0] == "string" ? g[i].categoricalColors.colors : l.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${l.length + 1}`]), colorDomain: l, setSelectedColor: Tt, naColor: f, showNAColor: ot }) : /* @__PURE__ */ o.jsx(lo, { width: p ? void 0 : s, colorLegendTitle: C, colors: j || [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]], colorDomain: l, className: r?.colorLegend }) : null,
234
+ /* @__PURE__ */ o.jsx(no, { ref: Nt, children: et && v ? /* @__PURE__ */ o.jsx(uo, { data: h, colorDomain: l, width: p || !s || et < s ? et : s, height: v, colors: j || (typeof l[0] == "string" ? g[i].categoricalColors.colors : l.length === 2 ? [g[i].sequentialColors.neutralColorsx09[0], g[i].sequentialColors.neutralColorsx09[8]] : g[i].sequentialColors[`neutralColorsx0${l.length + 1}`]), noDataColor: f, scaleType: kt, showColumnLabels: M, leftMargin: O, rightMargin: N, topMargin: S, bottomMargin: V, selectedColor: P, truncateBy: A, showRowLabels: T, tooltip: _, onSeriesMouseOver: W, showValues: m, suffix: q, prefix: H, onSeriesMouseClick: k, resetSelectionOnDoubleClick: X, detailsOnClick: mt, styles: a, classNames: r, animate: R === !0 ? {
240
235
  duration: 0.5,
241
236
  once: !0,
242
237
  amount: 0.5
243
- } : I || {
238
+ } : R || {
244
239
  duration: 0,
245
240
  once: !0,
246
241
  amount: 0
247
242
  }, precision: Y }) : null })
248
- ] }), t[13] = I, t[14] = V, t[15] = r, t[16] = l, t[17] = w, t[18] = M, t[19] = h, t[20] = mt, t[21] = p, t[22] = O, t[23] = x, t[24] = k, t[25] = W, t[26] = Y, t[27] = H, t[28] = X, t[29] = N, t[30] = Mt, t[31] = P, t[32] = E, t[33] = D, t[34] = ot, t[35] = T, t[36] = m, t[37] = n, t[38] = q, t[39] = C, t[40] = et, t[41] = i, t[42] = _, t[43] = A, t[44] = L, t[45] = s, t[46] = bt) : bt = t[46];
243
+ ] }), t[13] = R, t[14] = V, t[15] = r, t[16] = l, t[17] = C, t[18] = j, t[19] = h, t[20] = mt, t[21] = p, t[22] = O, t[23] = f, t[24] = k, t[25] = W, t[26] = Y, t[27] = H, t[28] = X, t[29] = N, t[30] = kt, t[31] = P, t[32] = E, t[33] = M, t[34] = ot, t[35] = T, t[36] = m, t[37] = a, t[38] = q, t[39] = v, t[40] = et, t[41] = i, t[42] = _, t[43] = S, t[44] = A, t[45] = s, t[46] = bt) : bt = t[46];
249
244
  let wt;
250
- t[47] !== r?.footnote || t[48] !== r?.source || t[49] !== Z || t[50] !== U || t[51] !== n?.footnote || t[52] !== n?.source || t[53] !== s ? (wt = U || Z ? /* @__PURE__ */ o.jsx(ro, { styles: {
251
- footnote: n?.footnote,
252
- source: n?.source
245
+ t[47] !== r?.footnote || t[48] !== r?.source || t[49] !== Z || t[50] !== U || t[51] !== a?.footnote || t[52] !== a?.source || t[53] !== s ? (wt = U || Z ? /* @__PURE__ */ o.jsx(io, { styles: {
246
+ footnote: a?.footnote,
247
+ source: a?.source
253
248
  }, classNames: {
254
249
  footnote: r?.footnote,
255
250
  source: r?.source
256
- }, sources: U, footNote: Z, width: s }) : null, t[47] = r?.footnote, t[48] = r?.source, t[49] = Z, t[50] = U, t[51] = n?.footnote, t[52] = n?.source, t[53] = s, t[54] = wt) : wt = t[54];
251
+ }, sources: U, footNote: Z, width: s }) : null, t[47] = r?.footnote, t[48] = r?.source, t[49] = Z, t[50] = U, t[51] = a?.footnote, t[52] = a?.source, t[53] = s, t[54] = wt) : wt = t[54];
257
252
  let Ot;
258
- return t[55] !== ct || t[56] !== S || t[57] !== lt || t[58] !== Q || t[59] !== tt || t[60] !== ht || t[61] !== R || t[62] !== u || t[63] !== Lt || t[64] !== St || t[65] !== At || t[66] !== Ct || t[67] !== bt || t[68] !== wt || t[69] !== i ? (Ot = /* @__PURE__ */ o.jsxs(uo, { className: Lt, style: St, id: lt, ref: Et, "aria-label": ct, backgroundColor: S, theme: i, language: tt, minHeight: ht, width: At, height: Q, relativeHeight: u, padding: R, children: [
253
+ return t[55] !== ct || t[56] !== L || t[57] !== lt || t[58] !== Q || t[59] !== tt || t[60] !== ht || t[61] !== I || t[62] !== n || t[63] !== At || t[64] !== Lt || t[65] !== St || t[66] !== Ct || t[67] !== bt || t[68] !== wt || t[69] !== i ? (Ot = /* @__PURE__ */ o.jsxs(co, { className: At, style: Lt, id: lt, ref: Et, "aria-label": ct, backgroundColor: L, theme: i, language: tt, minHeight: ht, width: St, height: Q, relativeHeight: n, padding: I, children: [
259
254
  Ct,
260
255
  bt,
261
256
  wt
262
- ] }), t[55] = ct, t[56] = S, t[57] = lt, t[58] = Q, t[59] = tt, t[60] = ht, t[61] = R, t[62] = u, t[63] = Lt, t[64] = St, t[65] = At, t[66] = Ct, t[67] = bt, t[68] = wt, t[69] = i, t[70] = Ot) : Ot = t[70], Ot;
257
+ ] }), t[55] = ct, t[56] = L, t[57] = lt, t[58] = Q, t[59] = tt, t[60] = ht, t[61] = I, t[62] = n, t[63] = At, t[64] = Lt, t[65] = St, t[66] = Ct, t[67] = bt, t[68] = wt, t[69] = i, t[70] = Ot) : Ot = t[70], Ot;
263
258
  }
264
- function go(a) {
265
- return `${a}`;
259
+ function ho(c) {
260
+ return `${c}`;
266
261
  }
267
- function po(a) {
268
- return a !== void 0;
262
+ function go(c) {
263
+ return c !== void 0;
269
264
  }
270
- function fo(a) {
271
- return a !== void 0;
265
+ function po(c) {
266
+ return c !== void 0;
272
267
  }
273
- function xo(a) {
274
- return a.data;
268
+ function fo(c) {
269
+ return c.data;
275
270
  }
276
- function vo(a) {
277
- return a !== void 0;
271
+ function xo(c) {
272
+ return c !== void 0;
278
273
  }
279
- function yo(a) {
280
- return a.data;
274
+ function vo(c) {
275
+ return c.data;
281
276
  }
282
277
  export {
283
- Po as HeatMap
278
+ Yo as HeatMap
284
279
  };
285
280
  //# sourceMappingURL=HeatMap.js.map