@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/ButterflyChart.js
CHANGED
|
@@ -1,510 +1,508 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { g as
|
|
4
|
-
import { f as
|
|
5
|
-
import { i as
|
|
6
|
-
import { n as
|
|
7
|
-
import { T as
|
|
8
|
-
import { X as
|
|
9
|
-
import { A as
|
|
10
|
-
import { Y as
|
|
11
|
-
import { R as
|
|
12
|
-
import { D as
|
|
13
|
-
import { b as
|
|
14
|
-
import { a as
|
|
15
|
-
import { m as
|
|
16
|
-
import { u as
|
|
17
|
-
import { A as
|
|
18
|
-
import { GraphFooter as
|
|
19
|
-
import { GraphHeader as
|
|
20
|
-
import { ColorLegend as
|
|
21
|
-
import { Colors as
|
|
22
|
-
import { E as
|
|
23
|
-
import { P as
|
|
24
|
-
import { c as
|
|
25
|
-
import { c as
|
|
26
|
-
import { a as
|
|
27
|
-
function
|
|
28
|
-
const t =
|
|
1
|
+
import { c as ve, j as i, m as re } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { useRef as de, useState as It, useEffect as fe } from "react";
|
|
3
|
+
import { g as we, N as Ae } from "./getSliderMarks-X-_goqH9.js";
|
|
4
|
+
import { f as je, p as Be } from "./parse-Dv4of-PN.js";
|
|
5
|
+
import { i as ue } from "./index-Bwrro8-q.js";
|
|
6
|
+
import { n as xe } from "./numberFormattingFunction-BUUV_luR.js";
|
|
7
|
+
import { T as Le } from "./Tooltip-3EYDVa3w.js";
|
|
8
|
+
import { X as he } from "./XTicksAndGridLines-CkYwVshF.js";
|
|
9
|
+
import { A as pe } from "./Axis-CNZYWzH0.js";
|
|
10
|
+
import { Y as Me } from "./YAxesLabels-hWEUCTvs.js";
|
|
11
|
+
import { R as ge } from "./ReferenceLine-D41VuUhE.js";
|
|
12
|
+
import { D as Ce } from "./DetailsModal-GqEbGHY2.js";
|
|
13
|
+
import { b as $e } from "./band-DYty33LD.js";
|
|
14
|
+
import { a as ye } from "./linear-DNXM5Pdl.js";
|
|
15
|
+
import { m as Ft } from "./proxy-BsxtcZKa.js";
|
|
16
|
+
import { u as ke } from "./use-in-view-KOXq5Kmc.js";
|
|
17
|
+
import { A as ce } from "./index-Cv_5q6Rb.js";
|
|
18
|
+
import { GraphFooter as Ve } from "./GraphFooter.js";
|
|
19
|
+
import { GraphHeader as Ne } from "./GraphHeader.js";
|
|
20
|
+
import { ColorLegend as Oe } from "./ColorLegend.js";
|
|
21
|
+
import { Colors as be } from "./Colors.js";
|
|
22
|
+
import { E as De } from "./EmptyState-CaxXCkiN.js";
|
|
23
|
+
import { P as Te, e as Se } from "./index-ApTBN0kp.js";
|
|
24
|
+
import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
25
|
+
import { c as Fe } from "./ensureCompleteData-CDIukSG6.js";
|
|
26
|
+
import { a as Ie, G as Ge } from "./GraphContainer-B8ZqOzKI.js";
|
|
27
|
+
function Re(a) {
|
|
28
|
+
const t = ve.c(143), {
|
|
29
29
|
data: l,
|
|
30
|
-
width:
|
|
31
|
-
height:
|
|
32
|
-
barColors:
|
|
33
|
-
centerGap:
|
|
34
|
-
refValues:
|
|
35
|
-
maxValue:
|
|
36
|
-
minValue:
|
|
37
|
-
showValues:
|
|
38
|
-
axisTitles:
|
|
39
|
-
rightMargin:
|
|
40
|
-
leftMargin:
|
|
41
|
-
topMargin:
|
|
42
|
-
bottomMargin:
|
|
43
|
-
tooltip:
|
|
44
|
-
onSeriesMouseOver:
|
|
45
|
-
barPadding:
|
|
46
|
-
truncateBy:
|
|
47
|
-
onSeriesMouseClick:
|
|
48
|
-
showTicks:
|
|
49
|
-
suffix:
|
|
50
|
-
prefix:
|
|
51
|
-
resetSelectionOnDoubleClick:
|
|
52
|
-
detailsOnClick:
|
|
30
|
+
width: $,
|
|
31
|
+
height: A,
|
|
32
|
+
barColors: f,
|
|
33
|
+
centerGap: j,
|
|
34
|
+
refValues: h,
|
|
35
|
+
maxValue: mt,
|
|
36
|
+
minValue: jt,
|
|
37
|
+
showValues: dt,
|
|
38
|
+
axisTitles: ft,
|
|
39
|
+
rightMargin: Qt,
|
|
40
|
+
leftMargin: _t,
|
|
41
|
+
topMargin: J,
|
|
42
|
+
bottomMargin: te,
|
|
43
|
+
tooltip: Gt,
|
|
44
|
+
onSeriesMouseOver: ut,
|
|
45
|
+
barPadding: Rt,
|
|
46
|
+
truncateBy: Bt,
|
|
47
|
+
onSeriesMouseClick: D,
|
|
48
|
+
showTicks: Lt,
|
|
49
|
+
suffix: xt,
|
|
50
|
+
prefix: ht,
|
|
51
|
+
resetSelectionOnDoubleClick: Mt,
|
|
52
|
+
detailsOnClick: F,
|
|
53
53
|
styles: n,
|
|
54
54
|
classNames: s,
|
|
55
|
-
noOfTicks:
|
|
55
|
+
noOfTicks: k,
|
|
56
56
|
animate: d,
|
|
57
|
-
precision:
|
|
58
|
-
customLayers:
|
|
59
|
-
minValueLeftBar:
|
|
60
|
-
minValueRightBar:
|
|
61
|
-
naLabel:
|
|
62
|
-
hideAxisLine:
|
|
63
|
-
locale:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
precision: pt,
|
|
58
|
+
customLayers: I,
|
|
59
|
+
minValueLeftBar: G,
|
|
60
|
+
minValueRightBar: R,
|
|
61
|
+
naLabel: Pt,
|
|
62
|
+
hideAxisLine: Ct,
|
|
63
|
+
locale: gt,
|
|
64
|
+
padZeros: yt
|
|
65
|
+
} = a, ee = de(null);
|
|
66
|
+
let Et;
|
|
67
|
+
t[0] !== d.amount || t[1] !== d.once ? (Et = {
|
|
67
68
|
once: d.once,
|
|
68
69
|
amount: d.amount
|
|
69
|
-
}, t[0] = d.amount, t[1] = d.once, t[2] =
|
|
70
|
-
const V =
|
|
71
|
-
let
|
|
72
|
-
t[3] !==
|
|
73
|
-
top:
|
|
74
|
-
bottom:
|
|
75
|
-
left:
|
|
76
|
-
right:
|
|
77
|
-
}, t[3] =
|
|
78
|
-
const m =
|
|
79
|
-
let
|
|
80
|
-
if (t[8] !== d || t[9] !==
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
const
|
|
84
|
-
let
|
|
85
|
-
t[
|
|
86
|
-
axis:
|
|
87
|
-
}, t[
|
|
88
|
-
const
|
|
89
|
-
let
|
|
90
|
-
t[
|
|
91
|
-
axis:
|
|
92
|
-
}, t[
|
|
93
|
-
|
|
70
|
+
}, t[0] = d.amount, t[1] = d.once, t[2] = Et) : Et = t[2];
|
|
71
|
+
const V = ke(ee, Et), [u, c] = It(void 0), [P, $t] = It(void 0), [bt, E] = It(void 0), [Xt, vt] = It(void 0);
|
|
72
|
+
let p;
|
|
73
|
+
t[3] !== te || t[4] !== _t || t[5] !== Qt || t[6] !== J ? (p = {
|
|
74
|
+
top: J,
|
|
75
|
+
bottom: te,
|
|
76
|
+
left: _t,
|
|
77
|
+
right: Qt
|
|
78
|
+
}, t[3] = te, t[4] = _t, t[5] = Qt, t[6] = J, t[7] = p) : p = t[7];
|
|
79
|
+
const m = p, B = $ - m.left - m.right, L = A - m.top - m.bottom;
|
|
80
|
+
let K, Q, _, tt, N, O, et, it, at, T, X, st, lt, ot;
|
|
81
|
+
if (t[8] !== d || t[9] !== f[0] || t[10] !== f[1] || t[11] !== Rt || t[12] !== j || t[13] !== s?.graphObjectValues || t[14] !== s?.xAxis?.gridLines || t[15] !== s?.xAxis?.labels || t[16] !== s?.yAxis?.axis || t[17] !== s?.yAxis?.labels || t[18] !== I || t[19] !== l || t[20] !== F || t[21] !== L || t[22] !== B || t[23] !== A || t[24] !== Ct || t[25] !== V || t[26] !== gt || t[27] !== m.bottom || t[28] !== m.left || t[29] !== m.top || t[30] !== mt || t[31] !== jt || t[32] !== G || t[33] !== R || t[34] !== P || t[35] !== Pt || t[36] !== k || t[37] !== D || t[38] !== ut || t[39] !== yt || t[40] !== pt || t[41] !== ht || t[42] !== h || t[43] !== Mt || t[44] !== Lt || t[45] !== dt || t[46] !== n?.graphObjectValues || t[47] !== n?.xAxis?.gridLines || t[48] !== n?.xAxis?.labels || t[49] !== n?.yAxis?.axis || t[50] !== n?.yAxis?.labels || t[51] !== xt || t[52] !== J || t[53] !== Bt || t[54] !== $) {
|
|
82
|
+
const M = l.map(Ue), C = $e().domain(M.map(qe)).range([L, 0]).paddingInner(Rt), g = ye().domain([jt, mt]).range([0, (B - j) / 2]).nice(), oe = g.ticks(k), x = ye().domain([jt, mt]).range([(B - j) / 2, 0]).nice(), qt = x.ticks(k);
|
|
83
|
+
_ = Ft.svg, lt = `${$}px`, ot = `${A}px`, tt = `0 0 ${$} ${A}`, N = "ltr", O = ee, at = `translate(${m.left},${m.top})`, t[69] !== I ? (T = I.filter(ze).map(Ze), t[69] = I, t[70] = T) : T = t[70];
|
|
84
|
+
const Dt = s?.yAxis?.axis;
|
|
85
|
+
let wt;
|
|
86
|
+
t[71] !== Dt ? (wt = {
|
|
87
|
+
axis: Dt
|
|
88
|
+
}, t[71] = Dt, t[72] = wt) : wt = t[72];
|
|
89
|
+
const Ut = n?.yAxis?.axis;
|
|
90
|
+
let At;
|
|
91
|
+
t[73] !== Ut ? (At = {
|
|
92
|
+
axis: Ut
|
|
93
|
+
}, t[73] = Ut, t[74] = At) : At = t[74], X = /* @__PURE__ */ i.jsxs("g", { transform: "translate(0,0)", children: [
|
|
94
|
+
Lt ? /* @__PURE__ */ i.jsx(he, { values: qt.filter(We), x: qt.filter(Ye).map((e) => x(e)), y1: 0 - J, y2: L + m.bottom, styles: {
|
|
94
95
|
gridLines: n?.xAxis?.gridLines,
|
|
95
96
|
labels: n?.xAxis?.labels
|
|
96
97
|
}, classNames: {
|
|
97
98
|
gridLines: s?.xAxis?.gridLines,
|
|
98
99
|
labels: s?.xAxis?.labels
|
|
99
|
-
}, suffix:
|
|
100
|
-
/* @__PURE__ */ i.jsxs(
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
}, suffix: xt, prefix: ht, labelType: "secondary", showGridLines: !0, leftLabel: !0, precision: pt, padZeros: yt, locale: gt }) : null,
|
|
101
|
+
/* @__PURE__ */ i.jsxs(ce, { children: [
|
|
102
|
+
M.map((e, y) => /* @__PURE__ */ i.jsxs(Ft.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (b) => {
|
|
103
|
+
c(e), vt(b.clientY), E(b.clientX), ut?.(e);
|
|
103
104
|
}, onClick: () => {
|
|
104
|
-
(
|
|
105
|
-
}, onMouseMove: (
|
|
106
|
-
|
|
105
|
+
(D || F) && (ue(P, e) && Mt ? ($t(void 0), D?.(void 0)) : ($t(e), D?.(e)));
|
|
106
|
+
}, onMouseMove: (b) => {
|
|
107
|
+
c(e), vt(b.clientY), E(b.clientX);
|
|
107
108
|
}, onMouseLeave: () => {
|
|
108
|
-
|
|
109
|
+
c(void 0), E(void 0), vt(void 0), ut?.(void 0);
|
|
109
110
|
}, children: [
|
|
110
|
-
e.leftBar ? /* @__PURE__ */ i.jsx(
|
|
111
|
-
fill:
|
|
112
|
-
}, height:
|
|
111
|
+
e.leftBar ? /* @__PURE__ */ i.jsx(Ft.rect, { y: C(`${y}`), style: {
|
|
112
|
+
fill: f[0]
|
|
113
|
+
}, height: C.bandwidth(), variants: {
|
|
113
114
|
initial: {
|
|
114
|
-
x:
|
|
115
|
+
x: x(0),
|
|
115
116
|
width: 0
|
|
116
117
|
},
|
|
117
118
|
whileInView: {
|
|
118
|
-
x: e.leftBar < 0 ?
|
|
119
|
-
width: e.leftBar < 0 ?
|
|
119
|
+
x: e.leftBar < 0 ? x(0) : x(e.leftBar),
|
|
120
|
+
width: e.leftBar < 0 ? x(e.leftBar) - x(0) : x(0) - x(e.leftBar),
|
|
120
121
|
transition: {
|
|
121
122
|
duration: d.duration
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
}, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
|
|
125
|
-
x:
|
|
126
|
+
x: x(0),
|
|
126
127
|
width: 0,
|
|
127
128
|
transition: {
|
|
128
129
|
duration: d.duration
|
|
129
130
|
}
|
|
130
131
|
} }) : null,
|
|
131
|
-
|
|
132
|
+
dt ? /* @__PURE__ */ i.jsx(Ft.text, { y: C(`${y}`) + C.bandwidth() / 2, style: {
|
|
132
133
|
textAnchor: e.leftBar && e.leftBar > 0 ? "end" : "start",
|
|
133
134
|
...n?.graphObjectValues || {}
|
|
134
|
-
}, dx: e.leftBar && e.leftBar > 0 ? -5 : 5, dy: "0.33em", className:
|
|
135
|
+
}, dx: e.leftBar && e.leftBar > 0 ? -5 : 5, dy: "0.33em", className: re("graph-value text-sm", s?.graphObjectValues), exit: {
|
|
135
136
|
opacity: 0,
|
|
136
137
|
transition: {
|
|
137
138
|
duration: d.duration
|
|
138
139
|
}
|
|
139
140
|
}, variants: {
|
|
140
141
|
initial: {
|
|
141
|
-
x:
|
|
142
|
+
x: x(0),
|
|
142
143
|
opacity: 0,
|
|
143
|
-
fill:
|
|
144
|
+
fill: f[0]
|
|
144
145
|
},
|
|
145
146
|
whileInView: {
|
|
146
|
-
x: e.leftBar ?
|
|
147
|
+
x: e.leftBar ? x(e.leftBar) : x(G < 0 ? 0 : G),
|
|
147
148
|
opacity: 1,
|
|
148
|
-
fill:
|
|
149
|
+
fill: f[0],
|
|
149
150
|
transition: {
|
|
150
151
|
duration: d.duration
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
|
-
}, initial: "initial", animate: V ? "whileInView" : "initial", children:
|
|
154
|
+
}, initial: "initial", animate: V ? "whileInView" : "initial", children: xe(e.leftBar, Pt, pt, ht, xt, gt, yt) }) : null
|
|
154
155
|
] }, e.label)),
|
|
155
|
-
/* @__PURE__ */ i.jsx(
|
|
156
|
-
|
|
156
|
+
/* @__PURE__ */ i.jsx(pe, { hideAxisLine: Ct, y1: -2.5, y2: L + m.bottom, x1: x(G < 0 ? 0 : G), x2: x(G < 0 ? 0 : G), classNames: wt, styles: At }),
|
|
157
|
+
h ? /* @__PURE__ */ i.jsx(i.Fragment, { children: h.map((e, y) => /* @__PURE__ */ i.jsx(ge, { text: e.text, color: e.color, x: x(e.value), y1: 0 - m.top, y2: L + m.bottom, textSide: "left", classNames: e.classNames, styles: e.styles, animate: d, isInView: V }, y)) }) : null
|
|
157
158
|
] })
|
|
158
159
|
] });
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
t[
|
|
162
|
-
axis:
|
|
163
|
-
}, t[
|
|
164
|
-
const
|
|
165
|
-
let
|
|
166
|
-
t[
|
|
167
|
-
axis:
|
|
168
|
-
}, t[
|
|
169
|
-
|
|
160
|
+
const Tt = s?.yAxis?.axis;
|
|
161
|
+
let St;
|
|
162
|
+
t[75] !== Tt ? (St = {
|
|
163
|
+
axis: Tt
|
|
164
|
+
}, t[75] = Tt, t[76] = St) : St = t[76];
|
|
165
|
+
const Jt = n?.yAxis?.axis;
|
|
166
|
+
let U;
|
|
167
|
+
t[77] !== Jt ? (U = {
|
|
168
|
+
axis: Jt
|
|
169
|
+
}, t[77] = Jt, t[78] = U) : U = t[78], st = /* @__PURE__ */ i.jsxs("g", { transform: `translate(${(B + j) / 2},0)`, children: [
|
|
170
|
+
Lt ? /* @__PURE__ */ i.jsx(he, { values: oe.filter(He), x: oe.filter(Xe).map((e) => g(e)), y1: 0 - J, y2: L + m.bottom, styles: {
|
|
170
171
|
gridLines: n?.xAxis?.gridLines,
|
|
171
172
|
labels: n?.xAxis?.labels
|
|
172
173
|
}, classNames: {
|
|
173
174
|
gridLines: s?.xAxis?.gridLines,
|
|
174
175
|
labels: s?.xAxis?.labels
|
|
175
|
-
}, suffix:
|
|
176
|
-
/* @__PURE__ */ i.jsxs(
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
}, suffix: xt, prefix: ht, labelType: "secondary", showGridLines: !0, precision: pt, padZeros: yt, locale: gt }) : null,
|
|
177
|
+
/* @__PURE__ */ i.jsxs(ce, { children: [
|
|
178
|
+
M.map((e, y) => /* @__PURE__ */ i.jsxs(Ft.g, { className: "undp-viz-g-with-hover", opacity: 0.85, onMouseEnter: (b) => {
|
|
179
|
+
c(e), vt(b.clientY), E(b.clientX), ut?.(e);
|
|
179
180
|
}, onClick: () => {
|
|
180
|
-
(
|
|
181
|
-
}, onMouseMove: (
|
|
182
|
-
|
|
181
|
+
(D || F) && (ue(P, e) && Mt ? ($t(void 0), D?.(void 0)) : ($t(e), D?.(e)));
|
|
182
|
+
}, onMouseMove: (b) => {
|
|
183
|
+
c(e), vt(b.clientY), E(b.clientX);
|
|
183
184
|
}, onMouseLeave: () => {
|
|
184
|
-
|
|
185
|
+
c(void 0), E(void 0), vt(void 0), ut?.(void 0);
|
|
185
186
|
}, children: [
|
|
186
|
-
e.rightBar ? /* @__PURE__ */ i.jsx(
|
|
187
|
-
fill:
|
|
188
|
-
}, height:
|
|
189
|
-
x:
|
|
187
|
+
e.rightBar ? /* @__PURE__ */ i.jsx(Ft.rect, { y: C(`${y}`), style: {
|
|
188
|
+
fill: f[1]
|
|
189
|
+
}, height: C.bandwidth(), exit: {
|
|
190
|
+
x: g(0),
|
|
190
191
|
width: 0,
|
|
191
192
|
transition: {
|
|
192
193
|
duration: d.duration
|
|
193
194
|
}
|
|
194
195
|
}, variants: {
|
|
195
196
|
initial: {
|
|
196
|
-
x:
|
|
197
|
+
x: g(0),
|
|
197
198
|
width: 0
|
|
198
199
|
},
|
|
199
200
|
whileInView: {
|
|
200
|
-
x: e.rightBar >= 0 ?
|
|
201
|
-
width: e.rightBar >= 0 ?
|
|
201
|
+
x: e.rightBar >= 0 ? g(0) : g(e.rightBar),
|
|
202
|
+
width: e.rightBar >= 0 ? g(e.rightBar) - g(0) : g(0) - g(e.rightBar),
|
|
202
203
|
transition: {
|
|
203
204
|
duration: d.duration
|
|
204
205
|
}
|
|
205
206
|
}
|
|
206
207
|
}, initial: "initial", animate: V ? "whileInView" : "initial" }) : null,
|
|
207
|
-
|
|
208
|
+
dt ? /* @__PURE__ */ i.jsx(Ft.text, { y: C(`${y}`) + C.bandwidth() / 2, style: {
|
|
208
209
|
textAnchor: e.rightBar && e.rightBar < 0 ? "end" : "start",
|
|
209
210
|
...n?.graphObjectValues || {}
|
|
210
|
-
}, className:
|
|
211
|
+
}, className: re("graph-value text-sm", s?.graphObjectValues), dx: e.rightBar && e.rightBar < 0 ? -5 : 5, dy: "0.33em", exit: {
|
|
211
212
|
opacity: 0,
|
|
212
213
|
transition: {
|
|
213
214
|
duration: d.duration
|
|
214
215
|
}
|
|
215
216
|
}, variants: {
|
|
216
217
|
initial: {
|
|
217
|
-
x:
|
|
218
|
+
x: g(0),
|
|
218
219
|
opacity: 0,
|
|
219
|
-
fill:
|
|
220
|
+
fill: f[1]
|
|
220
221
|
},
|
|
221
222
|
whileInView: {
|
|
222
|
-
x: e.rightBar ?
|
|
223
|
+
x: e.rightBar ? g(e.rightBar) : g(R < 0 ? 0 : R),
|
|
223
224
|
opacity: 1,
|
|
224
|
-
fill:
|
|
225
|
+
fill: f[1],
|
|
225
226
|
transition: {
|
|
226
227
|
duration: d.duration
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
|
-
}, initial: "initial", animate: V ? "whileInView" : "initial", children:
|
|
230
|
-
] },
|
|
231
|
-
/* @__PURE__ */ i.jsx(
|
|
232
|
-
|
|
230
|
+
}, initial: "initial", animate: V ? "whileInView" : "initial", children: xe(e.rightBar, Pt, pt, ht, xt, gt, yt) }) : null
|
|
231
|
+
] }, y)),
|
|
232
|
+
/* @__PURE__ */ i.jsx(pe, { hideAxisLine: Ct, y1: -2.5, y2: L + m.bottom, x1: g(R < 0 ? 0 : R), x2: g(R < 0 ? 0 : R), classNames: St, styles: U }),
|
|
233
|
+
h ? /* @__PURE__ */ i.jsx(i.Fragment, { children: h.map((e, y) => /* @__PURE__ */ i.jsx(ge, { text: e.text, color: e.color, x: g(e.value), y1: 0 - m.top, y2: L + m.bottom, textSide: "right", classNames: e.classNames, styles: e.styles, animate: d, isInView: V }, y)) }) : null
|
|
233
234
|
] })
|
|
234
|
-
] }),
|
|
235
|
+
] }), Q = ce, K = Ft.g, et = `translate(${B / 2},0)`, it = M.map((e, y) => /* @__PURE__ */ i.jsx(Me, { value: `${e.label}`.length < Bt ? `${e.label}` : `${`${e.label}`.substring(0, Bt)}...`, y: C(`${e.id}`), x: 0 - j / 2, width: j, height: C.bandwidth(), alignment: "center", style: n?.yAxis?.labels, className: s?.yAxis?.labels, animate: d, isInView: V }, y)), t[8] = d, t[9] = f[0], t[10] = f[1], t[11] = Rt, t[12] = j, t[13] = s?.graphObjectValues, t[14] = s?.xAxis?.gridLines, t[15] = s?.xAxis?.labels, t[16] = s?.yAxis?.axis, t[17] = s?.yAxis?.labels, t[18] = I, t[19] = l, t[20] = F, t[21] = L, t[22] = B, t[23] = A, t[24] = Ct, t[25] = V, t[26] = gt, t[27] = m.bottom, t[28] = m.left, t[29] = m.top, t[30] = mt, t[31] = jt, t[32] = G, t[33] = R, t[34] = P, t[35] = Pt, t[36] = k, t[37] = D, t[38] = ut, t[39] = yt, t[40] = pt, t[41] = ht, t[42] = h, t[43] = Mt, t[44] = Lt, t[45] = dt, t[46] = n?.graphObjectValues, t[47] = n?.xAxis?.gridLines, t[48] = n?.xAxis?.labels, t[49] = n?.yAxis?.axis, t[50] = n?.yAxis?.labels, t[51] = xt, t[52] = J, t[53] = Bt, t[54] = $, t[55] = K, t[56] = Q, t[57] = _, t[58] = tt, t[59] = N, t[60] = O, t[61] = et, t[62] = it, t[63] = at, t[64] = T, t[65] = X, t[66] = st, t[67] = lt, t[68] = ot;
|
|
235
236
|
} else
|
|
236
|
-
|
|
237
|
-
let
|
|
238
|
-
t[
|
|
239
|
-
let
|
|
240
|
-
t[
|
|
241
|
-
const
|
|
242
|
-
let
|
|
243
|
-
t[
|
|
244
|
-
fill:
|
|
237
|
+
K = t[55], Q = t[56], _ = t[57], tt = t[58], N = t[59], O = t[60], et = t[61], it = t[62], at = t[63], T = t[64], X = t[65], st = t[66], lt = t[67], ot = t[68];
|
|
238
|
+
let H;
|
|
239
|
+
t[79] !== K || t[80] !== et || t[81] !== it ? (H = /* @__PURE__ */ i.jsx(K, { transform: et, children: it }), t[79] = K, t[80] = et, t[81] = it, t[82] = H) : H = t[82];
|
|
240
|
+
let Y;
|
|
241
|
+
t[83] !== Q || t[84] !== H ? (Y = /* @__PURE__ */ i.jsx(Q, { children: H }), t[83] = Q, t[84] = H, t[85] = Y) : Y = t[85];
|
|
242
|
+
const Ht = `translate(0,${L})`, Yt = n?.yAxis?.title;
|
|
243
|
+
let nt;
|
|
244
|
+
t[86] !== f[0] || t[87] !== Yt ? (nt = {
|
|
245
|
+
fill: f[0],
|
|
245
246
|
textAnchor: "end",
|
|
246
|
-
...
|
|
247
|
-
}, t[
|
|
248
|
-
const
|
|
249
|
-
let
|
|
250
|
-
t[
|
|
251
|
-
const kt =
|
|
252
|
-
let
|
|
253
|
-
t[
|
|
254
|
-
const
|
|
255
|
-
let
|
|
256
|
-
t[
|
|
257
|
-
fill:
|
|
247
|
+
...Yt
|
|
248
|
+
}, t[86] = f[0], t[87] = Yt, t[88] = nt) : nt = t[88];
|
|
249
|
+
const Wt = s?.yAxis?.title;
|
|
250
|
+
let rt;
|
|
251
|
+
t[89] !== Wt ? (rt = re("text-base", Wt), t[89] = Wt, t[90] = rt) : rt = t[90];
|
|
252
|
+
const kt = B / 2 - j / 2;
|
|
253
|
+
let W;
|
|
254
|
+
t[91] !== ft[0] || t[92] !== nt || t[93] !== rt || t[94] !== kt ? (W = /* @__PURE__ */ i.jsx("text", { style: nt, className: rt, x: kt, y: 0, dx: -5, dy: 20, children: ft[0] }), t[91] = ft[0], t[92] = nt, t[93] = rt, t[94] = kt, t[95] = W) : W = t[95];
|
|
255
|
+
const Zt = n?.yAxis?.title;
|
|
256
|
+
let Z;
|
|
257
|
+
t[96] !== f[1] || t[97] !== Zt ? (Z = {
|
|
258
|
+
fill: f[1],
|
|
258
259
|
textAnchor: "start",
|
|
259
|
-
...
|
|
260
|
-
}, t[
|
|
261
|
-
const
|
|
262
|
-
let
|
|
263
|
-
t[
|
|
264
|
-
const
|
|
265
|
-
let
|
|
266
|
-
t[
|
|
267
|
-
let
|
|
268
|
-
t[
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
] }), t[
|
|
272
|
-
let
|
|
273
|
-
t[
|
|
274
|
-
let X;
|
|
275
|
-
t[111] !== _ || t[112] !== E || t[113] !== ot || t[114] !== C || t[115] !== w || t[116] !== J || t[117] !== K ? (X = /* @__PURE__ */ i.jsxs("g", { transform: C, children: [
|
|
276
|
-
w,
|
|
277
|
-
J,
|
|
278
|
-
K,
|
|
279
|
-
_,
|
|
280
|
-
E,
|
|
281
|
-
ot
|
|
282
|
-
] }), t[111] = _, t[112] = E, t[113] = ot, t[114] = C, t[115] = w, t[116] = J, t[117] = K, t[118] = X) : X = t[118];
|
|
283
|
-
let o;
|
|
284
|
-
t[119] !== M || t[120] !== Y || t[121] !== W || t[122] !== z || t[123] !== X || t[124] !== Q || t[125] !== Z ? (o = /* @__PURE__ */ i.jsx(M, { width: Q, height: Z, viewBox: Y, direction: W, ref: z, children: X }), t[119] = M, t[120] = Y, t[121] = W, t[122] = z, t[123] = X, t[124] = Q, t[125] = Z, t[126] = o) : o = t[126];
|
|
285
|
-
let lt;
|
|
286
|
-
t[127] !== s?.tooltip || t[128] !== f || t[129] !== Et || t[130] !== $t || t[131] !== n?.tooltip || t[132] !== Ft ? (lt = $t && Ft && f && Et ? /* @__PURE__ */ i.jsx(Oe, { data: $t, body: Ft, xPos: f, yPos: Et, backgroundStyle: n?.tooltip, className: s?.tooltip }) : null, t[127] = s?.tooltip, t[128] = f, t[129] = Et, t[130] = $t, t[131] = n?.tooltip, t[132] = Ft, t[133] = lt) : lt = t[133];
|
|
287
|
-
let nt;
|
|
288
|
-
t[134] !== s?.modal || t[135] !== D || t[136] !== N ? (nt = D && N !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: D, data: N, setData: x, className: s?.modal }) : null, t[134] = s?.modal, t[135] = D, t[136] = N, t[137] = nt) : nt = t[137];
|
|
260
|
+
...Zt
|
|
261
|
+
}, t[96] = f[1], t[97] = Zt, t[98] = Z) : Z = t[98];
|
|
262
|
+
const o = s?.yAxis?.title;
|
|
263
|
+
let ct;
|
|
264
|
+
t[99] !== o ? (ct = re("text-base", o), t[99] = o, t[100] = ct) : ct = t[100];
|
|
265
|
+
const zt = B / 2 + j / 2;
|
|
266
|
+
let z;
|
|
267
|
+
t[101] !== ft[1] || t[102] !== Z || t[103] !== ct || t[104] !== zt ? (z = /* @__PURE__ */ i.jsx("text", { style: Z, className: ct, x: zt, y: 0, dx: 5, dy: 20, children: ft[1] }), t[101] = ft[1], t[102] = Z, t[103] = ct, t[104] = zt, t[105] = z) : z = t[105];
|
|
268
|
+
let Vt;
|
|
269
|
+
t[106] !== Ht || t[107] !== W || t[108] !== z ? (Vt = /* @__PURE__ */ i.jsxs("g", { transform: Ht, children: [
|
|
270
|
+
W,
|
|
271
|
+
z
|
|
272
|
+
] }), t[106] = Ht, t[107] = W, t[108] = z, t[109] = Vt) : Vt = t[109];
|
|
273
|
+
let q;
|
|
274
|
+
t[110] !== I ? (q = I.filter(Ee).map(Pe), t[110] = I, t[111] = q) : q = t[111];
|
|
289
275
|
let Nt;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
276
|
+
t[112] !== Y || t[113] !== Vt || t[114] !== q || t[115] !== at || t[116] !== T || t[117] !== X || t[118] !== st ? (Nt = /* @__PURE__ */ i.jsxs("g", { transform: at, children: [
|
|
277
|
+
T,
|
|
278
|
+
X,
|
|
279
|
+
st,
|
|
280
|
+
Y,
|
|
281
|
+
Vt,
|
|
282
|
+
q
|
|
283
|
+
] }), t[112] = Y, t[113] = Vt, t[114] = q, t[115] = at, t[116] = T, t[117] = X, t[118] = st, t[119] = Nt) : Nt = t[119];
|
|
284
|
+
let w;
|
|
285
|
+
t[120] !== _ || t[121] !== tt || t[122] !== N || t[123] !== O || t[124] !== Nt || t[125] !== lt || t[126] !== ot ? (w = /* @__PURE__ */ i.jsx(_, { width: lt, height: ot, viewBox: tt, direction: N, ref: O, children: Nt }), t[120] = _, t[121] = tt, t[122] = N, t[123] = O, t[124] = Nt, t[125] = lt, t[126] = ot, t[127] = w) : w = t[127];
|
|
286
|
+
let Ot;
|
|
287
|
+
t[128] !== s?.tooltip || t[129] !== bt || t[130] !== Xt || t[131] !== u || t[132] !== n?.tooltip || t[133] !== Gt ? (Ot = u && Gt && bt && Xt ? /* @__PURE__ */ i.jsx(Le, { data: u, body: Gt, xPos: bt, yPos: Xt, backgroundStyle: n?.tooltip, className: s?.tooltip }) : null, t[128] = s?.tooltip, t[129] = bt, t[130] = Xt, t[131] = u, t[132] = n?.tooltip, t[133] = Gt, t[134] = Ot) : Ot = t[134];
|
|
288
|
+
let S;
|
|
289
|
+
t[135] !== s?.modal || t[136] !== F || t[137] !== P ? (S = F && P !== void 0 ? /* @__PURE__ */ i.jsx(Ce, { body: F, data: P, setData: $t, className: s?.modal }) : null, t[135] = s?.modal, t[136] = F, t[137] = P, t[138] = S) : S = t[138];
|
|
290
|
+
let r;
|
|
291
|
+
return t[139] !== w || t[140] !== Ot || t[141] !== S ? (r = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
292
|
+
w,
|
|
293
|
+
Ot,
|
|
294
|
+
S
|
|
295
|
+
] }), t[139] = w, t[140] = Ot, t[141] = S, t[142] = r) : r = t[142], r;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function Pe(a) {
|
|
297
298
|
return a.layer;
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function Ee(a) {
|
|
300
301
|
return a.position === "after";
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
+
function Xe(a) {
|
|
303
304
|
return a !== 0;
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
+
function He(a) {
|
|
306
307
|
return a !== 0;
|
|
307
308
|
}
|
|
308
|
-
function
|
|
309
|
+
function Ye(a) {
|
|
309
310
|
return a !== 0;
|
|
310
311
|
}
|
|
311
|
-
function
|
|
312
|
+
function We(a) {
|
|
312
313
|
return a !== 0;
|
|
313
314
|
}
|
|
314
|
-
function
|
|
315
|
+
function Ze(a) {
|
|
315
316
|
return a.layer;
|
|
316
317
|
}
|
|
317
|
-
function
|
|
318
|
+
function ze(a) {
|
|
318
319
|
return a.position === "before";
|
|
319
320
|
}
|
|
320
|
-
function
|
|
321
|
+
function qe(a) {
|
|
321
322
|
return `${a.id}`;
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function Ue(a, t) {
|
|
324
325
|
return {
|
|
325
326
|
...a,
|
|
326
327
|
id: `${t}`
|
|
327
328
|
};
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
-
const
|
|
330
|
+
function le(a, t, l, $) {
|
|
331
|
+
const A = a.map((h) => h[t]).filter((h) => !me(h)), f = me(l) ? Math.min(...A) >= 0 ? 0 : Math.min(...A) : l, j = me($) ? Math.max(...A) < 0 ? 0 : Math.max(...A) : $;
|
|
331
332
|
return {
|
|
332
|
-
min:
|
|
333
|
-
max:
|
|
333
|
+
min: f,
|
|
334
|
+
max: j
|
|
334
335
|
};
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
-
const t =
|
|
337
|
+
function ki(a) {
|
|
338
|
+
const t = ve.c(121), {
|
|
338
339
|
data: l,
|
|
339
|
-
graphTitle:
|
|
340
|
-
sources:
|
|
341
|
-
graphDescription:
|
|
342
|
-
height:
|
|
343
|
-
width:
|
|
344
|
-
footNote:
|
|
345
|
-
padding:
|
|
346
|
-
barColors:
|
|
347
|
-
backgroundColor:
|
|
348
|
-
leftMargin:
|
|
349
|
-
rightMargin:
|
|
350
|
-
topMargin:
|
|
351
|
-
bottomMargin:
|
|
352
|
-
rightBarTitle:
|
|
353
|
-
leftBarTitle:
|
|
354
|
-
tooltip:
|
|
355
|
-
relativeHeight:
|
|
356
|
-
onSeriesMouseOver:
|
|
357
|
-
graphID:
|
|
358
|
-
barPadding:
|
|
359
|
-
truncateBy:
|
|
360
|
-
onSeriesMouseClick:
|
|
361
|
-
centerGap:
|
|
340
|
+
graphTitle: $,
|
|
341
|
+
sources: A,
|
|
342
|
+
graphDescription: f,
|
|
343
|
+
height: j,
|
|
344
|
+
width: h,
|
|
345
|
+
footNote: mt,
|
|
346
|
+
padding: jt,
|
|
347
|
+
barColors: dt,
|
|
348
|
+
backgroundColor: ft,
|
|
349
|
+
leftMargin: Qt,
|
|
350
|
+
rightMargin: _t,
|
|
351
|
+
topMargin: J,
|
|
352
|
+
bottomMargin: te,
|
|
353
|
+
rightBarTitle: Gt,
|
|
354
|
+
leftBarTitle: ut,
|
|
355
|
+
tooltip: Rt,
|
|
356
|
+
relativeHeight: Bt,
|
|
357
|
+
onSeriesMouseOver: D,
|
|
358
|
+
graphID: Lt,
|
|
359
|
+
barPadding: xt,
|
|
360
|
+
truncateBy: ht,
|
|
361
|
+
onSeriesMouseClick: Mt,
|
|
362
|
+
centerGap: F,
|
|
362
363
|
showValues: n,
|
|
363
364
|
maxValue: s,
|
|
364
|
-
minValue:
|
|
365
|
+
minValue: k,
|
|
365
366
|
refValues: d,
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
naLabel: I,
|
|
387
|
-
hideAxisLine: L,
|
|
388
|
-
locale: bt
|
|
367
|
+
showTicks: pt,
|
|
368
|
+
showColorScale: I,
|
|
369
|
+
graphDownload: G,
|
|
370
|
+
dataDownload: R,
|
|
371
|
+
language: Pt,
|
|
372
|
+
colorLegendTitle: Ct,
|
|
373
|
+
minHeight: gt,
|
|
374
|
+
theme: yt,
|
|
375
|
+
ariaLabel: ee,
|
|
376
|
+
resetSelectionOnDoubleClick: Et,
|
|
377
|
+
detailsOnClick: V,
|
|
378
|
+
styles: u,
|
|
379
|
+
classNames: c,
|
|
380
|
+
noOfTicks: P,
|
|
381
|
+
animate: $t,
|
|
382
|
+
customLayers: bt,
|
|
383
|
+
timeline: E,
|
|
384
|
+
naLabel: Xt,
|
|
385
|
+
hideAxisLine: vt,
|
|
386
|
+
numberDisplayOptions: p
|
|
389
387
|
} = a;
|
|
390
|
-
let
|
|
391
|
-
t[0] !==
|
|
392
|
-
const
|
|
393
|
-
let R;
|
|
394
|
-
t[2] !== d ? (R = d === void 0 ? [] : d, t[2] = d, t[3] = R) : R = t[3];
|
|
395
|
-
const _ = R, Xt = xt === void 0 ? "" : xt, Ht = T === void 0 ? "" : T, tt = S === void 0 ? !0 : S, Yt = F === void 0 ? !1 : F, P = Gt === void 0 ? !1 : Gt, kt = Rt === void 0 ? !1 : Rt, et = ht === void 0 ? "en" : ht, Wt = Pt === void 0 ? 0 : Pt, it = V === void 0 ? "light" : V, zt = pt === void 0 ? !0 : pt, at = gt === void 0 ? 5 : gt, Vt = Et === void 0 ? !1 : Et, st = yt === void 0 ? 2 : yt;
|
|
396
|
-
let E;
|
|
397
|
-
t[4] !== vt ? (E = vt === void 0 ? [] : vt, t[4] = vt, t[5] = E) : E = t[5];
|
|
398
|
-
const ot = E;
|
|
388
|
+
let m;
|
|
389
|
+
t[0] !== dt ? (m = dt === void 0 ? [be.light.categoricalColors.colors[0], be.light.categoricalColors.colors[1]] : dt, t[0] = dt, t[1] = m) : m = t[1];
|
|
390
|
+
const B = m, L = ft === void 0 ? !1 : ft, K = Qt === void 0 ? 20 : Qt, Q = _t === void 0 ? 20 : _t, _ = J === void 0 ? 25 : J, tt = te === void 0 ? 30 : te, N = Gt === void 0 ? "Right bar graph" : Gt, O = ut === void 0 ? "Left bar graph" : ut, et = xt === void 0 ? 0.25 : xt, it = ht === void 0 ? 999 : ht, at = F === void 0 ? 100 : F, T = n === void 0 ? !0 : n;
|
|
399
391
|
let X;
|
|
400
|
-
t[
|
|
392
|
+
t[2] !== d ? (X = d === void 0 ? [] : d, t[2] = d, t[3] = X) : X = t[3];
|
|
393
|
+
const st = X, lt = pt === void 0 ? !0 : pt, ot = I === void 0 ? !1 : I, H = G === void 0 ? !1 : G, Y = R === void 0 ? !1 : R, Ht = Pt === void 0 ? "en" : Pt, Yt = gt === void 0 ? 0 : gt, nt = yt === void 0 ? "light" : yt, Wt = Et === void 0 ? !0 : Et, rt = P === void 0 ? 5 : P, kt = $t === void 0 ? !1 : $t;
|
|
394
|
+
let W;
|
|
395
|
+
t[4] !== bt ? (W = bt === void 0 ? [] : bt, t[4] = bt, t[5] = W) : W = t[5];
|
|
396
|
+
const Zt = W;
|
|
397
|
+
let Z;
|
|
398
|
+
t[6] !== E ? (Z = E === void 0 ? {
|
|
401
399
|
enabled: !1,
|
|
402
400
|
autoplay: !1,
|
|
403
401
|
showOnlyActiveDate: !0
|
|
404
|
-
} :
|
|
405
|
-
const o =
|
|
406
|
-
let
|
|
402
|
+
} : E, t[6] = E, t[7] = Z) : Z = t[7];
|
|
403
|
+
const o = Z, ct = Xt === void 0 ? "NA" : Xt, zt = vt === void 0 ? !1 : vt, [z, Vt] = It(0), [q, Nt] = It(0), [w, Ot] = It(o.autoplay);
|
|
404
|
+
let S;
|
|
407
405
|
if (t[8] !== l || t[9] !== o.dateFormat) {
|
|
408
|
-
let
|
|
409
|
-
t[11] !== o.dateFormat ? (
|
|
406
|
+
let v;
|
|
407
|
+
t[11] !== o.dateFormat ? (v = (Kt) => Be(`${Kt.date}`, o.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[11] = o.dateFormat, t[12] = v) : v = t[12], S = [...new Set(l.filter(ii).map(v))], S.sort(ei), t[8] = l, t[9] = o.dateFormat, t[10] = S;
|
|
410
408
|
} else
|
|
411
|
-
|
|
412
|
-
const r =
|
|
413
|
-
let
|
|
414
|
-
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
415
|
-
const
|
|
416
|
-
|
|
409
|
+
S = t[10];
|
|
410
|
+
const r = S, [M, C] = It(o.autoplay ? 0 : r.length - 1), g = de(null), oe = de(null);
|
|
411
|
+
let x, qt;
|
|
412
|
+
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => {
|
|
413
|
+
const v = new ResizeObserver((Kt) => {
|
|
414
|
+
Vt(Kt[0].target.clientWidth || 620), Nt(Kt[0].target.clientHeight || 480);
|
|
417
415
|
});
|
|
418
|
-
return
|
|
419
|
-
},
|
|
420
|
-
let
|
|
421
|
-
t[15] !==
|
|
422
|
-
const
|
|
423
|
-
|
|
416
|
+
return g.current && v.observe(g.current), () => v.disconnect();
|
|
417
|
+
}, qt = [], t[13] = x, t[14] = qt) : (x = t[13], qt = t[14]), fe(x, qt);
|
|
418
|
+
let Dt, wt;
|
|
419
|
+
t[15] !== w || t[16] !== o.speed || t[17] !== r ? (Dt = () => {
|
|
420
|
+
const v = setInterval(() => {
|
|
421
|
+
C((Kt) => Kt < r.length - 1 ? Kt + 1 : 0);
|
|
424
422
|
}, (o.speed || 2) * 1e3);
|
|
425
|
-
return
|
|
426
|
-
},
|
|
427
|
-
const
|
|
428
|
-
let
|
|
429
|
-
t[20] !==
|
|
430
|
-
const
|
|
431
|
-
let
|
|
432
|
-
t[25] !==
|
|
433
|
-
title:
|
|
434
|
-
description:
|
|
423
|
+
return w || clearInterval(v), () => clearInterval(v);
|
|
424
|
+
}, wt = [r, w, o.speed], t[15] = w, t[16] = o.speed, t[17] = r, t[18] = Dt, t[19] = wt) : (Dt = t[18], wt = t[19]), fe(Dt, wt);
|
|
425
|
+
const Ut = o.dateFormat || "yyyy";
|
|
426
|
+
let At;
|
|
427
|
+
t[20] !== M || t[21] !== Ut || t[22] !== o.showOnlyActiveDate || t[23] !== r ? (At = we(r, M, o.showOnlyActiveDate, Ut), t[20] = M, t[21] = Ut, t[22] = o.showOnlyActiveDate, t[23] = r, t[24] = At) : At = t[24];
|
|
428
|
+
const Tt = At, St = c?.graphContainer, Jt = u?.graphContainer;
|
|
429
|
+
let U;
|
|
430
|
+
t[25] !== c?.description || t[26] !== c?.title || t[27] !== l || t[28] !== Y || t[29] !== f || t[30] !== H || t[31] !== $ || t[32] !== u?.description || t[33] !== u?.title || t[34] !== h ? (U = $ || f || H || Y ? /* @__PURE__ */ i.jsx(Ne, { styles: {
|
|
431
|
+
title: u?.title,
|
|
432
|
+
description: u?.description
|
|
435
433
|
}, classNames: {
|
|
436
|
-
title:
|
|
437
|
-
description:
|
|
438
|
-
}, graphTitle:
|
|
439
|
-
let
|
|
440
|
-
t[36] !==
|
|
434
|
+
title: c?.title,
|
|
435
|
+
description: c?.description
|
|
436
|
+
}, graphTitle: $, graphDescription: f, width: h, graphDownload: H ? oe : void 0, dataDownload: Y ? l.map(ti).filter(_e).length > 0 ? l.map(Qe).filter(Ke) : l.filter(Je) : null }) : null, t[25] = c?.description, t[26] = c?.title, t[27] = l, t[28] = Y, t[29] = f, t[30] = H, t[31] = $, t[32] = u?.description, t[33] = u?.title, t[34] = h, t[35] = U) : U = t[35];
|
|
437
|
+
let e;
|
|
438
|
+
t[36] !== M || t[37] !== Tt || t[38] !== w || t[39] !== o.enabled || t[40] !== r ? (e = o.enabled && r.length > 0 && Tt ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
441
439
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
442
|
-
|
|
443
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
444
|
-
/* @__PURE__ */ i.jsx(
|
|
445
|
-
|
|
446
|
-
}, onChange: (
|
|
447
|
-
|
|
440
|
+
Ot(!w);
|
|
441
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": w ? "Click to pause animation" : "Click to play animation", children: w ? /* @__PURE__ */ i.jsx(Te, {}) : /* @__PURE__ */ i.jsx(Se, {}) }),
|
|
442
|
+
/* @__PURE__ */ i.jsx(Ae, { min: r[0], max: r[r.length - 1], marks: Tt, step: null, defaultValue: r[r.length - 1], value: r[M], onChangeComplete: (v) => {
|
|
443
|
+
C(r.indexOf(v));
|
|
444
|
+
}, onChange: (v) => {
|
|
445
|
+
C(r.indexOf(v));
|
|
448
446
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
449
|
-
] }) : null, t[36] =
|
|
447
|
+
] }) : null, t[36] = M, t[37] = Tt, t[38] = w, t[39] = o.enabled, t[40] = r, t[41] = e) : e = t[41];
|
|
448
|
+
let y;
|
|
449
|
+
t[42] !== B || t[43] !== c?.colorLegend || t[44] !== Ct || t[45] !== l.length || t[46] !== O || t[47] !== N || t[48] !== ot ? (y = ot && l.length > 0 ? /* @__PURE__ */ i.jsx(Oe, { colorLegendTitle: Ct, colorDomain: [O, N], colors: B, showNAColor: !1, className: c?.colorLegend }) : null, t[42] = B, t[43] = c?.colorLegend, t[44] = Ct, t[45] = l.length, t[46] = O, t[47] = N, t[48] = ot, t[49] = y) : y = t[49];
|
|
450
|
+
let b;
|
|
451
|
+
t[50] !== l.length ? (b = l.length === 0 && /* @__PURE__ */ i.jsx(De, {}), t[50] = l.length, t[51] = b) : b = t[51];
|
|
450
452
|
let ie;
|
|
451
|
-
t[
|
|
452
|
-
let ae;
|
|
453
|
-
t[50] !== l.length ? (ae = l.length === 0 && /* @__PURE__ */ i.jsx(Pe, {}), t[50] = l.length, t[51] = ae) : ae = t[51];
|
|
454
|
-
let se;
|
|
455
|
-
t[52] !== Vt || t[53] !== M || t[54] !== J || t[55] !== U || t[56] !== Q || t[57] !== f || t[58] !== ot || t[59] !== l || t[60] !== N || t[61] !== nt || t[62] !== $ || t[63] !== w || t[64] !== W || t[65] !== Nt || t[66] !== s || t[67] !== B || t[68] !== lt || t[69] !== at || t[70] !== Ct || t[71] !== k || t[72] !== st || t[73] !== Ht || t[74] !== _ || t[75] !== zt || t[76] !== C || t[77] !== z || t[78] !== tt || t[79] !== Z || t[80] !== x || t[81] !== Xt || t[82] !== h || t[83] !== wt || t[84] !== o.dateFormat || t[85] !== o.enabled || t[86] !== It || t[87] !== q || t[88] !== K || t[89] !== r ? (se = wt && h && l.length > 0 ? /* @__PURE__ */ i.jsx(ze, { hideAxisLine: nt, data: He(l, o.dateFormat || "yyyy").filter((y) => o.enabled ? `${y.date}` === Ve(new Date(r[$]), o.dateFormat || "yyyy") : y), barColors: M, width: wt, centerGap: Q, height: h, truncateBy: K, leftMargin: W, rightMargin: z, topMargin: q, bottomMargin: U, axisTitles: [w, C], tooltip: It, onSeriesMouseOver: k, barPadding: J, refValues: _, maxValue: Math.max(ne(l, "leftBar", B, s).max, ne(l, "rightBar", B, s).max), minValue: Math.min(ne(l, "leftBar", B, s).min, ne(l, "rightBar", B, s).min), minValueLeftBar: ne(l, "leftBar", B, s).min, minValueRightBar: ne(l, "rightBar", B, s).min, showValues: Z, onSeriesMouseClick: Ct, showTicks: tt, suffix: Xt, prefix: Ht, resetSelectionOnDoubleClick: zt, detailsOnClick: N, styles: x, classNames: f, noOfTicks: at, animate: Vt === !0 ? {
|
|
453
|
+
t[52] !== kt || t[53] !== B || t[54] !== et || t[55] !== tt || t[56] !== at || t[57] !== c || t[58] !== Zt || t[59] !== l || t[60] !== V || t[61] !== zt || t[62] !== M || t[63] !== O || t[64] !== K || t[65] !== s || t[66] !== k || t[67] !== ct || t[68] !== rt || t[69] !== p?.locale || t[70] !== p?.padZeros || t[71] !== p?.precision || t[72] !== p?.prefix || t[73] !== p?.suffix || t[74] !== Mt || t[75] !== D || t[76] !== st || t[77] !== Wt || t[78] !== N || t[79] !== Q || t[80] !== lt || t[81] !== T || t[82] !== u || t[83] !== q || t[84] !== z || t[85] !== o.dateFormat || t[86] !== o.enabled || t[87] !== Rt || t[88] !== _ || t[89] !== it || t[90] !== r ? (ie = z && q && l.length > 0 ? /* @__PURE__ */ i.jsx(Re, { hideAxisLine: zt, data: Fe(l, o.dateFormat || "yyyy").filter((v) => o.enabled ? `${v.date}` === je(new Date(r[M]), o.dateFormat || "yyyy") : v), barColors: B, width: z, centerGap: at, height: q, truncateBy: it, leftMargin: K, rightMargin: Q, topMargin: _, bottomMargin: tt, axisTitles: [O, N], tooltip: Rt, onSeriesMouseOver: D, barPadding: et, refValues: st, maxValue: Math.max(le(l, "leftBar", k, s).max, le(l, "rightBar", k, s).max), minValue: Math.min(le(l, "leftBar", k, s).min, le(l, "rightBar", k, s).min), minValueLeftBar: le(l, "leftBar", k, s).min, minValueRightBar: le(l, "rightBar", k, s).min, showValues: T, onSeriesMouseClick: Mt, showTicks: lt, resetSelectionOnDoubleClick: Wt, detailsOnClick: V, styles: u, classNames: c, noOfTicks: rt, animate: kt === !0 ? {
|
|
456
454
|
duration: 0.5,
|
|
457
455
|
once: !0,
|
|
458
456
|
amount: 0.5
|
|
459
|
-
} :
|
|
457
|
+
} : kt || {
|
|
460
458
|
duration: 0,
|
|
461
459
|
once: !0,
|
|
462
460
|
amount: 0
|
|
463
|
-
},
|
|
464
|
-
let
|
|
465
|
-
t[
|
|
461
|
+
}, customLayers: Zt, naLabel: ct, locale: p?.locale || "en", padZeros: p?.padZeros || !1, suffix: p?.suffix || "", prefix: p?.prefix || "", precision: p?.precision ?? 2 }) : null, t[52] = kt, t[53] = B, t[54] = et, t[55] = tt, t[56] = at, t[57] = c, t[58] = Zt, t[59] = l, t[60] = V, t[61] = zt, t[62] = M, t[63] = O, t[64] = K, t[65] = s, t[66] = k, t[67] = ct, t[68] = rt, t[69] = p?.locale, t[70] = p?.padZeros, t[71] = p?.precision, t[72] = p?.prefix, t[73] = p?.suffix, t[74] = Mt, t[75] = D, t[76] = st, t[77] = Wt, t[78] = N, t[79] = Q, t[80] = lt, t[81] = T, t[82] = u, t[83] = q, t[84] = z, t[85] = o.dateFormat, t[86] = o.enabled, t[87] = Rt, t[88] = _, t[89] = it, t[90] = r, t[91] = ie) : ie = t[91];
|
|
462
|
+
let ae;
|
|
463
|
+
t[92] !== b || t[93] !== ie ? (ae = /* @__PURE__ */ i.jsxs(Ie, { ref: g, children: [
|
|
464
|
+
b,
|
|
465
|
+
ie
|
|
466
|
+
] }), t[92] = b, t[93] = ie, t[94] = ae) : ae = t[94];
|
|
467
|
+
let se;
|
|
468
|
+
t[95] !== c?.footnote || t[96] !== c?.source || t[97] !== mt || t[98] !== A || t[99] !== u?.footnote || t[100] !== u?.source || t[101] !== h ? (se = A || mt ? /* @__PURE__ */ i.jsx(Ve, { styles: {
|
|
469
|
+
footnote: u?.footnote,
|
|
470
|
+
source: u?.source
|
|
471
|
+
}, classNames: {
|
|
472
|
+
footnote: c?.footnote,
|
|
473
|
+
source: c?.source
|
|
474
|
+
}, sources: A, footNote: mt, width: h }) : null, t[95] = c?.footnote, t[96] = c?.source, t[97] = mt, t[98] = A, t[99] = u?.footnote, t[100] = u?.source, t[101] = h, t[102] = se) : se = t[102];
|
|
475
|
+
let ne;
|
|
476
|
+
return t[103] !== ee || t[104] !== L || t[105] !== Lt || t[106] !== j || t[107] !== Ht || t[108] !== Yt || t[109] !== jt || t[110] !== Bt || t[111] !== St || t[112] !== Jt || t[113] !== U || t[114] !== e || t[115] !== y || t[116] !== ae || t[117] !== se || t[118] !== nt || t[119] !== h ? (ne = /* @__PURE__ */ i.jsxs(Ge, { className: St, style: Jt, id: Lt, ref: oe, "aria-label": ee, backgroundColor: L, theme: nt, language: Ht, minHeight: Yt, width: h, height: j, relativeHeight: Bt, padding: jt, children: [
|
|
477
|
+
U,
|
|
478
|
+
e,
|
|
479
|
+
y,
|
|
466
480
|
ae,
|
|
467
481
|
se
|
|
468
|
-
] }), t[
|
|
469
|
-
let le;
|
|
470
|
-
t[94] !== f?.footnote || t[95] !== f?.source || t[96] !== rt || t[97] !== v || t[98] !== x?.footnote || t[99] !== x?.source || t[100] !== p ? (le = v || rt ? /* @__PURE__ */ i.jsx(Ie, { styles: {
|
|
471
|
-
footnote: x?.footnote,
|
|
472
|
-
source: x?.source
|
|
473
|
-
}, classNames: {
|
|
474
|
-
footnote: f?.footnote,
|
|
475
|
-
source: f?.source
|
|
476
|
-
}, sources: v, footNote: rt, width: p }) : null, t[94] = f?.footnote, t[95] = f?.source, t[96] = rt, t[97] = v, t[98] = x?.footnote, t[99] = x?.source, t[100] = p, t[101] = le) : le = t[101];
|
|
477
|
-
let fe;
|
|
478
|
-
return t[102] !== $t || t[103] !== Y || t[104] !== Mt || t[105] !== b || t[106] !== et || t[107] !== Wt || t[108] !== Bt || t[109] !== Lt || t[110] !== xe || t[111] !== he || t[112] !== te || t[113] !== ee || t[114] !== ie || t[115] !== oe || t[116] !== le || t[117] !== it || t[118] !== p ? (fe = /* @__PURE__ */ i.jsxs(We, { className: xe, style: he, id: Mt, ref: Ut, "aria-label": $t, backgroundColor: Y, theme: it, language: et, minHeight: Wt, width: p, height: b, relativeHeight: Lt, padding: Bt, children: [
|
|
479
|
-
te,
|
|
480
|
-
ee,
|
|
481
|
-
ie,
|
|
482
|
-
oe,
|
|
483
|
-
le
|
|
484
|
-
] }), t[102] = $t, t[103] = Y, t[104] = Mt, t[105] = b, t[106] = et, t[107] = Wt, t[108] = Bt, t[109] = Lt, t[110] = xe, t[111] = he, t[112] = te, t[113] = ee, t[114] = ie, t[115] = oe, t[116] = le, t[117] = it, t[118] = p, t[119] = fe) : fe = t[119], fe;
|
|
482
|
+
] }), t[103] = ee, t[104] = L, t[105] = Lt, t[106] = j, t[107] = Ht, t[108] = Yt, t[109] = jt, t[110] = Bt, t[111] = St, t[112] = Jt, t[113] = U, t[114] = e, t[115] = y, t[116] = ae, t[117] = se, t[118] = nt, t[119] = h, t[120] = ne) : ne = t[120], ne;
|
|
485
483
|
}
|
|
486
|
-
function
|
|
484
|
+
function Je(a) {
|
|
487
485
|
return a !== void 0;
|
|
488
486
|
}
|
|
489
|
-
function
|
|
487
|
+
function Ke(a) {
|
|
490
488
|
return a !== void 0;
|
|
491
489
|
}
|
|
492
|
-
function
|
|
490
|
+
function Qe(a) {
|
|
493
491
|
return a.data;
|
|
494
492
|
}
|
|
495
|
-
function
|
|
493
|
+
function _e(a) {
|
|
496
494
|
return a !== void 0;
|
|
497
495
|
}
|
|
498
|
-
function
|
|
496
|
+
function ti(a) {
|
|
499
497
|
return a.data;
|
|
500
498
|
}
|
|
501
|
-
function
|
|
499
|
+
function ei(a, t) {
|
|
502
500
|
return a - t;
|
|
503
501
|
}
|
|
504
|
-
function
|
|
502
|
+
function ii(a) {
|
|
505
503
|
return a.date;
|
|
506
504
|
}
|
|
507
505
|
export {
|
|
508
|
-
|
|
506
|
+
ki as ButterflyChart
|
|
509
507
|
};
|
|
510
508
|
//# sourceMappingURL=ButterflyChart.js.map
|