@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/DumbbellChart.js
CHANGED
|
@@ -1,172 +1,173 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { o as
|
|
3
|
-
import { f as
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { g as
|
|
6
|
-
import { i as
|
|
7
|
-
import { n as
|
|
8
|
-
import { T as
|
|
9
|
-
import { c as
|
|
10
|
-
import { A as
|
|
11
|
-
import { A as
|
|
12
|
-
import { X as
|
|
13
|
-
import { Y as
|
|
14
|
-
import { R as
|
|
15
|
-
import { X as
|
|
16
|
-
import { Y as
|
|
17
|
-
import { D as
|
|
18
|
-
import { a as
|
|
19
|
-
import { b as
|
|
20
|
-
import { m as
|
|
21
|
-
import { u as
|
|
22
|
-
import { A as
|
|
23
|
-
import { e as
|
|
24
|
-
import { a as
|
|
25
|
-
import { GraphHeader as
|
|
26
|
-
import { P as
|
|
27
|
-
import { GraphFooter as
|
|
28
|
-
import { ColorLegendWithMouseOver as
|
|
29
|
-
import { E as
|
|
30
|
-
import { Colors as
|
|
31
|
-
function
|
|
32
|
-
const t =
|
|
1
|
+
import { c as Me, j as i, m as ye } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { o as Ce } from "./index-BZQYSqar.js";
|
|
3
|
+
import { f as Oe, p as We } from "./parse-Dv4of-PN.js";
|
|
4
|
+
import { useRef as ge, useState as Vt, useEffect as Le } from "react";
|
|
5
|
+
import { g as Pe, N as Be } from "./getSliderMarks-X-_goqH9.js";
|
|
6
|
+
import { i as $e } from "./index-Bwrro8-q.js";
|
|
7
|
+
import { n as ke } from "./numberFormattingFunction-BUUV_luR.js";
|
|
8
|
+
import { T as Ie } from "./Tooltip-3EYDVa3w.js";
|
|
9
|
+
import { c as Gt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
10
|
+
import { A as Ve } from "./AxisTitle-CyLCqpW6.js";
|
|
11
|
+
import { A as Xe } from "./Axis-CNZYWzH0.js";
|
|
12
|
+
import { X as Ye } from "./XAxesLabels-B9gkjUiC.js";
|
|
13
|
+
import { Y as je } from "./YTicksAndGridLines-BbujwxOB.js";
|
|
14
|
+
import { R as Ee, a as Ge } from "./ReferenceLine-D41VuUhE.js";
|
|
15
|
+
import { X as He } from "./XTicksAndGridLines-CkYwVshF.js";
|
|
16
|
+
import { Y as Re } from "./YAxesLabels-hWEUCTvs.js";
|
|
17
|
+
import { D as De } from "./DetailsModal-GqEbGHY2.js";
|
|
18
|
+
import { a as Ne } from "./linear-DNXM5Pdl.js";
|
|
19
|
+
import { b as Te } from "./band-DYty33LD.js";
|
|
20
|
+
import { m as Et } from "./proxy-BsxtcZKa.js";
|
|
21
|
+
import { u as Se } from "./use-in-view-KOXq5Kmc.js";
|
|
22
|
+
import { A as Fe } from "./index-Cv_5q6Rb.js";
|
|
23
|
+
import { e as Ae } from "./ensureCompleteData-CDIukSG6.js";
|
|
24
|
+
import { a as ze, G as Ze } from "./GraphContainer-B8ZqOzKI.js";
|
|
25
|
+
import { GraphHeader as qe } from "./GraphHeader.js";
|
|
26
|
+
import { P as Ue, e as Je } from "./index-ApTBN0kp.js";
|
|
27
|
+
import { GraphFooter as Ke } from "./GraphFooter.js";
|
|
28
|
+
import { ColorLegendWithMouseOver as Qe } from "./ColorLegendWithMouseOver.js";
|
|
29
|
+
import { E as _e } from "./EmptyState-CaxXCkiN.js";
|
|
30
|
+
import { Colors as ti } from "./Colors.js";
|
|
31
|
+
function ei(e) {
|
|
32
|
+
const t = Me.c(152), {
|
|
33
33
|
data: c,
|
|
34
|
-
leftMargin:
|
|
35
|
-
rightMargin:
|
|
36
|
-
topMargin:
|
|
37
|
-
bottomMargin:
|
|
38
|
-
dotColors:
|
|
39
|
-
barPadding:
|
|
40
|
-
showTicks:
|
|
41
|
-
truncateBy:
|
|
42
|
-
width:
|
|
43
|
-
height:
|
|
44
|
-
radius:
|
|
45
|
-
showLabels:
|
|
46
|
-
tooltip:
|
|
47
|
-
onSeriesMouseOver:
|
|
48
|
-
maxValue:
|
|
49
|
-
minValue:
|
|
50
|
-
onSeriesMouseClick:
|
|
51
|
-
showValues:
|
|
52
|
-
suffix:
|
|
53
|
-
prefix:
|
|
54
|
-
selectedColor:
|
|
55
|
-
arrowConnector:
|
|
56
|
-
connectorStrokeWidth:
|
|
57
|
-
maxBarThickness:
|
|
58
|
-
minBarThickness:
|
|
59
|
-
resetSelectionOnDoubleClick:
|
|
60
|
-
detailsOnClick:
|
|
61
|
-
axisTitle:
|
|
62
|
-
noOfTicks:
|
|
63
|
-
valueColor:
|
|
64
|
-
styles:
|
|
65
|
-
classNames:
|
|
66
|
-
labelOrder:
|
|
67
|
-
refValues:
|
|
68
|
-
animate:
|
|
34
|
+
leftMargin: Jt,
|
|
35
|
+
rightMargin: se,
|
|
36
|
+
topMargin: Kt,
|
|
37
|
+
bottomMargin: Qt,
|
|
38
|
+
dotColors: V,
|
|
39
|
+
barPadding: Ht,
|
|
40
|
+
showTicks: ut,
|
|
41
|
+
truncateBy: jt,
|
|
42
|
+
width: vt,
|
|
43
|
+
height: wt,
|
|
44
|
+
radius: ht,
|
|
45
|
+
showLabels: At,
|
|
46
|
+
tooltip: v,
|
|
47
|
+
onSeriesMouseOver: lt,
|
|
48
|
+
maxValue: Dt,
|
|
49
|
+
minValue: M,
|
|
50
|
+
onSeriesMouseClick: xt,
|
|
51
|
+
showValues: _t,
|
|
52
|
+
suffix: yt,
|
|
53
|
+
prefix: W,
|
|
54
|
+
selectedColor: P,
|
|
55
|
+
arrowConnector: N,
|
|
56
|
+
connectorStrokeWidth: Rt,
|
|
57
|
+
maxBarThickness: kt,
|
|
58
|
+
minBarThickness: gt,
|
|
59
|
+
resetSelectionOnDoubleClick: Nt,
|
|
60
|
+
detailsOnClick: T,
|
|
61
|
+
axisTitle: rt,
|
|
62
|
+
noOfTicks: te,
|
|
63
|
+
valueColor: Tt,
|
|
64
|
+
styles: n,
|
|
65
|
+
classNames: a,
|
|
66
|
+
labelOrder: j,
|
|
67
|
+
refValues: St,
|
|
68
|
+
animate: h,
|
|
69
69
|
precision: u,
|
|
70
|
-
customLayers:
|
|
71
|
-
highlightedDataPoints:
|
|
72
|
-
dimmedOpacity:
|
|
73
|
-
hideAxisLine:
|
|
74
|
-
locale:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
70
|
+
customLayers: B,
|
|
71
|
+
highlightedDataPoints: g,
|
|
72
|
+
dimmedOpacity: ft,
|
|
73
|
+
hideAxisLine: Ft,
|
|
74
|
+
locale: ct,
|
|
75
|
+
padZeros: q
|
|
76
|
+
} = e, U = Jt === void 0 ? 20 : Jt, ee = se === void 0 ? 20 : se, Mt = Kt === void 0 ? 20 : Kt, ie = Qt === void 0 ? 25 : Qt, C = ge(null);
|
|
77
|
+
let f;
|
|
78
|
+
t[0] !== h.amount || t[1] !== h.once ? (f = {
|
|
79
|
+
once: h.once,
|
|
80
|
+
amount: h.amount
|
|
81
|
+
}, t[0] = h.amount, t[1] = h.once, t[2] = f) : f = t[2];
|
|
82
|
+
const w = Se(C, f), zt = rt ? U + 30 : U;
|
|
83
|
+
let Wt;
|
|
84
|
+
t[3] !== ie || t[4] !== ee || t[5] !== zt || t[6] !== Mt ? (Wt = {
|
|
85
|
+
top: Mt,
|
|
86
|
+
bottom: ie,
|
|
87
|
+
left: zt,
|
|
88
|
+
right: ee
|
|
89
|
+
}, t[3] = ie, t[4] = ee, t[5] = zt, t[6] = Mt, t[7] = Wt) : Wt = t[7];
|
|
90
|
+
const r = Wt, X = vt - r.left - r.right, Y = wt - r.top - r.bottom, [Ct, ae] = Vt(void 0), [D, Pt] = Vt(void 0), [Bt, A] = Vt(void 0), [dt, Zt] = Vt(void 0);
|
|
91
|
+
let Ot;
|
|
92
|
+
if (t[8] !== c || t[9] !== j) {
|
|
93
|
+
const x = /* @__PURE__ */ new Set(), b = c.map((y, st) => {
|
|
94
|
+
const d = j ? `${y.label}` : `${st}`;
|
|
95
|
+
return x.add(d), {
|
|
96
|
+
...y,
|
|
97
|
+
id: d
|
|
97
98
|
};
|
|
98
|
-
}),
|
|
99
|
-
let
|
|
100
|
-
t[11] !== c[0] ? (
|
|
101
|
-
id:
|
|
102
|
-
label:
|
|
99
|
+
}), Ut = j ? j.filter((y) => !x.has(y)) : [];
|
|
100
|
+
let p;
|
|
101
|
+
t[11] !== c[0] ? (p = (y) => ({
|
|
102
|
+
id: y,
|
|
103
|
+
label: y,
|
|
103
104
|
x: Array(c[0].x.length).fill(null)
|
|
104
|
-
}), t[11] = c[0], t[12] =
|
|
105
|
+
}), t[11] = c[0], t[12] = p) : p = t[12], Ot = [...b, ...Ut.map(p)], t[8] = c, t[9] = j, t[10] = Ot;
|
|
105
106
|
} else
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
let
|
|
109
|
-
t[13] !==
|
|
110
|
-
const
|
|
111
|
-
let
|
|
112
|
-
if (t[16] !==
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
let
|
|
116
|
-
t[
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
t[
|
|
120
|
-
axis:
|
|
121
|
-
label:
|
|
122
|
-
}, t[
|
|
123
|
-
const
|
|
124
|
-
let
|
|
125
|
-
t[
|
|
126
|
-
axis:
|
|
127
|
-
label:
|
|
128
|
-
}, t[
|
|
129
|
-
x: 0 -
|
|
107
|
+
Ot = t[10];
|
|
108
|
+
const O = Ot;
|
|
109
|
+
let Lt;
|
|
110
|
+
t[13] !== O || t[14] !== j ? (Lt = j ?? O.map(ui), t[13] = O, t[14] = j, t[15] = Lt) : Lt = t[15];
|
|
111
|
+
const qt = Lt;
|
|
112
|
+
let J, E, G, K, Q, S, k, I, _, tt, et, pt, F, L, it;
|
|
113
|
+
if (t[16] !== h || t[17] !== N || t[18] !== rt || t[19] !== qt || t[20] !== Ht || t[21] !== a?.dataConnectors || t[22] !== a?.graphObjectValues || t[23] !== a?.xAxis?.axis || t[24] !== a?.xAxis?.labels || t[25] !== a?.yAxis?.gridLines || t[26] !== a?.yAxis?.labels || t[27] !== a?.yAxis?.title || t[28] !== Rt || t[29] !== B || t[30] !== O || t[31] !== T || t[32] !== ft || t[33] !== V || t[34] !== Y || t[35] !== X || t[36] !== wt || t[37] !== Ft || t[38] !== g || t[39] !== w || t[40] !== U || t[41] !== ct || t[42] !== r.bottom || t[43] !== r.left || t[44] !== r.right || t[45] !== r.top || t[46] !== kt || t[47] !== Dt || t[48] !== gt || t[49] !== M || t[50] !== D || t[51] !== te || t[52] !== xt || t[53] !== lt || t[54] !== q || t[55] !== u || t[56] !== W || t[57] !== ht || t[58] !== St || t[59] !== Nt || t[60] !== P || t[61] !== At || t[62] !== ut || t[63] !== _t || t[64] !== n?.dataConnectors || t[65] !== n?.graphObjectValues || t[66] !== n?.xAxis?.axis || t[67] !== n?.xAxis?.labels || t[68] !== n?.yAxis?.gridLines || t[69] !== n?.yAxis?.labels || t[70] !== n?.yAxis?.title || t[71] !== yt || t[72] !== jt || t[73] !== Tt || t[74] !== vt) {
|
|
114
|
+
const x = Ne().domain([M, Dt]).range([Y, 0]).nice(), b = Te().domain(qt).range([0, gt ? Math.max(X, gt * O.length) : kt ? Math.min(X, kt * O.length) : X]).paddingInner(Ht), Ut = x.ticks(te);
|
|
115
|
+
E = Et.svg, _ = `${vt}px`, tt = `${wt}px`, et = `0 0 ${vt} ${wt}`, pt = "ltr", F = C, t[90] !== N ? (L = N ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[90] = N, t[91] = L) : L = t[91], K = `translate(${r.left},${r.top})`;
|
|
116
|
+
let p;
|
|
117
|
+
t[92] !== ct || t[93] !== M || t[94] !== q || t[95] !== u || t[96] !== W || t[97] !== ut || t[98] !== yt ? (p = ut ? ke(M < 0 ? 0 : M, void 0, u, W, yt, ct, q) : void 0, t[92] = ct, t[93] = M, t[94] = q, t[95] = u, t[96] = W, t[97] = ut, t[98] = yt, t[99] = p) : p = t[99];
|
|
118
|
+
const y = a?.xAxis?.axis, st = a?.yAxis?.labels;
|
|
119
|
+
let d;
|
|
120
|
+
t[100] !== y || t[101] !== st ? (d = {
|
|
121
|
+
axis: y,
|
|
122
|
+
label: st
|
|
123
|
+
}, t[100] = y, t[101] = st, t[102] = d) : d = t[102];
|
|
124
|
+
const z = n?.xAxis?.axis, Xt = n?.yAxis?.labels;
|
|
125
|
+
let Yt;
|
|
126
|
+
t[103] !== z || t[104] !== Xt ? (Yt = {
|
|
127
|
+
axis: z,
|
|
128
|
+
label: Xt
|
|
129
|
+
}, t[103] = z, t[104] = Xt, t[105] = Yt) : Yt = t[105], Q = /* @__PURE__ */ i.jsx(Xe, { hideAxisLine: Ft, y1: x(M < 0 ? 0 : M), y2: x(M < 0 ? 0 : M), x1: 0 - U, x2: X + r.right, label: p, labelPos: {
|
|
130
|
+
x: 0 - U,
|
|
130
131
|
dx: 0,
|
|
131
|
-
dy:
|
|
132
|
-
y:
|
|
133
|
-
}, classNames:
|
|
134
|
-
gridLines: o?.yAxis?.gridLines,
|
|
135
|
-
labels: o?.yAxis?.labels
|
|
136
|
-
}, classNames: {
|
|
132
|
+
dy: Dt < 0 ? "1em" : -5,
|
|
133
|
+
y: x(M < 0 ? 0 : M)
|
|
134
|
+
}, classNames: d, styles: Yt }), S = ut ? /* @__PURE__ */ i.jsx(je, { values: Ut.filter(mi), y: Ut.filter(di).map((l) => x(l)), x1: 0 - U, x2: X + r.right, styles: {
|
|
137
135
|
gridLines: n?.yAxis?.gridLines,
|
|
138
136
|
labels: n?.yAxis?.labels
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
}, classNames: {
|
|
138
|
+
gridLines: a?.yAxis?.gridLines,
|
|
139
|
+
labels: a?.yAxis?.labels
|
|
140
|
+
}, suffix: yt, prefix: W, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: u, locale: ct, padZeros: q }) : null;
|
|
141
|
+
const ne = 0 - U - 15, s = Y / 2, mt = n?.yAxis?.title, $ = a?.yAxis?.title;
|
|
142
|
+
t[106] !== rt || t[107] !== ne || t[108] !== s || t[109] !== mt || t[110] !== $ ? (k = /* @__PURE__ */ i.jsx(Ve, { x: ne, y: s, style: mt, className: $, text: rt, rotate90: !0 }), t[106] = rt, t[107] = ne, t[108] = s, t[109] = mt, t[110] = $, t[111] = k) : k = t[111], t[112] !== B ? (I = B.filter(ci).map(ri), t[112] = B, t[113] = I) : I = t[113], J = Fe, it = O.map((l) => /* @__PURE__ */ i.jsxs(Et.g, { className: "undp-viz-g-with-hover", variants: {
|
|
142
143
|
initial: {
|
|
143
|
-
x:
|
|
144
|
+
x: b(`${l.id}`) + b.bandwidth() / 2,
|
|
144
145
|
y: 0,
|
|
145
|
-
opacity:
|
|
146
|
+
opacity: g ? g.indexOf(l.label) !== -1 ? 0.85 : ft : 0.85
|
|
146
147
|
},
|
|
147
148
|
whileInView: {
|
|
148
|
-
x:
|
|
149
|
+
x: b(`${l.id}`) + b.bandwidth() / 2,
|
|
149
150
|
y: 0,
|
|
150
|
-
opacity:
|
|
151
|
+
opacity: g ? g.indexOf(l.label) !== -1 ? 0.85 : ft : 0.85,
|
|
151
152
|
transition: {
|
|
152
|
-
duration:
|
|
153
|
+
duration: h.duration
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
|
-
}, initial: "initial", animate:
|
|
156
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial", exit: {
|
|
156
157
|
opacity: 0,
|
|
157
158
|
transition: {
|
|
158
|
-
duration:
|
|
159
|
+
duration: h.duration
|
|
159
160
|
}
|
|
160
161
|
}, children: [
|
|
161
|
-
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
strokeWidth:
|
|
164
|
-
...
|
|
165
|
-
opacity:
|
|
166
|
-
}, className:
|
|
162
|
+
At ? /* @__PURE__ */ i.jsx(Ye, { value: `${l.label}`.length < jt ? `${l.label}` : `${`${l.label}`.substring(0, jt)}...`, y: Y + 5, x: 0 - b.bandwidth() / 2, width: b.bandwidth(), height: r.bottom, style: n?.xAxis?.labels, className: a?.xAxis?.labels, alignment: "top", animate: h, isInView: w }) : null,
|
|
163
|
+
/* @__PURE__ */ i.jsx(Et.line, { x1: 0, x2: 0, style: {
|
|
164
|
+
strokeWidth: Rt,
|
|
165
|
+
...n?.dataConnectors || {},
|
|
166
|
+
opacity: P ? 0.3 : 1
|
|
167
|
+
}, className: ye("stroke-primary-gray-600 dark:stroke-primary-gray-300", a?.dataConnectors), markerEnd: N && l.x.indexOf(Math.min(...l.x.filter(li))) === 0 ? "url(#arrow)" : "", markerStart: N && l.x.indexOf(Math.min(...l.x.filter(si))) === l.x.length - 1 ? "url(#arrow)" : "", exit: {
|
|
167
168
|
opacity: 0,
|
|
168
169
|
transition: {
|
|
169
|
-
duration:
|
|
170
|
+
duration: h.duration
|
|
170
171
|
}
|
|
171
172
|
}, variants: {
|
|
172
173
|
initial: {
|
|
@@ -174,297 +175,298 @@ function ri(e) {
|
|
|
174
175
|
y2: 0
|
|
175
176
|
},
|
|
176
177
|
whileInView: {
|
|
177
|
-
y1:
|
|
178
|
-
y2:
|
|
178
|
+
y1: x(Math.min(...l.x.filter(oi))) + ht,
|
|
179
|
+
y2: x(Math.max(...l.x.filter(ni))) - ht,
|
|
179
180
|
transition: {
|
|
180
|
-
duration:
|
|
181
|
+
duration: h.duration
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
|
-
}, initial: "initial", animate:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
...
|
|
187
|
-
xIndex:
|
|
188
|
-
}),
|
|
189
|
-
...
|
|
190
|
-
xIndex:
|
|
184
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial" }),
|
|
185
|
+
l.x.map(($t, Z) => /* @__PURE__ */ i.jsx(Et.g, { onMouseEnter: (oe) => {
|
|
186
|
+
ae({
|
|
187
|
+
...l,
|
|
188
|
+
xIndex: Z
|
|
189
|
+
}), Zt(oe.clientY), A(oe.clientX), lt?.({
|
|
190
|
+
...l,
|
|
191
|
+
xIndex: Z
|
|
191
192
|
});
|
|
192
193
|
}, onClick: () => {
|
|
193
|
-
(
|
|
194
|
-
...
|
|
195
|
-
xIndex:
|
|
196
|
-
}) &&
|
|
197
|
-
...
|
|
198
|
-
xIndex:
|
|
199
|
-
}),
|
|
200
|
-
...
|
|
201
|
-
xIndex:
|
|
194
|
+
(xt || T) && ($e(D, {
|
|
195
|
+
...l,
|
|
196
|
+
xIndex: Z
|
|
197
|
+
}) && Nt ? (Pt(void 0), xt?.(void 0)) : (Pt({
|
|
198
|
+
...l,
|
|
199
|
+
xIndex: Z
|
|
200
|
+
}), xt && xt({
|
|
201
|
+
...l,
|
|
202
|
+
xIndex: Z
|
|
202
203
|
})));
|
|
203
|
-
}, onMouseMove: (
|
|
204
|
-
|
|
205
|
-
...
|
|
206
|
-
xIndex:
|
|
207
|
-
}),
|
|
204
|
+
}, onMouseMove: (oe) => {
|
|
205
|
+
ae({
|
|
206
|
+
...l,
|
|
207
|
+
xIndex: Z
|
|
208
|
+
}), Zt(oe.clientY), A(oe.clientX);
|
|
208
209
|
}, onMouseLeave: () => {
|
|
209
|
-
|
|
210
|
+
ae(void 0), A(void 0), Zt(void 0), lt?.(void 0);
|
|
210
211
|
}, exit: {
|
|
211
212
|
opacity: 0,
|
|
212
213
|
transition: {
|
|
213
|
-
duration:
|
|
214
|
+
duration: h.duration
|
|
214
215
|
}
|
|
215
216
|
}, variants: {
|
|
216
217
|
initial: {
|
|
217
|
-
opacity:
|
|
218
|
+
opacity: P ? V[Z] === P ? 1 : 0.3 : 1
|
|
218
219
|
},
|
|
219
220
|
whileInView: {
|
|
220
|
-
opacity:
|
|
221
|
+
opacity: P ? V[Z] === P ? 1 : 0.3 : 1,
|
|
221
222
|
transition: {
|
|
222
|
-
duration:
|
|
223
|
+
duration: h.duration
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
|
-
}, initial: "initial", animate:
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
fill:
|
|
226
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial", children: Gt($t) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
227
|
+
/* @__PURE__ */ i.jsx(Et.circle, { cx: 0, r: ht, style: {
|
|
228
|
+
fill: V[Z],
|
|
228
229
|
fillOpacity: 0.85,
|
|
229
|
-
stroke:
|
|
230
|
+
stroke: V[Z],
|
|
230
231
|
strokeWidth: 1
|
|
231
232
|
}, exit: {
|
|
232
233
|
opacity: 0,
|
|
233
234
|
transition: {
|
|
234
|
-
duration:
|
|
235
|
+
duration: h.duration
|
|
235
236
|
}
|
|
236
237
|
}, variants: {
|
|
237
238
|
initial: {
|
|
238
|
-
cy:
|
|
239
|
+
cy: x(0),
|
|
239
240
|
opacity: 0
|
|
240
241
|
},
|
|
241
242
|
whileInView: {
|
|
242
|
-
cy:
|
|
243
|
-
opacity:
|
|
243
|
+
cy: x($t || 0),
|
|
244
|
+
opacity: Gt($t) ? 0 : 1,
|
|
244
245
|
transition: {
|
|
245
|
-
duration:
|
|
246
|
+
duration: h.duration
|
|
246
247
|
}
|
|
247
248
|
}
|
|
248
|
-
}, initial: "initial", animate:
|
|
249
|
-
|
|
249
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial" }),
|
|
250
|
+
_t ? /* @__PURE__ */ i.jsx(Et.text, { x: 0, style: {
|
|
250
251
|
textAnchor: "start",
|
|
251
|
-
...
|
|
252
|
-
}, className:
|
|
252
|
+
...n?.graphObjectValues || {}
|
|
253
|
+
}, className: ye("graph-value text-sm font-bold", Gt($t) ? "opacity-0" : "opacity-100", a?.graphObjectValues), dx: ht + 3, dy: "0.33em", exit: {
|
|
253
254
|
opacity: 0,
|
|
254
255
|
transition: {
|
|
255
|
-
duration:
|
|
256
|
+
duration: h.duration
|
|
256
257
|
}
|
|
257
258
|
}, variants: {
|
|
258
259
|
initial: {
|
|
259
|
-
y:
|
|
260
|
+
y: x(0),
|
|
260
261
|
opacity: 0,
|
|
261
|
-
fill:
|
|
262
|
+
fill: Tt || V[Z]
|
|
262
263
|
},
|
|
263
264
|
whileInView: {
|
|
264
|
-
y:
|
|
265
|
-
fill:
|
|
265
|
+
y: x($t || 0),
|
|
266
|
+
fill: Tt || V[Z],
|
|
266
267
|
opacity: 1,
|
|
267
268
|
transition: {
|
|
268
|
-
duration:
|
|
269
|
+
duration: h.duration
|
|
269
270
|
}
|
|
270
271
|
}
|
|
271
|
-
}, initial: "initial", animate:
|
|
272
|
-
] }) },
|
|
273
|
-
] },
|
|
272
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial", children: ke($t, void 0, u, W, yt, ct, q) }) : null
|
|
273
|
+
] }) }, Z))
|
|
274
|
+
] }, l.label)), G = St ? /* @__PURE__ */ i.jsx(i.Fragment, { children: St.map((l, $t) => /* @__PURE__ */ i.jsx(Ge, { text: l.text, color: l.color, y: x(l.value), x1: 0 - U, x2: X + r.right, classNames: l.classNames, styles: l.styles, animate: h, isInView: w }, $t)) }) : null, t[16] = h, t[17] = N, t[18] = rt, t[19] = qt, t[20] = Ht, t[21] = a?.dataConnectors, t[22] = a?.graphObjectValues, t[23] = a?.xAxis?.axis, t[24] = a?.xAxis?.labels, t[25] = a?.yAxis?.gridLines, t[26] = a?.yAxis?.labels, t[27] = a?.yAxis?.title, t[28] = Rt, t[29] = B, t[30] = O, t[31] = T, t[32] = ft, t[33] = V, t[34] = Y, t[35] = X, t[36] = wt, t[37] = Ft, t[38] = g, t[39] = w, t[40] = U, t[41] = ct, t[42] = r.bottom, t[43] = r.left, t[44] = r.right, t[45] = r.top, t[46] = kt, t[47] = Dt, t[48] = gt, t[49] = M, t[50] = D, t[51] = te, t[52] = xt, t[53] = lt, t[54] = q, t[55] = u, t[56] = W, t[57] = ht, t[58] = St, t[59] = Nt, t[60] = P, t[61] = At, t[62] = ut, t[63] = _t, t[64] = n?.dataConnectors, t[65] = n?.graphObjectValues, t[66] = n?.xAxis?.axis, t[67] = n?.xAxis?.labels, t[68] = n?.yAxis?.gridLines, t[69] = n?.yAxis?.labels, t[70] = n?.yAxis?.title, t[71] = yt, t[72] = jt, t[73] = Tt, t[74] = vt, t[75] = J, t[76] = E, t[77] = G, t[78] = K, t[79] = Q, t[80] = S, t[81] = k, t[82] = I, t[83] = _, t[84] = tt, t[85] = et, t[86] = pt, t[87] = F, t[88] = L, t[89] = it;
|
|
274
275
|
} else
|
|
275
|
-
|
|
276
|
-
let
|
|
277
|
-
t[
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
] }), t[
|
|
281
|
-
let it;
|
|
282
|
-
t[115] !== G ? (it = G.filter(di).map(ci), t[115] = G, t[116] = it) : it = t[116];
|
|
283
|
-
let mt;
|
|
284
|
-
t[117] !== J || t[118] !== K || t[119] !== j || t[120] !== D || t[121] !== k || t[122] !== et || t[123] !== it ? (mt = /* @__PURE__ */ a.jsxs("g", { transform: J, children: [
|
|
285
|
-
K,
|
|
286
|
-
j,
|
|
287
|
-
D,
|
|
288
|
-
k,
|
|
289
|
-
et,
|
|
290
|
-
it
|
|
291
|
-
] }), t[117] = J, t[118] = K, t[119] = j, t[120] = D, t[121] = k, t[122] = et, t[123] = it, t[124] = mt) : mt = t[124];
|
|
292
|
-
let N;
|
|
293
|
-
t[125] !== q || t[126] !== X || t[127] !== Q || t[128] !== Z || t[129] !== _ || t[130] !== C || t[131] !== O || t[132] !== mt ? (N = /* @__PURE__ */ a.jsxs(q, { width: X, height: Q, viewBox: Z, direction: _, ref: C, children: [
|
|
294
|
-
O,
|
|
295
|
-
mt
|
|
296
|
-
] }), t[125] = q, t[126] = X, t[127] = Q, t[128] = Z, t[129] = _, t[130] = C, t[131] = O, t[132] = mt, t[133] = N) : N = t[133];
|
|
297
|
-
let Y;
|
|
298
|
-
t[134] !== n?.tooltip || t[135] !== Mt || t[136] !== yt || t[137] !== St || t[138] !== o?.tooltip || t[139] !== y ? (Y = St && y && Mt && yt ? /* @__PURE__ */ a.jsx(Se, { data: St, body: y, xPos: Mt, yPos: yt, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[134] = n?.tooltip, t[135] = Mt, t[136] = yt, t[137] = St, t[138] = o?.tooltip, t[139] = y, t[140] = Y) : Y = t[140];
|
|
276
|
+
J = t[75], E = t[76], G = t[77], K = t[78], Q = t[79], S = t[80], k = t[81], I = t[82], _ = t[83], tt = t[84], et = t[85], pt = t[86], F = t[87], L = t[88], it = t[89];
|
|
277
|
+
let H;
|
|
278
|
+
t[114] !== J || t[115] !== G || t[116] !== it ? (H = /* @__PURE__ */ i.jsxs(J, { children: [
|
|
279
|
+
it,
|
|
280
|
+
G
|
|
281
|
+
] }), t[114] = J, t[115] = G, t[116] = it, t[117] = H) : H = t[117];
|
|
299
282
|
let at;
|
|
300
|
-
t[
|
|
301
|
-
let
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
283
|
+
t[118] !== B ? (at = B.filter(ai).map(ii), t[118] = B, t[119] = at) : at = t[119];
|
|
284
|
+
let nt;
|
|
285
|
+
t[120] !== K || t[121] !== Q || t[122] !== S || t[123] !== k || t[124] !== I || t[125] !== H || t[126] !== at ? (nt = /* @__PURE__ */ i.jsxs("g", { transform: K, children: [
|
|
286
|
+
Q,
|
|
287
|
+
S,
|
|
288
|
+
k,
|
|
289
|
+
I,
|
|
290
|
+
H,
|
|
305
291
|
at
|
|
306
|
-
] }), t[
|
|
307
|
-
|
|
308
|
-
|
|
292
|
+
] }), t[120] = K, t[121] = Q, t[122] = S, t[123] = k, t[124] = I, t[125] = H, t[126] = at, t[127] = nt) : nt = t[127];
|
|
293
|
+
let R;
|
|
294
|
+
t[128] !== E || t[129] !== _ || t[130] !== tt || t[131] !== et || t[132] !== pt || t[133] !== F || t[134] !== L || t[135] !== nt ? (R = /* @__PURE__ */ i.jsxs(E, { width: _, height: tt, viewBox: et, direction: pt, ref: F, children: [
|
|
295
|
+
L,
|
|
296
|
+
nt
|
|
297
|
+
] }), t[128] = E, t[129] = _, t[130] = tt, t[131] = et, t[132] = pt, t[133] = F, t[134] = L, t[135] = nt, t[136] = R) : R = t[136];
|
|
298
|
+
let o;
|
|
299
|
+
t[137] !== a?.tooltip || t[138] !== Bt || t[139] !== dt || t[140] !== Ct || t[141] !== n?.tooltip || t[142] !== v ? (o = Ct && v && Bt && dt ? /* @__PURE__ */ i.jsx(Ie, { data: Ct, body: v, xPos: Bt, yPos: dt, backgroundStyle: n?.tooltip, className: a?.tooltip }) : null, t[137] = a?.tooltip, t[138] = Bt, t[139] = dt, t[140] = Ct, t[141] = n?.tooltip, t[142] = v, t[143] = o) : o = t[143];
|
|
300
|
+
let ot;
|
|
301
|
+
t[144] !== a?.modal || t[145] !== T || t[146] !== D ? (ot = T && D !== void 0 ? /* @__PURE__ */ i.jsx(De, { body: T, data: D, setData: Pt, className: a?.modal }) : null, t[144] = a?.modal, t[145] = T, t[146] = D, t[147] = ot) : ot = t[147];
|
|
302
|
+
let bt;
|
|
303
|
+
return t[148] !== R || t[149] !== o || t[150] !== ot ? (bt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
304
|
+
R,
|
|
305
|
+
o,
|
|
306
|
+
ot
|
|
307
|
+
] }), t[148] = R, t[149] = o, t[150] = ot, t[151] = bt) : bt = t[151], bt;
|
|
308
|
+
}
|
|
309
|
+
function ii(e) {
|
|
309
310
|
return e.layer;
|
|
310
311
|
}
|
|
311
|
-
function
|
|
312
|
+
function ai(e) {
|
|
312
313
|
return e.position === "after";
|
|
313
314
|
}
|
|
314
|
-
function
|
|
315
|
+
function ni(e) {
|
|
315
316
|
return e !== null;
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
+
function oi(e) {
|
|
318
319
|
return e !== null;
|
|
319
320
|
}
|
|
320
|
-
function
|
|
321
|
+
function si(e) {
|
|
321
322
|
return e !== null;
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function li(e) {
|
|
324
325
|
return e !== null;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function ri(e) {
|
|
327
328
|
return e.layer;
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function ci(e) {
|
|
330
331
|
return e.position === "before";
|
|
331
332
|
}
|
|
332
|
-
function
|
|
333
|
+
function di(e) {
|
|
333
334
|
return e !== 0;
|
|
334
335
|
}
|
|
335
|
-
function
|
|
336
|
+
function mi(e) {
|
|
336
337
|
return e !== 0;
|
|
337
338
|
}
|
|
338
|
-
function
|
|
339
|
+
function ui(e) {
|
|
339
340
|
return `${e.id}`;
|
|
340
341
|
}
|
|
341
|
-
function
|
|
342
|
-
const t =
|
|
342
|
+
function xi(e) {
|
|
343
|
+
const t = Me.c(141), {
|
|
343
344
|
data: c,
|
|
344
|
-
leftMargin:
|
|
345
|
-
rightMargin:
|
|
346
|
-
topMargin:
|
|
347
|
-
bottomMargin:
|
|
348
|
-
dotColors:
|
|
349
|
-
suffix:
|
|
350
|
-
prefix:
|
|
351
|
-
barPadding:
|
|
352
|
-
showValues:
|
|
353
|
-
showTicks:
|
|
354
|
-
truncateBy:
|
|
355
|
-
width:
|
|
356
|
-
height:
|
|
357
|
-
radius:
|
|
358
|
-
showLabels:
|
|
359
|
-
tooltip:
|
|
360
|
-
onSeriesMouseOver:
|
|
361
|
-
maxValue:
|
|
362
|
-
minValue:
|
|
363
|
-
onSeriesMouseClick:
|
|
364
|
-
selectedColor:
|
|
365
|
-
arrowConnector:
|
|
366
|
-
connectorStrokeWidth:
|
|
367
|
-
maxBarThickness:
|
|
368
|
-
minBarThickness:
|
|
369
|
-
resetSelectionOnDoubleClick:
|
|
370
|
-
detailsOnClick:
|
|
371
|
-
axisTitle:
|
|
372
|
-
noOfTicks:
|
|
373
|
-
valueColor:
|
|
374
|
-
styles:
|
|
375
|
-
classNames:
|
|
376
|
-
labelOrder:
|
|
377
|
-
refValues:
|
|
378
|
-
rtl:
|
|
345
|
+
leftMargin: Jt,
|
|
346
|
+
rightMargin: se,
|
|
347
|
+
topMargin: Kt,
|
|
348
|
+
bottomMargin: Qt,
|
|
349
|
+
dotColors: V,
|
|
350
|
+
suffix: Ht,
|
|
351
|
+
prefix: ut,
|
|
352
|
+
barPadding: jt,
|
|
353
|
+
showValues: vt,
|
|
354
|
+
showTicks: wt,
|
|
355
|
+
truncateBy: ht,
|
|
356
|
+
width: At,
|
|
357
|
+
height: v,
|
|
358
|
+
radius: lt,
|
|
359
|
+
showLabels: Dt,
|
|
360
|
+
tooltip: M,
|
|
361
|
+
onSeriesMouseOver: xt,
|
|
362
|
+
maxValue: _t,
|
|
363
|
+
minValue: yt,
|
|
364
|
+
onSeriesMouseClick: W,
|
|
365
|
+
selectedColor: P,
|
|
366
|
+
arrowConnector: N,
|
|
367
|
+
connectorStrokeWidth: Rt,
|
|
368
|
+
maxBarThickness: kt,
|
|
369
|
+
minBarThickness: gt,
|
|
370
|
+
resetSelectionOnDoubleClick: Nt,
|
|
371
|
+
detailsOnClick: T,
|
|
372
|
+
axisTitle: rt,
|
|
373
|
+
noOfTicks: te,
|
|
374
|
+
valueColor: Tt,
|
|
375
|
+
styles: n,
|
|
376
|
+
classNames: a,
|
|
377
|
+
labelOrder: j,
|
|
378
|
+
refValues: St,
|
|
379
|
+
rtl: h,
|
|
379
380
|
animate: u,
|
|
380
|
-
precision:
|
|
381
|
-
customLayers:
|
|
382
|
-
highlightedDataPoints:
|
|
383
|
-
dimmedOpacity:
|
|
384
|
-
locale:
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
381
|
+
precision: B,
|
|
382
|
+
customLayers: g,
|
|
383
|
+
highlightedDataPoints: ft,
|
|
384
|
+
dimmedOpacity: Ft,
|
|
385
|
+
locale: ct,
|
|
386
|
+
padZeros: q
|
|
387
|
+
} = e, U = Jt === void 0 ? 100 : Jt, ee = se === void 0 ? 40 : se, Mt = Kt === void 0 ? 20 : Kt, ie = Qt === void 0 ? 10 : Qt, C = ge(null);
|
|
388
|
+
let f;
|
|
389
|
+
t[0] !== u.amount || t[1] !== u.once ? (f = {
|
|
388
390
|
once: u.once,
|
|
389
391
|
amount: u.amount
|
|
390
|
-
}, t[0] = u.amount, t[1] = u.once, t[2] =
|
|
391
|
-
const
|
|
392
|
-
let
|
|
393
|
-
t[3] !==
|
|
394
|
-
top:
|
|
395
|
-
bottom:
|
|
396
|
-
left:
|
|
397
|
-
right:
|
|
398
|
-
}, t[3] =
|
|
399
|
-
const r =
|
|
400
|
-
let
|
|
401
|
-
if (t[8] !== c || t[9] !==
|
|
402
|
-
const
|
|
403
|
-
const
|
|
404
|
-
return
|
|
405
|
-
...
|
|
406
|
-
id:
|
|
392
|
+
}, t[0] = u.amount, t[1] = u.once, t[2] = f) : f = t[2];
|
|
393
|
+
const w = Se(C, f), zt = rt ? Mt + 25 : Mt;
|
|
394
|
+
let Wt;
|
|
395
|
+
t[3] !== ie || t[4] !== U || t[5] !== ee || t[6] !== zt ? (Wt = {
|
|
396
|
+
top: zt,
|
|
397
|
+
bottom: ie,
|
|
398
|
+
left: U,
|
|
399
|
+
right: ee
|
|
400
|
+
}, t[3] = ie, t[4] = U, t[5] = ee, t[6] = zt, t[7] = Wt) : Wt = t[7];
|
|
401
|
+
const r = Wt, X = At - r.left - r.right, Y = v - r.top - r.bottom, [Ct, ae] = Vt(void 0), [D, Pt] = Vt(void 0), [Bt, A] = Vt(void 0), [dt, Zt] = Vt(void 0);
|
|
402
|
+
let Ot;
|
|
403
|
+
if (t[8] !== c || t[9] !== j) {
|
|
404
|
+
const x = /* @__PURE__ */ new Set(), b = c.map((y, st) => {
|
|
405
|
+
const d = j ? `${y.label}` : `${st}`;
|
|
406
|
+
return x.add(d), {
|
|
407
|
+
...y,
|
|
408
|
+
id: d
|
|
407
409
|
};
|
|
408
|
-
}),
|
|
409
|
-
let
|
|
410
|
-
t[11] !== c[0] ? (
|
|
411
|
-
id:
|
|
412
|
-
label:
|
|
410
|
+
}), Ut = j ? j.filter((y) => !x.has(y)) : [];
|
|
411
|
+
let p;
|
|
412
|
+
t[11] !== c[0] ? (p = (y) => ({
|
|
413
|
+
id: y,
|
|
414
|
+
label: y,
|
|
413
415
|
x: Array(c[0].x.length).fill(null)
|
|
414
|
-
}), t[11] = c[0], t[12] =
|
|
416
|
+
}), t[11] = c[0], t[12] = p) : p = t[12], Ot = [...b, ...Ut.map(p)], t[8] = c, t[9] = j, t[10] = Ot;
|
|
415
417
|
} else
|
|
416
|
-
|
|
417
|
-
const
|
|
418
|
-
let
|
|
419
|
-
t[13] !==
|
|
420
|
-
const
|
|
421
|
-
let
|
|
422
|
-
if (t[16] !== u || t[17] !==
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
gridLines: o?.xAxis?.gridLines,
|
|
426
|
-
labels: o?.xAxis?.labels
|
|
427
|
-
}, classNames: {
|
|
418
|
+
Ot = t[10];
|
|
419
|
+
const O = Ot;
|
|
420
|
+
let Lt;
|
|
421
|
+
t[13] !== O || t[14] !== j ? (Lt = j ?? O.map(Mi), t[13] = O, t[14] = j, t[15] = Lt) : Lt = t[15];
|
|
422
|
+
const qt = Lt;
|
|
423
|
+
let J, E, G, K, Q, S, k, I, _, tt, et, pt, F, L, it;
|
|
424
|
+
if (t[16] !== u || t[17] !== N || t[18] !== rt || t[19] !== qt || t[20] !== jt || t[21] !== a?.dataConnectors || t[22] !== a?.graphObjectValues || t[23] !== a?.xAxis?.gridLines || t[24] !== a?.xAxis?.labels || t[25] !== a?.xAxis?.title || t[26] !== a?.yAxis?.gridLines || t[27] !== a?.yAxis?.labels || t[28] !== Rt || t[29] !== g || t[30] !== O || t[31] !== T || t[32] !== Ft || t[33] !== V || t[34] !== Y || t[35] !== X || t[36] !== v || t[37] !== ft || t[38] !== w || t[39] !== ct || t[40] !== r.bottom || t[41] !== r.left || t[42] !== r.top || t[43] !== kt || t[44] !== _t || t[45] !== gt || t[46] !== yt || t[47] !== D || t[48] !== te || t[49] !== W || t[50] !== xt || t[51] !== q || t[52] !== B || t[53] !== ut || t[54] !== lt || t[55] !== St || t[56] !== Nt || t[57] !== h || t[58] !== P || t[59] !== Dt || t[60] !== wt || t[61] !== vt || t[62] !== n?.dataConnectors || t[63] !== n?.graphObjectValues || t[64] !== n?.xAxis?.gridLines || t[65] !== n?.xAxis?.labels || t[66] !== n?.xAxis?.title || t[67] !== n?.yAxis?.gridLines || t[68] !== n?.yAxis?.labels || t[69] !== Ht || t[70] !== Mt || t[71] !== ht || t[72] !== Tt || t[73] !== At) {
|
|
425
|
+
const x = Ne().domain([yt, _t]).range([0, X]).nice(), b = Te().domain(qt).range([0, gt ? Math.max(Y, gt * O.length) : kt ? Math.min(Y, kt * O.length) : Y]).paddingInner(jt), Ut = x.ticks(te);
|
|
426
|
+
E = Et.svg, _ = `${At}px`, tt = `${v}px`, et = `0 0 ${At} ${v}`, pt = "ltr", F = C, t[89] !== N ? (L = N ? /* @__PURE__ */ i.jsx("defs", { children: /* @__PURE__ */ i.jsx("marker", { id: "arrow", viewBox: "0 0 10 10", refX: "10", refY: "5", markerWidth: "6", markerHeight: "6", orient: "auto-start-reverse", children: /* @__PURE__ */ i.jsx("path", { d: "M 0 0 L 10 5 L 0 10 z", className: "fill-primary-gray-600 dark:fill-primary-gray-300" }) }) }) : null, t[89] = N, t[90] = L) : L = t[90], K = `translate(${r.left},${r.top})`, Q = wt ? /* @__PURE__ */ i.jsx(He, { values: Ut.filter(ki), x: Ut.filter(Ai).map((s) => x(s)), y1: 0 - Mt, y2: Y + r.bottom, styles: {
|
|
428
427
|
gridLines: n?.xAxis?.gridLines,
|
|
429
428
|
labels: n?.xAxis?.labels
|
|
430
|
-
},
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
t[
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
t[98]
|
|
441
|
-
|
|
442
|
-
|
|
429
|
+
}, classNames: {
|
|
430
|
+
gridLines: a?.xAxis?.gridLines,
|
|
431
|
+
labels: a?.xAxis?.labels
|
|
432
|
+
}, suffix: Ht, prefix: ut, labelType: "secondary", showGridLines: !0, precision: B, locale: ct, padZeros: q }) : null;
|
|
433
|
+
const p = X / 2, y = 0 - r.top + 15, st = n?.xAxis?.title, d = a?.xAxis?.title;
|
|
434
|
+
t[91] !== rt || t[92] !== p || t[93] !== y || t[94] !== st || t[95] !== d ? (S = /* @__PURE__ */ i.jsx(Ve, { x: p, y, style: st, className: d, text: rt }), t[91] = rt, t[92] = p, t[93] = y, t[94] = st, t[95] = d, t[96] = S) : S = t[96];
|
|
435
|
+
const z = n?.yAxis?.gridLines;
|
|
436
|
+
let Xt;
|
|
437
|
+
t[97] !== z ? (Xt = {
|
|
438
|
+
gridLines: z
|
|
439
|
+
}, t[97] = z, t[98] = Xt) : Xt = t[98];
|
|
440
|
+
const Yt = a?.yAxis?.gridLines;
|
|
441
|
+
let ne;
|
|
442
|
+
t[99] !== Yt ? (ne = {
|
|
443
|
+
gridLines: Yt
|
|
444
|
+
}, t[99] = Yt, t[100] = ne) : ne = t[100], k = /* @__PURE__ */ i.jsx(je, { y: O.map((s) => b(`${s.id}`) + b.bandwidth() / 2), x1: 0, x2: X, styles: Xt, classNames: ne, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: B, locale: ct, padZeros: q }), t[101] !== g ? (I = g.filter(wi).map(vi), t[101] = g, t[102] = I) : I = t[102], J = Fe, it = O.map((s) => /* @__PURE__ */ i.jsxs(Et.g, { className: "undp-viz-g-with-hover", variants: {
|
|
443
445
|
initial: {
|
|
444
446
|
x: 0,
|
|
445
|
-
y:
|
|
446
|
-
opacity:
|
|
447
|
+
y: b(`${s.id}`) + b.bandwidth() / 2,
|
|
448
|
+
opacity: ft ? ft.indexOf(s.label) !== -1 ? 0.85 : Ft : 0.85
|
|
447
449
|
},
|
|
448
450
|
whileInView: {
|
|
449
451
|
x: 0,
|
|
450
|
-
y:
|
|
451
|
-
opacity:
|
|
452
|
+
y: b(`${s.id}`) + b.bandwidth() / 2,
|
|
453
|
+
opacity: ft ? ft.indexOf(s.label) !== -1 ? 0.85 : Ft : 0.85,
|
|
452
454
|
transition: {
|
|
453
455
|
duration: u.duration
|
|
454
456
|
}
|
|
455
457
|
}
|
|
456
|
-
}, initial: "initial", animate:
|
|
458
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial", exit: {
|
|
457
459
|
opacity: 0,
|
|
458
460
|
transition: {
|
|
459
461
|
duration: u.duration
|
|
460
462
|
}
|
|
461
463
|
}, children: [
|
|
462
|
-
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
strokeWidth:
|
|
465
|
-
...
|
|
466
|
-
opacity:
|
|
467
|
-
}, className:
|
|
464
|
+
Dt ? /* @__PURE__ */ i.jsx(Re, { value: `${s.label}`.length < ht ? `${s.label}` : `${`${s.label}`.substring(0, ht)}...`, y: 0 - b.bandwidth() / 2, x: 0 - r.left, width: r.left, height: b.bandwidth(), alignment: "right", style: n?.yAxis?.labels, className: a?.yAxis?.labels, animate: u, isInView: w }) : null,
|
|
465
|
+
/* @__PURE__ */ i.jsx(Et.line, { y1: 0, y2: 0, style: {
|
|
466
|
+
strokeWidth: Rt,
|
|
467
|
+
...n?.dataConnectors || {},
|
|
468
|
+
opacity: P ? 0.3 : 1
|
|
469
|
+
}, className: ye("stroke-primary-gray-600 dark:stroke-primary-gray-300", a?.dataConnectors), markerEnd: N && s.x.indexOf(Math.min(...s.x.filter(bi))) === 0 ? "url(#arrow)" : "", markerStart: N && s.x.indexOf(Math.min(...s.x.filter(gi))) === s.x.length - 1 ? "url(#arrow)" : "", exit: {
|
|
468
470
|
opacity: 0,
|
|
469
471
|
transition: {
|
|
470
472
|
duration: u.duration
|
|
@@ -475,39 +477,39 @@ function vi(e) {
|
|
|
475
477
|
x2: 0
|
|
476
478
|
},
|
|
477
479
|
whileInView: {
|
|
478
|
-
x1:
|
|
479
|
-
x2:
|
|
480
|
+
x1: x(Math.min(...s.x.filter(yi))) + lt,
|
|
481
|
+
x2: x(Math.max(...s.x.filter(hi))) - lt,
|
|
480
482
|
transition: {
|
|
481
483
|
duration: u.duration
|
|
482
484
|
}
|
|
483
485
|
}
|
|
484
|
-
}, initial: "initial", animate:
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
...
|
|
488
|
-
xIndex:
|
|
489
|
-
}),
|
|
490
|
-
...
|
|
491
|
-
xIndex:
|
|
486
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial" }),
|
|
487
|
+
s.x.map((mt, $) => /* @__PURE__ */ i.jsx(Et.g, { onMouseEnter: (l) => {
|
|
488
|
+
ae({
|
|
489
|
+
...s,
|
|
490
|
+
xIndex: $
|
|
491
|
+
}), Zt(l.clientY), A(l.clientX), xt?.({
|
|
492
|
+
...s,
|
|
493
|
+
xIndex: $
|
|
492
494
|
});
|
|
493
495
|
}, onClick: () => {
|
|
494
|
-
(
|
|
495
|
-
...
|
|
496
|
-
xIndex:
|
|
497
|
-
}) &&
|
|
498
|
-
...
|
|
499
|
-
xIndex:
|
|
500
|
-
}),
|
|
501
|
-
...
|
|
502
|
-
xIndex:
|
|
496
|
+
(W || T) && ($e(D, {
|
|
497
|
+
...s,
|
|
498
|
+
xIndex: $
|
|
499
|
+
}) && Nt ? (Pt(void 0), W?.(void 0)) : (Pt({
|
|
500
|
+
...s,
|
|
501
|
+
xIndex: $
|
|
502
|
+
}), W && W({
|
|
503
|
+
...s,
|
|
504
|
+
xIndex: $
|
|
503
505
|
})));
|
|
504
|
-
}, onMouseMove: (
|
|
505
|
-
|
|
506
|
-
...
|
|
507
|
-
xIndex:
|
|
508
|
-
}),
|
|
506
|
+
}, onMouseMove: (l) => {
|
|
507
|
+
ae({
|
|
508
|
+
...s,
|
|
509
|
+
xIndex: $
|
|
510
|
+
}), Zt(l.clientY), A(l.clientX);
|
|
509
511
|
}, onMouseLeave: () => {
|
|
510
|
-
|
|
512
|
+
ae(void 0), A(void 0), Zt(void 0), xt?.(void 0);
|
|
511
513
|
}, exit: {
|
|
512
514
|
opacity: 0,
|
|
513
515
|
transition: {
|
|
@@ -515,21 +517,21 @@ function vi(e) {
|
|
|
515
517
|
}
|
|
516
518
|
}, variants: {
|
|
517
519
|
initial: {
|
|
518
|
-
opacity:
|
|
520
|
+
opacity: P ? V[$] === P ? 1 : 0.3 : 1
|
|
519
521
|
},
|
|
520
522
|
whileInView: {
|
|
521
|
-
opacity:
|
|
523
|
+
opacity: P ? V[$] === P ? 1 : 0.3 : 1,
|
|
522
524
|
transition: {
|
|
523
525
|
duration: u.duration
|
|
524
526
|
}
|
|
525
527
|
}
|
|
526
|
-
}, initial: "initial", animate:
|
|
527
|
-
/* @__PURE__ */
|
|
528
|
-
fill:
|
|
528
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial", children: Gt(mt) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
529
|
+
/* @__PURE__ */ i.jsx(Et.circle, { cy: 0, r: lt, style: {
|
|
530
|
+
fill: V[$],
|
|
529
531
|
fillOpacity: 0.85,
|
|
530
|
-
stroke:
|
|
532
|
+
stroke: V[$],
|
|
531
533
|
strokeWidth: 1,
|
|
532
|
-
opacity:
|
|
534
|
+
opacity: Gt(mt) ? 0 : 1
|
|
533
535
|
}, exit: {
|
|
534
536
|
opacity: 0,
|
|
535
537
|
transition: {
|
|
@@ -537,324 +539,321 @@ function vi(e) {
|
|
|
537
539
|
}
|
|
538
540
|
}, variants: {
|
|
539
541
|
initial: {
|
|
540
|
-
cx:
|
|
542
|
+
cx: x(0),
|
|
541
543
|
opacity: 0
|
|
542
544
|
},
|
|
543
545
|
whileInView: {
|
|
544
|
-
cx:
|
|
545
|
-
opacity:
|
|
546
|
+
cx: x(mt || 0),
|
|
547
|
+
opacity: Gt(mt) ? 0 : 1,
|
|
546
548
|
transition: {
|
|
547
549
|
duration: u.duration
|
|
548
550
|
}
|
|
549
551
|
}
|
|
550
|
-
}, initial: "initial", animate:
|
|
551
|
-
|
|
552
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial" }),
|
|
553
|
+
vt ? /* @__PURE__ */ i.jsx(Et.text, { y: 0, style: {
|
|
552
554
|
textAnchor: "middle",
|
|
553
|
-
...
|
|
554
|
-
}, dx: 0, dy: 0 -
|
|
555
|
+
...n?.graphObjectValues || {}
|
|
556
|
+
}, dx: 0, dy: 0 - lt - 3, className: ye("graph-value text-sm font-bold", Gt(mt) ? "0opacity-0" : "opacity-100", a?.graphObjectValues), exit: {
|
|
555
557
|
opacity: 0,
|
|
556
558
|
transition: {
|
|
557
559
|
duration: u.duration
|
|
558
560
|
}
|
|
559
561
|
}, variants: {
|
|
560
562
|
initial: {
|
|
561
|
-
x:
|
|
563
|
+
x: x(0),
|
|
562
564
|
opacity: 0,
|
|
563
|
-
fill:
|
|
565
|
+
fill: Tt || V[$]
|
|
564
566
|
},
|
|
565
567
|
whileInView: {
|
|
566
|
-
x:
|
|
567
|
-
fill:
|
|
568
|
+
x: x(mt || 0),
|
|
569
|
+
fill: Tt || V[$],
|
|
568
570
|
opacity: 1,
|
|
569
571
|
transition: {
|
|
570
572
|
duration: u.duration
|
|
571
573
|
}
|
|
572
574
|
}
|
|
573
|
-
}, initial: "initial", animate:
|
|
574
|
-
] }) },
|
|
575
|
-
] },
|
|
575
|
+
}, initial: "initial", animate: w ? "whileInView" : "initial", children: ke(mt, void 0, B, ut, Ht, ct, q) }) : null
|
|
576
|
+
] }) }, $))
|
|
577
|
+
] }, s.label)), G = St ? /* @__PURE__ */ i.jsx(i.Fragment, { children: St.map((s, mt) => /* @__PURE__ */ i.jsx(Ee, { text: s.text, color: s.color, x: x(s.value), y1: 0 - r.top, y2: Y + r.bottom, textSide: x(s.value) > X * 0.75 || h ? "left" : "right", classNames: s.classNames, styles: s.styles, animate: u, isInView: w }, mt)) }) : null, t[16] = u, t[17] = N, t[18] = rt, t[19] = qt, t[20] = jt, t[21] = a?.dataConnectors, t[22] = a?.graphObjectValues, t[23] = a?.xAxis?.gridLines, t[24] = a?.xAxis?.labels, t[25] = a?.xAxis?.title, t[26] = a?.yAxis?.gridLines, t[27] = a?.yAxis?.labels, t[28] = Rt, t[29] = g, t[30] = O, t[31] = T, t[32] = Ft, t[33] = V, t[34] = Y, t[35] = X, t[36] = v, t[37] = ft, t[38] = w, t[39] = ct, t[40] = r.bottom, t[41] = r.left, t[42] = r.top, t[43] = kt, t[44] = _t, t[45] = gt, t[46] = yt, t[47] = D, t[48] = te, t[49] = W, t[50] = xt, t[51] = q, t[52] = B, t[53] = ut, t[54] = lt, t[55] = St, t[56] = Nt, t[57] = h, t[58] = P, t[59] = Dt, t[60] = wt, t[61] = vt, t[62] = n?.dataConnectors, t[63] = n?.graphObjectValues, t[64] = n?.xAxis?.gridLines, t[65] = n?.xAxis?.labels, t[66] = n?.xAxis?.title, t[67] = n?.yAxis?.gridLines, t[68] = n?.yAxis?.labels, t[69] = Ht, t[70] = Mt, t[71] = ht, t[72] = Tt, t[73] = At, t[74] = J, t[75] = E, t[76] = G, t[77] = K, t[78] = Q, t[79] = S, t[80] = k, t[81] = I, t[82] = _, t[83] = tt, t[84] = et, t[85] = pt, t[86] = F, t[87] = L, t[88] = it;
|
|
576
578
|
} else
|
|
577
|
-
|
|
578
|
-
let
|
|
579
|
-
t[
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
] }), t[
|
|
583
|
-
let it;
|
|
584
|
-
t[106] !== P ? (it = P.filter(Ai).map(wi), t[106] = P, t[107] = it) : it = t[107];
|
|
585
|
-
let mt;
|
|
586
|
-
t[108] !== J || t[109] !== K || t[110] !== j || t[111] !== D || t[112] !== k || t[113] !== et || t[114] !== it ? (mt = /* @__PURE__ */ a.jsxs("g", { transform: J, children: [
|
|
587
|
-
K,
|
|
588
|
-
j,
|
|
589
|
-
D,
|
|
590
|
-
k,
|
|
591
|
-
et,
|
|
592
|
-
it
|
|
593
|
-
] }), t[108] = J, t[109] = K, t[110] = j, t[111] = D, t[112] = k, t[113] = et, t[114] = it, t[115] = mt) : mt = t[115];
|
|
594
|
-
let N;
|
|
595
|
-
t[116] !== q || t[117] !== X || t[118] !== Q || t[119] !== Z || t[120] !== _ || t[121] !== C || t[122] !== O || t[123] !== mt ? (N = /* @__PURE__ */ a.jsxs(q, { width: X, height: Q, viewBox: Z, direction: _, ref: C, children: [
|
|
596
|
-
O,
|
|
597
|
-
mt
|
|
598
|
-
] }), t[116] = q, t[117] = X, t[118] = Q, t[119] = Z, t[120] = _, t[121] = C, t[122] = O, t[123] = mt, t[124] = N) : N = t[124];
|
|
599
|
-
let Y;
|
|
600
|
-
t[125] !== n?.tooltip || t[126] !== Mt || t[127] !== yt || t[128] !== St || t[129] !== o?.tooltip || t[130] !== w ? (Y = St && w && Mt && yt ? /* @__PURE__ */ a.jsx(Se, { data: St, body: w, xPos: Mt, yPos: yt, backgroundStyle: o?.tooltip, className: n?.tooltip }) : null, t[125] = n?.tooltip, t[126] = Mt, t[127] = yt, t[128] = St, t[129] = o?.tooltip, t[130] = w, t[131] = Y) : Y = t[131];
|
|
579
|
+
J = t[74], E = t[75], G = t[76], K = t[77], Q = t[78], S = t[79], k = t[80], I = t[81], _ = t[82], tt = t[83], et = t[84], pt = t[85], F = t[86], L = t[87], it = t[88];
|
|
580
|
+
let H;
|
|
581
|
+
t[103] !== J || t[104] !== G || t[105] !== it ? (H = /* @__PURE__ */ i.jsxs(J, { children: [
|
|
582
|
+
it,
|
|
583
|
+
G
|
|
584
|
+
] }), t[103] = J, t[104] = G, t[105] = it, t[106] = H) : H = t[106];
|
|
601
585
|
let at;
|
|
602
|
-
t[
|
|
603
|
-
let
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
586
|
+
t[107] !== g ? (at = g.filter(pi).map(fi), t[107] = g, t[108] = at) : at = t[108];
|
|
587
|
+
let nt;
|
|
588
|
+
t[109] !== K || t[110] !== Q || t[111] !== S || t[112] !== k || t[113] !== I || t[114] !== H || t[115] !== at ? (nt = /* @__PURE__ */ i.jsxs("g", { transform: K, children: [
|
|
589
|
+
Q,
|
|
590
|
+
S,
|
|
591
|
+
k,
|
|
592
|
+
I,
|
|
593
|
+
H,
|
|
607
594
|
at
|
|
608
|
-
] }), t[
|
|
595
|
+
] }), t[109] = K, t[110] = Q, t[111] = S, t[112] = k, t[113] = I, t[114] = H, t[115] = at, t[116] = nt) : nt = t[116];
|
|
596
|
+
let R;
|
|
597
|
+
t[117] !== E || t[118] !== _ || t[119] !== tt || t[120] !== et || t[121] !== pt || t[122] !== F || t[123] !== L || t[124] !== nt ? (R = /* @__PURE__ */ i.jsxs(E, { width: _, height: tt, viewBox: et, direction: pt, ref: F, children: [
|
|
598
|
+
L,
|
|
599
|
+
nt
|
|
600
|
+
] }), t[117] = E, t[118] = _, t[119] = tt, t[120] = et, t[121] = pt, t[122] = F, t[123] = L, t[124] = nt, t[125] = R) : R = t[125];
|
|
601
|
+
let o;
|
|
602
|
+
t[126] !== a?.tooltip || t[127] !== Bt || t[128] !== dt || t[129] !== Ct || t[130] !== n?.tooltip || t[131] !== M ? (o = Ct && M && Bt && dt ? /* @__PURE__ */ i.jsx(Ie, { data: Ct, body: M, xPos: Bt, yPos: dt, backgroundStyle: n?.tooltip, className: a?.tooltip }) : null, t[126] = a?.tooltip, t[127] = Bt, t[128] = dt, t[129] = Ct, t[130] = n?.tooltip, t[131] = M, t[132] = o) : o = t[132];
|
|
603
|
+
let ot;
|
|
604
|
+
t[133] !== a?.modal || t[134] !== T || t[135] !== D ? (ot = T && D !== void 0 ? /* @__PURE__ */ i.jsx(De, { body: T, data: D, setData: Pt, className: a?.modal }) : null, t[133] = a?.modal, t[134] = T, t[135] = D, t[136] = ot) : ot = t[136];
|
|
605
|
+
let bt;
|
|
606
|
+
return t[137] !== R || t[138] !== o || t[139] !== ot ? (bt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
607
|
+
R,
|
|
608
|
+
o,
|
|
609
|
+
ot
|
|
610
|
+
] }), t[137] = R, t[138] = o, t[139] = ot, t[140] = bt) : bt = t[140], bt;
|
|
609
611
|
}
|
|
610
|
-
function
|
|
612
|
+
function fi(e) {
|
|
611
613
|
return e.layer;
|
|
612
614
|
}
|
|
613
|
-
function
|
|
615
|
+
function pi(e) {
|
|
614
616
|
return e.position === "after";
|
|
615
617
|
}
|
|
616
|
-
function
|
|
618
|
+
function hi(e) {
|
|
617
619
|
return e !== null;
|
|
618
620
|
}
|
|
619
|
-
function
|
|
621
|
+
function yi(e) {
|
|
620
622
|
return e !== null;
|
|
621
623
|
}
|
|
622
|
-
function
|
|
624
|
+
function gi(e) {
|
|
623
625
|
return e !== null;
|
|
624
626
|
}
|
|
625
|
-
function
|
|
627
|
+
function bi(e) {
|
|
626
628
|
return e !== null;
|
|
627
629
|
}
|
|
628
|
-
function
|
|
630
|
+
function vi(e) {
|
|
629
631
|
return e.layer;
|
|
630
632
|
}
|
|
631
|
-
function
|
|
633
|
+
function wi(e) {
|
|
632
634
|
return e.position === "before";
|
|
633
635
|
}
|
|
634
|
-
function
|
|
636
|
+
function Ai(e, t) {
|
|
635
637
|
return t !== 0;
|
|
636
638
|
}
|
|
637
|
-
function
|
|
639
|
+
function ki(e, t) {
|
|
638
640
|
return t !== 0;
|
|
639
641
|
}
|
|
640
|
-
function
|
|
642
|
+
function Mi(e) {
|
|
641
643
|
return `${e.id}`;
|
|
642
644
|
}
|
|
643
|
-
function
|
|
644
|
-
const t =
|
|
645
|
+
function va(e) {
|
|
646
|
+
const t = Me.c(131), {
|
|
645
647
|
data: c,
|
|
646
|
-
graphTitle:
|
|
647
|
-
colors:
|
|
648
|
-
sources:
|
|
649
|
-
graphDescription:
|
|
650
|
-
barPadding:
|
|
651
|
-
showTicks:
|
|
652
|
-
leftMargin:
|
|
653
|
-
rightMargin:
|
|
654
|
-
topMargin:
|
|
655
|
-
bottomMargin:
|
|
656
|
-
truncateBy:
|
|
657
|
-
height:
|
|
658
|
-
width:
|
|
659
|
-
footNote:
|
|
660
|
-
colorDomain:
|
|
661
|
-
colorLegendTitle:
|
|
662
|
-
padding:
|
|
663
|
-
backgroundColor:
|
|
664
|
-
radius:
|
|
665
|
-
tooltip:
|
|
666
|
-
showLabels:
|
|
667
|
-
relativeHeight:
|
|
668
|
-
onSeriesMouseOver:
|
|
669
|
-
graphID:
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
let
|
|
711
|
-
t[
|
|
712
|
-
const g = m, Ot = te === void 0 ? 0.3 : te;
|
|
713
|
-
let b;
|
|
714
|
-
t[2] !== yt ? (b = yt === void 0 ? {
|
|
648
|
+
graphTitle: Jt,
|
|
649
|
+
colors: se,
|
|
650
|
+
sources: Kt,
|
|
651
|
+
graphDescription: Qt,
|
|
652
|
+
barPadding: V,
|
|
653
|
+
showTicks: Ht,
|
|
654
|
+
leftMargin: ut,
|
|
655
|
+
rightMargin: jt,
|
|
656
|
+
topMargin: vt,
|
|
657
|
+
bottomMargin: wt,
|
|
658
|
+
truncateBy: ht,
|
|
659
|
+
height: At,
|
|
660
|
+
width: v,
|
|
661
|
+
footNote: lt,
|
|
662
|
+
colorDomain: Dt,
|
|
663
|
+
colorLegendTitle: M,
|
|
664
|
+
padding: xt,
|
|
665
|
+
backgroundColor: _t,
|
|
666
|
+
radius: yt,
|
|
667
|
+
tooltip: W,
|
|
668
|
+
showLabels: P,
|
|
669
|
+
relativeHeight: N,
|
|
670
|
+
onSeriesMouseOver: Rt,
|
|
671
|
+
graphID: kt,
|
|
672
|
+
maxValue: gt,
|
|
673
|
+
minValue: Nt,
|
|
674
|
+
onSeriesMouseClick: T,
|
|
675
|
+
graphDownload: rt,
|
|
676
|
+
dataDownload: te,
|
|
677
|
+
showValues: Tt,
|
|
678
|
+
sortParameter: n,
|
|
679
|
+
arrowConnector: a,
|
|
680
|
+
connectorStrokeWidth: j,
|
|
681
|
+
language: St,
|
|
682
|
+
minHeight: h,
|
|
683
|
+
theme: u,
|
|
684
|
+
maxBarThickness: B,
|
|
685
|
+
maxNumberOfBars: g,
|
|
686
|
+
minBarThickness: ft,
|
|
687
|
+
ariaLabel: Ft,
|
|
688
|
+
resetSelectionOnDoubleClick: ct,
|
|
689
|
+
detailsOnClick: q,
|
|
690
|
+
axisTitle: U,
|
|
691
|
+
noOfTicks: ee,
|
|
692
|
+
valueColor: Mt,
|
|
693
|
+
orientation: ie,
|
|
694
|
+
styles: C,
|
|
695
|
+
classNames: f,
|
|
696
|
+
labelOrder: w,
|
|
697
|
+
refValues: zt,
|
|
698
|
+
filterNA: Wt,
|
|
699
|
+
animate: r,
|
|
700
|
+
showColorScale: X,
|
|
701
|
+
customLayers: Y,
|
|
702
|
+
highlightedDataPoints: Ct,
|
|
703
|
+
dimmedOpacity: ae,
|
|
704
|
+
timeline: D,
|
|
705
|
+
sortData: Pt,
|
|
706
|
+
hideAxisLine: Bt,
|
|
707
|
+
numberDisplayOptions: A
|
|
708
|
+
} = e, dt = se === void 0 ? ti.light.categoricalColors.colors : se, Zt = V === void 0 ? 0.25 : V, Ot = Ht === void 0 ? !0 : Ht, O = ht === void 0 ? 999 : ht, Lt = _t === void 0 ? !0 : _t, qt = yt === void 0 ? 3 : yt, J = P === void 0 ? !0 : P, E = rt === void 0 ? !1 : rt, G = te === void 0 ? !1 : te, K = Tt === void 0 ? !0 : Tt, Q = a === void 0 ? !1 : a, S = j === void 0 ? 2 : j, k = St === void 0 ? "en" : St, I = h === void 0 ? 0 : h, _ = u === void 0 ? "light" : u, tt = ct === void 0 ? !0 : ct, et = ee === void 0 ? 5 : ee, pt = ie === void 0 ? "vertical" : ie, F = Wt === void 0 ? !0 : Wt, L = r === void 0 ? !1 : r, it = X === void 0 ? !0 : X;
|
|
709
|
+
let H;
|
|
710
|
+
t[0] !== Y ? (H = Y === void 0 ? [] : Y, t[0] = Y, t[1] = H) : H = t[1];
|
|
711
|
+
const at = H, nt = ae === void 0 ? 0.3 : ae;
|
|
712
|
+
let R;
|
|
713
|
+
t[2] !== D ? (R = D === void 0 ? {
|
|
715
714
|
enabled: !1,
|
|
716
715
|
autoplay: !1,
|
|
717
716
|
showOnlyActiveDate: !0
|
|
718
|
-
} :
|
|
719
|
-
const
|
|
720
|
-
let
|
|
721
|
-
if (t[4] !== c || t[5] !==
|
|
722
|
-
let
|
|
723
|
-
t[7] !==
|
|
717
|
+
} : D, t[2] = D, t[3] = R) : R = t[3];
|
|
718
|
+
const o = R, ot = Bt === void 0 ? !1 : Bt, [bt, x] = Vt(0), [b, Ut] = Vt(0), [p, y] = Vt(o.autoplay);
|
|
719
|
+
let st;
|
|
720
|
+
if (t[4] !== c || t[5] !== o.dateFormat) {
|
|
721
|
+
let m;
|
|
722
|
+
t[7] !== o.dateFormat ? (m = (It) => We(`${It.date}`, o.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = o.dateFormat, t[8] = m) : m = t[8], st = [...new Set(c.filter(Gi).map(m))], st.sort(Ei), t[4] = c, t[5] = o.dateFormat, t[6] = st;
|
|
724
723
|
} else
|
|
725
|
-
|
|
726
|
-
const
|
|
727
|
-
let
|
|
728
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
729
|
-
const
|
|
730
|
-
|
|
724
|
+
st = t[6];
|
|
725
|
+
const d = st, [z, Xt] = Vt(o.autoplay ? 0 : d.length - 1), [Yt, ne] = Vt(void 0), s = ge(null), mt = ge(null);
|
|
726
|
+
let $, l;
|
|
727
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => {
|
|
728
|
+
const m = new ResizeObserver((It) => {
|
|
729
|
+
x(It[0].target.clientWidth || 620), Ut(It[0].target.clientHeight || 480);
|
|
731
730
|
});
|
|
732
|
-
return
|
|
733
|
-
},
|
|
734
|
-
let
|
|
735
|
-
t[11] !==
|
|
736
|
-
const
|
|
737
|
-
|
|
738
|
-
}, (
|
|
739
|
-
return
|
|
740
|
-
},
|
|
741
|
-
const
|
|
742
|
-
let
|
|
743
|
-
t[16] !==
|
|
744
|
-
const
|
|
745
|
-
let se;
|
|
746
|
-
t[21] !== x?.description || t[22] !== x?.title || t[23] !== c || t[24] !== X || t[25] !== Jt || t[26] !== k || t[27] !== qt || t[28] !== h?.description || t[29] !== h?.title || t[30] !== y ? (se = qt || Jt || k || X ? /* @__PURE__ */ a.jsx(ei, { styles: {
|
|
747
|
-
title: h?.title,
|
|
748
|
-
description: h?.description
|
|
749
|
-
}, classNames: {
|
|
750
|
-
title: x?.title,
|
|
751
|
-
description: x?.description
|
|
752
|
-
}, graphTitle: qt, graphDescription: Jt, width: y, graphDownload: k ? Ve : void 0, dataDownload: X ? c.map(Ui).filter(qi).length > 0 ? c.map(zi).filter(Ri) : c.filter(Hi) : null }) : null, t[21] = x?.description, t[22] = x?.title, t[23] = c, t[24] = X, t[25] = Jt, t[26] = k, t[27] = qt, t[28] = h?.description, t[29] = h?.title, t[30] = y, t[31] = se) : se = t[31];
|
|
731
|
+
return s.current && m.observe(s.current), () => m.disconnect();
|
|
732
|
+
}, l = [], t[9] = $, t[10] = l) : ($ = t[9], l = t[10]), Le($, l);
|
|
733
|
+
let $t, Z;
|
|
734
|
+
t[11] !== p || t[12] !== o.speed || t[13] !== d ? ($t = () => {
|
|
735
|
+
const m = setInterval(() => {
|
|
736
|
+
Xt((It) => It < d.length - 1 ? It + 1 : 0);
|
|
737
|
+
}, (o.speed || 2) * 1e3);
|
|
738
|
+
return p || clearInterval(m), () => clearInterval(m);
|
|
739
|
+
}, Z = [d, p, o.speed], t[11] = p, t[12] = o.speed, t[13] = d, t[14] = $t, t[15] = Z) : ($t = t[14], Z = t[15]), Le($t, Z);
|
|
740
|
+
const oe = o.dateFormat || "yyyy";
|
|
741
|
+
let fe;
|
|
742
|
+
t[16] !== z || t[17] !== oe || t[18] !== o.showOnlyActiveDate || t[19] !== d ? (fe = Pe(d, z, o.showOnlyActiveDate, oe), t[16] = z, t[17] = oe, t[18] = o.showOnlyActiveDate, t[19] = d, t[20] = fe) : fe = t[20];
|
|
743
|
+
const pe = fe, be = pt === "horizontal" ? xi : ei, ve = f?.graphContainer, we = C?.graphContainer;
|
|
753
744
|
let le;
|
|
754
|
-
t[
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
nt(i.indexOf(d));
|
|
762
|
-
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
763
|
-
] }) : null, t[32] = T, t[33] = ge, t[34] = l, t[35] = s.enabled, t[36] = i, t[37] = le) : le = t[37];
|
|
745
|
+
t[21] !== f?.description || t[22] !== f?.title || t[23] !== c || t[24] !== G || t[25] !== Qt || t[26] !== E || t[27] !== Jt || t[28] !== C?.description || t[29] !== C?.title || t[30] !== v ? (le = Jt || Qt || E || G ? /* @__PURE__ */ i.jsx(qe, { styles: {
|
|
746
|
+
title: C?.title,
|
|
747
|
+
description: C?.description
|
|
748
|
+
}, classNames: {
|
|
749
|
+
title: f?.title,
|
|
750
|
+
description: f?.description
|
|
751
|
+
}, graphTitle: Jt, graphDescription: Qt, width: v, graphDownload: E ? mt : void 0, dataDownload: G ? c.map(Yi).filter(Xi).length > 0 ? c.map(Bi).filter(Pi) : c.filter(Wi) : null }) : null, t[21] = f?.description, t[22] = f?.title, t[23] = c, t[24] = G, t[25] = Qt, t[26] = E, t[27] = Jt, t[28] = C?.description, t[29] = C?.title, t[30] = v, t[31] = le) : le = t[31];
|
|
764
752
|
let re;
|
|
765
|
-
t[
|
|
753
|
+
t[32] !== z || t[33] !== pe || t[34] !== p || t[35] !== o.enabled || t[36] !== d ? (re = o.enabled && d.length > 0 && pe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
754
|
+
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
755
|
+
y(!p);
|
|
756
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": p ? "Click to pause animation" : "Click to play animation", children: p ? /* @__PURE__ */ i.jsx(Ue, {}) : /* @__PURE__ */ i.jsx(Je, {}) }),
|
|
757
|
+
/* @__PURE__ */ i.jsx(Be, { min: d[0], max: d[d.length - 1], marks: pe, step: null, defaultValue: d[d.length - 1], value: d[z], onChangeComplete: (m) => {
|
|
758
|
+
Xt(d.indexOf(m));
|
|
759
|
+
}, onChange: (m) => {
|
|
760
|
+
Xt(d.indexOf(m));
|
|
761
|
+
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
762
|
+
] }) : null, t[32] = z, t[33] = pe, t[34] = p, t[35] = o.enabled, t[36] = d, t[37] = re) : re = t[37];
|
|
766
763
|
let ce;
|
|
767
|
-
t[
|
|
764
|
+
t[38] !== f?.colorLegend || t[39] !== Dt || t[40] !== M || t[41] !== dt || t[42] !== c.length || t[43] !== it || t[44] !== v ? (ce = it && c.length > 0 ? /* @__PURE__ */ i.jsx(Qe, { width: v, colorDomain: Dt, colors: dt, colorLegendTitle: M, setSelectedColor: ne, showNAColor: !1, className: f?.colorLegend }) : null, t[38] = f?.colorLegend, t[39] = Dt, t[40] = M, t[41] = dt, t[42] = c.length, t[43] = it, t[44] = v, t[45] = ce) : ce = t[45];
|
|
768
765
|
let de;
|
|
769
|
-
t[
|
|
766
|
+
t[46] !== c.length ? (de = c.length === 0 && /* @__PURE__ */ i.jsx(_e, {}), t[46] = c.length, t[47] = de) : de = t[47];
|
|
767
|
+
let me;
|
|
768
|
+
t[48] !== be || t[49] !== L || t[50] !== Q || t[51] !== U || t[52] !== Zt || t[53] !== wt || t[54] !== f || t[55] !== dt || t[56] !== S || t[57] !== at || t[58] !== c || t[59] !== q || t[60] !== nt || t[61] !== F || t[62] !== ot || t[63] !== Ct || t[64] !== z || t[65] !== w || t[66] !== k || t[67] !== ut || t[68] !== B || t[69] !== g || t[70] !== gt || t[71] !== ft || t[72] !== Nt || t[73] !== et || t[74] !== A?.locale || t[75] !== A?.padZeros || t[76] !== A?.precision || t[77] !== A?.prefix || t[78] !== A?.suffix || t[79] !== T || t[80] !== Rt || t[81] !== qt || t[82] !== zt || t[83] !== tt || t[84] !== jt || t[85] !== Yt || t[86] !== J || t[87] !== Ot || t[88] !== K || t[89] !== Pt || t[90] !== n || t[91] !== C || t[92] !== b || t[93] !== bt || t[94] !== o.dateFormat || t[95] !== o.enabled || t[96] !== W || t[97] !== vt || t[98] !== O || t[99] !== d || t[100] !== Mt ? (me = bt && b && c.length > 0 ? /* @__PURE__ */ i.jsx(be, { hideAxisLine: ot, data: n !== void 0 ? n === "diff" ? Ce(Ae(c, o.dateFormat || "yyyy").filter((m) => o.enabled ? `${m.date}` === Oe(new Date(d[z]), o.dateFormat || "yyyy") : m).filter((m) => F ? !m.x.every(Fi) : m), Si, [Pt || "asc"]).filter((m, It) => g ? It < g : !0) : Ce(Ae(c, o.dateFormat || "yyyy").filter((m) => o.enabled ? `${m.date}` === Oe(new Date(d[z]), o.dateFormat || "yyyy") : m).filter((m) => F ? !m.x.every(Ti) : m), (m) => Gt(m.x[n]) ? -1 / 0 : m.x[n], [Pt || "asc"]).filter((m, It) => g ? It < g : !0) : Ae(c, o.dateFormat || "yyyy").filter((m) => F ? !m.x.every(Ni) : m).filter((m, It) => g ? It < g : !0), dotColors: dt, width: bt, height: b, radius: qt, barPadding: Zt, showTicks: Ot, leftMargin: ut, rightMargin: jt, topMargin: vt, bottomMargin: wt, truncateBy: O, showLabels: J, showValues: K, tooltip: W, onSeriesMouseOver: Rt, maxValue: Gt(gt) ? Math.max(...c.map(ji)) < 0 ? 0 : Math.max(...c.map(Ii)) : gt, minValue: Gt(Nt) ? Math.min(...c.map(Li)) > 0 ? 0 : Math.min(...c.map(Ci)) : Nt, onSeriesMouseClick: T, selectedColor: Yt, arrowConnector: Q, connectorStrokeWidth: S, maxBarThickness: B, minBarThickness: ft, resetSelectionOnDoubleClick: tt, detailsOnClick: q, axisTitle: U, noOfTicks: et, valueColor: Mt, styles: C, classNames: f, labelOrder: w, refValues: zt, animate: L === !0 ? {
|
|
770
769
|
duration: 0.5,
|
|
771
770
|
once: !0,
|
|
772
771
|
amount: 0.5
|
|
773
|
-
} :
|
|
772
|
+
} : L || {
|
|
774
773
|
duration: 0,
|
|
775
774
|
once: !0,
|
|
776
775
|
amount: 0
|
|
777
|
-
},
|
|
778
|
-
let me;
|
|
779
|
-
t[101] !== ce || t[102] !== de ? (me = /* @__PURE__ */ a.jsxs(_e, { ref: Ae, children: [
|
|
780
|
-
ce,
|
|
781
|
-
de
|
|
782
|
-
] }), t[101] = ce, t[102] = de, t[103] = me) : me = t[103];
|
|
776
|
+
}, customLayers: at, highlightedDataPoints: Ct, dimmedOpacity: nt, rtl: k === "ar" || k === "he", locale: A?.locale || "en", padZeros: A?.padZeros || !1, suffix: A?.suffix || "", prefix: A?.prefix || "", precision: A?.precision ?? 2 }) : null, t[48] = be, t[49] = L, t[50] = Q, t[51] = U, t[52] = Zt, t[53] = wt, t[54] = f, t[55] = dt, t[56] = S, t[57] = at, t[58] = c, t[59] = q, t[60] = nt, t[61] = F, t[62] = ot, t[63] = Ct, t[64] = z, t[65] = w, t[66] = k, t[67] = ut, t[68] = B, t[69] = g, t[70] = gt, t[71] = ft, t[72] = Nt, t[73] = et, t[74] = A?.locale, t[75] = A?.padZeros, t[76] = A?.precision, t[77] = A?.prefix, t[78] = A?.suffix, t[79] = T, t[80] = Rt, t[81] = qt, t[82] = zt, t[83] = tt, t[84] = jt, t[85] = Yt, t[86] = J, t[87] = Ot, t[88] = K, t[89] = Pt, t[90] = n, t[91] = C, t[92] = b, t[93] = bt, t[94] = o.dateFormat, t[95] = o.enabled, t[96] = W, t[97] = vt, t[98] = O, t[99] = d, t[100] = Mt, t[101] = me) : me = t[101];
|
|
783
777
|
let ue;
|
|
784
|
-
t[
|
|
785
|
-
|
|
786
|
-
|
|
778
|
+
t[102] !== de || t[103] !== me ? (ue = /* @__PURE__ */ i.jsxs(ze, { ref: s, children: [
|
|
779
|
+
de,
|
|
780
|
+
me
|
|
781
|
+
] }), t[102] = de, t[103] = me, t[104] = ue) : ue = t[104];
|
|
782
|
+
let xe;
|
|
783
|
+
t[105] !== f?.footnote || t[106] !== f?.source || t[107] !== lt || t[108] !== Kt || t[109] !== C?.footnote || t[110] !== C?.source || t[111] !== v ? (xe = Kt || lt ? /* @__PURE__ */ i.jsx(Ke, { styles: {
|
|
784
|
+
footnote: C?.footnote,
|
|
785
|
+
source: C?.source
|
|
787
786
|
}, classNames: {
|
|
788
|
-
footnote:
|
|
789
|
-
source:
|
|
790
|
-
}, sources:
|
|
791
|
-
let
|
|
792
|
-
return t[
|
|
793
|
-
se,
|
|
787
|
+
footnote: f?.footnote,
|
|
788
|
+
source: f?.source
|
|
789
|
+
}, sources: Kt, footNote: lt, width: v }) : null, t[105] = f?.footnote, t[106] = f?.source, t[107] = lt, t[108] = Kt, t[109] = C?.footnote, t[110] = C?.source, t[111] = v, t[112] = xe) : xe = t[112];
|
|
790
|
+
let he;
|
|
791
|
+
return t[113] !== Ft || t[114] !== Lt || t[115] !== kt || t[116] !== At || t[117] !== k || t[118] !== I || t[119] !== xt || t[120] !== N || t[121] !== ve || t[122] !== we || t[123] !== le || t[124] !== re || t[125] !== ce || t[126] !== ue || t[127] !== xe || t[128] !== _ || t[129] !== v ? (he = /* @__PURE__ */ i.jsxs(Ze, { className: ve, style: we, id: kt, ref: mt, "aria-label": Ft, backgroundColor: Lt, theme: _, language: k, minHeight: I, width: v, height: At, relativeHeight: N, padding: xt, children: [
|
|
794
792
|
le,
|
|
795
793
|
re,
|
|
796
|
-
|
|
797
|
-
ue
|
|
798
|
-
|
|
794
|
+
ce,
|
|
795
|
+
ue,
|
|
796
|
+
xe
|
|
797
|
+
] }), t[113] = Ft, t[114] = Lt, t[115] = kt, t[116] = At, t[117] = k, t[118] = I, t[119] = xt, t[120] = N, t[121] = ve, t[122] = we, t[123] = le, t[124] = re, t[125] = ce, t[126] = ue, t[127] = xe, t[128] = _, t[129] = v, t[130] = he) : he = t[130], he;
|
|
799
798
|
}
|
|
800
|
-
function
|
|
801
|
-
return Math.min(...e.x.filter(
|
|
799
|
+
function Ci(e) {
|
|
800
|
+
return Math.min(...e.x.filter(Oi));
|
|
802
801
|
}
|
|
803
|
-
function
|
|
802
|
+
function Oi(e) {
|
|
804
803
|
return e !== null;
|
|
805
804
|
}
|
|
806
|
-
function
|
|
807
|
-
return Math.min(...e.x.filter(
|
|
805
|
+
function Li(e) {
|
|
806
|
+
return Math.min(...e.x.filter($i));
|
|
808
807
|
}
|
|
809
|
-
function
|
|
808
|
+
function $i(e) {
|
|
810
809
|
return e !== null;
|
|
811
810
|
}
|
|
812
|
-
function
|
|
813
|
-
return Math.max(...e.x.filter(
|
|
811
|
+
function Ii(e) {
|
|
812
|
+
return Math.max(...e.x.filter(Vi));
|
|
814
813
|
}
|
|
815
|
-
function
|
|
814
|
+
function Vi(e) {
|
|
816
815
|
return e !== null;
|
|
817
816
|
}
|
|
818
|
-
function
|
|
819
|
-
return Math.max(...e.x.filter(
|
|
817
|
+
function ji(e) {
|
|
818
|
+
return Math.max(...e.x.filter(Di));
|
|
820
819
|
}
|
|
821
|
-
function
|
|
820
|
+
function Di(e) {
|
|
822
821
|
return e !== null;
|
|
823
822
|
}
|
|
824
|
-
function
|
|
823
|
+
function Ni(e) {
|
|
825
824
|
return e == null;
|
|
826
825
|
}
|
|
827
|
-
function
|
|
826
|
+
function Ti(e) {
|
|
828
827
|
return e == null;
|
|
829
828
|
}
|
|
830
|
-
function
|
|
831
|
-
return
|
|
829
|
+
function Si(e) {
|
|
830
|
+
return Gt(e.x[e.x.length - 1]) || Gt(e.x[0]) ? -1 / 0 : e.x[e.x.length - 1] - e.x[0];
|
|
832
831
|
}
|
|
833
|
-
function
|
|
832
|
+
function Fi(e) {
|
|
834
833
|
return e == null;
|
|
835
834
|
}
|
|
836
|
-
function
|
|
835
|
+
function Wi(e) {
|
|
837
836
|
return e !== void 0;
|
|
838
837
|
}
|
|
839
|
-
function
|
|
838
|
+
function Pi(e) {
|
|
840
839
|
return e !== void 0;
|
|
841
840
|
}
|
|
842
|
-
function
|
|
841
|
+
function Bi(e) {
|
|
843
842
|
return e.data;
|
|
844
843
|
}
|
|
845
|
-
function
|
|
844
|
+
function Xi(e) {
|
|
846
845
|
return e !== void 0;
|
|
847
846
|
}
|
|
848
|
-
function
|
|
847
|
+
function Yi(e) {
|
|
849
848
|
return e.data;
|
|
850
849
|
}
|
|
851
|
-
function
|
|
850
|
+
function Ei(e, t) {
|
|
852
851
|
return e - t;
|
|
853
852
|
}
|
|
854
|
-
function
|
|
853
|
+
function Gi(e) {
|
|
855
854
|
return e.date;
|
|
856
855
|
}
|
|
857
856
|
export {
|
|
858
|
-
|
|
857
|
+
va as DumbbellChart
|
|
859
858
|
};
|
|
860
859
|
//# sourceMappingURL=DumbbellChart.js.map
|