@undp/data-viz 2.0.9 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.d.ts +2 -0
- package/dist/AreaChart.js +4 -4
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1699 -1577
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.d.ts +2 -0
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +2 -0
- package/dist/BeeSwarmChart.js +258 -267
- 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 +2 -0
- package/dist/BiVariateChoroplethMap.js +252 -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 +2 -0
- package/dist/BulletChart.js +566 -536
- 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 +2 -0
- package/dist/ButterflyChart.js +388 -378
- 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 +2 -0
- package/dist/ChoroplethMap.js +297 -291
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +2 -0
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.d.ts +2 -0
- package/dist/DataCards.js +1 -1
- package/dist/DataTable.d.ts +2 -0
- package/dist/DetailsModal-0Ry5nXiC.js +32 -0
- package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
- package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
- package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.d.ts +2 -0
- package/dist/DifferenceLineChart.js +4 -4
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +2 -0
- package/dist/DonutChart.js +185 -190
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +2 -0
- package/dist/DotDensityMap.js +252 -244
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.d.ts +2 -0
- package/dist/DualAxisLineChart.js +4 -4
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +563 -525
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.d.ts +2 -0
- package/dist/GeoHubMap.d.ts +2 -0
- package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
- package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
- package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
- package/dist/{GraphEl-CGq1EWRn.js → GraphEl-DEzobeOM.js} +3 -3
- package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-DEzobeOM.js.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.cjs.map +1 -1
- package/dist/GriddedGraphs.d.ts +2 -0
- package/dist/GriddedGraphs.js +19 -19
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +2 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +2 -0
- package/dist/HeatMap.js +112 -117
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +3 -3
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +2 -0
- package/dist/HybridMap.js +366 -359
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
- package/dist/LineChartWithConfidenceInterval.js +4 -4
- package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
- package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +2 -0
- package/dist/MultiGraphDashboard.js +10 -10
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +453 -425
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.d.ts +2 -0
- package/dist/MultiLineChart.js +4 -4
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +2 -0
- package/dist/ParetoChart.js +188 -193
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +2 -0
- package/dist/RadarChart.js +158 -163
- 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 +2 -0
- package/dist/SankeyChart.js +172 -177
- 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 +2 -0
- package/dist/ScatterPlot.js +494 -483
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +2 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.d.ts +2 -0
- package/dist/SimpleLineChart.js +4 -4
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.d.ts +2 -0
- package/dist/SingleGraphDashboard.js +24 -24
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.d.ts +2 -0
- package/dist/SlopeChart.js +182 -187
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +2 -0
- package/dist/SparkLine.js +4 -4
- package/dist/StatCardFromData.d.ts +2 -0
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +2 -0
- package/dist/StripChart.js +249 -258
- 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 +2 -0
- package/dist/ThreeDGlobe.js +142 -147
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/Tooltip-Dj5eVppQ.js +45 -0
- package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
- package/dist/Tooltip-uUdw6wJL.cjs +2 -0
- package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +2 -0
- package/dist/TreeMapGraph.js +159 -164
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +2 -0
- package/dist/UnitChart.d.ts +2 -0
- package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
- package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
- package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
- package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
- package/dist/index-CF5hnGvG.cjs +2 -0
- package/dist/index-CF5hnGvG.cjs.map +1 -0
- package/dist/index-DPGq3eIL.js +330 -0
- package/dist/index-DPGq3eIL.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
- package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
- package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
- package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
- package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
- package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
- package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
- package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
- package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
- package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
- package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
- package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
- package/package.json +4 -4
- package/dist/Tooltip-4dJo4_AF.cjs +0 -2
- package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
- package/dist/Tooltip-CwWUegPB.js +0 -43
- package/dist/Tooltip-CwWUegPB.js.map +0 -1
- package/dist/index-B2LQV7Tk.js +0 -335
- package/dist/index-B2LQV7Tk.js.map +0 -1
- package/dist/index-xRHRLDIp.cjs +0 -2
- package/dist/index-xRHRLDIp.cjs.map +0 -1
- package/dist/sort-BIvMlUH1.js +0 -34
- package/dist/sort-BIvMlUH1.js.map +0 -1
- package/dist/sort-O96oMZLb.cjs +0 -2
- package/dist/sort-O96oMZLb.cjs.map +0 -1
package/dist/BulletChart.js
CHANGED
|
@@ -1,156 +1,165 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { c as zi, j as s, m as ji } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useRef as Ai, useState as ci, useEffect as Ri } from "react";
|
|
3
3
|
import { o as Si } from "./index-BZQYSqar.js";
|
|
4
|
-
import { i as
|
|
5
|
-
import { l as Ci } from "./Modal-DGcuAHyK.js";
|
|
4
|
+
import { i as ki } from "./index-Bwrro8-q.js";
|
|
6
5
|
import { s as pi } from "./index-CeVNqhMO.js";
|
|
7
|
-
import { n as
|
|
8
|
-
import { T as
|
|
9
|
-
import { c as
|
|
10
|
-
import { s as Li } from "./string2HTML-DhG75NqA.js";
|
|
6
|
+
import { n as Vi } from "./numberFormattingFunction-14YCbkN2.js";
|
|
7
|
+
import { T as Ci } from "./Tooltip-Dj5eVppQ.js";
|
|
8
|
+
import { c as g } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
11
9
|
import { A as Oi } from "./Axis-CRyfcLjc.js";
|
|
12
|
-
import { A as
|
|
10
|
+
import { A as Li } from "./AxisTitle-jeI7am8o.js";
|
|
13
11
|
import { X as qi } from "./XAxesLabels-Dy8E1SEo.js";
|
|
14
12
|
import { R as Fi, a as Bi } from "./ReferenceLine-2XCwHXQ4.js";
|
|
15
13
|
import { Y as Pi } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
16
|
-
import { X as
|
|
14
|
+
import { X as Wi } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
17
15
|
import { Y as Xi } from "./YAxesLabels-a57ZRv-0.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
16
|
+
import { D as Ni } from "./DetailsModal-0Ry5nXiC.js";
|
|
17
|
+
import { a as Ii } from "./linear-BqltdMeF.js";
|
|
18
|
+
import { b as $i } from "./band-DHUZ2X7J.js";
|
|
19
|
+
import { u as Ti } from "./use-in-view-Cxa7y1TH.js";
|
|
20
|
+
import { m as vt } from "./proxy-BxkFHwUw.js";
|
|
22
21
|
import { A as Di } from "./index-BqfRwk1n.js";
|
|
23
|
-
import { Colors as
|
|
22
|
+
import { Colors as Mi } from "./Colors.js";
|
|
24
23
|
import { E as Yi } from "./EmptyState-BZo1BbAn.js";
|
|
25
24
|
import { a as Ei, G as Gi } from "./GraphContainer-CRqzdKu2.js";
|
|
26
|
-
import { GraphFooter as
|
|
25
|
+
import { GraphFooter as Hi } from "./GraphFooter.js";
|
|
27
26
|
import { GraphHeader as Ui } from "./GraphHeader.js";
|
|
28
27
|
import { ColorLegend as Ji } from "./ColorLegend.js";
|
|
29
28
|
function Ki(i) {
|
|
30
|
-
const t =
|
|
31
|
-
data:
|
|
32
|
-
width:
|
|
33
|
-
height:
|
|
34
|
-
barColor:
|
|
35
|
-
suffix:
|
|
36
|
-
prefix:
|
|
37
|
-
barPadding:
|
|
38
|
-
showLabels:
|
|
39
|
-
showValues:
|
|
40
|
-
showTicks:
|
|
41
|
-
truncateBy:
|
|
42
|
-
leftMargin:
|
|
43
|
-
rightMargin:
|
|
44
|
-
topMargin:
|
|
45
|
-
bottomMargin:
|
|
46
|
-
tooltip:
|
|
47
|
-
onSeriesMouseOver:
|
|
48
|
-
refValues:
|
|
49
|
-
maxValue:
|
|
50
|
-
minValue:
|
|
51
|
-
highlightedDataPoints:
|
|
52
|
-
onSeriesMouseClick:
|
|
53
|
-
labelOrder:
|
|
54
|
-
maxBarThickness:
|
|
55
|
-
minBarThickness:
|
|
56
|
-
resetSelectionOnDoubleClick:
|
|
57
|
-
detailsOnClick:
|
|
58
|
-
barAxisTitle:
|
|
59
|
-
valueColor:
|
|
60
|
-
noOfTicks:
|
|
61
|
-
styles:
|
|
29
|
+
const t = zi.c(160), {
|
|
30
|
+
data: n,
|
|
31
|
+
width: wt,
|
|
32
|
+
height: Qt,
|
|
33
|
+
barColor: Ft,
|
|
34
|
+
suffix: Mt,
|
|
35
|
+
prefix: k,
|
|
36
|
+
barPadding: Bt,
|
|
37
|
+
showLabels: Pt,
|
|
38
|
+
showValues: Zt,
|
|
39
|
+
showTicks: ni,
|
|
40
|
+
truncateBy: _t,
|
|
41
|
+
leftMargin: li,
|
|
42
|
+
rightMargin: Wt,
|
|
43
|
+
topMargin: ti,
|
|
44
|
+
bottomMargin: ui,
|
|
45
|
+
tooltip: xt,
|
|
46
|
+
onSeriesMouseOver: dt,
|
|
47
|
+
refValues: At,
|
|
48
|
+
maxValue: p,
|
|
49
|
+
minValue: gt,
|
|
50
|
+
highlightedDataPoints: J,
|
|
51
|
+
onSeriesMouseClick: st,
|
|
52
|
+
labelOrder: M,
|
|
53
|
+
maxBarThickness: Xt,
|
|
54
|
+
minBarThickness: Vt,
|
|
55
|
+
resetSelectionOnDoubleClick: Yt,
|
|
56
|
+
detailsOnClick: ot,
|
|
57
|
+
barAxisTitle: D,
|
|
58
|
+
valueColor: K,
|
|
59
|
+
noOfTicks: zt,
|
|
60
|
+
styles: h,
|
|
62
61
|
classNames: l,
|
|
63
|
-
targetStyle:
|
|
64
|
-
targetColor:
|
|
65
|
-
qualitativeRangeColors:
|
|
66
|
-
measureBarWidthFactor:
|
|
62
|
+
targetStyle: u,
|
|
63
|
+
targetColor: R,
|
|
64
|
+
qualitativeRangeColors: Q,
|
|
65
|
+
measureBarWidthFactor: d,
|
|
67
66
|
animate: o,
|
|
68
|
-
dimmedOpacity:
|
|
69
|
-
precision:
|
|
70
|
-
customLayers:
|
|
71
|
-
naLabel:
|
|
72
|
-
targetLineThickness:
|
|
73
|
-
} = i,
|
|
74
|
-
let
|
|
75
|
-
t[0] !== o.amount || t[1] !== o.once ? (
|
|
67
|
+
dimmedOpacity: m,
|
|
68
|
+
precision: rt,
|
|
69
|
+
customLayers: Z,
|
|
70
|
+
naLabel: C,
|
|
71
|
+
targetLineThickness: ii
|
|
72
|
+
} = i, S = li === void 0 ? 20 : li, Et = Wt === void 0 ? 20 : Wt, si = ti === void 0 ? 20 : ti, Gt = ui === void 0 ? 25 : ui, mi = Ai(null);
|
|
73
|
+
let oi;
|
|
74
|
+
t[0] !== o.amount || t[1] !== o.once ? (oi = {
|
|
76
75
|
once: o.once,
|
|
77
76
|
amount: o.amount
|
|
78
|
-
}, t[0] = o.amount, t[1] = o.once, t[2] =
|
|
79
|
-
const O =
|
|
80
|
-
let
|
|
81
|
-
t[3] !==
|
|
82
|
-
top:
|
|
83
|
-
bottom:
|
|
84
|
-
left:
|
|
85
|
-
right:
|
|
86
|
-
}, t[3] =
|
|
87
|
-
const x =
|
|
88
|
-
let
|
|
89
|
-
t[8] !==
|
|
90
|
-
const
|
|
91
|
-
let jt;
|
|
92
|
-
t[10] !== a ? (jt = Math.max(...a.filter(de).map(pe)) < 0 ? 0 : Math.max(...a.filter(ge).map(xe)), t[10] = a, t[11] = jt) : jt = t[11];
|
|
93
|
-
const Ct = jt;
|
|
94
|
-
let kt;
|
|
95
|
-
t[12] !== a ? (kt = Math.max(...a.map(fe)), t[12] = a, t[13] = kt) : kt = t[13];
|
|
96
|
-
const Lt = kt;
|
|
77
|
+
}, t[0] = o.amount, t[1] = o.once, t[2] = oi) : oi = t[2];
|
|
78
|
+
const O = Ti(mi, oi), q = D ? S + 30 : S;
|
|
79
|
+
let Ht;
|
|
80
|
+
t[3] !== Gt || t[4] !== Et || t[5] !== q || t[6] !== si ? (Ht = {
|
|
81
|
+
top: si,
|
|
82
|
+
bottom: Gt,
|
|
83
|
+
left: q,
|
|
84
|
+
right: Et
|
|
85
|
+
}, t[3] = Gt, t[4] = Et, t[5] = q, t[6] = si, t[7] = Ht) : Ht = t[7];
|
|
86
|
+
const x = Ht, [_, ri] = ci(void 0), [tt, pt] = ci(void 0), [jt, ei] = ci(void 0), [ai, Ut] = ci(void 0), f = wt - x.left - x.right, kt = Qt - x.top - x.bottom;
|
|
87
|
+
let it;
|
|
88
|
+
t[8] !== n ? (it = Math.max(...n.filter(Me).map(we)) < 0 ? 0 : Math.max(...n.filter(ve).map(ye)), t[8] = n, t[9] = it) : it = t[9];
|
|
89
|
+
const Ct = it;
|
|
97
90
|
let Ot;
|
|
98
|
-
t[
|
|
99
|
-
const
|
|
100
|
-
let
|
|
101
|
-
t[
|
|
102
|
-
const
|
|
91
|
+
t[10] !== n ? (Ot = Math.max(...n.filter(be).map(pe)) < 0 ? 0 : Math.max(...n.filter(ge).map(de)), t[10] = n, t[11] = Ot) : Ot = t[11];
|
|
92
|
+
const Lt = Ot;
|
|
93
|
+
let Nt;
|
|
94
|
+
t[12] !== n ? (Nt = Math.max(...n.map(he)), t[12] = n, t[13] = Nt) : Nt = t[13];
|
|
95
|
+
const It = Nt;
|
|
103
96
|
let $t;
|
|
104
|
-
t[
|
|
105
|
-
const
|
|
106
|
-
let
|
|
107
|
-
t[
|
|
108
|
-
const
|
|
109
|
-
let
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
t[
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
97
|
+
t[14] !== Ct || t[15] !== p || t[16] !== It || t[17] !== Lt ? ($t = g(p) ? Math.max(...[Ct, Lt, It].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[Ct, Lt, It].filter(Number.isFinite)) : p, t[14] = Ct, t[15] = p, t[16] = It, t[17] = Lt, t[18] = $t) : $t = t[18];
|
|
98
|
+
const Tt = $t;
|
|
99
|
+
let Jt;
|
|
100
|
+
t[19] !== n ? (Jt = Math.min(...n.filter(fe).map(me)) >= 0 ? 0 : Math.min(...n.filter(ue).map(ce)), t[19] = n, t[20] = Jt) : Jt = t[20];
|
|
101
|
+
const Dt = Jt;
|
|
102
|
+
let Rt;
|
|
103
|
+
t[21] !== n ? (Rt = Math.min(...n.filter(re).map(oe)) >= 0 ? 0 : Math.min(...n.filter(se).map(le)), t[21] = n, t[22] = Rt) : Rt = t[22];
|
|
104
|
+
const bt = Rt;
|
|
105
|
+
let St;
|
|
106
|
+
t[23] !== Dt || t[24] !== gt || t[25] !== bt ? (St = g(gt) ? Math.min(...[Dt, bt].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[Dt, bt].filter(Number.isFinite)) : gt, t[23] = Dt, t[24] = gt, t[25] = bt, t[26] = St) : St = t[26];
|
|
107
|
+
const v = St;
|
|
108
|
+
let et;
|
|
109
|
+
if (t[27] !== n || t[28] !== M) {
|
|
110
|
+
const c = /* @__PURE__ */ new Set(), a = n.map((ht, z) => {
|
|
111
|
+
const j = M ? `${ht.label}` : `${z}`;
|
|
112
|
+
return c.add(j), {
|
|
113
|
+
...ht,
|
|
114
|
+
id: j
|
|
115
|
+
};
|
|
116
|
+
}), A = M ? M.filter((ht) => !c.has(ht)) : [];
|
|
117
|
+
et = [...a, ...A.map(ne)], t[27] = n, t[28] = M, t[29] = et;
|
|
118
|
+
} else
|
|
119
|
+
et = t[29];
|
|
120
|
+
const at = et;
|
|
121
|
+
let ct;
|
|
122
|
+
t[30] !== at || t[31] !== M ? (ct = M ?? at.map(ae), t[30] = at, t[31] = M, t[32] = ct) : ct = t[32];
|
|
123
|
+
const yt = ct;
|
|
124
|
+
let F, B, P, L, W, X, N, w, b, y, Y, E, G, H;
|
|
125
|
+
if (t[33] !== o || t[34] !== D || t[35] !== Ft || t[36] !== yt || t[37] !== Bt || t[38] !== l?.graphObjectValues || t[39] !== l?.xAxis?.axis || t[40] !== l?.xAxis?.labels || t[41] !== l?.yAxis?.gridLines || t[42] !== l?.yAxis?.labels || t[43] !== l?.yAxis?.title || t[44] !== Z || t[45] !== at || t[46] !== ot || t[47] !== m || t[48] !== kt || t[49] !== f || t[50] !== Qt || t[51] !== J || t[52] !== O || t[53] !== S || t[54] !== x.bottom || t[55] !== x.left || t[56] !== x.right || t[57] !== x.top || t[58] !== Xt || t[59] !== d || t[60] !== Vt || t[61] !== tt || t[62] !== C || t[63] !== zt || t[64] !== st || t[65] !== dt || t[66] !== rt || t[67] !== k || t[68] !== Q || t[69] !== At || t[70] !== Yt || t[71] !== Pt || t[72] !== ni || t[73] !== Zt || t[74] !== h?.graphObjectValues || t[75] !== h?.xAxis?.axis || t[76] !== h?.xAxis?.labels || t[77] !== h?.yAxis?.gridLines || t[78] !== h?.yAxis?.labels || t[79] !== h?.yAxis?.title || t[80] !== Mt || t[81] !== R || t[82] !== ii || t[83] !== u || t[84] !== _t || t[85] !== K || t[86] !== wt || t[87] !== Tt || t[88] !== v) {
|
|
126
|
+
const c = Ii().domain([v, Tt]).range([kt, 0]).nice(), a = $i().domain(yt).range([0, Vt ? Math.max(f, Vt * yt.length) : Xt ? Math.min(f, Xt * yt.length) : f]).paddingInner(Bt), A = c.ticks(zt);
|
|
127
|
+
B = vt.svg, y = `${wt}px`, Y = `${Qt}px`, E = `0 0 ${wt} ${Qt}`, G = "ltr", H = mi, W = `translate(${x.left},${x.top})`;
|
|
128
|
+
const ht = c(v < 0 ? 0 : v), z = c(v < 0 ? 0 : v), j = v < 0 ? 0 : v;
|
|
129
|
+
let T;
|
|
130
|
+
t[103] !== C || t[104] !== rt || t[105] !== k || t[106] !== Mt || t[107] !== j ? (T = Vi(j, C, rt, k, Mt), t[103] = C, t[104] = rt, t[105] = k, t[106] = Mt, t[107] = j, t[108] = T) : T = t[108];
|
|
131
|
+
const Kt = l?.xAxis?.axis, V = l?.yAxis?.labels;
|
|
132
|
+
let lt;
|
|
133
|
+
t[109] !== Kt || t[110] !== V ? (lt = {
|
|
134
|
+
axis: Kt,
|
|
135
|
+
label: V
|
|
136
|
+
}, t[109] = Kt, t[110] = V, t[111] = lt) : lt = t[111];
|
|
137
|
+
const di = h?.xAxis?.axis, hi = h?.yAxis?.labels;
|
|
129
138
|
let e;
|
|
130
|
-
t[
|
|
131
|
-
axis:
|
|
132
|
-
label:
|
|
133
|
-
}, t[
|
|
134
|
-
x: 0 -
|
|
139
|
+
t[112] !== di || t[113] !== hi ? (e = {
|
|
140
|
+
axis: di,
|
|
141
|
+
label: hi
|
|
142
|
+
}, t[112] = di, t[113] = hi, t[114] = e) : e = t[114], X = /* @__PURE__ */ s.jsx(Oi, { y1: ht, y2: z, x1: 0 - S, x2: f + x.right, label: T, labelPos: {
|
|
143
|
+
x: 0 - S,
|
|
135
144
|
dx: 0,
|
|
136
|
-
dy:
|
|
137
|
-
y: c(
|
|
138
|
-
}, classNames:
|
|
139
|
-
gridLines:
|
|
140
|
-
labels:
|
|
145
|
+
dy: Tt < 0 ? "1em" : -5,
|
|
146
|
+
y: c(v < 0 ? 0 : v)
|
|
147
|
+
}, classNames: lt, styles: e }), N = ni ? /* @__PURE__ */ s.jsx(Pi, { values: A.filter(ee), y: A.filter(ie).map((r) => c(r)), x1: 0 - S, x2: f + x.right, styles: {
|
|
148
|
+
gridLines: h?.yAxis?.gridLines,
|
|
149
|
+
labels: h?.yAxis?.labels
|
|
141
150
|
}, classNames: {
|
|
142
151
|
gridLines: l?.yAxis?.gridLines,
|
|
143
152
|
labels: l?.yAxis?.labels
|
|
144
|
-
}, suffix:
|
|
145
|
-
const
|
|
146
|
-
t[
|
|
147
|
-
|
|
153
|
+
}, suffix: Mt, prefix: k, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: rt }) : null;
|
|
154
|
+
const qt = 0 - S - 15, fi = kt / 2, bi = h?.yAxis?.title, yi = l?.yAxis?.title;
|
|
155
|
+
t[115] !== D || t[116] !== qt || t[117] !== fi || t[118] !== bi || t[119] !== yi ? (w = /* @__PURE__ */ s.jsx(Li, { x: qt, y: fi, style: bi, className: yi, text: D, rotate90: !0 }), t[115] = D, t[116] = qt, t[117] = fi, t[118] = bi, t[119] = yi, t[120] = w) : w = t[120], t[121] !== Z ? (b = Z.filter(te).map(_i), t[121] = Z, t[122] = b) : b = t[122], F = Di, P = at.map((r) => g(a(r.id)) ? null : /* @__PURE__ */ s.jsxs(vt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (xi) => {
|
|
156
|
+
ri(r), Ut(xi.clientY), ei(xi.clientX), dt?.(r);
|
|
148
157
|
}, onClick: () => {
|
|
149
|
-
(
|
|
150
|
-
}, onMouseMove: (
|
|
151
|
-
|
|
158
|
+
(st || ot) && (ki(tt, r) && Yt ? (pt(void 0), st?.(void 0)) : (pt(r), st?.(r)));
|
|
159
|
+
}, onMouseMove: (xi) => {
|
|
160
|
+
ri(r), Ut(xi.clientY), ei(xi.clientX);
|
|
152
161
|
}, onMouseLeave: () => {
|
|
153
|
-
|
|
162
|
+
ri(void 0), ei(void 0), Ut(void 0), dt?.(void 0);
|
|
154
163
|
}, exit: {
|
|
155
164
|
opacity: 0,
|
|
156
165
|
transition: {
|
|
@@ -158,20 +167,20 @@ function Ki(i) {
|
|
|
158
167
|
}
|
|
159
168
|
}, variants: {
|
|
160
169
|
initial: {
|
|
161
|
-
x:
|
|
170
|
+
x: a(`${r.id}`),
|
|
162
171
|
y: 0,
|
|
163
|
-
opacity:
|
|
172
|
+
opacity: J.length !== 0 ? J.indexOf(r.label) !== -1 ? 0.85 : m : 0.85
|
|
164
173
|
},
|
|
165
174
|
whileInView: {
|
|
166
|
-
x:
|
|
175
|
+
x: a(`${r.id}`),
|
|
167
176
|
y: 0,
|
|
168
|
-
opacity:
|
|
177
|
+
opacity: J.length !== 0 ? J.indexOf(r.label) !== -1 ? 0.85 : m : 0.85,
|
|
169
178
|
transition: {
|
|
170
179
|
duration: o.duration
|
|
171
180
|
}
|
|
172
181
|
}
|
|
173
182
|
}, initial: "initial", animate: O ? "whileInView" : "initial", children: [
|
|
174
|
-
|
|
183
|
+
r.qualitativeRange ? r.qualitativeRange.map((xi, gi) => /* @__PURE__ */ s.jsx(vt.rect, { x: 0, exit: {
|
|
175
184
|
height: 0,
|
|
176
185
|
y: c(0),
|
|
177
186
|
transition: {
|
|
@@ -181,41 +190,41 @@ function Ki(i) {
|
|
|
181
190
|
initial: {
|
|
182
191
|
height: 0,
|
|
183
192
|
y: c(0),
|
|
184
|
-
fill:
|
|
193
|
+
fill: Q[gi]
|
|
185
194
|
},
|
|
186
195
|
whileInView: {
|
|
187
|
-
height: Math.abs(c(pi(
|
|
188
|
-
y: c(pi(
|
|
189
|
-
fill:
|
|
196
|
+
height: Math.abs(c(pi(r.qualitativeRange.filter((vi, wi) => wi <= gi && vi))) - c(pi(r.qualitativeRange.filter((vi, wi) => wi < gi && vi)))),
|
|
197
|
+
y: c(pi(r.qualitativeRange.filter((vi, wi) => wi <= gi && vi))),
|
|
198
|
+
fill: Q[gi],
|
|
190
199
|
transition: {
|
|
191
200
|
duration: o.duration
|
|
192
201
|
}
|
|
193
202
|
}
|
|
194
|
-
}, initial: "initial", animate: O ? "whileInView" : "initial", width:
|
|
195
|
-
|
|
203
|
+
}, initial: "initial", animate: O ? "whileInView" : "initial", width: a.bandwidth() }, gi)) : null,
|
|
204
|
+
r.target && u === "background" ? /* @__PURE__ */ s.jsx(vt.rect, { x: 0, width: a.bandwidth(), exit: {
|
|
196
205
|
height: 0,
|
|
197
206
|
y: c(0),
|
|
198
|
-
fill:
|
|
207
|
+
fill: R,
|
|
199
208
|
transition: {
|
|
200
209
|
duration: o.duration
|
|
201
210
|
}
|
|
202
211
|
}, variants: {
|
|
203
212
|
initial: {
|
|
204
213
|
height: 0,
|
|
205
|
-
fill:
|
|
214
|
+
fill: R,
|
|
206
215
|
y: c(0)
|
|
207
216
|
},
|
|
208
217
|
whileInView: {
|
|
209
|
-
height: Math.abs(c(
|
|
210
|
-
fill:
|
|
211
|
-
y:
|
|
218
|
+
height: Math.abs(c(r.target) - c(0)),
|
|
219
|
+
fill: R,
|
|
220
|
+
y: r.target > 0 ? c(r.target) : c(0),
|
|
212
221
|
transition: {
|
|
213
222
|
duration: o.duration
|
|
214
223
|
}
|
|
215
224
|
}
|
|
216
225
|
}, initial: "initial", animate: O ? "whileInView" : "initial" }) : null,
|
|
217
|
-
|
|
218
|
-
fill:
|
|
226
|
+
r.size ? /* @__PURE__ */ s.jsx(vt.rect, { x: a.bandwidth() * ((1 - d) / 2), width: a.bandwidth() * d, style: {
|
|
227
|
+
fill: Ft
|
|
219
228
|
}, exit: {
|
|
220
229
|
height: 0,
|
|
221
230
|
y: c(0),
|
|
@@ -228,17 +237,17 @@ function Ki(i) {
|
|
|
228
237
|
y: c(0)
|
|
229
238
|
},
|
|
230
239
|
whileInView: {
|
|
231
|
-
height: Math.abs(c(
|
|
232
|
-
y:
|
|
240
|
+
height: Math.abs(c(r.size) - c(0)),
|
|
241
|
+
y: r.size > 0 ? c(r.size) : c(0),
|
|
233
242
|
transition: {
|
|
234
243
|
duration: o.duration
|
|
235
244
|
}
|
|
236
245
|
}
|
|
237
246
|
}, initial: "initial", animate: O ? "whileInView" : "initial" }) : null,
|
|
238
|
-
|
|
247
|
+
r.target && u === "line" ? /* @__PURE__ */ s.jsx(vt.rect, { x: 0, width: a.bandwidth(), exit: {
|
|
239
248
|
y: c(0),
|
|
240
249
|
opacity: 0,
|
|
241
|
-
fill:
|
|
250
|
+
fill: R,
|
|
242
251
|
transition: {
|
|
243
252
|
duration: o.duration
|
|
244
253
|
}
|
|
@@ -246,22 +255,22 @@ function Ki(i) {
|
|
|
246
255
|
initial: {
|
|
247
256
|
y: c(0),
|
|
248
257
|
opacity: 0,
|
|
249
|
-
fill:
|
|
258
|
+
fill: R
|
|
250
259
|
},
|
|
251
260
|
whileInView: {
|
|
252
|
-
y: c(
|
|
261
|
+
y: c(r.target) - ii / 2,
|
|
253
262
|
opacity: 1,
|
|
254
|
-
fill:
|
|
263
|
+
fill: R,
|
|
255
264
|
transition: {
|
|
256
265
|
duration: o.duration
|
|
257
266
|
}
|
|
258
267
|
}
|
|
259
|
-
}, initial: "initial", animate: O ? "whileInView" : "initial", height:
|
|
260
|
-
|
|
261
|
-
|
|
268
|
+
}, initial: "initial", animate: O ? "whileInView" : "initial", height: ii }) : null,
|
|
269
|
+
Pt ? /* @__PURE__ */ s.jsx(qi, { value: `${r.label}`.length < _t ? `${r.label}` : `${`${r.label}`.substring(0, _t)}...`, y: (r.size || 0) < 0 ? 0 : c(0) + 5, x: 0, width: a.bandwidth(), height: (r.size || 0) < 0 ? c(0) - 5 : x.bottom, style: h?.xAxis?.labels, className: l?.xAxis?.labels, alignment: (r.size || 0) < 0 ? "bottom" : "top", animate: o, isInView: O }) : null,
|
|
270
|
+
Zt ? /* @__PURE__ */ s.jsx(vt.text, { x: a.bandwidth() / 2, style: {
|
|
262
271
|
textAnchor: "middle",
|
|
263
|
-
...
|
|
264
|
-
}, className:
|
|
272
|
+
...h?.graphObjectValues || {}
|
|
273
|
+
}, className: ji("graph-value text-sm", !K && Ft.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", l?.graphObjectValues), dy: r.size ? r.size >= 0 ? "-5px" : "1em" : "-5px", exit: {
|
|
265
274
|
opacity: 0,
|
|
266
275
|
transition: {
|
|
267
276
|
duration: o.duration
|
|
@@ -270,52 +279,48 @@ function Ki(i) {
|
|
|
270
279
|
initial: {
|
|
271
280
|
y: c(0),
|
|
272
281
|
opacity: 0,
|
|
273
|
-
fill:
|
|
282
|
+
fill: K || Ft
|
|
274
283
|
},
|
|
275
284
|
whileInView: {
|
|
276
|
-
y: c(
|
|
285
|
+
y: c(r.size || 0),
|
|
277
286
|
opacity: 1,
|
|
278
|
-
fill:
|
|
287
|
+
fill: K || Ft,
|
|
279
288
|
transition: {
|
|
280
289
|
duration: o.duration
|
|
281
290
|
}
|
|
282
291
|
}
|
|
283
|
-
}, initial: "initial", animate: O ? "whileInView" : "initial", children:
|
|
284
|
-
] },
|
|
292
|
+
}, initial: "initial", animate: O ? "whileInView" : "initial", children: Vi(r.size, C, rt, k, Mt) }) : null
|
|
293
|
+
] }, r.label)), L = At ? /* @__PURE__ */ s.jsx(s.Fragment, { children: At.map((r, xi) => /* @__PURE__ */ s.jsx(Bi, { text: r.text, color: r.color, y: c(r.value), x1: 0 - S, x2: f + x.right, classNames: r.classNames, styles: r.styles, animate: o, isInView: O }, xi)) }) : null, t[33] = o, t[34] = D, t[35] = Ft, t[36] = yt, t[37] = Bt, t[38] = l?.graphObjectValues, t[39] = l?.xAxis?.axis, t[40] = l?.xAxis?.labels, t[41] = l?.yAxis?.gridLines, t[42] = l?.yAxis?.labels, t[43] = l?.yAxis?.title, t[44] = Z, t[45] = at, t[46] = ot, t[47] = m, t[48] = kt, t[49] = f, t[50] = Qt, t[51] = J, t[52] = O, t[53] = S, t[54] = x.bottom, t[55] = x.left, t[56] = x.right, t[57] = x.top, t[58] = Xt, t[59] = d, t[60] = Vt, t[61] = tt, t[62] = C, t[63] = zt, t[64] = st, t[65] = dt, t[66] = rt, t[67] = k, t[68] = Q, t[69] = At, t[70] = Yt, t[71] = Pt, t[72] = ni, t[73] = Zt, t[74] = h?.graphObjectValues, t[75] = h?.xAxis?.axis, t[76] = h?.xAxis?.labels, t[77] = h?.yAxis?.gridLines, t[78] = h?.yAxis?.labels, t[79] = h?.yAxis?.title, t[80] = Mt, t[81] = R, t[82] = ii, t[83] = u, t[84] = _t, t[85] = K, t[86] = wt, t[87] = Tt, t[88] = v, t[89] = F, t[90] = B, t[91] = P, t[92] = L, t[93] = W, t[94] = X, t[95] = N, t[96] = w, t[97] = b, t[98] = y, t[99] = Y, t[100] = E, t[101] = G, t[102] = H;
|
|
285
294
|
} else
|
|
286
|
-
|
|
295
|
+
F = t[89], B = t[90], P = t[91], L = t[92], W = t[93], X = t[94], N = t[95], w = t[96], b = t[97], y = t[98], Y = t[99], E = t[100], G = t[101], H = t[102];
|
|
296
|
+
let I;
|
|
297
|
+
t[123] !== F || t[124] !== P || t[125] !== L ? (I = /* @__PURE__ */ s.jsxs(F, { children: [
|
|
298
|
+
P,
|
|
299
|
+
L
|
|
300
|
+
] }), t[123] = F, t[124] = P, t[125] = L, t[126] = I) : I = t[126];
|
|
301
|
+
let ut;
|
|
302
|
+
t[127] !== Z ? (ut = Z.filter(Zi).map(Qi), t[127] = Z, t[128] = ut) : ut = t[128];
|
|
303
|
+
let $;
|
|
304
|
+
t[129] !== W || t[130] !== X || t[131] !== N || t[132] !== w || t[133] !== b || t[134] !== I || t[135] !== ut ? ($ = /* @__PURE__ */ s.jsxs("g", { transform: W, children: [
|
|
305
|
+
X,
|
|
306
|
+
N,
|
|
307
|
+
w,
|
|
308
|
+
b,
|
|
309
|
+
I,
|
|
310
|
+
ut
|
|
311
|
+
] }), t[129] = W, t[130] = X, t[131] = N, t[132] = w, t[133] = b, t[134] = I, t[135] = ut, t[136] = $) : $ = t[136];
|
|
312
|
+
let mt;
|
|
313
|
+
t[137] !== B || t[138] !== y || t[139] !== Y || t[140] !== E || t[141] !== G || t[142] !== H || t[143] !== $ ? (mt = /* @__PURE__ */ s.jsx(B, { width: y, height: Y, viewBox: E, direction: G, ref: H, children: $ }), t[137] = B, t[138] = y, t[139] = Y, t[140] = E, t[141] = G, t[142] = H, t[143] = $, t[144] = mt) : mt = t[144];
|
|
287
314
|
let U;
|
|
288
|
-
t[
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
let K;
|
|
295
|
-
t[125] !== D || t[126] !== G || t[127] !== W || t[128] !== v || t[129] !== V || t[130] !== U || t[131] !== J ? (K = /* @__PURE__ */ n.jsxs("g", { transform: D, children: [
|
|
296
|
-
G,
|
|
297
|
-
W,
|
|
298
|
-
v,
|
|
299
|
-
V,
|
|
315
|
+
t[145] !== l?.tooltip || t[146] !== jt || t[147] !== ai || t[148] !== _ || t[149] !== h?.tooltip || t[150] !== xt ? (U = _ && xt && jt && ai ? /* @__PURE__ */ s.jsx(Ci, { data: _, body: xt, xPos: jt, yPos: ai, backgroundStyle: h?.tooltip, className: l?.tooltip }) : null, t[145] = l?.tooltip, t[146] = jt, t[147] = ai, t[148] = _, t[149] = h?.tooltip, t[150] = xt, t[151] = U) : U = t[151];
|
|
316
|
+
let nt;
|
|
317
|
+
t[152] !== l?.modal || t[153] !== ot || t[154] !== tt ? (nt = ot && tt !== void 0 ? /* @__PURE__ */ s.jsx(Ni, { body: ot, data: tt, setData: pt, className: l?.modal }) : null, t[152] = l?.modal, t[153] = ot, t[154] = tt, t[155] = nt) : nt = t[155];
|
|
318
|
+
let ft;
|
|
319
|
+
return t[156] !== mt || t[157] !== U || t[158] !== nt ? (ft = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
320
|
+
mt,
|
|
300
321
|
U,
|
|
301
|
-
|
|
302
|
-
] }), t[
|
|
303
|
-
let Q;
|
|
304
|
-
t[133] !== I || t[134] !== z || t[135] !== R || t[136] !== S || t[137] !== w || t[138] !== M || t[139] !== K ? (Q = /* @__PURE__ */ n.jsx(I, { width: z, height: R, viewBox: S, direction: w, ref: M, children: K }), t[133] = I, t[134] = z, t[135] = R, t[136] = S, t[137] = w, t[138] = M, t[139] = K, t[140] = Q) : Q = t[140];
|
|
305
|
-
let q;
|
|
306
|
-
t[141] !== l?.tooltip || t[142] !== At || t[143] !== ti || t[144] !== N || t[145] !== f?.tooltip || t[146] !== ct ? (q = N && ct && At && ti ? /* @__PURE__ */ n.jsx(ki, { data: N, body: ct, xPos: At, yPos: ti, backgroundStyle: f?.tooltip, className: l?.tooltip }) : null, t[141] = l?.tooltip, t[142] = At, t[143] = ti, t[144] = N, t[145] = f?.tooltip, t[146] = ct, t[147] = q) : q = t[147];
|
|
307
|
-
let st;
|
|
308
|
-
t[148] !== k || t[149] !== T ? (st = k && T !== void 0 ? /* @__PURE__ */ n.jsx(Ci, { open: T !== void 0, onClose: () => {
|
|
309
|
-
ft(void 0);
|
|
310
|
-
}, children: /* @__PURE__ */ n.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof k == "string" ? {
|
|
311
|
-
__html: Li(k, T)
|
|
312
|
-
} : void 0, children: typeof k == "function" ? k(T) : null }) }) : null, t[148] = k, t[149] = T, t[150] = st) : st = t[150];
|
|
313
|
-
let at;
|
|
314
|
-
return t[151] !== Q || t[152] !== q || t[153] !== st ? (at = /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
315
|
-
Q,
|
|
316
|
-
q,
|
|
317
|
-
st
|
|
318
|
-
] }), t[151] = Q, t[152] = q, t[153] = st, t[154] = at) : at = t[154], at;
|
|
322
|
+
nt
|
|
323
|
+
] }), t[156] = mt, t[157] = U, t[158] = nt, t[159] = ft) : ft = t[159], ft;
|
|
319
324
|
}
|
|
320
325
|
function Qi(i) {
|
|
321
326
|
return i.layer;
|
|
@@ -339,550 +344,575 @@ function ae(i) {
|
|
|
339
344
|
return `${i.id}`;
|
|
340
345
|
}
|
|
341
346
|
function ne(i) {
|
|
342
|
-
return
|
|
347
|
+
return {
|
|
348
|
+
id: i,
|
|
349
|
+
label: i,
|
|
350
|
+
size: null,
|
|
351
|
+
target: null,
|
|
352
|
+
qualitativeRange: null
|
|
353
|
+
};
|
|
343
354
|
}
|
|
344
355
|
function le(i) {
|
|
345
|
-
return
|
|
356
|
+
return i.target;
|
|
346
357
|
}
|
|
347
358
|
function se(i) {
|
|
348
|
-
return i.target;
|
|
359
|
+
return !g(i.target);
|
|
349
360
|
}
|
|
350
361
|
function oe(i) {
|
|
351
|
-
return
|
|
362
|
+
return i.target;
|
|
352
363
|
}
|
|
353
364
|
function re(i) {
|
|
354
|
-
return i.
|
|
365
|
+
return !g(i.target);
|
|
355
366
|
}
|
|
356
367
|
function ce(i) {
|
|
357
|
-
return
|
|
368
|
+
return i.size;
|
|
358
369
|
}
|
|
359
370
|
function ue(i) {
|
|
360
|
-
return i.size;
|
|
371
|
+
return !g(i.size);
|
|
361
372
|
}
|
|
362
373
|
function me(i) {
|
|
363
|
-
return
|
|
374
|
+
return i.size;
|
|
364
375
|
}
|
|
365
376
|
function fe(i) {
|
|
366
|
-
return
|
|
377
|
+
return !g(i.size);
|
|
367
378
|
}
|
|
368
379
|
function he(i) {
|
|
369
|
-
return
|
|
380
|
+
return pi((i.qualitativeRange || []).filter(xe)) || 0;
|
|
370
381
|
}
|
|
371
382
|
function xe(i) {
|
|
383
|
+
return !g(i);
|
|
384
|
+
}
|
|
385
|
+
function de(i) {
|
|
372
386
|
return i.target;
|
|
373
387
|
}
|
|
374
388
|
function ge(i) {
|
|
375
|
-
return !
|
|
389
|
+
return !g(i.size);
|
|
376
390
|
}
|
|
377
391
|
function pe(i) {
|
|
378
392
|
return i.target;
|
|
379
393
|
}
|
|
380
|
-
function
|
|
381
|
-
return !
|
|
394
|
+
function be(i) {
|
|
395
|
+
return !g(i.target);
|
|
382
396
|
}
|
|
383
397
|
function ye(i) {
|
|
384
398
|
return i.size;
|
|
385
399
|
}
|
|
386
|
-
function be(i) {
|
|
387
|
-
return !p(i.size);
|
|
388
|
-
}
|
|
389
400
|
function ve(i) {
|
|
390
|
-
return i.size;
|
|
401
|
+
return !g(i.size);
|
|
391
402
|
}
|
|
392
403
|
function we(i) {
|
|
393
|
-
return
|
|
404
|
+
return i.size;
|
|
394
405
|
}
|
|
395
406
|
function Me(i) {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
407
|
+
return !g(i.size);
|
|
408
|
+
}
|
|
409
|
+
function Ae(i) {
|
|
410
|
+
const t = zi.c(152), {
|
|
411
|
+
data: n,
|
|
412
|
+
topMargin: wt,
|
|
413
|
+
bottomMargin: Qt,
|
|
414
|
+
leftMargin: Ft,
|
|
415
|
+
rightMargin: Mt,
|
|
416
|
+
barColor: k,
|
|
417
|
+
suffix: Bt,
|
|
418
|
+
prefix: Pt,
|
|
419
|
+
barPadding: Zt,
|
|
420
|
+
showValues: ni,
|
|
421
|
+
showTicks: _t,
|
|
422
|
+
truncateBy: li,
|
|
423
|
+
width: Wt,
|
|
424
|
+
height: ti,
|
|
425
|
+
showLabels: ui,
|
|
426
|
+
tooltip: xt,
|
|
427
|
+
onSeriesMouseOver: dt,
|
|
428
|
+
refValues: At,
|
|
429
|
+
highlightedDataPoints: p,
|
|
430
|
+
maxValue: gt,
|
|
431
|
+
minValue: J,
|
|
432
|
+
onSeriesMouseClick: st,
|
|
433
|
+
labelOrder: M,
|
|
434
|
+
rtl: Xt,
|
|
435
|
+
maxBarThickness: Vt,
|
|
436
|
+
minBarThickness: Yt,
|
|
437
|
+
resetSelectionOnDoubleClick: ot,
|
|
438
|
+
detailsOnClick: D,
|
|
439
|
+
barAxisTitle: K,
|
|
440
|
+
valueColor: zt,
|
|
441
|
+
noOfTicks: h,
|
|
428
442
|
styles: l,
|
|
429
|
-
classNames:
|
|
430
|
-
targetStyle:
|
|
431
|
-
targetColor:
|
|
432
|
-
qualitativeRangeColors:
|
|
443
|
+
classNames: u,
|
|
444
|
+
targetStyle: R,
|
|
445
|
+
targetColor: Q,
|
|
446
|
+
qualitativeRangeColors: d,
|
|
433
447
|
measureBarWidthFactor: o,
|
|
434
|
-
animate:
|
|
435
|
-
dimmedOpacity:
|
|
436
|
-
precision:
|
|
437
|
-
customLayers:
|
|
438
|
-
naLabel:
|
|
439
|
-
targetLineThickness:
|
|
440
|
-
} = i,
|
|
448
|
+
animate: m,
|
|
449
|
+
dimmedOpacity: rt,
|
|
450
|
+
precision: Z,
|
|
451
|
+
customLayers: C,
|
|
452
|
+
naLabel: ii,
|
|
453
|
+
targetLineThickness: S
|
|
454
|
+
} = i, Et = wt === void 0 ? 25 : wt, si = Qt === void 0 ? 10 : Qt, Gt = Ft === void 0 ? 100 : Ft, mi = Mt === void 0 ? 40 : Mt, oi = Ai(null);
|
|
441
455
|
let O;
|
|
442
|
-
t[0] !==
|
|
443
|
-
once:
|
|
444
|
-
amount:
|
|
445
|
-
}, t[0] =
|
|
446
|
-
const
|
|
447
|
-
let
|
|
448
|
-
t[3] !==
|
|
449
|
-
top:
|
|
450
|
-
bottom:
|
|
451
|
-
left:
|
|
452
|
-
right:
|
|
453
|
-
}, t[3] =
|
|
454
|
-
const
|
|
455
|
-
let zt;
|
|
456
|
-
t[8] !== a ? (zt = Math.max(...a.filter(We).map(Ge)) < 0 ? 0 : Math.max(...a.filter(Ee).map(Ye)), t[8] = a, t[9] = zt) : zt = t[9];
|
|
457
|
-
const jt = zt;
|
|
456
|
+
t[0] !== m.amount || t[1] !== m.once ? (O = {
|
|
457
|
+
once: m.once,
|
|
458
|
+
amount: m.amount
|
|
459
|
+
}, t[0] = m.amount, t[1] = m.once, t[2] = O) : O = t[2];
|
|
460
|
+
const q = Ti(oi, O), [Ht, x] = ci(void 0), [_, ri] = ci(void 0), [tt, pt] = ci(void 0), [jt, ei] = ci(void 0), ai = K ? Et + 25 : Et;
|
|
461
|
+
let Ut;
|
|
462
|
+
t[3] !== si || t[4] !== Gt || t[5] !== mi || t[6] !== ai ? (Ut = {
|
|
463
|
+
top: ai,
|
|
464
|
+
bottom: si,
|
|
465
|
+
left: Gt,
|
|
466
|
+
right: mi
|
|
467
|
+
}, t[3] = si, t[4] = Gt, t[5] = mi, t[6] = ai, t[7] = Ut) : Ut = t[7];
|
|
468
|
+
const f = Ut, kt = Wt - f.left - f.right, it = ti - f.top - f.bottom;
|
|
458
469
|
let Ct;
|
|
459
|
-
t[
|
|
460
|
-
const
|
|
470
|
+
t[8] !== n ? (Ct = Math.max(...n.filter(Je).map(Ue)) < 0 ? 0 : Math.max(...n.filter(He).map(Ge)), t[8] = n, t[9] = Ct) : Ct = t[9];
|
|
471
|
+
const Ot = Ct;
|
|
461
472
|
let Lt;
|
|
462
|
-
t[
|
|
463
|
-
const
|
|
464
|
-
let
|
|
465
|
-
t[
|
|
466
|
-
const
|
|
473
|
+
t[10] !== n ? (Lt = Math.max(...n.filter(Ee).map(Ye)) < 0 ? 0 : Math.max(...n.filter(Xe).map(We)), t[10] = n, t[11] = Lt) : Lt = t[11];
|
|
474
|
+
const Nt = Lt;
|
|
475
|
+
let It;
|
|
476
|
+
t[12] !== n ? (It = Math.max(...n.map(Be)), t[12] = n, t[13] = It) : It = t[13];
|
|
477
|
+
const $t = It;
|
|
467
478
|
let Tt;
|
|
468
|
-
t[
|
|
469
|
-
const
|
|
470
|
-
let
|
|
471
|
-
t[
|
|
472
|
-
const
|
|
473
|
-
let
|
|
474
|
-
t[
|
|
475
|
-
const
|
|
476
|
-
let
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
479
|
+
t[14] !== Ot || t[15] !== gt || t[16] !== $t || t[17] !== Nt ? (Tt = g(gt) ? Math.max(...[Ot, Nt, $t].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[Ot, Nt, $t].filter(Number.isFinite)) : gt, t[14] = Ot, t[15] = gt, t[16] = $t, t[17] = Nt, t[18] = Tt) : Tt = t[18];
|
|
480
|
+
const Jt = Tt;
|
|
481
|
+
let Dt;
|
|
482
|
+
t[19] !== n ? (Dt = Math.min(...n.filter(Fe).map(qe)) >= 0 ? 0 : Math.min(...n.filter(Se).map(Re)), t[19] = n, t[20] = Dt) : Dt = t[20];
|
|
483
|
+
const Rt = Dt;
|
|
484
|
+
let bt;
|
|
485
|
+
t[21] !== n ? (bt = Math.min(...n.filter(De).map(Te)) >= 0 ? 0 : Math.min(...n.filter($e).map(Ie)), t[21] = n, t[22] = bt) : bt = t[22];
|
|
486
|
+
const St = bt;
|
|
487
|
+
let v;
|
|
488
|
+
t[23] !== Rt || t[24] !== J || t[25] !== St ? (v = g(J) ? Math.min(...[Rt, St].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[Rt, St].filter(Number.isFinite)) : J, t[23] = Rt, t[24] = J, t[25] = St, t[26] = v) : v = t[26];
|
|
489
|
+
const et = v;
|
|
490
|
+
let at;
|
|
491
|
+
if (t[27] !== n || t[28] !== M) {
|
|
492
|
+
const a = /* @__PURE__ */ new Set(), A = n.map((z, j) => {
|
|
493
|
+
const T = M ? `${z.label}` : `${j}`;
|
|
494
|
+
return a.add(T), {
|
|
495
|
+
...z,
|
|
496
|
+
id: T
|
|
497
|
+
};
|
|
498
|
+
}), ht = M ? M.filter((z) => !a.has(z)) : [];
|
|
499
|
+
at = [...A, ...ht.map(Ne)], t[27] = n, t[28] = M, t[29] = at;
|
|
500
|
+
} else
|
|
501
|
+
at = t[29];
|
|
502
|
+
const ct = at;
|
|
503
|
+
let yt;
|
|
504
|
+
t[30] !== ct || t[31] !== M ? (yt = M ?? ct.map(Le), t[30] = ct, t[31] = M, t[32] = yt) : yt = t[32];
|
|
505
|
+
const F = yt;
|
|
506
|
+
let B, P, L, W, X, N, w, b, y, Y, E, G, H, I;
|
|
507
|
+
if (t[33] !== m || t[34] !== K || t[35] !== k || t[36] !== F || t[37] !== Zt || t[38] !== u?.graphObjectValues || t[39] !== u?.xAxis?.gridLines || t[40] !== u?.xAxis?.labels || t[41] !== u?.xAxis?.title || t[42] !== u?.yAxis?.axis || t[43] !== u?.yAxis?.labels || t[44] !== C || t[45] !== ct || t[46] !== D || t[47] !== rt || t[48] !== it || t[49] !== kt || t[50] !== ti || t[51] !== p || t[52] !== q || t[53] !== f.bottom || t[54] !== f.left || t[55] !== f.top || t[56] !== Vt || t[57] !== o || t[58] !== Yt || t[59] !== _ || t[60] !== ii || t[61] !== h || t[62] !== st || t[63] !== dt || t[64] !== Z || t[65] !== Pt || t[66] !== d || t[67] !== At || t[68] !== ot || t[69] !== Xt || t[70] !== ui || t[71] !== _t || t[72] !== ni || t[73] !== l?.graphObjectValues || t[74] !== l?.xAxis?.gridLines || t[75] !== l?.xAxis?.labels || t[76] !== l?.xAxis?.title || t[77] !== l?.yAxis?.axis || t[78] !== l?.yAxis?.labels || t[79] !== Bt || t[80] !== Q || t[81] !== S || t[82] !== R || t[83] !== Et || t[84] !== li || t[85] !== zt || t[86] !== Wt || t[87] !== Jt || t[88] !== et) {
|
|
508
|
+
const a = Ii().domain([et, Jt]).range([0, kt]).nice(), A = $i().domain(F).range([0, Yt ? Math.max(it, Yt * F.length) : Vt ? Math.min(it, Vt * F.length) : it]).paddingInner(Zt), ht = a.ticks(h);
|
|
509
|
+
P = vt.svg, Y = `${Wt}px`, E = `${ti}px`, G = `0 0 ${Wt} ${ti}`, H = "ltr", I = oi, X = `translate(${f.left},${f.top})`, N = _t ? /* @__PURE__ */ s.jsx(Wi, { values: ht.filter(Oe), x: ht.filter(Ce).map((e) => a(e)), y1: 0 - Et, y2: it + f.bottom, styles: {
|
|
485
510
|
gridLines: l?.xAxis?.gridLines,
|
|
486
511
|
labels: l?.xAxis?.labels
|
|
487
512
|
}, classNames: {
|
|
488
|
-
gridLines:
|
|
489
|
-
labels:
|
|
490
|
-
}, suffix:
|
|
491
|
-
const
|
|
492
|
-
t[
|
|
493
|
-
const
|
|
494
|
-
let
|
|
495
|
-
t[
|
|
496
|
-
axis:
|
|
497
|
-
}, t[
|
|
498
|
-
const
|
|
499
|
-
let
|
|
500
|
-
t[
|
|
501
|
-
axis:
|
|
502
|
-
}, t[
|
|
503
|
-
x(e),
|
|
513
|
+
gridLines: u?.xAxis?.gridLines,
|
|
514
|
+
labels: u?.xAxis?.labels
|
|
515
|
+
}, suffix: Bt, prefix: Pt, labelType: "secondary", showGridLines: !0, precision: Z }) : null;
|
|
516
|
+
const z = kt / 2, j = 0 - f.top + 15, T = l?.xAxis?.title, Kt = u?.xAxis?.title;
|
|
517
|
+
t[103] !== K || t[104] !== z || t[105] !== j || t[106] !== T || t[107] !== Kt ? (w = /* @__PURE__ */ s.jsx(Li, { x: z, y: j, style: T, className: Kt, text: K }), t[103] = K, t[104] = z, t[105] = j, t[106] = T, t[107] = Kt, t[108] = w) : w = t[108];
|
|
518
|
+
const V = u?.yAxis?.axis;
|
|
519
|
+
let lt;
|
|
520
|
+
t[109] !== V ? (lt = {
|
|
521
|
+
axis: V
|
|
522
|
+
}, t[109] = V, t[110] = lt) : lt = t[110];
|
|
523
|
+
const di = l?.yAxis?.axis;
|
|
524
|
+
let hi;
|
|
525
|
+
t[111] !== di ? (hi = {
|
|
526
|
+
axis: di
|
|
527
|
+
}, t[111] = di, t[112] = hi) : hi = t[112], b = /* @__PURE__ */ s.jsx(Oi, { x1: a(et < 0 ? 0 : et), x2: a(et < 0 ? 0 : et), y1: -2.5, y2: it + f.bottom, classNames: lt, styles: hi }), t[113] !== C ? (y = C.filter(ke).map(je), t[113] = C, t[114] = y) : y = t[114], B = Di, L = ct.map((e) => g(A(e.id)) ? null : /* @__PURE__ */ s.jsxs(vt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (qt) => {
|
|
528
|
+
x(e), ei(qt.clientY), pt(qt.clientX), dt?.(e);
|
|
504
529
|
}, onClick: () => {
|
|
505
|
-
(
|
|
506
|
-
}, onMouseMove: (
|
|
507
|
-
x(e),
|
|
530
|
+
(st || D) && (ki(_, e) && ot ? (ri(void 0), st?.(void 0)) : (ri(e), st?.(e)));
|
|
531
|
+
}, onMouseMove: (qt) => {
|
|
532
|
+
x(e), ei(qt.clientY), pt(qt.clientX);
|
|
508
533
|
}, onMouseLeave: () => {
|
|
509
|
-
x(void 0),
|
|
534
|
+
x(void 0), pt(void 0), ei(void 0), dt?.(void 0);
|
|
510
535
|
}, exit: {
|
|
511
536
|
opacity: 0,
|
|
512
537
|
transition: {
|
|
513
|
-
duration:
|
|
538
|
+
duration: m.duration
|
|
514
539
|
}
|
|
515
540
|
}, variants: {
|
|
516
541
|
initial: {
|
|
517
542
|
x: 0,
|
|
518
|
-
y:
|
|
519
|
-
opacity:
|
|
543
|
+
y: A(`${e.id}`),
|
|
544
|
+
opacity: p.length !== 0 ? p.indexOf(e.label) !== -1 ? 0.85 : rt : 0.85
|
|
520
545
|
},
|
|
521
546
|
whileInView: {
|
|
522
547
|
x: 0,
|
|
523
|
-
y:
|
|
524
|
-
opacity:
|
|
548
|
+
y: A(`${e.id}`),
|
|
549
|
+
opacity: p.length !== 0 ? p.indexOf(e.label) !== -1 ? 0.85 : rt : 0.85,
|
|
525
550
|
transition: {
|
|
526
|
-
duration:
|
|
551
|
+
duration: m.duration
|
|
527
552
|
}
|
|
528
553
|
}
|
|
529
|
-
}, initial: "initial", animate:
|
|
530
|
-
e.qualitativeRange ? e.qualitativeRange.map((
|
|
554
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial", children: [
|
|
555
|
+
e.qualitativeRange ? e.qualitativeRange.map((qt, fi) => /* @__PURE__ */ s.jsx(vt.rect, { exit: {
|
|
531
556
|
width: 0,
|
|
532
|
-
x:
|
|
557
|
+
x: a(0),
|
|
533
558
|
transition: {
|
|
534
|
-
duration:
|
|
559
|
+
duration: m.duration
|
|
535
560
|
}
|
|
536
561
|
}, variants: {
|
|
537
562
|
initial: {
|
|
538
|
-
x:
|
|
563
|
+
x: a(0),
|
|
539
564
|
width: 0,
|
|
540
|
-
fill:
|
|
565
|
+
fill: d[fi]
|
|
541
566
|
},
|
|
542
567
|
whileInView: {
|
|
543
|
-
x:
|
|
544
|
-
width:
|
|
545
|
-
fill:
|
|
568
|
+
x: a(fi === 0 ? 0 : pi(e.qualitativeRange.filter((bi, yi) => yi < fi && bi))),
|
|
569
|
+
width: a(qt),
|
|
570
|
+
fill: d[fi],
|
|
546
571
|
transition: {
|
|
547
|
-
duration:
|
|
572
|
+
duration: m.duration
|
|
548
573
|
}
|
|
549
574
|
}
|
|
550
|
-
}, initial: "initial", animate:
|
|
551
|
-
e.target &&
|
|
575
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial", y: 0, height: A.bandwidth() }, fi)) : null,
|
|
576
|
+
e.target && R === "background" ? /* @__PURE__ */ s.jsx(vt.rect, { y: 0, x: e.target >= 0 ? a(0) : a(e.target), height: A.bandwidth(), exit: {
|
|
552
577
|
width: 0,
|
|
553
|
-
x:
|
|
554
|
-
fill:
|
|
578
|
+
x: a(0),
|
|
579
|
+
fill: Q,
|
|
555
580
|
transition: {
|
|
556
|
-
duration:
|
|
581
|
+
duration: m.duration
|
|
557
582
|
}
|
|
558
583
|
}, variants: {
|
|
559
584
|
initial: {
|
|
560
|
-
x:
|
|
561
|
-
fill:
|
|
585
|
+
x: a(0),
|
|
586
|
+
fill: Q,
|
|
562
587
|
width: 0
|
|
563
588
|
},
|
|
564
589
|
whileInView: {
|
|
565
|
-
x: e.target >= 0 ?
|
|
566
|
-
fill:
|
|
567
|
-
width: e.target >= 0 ?
|
|
590
|
+
x: e.target >= 0 ? a(0) : a(e.target),
|
|
591
|
+
fill: Q,
|
|
592
|
+
width: e.target >= 0 ? a(e.target) - a(0) : a(0) - a(e.target),
|
|
568
593
|
transition: {
|
|
569
|
-
duration:
|
|
594
|
+
duration: m.duration
|
|
570
595
|
}
|
|
571
596
|
}
|
|
572
|
-
}, initial: "initial", animate:
|
|
573
|
-
e.size ? /* @__PURE__ */
|
|
574
|
-
fill:
|
|
575
|
-
}, height:
|
|
597
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial" }) : null,
|
|
598
|
+
e.size ? /* @__PURE__ */ s.jsx(vt.rect, { y: A.bandwidth() * ((1 - o) / 2), style: {
|
|
599
|
+
fill: k
|
|
600
|
+
}, height: A.bandwidth() * o, exit: {
|
|
576
601
|
width: 0,
|
|
577
|
-
x:
|
|
602
|
+
x: a(0),
|
|
578
603
|
transition: {
|
|
579
|
-
duration:
|
|
604
|
+
duration: m.duration
|
|
580
605
|
}
|
|
581
606
|
}, variants: {
|
|
582
607
|
initial: {
|
|
583
|
-
x:
|
|
608
|
+
x: a(0),
|
|
584
609
|
width: 0
|
|
585
610
|
},
|
|
586
611
|
whileInView: {
|
|
587
|
-
x: e.size >= 0 ?
|
|
588
|
-
width: e.size >= 0 ?
|
|
612
|
+
x: e.size >= 0 ? a(0) : a(e.size),
|
|
613
|
+
width: e.size >= 0 ? a(e.size) - a(0) : a(0) - a(e.size),
|
|
589
614
|
transition: {
|
|
590
|
-
duration:
|
|
615
|
+
duration: m.duration
|
|
591
616
|
}
|
|
592
617
|
}
|
|
593
|
-
}, initial: "initial", animate:
|
|
594
|
-
e.target &&
|
|
618
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial" }) : null,
|
|
619
|
+
e.target && R === "line" ? /* @__PURE__ */ s.jsx(vt.rect, { y: 0, height: A.bandwidth(), width: S, exit: {
|
|
595
620
|
opacity: 0,
|
|
596
|
-
x:
|
|
597
|
-
fill:
|
|
621
|
+
x: a(0),
|
|
622
|
+
fill: Q,
|
|
598
623
|
transition: {
|
|
599
|
-
duration:
|
|
624
|
+
duration: m.duration
|
|
600
625
|
}
|
|
601
626
|
}, variants: {
|
|
602
627
|
initial: {
|
|
603
|
-
x:
|
|
628
|
+
x: a(0),
|
|
604
629
|
opacity: 0,
|
|
605
|
-
fill:
|
|
630
|
+
fill: Q
|
|
606
631
|
},
|
|
607
632
|
whileInView: {
|
|
608
|
-
x:
|
|
633
|
+
x: a(e.target) - S / 2,
|
|
609
634
|
opacity: 1,
|
|
610
|
-
fill:
|
|
635
|
+
fill: Q,
|
|
611
636
|
transition: {
|
|
612
|
-
duration:
|
|
637
|
+
duration: m.duration
|
|
613
638
|
}
|
|
614
639
|
}
|
|
615
|
-
}, initial: "initial", animate:
|
|
616
|
-
|
|
617
|
-
|
|
640
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial" }) : null,
|
|
641
|
+
ui ? /* @__PURE__ */ s.jsx(Xi, { value: `${e.label}`.length < li ? `${e.label}` : `${`${e.label}`.substring(0, li)}...`, y: 0, x: (e.size || 0) < 0 ? a(0) : 0 - f.left, width: (e.size || 0) < 0 ? Wt - a(0) : a(0) + f.left, height: A.bandwidth(), alignment: e.size && e.size < 0 ? "left" : "right", style: l?.yAxis?.labels, className: u?.yAxis?.labels, animate: m, isInView: q }) : null,
|
|
642
|
+
ni ? /* @__PURE__ */ s.jsx(vt.text, { y: A.bandwidth() / 2, style: {
|
|
618
643
|
textAnchor: e.size && e.size < 0 ? "end" : "start",
|
|
619
644
|
...l?.graphObjectValues || {}
|
|
620
|
-
}, className:
|
|
645
|
+
}, className: ji("graph-value text-sm", !zt && k.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", u?.graphObjectValues), dx: e.size && e.size < 0 ? -5 : 5, dy: "0.33em", exit: {
|
|
621
646
|
opacity: 0,
|
|
622
647
|
transition: {
|
|
623
|
-
duration:
|
|
648
|
+
duration: m.duration
|
|
624
649
|
}
|
|
625
650
|
}, variants: {
|
|
626
651
|
initial: {
|
|
627
|
-
x:
|
|
652
|
+
x: a(0),
|
|
628
653
|
opacity: 0,
|
|
629
|
-
fill:
|
|
654
|
+
fill: zt || k
|
|
630
655
|
},
|
|
631
656
|
whileInView: {
|
|
632
|
-
x: e.size ?
|
|
657
|
+
x: e.size ? a(e.size) : a(0),
|
|
633
658
|
opacity: 1,
|
|
634
|
-
fill:
|
|
659
|
+
fill: zt || k,
|
|
635
660
|
transition: {
|
|
636
|
-
duration:
|
|
661
|
+
duration: m.duration
|
|
637
662
|
}
|
|
638
663
|
}
|
|
639
|
-
}, initial: "initial", animate:
|
|
640
|
-
] }, e.label)),
|
|
664
|
+
}, initial: "initial", animate: q ? "whileInView" : "initial", children: Vi(e.size, ii, Z, Pt, Bt) }) : null
|
|
665
|
+
] }, e.label)), W = At ? /* @__PURE__ */ s.jsx(s.Fragment, { children: At.map((e, qt) => /* @__PURE__ */ s.jsx(Fi, { text: e.text, color: e.color, x: a(e.value), y1: 0 - f.top, y2: it + f.bottom, textSide: a(e.value) > kt * 0.75 || Xt ? "left" : "right", classNames: e.classNames, styles: e.styles, animate: m, isInView: q }, qt)) }) : null, t[33] = m, t[34] = K, t[35] = k, t[36] = F, t[37] = Zt, t[38] = u?.graphObjectValues, t[39] = u?.xAxis?.gridLines, t[40] = u?.xAxis?.labels, t[41] = u?.xAxis?.title, t[42] = u?.yAxis?.axis, t[43] = u?.yAxis?.labels, t[44] = C, t[45] = ct, t[46] = D, t[47] = rt, t[48] = it, t[49] = kt, t[50] = ti, t[51] = p, t[52] = q, t[53] = f.bottom, t[54] = f.left, t[55] = f.top, t[56] = Vt, t[57] = o, t[58] = Yt, t[59] = _, t[60] = ii, t[61] = h, t[62] = st, t[63] = dt, t[64] = Z, t[65] = Pt, t[66] = d, t[67] = At, t[68] = ot, t[69] = Xt, t[70] = ui, t[71] = _t, t[72] = ni, t[73] = l?.graphObjectValues, t[74] = l?.xAxis?.gridLines, t[75] = l?.xAxis?.labels, t[76] = l?.xAxis?.title, t[77] = l?.yAxis?.axis, t[78] = l?.yAxis?.labels, t[79] = Bt, t[80] = Q, t[81] = S, t[82] = R, t[83] = Et, t[84] = li, t[85] = zt, t[86] = Wt, t[87] = Jt, t[88] = et, t[89] = B, t[90] = P, t[91] = L, t[92] = W, t[93] = X, t[94] = N, t[95] = w, t[96] = b, t[97] = y, t[98] = Y, t[99] = E, t[100] = G, t[101] = H, t[102] = I;
|
|
641
666
|
} else
|
|
642
|
-
|
|
643
|
-
let
|
|
644
|
-
t[
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
] }), t[
|
|
648
|
-
let
|
|
649
|
-
t[
|
|
650
|
-
let
|
|
651
|
-
t[
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
] }), t[
|
|
659
|
-
let
|
|
660
|
-
t[
|
|
661
|
-
let
|
|
662
|
-
t[
|
|
663
|
-
let
|
|
664
|
-
t[
|
|
665
|
-
li(void 0);
|
|
666
|
-
}, children: /* @__PURE__ */ n.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof A == "string" ? {
|
|
667
|
-
__html: Li(A, N)
|
|
668
|
-
} : void 0, children: typeof A == "function" ? A(N) : null }) }) : null, t[140] = A, t[141] = N, t[142] = at) : at = t[142];
|
|
667
|
+
B = t[89], P = t[90], L = t[91], W = t[92], X = t[93], N = t[94], w = t[95], b = t[96], y = t[97], Y = t[98], E = t[99], G = t[100], H = t[101], I = t[102];
|
|
668
|
+
let ut;
|
|
669
|
+
t[115] !== B || t[116] !== L || t[117] !== W ? (ut = /* @__PURE__ */ s.jsxs(B, { children: [
|
|
670
|
+
L,
|
|
671
|
+
W
|
|
672
|
+
] }), t[115] = B, t[116] = L, t[117] = W, t[118] = ut) : ut = t[118];
|
|
673
|
+
let $;
|
|
674
|
+
t[119] !== C ? ($ = C.filter(ze).map(Ve), t[119] = C, t[120] = $) : $ = t[120];
|
|
675
|
+
let mt;
|
|
676
|
+
t[121] !== X || t[122] !== N || t[123] !== w || t[124] !== b || t[125] !== y || t[126] !== ut || t[127] !== $ ? (mt = /* @__PURE__ */ s.jsxs("g", { transform: X, children: [
|
|
677
|
+
N,
|
|
678
|
+
w,
|
|
679
|
+
b,
|
|
680
|
+
y,
|
|
681
|
+
ut,
|
|
682
|
+
$
|
|
683
|
+
] }), t[121] = X, t[122] = N, t[123] = w, t[124] = b, t[125] = y, t[126] = ut, t[127] = $, t[128] = mt) : mt = t[128];
|
|
684
|
+
let U;
|
|
685
|
+
t[129] !== P || t[130] !== Y || t[131] !== E || t[132] !== G || t[133] !== H || t[134] !== I || t[135] !== mt ? (U = /* @__PURE__ */ s.jsx(P, { width: Y, height: E, viewBox: G, direction: H, ref: I, children: mt }), t[129] = P, t[130] = Y, t[131] = E, t[132] = G, t[133] = H, t[134] = I, t[135] = mt, t[136] = U) : U = t[136];
|
|
686
|
+
let nt;
|
|
687
|
+
t[137] !== u?.tooltip || t[138] !== tt || t[139] !== jt || t[140] !== Ht || t[141] !== l?.tooltip || t[142] !== xt ? (nt = Ht && xt && tt && jt ? /* @__PURE__ */ s.jsx(Ci, { data: Ht, body: xt, xPos: tt, yPos: jt, backgroundStyle: l?.tooltip, className: u?.tooltip }) : null, t[137] = u?.tooltip, t[138] = tt, t[139] = jt, t[140] = Ht, t[141] = l?.tooltip, t[142] = xt, t[143] = nt) : nt = t[143];
|
|
688
|
+
let ft;
|
|
689
|
+
t[144] !== u?.modal || t[145] !== D || t[146] !== _ ? (ft = D && _ !== void 0 ? /* @__PURE__ */ s.jsx(Ni, { body: D, data: _, setData: ri, className: u?.modal }) : null, t[144] = u?.modal, t[145] = D, t[146] = _, t[147] = ft) : ft = t[147];
|
|
669
690
|
let c;
|
|
670
|
-
return t[
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
] }), t[
|
|
691
|
+
return t[148] !== U || t[149] !== nt || t[150] !== ft ? (c = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
692
|
+
U,
|
|
693
|
+
nt,
|
|
694
|
+
ft
|
|
695
|
+
] }), t[148] = U, t[149] = nt, t[150] = ft, t[151] = c) : c = t[151], c;
|
|
675
696
|
}
|
|
676
|
-
function
|
|
697
|
+
function Ve(i) {
|
|
677
698
|
return i.layer;
|
|
678
699
|
}
|
|
679
|
-
function
|
|
700
|
+
function ze(i) {
|
|
680
701
|
return i.position === "after";
|
|
681
702
|
}
|
|
682
|
-
function
|
|
703
|
+
function je(i) {
|
|
683
704
|
return i.layer;
|
|
684
705
|
}
|
|
685
|
-
function
|
|
706
|
+
function ke(i) {
|
|
686
707
|
return i.position === "before";
|
|
687
708
|
}
|
|
688
709
|
function Ce(i) {
|
|
689
710
|
return i !== 0;
|
|
690
711
|
}
|
|
691
|
-
function
|
|
712
|
+
function Oe(i) {
|
|
692
713
|
return i !== 0;
|
|
693
714
|
}
|
|
694
715
|
function Le(i) {
|
|
695
716
|
return `${i.id}`;
|
|
696
717
|
}
|
|
697
|
-
function Oe(i) {
|
|
698
|
-
return i.target;
|
|
699
|
-
}
|
|
700
718
|
function Ne(i) {
|
|
701
|
-
return
|
|
719
|
+
return {
|
|
720
|
+
id: i,
|
|
721
|
+
label: i,
|
|
722
|
+
size: null,
|
|
723
|
+
target: null,
|
|
724
|
+
qualitativeRange: null
|
|
725
|
+
};
|
|
702
726
|
}
|
|
703
|
-
function
|
|
727
|
+
function Ie(i) {
|
|
704
728
|
return i.target;
|
|
705
729
|
}
|
|
706
730
|
function $e(i) {
|
|
707
|
-
return !
|
|
731
|
+
return !g(i.target);
|
|
708
732
|
}
|
|
709
|
-
function
|
|
710
|
-
return i.
|
|
733
|
+
function Te(i) {
|
|
734
|
+
return i.target;
|
|
711
735
|
}
|
|
712
736
|
function De(i) {
|
|
713
|
-
return !
|
|
737
|
+
return !g(i.target);
|
|
714
738
|
}
|
|
715
739
|
function Re(i) {
|
|
716
740
|
return i.size;
|
|
717
741
|
}
|
|
718
742
|
function Se(i) {
|
|
719
|
-
return !
|
|
743
|
+
return !g(i.size);
|
|
720
744
|
}
|
|
721
745
|
function qe(i) {
|
|
722
|
-
return
|
|
746
|
+
return i.size;
|
|
723
747
|
}
|
|
724
748
|
function Fe(i) {
|
|
725
|
-
return !
|
|
749
|
+
return !g(i.size);
|
|
726
750
|
}
|
|
727
751
|
function Be(i) {
|
|
728
|
-
return i.
|
|
752
|
+
return pi((i.qualitativeRange || []).filter(Pe)) || 0;
|
|
729
753
|
}
|
|
730
754
|
function Pe(i) {
|
|
731
|
-
return !
|
|
755
|
+
return !g(i);
|
|
732
756
|
}
|
|
733
|
-
function
|
|
757
|
+
function We(i) {
|
|
734
758
|
return i.target;
|
|
735
759
|
}
|
|
736
760
|
function Xe(i) {
|
|
737
|
-
return !
|
|
761
|
+
return !g(i.target);
|
|
738
762
|
}
|
|
739
763
|
function Ye(i) {
|
|
740
|
-
return i.
|
|
764
|
+
return i.target;
|
|
741
765
|
}
|
|
742
766
|
function Ee(i) {
|
|
743
|
-
return !
|
|
767
|
+
return !g(i.target);
|
|
744
768
|
}
|
|
745
769
|
function Ge(i) {
|
|
746
770
|
return i.size;
|
|
747
771
|
}
|
|
748
|
-
function
|
|
749
|
-
return !
|
|
750
|
-
}
|
|
751
|
-
function
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
772
|
+
function He(i) {
|
|
773
|
+
return !g(i.size);
|
|
774
|
+
}
|
|
775
|
+
function Ue(i) {
|
|
776
|
+
return i.size;
|
|
777
|
+
}
|
|
778
|
+
function Je(i) {
|
|
779
|
+
return !g(i.size);
|
|
780
|
+
}
|
|
781
|
+
function Oa(i) {
|
|
782
|
+
const t = zi.c(95), {
|
|
783
|
+
data: n,
|
|
784
|
+
graphTitle: wt,
|
|
785
|
+
barColor: Qt,
|
|
786
|
+
barPadding: Ft,
|
|
787
|
+
showTicks: Mt,
|
|
788
|
+
leftMargin: k,
|
|
789
|
+
rightMargin: Bt,
|
|
790
|
+
topMargin: Pt,
|
|
791
|
+
bottomMargin: Zt,
|
|
792
|
+
truncateBy: ni,
|
|
793
|
+
showLabels: _t,
|
|
794
|
+
showValues: li,
|
|
795
|
+
backgroundColor: Wt,
|
|
796
|
+
suffix: ti,
|
|
797
|
+
prefix: ui,
|
|
798
|
+
sources: xt,
|
|
799
|
+
graphDescription: dt,
|
|
800
|
+
height: At,
|
|
801
|
+
width: p,
|
|
802
|
+
footNote: gt,
|
|
803
|
+
colorDomain: J,
|
|
804
|
+
colorLegendTitle: st,
|
|
805
|
+
padding: M,
|
|
806
|
+
relativeHeight: Xt,
|
|
807
|
+
tooltip: Vt,
|
|
808
|
+
onSeriesMouseOver: Yt,
|
|
809
|
+
refValues: ot,
|
|
810
|
+
showColorScale: D,
|
|
811
|
+
graphID: K,
|
|
812
|
+
maxValue: zt,
|
|
813
|
+
minValue: h,
|
|
784
814
|
highlightedDataPoints: l,
|
|
785
|
-
onSeriesMouseClick:
|
|
786
|
-
valueColor:
|
|
787
|
-
orientation:
|
|
788
|
-
styles:
|
|
815
|
+
onSeriesMouseClick: u,
|
|
816
|
+
valueColor: R,
|
|
817
|
+
orientation: Q,
|
|
818
|
+
styles: d,
|
|
789
819
|
classNames: o,
|
|
790
|
-
qualitativeRangeColors:
|
|
791
|
-
targetColor:
|
|
792
|
-
filterNA:
|
|
793
|
-
targetStyle:
|
|
794
|
-
measureBarWidthFactor:
|
|
795
|
-
animate:
|
|
796
|
-
dimmedOpacity:
|
|
797
|
-
precision:
|
|
798
|
-
customLayers:
|
|
799
|
-
naLabel:
|
|
800
|
-
graphDownload:
|
|
820
|
+
qualitativeRangeColors: m,
|
|
821
|
+
targetColor: rt,
|
|
822
|
+
filterNA: Z,
|
|
823
|
+
targetStyle: C,
|
|
824
|
+
measureBarWidthFactor: ii,
|
|
825
|
+
animate: S,
|
|
826
|
+
dimmedOpacity: Et,
|
|
827
|
+
precision: si,
|
|
828
|
+
customLayers: Gt,
|
|
829
|
+
naLabel: mi,
|
|
830
|
+
graphDownload: oi,
|
|
801
831
|
dataDownload: O,
|
|
802
|
-
language:
|
|
803
|
-
theme:
|
|
832
|
+
language: q,
|
|
833
|
+
theme: Ht,
|
|
804
834
|
sortData: x,
|
|
805
|
-
labelOrder:
|
|
806
|
-
minHeight:
|
|
807
|
-
maxBarThickness:
|
|
808
|
-
maxNumberOfBars:
|
|
809
|
-
minBarThickness:
|
|
810
|
-
ariaLabel:
|
|
811
|
-
resetSelectionOnDoubleClick:
|
|
812
|
-
detailsOnClick:
|
|
813
|
-
barAxisTitle:
|
|
814
|
-
noOfTicks:
|
|
815
|
-
targetLineThickness:
|
|
816
|
-
} = i,
|
|
817
|
-
let
|
|
818
|
-
t[0] !== l ? (
|
|
819
|
-
const
|
|
820
|
-
let
|
|
821
|
-
t[2] !==
|
|
822
|
-
const
|
|
823
|
-
let
|
|
824
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
825
|
-
const
|
|
826
|
-
|
|
835
|
+
labelOrder: _,
|
|
836
|
+
minHeight: ri,
|
|
837
|
+
maxBarThickness: tt,
|
|
838
|
+
maxNumberOfBars: pt,
|
|
839
|
+
minBarThickness: jt,
|
|
840
|
+
ariaLabel: ei,
|
|
841
|
+
resetSelectionOnDoubleClick: ai,
|
|
842
|
+
detailsOnClick: Ut,
|
|
843
|
+
barAxisTitle: f,
|
|
844
|
+
noOfTicks: kt,
|
|
845
|
+
targetLineThickness: it
|
|
846
|
+
} = i, Ct = Qt === void 0 ? Mi.primaryColors["blue-600"] : Qt, Ot = Ft === void 0 ? 0.25 : Ft, Lt = Mt === void 0 ? !0 : Mt, Nt = ni === void 0 ? 999 : ni, It = _t === void 0 ? !0 : _t, $t = li === void 0 ? !0 : li, Tt = Wt === void 0 ? !1 : Wt, Jt = ti === void 0 ? "" : ti, Dt = ui === void 0 ? "" : ui, Rt = D === void 0 ? !0 : D;
|
|
847
|
+
let bt;
|
|
848
|
+
t[0] !== l ? (bt = l === void 0 ? [] : l, t[0] = l, t[1] = bt) : bt = t[1];
|
|
849
|
+
const St = bt, v = Q === void 0 ? "vertical" : Q, et = rt === void 0 ? Mi.light.grays["gray-700"] : rt, at = Z === void 0 ? !0 : Z, ct = C === void 0 ? "line" : C, yt = ii === void 0 ? 0.4 : ii, F = S === void 0 ? !1 : S, B = Et === void 0 ? 0.3 : Et, P = si === void 0 ? 2 : si;
|
|
850
|
+
let L;
|
|
851
|
+
t[2] !== Gt ? (L = Gt === void 0 ? [] : Gt, t[2] = Gt, t[3] = L) : L = t[3];
|
|
852
|
+
const W = L, X = mi === void 0 ? "NA" : mi, N = oi === void 0 ? !1 : oi, w = O === void 0 ? !1 : O, b = q === void 0 ? "en" : q, y = Ht === void 0 ? "light" : Ht, Y = ri === void 0 ? 0 : ri, E = ai === void 0 ? !0 : ai, G = kt === void 0 ? 5 : kt, H = it === void 0 ? 2 : it, [I, ut] = ci(0), [$, mt] = ci(0), U = Ai(null), nt = Ai(null), ft = v === "horizontal" ? Ae : Ki;
|
|
853
|
+
let c, a;
|
|
854
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (c = () => {
|
|
855
|
+
const V = new ResizeObserver((lt) => {
|
|
856
|
+
ut(lt[0].target.clientWidth || 620), mt(lt[0].target.clientHeight || 480);
|
|
827
857
|
});
|
|
828
|
-
return
|
|
829
|
-
},
|
|
830
|
-
const
|
|
831
|
-
let
|
|
832
|
-
t[6] !== o?.description || t[7] !== o?.title || t[8] !==
|
|
833
|
-
title:
|
|
834
|
-
description:
|
|
858
|
+
return U.current && V.observe(U.current), () => V.disconnect();
|
|
859
|
+
}, a = [], t[4] = c, t[5] = a) : (c = t[4], a = t[5]), Ri(c, a);
|
|
860
|
+
const A = o?.graphContainer, ht = d?.graphContainer;
|
|
861
|
+
let z;
|
|
862
|
+
t[6] !== o?.description || t[7] !== o?.title || t[8] !== n || t[9] !== w || t[10] !== dt || t[11] !== N || t[12] !== wt || t[13] !== d?.description || t[14] !== d?.title || t[15] !== p ? (z = wt || dt || N || w ? /* @__PURE__ */ s.jsx(Ui, { styles: {
|
|
863
|
+
title: d?.title,
|
|
864
|
+
description: d?.description
|
|
835
865
|
}, classNames: {
|
|
836
866
|
title: o?.title,
|
|
837
867
|
description: o?.description
|
|
838
|
-
}, graphTitle:
|
|
839
|
-
let
|
|
840
|
-
t[17] !==
|
|
841
|
-
|
|
842
|
-
/* @__PURE__ */
|
|
868
|
+
}, graphTitle: wt, graphDescription: dt, width: p, graphDownload: N ? nt : void 0, dataDownload: w ? n.map(ia).filter(ta).length > 0 ? n.map(_e).filter(Ze) : n.filter(Qe) : null }) : null, t[6] = o?.description, t[7] = o?.title, t[8] = n, t[9] = w, t[10] = dt, t[11] = N, t[12] = wt, t[13] = d?.description, t[14] = d?.title, t[15] = p, t[16] = z) : z = t[16];
|
|
869
|
+
let j;
|
|
870
|
+
t[17] !== ft || t[18] !== F || t[19] !== f || t[20] !== Ct || t[21] !== Ot || t[22] !== Zt || t[23] !== o || t[24] !== J || t[25] !== st || t[26] !== W || t[27] !== n || t[28] !== Ut || t[29] !== B || t[30] !== at || t[31] !== St || t[32] !== _ || t[33] !== b || t[34] !== k || t[35] !== tt || t[36] !== pt || t[37] !== zt || t[38] !== yt || t[39] !== jt || t[40] !== h || t[41] !== X || t[42] !== G || t[43] !== u || t[44] !== Yt || t[45] !== v || t[46] !== P || t[47] !== Dt || t[48] !== m || t[49] !== ot || t[50] !== E || t[51] !== Bt || t[52] !== Rt || t[53] !== It || t[54] !== Lt || t[55] !== $t || t[56] !== x || t[57] !== d || t[58] !== Jt || t[59] !== $ || t[60] !== I || t[61] !== et || t[62] !== H || t[63] !== ct || t[64] !== y || t[65] !== Vt || t[66] !== Pt || t[67] !== Nt || t[68] !== R || t[69] !== p ? (j = n.length === 0 ? /* @__PURE__ */ s.jsx(Yi, {}) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
871
|
+
Rt && n.filter(Ke).length !== 0 && J ? /* @__PURE__ */ s.jsx(Ji, { width: p, colorLegendTitle: st, colors: m || Mi[y].sequentialColors.positiveColorsx10, colorDomain: J, showNAColor: !1, className: o?.colorLegend }) : null,
|
|
872
|
+
/* @__PURE__ */ s.jsx(Ei, { ref: U, children: I && $ ? /* @__PURE__ */ s.jsx(ft, { data: x ? Si(n.filter((V) => at ? !g(V.size) : V), [(V) => V.size === void 0 ? x === "asc" ? (v === "horizontal" ? 1 : -1) * (1 / 0) : (v === "horizontal" ? -1 : 1) * (1 / 0) : V.size], [x]).filter((V, lt) => pt ? lt < pt : !0) : n.filter((V) => at ? !g(V.size) : V).filter((V, lt) => pt ? lt < pt : !0), barColor: Ct, targetColor: et, width: I, refValues: ot, height: $, suffix: Jt, prefix: Dt, barPadding: Ot, showLabels: It, showValues: $t, showTicks: Lt, truncateBy: Nt, leftMargin: k, rightMargin: Bt, qualitativeRangeColors: m || Mi[y].sequentialColors.positiveColorsx10, topMargin: Pt, bottomMargin: Zt, tooltip: Vt, onSeriesMouseOver: Yt, maxValue: zt, minValue: h, highlightedDataPoints: St, onSeriesMouseClick: u, labelOrder: _, maxBarThickness: tt, minBarThickness: jt, resetSelectionOnDoubleClick: E, detailsOnClick: Ut, barAxisTitle: f, noOfTicks: G, valueColor: R, styles: d, classNames: o, targetStyle: ct, dimmedOpacity: B, measureBarWidthFactor: yt, animate: F === !0 ? {
|
|
843
873
|
duration: 0.5,
|
|
844
874
|
once: !0,
|
|
845
875
|
amount: 0.5
|
|
846
|
-
} :
|
|
876
|
+
} : F || {
|
|
847
877
|
duration: 0,
|
|
848
878
|
once: !0,
|
|
849
879
|
amount: 0
|
|
850
|
-
}, precision:
|
|
851
|
-
] }), t[17] =
|
|
852
|
-
let
|
|
853
|
-
t[71] !== o?.footnote || t[72] !== o?.source || t[73] !==
|
|
854
|
-
footnote:
|
|
855
|
-
source:
|
|
880
|
+
}, precision: P, customLayers: W, naLabel: X, targetLineThickness: H, rtl: b === "ar" || b === "he" }) : null })
|
|
881
|
+
] }), t[17] = ft, t[18] = F, t[19] = f, t[20] = Ct, t[21] = Ot, t[22] = Zt, t[23] = o, t[24] = J, t[25] = st, t[26] = W, t[27] = n, t[28] = Ut, t[29] = B, t[30] = at, t[31] = St, t[32] = _, t[33] = b, t[34] = k, t[35] = tt, t[36] = pt, t[37] = zt, t[38] = yt, t[39] = jt, t[40] = h, t[41] = X, t[42] = G, t[43] = u, t[44] = Yt, t[45] = v, t[46] = P, t[47] = Dt, t[48] = m, t[49] = ot, t[50] = E, t[51] = Bt, t[52] = Rt, t[53] = It, t[54] = Lt, t[55] = $t, t[56] = x, t[57] = d, t[58] = Jt, t[59] = $, t[60] = I, t[61] = et, t[62] = H, t[63] = ct, t[64] = y, t[65] = Vt, t[66] = Pt, t[67] = Nt, t[68] = R, t[69] = p, t[70] = j) : j = t[70];
|
|
882
|
+
let T;
|
|
883
|
+
t[71] !== o?.footnote || t[72] !== o?.source || t[73] !== gt || t[74] !== xt || t[75] !== d?.footnote || t[76] !== d?.source || t[77] !== p ? (T = xt || gt ? /* @__PURE__ */ s.jsx(Hi, { styles: {
|
|
884
|
+
footnote: d?.footnote,
|
|
885
|
+
source: d?.source
|
|
856
886
|
}, classNames: {
|
|
857
887
|
footnote: o?.footnote,
|
|
858
888
|
source: o?.source
|
|
859
|
-
}, sources:
|
|
860
|
-
let
|
|
861
|
-
return t[79] !==
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
] }), t[79] =
|
|
889
|
+
}, sources: xt, footNote: gt, width: p }) : null, t[71] = o?.footnote, t[72] = o?.source, t[73] = gt, t[74] = xt, t[75] = d?.footnote, t[76] = d?.source, t[77] = p, t[78] = T) : T = t[78];
|
|
890
|
+
let Kt;
|
|
891
|
+
return t[79] !== ei || t[80] !== Tt || t[81] !== K || t[82] !== At || t[83] !== b || t[84] !== Y || t[85] !== M || t[86] !== Xt || t[87] !== A || t[88] !== ht || t[89] !== z || t[90] !== j || t[91] !== T || t[92] !== y || t[93] !== p ? (Kt = /* @__PURE__ */ s.jsxs(Gi, { className: A, style: ht, id: K, ref: nt, "aria-label": ei, backgroundColor: Tt, theme: y, language: b, minHeight: Y, width: p, height: At, relativeHeight: Xt, padding: M, children: [
|
|
892
|
+
z,
|
|
893
|
+
j,
|
|
894
|
+
T
|
|
895
|
+
] }), t[79] = ei, t[80] = Tt, t[81] = K, t[82] = At, t[83] = b, t[84] = Y, t[85] = M, t[86] = Xt, t[87] = A, t[88] = ht, t[89] = z, t[90] = j, t[91] = T, t[92] = y, t[93] = p, t[94] = Kt) : Kt = t[94], Kt;
|
|
866
896
|
}
|
|
867
|
-
function
|
|
897
|
+
function Ke(i) {
|
|
868
898
|
return i.qualitativeRange;
|
|
869
899
|
}
|
|
870
|
-
function
|
|
900
|
+
function Qe(i) {
|
|
871
901
|
return i !== void 0;
|
|
872
902
|
}
|
|
873
|
-
function
|
|
903
|
+
function Ze(i) {
|
|
874
904
|
return i !== void 0;
|
|
875
905
|
}
|
|
876
|
-
function
|
|
906
|
+
function _e(i) {
|
|
877
907
|
return i.data;
|
|
878
908
|
}
|
|
879
|
-
function
|
|
909
|
+
function ta(i) {
|
|
880
910
|
return i !== void 0;
|
|
881
911
|
}
|
|
882
|
-
function
|
|
912
|
+
function ia(i) {
|
|
883
913
|
return i.data;
|
|
884
914
|
}
|
|
885
915
|
export {
|
|
886
|
-
|
|
916
|
+
Oa as BulletChart
|
|
887
917
|
};
|
|
888
918
|
//# sourceMappingURL=BulletChart.js.map
|