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