@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.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.d.ts +11 -9
- package/dist/AreaChart.js +320 -322
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +15 -25
- package/dist/BarGraph.js +1694 -1694
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.d.ts +13 -9
- package/dist/BasicStatCard.js +79 -81
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +11 -9
- package/dist/BeeSwarmChart.js +335 -336
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +13 -3
- package/dist/BiVariateChoroplethMap.js +247 -245
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +11 -5
- package/dist/BulletChart.js +560 -559
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +11 -9
- package/dist/ButterflyChart.js +348 -350
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +11 -3
- package/dist/ChoroplethMap.js +213 -213
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +11 -9
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.d.ts +1 -1
- package/dist/DataCards.js +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.d.ts +4 -5
- package/dist/DataTable.js +114 -116
- package/dist/DataTable.js.map +1 -1
- package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
- package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
- package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
- package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.d.ts +11 -9
- package/dist/DifferenceLineChart.js +502 -504
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +14 -9
- package/dist/DonutChart.js +174 -179
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.d.ts +1 -1
- package/dist/DotDensityMap.js +2 -2
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.d.ts +13 -9
- package/dist/DualAxisLineChart.js +341 -351
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +11 -9
- package/dist/DumbbellChart.js +592 -593
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.d.ts +1 -1
- package/dist/GeoHubCompareMaps.js +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.d.ts +1 -1
- package/dist/GeoHubMap.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/GraphEl-B7x5ku_y.cjs +2 -0
- package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
- package/dist/GraphEl-B8tGXqWk.js +1829 -0
- package/dist/GraphEl-B8tGXqWk.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +28 -16
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +28 -16
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +11 -9
- package/dist/HeatMap.js +203 -205
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.cjs.map +1 -1
- package/dist/Histogram.d.ts +11 -5
- package/dist/Histogram.js +88 -89
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +11 -3
- package/dist/HybridMap.js +279 -279
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
- package/dist/LineChartWithConfidenceInterval.js +393 -395
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +28 -16
- package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +11 -9
- package/dist/MultiLineAltChart.js +411 -413
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.d.ts +11 -9
- package/dist/MultiLineChart.js +438 -440
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +13 -13
- package/dist/ParetoChart.js +347 -355
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
- package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +11 -5
- package/dist/RadarChart.js +213 -213
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +11 -9
- package/dist/SankeyChart.js +448 -450
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +13 -13
- package/dist/ScatterPlot.js +490 -498
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +28 -16
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.d.ts +11 -9
- package/dist/SimpleLineChart.js +362 -364
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +28 -16
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
- package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.d.ts +1 -1
- package/dist/SlopeChart.js +2 -2
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +1 -1
- package/dist/SparkLine.js +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.d.ts +11 -9
- package/dist/StatCardFromData.js +113 -116
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +11 -9
- package/dist/StripChart.js +434 -435
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +11 -3
- package/dist/ThreeDGlobe.js +143 -143
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
- package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
- package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
- package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
- package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +11 -9
- package/dist/TreeMapGraph.js +369 -371
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +28 -16
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.d.ts +11 -5
- package/dist/UnitChart.js +118 -119
- package/dist/UnitChart.js.map +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +11 -9
- package/dist/WaterfallChart.js +306 -308
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
- package/dist/index-BPyj_6hG.js +375 -0
- package/dist/index-BPyj_6hG.js.map +1 -0
- package/dist/index-DuLvdHo2.cjs +2 -0
- package/dist/index-DuLvdHo2.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +105 -245
- package/dist/index.js +2 -2
- package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
- package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
- package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
- package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
- package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
- package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/GraphEl-B73N4RIA.js +0 -1906
- package/dist/GraphEl-B73N4RIA.js.map +0 -1
- package/dist/GraphEl-Lt1og0C-.cjs +0 -2
- package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
- package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
- package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
- package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
- package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
- package/dist/index-B0Awa_de.js +0 -377
- package/dist/index-B0Awa_de.js.map +0 -1
- package/dist/index-CP8cmNzt.cjs +0 -2
- package/dist/index-CP8cmNzt.cjs.map +0 -1
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
- package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
- package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
package/dist/StripChart.js
CHANGED
|
@@ -1,201 +1,202 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { i as
|
|
4
|
-
import { o as
|
|
5
|
-
import { T as
|
|
6
|
-
import { c as
|
|
7
|
-
import { n as
|
|
1
|
+
import { c as zt, j as a, m as Pt } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { useRef as Gt, useState as jt, useEffect as ii } from "react";
|
|
3
|
+
import { i as Bt } from "./index-Bwrro8-q.js";
|
|
4
|
+
import { o as qt } from "./index-BZQYSqar.js";
|
|
5
|
+
import { T as Ut } from "./Tooltip-3EYDVa3w.js";
|
|
6
|
+
import { c as B } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
7
|
+
import { n as Wt } from "./numberFormattingFunction-BUUV_luR.js";
|
|
8
8
|
import { Colors as h } from "./Colors.js";
|
|
9
|
-
import { D as
|
|
10
|
-
import { a as
|
|
11
|
-
import { m as
|
|
12
|
-
import { u as
|
|
13
|
-
import { A as
|
|
14
|
-
import { u as
|
|
15
|
-
import { a as
|
|
16
|
-
import { E as
|
|
17
|
-
import { ColorLegendWithMouseOver as
|
|
18
|
-
import { GraphFooter as
|
|
19
|
-
import { GraphHeader as
|
|
20
|
-
function
|
|
9
|
+
import { D as Jt } from "./DetailsModal-GqEbGHY2.js";
|
|
10
|
+
import { a as Kt } from "./linear-DNXM5Pdl.js";
|
|
11
|
+
import { m as rt } from "./proxy-BsxtcZKa.js";
|
|
12
|
+
import { u as Qt } from "./use-in-view-KOXq5Kmc.js";
|
|
13
|
+
import { A as _t } from "./index-Cv_5q6Rb.js";
|
|
14
|
+
import { u as Ft } from "./uniqBy-BHy4I8PK.js";
|
|
15
|
+
import { a as ei, G as oi } from "./GraphContainer-B8ZqOzKI.js";
|
|
16
|
+
import { E as ni } from "./EmptyState-CaxXCkiN.js";
|
|
17
|
+
import { ColorLegendWithMouseOver as ri } from "./ColorLegendWithMouseOver.js";
|
|
18
|
+
import { GraphFooter as li } from "./GraphFooter.js";
|
|
19
|
+
import { GraphHeader as ai } from "./GraphHeader.js";
|
|
20
|
+
function ti(i, t) {
|
|
21
21
|
if (i < 2) return [];
|
|
22
22
|
const o = t / (i - 1);
|
|
23
23
|
return Array.from({
|
|
24
24
|
length: i
|
|
25
|
-
}, (
|
|
25
|
+
}, (S, v) => v * o);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const t =
|
|
27
|
+
function si(i) {
|
|
28
|
+
const t = zt.c(103), {
|
|
29
29
|
data: o,
|
|
30
|
-
width:
|
|
31
|
-
height:
|
|
30
|
+
width: S,
|
|
31
|
+
height: v,
|
|
32
32
|
colors: n,
|
|
33
33
|
colorDomain: l,
|
|
34
34
|
radius: u,
|
|
35
35
|
leftMargin: C,
|
|
36
|
-
rightMargin:
|
|
37
|
-
topMargin:
|
|
38
|
-
bottomMargin:
|
|
39
|
-
tooltip:
|
|
40
|
-
onSeriesMouseOver:
|
|
36
|
+
rightMargin: Ct,
|
|
37
|
+
topMargin: ht,
|
|
38
|
+
bottomMargin: At,
|
|
39
|
+
tooltip: gt,
|
|
40
|
+
onSeriesMouseOver: lt,
|
|
41
41
|
highlightedDataPoints: r,
|
|
42
|
-
selectedColor:
|
|
43
|
-
minValue:
|
|
44
|
-
maxValue:
|
|
45
|
-
onSeriesMouseClick:
|
|
46
|
-
noOfTicks:
|
|
47
|
-
prefix:
|
|
48
|
-
suffix:
|
|
42
|
+
selectedColor: at,
|
|
43
|
+
minValue: T,
|
|
44
|
+
maxValue: E,
|
|
45
|
+
onSeriesMouseClick: q,
|
|
46
|
+
noOfTicks: st,
|
|
47
|
+
prefix: U,
|
|
48
|
+
suffix: ct,
|
|
49
49
|
stripType: w,
|
|
50
|
-
highlightColor:
|
|
51
|
-
dotOpacity:
|
|
52
|
-
resetSelectionOnDoubleClick:
|
|
53
|
-
detailsOnClick:
|
|
54
|
-
styles:
|
|
50
|
+
highlightColor: O,
|
|
51
|
+
dotOpacity: Ot,
|
|
52
|
+
resetSelectionOnDoubleClick: J,
|
|
53
|
+
detailsOnClick: b,
|
|
54
|
+
styles: p,
|
|
55
55
|
classNames: M,
|
|
56
|
-
valueColor:
|
|
57
|
-
animate:
|
|
56
|
+
valueColor: m,
|
|
57
|
+
animate: d,
|
|
58
58
|
dimmedOpacity: tt,
|
|
59
59
|
precision: it,
|
|
60
60
|
customLayers: V,
|
|
61
|
-
showDataMinMax:
|
|
62
|
-
locale:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
61
|
+
showDataMinMax: Dt,
|
|
62
|
+
locale: et,
|
|
63
|
+
padZeros: ot
|
|
64
|
+
} = i, It = C === void 0 ? 20 : C, bt = Ct === void 0 ? 20 : Ct, wt = ht === void 0 ? 10 : ht, kt = At === void 0 ? 10 : At, Nt = Gt(null);
|
|
65
|
+
let xt;
|
|
66
|
+
t[0] !== d.amount || t[1] !== d.once ? (xt = {
|
|
67
|
+
once: d.once,
|
|
68
|
+
amount: d.amount
|
|
69
|
+
}, t[0] = d.amount, t[1] = d.once, t[2] = xt) : xt = t[2];
|
|
70
|
+
const s = Qt(Nt, xt), [f, $t] = jt(void 0), [D, yt] = jt(void 0), [vt, x] = jt(void 0), [ut, Mt] = jt(void 0);
|
|
71
|
+
let ft;
|
|
72
|
+
t[3] !== kt || t[4] !== It || t[5] !== bt || t[6] !== wt ? (ft = {
|
|
73
|
+
top: wt,
|
|
74
|
+
bottom: kt,
|
|
75
|
+
left: It,
|
|
76
|
+
right: bt
|
|
77
|
+
}, t[3] = kt, t[4] = It, t[5] = bt, t[6] = wt, t[7] = ft) : ft = t[7];
|
|
78
|
+
const g = ft, L = S - g.left - g.right, H = v - g.top - g.bottom;
|
|
79
|
+
let P, W, j, X, Y, y, G, K, I, z, k, R;
|
|
80
|
+
if (t[8] !== d.duration || t[9] !== M?.graphObjectValues || t[10] !== M?.yAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== V || t[14] !== o || t[15] !== b || t[16] !== tt || t[17] !== Ot || t[18] !== H || t[19] !== L || t[20] !== v || t[21] !== O || t[22] !== r || t[23] !== s || t[24] !== et || t[25] !== g.left || t[26] !== g.top || t[27] !== E || t[28] !== T || t[29] !== D || t[30] !== st || t[31] !== q || t[32] !== lt || t[33] !== ot || t[34] !== it || t[35] !== U || t[36] !== u || t[37] !== J || t[38] !== at || t[39] !== Dt || t[40] !== w || t[41] !== p?.graphObjectValues || t[42] !== p?.yAxis?.labels || t[43] !== ct || t[44] !== m || t[45] !== S) {
|
|
81
|
+
const Xt = o.map(Hi);
|
|
82
|
+
let mt;
|
|
83
|
+
t[58] !== r ? (mt = (e) => {
|
|
83
84
|
const c = (r || []).indexOf(e.label);
|
|
84
85
|
return c === -1 ? 1 / 0 : c;
|
|
85
|
-
}, t[
|
|
86
|
-
const
|
|
87
|
-
let
|
|
88
|
-
t[
|
|
89
|
-
const
|
|
90
|
-
let
|
|
91
|
-
t[
|
|
92
|
-
const
|
|
93
|
-
|
|
86
|
+
}, t[58] = r, t[59] = mt) : mt = t[59];
|
|
87
|
+
const Et = qt(Xt, [mt], ["desc"]);
|
|
88
|
+
let nt;
|
|
89
|
+
t[60] !== o || t[61] !== E ? (nt = B(E) ? Math.max(...o.filter(Li).map(Ei)) < 0 ? 0 : Math.max(...o.filter(Ti).map(Si)) : E, t[60] = o, t[61] = E, t[62] = nt) : nt = t[62];
|
|
90
|
+
const St = nt;
|
|
91
|
+
let dt;
|
|
92
|
+
t[63] !== o || t[64] !== T ? (dt = B(T) ? Math.min(...o.filter(Ni).map(Ai)) >= 0 ? 0 : Math.min(...o.filter($i).map(ki)) : T, t[63] = o, t[64] = T, t[65] = dt) : dt = t[65];
|
|
93
|
+
const Tt = dt, N = Kt().domain([Tt, St]).range([H, 0]).nice(), Vt = ti(st, H);
|
|
94
|
+
W = rt.svg, X = `${S}px`, Y = `${v}px`, y = `0 0 ${S} ${v}`, G = "ltr", K = Nt, R = `translate(${g.left},${g.top})`, t[66] !== V ? (j = V.filter(Ii).map(Di), t[66] = V, t[67] = j) : j = t[67], P = _t, I = Et.map((e) => /* @__PURE__ */ a.jsxs(rt.g, { className: "undp-viz-g-with-hover", variants: {
|
|
94
95
|
initial: {
|
|
95
96
|
opacity: 0,
|
|
96
|
-
x:
|
|
97
|
-
y:
|
|
97
|
+
x: L / 2,
|
|
98
|
+
y: N(0)
|
|
98
99
|
},
|
|
99
100
|
whileInView: {
|
|
100
|
-
x:
|
|
101
|
-
y:
|
|
102
|
-
opacity:
|
|
101
|
+
x: L / 2,
|
|
102
|
+
y: N(e.position),
|
|
103
|
+
opacity: at ? e.color && n[l.indexOf(e.color)] === at ? 0.95 : tt : r ? r.indexOf(e.label) !== -1 ? 0.95 : tt : Ot,
|
|
103
104
|
transition: {
|
|
104
|
-
duration:
|
|
105
|
+
duration: d.duration
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
|
-
}, initial: "initial", animate:
|
|
108
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
108
109
|
opacity: 0,
|
|
109
110
|
transition: {
|
|
110
|
-
duration:
|
|
111
|
+
duration: d.duration
|
|
111
112
|
}
|
|
112
113
|
}, onMouseEnter: (c) => {
|
|
113
|
-
|
|
114
|
+
$t(e), Mt(c.clientY), x(c.clientX), lt?.(e);
|
|
114
115
|
}, onClick: () => {
|
|
115
|
-
(
|
|
116
|
+
(q || b) && (Bt(D, e) && J ? (yt(void 0), q?.(void 0)) : (yt(e), q?.(e)));
|
|
116
117
|
}, onMouseMove: (c) => {
|
|
117
|
-
|
|
118
|
+
$t(e), Mt(c.clientY), x(c.clientX);
|
|
118
119
|
}, onMouseLeave: () => {
|
|
119
|
-
|
|
120
|
+
$t(void 0), x(void 0), Mt(void 0), lt?.(void 0);
|
|
120
121
|
}, children: [
|
|
121
|
-
w === "dot" ? /* @__PURE__ */ a.jsx(
|
|
122
|
+
w === "dot" ? /* @__PURE__ */ a.jsx(rt.circle, { cy: 0, cx: 0, variants: {
|
|
122
123
|
initial: {
|
|
123
|
-
fill:
|
|
124
|
+
fill: O && r ? r.indexOf(e.label) !== -1 ? O : o.filter(Ci).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(ji).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
|
|
124
125
|
},
|
|
125
126
|
whileInView: {
|
|
126
|
-
fill:
|
|
127
|
+
fill: O && r ? r.indexOf(e.label) !== -1 ? O : o.filter(Vi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Mi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
|
|
127
128
|
transition: {
|
|
128
|
-
duration:
|
|
129
|
+
duration: d.duration
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
}, initial: "initial", animate:
|
|
132
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
132
133
|
opacity: 0,
|
|
133
134
|
transition: {
|
|
134
|
-
duration:
|
|
135
|
+
duration: d.duration
|
|
135
136
|
}
|
|
136
|
-
}, r: u }) : /* @__PURE__ */ a.jsx(
|
|
137
|
+
}, r: u }) : /* @__PURE__ */ a.jsx(rt.rect, { y: -1, height: 2, variants: {
|
|
137
138
|
initial: {
|
|
138
139
|
x: 0 - u,
|
|
139
140
|
width: u * 2,
|
|
140
|
-
fill:
|
|
141
|
+
fill: O && r ? r.indexOf(e.label) !== -1 ? O : o.filter(wi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(bi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
|
|
141
142
|
},
|
|
142
143
|
whileInView: {
|
|
143
144
|
x: 0 - u,
|
|
144
145
|
width: u * 2,
|
|
145
|
-
fill:
|
|
146
|
+
fill: O && r ? r.indexOf(e.label) !== -1 ? O : o.filter(Oi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(vi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
|
|
146
147
|
transition: {
|
|
147
|
-
duration:
|
|
148
|
+
duration: d.duration
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
|
-
}, initial: "initial", animate:
|
|
151
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
151
152
|
opacity: 0,
|
|
152
153
|
transition: {
|
|
153
|
-
duration:
|
|
154
|
+
duration: d.duration
|
|
154
155
|
}
|
|
155
156
|
} }),
|
|
156
|
-
r && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(
|
|
157
|
+
r && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(rt.text, { y: 0, dy: "0.33em", variants: {
|
|
157
158
|
initial: {
|
|
158
159
|
opacity: 0,
|
|
159
160
|
x: 0 + u + 3,
|
|
160
|
-
fill:
|
|
161
|
+
fill: m || (O && r ? r.indexOf(e.label) !== -1 ? O : o.filter(yi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(xi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray)
|
|
161
162
|
},
|
|
162
163
|
whileInView: {
|
|
163
164
|
opacity: 1,
|
|
164
165
|
x: 0 + u + 3,
|
|
165
|
-
fill:
|
|
166
|
+
fill: m || (O && r ? r.indexOf(e.label) !== -1 ? O : o.filter(gi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(hi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray),
|
|
166
167
|
transition: {
|
|
167
|
-
duration:
|
|
168
|
+
duration: d.duration
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
|
-
}, initial: "initial", animate:
|
|
171
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
171
172
|
opacity: 0,
|
|
172
173
|
transition: {
|
|
173
|
-
duration:
|
|
174
|
+
duration: d.duration
|
|
174
175
|
}
|
|
175
176
|
}, style: {
|
|
176
177
|
textAnchor: "start",
|
|
177
|
-
...
|
|
178
|
-
}, className:
|
|
179
|
-
] }, e.label)),
|
|
178
|
+
...p?.graphObjectValues || {}
|
|
179
|
+
}, className: Pt("graph-value text-sm font-bold", M?.graphObjectValues), children: Wt(e.position, void 0, it, U, ct, et, ot) }) : null
|
|
180
|
+
] }, e.label)), z = Dt ? [Math.min(...o.filter(di).map(mi)), Math.max(...o.filter(pi).map(fi))].map((e, c) => /* @__PURE__ */ a.jsx(rt.g, { variants: {
|
|
180
181
|
initial: {
|
|
181
182
|
opacity: 0,
|
|
182
|
-
x:
|
|
183
|
-
y:
|
|
183
|
+
x: L / 2,
|
|
184
|
+
y: N(e)
|
|
184
185
|
},
|
|
185
186
|
whileInView: {
|
|
186
|
-
x:
|
|
187
|
-
y:
|
|
187
|
+
x: L / 2,
|
|
188
|
+
y: N(e),
|
|
188
189
|
opacity: 1,
|
|
189
190
|
transition: {
|
|
190
|
-
duration:
|
|
191
|
+
duration: d.duration
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
|
-
}, initial: "initial", animate:
|
|
194
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
194
195
|
opacity: 0,
|
|
195
196
|
transition: {
|
|
196
|
-
duration:
|
|
197
|
+
duration: d.duration
|
|
197
198
|
}
|
|
198
|
-
}, children: /* @__PURE__ */ a.jsx(
|
|
199
|
+
}, children: /* @__PURE__ */ a.jsx(rt.text, { y: 0, dy: "0.33em", variants: {
|
|
199
200
|
initial: {
|
|
200
201
|
opacity: 0,
|
|
201
202
|
x: 0 + u + 3
|
|
@@ -204,312 +205,313 @@ function hi(i) {
|
|
|
204
205
|
opacity: 1,
|
|
205
206
|
x: 0 + u + 3,
|
|
206
207
|
transition: {
|
|
207
|
-
duration:
|
|
208
|
+
duration: d.duration
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
|
-
}, initial: "initial", animate:
|
|
211
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
211
212
|
opacity: 0,
|
|
212
213
|
transition: {
|
|
213
|
-
duration:
|
|
214
|
+
duration: d.duration
|
|
214
215
|
}
|
|
215
216
|
}, style: {
|
|
216
217
|
textAnchor: "start",
|
|
217
|
-
...
|
|
218
|
-
}, className:
|
|
218
|
+
...p?.graphObjectValues || {}
|
|
219
|
+
}, className: Pt("graph-min-max-value text-sm text-primary-gray-550 dark:text-primary-gray-200", M?.graphObjectValues), children: Wt(e, void 0, it, U, ct, et, ot) }) }, c === 0 ? "min-value" : "max-value")) : null, k = Vt.map((e, c) => /* @__PURE__ */ a.jsx("text", { y: e, x: L / 2 + u + 5, style: {
|
|
219
220
|
textAnchor: "start",
|
|
220
|
-
...
|
|
221
|
-
}, className:
|
|
221
|
+
...p?.yAxis?.labels || {}
|
|
222
|
+
}, className: Pt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", M?.yAxis?.labels), children: Wt(N.invert(e), void 0, it, U, ct, et, ot) }, `tick-${c}`)), t[8] = d.duration, t[9] = M?.graphObjectValues, t[10] = M?.yAxis?.labels, t[11] = l, t[12] = n, t[13] = V, t[14] = o, t[15] = b, t[16] = tt, t[17] = Ot, t[18] = H, t[19] = L, t[20] = v, t[21] = O, t[22] = r, t[23] = s, t[24] = et, t[25] = g.left, t[26] = g.top, t[27] = E, t[28] = T, t[29] = D, t[30] = st, t[31] = q, t[32] = lt, t[33] = ot, t[34] = it, t[35] = U, t[36] = u, t[37] = J, t[38] = at, t[39] = Dt, t[40] = w, t[41] = p?.graphObjectValues, t[42] = p?.yAxis?.labels, t[43] = ct, t[44] = m, t[45] = S, t[46] = P, t[47] = W, t[48] = j, t[49] = X, t[50] = Y, t[51] = y, t[52] = G, t[53] = K, t[54] = I, t[55] = z, t[56] = k, t[57] = R;
|
|
222
223
|
} else
|
|
223
|
-
|
|
224
|
-
let G;
|
|
225
|
-
t[67] !== S || t[68] !== W || t[69] !== X || t[70] !== Y ? (G = /* @__PURE__ */ a.jsxs(S, { children: [
|
|
226
|
-
W,
|
|
227
|
-
X,
|
|
228
|
-
Y
|
|
229
|
-
] }), t[67] = S, t[68] = W, t[69] = X, t[70] = Y, t[71] = G) : G = t[71];
|
|
224
|
+
P = t[46], W = t[47], j = t[48], X = t[49], Y = t[50], y = t[51], G = t[52], K = t[53], I = t[54], z = t[55], k = t[56], R = t[57];
|
|
230
225
|
let Z;
|
|
231
|
-
t[
|
|
232
|
-
|
|
233
|
-
t[74] !== b || t[75] !== G || t[76] !== Z || t[77] !== x ? (I = /* @__PURE__ */ a.jsxs("g", { transform: x, children: [
|
|
234
|
-
b,
|
|
235
|
-
G,
|
|
236
|
-
Z
|
|
237
|
-
] }), t[74] = b, t[75] = G, t[76] = Z, t[77] = x, t[78] = I) : I = t[78];
|
|
238
|
-
let z;
|
|
239
|
-
t[79] !== T || t[80] !== D || t[81] !== E || t[82] !== L || t[83] !== H || t[84] !== P || t[85] !== I ? (z = /* @__PURE__ */ a.jsx(T, { width: D, height: E, viewBox: L, direction: H, ref: P, children: I }), t[79] = T, t[80] = D, t[81] = E, t[82] = L, t[83] = H, t[84] = P, t[85] = I, t[86] = z) : z = t[86];
|
|
240
|
-
let R;
|
|
241
|
-
t[87] !== M?.tooltip || t[88] !== ht || t[89] !== gt || t[90] !== ut || t[91] !== f?.tooltip || t[92] !== dt ? (R = ut && dt && ht && gt ? /* @__PURE__ */ a.jsx(ei, { data: ut, body: dt, xPos: ht, yPos: gt, backgroundStyle: f?.tooltip, className: M?.tooltip }) : null, t[87] = M?.tooltip, t[88] = ht, t[89] = gt, t[90] = ut, t[91] = f?.tooltip, t[92] = dt, t[93] = R) : R = t[93];
|
|
242
|
-
let k;
|
|
243
|
-
t[94] !== M?.modal || t[95] !== O || t[96] !== s ? (k = O && s !== void 0 ? /* @__PURE__ */ a.jsx(oi, { body: O, data: s, setData: d, className: M?.modal }) : null, t[94] = M?.modal, t[95] = O, t[96] = s, t[97] = k) : k = t[97];
|
|
244
|
-
let ft;
|
|
245
|
-
return t[98] !== z || t[99] !== R || t[100] !== k ? (ft = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
226
|
+
t[68] !== P || t[69] !== I || t[70] !== z || t[71] !== k ? (Z = /* @__PURE__ */ a.jsxs(P, { children: [
|
|
227
|
+
I,
|
|
246
228
|
z,
|
|
247
|
-
R,
|
|
248
229
|
k
|
|
249
|
-
] }), t[
|
|
250
|
-
|
|
251
|
-
|
|
230
|
+
] }), t[68] = P, t[69] = I, t[70] = z, t[71] = k, t[72] = Z) : Z = t[72];
|
|
231
|
+
let F;
|
|
232
|
+
t[73] !== V ? (F = V.filter(ui).map(ci), t[73] = V, t[74] = F) : F = t[74];
|
|
233
|
+
let $;
|
|
234
|
+
t[75] !== j || t[76] !== Z || t[77] !== F || t[78] !== R ? ($ = /* @__PURE__ */ a.jsxs("g", { transform: R, children: [
|
|
235
|
+
j,
|
|
236
|
+
Z,
|
|
237
|
+
F
|
|
238
|
+
] }), t[75] = j, t[76] = Z, t[77] = F, t[78] = R, t[79] = $) : $ = t[79];
|
|
239
|
+
let Q;
|
|
240
|
+
t[80] !== W || t[81] !== X || t[82] !== Y || t[83] !== y || t[84] !== G || t[85] !== K || t[86] !== $ ? (Q = /* @__PURE__ */ a.jsx(W, { width: X, height: Y, viewBox: y, direction: G, ref: K, children: $ }), t[80] = W, t[81] = X, t[82] = Y, t[83] = y, t[84] = G, t[85] = K, t[86] = $, t[87] = Q) : Q = t[87];
|
|
241
|
+
let A;
|
|
242
|
+
t[88] !== M?.tooltip || t[89] !== vt || t[90] !== ut || t[91] !== f || t[92] !== p?.tooltip || t[93] !== gt ? (A = f && gt && vt && ut ? /* @__PURE__ */ a.jsx(Ut, { data: f, body: gt, xPos: vt, yPos: ut, backgroundStyle: p?.tooltip, className: M?.tooltip }) : null, t[88] = M?.tooltip, t[89] = vt, t[90] = ut, t[91] = f, t[92] = p?.tooltip, t[93] = gt, t[94] = A) : A = t[94];
|
|
243
|
+
let _;
|
|
244
|
+
t[95] !== M?.modal || t[96] !== b || t[97] !== D ? (_ = b && D !== void 0 ? /* @__PURE__ */ a.jsx(Jt, { body: b, data: D, setData: yt, className: M?.modal }) : null, t[95] = M?.modal, t[96] = b, t[97] = D, t[98] = _) : _ = t[98];
|
|
245
|
+
let pt;
|
|
246
|
+
return t[99] !== Q || t[100] !== A || t[101] !== _ ? (pt = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
247
|
+
Q,
|
|
248
|
+
A,
|
|
249
|
+
_
|
|
250
|
+
] }), t[99] = Q, t[100] = A, t[101] = _, t[102] = pt) : pt = t[102], pt;
|
|
251
|
+
}
|
|
252
|
+
function ci(i) {
|
|
252
253
|
return i.layer;
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
+
function ui(i) {
|
|
255
256
|
return i.position === "after";
|
|
256
257
|
}
|
|
257
|
-
function
|
|
258
|
+
function fi(i) {
|
|
258
259
|
return i.position;
|
|
259
260
|
}
|
|
260
|
-
function
|
|
261
|
-
return !
|
|
261
|
+
function pi(i) {
|
|
262
|
+
return !B(i.position);
|
|
262
263
|
}
|
|
263
|
-
function
|
|
264
|
+
function mi(i) {
|
|
264
265
|
return i.position;
|
|
265
266
|
}
|
|
266
|
-
function
|
|
267
|
-
return !
|
|
267
|
+
function di(i) {
|
|
268
|
+
return !B(i.position);
|
|
268
269
|
}
|
|
269
|
-
function
|
|
270
|
+
function hi(i) {
|
|
270
271
|
return i.color;
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function gi(i) {
|
|
273
274
|
return i.color;
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
+
function xi(i) {
|
|
276
277
|
return i.color;
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
+
function yi(i) {
|
|
279
280
|
return i.color;
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
+
function vi(i) {
|
|
282
283
|
return i.color;
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function Oi(i) {
|
|
285
286
|
return i.color;
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
+
function bi(i) {
|
|
288
289
|
return i.color;
|
|
289
290
|
}
|
|
290
|
-
function
|
|
291
|
+
function wi(i) {
|
|
291
292
|
return i.color;
|
|
292
293
|
}
|
|
293
|
-
function
|
|
294
|
+
function Mi(i) {
|
|
294
295
|
return i.color;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function Vi(i) {
|
|
297
298
|
return i.color;
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function ji(i) {
|
|
300
301
|
return i.color;
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
+
function Ci(i) {
|
|
303
304
|
return i.color;
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
+
function Di(i) {
|
|
306
307
|
return i.layer;
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
+
function Ii(i) {
|
|
309
310
|
return i.position === "before";
|
|
310
311
|
}
|
|
311
|
-
function
|
|
312
|
+
function ki(i) {
|
|
312
313
|
return i.position;
|
|
313
314
|
}
|
|
314
|
-
function
|
|
315
|
-
return !
|
|
315
|
+
function $i(i) {
|
|
316
|
+
return !B(i.position);
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
+
function Ai(i) {
|
|
318
319
|
return i.position;
|
|
319
320
|
}
|
|
320
|
-
function
|
|
321
|
-
return !
|
|
321
|
+
function Ni(i) {
|
|
322
|
+
return !B(i.position);
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function Si(i) {
|
|
324
325
|
return i.position;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
-
return !
|
|
327
|
+
function Ti(i) {
|
|
328
|
+
return !B(i.position);
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function Ei(i) {
|
|
330
331
|
return i.position;
|
|
331
332
|
}
|
|
332
|
-
function
|
|
333
|
-
return !
|
|
333
|
+
function Li(i) {
|
|
334
|
+
return !B(i.position);
|
|
334
335
|
}
|
|
335
|
-
function
|
|
336
|
+
function Hi(i, t) {
|
|
336
337
|
return {
|
|
337
338
|
...i,
|
|
338
339
|
id: `${t}`
|
|
339
340
|
};
|
|
340
341
|
}
|
|
341
|
-
function
|
|
342
|
-
const t =
|
|
342
|
+
function Pi(i) {
|
|
343
|
+
const t = zt.c(103), {
|
|
343
344
|
data: o,
|
|
344
|
-
width:
|
|
345
|
-
height:
|
|
345
|
+
width: S,
|
|
346
|
+
height: v,
|
|
346
347
|
colors: n,
|
|
347
348
|
colorDomain: l,
|
|
348
349
|
radius: u,
|
|
349
350
|
leftMargin: C,
|
|
350
|
-
rightMargin:
|
|
351
|
-
topMargin:
|
|
352
|
-
bottomMargin:
|
|
353
|
-
tooltip:
|
|
354
|
-
onSeriesMouseOver:
|
|
351
|
+
rightMargin: Ct,
|
|
352
|
+
topMargin: ht,
|
|
353
|
+
bottomMargin: At,
|
|
354
|
+
tooltip: gt,
|
|
355
|
+
onSeriesMouseOver: lt,
|
|
355
356
|
highlightedDataPoints: r,
|
|
356
|
-
selectedColor:
|
|
357
|
-
minValue:
|
|
358
|
-
maxValue:
|
|
359
|
-
onSeriesMouseClick:
|
|
360
|
-
prefix:
|
|
361
|
-
suffix:
|
|
362
|
-
stripType:
|
|
357
|
+
selectedColor: at,
|
|
358
|
+
minValue: T,
|
|
359
|
+
maxValue: E,
|
|
360
|
+
onSeriesMouseClick: q,
|
|
361
|
+
prefix: st,
|
|
362
|
+
suffix: U,
|
|
363
|
+
stripType: ct,
|
|
363
364
|
highlightColor: w,
|
|
364
|
-
dotOpacity:
|
|
365
|
-
resetSelectionOnDoubleClick:
|
|
366
|
-
detailsOnClick:
|
|
367
|
-
styles:
|
|
368
|
-
classNames:
|
|
365
|
+
dotOpacity: O,
|
|
366
|
+
resetSelectionOnDoubleClick: Ot,
|
|
367
|
+
detailsOnClick: J,
|
|
368
|
+
styles: b,
|
|
369
|
+
classNames: p,
|
|
369
370
|
valueColor: M,
|
|
370
|
-
animate:
|
|
371
|
-
noOfTicks:
|
|
371
|
+
animate: m,
|
|
372
|
+
noOfTicks: d,
|
|
372
373
|
dimmedOpacity: tt,
|
|
373
374
|
precision: it,
|
|
374
375
|
customLayers: V,
|
|
375
|
-
showDataMinMax:
|
|
376
|
-
locale:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
376
|
+
showDataMinMax: Dt,
|
|
377
|
+
locale: et,
|
|
378
|
+
padZeros: ot
|
|
379
|
+
} = i, It = C === void 0 ? 5 : C, bt = Ct === void 0 ? 5 : Ct, wt = ht === void 0 ? 10 : ht, kt = At === void 0 ? 10 : At, Nt = Gt(null);
|
|
380
|
+
let xt;
|
|
381
|
+
t[0] !== m.amount || t[1] !== m.once ? (xt = {
|
|
382
|
+
once: m.once,
|
|
383
|
+
amount: m.amount
|
|
384
|
+
}, t[0] = m.amount, t[1] = m.once, t[2] = xt) : xt = t[2];
|
|
385
|
+
const s = Qt(Nt, xt), [f, $t] = jt(void 0), [D, yt] = jt(void 0), [vt, x] = jt(void 0), [ut, Mt] = jt(void 0);
|
|
386
|
+
let ft;
|
|
387
|
+
t[3] !== kt || t[4] !== It || t[5] !== bt || t[6] !== wt ? (ft = {
|
|
388
|
+
top: wt,
|
|
389
|
+
bottom: kt,
|
|
390
|
+
left: It,
|
|
391
|
+
right: bt
|
|
392
|
+
}, t[3] = kt, t[4] = It, t[5] = bt, t[6] = wt, t[7] = ft) : ft = t[7];
|
|
393
|
+
const g = ft, L = S - g.left - g.right, H = v - g.top - g.bottom;
|
|
394
|
+
let P, W, j, X, Y, y, G, K, I, z, k, R;
|
|
395
|
+
if (t[8] !== m.duration || t[9] !== p?.graphObjectValues || t[10] !== p?.xAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== V || t[14] !== o || t[15] !== J || t[16] !== tt || t[17] !== O || t[18] !== H || t[19] !== L || t[20] !== v || t[21] !== w || t[22] !== r || t[23] !== s || t[24] !== et || t[25] !== g.left || t[26] !== g.top || t[27] !== E || t[28] !== T || t[29] !== D || t[30] !== d || t[31] !== q || t[32] !== lt || t[33] !== ot || t[34] !== it || t[35] !== st || t[36] !== u || t[37] !== Ot || t[38] !== at || t[39] !== Dt || t[40] !== ct || t[41] !== b?.graphObjectValues || t[42] !== b?.xAxis?.labels || t[43] !== U || t[44] !== M || t[45] !== S) {
|
|
396
|
+
const Xt = o.map(me);
|
|
397
|
+
let mt;
|
|
398
|
+
t[58] !== r ? (mt = (e) => {
|
|
397
399
|
const c = (r || []).indexOf(e.label);
|
|
398
400
|
return c === -1 ? 1 / 0 : c;
|
|
399
|
-
}, t[
|
|
400
|
-
const
|
|
401
|
-
let
|
|
402
|
-
t[
|
|
403
|
-
const
|
|
404
|
-
let
|
|
405
|
-
t[
|
|
406
|
-
const
|
|
407
|
-
|
|
401
|
+
}, t[58] = r, t[59] = mt) : mt = t[59];
|
|
402
|
+
const Et = qt(Xt, [mt], ["desc"]);
|
|
403
|
+
let nt;
|
|
404
|
+
t[60] !== o || t[61] !== E ? (nt = B(E) ? Math.max(...o.filter(pe).map(fe)) < 0 ? 0 : Math.max(...o.filter(ue).map(ce)) : E, t[60] = o, t[61] = E, t[62] = nt) : nt = t[62];
|
|
405
|
+
const St = nt;
|
|
406
|
+
let dt;
|
|
407
|
+
t[63] !== o || t[64] !== T ? (dt = B(T) ? Math.min(...o.filter(se).map(ae)) >= 0 ? 0 : Math.min(...o.filter(le).map(re)) : T, t[63] = o, t[64] = T, t[65] = dt) : dt = t[65];
|
|
408
|
+
const Tt = dt, N = Kt().domain([Tt, St]).range([0, L]).nice(), Vt = ti(d, L);
|
|
409
|
+
W = rt.svg, X = `${S}px`, Y = `${v}px`, y = `0 0 ${S} ${v}`, G = "ltr", K = Nt, R = `translate(${g.left},${g.top})`, t[66] !== V ? (j = V.filter(ne).map(oe), t[66] = V, t[67] = j) : j = t[67], P = _t, I = Et.map((e) => /* @__PURE__ */ a.jsxs(rt.g, { className: "undp-viz-g-with-hover", variants: {
|
|
408
410
|
initial: {
|
|
409
411
|
opacity: 0,
|
|
410
|
-
x:
|
|
411
|
-
y:
|
|
412
|
+
x: N(0),
|
|
413
|
+
y: H / 2
|
|
412
414
|
},
|
|
413
415
|
whileInView: {
|
|
414
|
-
x:
|
|
415
|
-
y:
|
|
416
|
-
opacity:
|
|
416
|
+
x: N(e.position),
|
|
417
|
+
y: H / 2,
|
|
418
|
+
opacity: at ? e.color && n[l.indexOf(e.color)] === at ? 0.95 : tt : r ? r.indexOf(e.label) !== -1 ? 0.95 : tt : O,
|
|
417
419
|
transition: {
|
|
418
|
-
duration:
|
|
420
|
+
duration: m.duration
|
|
419
421
|
}
|
|
420
422
|
}
|
|
421
|
-
}, initial: "initial", animate:
|
|
423
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
422
424
|
opacity: 0,
|
|
423
425
|
transition: {
|
|
424
|
-
duration:
|
|
426
|
+
duration: m.duration
|
|
425
427
|
}
|
|
426
428
|
}, onMouseEnter: (c) => {
|
|
427
|
-
|
|
429
|
+
$t(e), Mt(c.clientY), x(c.clientX), lt?.(e);
|
|
428
430
|
}, onClick: () => {
|
|
429
|
-
(
|
|
431
|
+
(q || J) && (Bt(D, e) && Ot ? (yt(void 0), q?.(void 0)) : (yt(e), q?.(e)));
|
|
430
432
|
}, onMouseMove: (c) => {
|
|
431
|
-
|
|
433
|
+
$t(e), Mt(c.clientY), x(c.clientX);
|
|
432
434
|
}, onMouseLeave: () => {
|
|
433
|
-
|
|
435
|
+
$t(void 0), x(void 0), Mt(void 0), lt?.(void 0);
|
|
434
436
|
}, children: [
|
|
435
|
-
|
|
437
|
+
ct === "dot" ? /* @__PURE__ */ a.jsx(rt.circle, { cy: 0, cx: 0, variants: {
|
|
436
438
|
initial: {
|
|
437
|
-
fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(
|
|
439
|
+
fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(ee).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(ie).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
|
|
438
440
|
},
|
|
439
441
|
whileInView: {
|
|
440
|
-
fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(
|
|
442
|
+
fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(te).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(_i).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
|
|
441
443
|
transition: {
|
|
442
|
-
duration:
|
|
444
|
+
duration: m.duration
|
|
443
445
|
}
|
|
444
446
|
}
|
|
445
|
-
}, initial: "initial", animate:
|
|
447
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
446
448
|
opacity: 0,
|
|
447
449
|
transition: {
|
|
448
|
-
duration:
|
|
450
|
+
duration: m.duration
|
|
449
451
|
}
|
|
450
|
-
}, r: u }) : /* @__PURE__ */ a.jsx(
|
|
452
|
+
}, r: u }) : /* @__PURE__ */ a.jsx(rt.rect, { x: -1, width: 2, variants: {
|
|
451
453
|
initial: {
|
|
452
454
|
y: 0 - u,
|
|
453
455
|
height: u * 2,
|
|
454
|
-
fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(
|
|
456
|
+
fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(Qi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ki).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
|
|
455
457
|
},
|
|
456
458
|
whileInView: {
|
|
457
459
|
y: 0 - u,
|
|
458
460
|
height: u * 2,
|
|
459
|
-
fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(
|
|
461
|
+
fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(Ji).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ui).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
|
|
460
462
|
transition: {
|
|
461
|
-
duration:
|
|
463
|
+
duration: m.duration
|
|
462
464
|
}
|
|
463
465
|
}
|
|
464
|
-
}, initial: "initial", animate:
|
|
466
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
465
467
|
opacity: 0,
|
|
466
468
|
transition: {
|
|
467
|
-
duration:
|
|
469
|
+
duration: m.duration
|
|
468
470
|
}
|
|
469
471
|
} }),
|
|
470
|
-
r && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(
|
|
472
|
+
r && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(rt.text, { x: 0, variants: {
|
|
471
473
|
initial: {
|
|
472
474
|
opacity: 0,
|
|
473
475
|
y: 0 - u - 5,
|
|
474
|
-
fill: M || (w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(
|
|
476
|
+
fill: M || (w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(qi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Bi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray)
|
|
475
477
|
},
|
|
476
478
|
whileInView: {
|
|
477
479
|
opacity: 1,
|
|
478
480
|
y: 0 - u - 5,
|
|
479
|
-
fill: M || (w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(
|
|
481
|
+
fill: M || (w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(Fi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Zi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray),
|
|
480
482
|
transition: {
|
|
481
|
-
duration:
|
|
483
|
+
duration: m.duration
|
|
482
484
|
}
|
|
483
485
|
}
|
|
484
|
-
}, initial: "initial", animate:
|
|
486
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
485
487
|
opacity: 0,
|
|
486
488
|
transition: {
|
|
487
|
-
duration:
|
|
489
|
+
duration: m.duration
|
|
488
490
|
}
|
|
489
491
|
}, style: {
|
|
490
492
|
textAnchor: "middle",
|
|
491
|
-
...
|
|
492
|
-
}, className:
|
|
493
|
-
] }, e.label)),
|
|
493
|
+
...b?.graphObjectValues || {}
|
|
494
|
+
}, className: Pt("graph-value text-sm font-bold", p?.graphObjectValues), children: Wt(e.position, void 0, it, st, U, et, ot) }) : null
|
|
495
|
+
] }, e.label)), z = Dt ? [Math.min(...o.filter(Ri).map(zi)), Math.max(...o.filter(Gi).map(Yi))].map((e, c) => /* @__PURE__ */ a.jsx(rt.g, { variants: {
|
|
494
496
|
initial: {
|
|
495
497
|
opacity: 0,
|
|
496
|
-
x:
|
|
497
|
-
y:
|
|
498
|
+
x: N(e),
|
|
499
|
+
y: H / 2
|
|
498
500
|
},
|
|
499
501
|
whileInView: {
|
|
500
|
-
x:
|
|
501
|
-
y:
|
|
502
|
+
x: N(e),
|
|
503
|
+
y: H / 2,
|
|
502
504
|
opacity: 1,
|
|
503
505
|
transition: {
|
|
504
|
-
duration:
|
|
506
|
+
duration: m.duration
|
|
505
507
|
}
|
|
506
508
|
}
|
|
507
|
-
}, initial: "initial", animate:
|
|
509
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
508
510
|
opacity: 0,
|
|
509
511
|
transition: {
|
|
510
|
-
duration:
|
|
512
|
+
duration: m.duration
|
|
511
513
|
}
|
|
512
|
-
}, children: /* @__PURE__ */ a.jsx(
|
|
514
|
+
}, children: /* @__PURE__ */ a.jsx(rt.text, { x: 0, variants: {
|
|
513
515
|
initial: {
|
|
514
516
|
opacity: 0,
|
|
515
517
|
y: 0 - u - 5
|
|
@@ -518,219 +520,216 @@ function Fi(i) {
|
|
|
518
520
|
opacity: 1,
|
|
519
521
|
y: 0 - u - 5,
|
|
520
522
|
transition: {
|
|
521
|
-
duration:
|
|
523
|
+
duration: m.duration
|
|
522
524
|
}
|
|
523
525
|
}
|
|
524
|
-
}, initial: "initial", animate:
|
|
526
|
+
}, initial: "initial", animate: s ? "whileInView" : "initial", exit: {
|
|
525
527
|
opacity: 0,
|
|
526
528
|
transition: {
|
|
527
|
-
duration:
|
|
529
|
+
duration: m.duration
|
|
528
530
|
}
|
|
529
531
|
}, style: {
|
|
530
532
|
textAnchor: "middle",
|
|
531
|
-
...
|
|
532
|
-
}, className:
|
|
533
|
-
textAnchor: c === 0 ? "start" : c ===
|
|
534
|
-
...
|
|
535
|
-
}, className:
|
|
533
|
+
...b?.graphObjectValues || {}
|
|
534
|
+
}, className: Pt("graph-min-max-value text-sm text-primary-gray-550 dark:text-primary-gray-200", p?.graphObjectValues), children: Wt(e, void 0, it, st, U, et, ot) }) }, c === 0 ? "min-value" : "max-value")) : null, k = Vt.map((e, c) => /* @__PURE__ */ a.jsx("text", { x: e, y: H / 2 + u, style: {
|
|
535
|
+
textAnchor: c === 0 ? "start" : c === Vt.length - 1 ? "end" : "middle",
|
|
536
|
+
...b?.xAxis?.labels || {}
|
|
537
|
+
}, className: Pt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", p?.xAxis?.labels), dy: "1em", children: Wt(N.invert(e), void 0, it, st, U, et, ot) }, `tick-${c}`)), t[8] = m.duration, t[9] = p?.graphObjectValues, t[10] = p?.xAxis?.labels, t[11] = l, t[12] = n, t[13] = V, t[14] = o, t[15] = J, t[16] = tt, t[17] = O, t[18] = H, t[19] = L, t[20] = v, t[21] = w, t[22] = r, t[23] = s, t[24] = et, t[25] = g.left, t[26] = g.top, t[27] = E, t[28] = T, t[29] = D, t[30] = d, t[31] = q, t[32] = lt, t[33] = ot, t[34] = it, t[35] = st, t[36] = u, t[37] = Ot, t[38] = at, t[39] = Dt, t[40] = ct, t[41] = b?.graphObjectValues, t[42] = b?.xAxis?.labels, t[43] = U, t[44] = M, t[45] = S, t[46] = P, t[47] = W, t[48] = j, t[49] = X, t[50] = Y, t[51] = y, t[52] = G, t[53] = K, t[54] = I, t[55] = z, t[56] = k, t[57] = R;
|
|
536
538
|
} else
|
|
537
|
-
|
|
538
|
-
let G;
|
|
539
|
-
t[67] !== S || t[68] !== W || t[69] !== X || t[70] !== Y ? (G = /* @__PURE__ */ a.jsxs(S, { children: [
|
|
540
|
-
W,
|
|
541
|
-
X,
|
|
542
|
-
Y
|
|
543
|
-
] }), t[67] = S, t[68] = W, t[69] = X, t[70] = Y, t[71] = G) : G = t[71];
|
|
539
|
+
P = t[46], W = t[47], j = t[48], X = t[49], Y = t[50], y = t[51], G = t[52], K = t[53], I = t[54], z = t[55], k = t[56], R = t[57];
|
|
544
540
|
let Z;
|
|
545
|
-
t[
|
|
546
|
-
|
|
547
|
-
t[74] !== b || t[75] !== G || t[76] !== Z || t[77] !== x ? (I = /* @__PURE__ */ a.jsxs("g", { transform: x, children: [
|
|
548
|
-
b,
|
|
549
|
-
G,
|
|
550
|
-
Z
|
|
551
|
-
] }), t[74] = b, t[75] = G, t[76] = Z, t[77] = x, t[78] = I) : I = t[78];
|
|
552
|
-
let z;
|
|
553
|
-
t[79] !== T || t[80] !== D || t[81] !== E || t[82] !== L || t[83] !== H || t[84] !== P || t[85] !== I ? (z = /* @__PURE__ */ a.jsx(T, { width: D, height: E, viewBox: L, direction: H, ref: P, children: I }), t[79] = T, t[80] = D, t[81] = E, t[82] = L, t[83] = H, t[84] = P, t[85] = I, t[86] = z) : z = t[86];
|
|
554
|
-
let R;
|
|
555
|
-
t[87] !== f?.tooltip || t[88] !== ht || t[89] !== gt || t[90] !== ut || t[91] !== O?.tooltip || t[92] !== dt ? (R = ut && dt && ht && gt ? /* @__PURE__ */ a.jsx(ei, { data: ut, body: dt, xPos: ht, yPos: gt, backgroundStyle: O?.tooltip, className: f?.tooltip }) : null, t[87] = f?.tooltip, t[88] = ht, t[89] = gt, t[90] = ut, t[91] = O?.tooltip, t[92] = dt, t[93] = R) : R = t[93];
|
|
556
|
-
let k;
|
|
557
|
-
t[94] !== f?.modal || t[95] !== K || t[96] !== s ? (k = K && s !== void 0 ? /* @__PURE__ */ a.jsx(oi, { body: K, data: s, setData: d, className: f?.modal }) : null, t[94] = f?.modal, t[95] = K, t[96] = s, t[97] = k) : k = t[97];
|
|
558
|
-
let ft;
|
|
559
|
-
return t[98] !== z || t[99] !== R || t[100] !== k ? (ft = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
541
|
+
t[68] !== P || t[69] !== I || t[70] !== z || t[71] !== k ? (Z = /* @__PURE__ */ a.jsxs(P, { children: [
|
|
542
|
+
I,
|
|
560
543
|
z,
|
|
561
|
-
R,
|
|
562
544
|
k
|
|
563
|
-
] }), t[
|
|
545
|
+
] }), t[68] = P, t[69] = I, t[70] = z, t[71] = k, t[72] = Z) : Z = t[72];
|
|
546
|
+
let F;
|
|
547
|
+
t[73] !== V ? (F = V.filter(Xi).map(Wi), t[73] = V, t[74] = F) : F = t[74];
|
|
548
|
+
let $;
|
|
549
|
+
t[75] !== j || t[76] !== Z || t[77] !== F || t[78] !== R ? ($ = /* @__PURE__ */ a.jsxs("g", { transform: R, children: [
|
|
550
|
+
j,
|
|
551
|
+
Z,
|
|
552
|
+
F
|
|
553
|
+
] }), t[75] = j, t[76] = Z, t[77] = F, t[78] = R, t[79] = $) : $ = t[79];
|
|
554
|
+
let Q;
|
|
555
|
+
t[80] !== W || t[81] !== X || t[82] !== Y || t[83] !== y || t[84] !== G || t[85] !== K || t[86] !== $ ? (Q = /* @__PURE__ */ a.jsx(W, { width: X, height: Y, viewBox: y, direction: G, ref: K, children: $ }), t[80] = W, t[81] = X, t[82] = Y, t[83] = y, t[84] = G, t[85] = K, t[86] = $, t[87] = Q) : Q = t[87];
|
|
556
|
+
let A;
|
|
557
|
+
t[88] !== p?.tooltip || t[89] !== vt || t[90] !== ut || t[91] !== f || t[92] !== b?.tooltip || t[93] !== gt ? (A = f && gt && vt && ut ? /* @__PURE__ */ a.jsx(Ut, { data: f, body: gt, xPos: vt, yPos: ut, backgroundStyle: b?.tooltip, className: p?.tooltip }) : null, t[88] = p?.tooltip, t[89] = vt, t[90] = ut, t[91] = f, t[92] = b?.tooltip, t[93] = gt, t[94] = A) : A = t[94];
|
|
558
|
+
let _;
|
|
559
|
+
t[95] !== p?.modal || t[96] !== J || t[97] !== D ? (_ = J && D !== void 0 ? /* @__PURE__ */ a.jsx(Jt, { body: J, data: D, setData: yt, className: p?.modal }) : null, t[95] = p?.modal, t[96] = J, t[97] = D, t[98] = _) : _ = t[98];
|
|
560
|
+
let pt;
|
|
561
|
+
return t[99] !== Q || t[100] !== A || t[101] !== _ ? (pt = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
562
|
+
Q,
|
|
563
|
+
A,
|
|
564
|
+
_
|
|
565
|
+
] }), t[99] = Q, t[100] = A, t[101] = _, t[102] = pt) : pt = t[102], pt;
|
|
564
566
|
}
|
|
565
|
-
function
|
|
567
|
+
function Wi(i) {
|
|
566
568
|
return i.layer;
|
|
567
569
|
}
|
|
568
|
-
function
|
|
570
|
+
function Xi(i) {
|
|
569
571
|
return i.position === "after";
|
|
570
572
|
}
|
|
571
|
-
function
|
|
573
|
+
function Yi(i) {
|
|
572
574
|
return i.position;
|
|
573
575
|
}
|
|
574
|
-
function
|
|
575
|
-
return !
|
|
576
|
+
function Gi(i) {
|
|
577
|
+
return !B(i.position);
|
|
576
578
|
}
|
|
577
|
-
function
|
|
579
|
+
function zi(i) {
|
|
578
580
|
return i.position;
|
|
579
581
|
}
|
|
580
|
-
function
|
|
581
|
-
return !
|
|
582
|
+
function Ri(i) {
|
|
583
|
+
return !B(i.position);
|
|
582
584
|
}
|
|
583
585
|
function Zi(i) {
|
|
584
586
|
return i.color;
|
|
585
587
|
}
|
|
586
|
-
function
|
|
588
|
+
function Fi(i) {
|
|
587
589
|
return i.color;
|
|
588
590
|
}
|
|
589
|
-
function
|
|
591
|
+
function Bi(i) {
|
|
590
592
|
return i.color;
|
|
591
593
|
}
|
|
592
|
-
function
|
|
594
|
+
function qi(i) {
|
|
593
595
|
return i.color;
|
|
594
596
|
}
|
|
595
|
-
function
|
|
597
|
+
function Ui(i) {
|
|
596
598
|
return i.color;
|
|
597
599
|
}
|
|
598
|
-
function
|
|
600
|
+
function Ji(i) {
|
|
599
601
|
return i.color;
|
|
600
602
|
}
|
|
601
|
-
function
|
|
603
|
+
function Ki(i) {
|
|
602
604
|
return i.color;
|
|
603
605
|
}
|
|
604
|
-
function
|
|
606
|
+
function Qi(i) {
|
|
605
607
|
return i.color;
|
|
606
608
|
}
|
|
607
|
-
function
|
|
609
|
+
function _i(i) {
|
|
608
610
|
return i.color;
|
|
609
611
|
}
|
|
610
|
-
function
|
|
612
|
+
function te(i) {
|
|
611
613
|
return i.color;
|
|
612
614
|
}
|
|
613
|
-
function
|
|
615
|
+
function ie(i) {
|
|
614
616
|
return i.color;
|
|
615
617
|
}
|
|
616
|
-
function
|
|
618
|
+
function ee(i) {
|
|
617
619
|
return i.color;
|
|
618
620
|
}
|
|
619
|
-
function
|
|
621
|
+
function oe(i) {
|
|
620
622
|
return i.layer;
|
|
621
623
|
}
|
|
622
|
-
function
|
|
624
|
+
function ne(i) {
|
|
623
625
|
return i.position === "before";
|
|
624
626
|
}
|
|
625
|
-
function
|
|
627
|
+
function re(i) {
|
|
626
628
|
return i.position;
|
|
627
629
|
}
|
|
628
|
-
function
|
|
629
|
-
return !
|
|
630
|
+
function le(i) {
|
|
631
|
+
return !B(i.position);
|
|
630
632
|
}
|
|
631
|
-
function
|
|
633
|
+
function ae(i) {
|
|
632
634
|
return i.position;
|
|
633
635
|
}
|
|
634
|
-
function
|
|
635
|
-
return !
|
|
636
|
+
function se(i) {
|
|
637
|
+
return !B(i.position);
|
|
636
638
|
}
|
|
637
|
-
function
|
|
639
|
+
function ce(i) {
|
|
638
640
|
return i.position;
|
|
639
641
|
}
|
|
640
|
-
function
|
|
641
|
-
return !
|
|
642
|
+
function ue(i) {
|
|
643
|
+
return !B(i.position);
|
|
642
644
|
}
|
|
643
|
-
function
|
|
645
|
+
function fe(i) {
|
|
644
646
|
return i.position;
|
|
645
647
|
}
|
|
646
|
-
function
|
|
647
|
-
return !
|
|
648
|
+
function pe(i) {
|
|
649
|
+
return !B(i.position);
|
|
648
650
|
}
|
|
649
|
-
function
|
|
651
|
+
function me(i, t) {
|
|
650
652
|
return {
|
|
651
653
|
...i,
|
|
652
654
|
id: `${t}`
|
|
653
655
|
};
|
|
654
656
|
}
|
|
655
|
-
function
|
|
656
|
-
const t =
|
|
657
|
+
function Ye(i) {
|
|
658
|
+
const t = zt.c(93), {
|
|
657
659
|
data: o,
|
|
658
|
-
graphTitle:
|
|
659
|
-
colors:
|
|
660
|
+
graphTitle: S,
|
|
661
|
+
colors: v,
|
|
660
662
|
sources: n,
|
|
661
663
|
graphDescription: l,
|
|
662
664
|
height: u,
|
|
663
665
|
width: C,
|
|
664
|
-
footNote:
|
|
665
|
-
colorDomain:
|
|
666
|
-
colorLegendTitle:
|
|
667
|
-
radius:
|
|
668
|
-
padding:
|
|
666
|
+
footNote: Ct,
|
|
667
|
+
colorDomain: ht,
|
|
668
|
+
colorLegendTitle: At,
|
|
669
|
+
radius: gt,
|
|
670
|
+
padding: lt,
|
|
669
671
|
backgroundColor: r,
|
|
670
|
-
leftMargin:
|
|
671
|
-
rightMargin:
|
|
672
|
-
topMargin:
|
|
673
|
-
bottomMargin:
|
|
674
|
-
tooltip:
|
|
675
|
-
relativeHeight:
|
|
676
|
-
onSeriesMouseOver:
|
|
672
|
+
leftMargin: at,
|
|
673
|
+
rightMargin: T,
|
|
674
|
+
topMargin: E,
|
|
675
|
+
bottomMargin: q,
|
|
676
|
+
tooltip: st,
|
|
677
|
+
relativeHeight: U,
|
|
678
|
+
onSeriesMouseOver: ct,
|
|
677
679
|
showColorScale: w,
|
|
678
|
-
highlightedDataPoints:
|
|
679
|
-
graphID:
|
|
680
|
-
minValue:
|
|
681
|
-
maxValue:
|
|
682
|
-
onSeriesMouseClick:
|
|
680
|
+
highlightedDataPoints: O,
|
|
681
|
+
graphID: Ot,
|
|
682
|
+
minValue: J,
|
|
683
|
+
maxValue: b,
|
|
684
|
+
onSeriesMouseClick: p,
|
|
683
685
|
noOfTicks: M,
|
|
684
|
-
graphDownload:
|
|
685
|
-
dataDownload:
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
detailsOnClick: ut,
|
|
699
|
-
orientation: Dt,
|
|
686
|
+
graphDownload: m,
|
|
687
|
+
dataDownload: d,
|
|
688
|
+
stripType: tt,
|
|
689
|
+
language: it,
|
|
690
|
+
highlightColor: V,
|
|
691
|
+
dotOpacity: Dt,
|
|
692
|
+
showNAColor: et,
|
|
693
|
+
minHeight: ot,
|
|
694
|
+
theme: It,
|
|
695
|
+
ariaLabel: bt,
|
|
696
|
+
valueColor: wt,
|
|
697
|
+
resetSelectionOnDoubleClick: kt,
|
|
698
|
+
detailsOnClick: Nt,
|
|
699
|
+
orientation: xt,
|
|
700
700
|
styles: s,
|
|
701
|
-
classNames:
|
|
702
|
-
animate:
|
|
703
|
-
dimmedOpacity:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
} = i, F = dt === void 0 ? 5 : dt, B = r === void 0 ? !1 : r, S = w === void 0 ? !0 : w, T = M === void 0 ? 2 : M, b = p === void 0 ? !1 : p, D = m === void 0 ? !1 : m, E = tt === void 0 ? "" : tt, L = it === void 0 ? "" : it, H = V === void 0 ? "dot" : V, P = wt === void 0 ? "en" : wt, W = Mt === void 0 ? 0.3 : Mt, X = Vt === void 0 ? !0 : Vt, Y = jt === void 0 ? 0 : jt, x = Ct === void 0 ? "light" : Ct, G = j === void 0 ? !0 : j, Z = Dt === void 0 ? "vertical" : Dt, I = ht === void 0 ? !1 : ht, z = It === void 0 ? 0.3 : It, R = gt === void 0 ? 2 : gt;
|
|
701
|
+
classNames: f,
|
|
702
|
+
animate: $t,
|
|
703
|
+
dimmedOpacity: D,
|
|
704
|
+
customLayers: yt,
|
|
705
|
+
showDataMinMax: vt,
|
|
706
|
+
numberDisplayOptions: x
|
|
707
|
+
} = i, ut = gt === void 0 ? 5 : gt, Mt = r === void 0 ? !1 : r, ft = w === void 0 ? !0 : w, g = M === void 0 ? 2 : M, L = m === void 0 ? !1 : m, H = d === void 0 ? !1 : d, P = tt === void 0 ? "dot" : tt, W = it === void 0 ? "en" : it, j = Dt === void 0 ? 0.3 : Dt, X = et === void 0 ? !0 : et, Y = ot === void 0 ? 0 : ot, y = It === void 0 ? "light" : It, G = kt === void 0 ? !0 : kt, K = xt === void 0 ? "vertical" : xt, I = $t === void 0 ? !1 : $t, z = D === void 0 ? 0.3 : D;
|
|
709
708
|
let k;
|
|
710
|
-
t[0] !==
|
|
711
|
-
const
|
|
712
|
-
let
|
|
713
|
-
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
714
|
-
const
|
|
715
|
-
|
|
709
|
+
t[0] !== yt ? (k = yt === void 0 ? [] : yt, t[0] = yt, t[1] = k) : k = t[1];
|
|
710
|
+
const R = k, Z = vt === void 0 ? !1 : vt, F = K === "horizontal" ? Pi : si, [$, Q] = jt(0), [A, _] = jt(0), [pt, Xt] = jt(void 0), mt = Gt(null), Et = Gt(null);
|
|
711
|
+
let nt, St;
|
|
712
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (nt = () => {
|
|
713
|
+
const Rt = new ResizeObserver((Zt) => {
|
|
714
|
+
Q(Zt[0].target.clientWidth || 620), _(Zt[0].target.clientHeight || 480);
|
|
716
715
|
});
|
|
717
|
-
return
|
|
718
|
-
},
|
|
719
|
-
const
|
|
720
|
-
let
|
|
721
|
-
t[4] !==
|
|
716
|
+
return mt.current && Rt.observe(mt.current), () => Rt.disconnect();
|
|
717
|
+
}, St = [], t[2] = nt, t[3] = St) : (nt = t[2], St = t[3]), ii(nt, St);
|
|
718
|
+
const dt = f?.graphContainer, Tt = s?.graphContainer;
|
|
719
|
+
let N;
|
|
720
|
+
t[4] !== f?.description || t[5] !== f?.title || t[6] !== o || t[7] !== H || t[8] !== l || t[9] !== L || t[10] !== S || t[11] !== s?.description || t[12] !== s?.title || t[13] !== C ? (N = S || l || L || H ? /* @__PURE__ */ a.jsx(ai, { styles: {
|
|
722
721
|
title: s?.title,
|
|
723
722
|
description: s?.description
|
|
724
723
|
}, classNames: {
|
|
725
|
-
title:
|
|
726
|
-
description:
|
|
727
|
-
}, graphTitle:
|
|
728
|
-
let
|
|
729
|
-
t[15] !==
|
|
730
|
-
let
|
|
731
|
-
t[25] !== o.length ? (
|
|
732
|
-
let
|
|
733
|
-
t[27] !==
|
|
724
|
+
title: f?.title,
|
|
725
|
+
description: f?.description
|
|
726
|
+
}, graphTitle: S, graphDescription: l, width: C, graphDownload: L ? Et : void 0, dataDownload: H ? o.map(be).filter(Oe).length > 0 ? o.map(ve).filter(ye) : o.filter(xe) : null }) : null, t[4] = f?.description, t[5] = f?.title, t[6] = o, t[7] = H, t[8] = l, t[9] = L, t[10] = S, t[11] = s?.description, t[12] = s?.title, t[13] = C, t[14] = N) : N = t[14];
|
|
727
|
+
let Vt;
|
|
728
|
+
t[15] !== f?.colorLegend || t[16] !== ht || t[17] !== At || t[18] !== v || t[19] !== o || t[20] !== ft || t[21] !== X || t[22] !== y || t[23] !== C ? (Vt = ft !== !1 && o.filter(ge).length !== 0 && o.length > 0 ? /* @__PURE__ */ a.jsx(ri, { width: C, colorLegendTitle: At, colors: v || h[y].categoricalColors.colors, colorDomain: ht || Ft(o, "color", !0), setSelectedColor: Xt, showNAColor: X, className: f?.colorLegend }) : null, t[15] = f?.colorLegend, t[16] = ht, t[17] = At, t[18] = v, t[19] = o, t[20] = ft, t[21] = X, t[22] = y, t[23] = C, t[24] = Vt) : Vt = t[24];
|
|
729
|
+
let e;
|
|
730
|
+
t[25] !== o.length ? (e = o.length === 0 && /* @__PURE__ */ a.jsx(ni, {}), t[25] = o.length, t[26] = e) : e = t[26];
|
|
731
|
+
let c;
|
|
732
|
+
t[27] !== F || t[28] !== I || t[29] !== q || t[30] !== f || t[31] !== ht || t[32] !== v || t[33] !== R || t[34] !== o || t[35] !== Nt || t[36] !== z || t[37] !== j || t[38] !== V || t[39] !== O || t[40] !== at || t[41] !== b || t[42] !== J || t[43] !== g || t[44] !== x?.locale || t[45] !== x?.padZeros || t[46] !== x?.precision || t[47] !== x?.prefix || t[48] !== x?.suffix || t[49] !== p || t[50] !== ct || t[51] !== ut || t[52] !== G || t[53] !== T || t[54] !== pt || t[55] !== Z || t[56] !== P || t[57] !== s || t[58] !== A || t[59] !== $ || t[60] !== y || t[61] !== st || t[62] !== E || t[63] !== wt ? (c = $ && A && o.length > 0 ? /* @__PURE__ */ a.jsx(F, { data: o, width: $, showDataMinMax: Z, height: A, colorDomain: o.filter(he).length === 0 ? [] : ht || Ft(o, "color", !0), colors: o.filter(de).length === 0 ? v ? [v] : [h.primaryColors["blue-600"]] : v || h[y].categoricalColors.colors, selectedColor: pt, radius: ut, leftMargin: at, rightMargin: T, topMargin: E, bottomMargin: q, tooltip: st, onSeriesMouseOver: ct, highlightedDataPoints: O, minValue: J, maxValue: b, onSeriesMouseClick: p, stripType: P, highlightColor: V, dotOpacity: j, resetSelectionOnDoubleClick: G, detailsOnClick: Nt, styles: s, classNames: f, valueColor: wt, animate: I === !0 ? {
|
|
734
733
|
duration: 0.5,
|
|
735
734
|
once: !0,
|
|
736
735
|
amount: 0.5
|
|
@@ -738,53 +737,53 @@ function Ue(i) {
|
|
|
738
737
|
duration: 0,
|
|
739
738
|
once: !0,
|
|
740
739
|
amount: 0
|
|
741
|
-
}, noOfTicks:
|
|
742
|
-
let
|
|
743
|
-
t[
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
] }), t[
|
|
747
|
-
let
|
|
748
|
-
t[
|
|
740
|
+
}, noOfTicks: g, dimmedOpacity: z, customLayers: R, locale: x?.locale || "en", padZeros: x?.padZeros || !1, suffix: x?.suffix || "", prefix: x?.prefix || "", precision: x?.precision ?? 2 }) : null, t[27] = F, t[28] = I, t[29] = q, t[30] = f, t[31] = ht, t[32] = v, t[33] = R, t[34] = o, t[35] = Nt, t[36] = z, t[37] = j, t[38] = V, t[39] = O, t[40] = at, t[41] = b, t[42] = J, t[43] = g, t[44] = x?.locale, t[45] = x?.padZeros, t[46] = x?.precision, t[47] = x?.prefix, t[48] = x?.suffix, t[49] = p, t[50] = ct, t[51] = ut, t[52] = G, t[53] = T, t[54] = pt, t[55] = Z, t[56] = P, t[57] = s, t[58] = A, t[59] = $, t[60] = y, t[61] = st, t[62] = E, t[63] = wt, t[64] = c) : c = t[64];
|
|
741
|
+
let Lt;
|
|
742
|
+
t[65] !== e || t[66] !== c ? (Lt = /* @__PURE__ */ a.jsxs(ei, { ref: mt, children: [
|
|
743
|
+
e,
|
|
744
|
+
c
|
|
745
|
+
] }), t[65] = e, t[66] = c, t[67] = Lt) : Lt = t[67];
|
|
746
|
+
let Ht;
|
|
747
|
+
t[68] !== f?.footnote || t[69] !== f?.source || t[70] !== Ct || t[71] !== n || t[72] !== s?.footnote || t[73] !== s?.source || t[74] !== C ? (Ht = n || Ct ? /* @__PURE__ */ a.jsx(li, { styles: {
|
|
749
748
|
footnote: s?.footnote,
|
|
750
749
|
source: s?.source
|
|
751
750
|
}, classNames: {
|
|
752
|
-
footnote:
|
|
753
|
-
source:
|
|
754
|
-
}, sources: n, footNote:
|
|
755
|
-
let
|
|
756
|
-
return t[
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
] }), t[
|
|
751
|
+
footnote: f?.footnote,
|
|
752
|
+
source: f?.source
|
|
753
|
+
}, sources: n, footNote: Ct, width: C }) : null, t[68] = f?.footnote, t[69] = f?.source, t[70] = Ct, t[71] = n, t[72] = s?.footnote, t[73] = s?.source, t[74] = C, t[75] = Ht) : Ht = t[75];
|
|
754
|
+
let Yt;
|
|
755
|
+
return t[76] !== bt || t[77] !== Mt || t[78] !== Ot || t[79] !== u || t[80] !== W || t[81] !== Y || t[82] !== lt || t[83] !== U || t[84] !== dt || t[85] !== Tt || t[86] !== N || t[87] !== Vt || t[88] !== Lt || t[89] !== Ht || t[90] !== y || t[91] !== C ? (Yt = /* @__PURE__ */ a.jsxs(oi, { className: dt, style: Tt, id: Ot, ref: Et, "aria-label": bt, backgroundColor: Mt, theme: y, language: W, minHeight: Y, width: C, height: u, relativeHeight: U, padding: lt, children: [
|
|
756
|
+
N,
|
|
757
|
+
Vt,
|
|
758
|
+
Lt,
|
|
759
|
+
Ht
|
|
760
|
+
] }), t[76] = bt, t[77] = Mt, t[78] = Ot, t[79] = u, t[80] = W, t[81] = Y, t[82] = lt, t[83] = U, t[84] = dt, t[85] = Tt, t[86] = N, t[87] = Vt, t[88] = Lt, t[89] = Ht, t[90] = y, t[91] = C, t[92] = Yt) : Yt = t[92], Yt;
|
|
762
761
|
}
|
|
763
|
-
function
|
|
762
|
+
function de(i) {
|
|
764
763
|
return i.color;
|
|
765
764
|
}
|
|
766
|
-
function
|
|
765
|
+
function he(i) {
|
|
767
766
|
return i.color;
|
|
768
767
|
}
|
|
769
|
-
function
|
|
768
|
+
function ge(i) {
|
|
770
769
|
return i.color;
|
|
771
770
|
}
|
|
772
|
-
function
|
|
771
|
+
function xe(i) {
|
|
773
772
|
return i !== void 0;
|
|
774
773
|
}
|
|
775
|
-
function
|
|
774
|
+
function ye(i) {
|
|
776
775
|
return i !== void 0;
|
|
777
776
|
}
|
|
778
|
-
function
|
|
777
|
+
function ve(i) {
|
|
779
778
|
return i.data;
|
|
780
779
|
}
|
|
781
|
-
function
|
|
780
|
+
function Oe(i) {
|
|
782
781
|
return i !== void 0;
|
|
783
782
|
}
|
|
784
|
-
function
|
|
783
|
+
function be(i) {
|
|
785
784
|
return i.data;
|
|
786
785
|
}
|
|
787
786
|
export {
|
|
788
|
-
|
|
787
|
+
Ye as StripChart
|
|
789
788
|
};
|
|
790
789
|
//# sourceMappingURL=StripChart.js.map
|