@undp/data-viz 2.0.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.d.ts +2 -0
- package/dist/AreaChart.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +2 -0
- package/dist/BarGraph.js +1188 -1213
- 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 +126 -131
- 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 +404 -413
- 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 +179 -184
- 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 +268 -273
- 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 +1 -1
- 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 +198 -203
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.d.ts +2 -0
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +364 -373
- 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-ebgfxefq.js} +3 -3
- package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.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 +111 -116
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +2 -0
- package/dist/HybridMap.js +202 -207
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- 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.d.ts +2 -0
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.d.ts +2 -0
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +2 -0
- package/dist/ParetoChart.js +187 -192
- 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 +222 -227
- 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 +1 -1
- 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 +1 -1
- 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/{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-BBV4tAeA.js +330 -0
- package/dist/index-BBV4tAeA.js.map +1 -0
- package/dist/index-CF5hnGvG.cjs +2 -0
- package/dist/index-CF5hnGvG.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- 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/BarGraph.js
CHANGED
|
@@ -1,110 +1,109 @@
|
|
|
1
1
|
import { c as xe, j as i, m as pe } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
2
|
import { useRef as de, useState as Wt, useEffect as we } from "react";
|
|
3
|
-
import { g as
|
|
4
|
-
import { p as
|
|
3
|
+
import { g as Te, N as Ie } from "./getSliderMarks-HIDJ0_Cd.js";
|
|
4
|
+
import { p as Se, f as ye } from "./parse-DlCRUFh_.js";
|
|
5
5
|
import { o as ze } from "./index-BZQYSqar.js";
|
|
6
|
-
import { s as
|
|
6
|
+
import { s as oe } from "./index-CeVNqhMO.js";
|
|
7
7
|
import { i as Ae } from "./index-Bwrro8-q.js";
|
|
8
|
-
import { l as $e } from "./Modal-DGcuAHyK.js";
|
|
9
8
|
import { n as ue } from "./numberFormattingFunction-14YCbkN2.js";
|
|
10
|
-
import { T as
|
|
9
|
+
import { T as $e } from "./Tooltip-Dj5eVppQ.js";
|
|
11
10
|
import { c as _t } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { A as ke } from "./
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { u as
|
|
21
|
-
import { a as
|
|
11
|
+
import { Y as Be } from "./YAxesLabels-a57ZRv-0.js";
|
|
12
|
+
import { A as Oe } from "./Axis-CRyfcLjc.js";
|
|
13
|
+
import { A as ke } from "./AxisTitle-jeI7am8o.js";
|
|
14
|
+
import { X as Pe } from "./XTicksAndGridLines-CObVFSm4.js";
|
|
15
|
+
import { R as Fe, a as He } from "./ReferenceLine-2XCwHXQ4.js";
|
|
16
|
+
import { Y as Xe } from "./YTicksAndGridLines-Blepl7XF.js";
|
|
17
|
+
import { X as Ye } from "./XAxesLabels-Dy8E1SEo.js";
|
|
18
|
+
import { D as Me } from "./DetailsModal-0Ry5nXiC.js";
|
|
19
|
+
import { u as Ce } from "./use-in-view-Cxa7y1TH.js";
|
|
20
|
+
import { a as Ve } from "./linear-BwnDd9KF.js";
|
|
22
21
|
import { b as ge } from "./band-CyHaVft5.js";
|
|
23
|
-
import { A as
|
|
22
|
+
import { A as De } from "./index-BqfRwk1n.js";
|
|
24
23
|
import { m as Zt } from "./proxy-BxkFHwUw.js";
|
|
25
|
-
import { GraphHeader as
|
|
26
|
-
import { GraphFooter as
|
|
27
|
-
import { ColorLegendWithMouseOver as
|
|
24
|
+
import { GraphHeader as Ee } from "./GraphHeader.js";
|
|
25
|
+
import { GraphFooter as Ge } from "./GraphFooter.js";
|
|
26
|
+
import { ColorLegendWithMouseOver as We } from "./ColorLegendWithMouseOver.js";
|
|
28
27
|
import { Colors as ce } from "./Colors.js";
|
|
29
|
-
import { E as
|
|
30
|
-
import { P as
|
|
31
|
-
import { c as ve, d as
|
|
32
|
-
import { u as
|
|
33
|
-
import { a as
|
|
34
|
-
import { s as
|
|
35
|
-
import { a as
|
|
36
|
-
import { g as
|
|
37
|
-
function
|
|
38
|
-
const t = xe.c(
|
|
28
|
+
import { E as Re } from "./EmptyState-BZo1BbAn.js";
|
|
29
|
+
import { P as qe, e as Ue } from "./index-D491FEn1.js";
|
|
30
|
+
import { c as ve, d as _e } from "./ensureCompleteData-DNKEGRiP.js";
|
|
31
|
+
import { u as Le } from "./uniqBy-BHy4I8PK.js";
|
|
32
|
+
import { a as Je, G as Ke } from "./GraphContainer-CRqzdKu2.js";
|
|
33
|
+
import { s as Qe } from "./sort-BIvMlUH1.js";
|
|
34
|
+
import { a as Ze } from "./init-BJFW6EwE.js";
|
|
35
|
+
import { g as Ne } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
36
|
+
function ti(e) {
|
|
37
|
+
const t = xe.c(123), {
|
|
39
38
|
data: m,
|
|
40
39
|
leftMargin: D,
|
|
41
40
|
rightMargin: Xt,
|
|
42
41
|
topMargin: St,
|
|
43
42
|
bottomMargin: gt,
|
|
44
|
-
barColors:
|
|
45
|
-
barPadding:
|
|
46
|
-
showTicks:
|
|
47
|
-
truncateBy:
|
|
43
|
+
barColors: _,
|
|
44
|
+
barPadding: ct,
|
|
45
|
+
showTicks: M,
|
|
46
|
+
truncateBy: j,
|
|
48
47
|
width: y,
|
|
49
|
-
height:
|
|
50
|
-
suffix:
|
|
51
|
-
prefix:
|
|
52
|
-
showValues:
|
|
53
|
-
showLabels:
|
|
54
|
-
tooltip:
|
|
55
|
-
onSeriesMouseOver:
|
|
56
|
-
refValues:
|
|
48
|
+
height: I,
|
|
49
|
+
suffix: zt,
|
|
50
|
+
prefix: nt,
|
|
51
|
+
showValues: jt,
|
|
52
|
+
showLabels: S,
|
|
53
|
+
tooltip: tt,
|
|
54
|
+
onSeriesMouseOver: ut,
|
|
55
|
+
refValues: dt,
|
|
57
56
|
maxValue: Tt,
|
|
58
57
|
minValue: w,
|
|
59
|
-
onSeriesMouseClick:
|
|
60
|
-
selectedColor:
|
|
61
|
-
rtl:
|
|
62
|
-
labelOrder:
|
|
63
|
-
maxBarThickness:
|
|
64
|
-
resetSelectionOnDoubleClick:
|
|
65
|
-
detailsOnClick:
|
|
66
|
-
barAxisTitle:
|
|
67
|
-
valueColor:
|
|
68
|
-
noOfTicks:
|
|
58
|
+
onSeriesMouseClick: et,
|
|
59
|
+
selectedColor: G,
|
|
60
|
+
rtl: F,
|
|
61
|
+
labelOrder: J,
|
|
62
|
+
maxBarThickness: W,
|
|
63
|
+
resetSelectionOnDoubleClick: xt,
|
|
64
|
+
detailsOnClick: B,
|
|
65
|
+
barAxisTitle: R,
|
|
66
|
+
valueColor: H,
|
|
67
|
+
noOfTicks: u,
|
|
69
68
|
styles: s,
|
|
70
|
-
classNames:
|
|
71
|
-
animate:
|
|
72
|
-
colorDomain:
|
|
73
|
-
precision:
|
|
69
|
+
classNames: o,
|
|
70
|
+
animate: d,
|
|
71
|
+
colorDomain: r,
|
|
72
|
+
precision: h,
|
|
74
73
|
customLayers: x,
|
|
75
|
-
naLabel:
|
|
76
|
-
} = e,
|
|
77
|
-
let
|
|
78
|
-
t[0] !==
|
|
79
|
-
once:
|
|
80
|
-
amount:
|
|
81
|
-
}, t[0] =
|
|
82
|
-
const yt =
|
|
83
|
-
let
|
|
84
|
-
t[3] !== Ft || t[4] !==
|
|
74
|
+
naLabel: A
|
|
75
|
+
} = e, K = D === void 0 ? 100 : D, q = Xt === void 0 ? 40 : Xt, rt = St === void 0 ? 25 : St, Ft = gt === void 0 ? 10 : gt, Yt = de(null);
|
|
76
|
+
let X;
|
|
77
|
+
t[0] !== d.amount || t[1] !== d.once ? (X = {
|
|
78
|
+
once: d.once,
|
|
79
|
+
amount: d.amount
|
|
80
|
+
}, t[0] = d.amount, t[1] = d.once, t[2] = X) : X = t[2];
|
|
81
|
+
const yt = Ce(Yt, X), Bt = R ? rt + 25 : rt;
|
|
82
|
+
let n;
|
|
83
|
+
t[3] !== Ft || t[4] !== K || t[5] !== q || t[6] !== Bt ? (n = {
|
|
85
84
|
top: Bt,
|
|
86
85
|
bottom: Ft,
|
|
87
|
-
left:
|
|
88
|
-
right:
|
|
89
|
-
}, t[3] = Ft, t[4] =
|
|
90
|
-
const c =
|
|
91
|
-
let g,
|
|
92
|
-
if (t[8] !==
|
|
93
|
-
let
|
|
94
|
-
t[72] !==
|
|
86
|
+
left: K,
|
|
87
|
+
right: q
|
|
88
|
+
}, t[3] = Ft, t[4] = K, t[5] = q, t[6] = Bt, t[7] = n) : n = t[7];
|
|
89
|
+
const c = n, [T, f] = Wt(void 0), [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), mt = y - c.left - c.right, C = I - c.top - c.bottom;
|
|
90
|
+
let g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft, pt;
|
|
91
|
+
if (t[8] !== d || t[9] !== R || t[10] !== _ || t[11] !== ct || t[12] !== o?.graphObjectValues || t[13] !== o?.xAxis?.gridLines || t[14] !== o?.xAxis?.labels || t[15] !== o?.xAxis?.title || t[16] !== o?.yAxis?.axis || t[17] !== o?.yAxis?.labels || t[18] !== r || t[19] !== x || t[20] !== m || t[21] !== B || t[22] !== C || t[23] !== mt || t[24] !== I || t[25] !== yt || t[26] !== J || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== W || t[31] !== Tt || t[32] !== w || t[33] !== Y || t[34] !== A || t[35] !== u || t[36] !== et || t[37] !== ut || t[38] !== h || t[39] !== nt || t[40] !== dt || t[41] !== xt || t[42] !== F || t[43] !== G || t[44] !== S || t[45] !== M || t[46] !== jt || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== zt || t[54] !== rt || t[55] !== j || t[56] !== H || t[57] !== y) {
|
|
92
|
+
let lt;
|
|
93
|
+
t[72] !== J ? (lt = (v, k) => ({
|
|
95
94
|
...v,
|
|
96
|
-
id:
|
|
97
|
-
}), t[72] =
|
|
98
|
-
const It = m.map(
|
|
99
|
-
|
|
95
|
+
id: J ? `${v.label}` : `${k}`
|
|
96
|
+
}), t[72] = J, t[73] = lt) : lt = t[73];
|
|
97
|
+
const It = m.map(lt), Et = J || It.map(ri), O = Ve().domain([w, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, W ? Math.min(C, W * Et.length) : C]).paddingInner(ct), Nt = ge().domain(m[0].size.map(ni)).range([0, qt.bandwidth()]).paddingInner(0.1), Kt = O.ticks(u);
|
|
98
|
+
Q = Zt.svg, Mt = Yt, st = `${y}px`, Ct = `${I}px`, E = `0 0 ${y} ${I}`, at = "ltr", Z = `translate(${c.left},${c.top})`, U = M ? /* @__PURE__ */ i.jsx(Pe, { values: Kt.filter(li), x: Kt.filter(oi).map((v) => O(v)), y1: 0 - rt, y2: C + c.bottom, styles: {
|
|
100
99
|
gridLines: s?.xAxis?.gridLines,
|
|
101
100
|
labels: s?.xAxis?.labels
|
|
102
101
|
}, classNames: {
|
|
103
|
-
gridLines:
|
|
104
|
-
labels:
|
|
105
|
-
}, suffix:
|
|
106
|
-
const
|
|
107
|
-
t[74] !==
|
|
102
|
+
gridLines: o?.xAxis?.gridLines,
|
|
103
|
+
labels: o?.xAxis?.labels
|
|
104
|
+
}, suffix: zt, prefix: nt, labelType: "secondary", showGridLines: !0, precision: h }) : null;
|
|
105
|
+
const Lt = mt / 2, Qt = 0 - c.top + 15, Ut = s?.xAxis?.title, Ht = o?.xAxis?.title;
|
|
106
|
+
t[74] !== R || t[75] !== Lt || t[76] !== Qt || t[77] !== Ut || t[78] !== Ht ? (V = /* @__PURE__ */ i.jsx(ke, { x: Lt, y: Qt, style: Ut, className: Ht, text: R }), t[74] = R, t[75] = Lt, t[76] = Qt, t[77] = Ut, t[78] = Ht, t[79] = V) : V = t[79], t[80] !== x ? (ht = x.filter(ai).map(si), t[80] = x, t[81] = ht) : ht = t[81], g = De, P = It.map((v) => _t(qt(v.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
|
|
108
107
|
initial: {
|
|
109
108
|
x: 0,
|
|
110
109
|
y: qt(`${v.id}`)
|
|
@@ -113,290 +112,286 @@ function ei(e) {
|
|
|
113
112
|
x: 0,
|
|
114
113
|
y: qt(`${v.id}`),
|
|
115
114
|
transition: {
|
|
116
|
-
duration:
|
|
115
|
+
duration: d.duration
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
}, initial: "initial", animate: yt ? "whileInView" : "initial", exit: {
|
|
120
119
|
opacity: 0,
|
|
121
120
|
transition: {
|
|
122
|
-
duration:
|
|
121
|
+
duration: d.duration
|
|
123
122
|
}
|
|
124
123
|
}, children: [
|
|
125
|
-
v.size.map((k,
|
|
126
|
-
|
|
124
|
+
v.size.map((k, a) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: G ? _[a] === G ? 1 : 0.3 : 0.85, onMouseEnter: (p) => {
|
|
125
|
+
f({
|
|
127
126
|
...v,
|
|
128
|
-
sizeIndex:
|
|
129
|
-
}),
|
|
127
|
+
sizeIndex: a
|
|
128
|
+
}), it(p.clientY), Dt(p.clientX), ut?.({
|
|
130
129
|
...v,
|
|
131
|
-
sizeIndex:
|
|
130
|
+
sizeIndex: a
|
|
132
131
|
});
|
|
133
132
|
}, onMouseMove: (p) => {
|
|
134
|
-
|
|
133
|
+
f({
|
|
135
134
|
...v,
|
|
136
|
-
sizeIndex:
|
|
137
|
-
}),
|
|
135
|
+
sizeIndex: a
|
|
136
|
+
}), it(p.clientY), Dt(p.clientX);
|
|
138
137
|
}, onMouseLeave: () => {
|
|
139
|
-
|
|
138
|
+
f(void 0), Dt(void 0), it(void 0), ut?.(void 0);
|
|
140
139
|
}, onClick: () => {
|
|
141
|
-
(
|
|
140
|
+
(et || B) && (Ae(Y, {
|
|
142
141
|
...v,
|
|
143
|
-
sizeIndex:
|
|
144
|
-
}) &&
|
|
142
|
+
sizeIndex: a
|
|
143
|
+
}) && xt ? (N(void 0), et?.(void 0)) : (N({
|
|
145
144
|
...v,
|
|
146
|
-
sizeIndex:
|
|
147
|
-
}),
|
|
145
|
+
sizeIndex: a
|
|
146
|
+
}), et && et({
|
|
148
147
|
...v,
|
|
149
|
-
sizeIndex:
|
|
148
|
+
sizeIndex: a
|
|
150
149
|
})));
|
|
151
150
|
}, children: [
|
|
152
|
-
_t(k) ? null : /* @__PURE__ */ i.jsx(Zt.rect, { y: Nt(`${
|
|
151
|
+
_t(k) ? null : /* @__PURE__ */ i.jsx(Zt.rect, { y: Nt(`${a}`), variants: {
|
|
153
152
|
initial: {
|
|
154
153
|
width: 0,
|
|
155
|
-
x:
|
|
156
|
-
fill:
|
|
154
|
+
x: O(0),
|
|
155
|
+
fill: _[a]
|
|
157
156
|
},
|
|
158
157
|
whileInView: {
|
|
159
|
-
width: _t(k) ? 0 : k >= 0 ?
|
|
160
|
-
x: k >= 0 ?
|
|
161
|
-
fill:
|
|
158
|
+
width: _t(k) ? 0 : k >= 0 ? O(k) - O(0) : O(0) - O(k),
|
|
159
|
+
x: k >= 0 ? O(0) : O(k),
|
|
160
|
+
fill: _[a],
|
|
162
161
|
transition: {
|
|
163
|
-
duration:
|
|
162
|
+
duration: d.duration
|
|
164
163
|
}
|
|
165
164
|
}
|
|
166
165
|
}, exit: {
|
|
167
166
|
width: 0,
|
|
168
|
-
x:
|
|
167
|
+
x: O(0),
|
|
169
168
|
transition: {
|
|
170
|
-
duration:
|
|
169
|
+
duration: d.duration
|
|
171
170
|
}
|
|
172
171
|
}, height: Nt.bandwidth(), initial: "initial", animate: yt ? "whileInView" : "initial" }),
|
|
173
|
-
|
|
172
|
+
jt ? /* @__PURE__ */ i.jsx(Zt.text, { y: Nt(`${a}`) + Nt.bandwidth() / 2, style: {
|
|
174
173
|
textAnchor: k && k < 0 ? "end" : "start",
|
|
175
174
|
...s?.graphObjectValues || {}
|
|
176
|
-
}, className: pe("graph-value text-sm",
|
|
175
|
+
}, className: pe("graph-value text-sm", o?.graphObjectValues), dx: k && k < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
177
176
|
initial: {
|
|
178
|
-
x:
|
|
177
|
+
x: O(0),
|
|
179
178
|
opacity: 0,
|
|
180
|
-
fill:
|
|
179
|
+
fill: H || _[a]
|
|
181
180
|
},
|
|
182
181
|
whileInView: {
|
|
183
|
-
x:
|
|
182
|
+
x: O(k || 0),
|
|
184
183
|
opacity: 1,
|
|
185
|
-
fill:
|
|
184
|
+
fill: H || _[a],
|
|
186
185
|
transition: {
|
|
187
|
-
duration:
|
|
186
|
+
duration: d.duration
|
|
188
187
|
}
|
|
189
188
|
}
|
|
190
189
|
}, initial: "initial", animate: yt ? "whileInView" : "initial", exit: {
|
|
191
190
|
opacity: 0,
|
|
192
191
|
transition: {
|
|
193
|
-
duration:
|
|
192
|
+
duration: d.duration
|
|
194
193
|
}
|
|
195
|
-
}, children: ue(k,
|
|
196
|
-
] }, `${v.label}-${
|
|
197
|
-
|
|
194
|
+
}, children: ue(k, A, h, nt, zt) }) : null
|
|
195
|
+
] }, `${v.label}-${r[a] || a}`)),
|
|
196
|
+
S ? /* @__PURE__ */ i.jsx(Be, { value: `${v.label}`.length < j ? `${v.label}` : `${`${v.label}`.substring(0, j)}...`, y: 0, x: 0 - c.left, width: O(w < 0 ? 0 : w) + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: o?.yAxis?.labels, animate: d, isInView: yt }) : null
|
|
198
197
|
] }, v.label));
|
|
199
|
-
const
|
|
198
|
+
const kt = o?.yAxis?.axis;
|
|
200
199
|
let Rt;
|
|
201
|
-
t[82] !==
|
|
202
|
-
axis:
|
|
203
|
-
}, t[82] =
|
|
200
|
+
t[82] !== kt ? (Rt = {
|
|
201
|
+
axis: kt
|
|
202
|
+
}, t[82] = kt, t[83] = Rt) : Rt = t[83];
|
|
204
203
|
const Jt = s?.yAxis?.axis;
|
|
205
|
-
let
|
|
206
|
-
t[84] !== Jt ? (
|
|
204
|
+
let z;
|
|
205
|
+
t[84] !== Jt ? (z = {
|
|
207
206
|
axis: Jt
|
|
208
|
-
}, t[84] = Jt, t[85] =
|
|
207
|
+
}, t[84] = Jt, t[85] = z) : z = t[85], ft = /* @__PURE__ */ i.jsx(Oe, { x1: O(w < 0 ? 0 : w), x2: O(w < 0 ? 0 : w), y1: -2.5, y2: C + c.bottom, classNames: Rt, styles: z }), pt = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((v, k) => /* @__PURE__ */ i.jsx(Fe, { text: v.text, color: v.color, x: O(v.value), y1: 0 - c.top, y2: C + c.bottom, textSide: O(v.value) > mt * 0.75 || F ? "left" : "right", classNames: v.classNames, styles: v.styles, animate: d, isInView: yt }, k)) }) : null, t[8] = d, t[9] = R, t[10] = _, t[11] = ct, t[12] = o?.graphObjectValues, t[13] = o?.xAxis?.gridLines, t[14] = o?.xAxis?.labels, t[15] = o?.xAxis?.title, t[16] = o?.yAxis?.axis, t[17] = o?.yAxis?.labels, t[18] = r, t[19] = x, t[20] = m, t[21] = B, t[22] = C, t[23] = mt, t[24] = I, t[25] = yt, t[26] = J, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = W, t[31] = Tt, t[32] = w, t[33] = Y, t[34] = A, t[35] = u, t[36] = et, t[37] = ut, t[38] = h, t[39] = nt, t[40] = dt, t[41] = xt, t[42] = F, t[43] = G, t[44] = S, t[45] = M, t[46] = jt, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = zt, t[54] = rt, t[55] = j, t[56] = H, t[57] = y, t[58] = g, t[59] = Q, t[60] = Z, t[61] = U, t[62] = V, t[63] = ht, t[64] = Mt, t[65] = st, t[66] = Ct, t[67] = E, t[68] = at, t[69] = P, t[70] = ft, t[71] = pt;
|
|
209
208
|
} else
|
|
210
|
-
g = t[58],
|
|
209
|
+
g = t[58], Q = t[59], Z = t[60], U = t[61], V = t[62], ht = t[63], Mt = t[64], st = t[65], Ct = t[66], E = t[67], at = t[68], P = t[69], ft = t[70], pt = t[71];
|
|
211
210
|
let vt;
|
|
212
|
-
t[86] !== g || t[87] !==
|
|
213
|
-
|
|
211
|
+
t[86] !== g || t[87] !== P || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
|
|
212
|
+
P,
|
|
214
213
|
ft,
|
|
215
214
|
pt
|
|
216
|
-
] }), t[86] = g, t[87] =
|
|
215
|
+
] }), t[86] = g, t[87] = P, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
|
|
217
216
|
let wt;
|
|
218
|
-
t[91] !== x ? (wt = x.filter(
|
|
219
|
-
let
|
|
220
|
-
t[93] !==
|
|
221
|
-
|
|
222
|
-
|
|
217
|
+
t[91] !== x ? (wt = x.filter(ii).map(ei), t[91] = x, t[92] = wt) : wt = t[92];
|
|
218
|
+
let ot;
|
|
219
|
+
t[93] !== Z || t[94] !== U || t[95] !== V || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (ot = /* @__PURE__ */ i.jsxs("g", { transform: Z, children: [
|
|
220
|
+
U,
|
|
221
|
+
V,
|
|
223
222
|
ht,
|
|
224
223
|
vt,
|
|
225
224
|
wt
|
|
226
|
-
] }), t[93] =
|
|
225
|
+
] }), t[93] = Z, t[94] = U, t[95] = V, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = ot) : ot = t[99];
|
|
227
226
|
let At;
|
|
228
|
-
t[100] !==
|
|
227
|
+
t[100] !== Q || t[101] !== Mt || t[102] !== st || t[103] !== Ct || t[104] !== E || t[105] !== at || t[106] !== ot ? (At = /* @__PURE__ */ i.jsx(Q, { ref: Mt, width: st, height: Ct, viewBox: E, direction: at, children: ot }), t[100] = Q, t[101] = Mt, t[102] = st, t[103] = Ct, t[104] = E, t[105] = at, t[106] = ot, t[107] = At) : At = t[107];
|
|
229
228
|
let $t;
|
|
230
|
-
t[108] !==
|
|
229
|
+
t[108] !== o?.tooltip || t[109] !== $ || t[110] !== bt || t[111] !== T || t[112] !== s?.tooltip || t[113] !== tt ? ($t = T && tt && $ && bt ? /* @__PURE__ */ i.jsx($e, { data: T, body: tt, xPos: $, yPos: bt, backgroundStyle: s?.tooltip, className: o?.tooltip }) : null, t[108] = o?.tooltip, t[109] = $, t[110] = bt, t[111] = T, t[112] = s?.tooltip, t[113] = tt, t[114] = $t) : $t = t[114];
|
|
231
230
|
let Ot;
|
|
232
|
-
t[115] !==
|
|
233
|
-
S(void 0);
|
|
234
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
|
|
235
|
-
__html: Me(O, V)
|
|
236
|
-
} : void 0, children: typeof O == "function" ? O(V) : null }) }) : null, t[115] = O, t[116] = V, t[117] = Ot) : Ot = t[117];
|
|
231
|
+
t[115] !== o?.modal || t[116] !== B || t[117] !== Y ? (Ot = B && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: B, data: Y, setData: N, className: o?.modal }) : null, t[115] = o?.modal, t[116] = B, t[117] = Y, t[118] = Ot) : Ot = t[118];
|
|
237
232
|
let b;
|
|
238
|
-
return t[
|
|
233
|
+
return t[119] !== At || t[120] !== $t || t[121] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
239
234
|
At,
|
|
240
235
|
$t,
|
|
241
236
|
Ot
|
|
242
|
-
] }), t[
|
|
237
|
+
] }), t[119] = At, t[120] = $t, t[121] = Ot, t[122] = b) : b = t[122], b;
|
|
243
238
|
}
|
|
244
|
-
function
|
|
239
|
+
function ei(e) {
|
|
245
240
|
return e.layer;
|
|
246
241
|
}
|
|
247
|
-
function
|
|
242
|
+
function ii(e) {
|
|
248
243
|
return e.position === "after";
|
|
249
244
|
}
|
|
250
|
-
function
|
|
245
|
+
function si(e) {
|
|
251
246
|
return e.layer;
|
|
252
247
|
}
|
|
253
|
-
function
|
|
248
|
+
function ai(e) {
|
|
254
249
|
return e.position === "before";
|
|
255
250
|
}
|
|
256
|
-
function
|
|
251
|
+
function oi(e) {
|
|
257
252
|
return e !== 0;
|
|
258
253
|
}
|
|
259
|
-
function
|
|
254
|
+
function li(e) {
|
|
260
255
|
return e !== 0;
|
|
261
256
|
}
|
|
262
|
-
function
|
|
257
|
+
function ni(e, t) {
|
|
263
258
|
return `${t}`;
|
|
264
259
|
}
|
|
265
|
-
function
|
|
260
|
+
function ri(e) {
|
|
266
261
|
return `${e.id}`;
|
|
267
262
|
}
|
|
268
|
-
function
|
|
269
|
-
const t = xe.c(
|
|
263
|
+
function ci(e) {
|
|
264
|
+
const t = xe.c(131), {
|
|
270
265
|
data: m,
|
|
271
266
|
leftMargin: D,
|
|
272
267
|
rightMargin: Xt,
|
|
273
268
|
topMargin: St,
|
|
274
269
|
bottomMargin: gt,
|
|
275
|
-
width:
|
|
276
|
-
height:
|
|
277
|
-
barColors:
|
|
278
|
-
suffix:
|
|
270
|
+
width: _,
|
|
271
|
+
height: ct,
|
|
272
|
+
barColors: M,
|
|
273
|
+
suffix: j,
|
|
279
274
|
prefix: y,
|
|
280
|
-
barPadding:
|
|
281
|
-
showLabels:
|
|
282
|
-
showValues:
|
|
283
|
-
showTicks:
|
|
284
|
-
truncateBy:
|
|
285
|
-
tooltip:
|
|
286
|
-
onSeriesMouseOver:
|
|
287
|
-
refValues:
|
|
275
|
+
barPadding: I,
|
|
276
|
+
showLabels: zt,
|
|
277
|
+
showValues: nt,
|
|
278
|
+
showTicks: jt,
|
|
279
|
+
truncateBy: S,
|
|
280
|
+
tooltip: tt,
|
|
281
|
+
onSeriesMouseOver: ut,
|
|
282
|
+
refValues: dt,
|
|
288
283
|
maxValue: Tt,
|
|
289
284
|
minValue: w,
|
|
290
|
-
onSeriesMouseClick:
|
|
291
|
-
selectedColor:
|
|
292
|
-
labelOrder:
|
|
293
|
-
maxBarThickness:
|
|
294
|
-
resetSelectionOnDoubleClick:
|
|
295
|
-
detailsOnClick:
|
|
296
|
-
barAxisTitle:
|
|
297
|
-
valueColor:
|
|
298
|
-
noOfTicks:
|
|
299
|
-
styles:
|
|
285
|
+
onSeriesMouseClick: et,
|
|
286
|
+
selectedColor: G,
|
|
287
|
+
labelOrder: F,
|
|
288
|
+
maxBarThickness: J,
|
|
289
|
+
resetSelectionOnDoubleClick: W,
|
|
290
|
+
detailsOnClick: xt,
|
|
291
|
+
barAxisTitle: B,
|
|
292
|
+
valueColor: R,
|
|
293
|
+
noOfTicks: H,
|
|
294
|
+
styles: u,
|
|
300
295
|
classNames: s,
|
|
301
|
-
animate:
|
|
302
|
-
colorDomain:
|
|
303
|
-
precision:
|
|
304
|
-
customLayers:
|
|
296
|
+
animate: o,
|
|
297
|
+
colorDomain: d,
|
|
298
|
+
precision: r,
|
|
299
|
+
customLayers: h,
|
|
305
300
|
naLabel: x
|
|
306
|
-
} = e,
|
|
301
|
+
} = e, A = D === void 0 ? 20 : D, K = Xt === void 0 ? 20 : Xt, q = St === void 0 ? 20 : St, rt = gt === void 0 ? 25 : gt, Ft = de(null);
|
|
307
302
|
let Yt;
|
|
308
|
-
t[0] !==
|
|
309
|
-
once:
|
|
310
|
-
amount:
|
|
311
|
-
}, t[0] =
|
|
312
|
-
const
|
|
303
|
+
t[0] !== o.amount || t[1] !== o.once ? (Yt = {
|
|
304
|
+
once: o.once,
|
|
305
|
+
amount: o.amount
|
|
306
|
+
}, t[0] = o.amount, t[1] = o.once, t[2] = Yt) : Yt = t[2];
|
|
307
|
+
const X = Ce(Ft, Yt), yt = B ? A + 30 : A;
|
|
313
308
|
let Bt;
|
|
314
|
-
t[3] !==
|
|
315
|
-
top:
|
|
316
|
-
bottom:
|
|
309
|
+
t[3] !== rt || t[4] !== K || t[5] !== yt || t[6] !== q ? (Bt = {
|
|
310
|
+
top: q,
|
|
311
|
+
bottom: rt,
|
|
317
312
|
left: yt,
|
|
318
|
-
right:
|
|
319
|
-
}, t[3] =
|
|
320
|
-
const
|
|
321
|
-
let
|
|
322
|
-
if (t[8] !==
|
|
323
|
-
const b =
|
|
324
|
-
let
|
|
325
|
-
t[72] !==
|
|
326
|
-
...
|
|
327
|
-
id:
|
|
328
|
-
}), t[72] =
|
|
329
|
-
const It = m.map(
|
|
330
|
-
g = Zt.svg, ht = `${
|
|
331
|
-
const Kt = b(w < 0 ? 0 : w),
|
|
313
|
+
right: K
|
|
314
|
+
}, t[3] = rt, t[4] = K, t[5] = yt, t[6] = q, t[7] = Bt) : Bt = t[7];
|
|
315
|
+
const n = Bt, [c, T] = Wt(void 0), [f, Y] = Wt(void 0), [N, $] = Wt(void 0), [Dt, bt] = Wt(void 0), it = _ - n.left - n.right, mt = ct - n.top - n.bottom;
|
|
316
|
+
let C, g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft;
|
|
317
|
+
if (t[8] !== o || t[9] !== B || t[10] !== M || t[11] !== I || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== d || t[19] !== h || t[20] !== m || t[21] !== xt || t[22] !== mt || t[23] !== it || t[24] !== ct || t[25] !== X || t[26] !== F || t[27] !== A || t[28] !== n.bottom || t[29] !== n.left || t[30] !== n.right || t[31] !== n.top || t[32] !== J || t[33] !== Tt || t[34] !== w || t[35] !== f || t[36] !== x || t[37] !== H || t[38] !== et || t[39] !== ut || t[40] !== r || t[41] !== y || t[42] !== dt || t[43] !== W || t[44] !== G || t[45] !== zt || t[46] !== jt || t[47] !== nt || t[48] !== u?.graphObjectValues || t[49] !== u?.xAxis?.axis || t[50] !== u?.xAxis?.labels || t[51] !== u?.yAxis?.gridLines || t[52] !== u?.yAxis?.labels || t[53] !== u?.yAxis?.title || t[54] !== j || t[55] !== S || t[56] !== R || t[57] !== _) {
|
|
318
|
+
const b = Ve().domain([w, Tt]).range([mt, 0]).nice();
|
|
319
|
+
let lt;
|
|
320
|
+
t[72] !== F ? (lt = (L, Vt) => ({
|
|
321
|
+
...L,
|
|
322
|
+
id: F ? `${L.label}` : `${Vt}`
|
|
323
|
+
}), t[72] = F, t[73] = lt) : lt = t[73];
|
|
324
|
+
const It = m.map(lt), Et = F || It.map(gi), O = ge().domain(Et).range([0, J ? Math.min(it, J * Et.length) : it]).paddingInner(I), qt = ge().domain(m[0].size.map(pi)).range([0, O.bandwidth()]).paddingInner(0.1), Nt = b.ticks(H);
|
|
325
|
+
g = Zt.svg, ht = `${_}px`, Mt = `${ct}px`, st = `0 0 ${_} ${ct}`, Ct = "ltr", E = Ft, ft = `translate(${n.left},${n.top})`;
|
|
326
|
+
const Kt = b(w < 0 ? 0 : w), Lt = b(w < 0 ? 0 : w), Qt = w < 0 ? 0 : w;
|
|
332
327
|
let Ut;
|
|
333
|
-
t[74] !== x || t[75] !==
|
|
334
|
-
const Ht = s?.xAxis?.axis,
|
|
328
|
+
t[74] !== x || t[75] !== r || t[76] !== y || t[77] !== j || t[78] !== Qt ? (Ut = ue(Qt, x, r, y, j), t[74] = x, t[75] = r, t[76] = y, t[77] = j, t[78] = Qt, t[79] = Ut) : Ut = t[79];
|
|
329
|
+
const Ht = s?.xAxis?.axis, kt = s?.yAxis?.labels;
|
|
335
330
|
let Rt;
|
|
336
|
-
t[80] !== Ht || t[81] !==
|
|
331
|
+
t[80] !== Ht || t[81] !== kt ? (Rt = {
|
|
337
332
|
axis: Ht,
|
|
338
|
-
label:
|
|
339
|
-
}, t[80] = Ht, t[81] =
|
|
340
|
-
const Jt =
|
|
333
|
+
label: kt
|
|
334
|
+
}, t[80] = Ht, t[81] = kt, t[82] = Rt) : Rt = t[82];
|
|
335
|
+
const Jt = u?.xAxis?.axis, z = u?.yAxis?.labels;
|
|
341
336
|
let v;
|
|
342
|
-
t[83] !== Jt || t[84] !==
|
|
337
|
+
t[83] !== Jt || t[84] !== z ? (v = {
|
|
343
338
|
axis: Jt,
|
|
344
|
-
label:
|
|
345
|
-
}, t[83] = Jt, t[84] =
|
|
346
|
-
x: 0 -
|
|
339
|
+
label: z
|
|
340
|
+
}, t[83] = Jt, t[84] = z, t[85] = v) : v = t[85], Q = /* @__PURE__ */ i.jsx(Oe, { y1: Kt, y2: Lt, x1: 0 - A, x2: it + n.right, label: Ut, labelPos: {
|
|
341
|
+
x: 0 - A,
|
|
347
342
|
dx: 0,
|
|
348
343
|
dy: Tt < 0 ? "1em" : -5,
|
|
349
344
|
y: b(w < 0 ? 0 : w)
|
|
350
|
-
}, classNames: Rt, styles: v }),
|
|
351
|
-
gridLines:
|
|
352
|
-
labels:
|
|
345
|
+
}, classNames: Rt, styles: v }), Z = jt ? /* @__PURE__ */ i.jsx(Xe, { values: Nt.filter(fi), y: Nt.filter(hi).map((L) => b(L)), x1: 0 - A, x2: it + n.right, styles: {
|
|
346
|
+
gridLines: u?.yAxis?.gridLines,
|
|
347
|
+
labels: u?.yAxis?.labels
|
|
353
348
|
}, classNames: {
|
|
354
349
|
gridLines: s?.yAxis?.gridLines,
|
|
355
350
|
labels: s?.yAxis?.labels
|
|
356
|
-
}, suffix:
|
|
357
|
-
const k = 0 -
|
|
358
|
-
t[86] !==
|
|
351
|
+
}, suffix: j, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: r }) : null;
|
|
352
|
+
const k = 0 - A - 15, a = mt / 2, p = u?.yAxis?.title, ee = s?.yAxis?.title;
|
|
353
|
+
t[86] !== B || t[87] !== k || t[88] !== a || t[89] !== p || t[90] !== ee ? (U = /* @__PURE__ */ i.jsx(ke, { x: k, y: a, style: p, className: ee, text: B, rotate90: !0 }), t[86] = B, t[87] = k, t[88] = a, t[89] = p, t[90] = ee, t[91] = U) : U = t[91], t[92] !== h ? (V = h.filter(mi).map(xi), t[92] = h, t[93] = V) : V = t[93], C = De, at = It.map((L) => _t(O(L.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { variants: {
|
|
359
354
|
initial: {
|
|
360
|
-
x:
|
|
355
|
+
x: O(`${L.id}`),
|
|
361
356
|
y: 0
|
|
362
357
|
},
|
|
363
358
|
whileInView: {
|
|
364
|
-
x:
|
|
359
|
+
x: O(`${L.id}`),
|
|
365
360
|
y: 0,
|
|
366
361
|
transition: {
|
|
367
|
-
duration:
|
|
362
|
+
duration: o.duration
|
|
368
363
|
}
|
|
369
364
|
}
|
|
370
|
-
}, initial: "initial", animate:
|
|
365
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
|
|
371
366
|
opacity: 0,
|
|
372
367
|
transition: {
|
|
373
|
-
duration:
|
|
368
|
+
duration: o.duration
|
|
374
369
|
}
|
|
375
370
|
}, children: [
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
...
|
|
371
|
+
L.size.map((Vt, l) => /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", opacity: G ? M[l] === G ? 1 : 0.3 : 0.85, onMouseEnter: (ie) => {
|
|
372
|
+
T({
|
|
373
|
+
...L,
|
|
379
374
|
sizeIndex: l
|
|
380
|
-
}), bt(ie.clientY),
|
|
381
|
-
...
|
|
375
|
+
}), bt(ie.clientY), $(ie.clientX), ut?.({
|
|
376
|
+
...L,
|
|
382
377
|
sizeIndex: l
|
|
383
378
|
});
|
|
384
379
|
}, onMouseMove: (ie) => {
|
|
385
|
-
|
|
386
|
-
...
|
|
380
|
+
T({
|
|
381
|
+
...L,
|
|
387
382
|
sizeIndex: l
|
|
388
|
-
}), bt(ie.clientY),
|
|
383
|
+
}), bt(ie.clientY), $(ie.clientX);
|
|
389
384
|
}, onMouseLeave: () => {
|
|
390
|
-
|
|
385
|
+
T(void 0), $(void 0), bt(void 0), ut?.(void 0);
|
|
391
386
|
}, onClick: () => {
|
|
392
|
-
(
|
|
393
|
-
...
|
|
387
|
+
(et || xt) && (Ae(f, {
|
|
388
|
+
...L,
|
|
394
389
|
sizeIndex: l
|
|
395
|
-
}) &&
|
|
396
|
-
...
|
|
390
|
+
}) && W ? (Y(void 0), et?.(void 0)) : (Y({
|
|
391
|
+
...L,
|
|
397
392
|
sizeIndex: l
|
|
398
|
-
}),
|
|
399
|
-
...
|
|
393
|
+
}), et && et({
|
|
394
|
+
...L,
|
|
400
395
|
sizeIndex: l
|
|
401
396
|
})));
|
|
402
397
|
}, children: [
|
|
@@ -404,207 +399,203 @@ function ui(e) {
|
|
|
404
399
|
initial: {
|
|
405
400
|
height: 0,
|
|
406
401
|
y: b(0),
|
|
407
|
-
fill:
|
|
402
|
+
fill: M[l]
|
|
408
403
|
},
|
|
409
404
|
whileInView: {
|
|
410
405
|
height: _t(Vt) ? 0 : Math.abs(b(Vt) - b(0)),
|
|
411
406
|
y: _t(Vt) ? b(0) : Vt > 0 ? b(Vt) : b(0),
|
|
412
|
-
fill:
|
|
407
|
+
fill: M[l],
|
|
413
408
|
transition: {
|
|
414
|
-
duration:
|
|
409
|
+
duration: o.duration
|
|
415
410
|
}
|
|
416
411
|
}
|
|
417
412
|
}, exit: {
|
|
418
413
|
height: 0,
|
|
419
414
|
y: b(0),
|
|
420
415
|
transition: {
|
|
421
|
-
duration:
|
|
416
|
+
duration: o.duration
|
|
422
417
|
}
|
|
423
|
-
}, initial: "initial", animate:
|
|
424
|
-
|
|
418
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial" }),
|
|
419
|
+
nt ? /* @__PURE__ */ i.jsx(Zt.text, { x: qt(`${l}`) + qt.bandwidth() / 2, style: {
|
|
425
420
|
textAnchor: "middle",
|
|
426
|
-
...
|
|
421
|
+
...u?.graphObjectValues || {}
|
|
427
422
|
}, className: pe("graph-value text-sm", s?.graphObjectValues), dy: Vt ? Vt >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
428
423
|
initial: {
|
|
429
424
|
y: b(0),
|
|
430
425
|
opacity: 0,
|
|
431
|
-
fill:
|
|
426
|
+
fill: R || M[l]
|
|
432
427
|
},
|
|
433
428
|
whileInView: {
|
|
434
429
|
y: b(Vt || 0),
|
|
435
430
|
opacity: 1,
|
|
436
|
-
fill:
|
|
431
|
+
fill: R || M[l],
|
|
437
432
|
transition: {
|
|
438
|
-
duration:
|
|
433
|
+
duration: o.duration
|
|
439
434
|
}
|
|
440
435
|
}
|
|
441
|
-
}, initial: "initial", animate:
|
|
436
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
|
|
442
437
|
opacity: 0,
|
|
443
438
|
transition: {
|
|
444
|
-
duration:
|
|
439
|
+
duration: o.duration
|
|
445
440
|
}
|
|
446
|
-
}, children: ue(Vt, x,
|
|
447
|
-
] }, `${
|
|
448
|
-
|
|
449
|
-
] },
|
|
441
|
+
}, children: ue(Vt, x, r, y, j) }) : null
|
|
442
|
+
] }, `${L.label}-${d[l] || l}`)),
|
|
443
|
+
zt ? /* @__PURE__ */ i.jsx(Ye, { value: `${L.label}`.length < S ? `${L.label}` : `${`${L.label}`.substring(0, S)}...`, y: b(0) + 5, x: 0, width: O.bandwidth(), height: n.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: o, isInView: X }) : null
|
|
444
|
+
] }, L.label)), P = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((L, Vt) => /* @__PURE__ */ i.jsx(He, { text: L.text, color: L.color, y: b(L.value), x1: 0 - A, x2: it + n.right, classNames: L.classNames, styles: L.styles, animate: o, isInView: X }, Vt)) }) : null, t[8] = o, t[9] = B, t[10] = M, t[11] = I, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = d, t[19] = h, t[20] = m, t[21] = xt, t[22] = mt, t[23] = it, t[24] = ct, t[25] = X, t[26] = F, t[27] = A, t[28] = n.bottom, t[29] = n.left, t[30] = n.right, t[31] = n.top, t[32] = J, t[33] = Tt, t[34] = w, t[35] = f, t[36] = x, t[37] = H, t[38] = et, t[39] = ut, t[40] = r, t[41] = y, t[42] = dt, t[43] = W, t[44] = G, t[45] = zt, t[46] = jt, t[47] = nt, t[48] = u?.graphObjectValues, t[49] = u?.xAxis?.axis, t[50] = u?.xAxis?.labels, t[51] = u?.yAxis?.gridLines, t[52] = u?.yAxis?.labels, t[53] = u?.yAxis?.title, t[54] = j, t[55] = S, t[56] = R, t[57] = _, t[58] = C, t[59] = g, t[60] = Q, t[61] = Z, t[62] = U, t[63] = V, t[64] = ht, t[65] = Mt, t[66] = st, t[67] = Ct, t[68] = E, t[69] = at, t[70] = P, t[71] = ft;
|
|
450
445
|
} else
|
|
451
|
-
|
|
446
|
+
C = t[58], g = t[59], Q = t[60], Z = t[61], U = t[62], V = t[63], ht = t[64], Mt = t[65], st = t[66], Ct = t[67], E = t[68], at = t[69], P = t[70], ft = t[71];
|
|
452
447
|
let pt;
|
|
453
|
-
t[94] !==
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
] }), t[94] =
|
|
448
|
+
t[94] !== C || t[95] !== at || t[96] !== P ? (pt = /* @__PURE__ */ i.jsxs(C, { children: [
|
|
449
|
+
at,
|
|
450
|
+
P
|
|
451
|
+
] }), t[94] = C, t[95] = at, t[96] = P, t[97] = pt) : pt = t[97];
|
|
457
452
|
let vt;
|
|
458
|
-
t[98] !==
|
|
453
|
+
t[98] !== h ? (vt = h.filter(di).map(ui), t[98] = h, t[99] = vt) : vt = t[99];
|
|
459
454
|
let wt;
|
|
460
|
-
t[100] !==
|
|
455
|
+
t[100] !== Q || t[101] !== Z || t[102] !== U || t[103] !== V || t[104] !== pt || t[105] !== vt || t[106] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
|
|
456
|
+
Q,
|
|
461
457
|
Z,
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
j,
|
|
458
|
+
U,
|
|
459
|
+
V,
|
|
465
460
|
pt,
|
|
466
461
|
vt
|
|
467
|
-
] }), t[100] =
|
|
468
|
-
let
|
|
469
|
-
t[108] !== g || t[109] !== ht || t[110] !==
|
|
462
|
+
] }), t[100] = Q, t[101] = Z, t[102] = U, t[103] = V, t[104] = pt, t[105] = vt, t[106] = ft, t[107] = wt) : wt = t[107];
|
|
463
|
+
let ot;
|
|
464
|
+
t[108] !== g || t[109] !== ht || t[110] !== Mt || t[111] !== st || t[112] !== Ct || t[113] !== E || t[114] !== wt ? (ot = /* @__PURE__ */ i.jsx(g, { width: ht, height: Mt, viewBox: st, direction: Ct, ref: E, children: wt }), t[108] = g, t[109] = ht, t[110] = Mt, t[111] = st, t[112] = Ct, t[113] = E, t[114] = wt, t[115] = ot) : ot = t[115];
|
|
470
465
|
let At;
|
|
471
|
-
t[116] !== s?.tooltip || t[117] !==
|
|
466
|
+
t[116] !== s?.tooltip || t[117] !== N || t[118] !== Dt || t[119] !== c || t[120] !== u?.tooltip || t[121] !== tt ? (At = c && tt && N && Dt ? /* @__PURE__ */ i.jsx($e, { data: c, body: tt, xPos: N, yPos: Dt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[116] = s?.tooltip, t[117] = N, t[118] = Dt, t[119] = c, t[120] = u?.tooltip, t[121] = tt, t[122] = At) : At = t[122];
|
|
472
467
|
let $t;
|
|
473
|
-
t[123] !==
|
|
474
|
-
V(void 0);
|
|
475
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof H == "string" ? {
|
|
476
|
-
__html: Me(H, h)
|
|
477
|
-
} : void 0, children: typeof H == "function" ? H(h) : null }) }) : null, t[123] = H, t[124] = h, t[125] = $t) : $t = t[125];
|
|
468
|
+
t[123] !== s?.modal || t[124] !== xt || t[125] !== f ? ($t = xt && f !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: xt, data: f, setData: Y, className: s?.modal }) : null, t[123] = s?.modal, t[124] = xt, t[125] = f, t[126] = $t) : $t = t[126];
|
|
478
469
|
let Ot;
|
|
479
|
-
return t[
|
|
480
|
-
|
|
470
|
+
return t[127] !== ot || t[128] !== At || t[129] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
471
|
+
ot,
|
|
481
472
|
At,
|
|
482
473
|
$t
|
|
483
|
-
] }), t[
|
|
474
|
+
] }), t[127] = ot, t[128] = At, t[129] = $t, t[130] = Ot) : Ot = t[130], Ot;
|
|
484
475
|
}
|
|
485
|
-
function
|
|
476
|
+
function ui(e) {
|
|
486
477
|
return e.layer;
|
|
487
478
|
}
|
|
488
|
-
function
|
|
479
|
+
function di(e) {
|
|
489
480
|
return e.position === "after";
|
|
490
481
|
}
|
|
491
|
-
function
|
|
482
|
+
function xi(e) {
|
|
492
483
|
return e.layer;
|
|
493
484
|
}
|
|
494
|
-
function
|
|
485
|
+
function mi(e) {
|
|
495
486
|
return e.position === "before";
|
|
496
487
|
}
|
|
497
|
-
function
|
|
488
|
+
function hi(e) {
|
|
498
489
|
return e !== 0;
|
|
499
490
|
}
|
|
500
|
-
function
|
|
491
|
+
function fi(e) {
|
|
501
492
|
return e !== 0;
|
|
502
493
|
}
|
|
503
|
-
function
|
|
494
|
+
function pi(e, t) {
|
|
504
495
|
return `${t}`;
|
|
505
496
|
}
|
|
506
|
-
function
|
|
497
|
+
function gi(e) {
|
|
507
498
|
return `${e.id}`;
|
|
508
499
|
}
|
|
509
|
-
function
|
|
500
|
+
function yi(e) {
|
|
510
501
|
const t = xe.c(43), {
|
|
511
502
|
data: m,
|
|
512
503
|
graphTitle: D,
|
|
513
504
|
colors: Xt,
|
|
514
505
|
sources: St,
|
|
515
506
|
graphDescription: gt,
|
|
516
|
-
barPadding:
|
|
517
|
-
showTicks:
|
|
518
|
-
truncateBy:
|
|
519
|
-
height:
|
|
507
|
+
barPadding: _,
|
|
508
|
+
showTicks: ct,
|
|
509
|
+
truncateBy: M,
|
|
510
|
+
height: j,
|
|
520
511
|
width: y,
|
|
521
|
-
footNote:
|
|
522
|
-
colorDomain:
|
|
523
|
-
colorLegendTitle:
|
|
524
|
-
suffix:
|
|
525
|
-
prefix:
|
|
526
|
-
showValues:
|
|
527
|
-
showColorScale:
|
|
528
|
-
padding:
|
|
512
|
+
footNote: I,
|
|
513
|
+
colorDomain: zt,
|
|
514
|
+
colorLegendTitle: nt,
|
|
515
|
+
suffix: jt,
|
|
516
|
+
prefix: S,
|
|
517
|
+
showValues: tt,
|
|
518
|
+
showColorScale: ut,
|
|
519
|
+
padding: dt,
|
|
529
520
|
backgroundColor: Tt,
|
|
530
521
|
leftMargin: w,
|
|
531
|
-
rightMargin:
|
|
532
|
-
topMargin:
|
|
533
|
-
bottomMargin:
|
|
534
|
-
showLabels:
|
|
535
|
-
relativeHeight:
|
|
536
|
-
tooltip:
|
|
537
|
-
onSeriesMouseOver:
|
|
538
|
-
refValues:
|
|
539
|
-
graphID:
|
|
540
|
-
maxValue:
|
|
522
|
+
rightMargin: et,
|
|
523
|
+
topMargin: G,
|
|
524
|
+
bottomMargin: F,
|
|
525
|
+
showLabels: J,
|
|
526
|
+
relativeHeight: W,
|
|
527
|
+
tooltip: xt,
|
|
528
|
+
onSeriesMouseOver: B,
|
|
529
|
+
refValues: R,
|
|
530
|
+
graphID: H,
|
|
531
|
+
maxValue: u,
|
|
541
532
|
minValue: s,
|
|
542
|
-
onSeriesMouseClick:
|
|
543
|
-
graphDownload:
|
|
544
|
-
dataDownload:
|
|
545
|
-
language:
|
|
533
|
+
onSeriesMouseClick: o,
|
|
534
|
+
graphDownload: d,
|
|
535
|
+
dataDownload: r,
|
|
536
|
+
language: h,
|
|
546
537
|
labelOrder: x,
|
|
547
|
-
minHeight:
|
|
548
|
-
theme:
|
|
549
|
-
maxBarThickness:
|
|
550
|
-
ariaLabel:
|
|
538
|
+
minHeight: A,
|
|
539
|
+
theme: K,
|
|
540
|
+
maxBarThickness: q,
|
|
541
|
+
ariaLabel: rt,
|
|
551
542
|
resetSelectionOnDoubleClick: Ft,
|
|
552
543
|
detailsOnClick: Yt,
|
|
553
|
-
barAxisTitle:
|
|
544
|
+
barAxisTitle: X,
|
|
554
545
|
noOfTicks: yt,
|
|
555
546
|
valueColor: Bt,
|
|
556
|
-
styles:
|
|
547
|
+
styles: n,
|
|
557
548
|
classNames: c,
|
|
558
|
-
filterNA:
|
|
559
|
-
animate:
|
|
560
|
-
precision:
|
|
561
|
-
customLayers:
|
|
562
|
-
timeline:
|
|
563
|
-
naLabel:
|
|
549
|
+
filterNA: T,
|
|
550
|
+
animate: f,
|
|
551
|
+
precision: Y,
|
|
552
|
+
customLayers: N,
|
|
553
|
+
timeline: $,
|
|
554
|
+
naLabel: Dt,
|
|
564
555
|
sortParameter: bt,
|
|
565
|
-
sortData:
|
|
556
|
+
sortData: it,
|
|
566
557
|
orientation: mt
|
|
567
|
-
} = e,
|
|
558
|
+
} = e, C = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, g = _ === void 0 ? 0.25 : _, Q = ct === void 0 ? !0 : ct, Z = M === void 0 ? 999 : M, U = jt === void 0 ? "" : jt, V = S === void 0 ? "" : S, ht = tt === void 0 ? !0 : tt, Mt = ut === void 0 ? !0 : ut, st = Tt === void 0 ? !1 : Tt, Ct = J === void 0 ? !0 : J, E = d === void 0 ? !1 : d, at = r === void 0 ? !1 : r, P = h === void 0 ? "en" : h, ft = A === void 0 ? 0 : A, pt = K === void 0 ? "light" : K, vt = Ft === void 0 ? !0 : Ft, wt = yt === void 0 ? 5 : yt, ot = T === void 0 ? !0 : T, At = f === void 0 ? !1 : f, $t = Y === void 0 ? 2 : Y;
|
|
568
559
|
let Ot;
|
|
569
|
-
t[0] !==
|
|
570
|
-
const b = Ot,
|
|
560
|
+
t[0] !== N ? (Ot = N === void 0 ? [] : N, t[0] = N, t[1] = Ot) : Ot = t[1];
|
|
561
|
+
const b = Ot, lt = $ === void 0 ? {
|
|
571
562
|
enabled: !1,
|
|
572
563
|
autoplay: !1,
|
|
573
564
|
showOnlyActiveDate: !0
|
|
574
|
-
} :
|
|
575
|
-
let
|
|
576
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
565
|
+
} : $, It = Dt === void 0 ? "NA" : Dt, O = (mt === void 0 ? "vertical" : mt) === "horizontal" ? ti : ci, [qt, Nt] = Wt(0), [Kt, Lt] = Wt(0), [Qt, Ut] = Wt(lt.autoplay), Ht = Qe(Le(m, "date", !0).map((Gt) => Se(`${Gt}`, lt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Bi), [kt, Rt] = Wt(lt.autoplay ? 0 : Ht.length - 1), [Jt, z] = Wt(void 0), v = de(null), k = de(null);
|
|
566
|
+
let a, p;
|
|
567
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = () => {
|
|
577
568
|
const Gt = new ResizeObserver((Pt) => {
|
|
578
|
-
Nt(Pt[0].target.clientWidth || 620),
|
|
569
|
+
Nt(Pt[0].target.clientWidth || 620), Lt(Pt[0].target.clientHeight || 480);
|
|
579
570
|
});
|
|
580
571
|
return v.current && Gt.observe(v.current), () => Gt.disconnect();
|
|
581
|
-
}, p = [], t[2] =
|
|
572
|
+
}, p = [], t[2] = a, t[3] = p) : (a = t[2], p = t[3]), we(a, p), we(() => {
|
|
582
573
|
const Gt = setInterval(() => {
|
|
583
574
|
Rt((Pt) => Pt < Ht.length - 1 ? Pt + 1 : 0);
|
|
584
|
-
}, (
|
|
575
|
+
}, (lt.speed || 2) * 1e3);
|
|
585
576
|
return Qt || clearInterval(Gt), () => clearInterval(Gt);
|
|
586
|
-
}, [Ht, Qt,
|
|
587
|
-
const ee =
|
|
577
|
+
}, [Ht, Qt, lt.speed]);
|
|
578
|
+
const ee = Te(Ht, kt, lt.showOnlyActiveDate, lt.dateFormat || "yyyy"), L = Ke, Vt = c?.graphContainer, l = n?.graphContainer;
|
|
588
579
|
let ie;
|
|
589
|
-
t[4] !== c?.description || t[5] !== c?.title || t[6] !== m || t[7] !==
|
|
590
|
-
title:
|
|
591
|
-
description:
|
|
580
|
+
t[4] !== c?.description || t[5] !== c?.title || t[6] !== m || t[7] !== at || t[8] !== gt || t[9] !== E || t[10] !== D || t[11] !== n?.description || t[12] !== n?.title || t[13] !== y ? (ie = D || gt || E || at ? /* @__PURE__ */ i.jsx(Ee, { styles: {
|
|
581
|
+
title: n?.title,
|
|
582
|
+
description: n?.description
|
|
592
583
|
}, classNames: {
|
|
593
584
|
title: c?.title,
|
|
594
585
|
description: c?.description
|
|
595
|
-
}, graphTitle: D, graphDescription: gt, width: y, graphDownload:
|
|
596
|
-
const se =
|
|
586
|
+
}, graphTitle: D, graphDescription: gt, width: y, graphDownload: E ? k : void 0, dataDownload: at ? m.map(Si).filter(Ii).length > 0 ? m.map(Ti).filter(Ni) : m.filter(ji) : null }) : null, t[4] = c?.description, t[5] = c?.title, t[6] = m, t[7] = at, t[8] = gt, t[9] = E, t[10] = D, t[11] = n?.description, t[12] = n?.title, t[13] = y, t[14] = ie) : ie = t[14];
|
|
587
|
+
const se = lt.enabled && Ht.length > 0 && ee ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
597
588
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
598
589
|
Ut(!Qt);
|
|
599
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Qt ? "Click to pause animation" : "Click to play animation", children: Qt ? /* @__PURE__ */ i.jsx(
|
|
600
|
-
/* @__PURE__ */ i.jsx(
|
|
590
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Qt ? "Click to pause animation" : "Click to play animation", children: Qt ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
|
|
591
|
+
/* @__PURE__ */ i.jsx(Ie, { min: Ht[0], max: Ht[Ht.length - 1], marks: ee, step: null, defaultValue: Ht[Ht.length - 1], value: Ht[kt], onChangeComplete: (Gt) => {
|
|
601
592
|
Rt(Ht.indexOf(Gt));
|
|
602
593
|
}, onChange: (Gt) => {
|
|
603
594
|
Rt(Ht.indexOf(Gt));
|
|
604
595
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
605
|
-
] }) : null, me = "grow flex flex-col justify-center gap-3 w-full", fe = m.length === 0 ? /* @__PURE__ */ i.jsx(
|
|
606
|
-
|
|
607
|
-
/* @__PURE__ */ i.jsx(
|
|
596
|
+
] }) : null, me = "grow flex flex-col justify-center gap-3 w-full", fe = m.length === 0 ? /* @__PURE__ */ i.jsx(Re, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
597
|
+
Mt ? /* @__PURE__ */ i.jsx(We, { width: y, colorDomain: zt, colors: C, colorLegendTitle: nt, setSelectedColor: z, showNAColor: !1, className: c?.colorLegend }) : null,
|
|
598
|
+
/* @__PURE__ */ i.jsx(Je, { ref: v, children: qt && Kt ? /* @__PURE__ */ i.jsx(O, { data: bt !== void 0 ? bt === "total" ? ze(ve(m, lt.dateFormat || "yyyy").filter((Gt) => lt.enabled ? Gt.date === ye(new Date(Ht[kt]), lt.dateFormat || "yyyy") : Gt).filter((Gt) => ot ? !Gt.size.every(zi) : Gt), Di, [it || "asc"]) : ze(ve(m, lt.dateFormat || "yyyy").filter((Gt) => lt.enabled ? Gt.date === ye(new Date(Ht[kt]), lt.dateFormat || "yyyy") : Gt).filter((Gt) => ot ? !Gt.size.every(Vi) : Gt), (Gt) => _t(Gt.size[bt]) ? -1 / 0 : Gt.size[bt], [it || "asc"]) : ve(m, lt.dateFormat || "yyyy").filter((Gt) => ot ? !Gt.size.every(Ci) : Gt), barColors: C, width: qt, height: Kt, suffix: U, prefix: V, showValues: ht, barPadding: g, showTicks: Q, leftMargin: w, rightMargin: et, topMargin: G, bottomMargin: F, truncateBy: Z, showLabels: Ct, tooltip: xt, onSeriesMouseOver: B, refValues: R, maxValue: _t(u) ? Math.max(...m.map(ki)) < 0 ? 0 : Math.max(...m.map($i)) : u, minValue: _t(s) ? Math.min(...m.map(wi)) >= 0 ? 0 : Math.min(...m.map(bi)) : s, onSeriesMouseClick: o, selectedColor: Jt, labelOrder: x, rtl: P === "he" || P === "ar", maxBarThickness: q, resetSelectionOnDoubleClick: vt, detailsOnClick: Yt, barAxisTitle: X, noOfTicks: wt, valueColor: Bt, styles: n, classNames: c, colorDomain: zt, animate: At === !0 ? {
|
|
608
599
|
duration: 0.5,
|
|
609
600
|
once: !0,
|
|
610
601
|
amount: 0.5
|
|
@@ -616,158 +607,158 @@ function bi(e) {
|
|
|
616
607
|
] });
|
|
617
608
|
let re;
|
|
618
609
|
t[15] !== fe ? (re = /* @__PURE__ */ i.jsx("div", { className: me, children: fe }), t[15] = fe, t[16] = re) : re = t[16];
|
|
619
|
-
let
|
|
620
|
-
t[17] !== c?.footnote || t[18] !== c?.source || t[19] !==
|
|
621
|
-
footnote:
|
|
622
|
-
source:
|
|
610
|
+
let ae;
|
|
611
|
+
t[17] !== c?.footnote || t[18] !== c?.source || t[19] !== I || t[20] !== St || t[21] !== n?.footnote || t[22] !== n?.source || t[23] !== y ? (ae = St || I ? /* @__PURE__ */ i.jsx(Ge, { styles: {
|
|
612
|
+
footnote: n?.footnote,
|
|
613
|
+
source: n?.source
|
|
623
614
|
}, classNames: {
|
|
624
615
|
footnote: c?.footnote,
|
|
625
616
|
source: c?.source
|
|
626
|
-
}, sources: St, footNote:
|
|
617
|
+
}, sources: St, footNote: I, width: y }) : null, t[17] = c?.footnote, t[18] = c?.source, t[19] = I, t[20] = St, t[21] = n?.footnote, t[22] = n?.source, t[23] = y, t[24] = ae) : ae = t[24];
|
|
627
618
|
let le;
|
|
628
|
-
return t[25] !==
|
|
619
|
+
return t[25] !== L || t[26] !== rt || t[27] !== st || t[28] !== H || t[29] !== j || t[30] !== P || t[31] !== ft || t[32] !== dt || t[33] !== W || t[34] !== Vt || t[35] !== l || t[36] !== ie || t[37] !== se || t[38] !== re || t[39] !== ae || t[40] !== pt || t[41] !== y ? (le = /* @__PURE__ */ i.jsxs(L, { className: Vt, style: l, id: H, ref: k, "aria-label": rt, backgroundColor: st, theme: pt, language: P, minHeight: ft, width: y, height: j, relativeHeight: W, padding: dt, children: [
|
|
629
620
|
ie,
|
|
630
621
|
se,
|
|
631
622
|
re,
|
|
632
|
-
|
|
633
|
-
] }), t[25] =
|
|
623
|
+
ae
|
|
624
|
+
] }), t[25] = L, t[26] = rt, t[27] = st, t[28] = H, t[29] = j, t[30] = P, t[31] = ft, t[32] = dt, t[33] = W, t[34] = Vt, t[35] = l, t[36] = ie, t[37] = se, t[38] = re, t[39] = ae, t[40] = pt, t[41] = y, t[42] = le) : le = t[42], le;
|
|
625
|
+
}
|
|
626
|
+
function bi(e) {
|
|
627
|
+
return Math.min(...e.size.filter(vi));
|
|
634
628
|
}
|
|
635
629
|
function vi(e) {
|
|
636
|
-
return
|
|
630
|
+
return !_t(e);
|
|
637
631
|
}
|
|
638
632
|
function wi(e) {
|
|
639
|
-
return
|
|
633
|
+
return Math.min(...e.size.filter(Ai));
|
|
640
634
|
}
|
|
641
635
|
function Ai(e) {
|
|
642
|
-
return
|
|
636
|
+
return !_t(e);
|
|
643
637
|
}
|
|
644
638
|
function $i(e) {
|
|
645
|
-
return
|
|
639
|
+
return Math.max(...e.size.filter(Oi));
|
|
646
640
|
}
|
|
647
641
|
function Oi(e) {
|
|
648
|
-
return Math.max(...e.size.filter(Mi));
|
|
649
|
-
}
|
|
650
|
-
function Mi(e) {
|
|
651
642
|
return !_t(e);
|
|
652
643
|
}
|
|
653
644
|
function ki(e) {
|
|
654
|
-
return Math.max(...e.size.filter(
|
|
645
|
+
return Math.max(...e.size.filter(Mi));
|
|
655
646
|
}
|
|
656
|
-
function
|
|
647
|
+
function Mi(e) {
|
|
657
648
|
return !_t(e);
|
|
658
649
|
}
|
|
659
|
-
function
|
|
650
|
+
function Ci(e) {
|
|
660
651
|
return e == null;
|
|
661
652
|
}
|
|
662
|
-
function
|
|
653
|
+
function Vi(e) {
|
|
663
654
|
return e == null;
|
|
664
655
|
}
|
|
665
|
-
function ji(e) {
|
|
666
|
-
return ne(e.size.filter(Di));
|
|
667
|
-
}
|
|
668
656
|
function Di(e) {
|
|
657
|
+
return oe(e.size.filter(Li));
|
|
658
|
+
}
|
|
659
|
+
function Li(e) {
|
|
669
660
|
return !_t(e);
|
|
670
661
|
}
|
|
671
662
|
function zi(e) {
|
|
672
663
|
return e == null;
|
|
673
664
|
}
|
|
674
|
-
function
|
|
665
|
+
function ji(e) {
|
|
675
666
|
return e !== void 0;
|
|
676
667
|
}
|
|
677
|
-
function
|
|
668
|
+
function Ni(e) {
|
|
678
669
|
return e !== void 0;
|
|
679
670
|
}
|
|
680
|
-
function
|
|
671
|
+
function Ti(e) {
|
|
681
672
|
return e.data;
|
|
682
673
|
}
|
|
683
|
-
function
|
|
674
|
+
function Ii(e) {
|
|
684
675
|
return e !== void 0;
|
|
685
676
|
}
|
|
686
|
-
function
|
|
677
|
+
function Si(e) {
|
|
687
678
|
return e.data;
|
|
688
679
|
}
|
|
689
|
-
function
|
|
690
|
-
return
|
|
680
|
+
function Bi(e, t) {
|
|
681
|
+
return Ze(e, t);
|
|
691
682
|
}
|
|
692
|
-
function
|
|
693
|
-
const t = xe.c(
|
|
683
|
+
function Pi(e) {
|
|
684
|
+
const t = xe.c(126), {
|
|
694
685
|
data: m,
|
|
695
686
|
barColor: D,
|
|
696
687
|
suffix: Xt,
|
|
697
688
|
prefix: St,
|
|
698
689
|
barPadding: gt,
|
|
699
|
-
showValues:
|
|
700
|
-
showTicks:
|
|
701
|
-
truncateBy:
|
|
702
|
-
width:
|
|
690
|
+
showValues: _,
|
|
691
|
+
showTicks: ct,
|
|
692
|
+
truncateBy: M,
|
|
693
|
+
width: j,
|
|
703
694
|
height: y,
|
|
704
|
-
colorDomain:
|
|
705
|
-
topMargin:
|
|
706
|
-
bottomMargin:
|
|
707
|
-
leftMargin:
|
|
708
|
-
rightMargin:
|
|
709
|
-
showLabels:
|
|
710
|
-
tooltip:
|
|
711
|
-
onSeriesMouseOver:
|
|
695
|
+
colorDomain: I,
|
|
696
|
+
topMargin: zt,
|
|
697
|
+
bottomMargin: nt,
|
|
698
|
+
leftMargin: jt,
|
|
699
|
+
rightMargin: S,
|
|
700
|
+
showLabels: tt,
|
|
701
|
+
tooltip: ut,
|
|
702
|
+
onSeriesMouseOver: dt,
|
|
712
703
|
refValues: Tt,
|
|
713
704
|
selectedColor: w,
|
|
714
|
-
highlightedDataPoints:
|
|
715
|
-
maxValue:
|
|
716
|
-
minValue:
|
|
717
|
-
onSeriesMouseClick:
|
|
718
|
-
labelOrder:
|
|
719
|
-
rtl:
|
|
720
|
-
maxBarThickness:
|
|
721
|
-
minBarThickness:
|
|
722
|
-
resetSelectionOnDoubleClick:
|
|
723
|
-
detailsOnClick:
|
|
705
|
+
highlightedDataPoints: et,
|
|
706
|
+
maxValue: G,
|
|
707
|
+
minValue: F,
|
|
708
|
+
onSeriesMouseClick: J,
|
|
709
|
+
labelOrder: W,
|
|
710
|
+
rtl: xt,
|
|
711
|
+
maxBarThickness: B,
|
|
712
|
+
minBarThickness: R,
|
|
713
|
+
resetSelectionOnDoubleClick: H,
|
|
714
|
+
detailsOnClick: u,
|
|
724
715
|
barAxisTitle: s,
|
|
725
|
-
valueColor:
|
|
726
|
-
noOfTicks:
|
|
727
|
-
styles:
|
|
728
|
-
classNames:
|
|
716
|
+
valueColor: o,
|
|
717
|
+
noOfTicks: d,
|
|
718
|
+
styles: r,
|
|
719
|
+
classNames: h,
|
|
729
720
|
animate: x,
|
|
730
|
-
dimmedOpacity:
|
|
731
|
-
precision:
|
|
732
|
-
customLayers:
|
|
733
|
-
naLabel:
|
|
734
|
-
} = e, Ft =
|
|
735
|
-
let
|
|
736
|
-
t[0] !== x.amount || t[1] !== x.once ? (
|
|
721
|
+
dimmedOpacity: A,
|
|
722
|
+
precision: K,
|
|
723
|
+
customLayers: q,
|
|
724
|
+
naLabel: rt
|
|
725
|
+
} = e, Ft = zt === void 0 ? 25 : zt, Yt = nt === void 0 ? 10 : nt, X = jt === void 0 ? 100 : jt, yt = S === void 0 ? 40 : S, Bt = de(null);
|
|
726
|
+
let n;
|
|
727
|
+
t[0] !== x.amount || t[1] !== x.once ? (n = {
|
|
737
728
|
once: x.once,
|
|
738
729
|
amount: x.amount
|
|
739
|
-
}, t[0] = x.amount, t[1] = x.once, t[2] =
|
|
740
|
-
const c =
|
|
741
|
-
let
|
|
742
|
-
t[3] !== Yt || t[4] !==
|
|
730
|
+
}, t[0] = x.amount, t[1] = x.once, t[2] = n) : n = t[2];
|
|
731
|
+
const c = Ce(Bt, n), [T, f] = Wt(void 0), [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), mt = s ? Ft + 25 : Ft;
|
|
732
|
+
let C;
|
|
733
|
+
t[3] !== Yt || t[4] !== X || t[5] !== yt || t[6] !== mt ? (C = {
|
|
743
734
|
top: mt,
|
|
744
735
|
bottom: Yt,
|
|
745
|
-
left:
|
|
736
|
+
left: X,
|
|
746
737
|
right: yt
|
|
747
|
-
}, t[3] = Yt, t[4] =
|
|
748
|
-
const g =
|
|
749
|
-
let
|
|
750
|
-
if (t[8] !== x || t[9] !== s || t[10] !== D || t[11] !== gt || t[12] !==
|
|
751
|
-
let
|
|
752
|
-
t[75] !==
|
|
753
|
-
...
|
|
754
|
-
id:
|
|
755
|
-
}), t[75] =
|
|
756
|
-
const qt = m.map(
|
|
757
|
-
|
|
758
|
-
gridLines:
|
|
759
|
-
labels:
|
|
738
|
+
}, t[3] = Yt, t[4] = X, t[5] = yt, t[6] = mt, t[7] = C) : C = t[7];
|
|
739
|
+
const g = C, Q = j - g.left - g.right, Z = y - g.top - g.bottom;
|
|
740
|
+
let U, V, ht, Mt, st, Ct, E, at, P, ft, pt, vt, wt, ot;
|
|
741
|
+
if (t[8] !== x || t[9] !== s || t[10] !== D || t[11] !== gt || t[12] !== h?.graphObjectValues || t[13] !== h?.xAxis?.gridLines || t[14] !== h?.xAxis?.labels || t[15] !== h?.xAxis?.title || t[16] !== h?.yAxis?.axis || t[17] !== h?.yAxis?.labels || t[18] !== I || t[19] !== q || t[20] !== m || t[21] !== u || t[22] !== A || t[23] !== Z || t[24] !== Q || t[25] !== y || t[26] !== et || t[27] !== c || t[28] !== W || t[29] !== g.bottom || t[30] !== g.left || t[31] !== g.top || t[32] !== B || t[33] !== G || t[34] !== R || t[35] !== F || t[36] !== Y || t[37] !== rt || t[38] !== d || t[39] !== J || t[40] !== dt || t[41] !== K || t[42] !== St || t[43] !== Tt || t[44] !== H || t[45] !== xt || t[46] !== w || t[47] !== tt || t[48] !== ct || t[49] !== _ || t[50] !== r?.graphObjectValues || t[51] !== r?.xAxis?.gridLines || t[52] !== r?.xAxis?.labels || t[53] !== r?.xAxis?.title || t[54] !== r?.yAxis?.axis || t[55] !== r?.yAxis?.labels || t[56] !== Xt || t[57] !== Ft || t[58] !== M || t[59] !== o || t[60] !== j) {
|
|
742
|
+
let O;
|
|
743
|
+
t[75] !== W ? (O = (a, p) => ({
|
|
744
|
+
...a,
|
|
745
|
+
id: W ? `${a.label}` : `${p}`
|
|
746
|
+
}), t[75] = W, t[76] = O) : O = t[76];
|
|
747
|
+
const qt = m.map(O), Nt = Ve().domain([F, G]).range([0, Q]).nice(), Kt = W || qt.map(Ji), Lt = ge().domain(Kt).range([0, R ? Math.max(Z, R * Kt.length) : B ? Math.min(Z, B * Kt.length) : Z]).paddingInner(gt), Qt = Nt.ticks(d);
|
|
748
|
+
V = Zt.svg, E = Bt, at = `${j}px`, P = `${y}px`, ft = `0 0 ${j} ${y}`, pt = "ltr", ht = `translate(${g.left},${g.top})`, Mt = ct ? /* @__PURE__ */ i.jsx(Pe, { values: Qt.filter(Ui), x: Qt.filter(qi).map((a) => Nt(a)), y1: 0 - Ft, y2: Z + g.bottom, styles: {
|
|
749
|
+
gridLines: r?.xAxis?.gridLines,
|
|
750
|
+
labels: r?.xAxis?.labels
|
|
760
751
|
}, classNames: {
|
|
761
|
-
gridLines:
|
|
762
|
-
labels:
|
|
763
|
-
}, suffix: Xt, prefix: St, labelType: "secondary", showGridLines: !0, precision:
|
|
764
|
-
const Ut =
|
|
765
|
-
t[77] !== s || t[78] !== Ut || t[79] !== Ht || t[80] !==
|
|
752
|
+
gridLines: h?.xAxis?.gridLines,
|
|
753
|
+
labels: h?.xAxis?.labels
|
|
754
|
+
}, suffix: Xt, prefix: St, labelType: "secondary", showGridLines: !0, precision: K }) : null;
|
|
755
|
+
const Ut = Q / 2, Ht = 0 - g.top + 15, kt = r?.xAxis?.title, Rt = h?.xAxis?.title;
|
|
756
|
+
t[77] !== s || t[78] !== Ut || t[79] !== Ht || t[80] !== kt || t[81] !== Rt ? (st = /* @__PURE__ */ i.jsx(ke, { x: Ut, y: Ht, style: kt, className: Rt, text: s }), t[77] = s, t[78] = Ut, t[79] = Ht, t[80] = kt, t[81] = Rt, t[82] = st) : st = t[82], t[83] !== q ? (Ct = q.filter(Ri).map(Wi), t[83] = q, t[84] = Ct) : Ct = t[84], U = De, vt = qt.map((a) => _t(Lt(a.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", variants: {
|
|
766
757
|
initial: {
|
|
767
|
-
opacity: w ?
|
|
758
|
+
opacity: w ? a.color && D[I.indexOf(a.color)] === w ? 1 : A : et.length !== 0 ? et.indexOf(a.label) !== -1 ? 0.85 : A : 0.85
|
|
768
759
|
},
|
|
769
760
|
whileInView: {
|
|
770
|
-
opacity: w ?
|
|
761
|
+
opacity: w ? a.color && D[I.indexOf(a.color)] === w ? 1 : A : et.length !== 0 ? et.indexOf(a.label) !== -1 ? 0.85 : A : 0.85,
|
|
771
762
|
transition: {
|
|
772
763
|
duration: x.duration
|
|
773
764
|
}
|
|
@@ -778,26 +769,26 @@ function Fi(e) {
|
|
|
778
769
|
duration: x.duration
|
|
779
770
|
}
|
|
780
771
|
}, onMouseEnter: (p) => {
|
|
781
|
-
|
|
772
|
+
f(a), it(p.clientY), Dt(p.clientX), dt?.(a);
|
|
782
773
|
}, onClick: () => {
|
|
783
|
-
(
|
|
774
|
+
(J || u) && (Ae(Y, a) && H ? (N(void 0), J?.(void 0)) : (N(a), J?.(a)));
|
|
784
775
|
}, onMouseMove: (p) => {
|
|
785
|
-
|
|
776
|
+
f(a), it(p.clientY), Dt(p.clientX);
|
|
786
777
|
}, onMouseLeave: () => {
|
|
787
|
-
|
|
778
|
+
f(void 0), Dt(void 0), it(void 0), dt?.(void 0);
|
|
788
779
|
}, children: [
|
|
789
|
-
|
|
780
|
+
a.size ? /* @__PURE__ */ i.jsx(Zt.rect, { variants: {
|
|
790
781
|
initial: {
|
|
791
782
|
width: 0,
|
|
792
783
|
x: Nt(0),
|
|
793
|
-
y:
|
|
794
|
-
fill: m.filter(
|
|
784
|
+
y: Lt(`${a.id}`),
|
|
785
|
+
fill: m.filter(Gi).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray
|
|
795
786
|
},
|
|
796
787
|
whileInView: {
|
|
797
|
-
width:
|
|
798
|
-
x:
|
|
799
|
-
y:
|
|
800
|
-
fill: m.filter(
|
|
788
|
+
width: a.size >= 0 ? Nt(a.size) - Nt(0) : Nt(0) - Nt(a.size),
|
|
789
|
+
x: a.size >= 0 ? Nt(0) : Nt(a.size),
|
|
790
|
+
y: Lt(`${a.id}`),
|
|
791
|
+
fill: m.filter(Ei).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray,
|
|
801
792
|
transition: {
|
|
802
793
|
duration: x.duration
|
|
803
794
|
}
|
|
@@ -808,23 +799,23 @@ function Fi(e) {
|
|
|
808
799
|
transition: {
|
|
809
800
|
duration: x.duration
|
|
810
801
|
}
|
|
811
|
-
}, height:
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
textAnchor:
|
|
815
|
-
...
|
|
816
|
-
}, className: pe("graph-value text-sm", !
|
|
802
|
+
}, height: Lt.bandwidth() }) : null,
|
|
803
|
+
tt ? /* @__PURE__ */ i.jsx(Be, { value: `${a.label}`.length < M ? `${a.label}` : `${`${a.label}`.substring(0, M)}...`, y: Lt(a.id) || 0, x: (a.size || 0) < 0 ? Nt(0) : 0 - g.left, width: (a.size || 0) < 0 ? j - Nt(0) : Nt(0) + g.left, height: Lt.bandwidth(), alignment: a.size && a.size < 0 ? "left" : "right", style: r?.yAxis?.labels, className: h?.yAxis?.labels, animate: x, isInView: c }) : null,
|
|
804
|
+
_ ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
|
|
805
|
+
textAnchor: a.size && a.size < 0 ? "end" : "start",
|
|
806
|
+
...r?.graphObjectValues || {}
|
|
807
|
+
}, className: pe("graph-value text-sm", !o && D.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", h?.graphObjectValues), dx: a.size && a.size < 0 ? -5 : 5, dy: "0.33em", variants: {
|
|
817
808
|
initial: {
|
|
818
809
|
x: Nt(0),
|
|
819
|
-
y:
|
|
810
|
+
y: Lt(`${a.id}`) + Lt.bandwidth() / 2,
|
|
820
811
|
opacity: 0,
|
|
821
|
-
fill:
|
|
812
|
+
fill: o || (m.filter(Yi).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray)
|
|
822
813
|
},
|
|
823
814
|
whileInView: {
|
|
824
|
-
x:
|
|
815
|
+
x: a.size ? Nt(a.size) : Nt(0),
|
|
825
816
|
opacity: 1,
|
|
826
|
-
y:
|
|
827
|
-
fill:
|
|
817
|
+
y: Lt(`${a.id}`) + Lt.bandwidth() / 2,
|
|
818
|
+
fill: o || (m.filter(Xi).length === 0 ? D[0] : a.color ? D[I.indexOf(a.color)] : ce.gray),
|
|
828
819
|
transition: {
|
|
829
820
|
duration: x.duration
|
|
830
821
|
}
|
|
@@ -834,59 +825,58 @@ function Fi(e) {
|
|
|
834
825
|
transition: {
|
|
835
826
|
duration: x.duration
|
|
836
827
|
}
|
|
837
|
-
}, children: ue(
|
|
838
|
-
] },
|
|
839
|
-
const Jt =
|
|
840
|
-
let
|
|
841
|
-
t[85] !== Jt ? (
|
|
828
|
+
}, children: ue(a.size, rt, K, St, Xt) }) : null
|
|
829
|
+
] }, a.label));
|
|
830
|
+
const Jt = h?.yAxis?.axis;
|
|
831
|
+
let z;
|
|
832
|
+
t[85] !== Jt ? (z = {
|
|
842
833
|
axis: Jt
|
|
843
|
-
}, t[85] = Jt, t[86] =
|
|
844
|
-
const v =
|
|
834
|
+
}, t[85] = Jt, t[86] = z) : z = t[86];
|
|
835
|
+
const v = r?.yAxis?.axis;
|
|
845
836
|
let k;
|
|
846
837
|
t[87] !== v ? (k = {
|
|
847
838
|
axis: v
|
|
848
|
-
}, t[87] = v, t[88] = k) : k = t[88], wt = /* @__PURE__ */ i.jsx(
|
|
839
|
+
}, t[87] = v, t[88] = k) : k = t[88], wt = /* @__PURE__ */ i.jsx(Oe, { x1: Nt(F < 0 ? 0 : F), x2: Nt(F < 0 ? 0 : F), y1: -2.5, y2: Z + g.bottom, classNames: z, styles: k }), ot = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((a, p) => /* @__PURE__ */ i.jsx(Fe, { text: a.text, color: a.color, x: Nt(a.value), y1: 0 - g.top, y2: Z + g.bottom, textSide: Nt(a.value) > Q * 0.75 || xt ? "left" : "right", classNames: a.classNames, styles: a.styles, animate: x, isInView: c }, p)) }) : null, t[8] = x, t[9] = s, t[10] = D, t[11] = gt, t[12] = h?.graphObjectValues, t[13] = h?.xAxis?.gridLines, t[14] = h?.xAxis?.labels, t[15] = h?.xAxis?.title, t[16] = h?.yAxis?.axis, t[17] = h?.yAxis?.labels, t[18] = I, t[19] = q, t[20] = m, t[21] = u, t[22] = A, t[23] = Z, t[24] = Q, t[25] = y, t[26] = et, t[27] = c, t[28] = W, t[29] = g.bottom, t[30] = g.left, t[31] = g.top, t[32] = B, t[33] = G, t[34] = R, t[35] = F, t[36] = Y, t[37] = rt, t[38] = d, t[39] = J, t[40] = dt, t[41] = K, t[42] = St, t[43] = Tt, t[44] = H, t[45] = xt, t[46] = w, t[47] = tt, t[48] = ct, t[49] = _, t[50] = r?.graphObjectValues, t[51] = r?.xAxis?.gridLines, t[52] = r?.xAxis?.labels, t[53] = r?.xAxis?.title, t[54] = r?.yAxis?.axis, t[55] = r?.yAxis?.labels, t[56] = Xt, t[57] = Ft, t[58] = M, t[59] = o, t[60] = j, t[61] = U, t[62] = V, t[63] = ht, t[64] = Mt, t[65] = st, t[66] = Ct, t[67] = E, t[68] = at, t[69] = P, t[70] = ft, t[71] = pt, t[72] = vt, t[73] = wt, t[74] = ot;
|
|
849
840
|
} else
|
|
850
|
-
|
|
841
|
+
U = t[61], V = t[62], ht = t[63], Mt = t[64], st = t[65], Ct = t[66], E = t[67], at = t[68], P = t[69], ft = t[70], pt = t[71], vt = t[72], wt = t[73], ot = t[74];
|
|
851
842
|
let At;
|
|
852
|
-
t[89] !==
|
|
843
|
+
t[89] !== U || t[90] !== vt || t[91] !== wt || t[92] !== ot ? (At = /* @__PURE__ */ i.jsxs(U, { children: [
|
|
853
844
|
vt,
|
|
854
845
|
wt,
|
|
855
|
-
|
|
856
|
-
] }), t[89] =
|
|
846
|
+
ot
|
|
847
|
+
] }), t[89] = U, t[90] = vt, t[91] = wt, t[92] = ot, t[93] = At) : At = t[93];
|
|
857
848
|
let $t;
|
|
858
|
-
t[94] !==
|
|
849
|
+
t[94] !== q ? ($t = q.filter(Hi).map(Fi), t[94] = q, t[95] = $t) : $t = t[95];
|
|
859
850
|
let Ot;
|
|
860
|
-
t[96] !== ht || t[97] !==
|
|
861
|
-
|
|
862
|
-
|
|
851
|
+
t[96] !== ht || t[97] !== Mt || t[98] !== st || t[99] !== Ct || t[100] !== At || t[101] !== $t ? (Ot = /* @__PURE__ */ i.jsxs("g", { transform: ht, children: [
|
|
852
|
+
Mt,
|
|
853
|
+
st,
|
|
863
854
|
Ct,
|
|
864
855
|
At,
|
|
865
856
|
$t
|
|
866
|
-
] }), t[96] = ht, t[97] =
|
|
857
|
+
] }), t[96] = ht, t[97] = Mt, t[98] = st, t[99] = Ct, t[100] = At, t[101] = $t, t[102] = Ot) : Ot = t[102];
|
|
867
858
|
let b;
|
|
868
|
-
t[103] !==
|
|
869
|
-
let
|
|
870
|
-
t[111] !==
|
|
859
|
+
t[103] !== V || t[104] !== E || t[105] !== at || t[106] !== P || t[107] !== ft || t[108] !== pt || t[109] !== Ot ? (b = /* @__PURE__ */ i.jsx(V, { ref: E, width: at, height: P, viewBox: ft, direction: pt, children: Ot }), t[103] = V, t[104] = E, t[105] = at, t[106] = P, t[107] = ft, t[108] = pt, t[109] = Ot, t[110] = b) : b = t[110];
|
|
860
|
+
let lt;
|
|
861
|
+
t[111] !== h?.tooltip || t[112] !== $ || t[113] !== bt || t[114] !== T || t[115] !== r?.tooltip || t[116] !== ut ? (lt = T && ut && $ && bt ? /* @__PURE__ */ i.jsx($e, { data: T, body: ut, xPos: $, yPos: bt, backgroundStyle: r?.tooltip, className: h?.tooltip }) : null, t[111] = h?.tooltip, t[112] = $, t[113] = bt, t[114] = T, t[115] = r?.tooltip, t[116] = ut, t[117] = lt) : lt = t[117];
|
|
871
862
|
let It;
|
|
872
|
-
t[118] !==
|
|
873
|
-
S(void 0);
|
|
874
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof a == "string" ? {
|
|
875
|
-
__html: Me(a, V)
|
|
876
|
-
} : void 0, children: typeof a == "function" ? a(V) : null }) }) : null, t[118] = a, t[119] = V, t[120] = It) : It = t[120];
|
|
863
|
+
t[118] !== h?.modal || t[119] !== u || t[120] !== Y ? (It = u && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: u, data: Y, setData: N, className: h?.modal }) : null, t[118] = h?.modal, t[119] = u, t[120] = Y, t[121] = It) : It = t[121];
|
|
877
864
|
let Et;
|
|
878
|
-
return t[
|
|
865
|
+
return t[122] !== b || t[123] !== lt || t[124] !== It ? (Et = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
879
866
|
b,
|
|
880
|
-
|
|
867
|
+
lt,
|
|
881
868
|
It
|
|
882
|
-
] }), t[
|
|
869
|
+
] }), t[122] = b, t[123] = lt, t[124] = It, t[125] = Et) : Et = t[125], Et;
|
|
883
870
|
}
|
|
884
|
-
function
|
|
871
|
+
function Fi(e) {
|
|
885
872
|
return e.layer;
|
|
886
873
|
}
|
|
887
|
-
function
|
|
874
|
+
function Hi(e) {
|
|
888
875
|
return e.position === "after";
|
|
889
876
|
}
|
|
877
|
+
function Xi(e) {
|
|
878
|
+
return e.color;
|
|
879
|
+
}
|
|
890
880
|
function Yi(e) {
|
|
891
881
|
return e.color;
|
|
892
882
|
}
|
|
@@ -897,122 +887,119 @@ function Gi(e) {
|
|
|
897
887
|
return e.color;
|
|
898
888
|
}
|
|
899
889
|
function Wi(e) {
|
|
900
|
-
return e.
|
|
890
|
+
return e.layer;
|
|
901
891
|
}
|
|
902
892
|
function Ri(e) {
|
|
903
|
-
return e.
|
|
893
|
+
return e.position === "before";
|
|
904
894
|
}
|
|
905
895
|
function qi(e) {
|
|
906
|
-
return e
|
|
896
|
+
return e !== 0;
|
|
907
897
|
}
|
|
908
898
|
function Ui(e) {
|
|
909
899
|
return e !== 0;
|
|
910
900
|
}
|
|
911
901
|
function Ji(e) {
|
|
912
|
-
return e !== 0;
|
|
913
|
-
}
|
|
914
|
-
function Ki(e) {
|
|
915
902
|
return `${e.id}`;
|
|
916
903
|
}
|
|
917
|
-
function
|
|
918
|
-
const t = xe.c(
|
|
904
|
+
function Ki(e) {
|
|
905
|
+
const t = xe.c(134), {
|
|
919
906
|
leftMargin: m,
|
|
920
907
|
rightMargin: D,
|
|
921
908
|
topMargin: Xt,
|
|
922
909
|
bottomMargin: St,
|
|
923
910
|
data: gt,
|
|
924
|
-
width:
|
|
925
|
-
height:
|
|
926
|
-
barColor:
|
|
927
|
-
suffix:
|
|
911
|
+
width: _,
|
|
912
|
+
height: ct,
|
|
913
|
+
barColor: M,
|
|
914
|
+
suffix: j,
|
|
928
915
|
prefix: y,
|
|
929
|
-
barPadding:
|
|
930
|
-
showLabels:
|
|
931
|
-
showValues:
|
|
932
|
-
showTicks:
|
|
933
|
-
colorDomain:
|
|
934
|
-
truncateBy:
|
|
935
|
-
tooltip:
|
|
936
|
-
onSeriesMouseOver:
|
|
916
|
+
barPadding: I,
|
|
917
|
+
showLabels: zt,
|
|
918
|
+
showValues: nt,
|
|
919
|
+
showTicks: jt,
|
|
920
|
+
colorDomain: S,
|
|
921
|
+
truncateBy: tt,
|
|
922
|
+
tooltip: ut,
|
|
923
|
+
onSeriesMouseOver: dt,
|
|
937
924
|
refValues: Tt,
|
|
938
925
|
selectedColor: w,
|
|
939
|
-
maxValue:
|
|
940
|
-
minValue:
|
|
941
|
-
highlightedDataPoints:
|
|
942
|
-
onSeriesMouseClick:
|
|
943
|
-
labelOrder:
|
|
944
|
-
maxBarThickness:
|
|
945
|
-
minBarThickness:
|
|
946
|
-
resetSelectionOnDoubleClick:
|
|
947
|
-
detailsOnClick:
|
|
948
|
-
barAxisTitle:
|
|
926
|
+
maxValue: et,
|
|
927
|
+
minValue: G,
|
|
928
|
+
highlightedDataPoints: F,
|
|
929
|
+
onSeriesMouseClick: J,
|
|
930
|
+
labelOrder: W,
|
|
931
|
+
maxBarThickness: xt,
|
|
932
|
+
minBarThickness: B,
|
|
933
|
+
resetSelectionOnDoubleClick: R,
|
|
934
|
+
detailsOnClick: H,
|
|
935
|
+
barAxisTitle: u,
|
|
949
936
|
valueColor: s,
|
|
950
|
-
noOfTicks:
|
|
951
|
-
styles:
|
|
952
|
-
classNames:
|
|
953
|
-
dimmedOpacity:
|
|
937
|
+
noOfTicks: o,
|
|
938
|
+
styles: d,
|
|
939
|
+
classNames: r,
|
|
940
|
+
dimmedOpacity: h,
|
|
954
941
|
animate: x,
|
|
955
|
-
precision:
|
|
956
|
-
customLayers:
|
|
957
|
-
naLabel:
|
|
958
|
-
} = e,
|
|
942
|
+
precision: A,
|
|
943
|
+
customLayers: K,
|
|
944
|
+
naLabel: q
|
|
945
|
+
} = e, rt = m === void 0 ? 20 : m, Ft = D === void 0 ? 20 : D, Yt = Xt === void 0 ? 20 : Xt, X = St === void 0 ? 25 : St, yt = de(null);
|
|
959
946
|
let Bt;
|
|
960
947
|
t[0] !== x.amount || t[1] !== x.once ? (Bt = {
|
|
961
948
|
once: x.once,
|
|
962
949
|
amount: x.amount
|
|
963
950
|
}, t[0] = x.amount, t[1] = x.once, t[2] = Bt) : Bt = t[2];
|
|
964
|
-
const
|
|
965
|
-
let
|
|
966
|
-
t[3] !==
|
|
951
|
+
const n = Ce(yt, Bt), c = u ? rt + 30 : rt;
|
|
952
|
+
let T;
|
|
953
|
+
t[3] !== X || t[4] !== Ft || t[5] !== c || t[6] !== Yt ? (T = {
|
|
967
954
|
top: Yt,
|
|
968
|
-
bottom:
|
|
955
|
+
bottom: X,
|
|
969
956
|
left: c,
|
|
970
957
|
right: Ft
|
|
971
|
-
}, t[3] =
|
|
972
|
-
const
|
|
973
|
-
let
|
|
974
|
-
if (t[8] !== x || t[9] !==
|
|
975
|
-
const Et =
|
|
976
|
-
let
|
|
977
|
-
t[75] !==
|
|
958
|
+
}, t[3] = X, t[4] = Ft, t[5] = c, t[6] = Yt, t[7] = T) : T = t[7];
|
|
959
|
+
const f = T, [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), [mt, C] = Wt(void 0), g = _ - f.left - f.right, Q = ct - f.top - f.bottom;
|
|
960
|
+
let Z, U, V, ht, Mt, st, Ct, E, at, P, ft, pt, vt, wt;
|
|
961
|
+
if (t[8] !== x || t[9] !== u || t[10] !== M || t[11] !== I || t[12] !== r?.graphObjectValues || t[13] !== r?.xAxis?.axis || t[14] !== r?.xAxis?.labels || t[15] !== r?.yAxis?.gridLines || t[16] !== r?.yAxis?.labels || t[17] !== r?.yAxis?.title || t[18] !== S || t[19] !== K || t[20] !== gt || t[21] !== H || t[22] !== h || t[23] !== Q || t[24] !== g || t[25] !== ct || t[26] !== F || t[27] !== n || t[28] !== W || t[29] !== rt || t[30] !== f.bottom || t[31] !== f.left || t[32] !== f.right || t[33] !== f.top || t[34] !== xt || t[35] !== et || t[36] !== B || t[37] !== G || t[38] !== $ || t[39] !== q || t[40] !== o || t[41] !== J || t[42] !== dt || t[43] !== A || t[44] !== y || t[45] !== Tt || t[46] !== R || t[47] !== w || t[48] !== zt || t[49] !== jt || t[50] !== nt || t[51] !== d?.graphObjectValues || t[52] !== d?.xAxis?.axis || t[53] !== d?.xAxis?.labels || t[54] !== d?.yAxis?.gridLines || t[55] !== d?.yAxis?.labels || t[56] !== d?.yAxis?.title || t[57] !== j || t[58] !== tt || t[59] !== s || t[60] !== _) {
|
|
962
|
+
const Et = Ve().domain([G, et]).range([Q, 0]).nice();
|
|
963
|
+
let O;
|
|
964
|
+
t[75] !== W ? (O = (l, ie) => ({
|
|
978
965
|
...l,
|
|
979
|
-
id:
|
|
980
|
-
}), t[75] =
|
|
981
|
-
const qt = gt.map(
|
|
982
|
-
|
|
983
|
-
const Qt = Et(
|
|
984
|
-
let
|
|
985
|
-
t[77] !==
|
|
986
|
-
const Rt =
|
|
987
|
-
let
|
|
988
|
-
t[83] !== Rt || t[84] !== Jt ? (
|
|
966
|
+
id: W ? `${l.label}` : `${ie}`
|
|
967
|
+
}), t[75] = W, t[76] = O) : O = t[76];
|
|
968
|
+
const qt = gt.map(O), Nt = W || qt.map(ns), Kt = ge().domain(Nt).range([0, B ? Math.max(g, B * Nt.length) : xt ? Math.min(g, xt * Nt.length) : g]).paddingInner(I), Lt = Et.ticks(o);
|
|
969
|
+
U = Zt.svg, Ct = yt, E = `${_}px`, at = `${ct}px`, P = `0 0 ${_} ${ct}`, ft = "ltr", wt = `translate(${f.left},${f.top})`;
|
|
970
|
+
const Qt = Et(G < 0 ? 0 : G), Ut = Et(G < 0 ? 0 : G), Ht = G < 0 ? 0 : G;
|
|
971
|
+
let kt;
|
|
972
|
+
t[77] !== q || t[78] !== A || t[79] !== y || t[80] !== j || t[81] !== Ht ? (kt = ue(Ht, q, A, y, j), t[77] = q, t[78] = A, t[79] = y, t[80] = j, t[81] = Ht, t[82] = kt) : kt = t[82];
|
|
973
|
+
const Rt = r?.xAxis?.axis, Jt = r?.yAxis?.labels;
|
|
974
|
+
let z;
|
|
975
|
+
t[83] !== Rt || t[84] !== Jt ? (z = {
|
|
989
976
|
axis: Rt,
|
|
990
977
|
label: Jt
|
|
991
|
-
}, t[83] = Rt, t[84] = Jt, t[85] =
|
|
992
|
-
const v =
|
|
993
|
-
let
|
|
994
|
-
t[86] !== v || t[87] !== k ? (
|
|
978
|
+
}, t[83] = Rt, t[84] = Jt, t[85] = z) : z = t[85];
|
|
979
|
+
const v = d?.xAxis?.axis, k = d?.yAxis?.labels;
|
|
980
|
+
let a;
|
|
981
|
+
t[86] !== v || t[87] !== k ? (a = {
|
|
995
982
|
axis: v,
|
|
996
983
|
label: k
|
|
997
|
-
}, t[86] = v, t[87] = k, t[88] =
|
|
998
|
-
x: 0 -
|
|
984
|
+
}, t[86] = v, t[87] = k, t[88] = a) : a = t[88], V = /* @__PURE__ */ i.jsx(Oe, { y1: Qt, y2: Ut, x1: 0 - rt, x2: g + f.right, label: kt, labelPos: {
|
|
985
|
+
x: 0 - rt,
|
|
999
986
|
dx: 0,
|
|
1000
|
-
dy:
|
|
1001
|
-
y: Et(
|
|
1002
|
-
}, classNames:
|
|
1003
|
-
gridLines: u?.yAxis?.gridLines,
|
|
1004
|
-
labels: u?.yAxis?.labels
|
|
1005
|
-
}, classNames: {
|
|
987
|
+
dy: et < 0 ? "1em" : -5,
|
|
988
|
+
y: Et(G < 0 ? 0 : G)
|
|
989
|
+
}, classNames: z, styles: a }), ht = jt ? /* @__PURE__ */ i.jsx(Xe, { values: Lt.filter(ls), y: Lt.filter(os).map((l) => Et(l)), x1: 0 - rt, x2: g + f.right, styles: {
|
|
1006
990
|
gridLines: d?.yAxis?.gridLines,
|
|
1007
991
|
labels: d?.yAxis?.labels
|
|
1008
|
-
},
|
|
1009
|
-
|
|
1010
|
-
|
|
992
|
+
}, classNames: {
|
|
993
|
+
gridLines: r?.yAxis?.gridLines,
|
|
994
|
+
labels: r?.yAxis?.labels
|
|
995
|
+
}, suffix: j, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: A }) : null;
|
|
996
|
+
const p = 0 - rt - 15, ee = Q / 2, L = d?.yAxis?.title, Vt = r?.yAxis?.title;
|
|
997
|
+
t[89] !== u || t[90] !== p || t[91] !== ee || t[92] !== L || t[93] !== Vt ? (Mt = /* @__PURE__ */ i.jsx(ke, { x: p, y: ee, style: L, className: Vt, text: u, rotate90: !0 }), t[89] = u, t[90] = p, t[91] = ee, t[92] = L, t[93] = Vt, t[94] = Mt) : Mt = t[94], t[95] !== K ? (st = K.filter(as).map(ss), t[95] = K, t[96] = st) : st = t[96], Z = De, pt = qt.map((l, ie) => _t(Kt(l.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: n ? "whileInView" : "initial", variants: {
|
|
1011
998
|
initial: {
|
|
1012
|
-
opacity: w ? l.color &&
|
|
999
|
+
opacity: w ? l.color && M[S.indexOf(l.color)] === w ? 1 : h : F.length !== 0 ? F.indexOf(l.label) !== -1 ? 0.85 : h : 0.85
|
|
1013
1000
|
},
|
|
1014
1001
|
whileInView: {
|
|
1015
|
-
opacity: w ? l.color &&
|
|
1002
|
+
opacity: w ? l.color && M[S.indexOf(l.color)] === w ? 1 : h : F.length !== 0 ? F.indexOf(l.label) !== -1 ? 0.85 : h : 0.85,
|
|
1016
1003
|
transition: {
|
|
1017
1004
|
duration: x.duration
|
|
1018
1005
|
}
|
|
@@ -1023,26 +1010,26 @@ function Qi(e) {
|
|
|
1023
1010
|
duration: x.duration
|
|
1024
1011
|
}
|
|
1025
1012
|
}, onMouseEnter: (se) => {
|
|
1026
|
-
|
|
1013
|
+
N(l), C(se.clientY), it(se.clientX), dt?.(l);
|
|
1027
1014
|
}, onClick: () => {
|
|
1028
|
-
(
|
|
1015
|
+
(J || H) && (Ae($, l) && R ? (Dt(void 0), J?.(void 0)) : (Dt(l), J?.(l)));
|
|
1029
1016
|
}, onMouseMove: (se) => {
|
|
1030
|
-
|
|
1017
|
+
N(l), C(se.clientY), it(se.clientX);
|
|
1031
1018
|
}, onMouseLeave: () => {
|
|
1032
|
-
|
|
1019
|
+
N(void 0), it(void 0), C(void 0), dt?.(void 0);
|
|
1033
1020
|
}, children: [
|
|
1034
|
-
l.size ? /* @__PURE__ */ i.jsx(Zt.rect, { width: Kt.bandwidth(), initial: "initial", animate:
|
|
1021
|
+
l.size ? /* @__PURE__ */ i.jsx(Zt.rect, { width: Kt.bandwidth(), initial: "initial", animate: n ? "whileInView" : "initial", variants: {
|
|
1035
1022
|
initial: {
|
|
1036
1023
|
height: 0,
|
|
1037
1024
|
x: Kt(`${l.id}`),
|
|
1038
1025
|
y: Et(0),
|
|
1039
|
-
fill: gt.filter(
|
|
1026
|
+
fill: gt.filter(is).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray
|
|
1040
1027
|
},
|
|
1041
1028
|
whileInView: {
|
|
1042
1029
|
height: l.size ? Math.abs(Et(l.size) - Et(0)) : 0,
|
|
1043
1030
|
y: l.size && l.size > 0 ? Et(l.size) : Et(0),
|
|
1044
1031
|
x: Kt(`${l.id}`),
|
|
1045
|
-
fill: gt.filter(
|
|
1032
|
+
fill: gt.filter(es).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray,
|
|
1046
1033
|
transition: {
|
|
1047
1034
|
duration: x.duration
|
|
1048
1035
|
}
|
|
@@ -1054,74 +1041,73 @@ function Qi(e) {
|
|
|
1054
1041
|
duration: x.duration
|
|
1055
1042
|
}
|
|
1056
1043
|
} }) : null,
|
|
1057
|
-
|
|
1058
|
-
|
|
1044
|
+
zt ? /* @__PURE__ */ i.jsx(Ye, { value: `${l.label}`.length < tt ? `${l.label}` : `${`${l.label}`.substring(0, tt)}...`, y: (l.size || 0) < 0 ? 0 : Et(0) + 5, x: Kt(`${l.id}`), width: Kt.bandwidth(), height: (l.size || 0) < 0 ? Et(0) - 5 : f.bottom, style: d?.xAxis?.labels, className: r?.xAxis?.labels, alignment: (l.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: n }) : null,
|
|
1045
|
+
nt ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
|
|
1059
1046
|
textAnchor: "middle",
|
|
1060
|
-
...
|
|
1061
|
-
}, className: pe("graph-value text-sm", !s &&
|
|
1047
|
+
...d?.graphObjectValues || {}
|
|
1048
|
+
}, className: pe("graph-value text-sm", !s && M.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", r?.graphObjectValues), dy: l.size ? l.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
|
|
1062
1049
|
initial: {
|
|
1063
1050
|
x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
|
|
1064
1051
|
y: Et(0),
|
|
1065
1052
|
opacity: 0,
|
|
1066
|
-
fill: s || (gt.filter(
|
|
1053
|
+
fill: s || (gt.filter(ts).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray)
|
|
1067
1054
|
},
|
|
1068
1055
|
whileInView: {
|
|
1069
1056
|
x: Kt(`${l.id}`) + Kt.bandwidth() / 2,
|
|
1070
1057
|
y: Et(l.size || 0),
|
|
1071
|
-
fill: s || (gt.filter(
|
|
1058
|
+
fill: s || (gt.filter(_i).length === 0 ? M[0] : l.color ? M[S.indexOf(l.color)] : ce.gray),
|
|
1072
1059
|
opacity: 1,
|
|
1073
1060
|
transition: {
|
|
1074
1061
|
duration: x.duration
|
|
1075
1062
|
}
|
|
1076
1063
|
}
|
|
1077
|
-
}, initial: "initial", animate:
|
|
1064
|
+
}, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
|
|
1078
1065
|
opacity: 0,
|
|
1079
1066
|
transition: {
|
|
1080
1067
|
duration: x.duration
|
|
1081
1068
|
}
|
|
1082
|
-
}, children: ue(l.size,
|
|
1083
|
-
] }, l.label)), vt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((l, ie) => /* @__PURE__ */ i.jsx(
|
|
1069
|
+
}, children: ue(l.size, q, A, y, j) }) : null
|
|
1070
|
+
] }, l.label)), vt = Tt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Tt.map((l, ie) => /* @__PURE__ */ i.jsx(He, { text: l.text, color: l.color, y: Et(l.value), x1: 0 - rt, x2: g + f.right, classNames: l.classNames, styles: l.styles, animate: x, isInView: n }, ie)) }) : null, t[8] = x, t[9] = u, t[10] = M, t[11] = I, t[12] = r?.graphObjectValues, t[13] = r?.xAxis?.axis, t[14] = r?.xAxis?.labels, t[15] = r?.yAxis?.gridLines, t[16] = r?.yAxis?.labels, t[17] = r?.yAxis?.title, t[18] = S, t[19] = K, t[20] = gt, t[21] = H, t[22] = h, t[23] = Q, t[24] = g, t[25] = ct, t[26] = F, t[27] = n, t[28] = W, t[29] = rt, t[30] = f.bottom, t[31] = f.left, t[32] = f.right, t[33] = f.top, t[34] = xt, t[35] = et, t[36] = B, t[37] = G, t[38] = $, t[39] = q, t[40] = o, t[41] = J, t[42] = dt, t[43] = A, t[44] = y, t[45] = Tt, t[46] = R, t[47] = w, t[48] = zt, t[49] = jt, t[50] = nt, t[51] = d?.graphObjectValues, t[52] = d?.xAxis?.axis, t[53] = d?.xAxis?.labels, t[54] = d?.yAxis?.gridLines, t[55] = d?.yAxis?.labels, t[56] = d?.yAxis?.title, t[57] = j, t[58] = tt, t[59] = s, t[60] = _, t[61] = Z, t[62] = U, t[63] = V, t[64] = ht, t[65] = Mt, t[66] = st, t[67] = Ct, t[68] = E, t[69] = at, t[70] = P, t[71] = ft, t[72] = pt, t[73] = vt, t[74] = wt;
|
|
1084
1071
|
} else
|
|
1085
|
-
|
|
1086
|
-
let
|
|
1087
|
-
t[97] !==
|
|
1072
|
+
Z = t[61], U = t[62], V = t[63], ht = t[64], Mt = t[65], st = t[66], Ct = t[67], E = t[68], at = t[69], P = t[70], ft = t[71], pt = t[72], vt = t[73], wt = t[74];
|
|
1073
|
+
let ot;
|
|
1074
|
+
t[97] !== Z || t[98] !== pt || t[99] !== vt ? (ot = /* @__PURE__ */ i.jsxs(Z, { children: [
|
|
1088
1075
|
pt,
|
|
1089
1076
|
vt
|
|
1090
|
-
] }), t[97] =
|
|
1077
|
+
] }), t[97] = Z, t[98] = pt, t[99] = vt, t[100] = ot) : ot = t[100];
|
|
1091
1078
|
let At;
|
|
1092
|
-
t[101] !==
|
|
1079
|
+
t[101] !== K ? (At = K.filter(Zi).map(Qi), t[101] = K, t[102] = At) : At = t[102];
|
|
1093
1080
|
let $t;
|
|
1094
|
-
t[103] !==
|
|
1095
|
-
|
|
1081
|
+
t[103] !== V || t[104] !== ht || t[105] !== Mt || t[106] !== st || t[107] !== ot || t[108] !== At || t[109] !== wt ? ($t = /* @__PURE__ */ i.jsxs("g", { transform: wt, children: [
|
|
1082
|
+
V,
|
|
1096
1083
|
ht,
|
|
1097
|
-
|
|
1084
|
+
Mt,
|
|
1085
|
+
st,
|
|
1098
1086
|
ot,
|
|
1099
|
-
lt,
|
|
1100
1087
|
At
|
|
1101
|
-
] }), t[103] =
|
|
1088
|
+
] }), t[103] = V, t[104] = ht, t[105] = Mt, t[106] = st, t[107] = ot, t[108] = At, t[109] = wt, t[110] = $t) : $t = t[110];
|
|
1102
1089
|
let Ot;
|
|
1103
|
-
t[111] !==
|
|
1090
|
+
t[111] !== U || t[112] !== Ct || t[113] !== E || t[114] !== at || t[115] !== P || t[116] !== ft || t[117] !== $t ? (Ot = /* @__PURE__ */ i.jsx(U, { ref: Ct, width: E, height: at, viewBox: P, direction: ft, children: $t }), t[111] = U, t[112] = Ct, t[113] = E, t[114] = at, t[115] = P, t[116] = ft, t[117] = $t, t[118] = Ot) : Ot = t[118];
|
|
1104
1091
|
let b;
|
|
1105
|
-
t[119] !==
|
|
1106
|
-
let
|
|
1107
|
-
t[126] !==
|
|
1108
|
-
Lt(void 0);
|
|
1109
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof I == "string" ? {
|
|
1110
|
-
__html: Me(I, A)
|
|
1111
|
-
} : void 0, children: typeof I == "function" ? I(A) : null }) }) : null, t[126] = I, t[127] = A, t[128] = at) : at = t[128];
|
|
1092
|
+
t[119] !== r?.tooltip || t[120] !== bt || t[121] !== mt || t[122] !== Y || t[123] !== d?.tooltip || t[124] !== ut ? (b = Y && ut && bt && mt ? /* @__PURE__ */ i.jsx($e, { data: Y, body: ut, xPos: bt, yPos: mt, backgroundStyle: d?.tooltip, className: r?.tooltip }) : null, t[119] = r?.tooltip, t[120] = bt, t[121] = mt, t[122] = Y, t[123] = d?.tooltip, t[124] = ut, t[125] = b) : b = t[125];
|
|
1093
|
+
let lt;
|
|
1094
|
+
t[126] !== r?.modal || t[127] !== H || t[128] !== $ ? (lt = H && $ !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: H, data: $, setData: Dt, className: r?.modal }) : null, t[126] = r?.modal, t[127] = H, t[128] = $, t[129] = lt) : lt = t[129];
|
|
1112
1095
|
let It;
|
|
1113
|
-
return t[
|
|
1096
|
+
return t[130] !== Ot || t[131] !== b || t[132] !== lt ? (It = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1114
1097
|
Ot,
|
|
1115
1098
|
b,
|
|
1116
|
-
|
|
1117
|
-
] }), t[
|
|
1099
|
+
lt
|
|
1100
|
+
] }), t[130] = Ot, t[131] = b, t[132] = lt, t[133] = It) : It = t[133], It;
|
|
1118
1101
|
}
|
|
1119
|
-
function
|
|
1102
|
+
function Qi(e) {
|
|
1120
1103
|
return e.layer;
|
|
1121
1104
|
}
|
|
1122
|
-
function
|
|
1105
|
+
function Zi(e) {
|
|
1123
1106
|
return e.position === "after";
|
|
1124
1107
|
}
|
|
1108
|
+
function _i(e) {
|
|
1109
|
+
return e.color;
|
|
1110
|
+
}
|
|
1125
1111
|
function ts(e) {
|
|
1126
1112
|
return e.color;
|
|
1127
1113
|
}
|
|
@@ -1132,129 +1118,126 @@ function is(e) {
|
|
|
1132
1118
|
return e.color;
|
|
1133
1119
|
}
|
|
1134
1120
|
function ss(e) {
|
|
1135
|
-
return e.color;
|
|
1136
|
-
}
|
|
1137
|
-
function os(e) {
|
|
1138
1121
|
return e.layer;
|
|
1139
1122
|
}
|
|
1140
|
-
function
|
|
1123
|
+
function as(e) {
|
|
1141
1124
|
return e.position === "before";
|
|
1142
1125
|
}
|
|
1143
|
-
function
|
|
1126
|
+
function os(e) {
|
|
1144
1127
|
return e !== 0;
|
|
1145
1128
|
}
|
|
1146
|
-
function
|
|
1129
|
+
function ls(e) {
|
|
1147
1130
|
return e !== 0;
|
|
1148
1131
|
}
|
|
1149
|
-
function
|
|
1132
|
+
function ns(e) {
|
|
1150
1133
|
return `${e.id}`;
|
|
1151
1134
|
}
|
|
1152
|
-
function
|
|
1135
|
+
function rs(e) {
|
|
1153
1136
|
const t = xe.c(43), {
|
|
1154
1137
|
data: m,
|
|
1155
1138
|
graphTitle: D,
|
|
1156
1139
|
colors: Xt,
|
|
1157
1140
|
suffix: St,
|
|
1158
1141
|
sources: gt,
|
|
1159
|
-
prefix:
|
|
1160
|
-
graphDescription:
|
|
1161
|
-
barPadding:
|
|
1162
|
-
showValues:
|
|
1142
|
+
prefix: _,
|
|
1143
|
+
graphDescription: ct,
|
|
1144
|
+
barPadding: M,
|
|
1145
|
+
showValues: j,
|
|
1163
1146
|
showTicks: y,
|
|
1164
|
-
truncateBy:
|
|
1165
|
-
height:
|
|
1166
|
-
width:
|
|
1167
|
-
footNote:
|
|
1168
|
-
colorDomain:
|
|
1169
|
-
colorLegendTitle:
|
|
1170
|
-
highlightedDataPoints:
|
|
1171
|
-
padding:
|
|
1147
|
+
truncateBy: I,
|
|
1148
|
+
height: zt,
|
|
1149
|
+
width: nt,
|
|
1150
|
+
footNote: jt,
|
|
1151
|
+
colorDomain: S,
|
|
1152
|
+
colorLegendTitle: tt,
|
|
1153
|
+
highlightedDataPoints: ut,
|
|
1154
|
+
padding: dt,
|
|
1172
1155
|
backgroundColor: Tt,
|
|
1173
1156
|
topMargin: w,
|
|
1174
|
-
bottomMargin:
|
|
1175
|
-
leftMargin:
|
|
1176
|
-
rightMargin:
|
|
1177
|
-
showLabels:
|
|
1178
|
-
relativeHeight:
|
|
1179
|
-
tooltip:
|
|
1180
|
-
onSeriesMouseOver:
|
|
1181
|
-
refValues:
|
|
1182
|
-
showColorScale:
|
|
1183
|
-
graphID:
|
|
1157
|
+
bottomMargin: et,
|
|
1158
|
+
leftMargin: G,
|
|
1159
|
+
rightMargin: F,
|
|
1160
|
+
showLabels: J,
|
|
1161
|
+
relativeHeight: W,
|
|
1162
|
+
tooltip: xt,
|
|
1163
|
+
onSeriesMouseOver: B,
|
|
1164
|
+
refValues: R,
|
|
1165
|
+
showColorScale: H,
|
|
1166
|
+
graphID: u,
|
|
1184
1167
|
maxValue: s,
|
|
1185
|
-
minValue:
|
|
1186
|
-
onSeriesMouseClick:
|
|
1187
|
-
graphDownload:
|
|
1188
|
-
dataDownload:
|
|
1168
|
+
minValue: o,
|
|
1169
|
+
onSeriesMouseClick: d,
|
|
1170
|
+
graphDownload: r,
|
|
1171
|
+
dataDownload: h,
|
|
1189
1172
|
sortData: x,
|
|
1190
|
-
labelOrder:
|
|
1191
|
-
language:
|
|
1192
|
-
showNAColor:
|
|
1193
|
-
minHeight:
|
|
1173
|
+
labelOrder: A,
|
|
1174
|
+
language: K,
|
|
1175
|
+
showNAColor: q,
|
|
1176
|
+
minHeight: rt,
|
|
1194
1177
|
theme: Ft,
|
|
1195
1178
|
maxBarThickness: Yt,
|
|
1196
|
-
maxNumberOfBars:
|
|
1179
|
+
maxNumberOfBars: X,
|
|
1197
1180
|
minBarThickness: yt,
|
|
1198
1181
|
ariaLabel: Bt,
|
|
1199
|
-
resetSelectionOnDoubleClick:
|
|
1182
|
+
resetSelectionOnDoubleClick: n,
|
|
1200
1183
|
detailsOnClick: c,
|
|
1201
|
-
barAxisTitle:
|
|
1202
|
-
noOfTicks:
|
|
1203
|
-
valueColor:
|
|
1204
|
-
styles:
|
|
1205
|
-
classNames:
|
|
1206
|
-
filterNA:
|
|
1184
|
+
barAxisTitle: T,
|
|
1185
|
+
noOfTicks: f,
|
|
1186
|
+
valueColor: Y,
|
|
1187
|
+
styles: N,
|
|
1188
|
+
classNames: $,
|
|
1189
|
+
filterNA: Dt,
|
|
1207
1190
|
animate: bt,
|
|
1208
|
-
dimmedOpacity:
|
|
1191
|
+
dimmedOpacity: it,
|
|
1209
1192
|
precision: mt,
|
|
1210
|
-
customLayers:
|
|
1193
|
+
customLayers: C,
|
|
1211
1194
|
timeline: g,
|
|
1212
|
-
naLabel:
|
|
1213
|
-
orientation:
|
|
1214
|
-
} = e,
|
|
1215
|
-
let
|
|
1216
|
-
t[0] !==
|
|
1217
|
-
const
|
|
1195
|
+
naLabel: Q,
|
|
1196
|
+
orientation: Z
|
|
1197
|
+
} = e, U = St === void 0 ? "" : St, V = _ === void 0 ? "" : _, ht = M === void 0 ? 0.25 : M, Mt = j === void 0 ? !0 : j, st = y === void 0 ? !0 : y, Ct = I === void 0 ? 999 : I;
|
|
1198
|
+
let E;
|
|
1199
|
+
t[0] !== ut ? (E = ut === void 0 ? [] : ut, t[0] = ut, t[1] = E) : E = t[1];
|
|
1200
|
+
const at = E, P = Tt === void 0 ? !1 : Tt, ft = J === void 0 ? !0 : J, pt = H === void 0 ? !0 : H, vt = r === void 0 ? !1 : r, wt = h === void 0 ? !1 : h, ot = K === void 0 ? "en" : K, At = q === void 0 ? !0 : q, $t = rt === void 0 ? 0 : rt, Ot = Ft === void 0 ? "light" : Ft, b = n === void 0 ? !0 : n, lt = f === void 0 ? 5 : f, It = Dt === void 0 ? !0 : Dt, Et = bt === void 0 ? !1 : bt, O = it === void 0 ? 0.3 : it, qt = mt === void 0 ? 2 : mt;
|
|
1218
1201
|
let Nt;
|
|
1219
|
-
t[2] !==
|
|
1220
|
-
const Kt = Nt,
|
|
1202
|
+
t[2] !== C ? (Nt = C === void 0 ? [] : C, t[2] = C, t[3] = Nt) : Nt = t[3];
|
|
1203
|
+
const Kt = Nt, Lt = g === void 0 ? {
|
|
1221
1204
|
enabled: !1,
|
|
1222
1205
|
autoplay: !1,
|
|
1223
1206
|
showOnlyActiveDate: !0
|
|
1224
|
-
} : g, Qt =
|
|
1207
|
+
} : g, Qt = Q === void 0 ? "NA" : Q, Ut = Z === void 0 ? "vertical" : Z, Ht = Ut === "horizontal" ? Pi : Ki, [kt, Rt] = Wt(0), [Jt, z] = Wt(0), [v, k] = Wt(Lt.autoplay), a = Qe(Le(m, "date", !0).map((te) => Se(`${te}`, Lt.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), ks), [p, ee] = Wt(Lt.autoplay ? 0 : a.length - 1), [L, Vt] = Wt(void 0), l = de(null), ie = de(null);
|
|
1225
1208
|
let se, me;
|
|
1226
1209
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (se = () => {
|
|
1227
1210
|
const te = new ResizeObserver((he) => {
|
|
1228
|
-
Rt(he[0].target.clientWidth || 620),
|
|
1211
|
+
Rt(he[0].target.clientWidth || 620), z(he[0].target.clientHeight || 480);
|
|
1229
1212
|
});
|
|
1230
1213
|
return l.current && te.observe(l.current), () => te.disconnect();
|
|
1231
1214
|
}, me = [], t[4] = se, t[5] = me) : (se = t[4], me = t[5]), we(se, me), we(() => {
|
|
1232
1215
|
const te = setInterval(() => {
|
|
1233
|
-
ee((he) => he <
|
|
1234
|
-
}, (
|
|
1216
|
+
ee((he) => he < a.length - 1 ? he + 1 : 0);
|
|
1217
|
+
}, (Lt.speed || 2) * 1e3);
|
|
1235
1218
|
return v || clearInterval(te), () => clearInterval(te);
|
|
1236
|
-
}, [
|
|
1237
|
-
const fe =
|
|
1219
|
+
}, [a, v, Lt.speed]);
|
|
1220
|
+
const fe = Te(a, p, Lt.showOnlyActiveDate, Lt.dateFormat || "yyyy"), re = Ke, ae = $?.graphContainer, le = N?.graphContainer;
|
|
1238
1221
|
let Gt;
|
|
1239
|
-
t[6] !==
|
|
1240
|
-
title:
|
|
1241
|
-
description:
|
|
1222
|
+
t[6] !== $?.description || t[7] !== $?.title || t[8] !== m || t[9] !== wt || t[10] !== ct || t[11] !== vt || t[12] !== D || t[13] !== N?.description || t[14] !== N?.title || t[15] !== nt ? (Gt = D || ct || vt || wt ? /* @__PURE__ */ i.jsx(Ee, { styles: {
|
|
1223
|
+
title: N?.title,
|
|
1224
|
+
description: N?.description
|
|
1242
1225
|
}, classNames: {
|
|
1243
|
-
title:
|
|
1244
|
-
description:
|
|
1245
|
-
}, graphTitle: D, graphDescription:
|
|
1246
|
-
const Pt =
|
|
1226
|
+
title: $?.title,
|
|
1227
|
+
description: $?.description
|
|
1228
|
+
}, graphTitle: D, graphDescription: ct, width: nt, graphDownload: vt ? ie : void 0, dataDownload: wt ? m.map(Os).filter($s).length > 0 ? m.map(As).filter(ws) : m.filter(vs) : null }) : null, t[6] = $?.description, t[7] = $?.title, t[8] = m, t[9] = wt, t[10] = ct, t[11] = vt, t[12] = D, t[13] = N?.description, t[14] = N?.title, t[15] = nt, t[16] = Gt) : Gt = t[16];
|
|
1229
|
+
const Pt = Lt.enabled && a.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
|
|
1247
1230
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
1248
1231
|
k(!v);
|
|
1249
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": v ? "Click to pause animation" : "Click to play animation", children: v ? /* @__PURE__ */ i.jsx(
|
|
1250
|
-
/* @__PURE__ */ i.jsx(
|
|
1251
|
-
ee(
|
|
1232
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": v ? "Click to pause animation" : "Click to play animation", children: v ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
|
|
1233
|
+
/* @__PURE__ */ i.jsx(Ie, { min: a[0], max: a[a.length - 1], marks: fe, step: null, defaultValue: a[a.length - 1], value: a[p], onChangeComplete: (te) => {
|
|
1234
|
+
ee(a.indexOf(te));
|
|
1252
1235
|
}, onChange: (te) => {
|
|
1253
|
-
ee(
|
|
1236
|
+
ee(a.indexOf(te));
|
|
1254
1237
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
1255
|
-
] }) : null,
|
|
1256
|
-
pt && m.filter(
|
|
1257
|
-
/* @__PURE__ */ i.jsx(
|
|
1238
|
+
] }) : null, ne = m.length === 0 ? /* @__PURE__ */ i.jsx(Re, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1239
|
+
pt && m.filter(bs).length !== 0 ? /* @__PURE__ */ i.jsx(We, { width: nt, colorLegendTitle: tt, colors: Xt || ce[Ot].categoricalColors.colors, colorDomain: S || Le(m, "color", !0), setSelectedColor: Vt, showNAColor: At, className: $?.colorLegend }) : null,
|
|
1240
|
+
/* @__PURE__ */ i.jsx(Je, { ref: l, children: kt && Jt ? /* @__PURE__ */ i.jsx(Ht, { data: x ? ze(_e(m, Lt.dateFormat || "yyyy").filter((te) => Lt.enabled ? te.date === ye(new Date(a[p]), Lt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Ut === "horizontal" ? 1 : -1) * (1 / 0) : (Ut === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, he) => X ? he < X : !0) : _e(m, Lt.dateFormat || "yyyy").filter((te) => Lt.enabled ? te.date === ye(new Date(a[p]), Lt.dateFormat || "yyyy") : te).filter((te) => It ? !_t(te.size) : te).filter((te, he) => X ? he < X : !0), barColor: m.filter(ys).length === 0 ? Xt ? [Xt] : [ce.primaryColors["blue-600"]] : Xt || ce[Ot].categoricalColors.colors, colorDomain: m.filter(gs).length === 0 ? [] : S || Le(m, "color", !0), selectedColor: L, width: kt, height: Jt, suffix: U, prefix: V, barPadding: ht, showValues: Mt, showTicks: st, leftMargin: G, rightMargin: F, topMargin: w, bottomMargin: et, truncateBy: Ct, showLabels: ft, tooltip: xt, onSeriesMouseOver: B, refValues: R, maxValue: _t(s) ? Math.max(...m.filter(ps).map(fs)) < 0 ? 0 : Math.max(...m.filter(hs).map(ms)) : s, minValue: _t(o) ? Math.min(...m.filter(xs).map(ds)) >= 0 ? 0 : Math.min(...m.filter(us).map(cs)) : o, highlightedDataPoints: at, onSeriesMouseClick: d, labelOrder: A, rtl: ot === "he" || ot === "ar", maxBarThickness: Yt, minBarThickness: yt, resetSelectionOnDoubleClick: b, detailsOnClick: c, barAxisTitle: T, noOfTicks: lt, valueColor: Y, classNames: $, styles: N, animate: Et === !0 ? {
|
|
1258
1241
|
duration: 0.5,
|
|
1259
1242
|
once: !0,
|
|
1260
1243
|
amount: 0.5
|
|
@@ -1262,48 +1245,51 @@ function cs(e) {
|
|
|
1262
1245
|
duration: 0,
|
|
1263
1246
|
once: !0,
|
|
1264
1247
|
amount: 0
|
|
1265
|
-
}, dimmedOpacity:
|
|
1248
|
+
}, dimmedOpacity: O, precision: qt, customLayers: Kt, naLabel: Qt }) : null })
|
|
1266
1249
|
] });
|
|
1267
1250
|
let be;
|
|
1268
|
-
t[17] !==
|
|
1269
|
-
footnote:
|
|
1270
|
-
source:
|
|
1251
|
+
t[17] !== $?.footnote || t[18] !== $?.source || t[19] !== jt || t[20] !== gt || t[21] !== N?.footnote || t[22] !== N?.source || t[23] !== nt ? (be = gt || jt ? /* @__PURE__ */ i.jsx(Ge, { sources: gt, footNote: jt, width: nt, styles: {
|
|
1252
|
+
footnote: N?.footnote,
|
|
1253
|
+
source: N?.source
|
|
1271
1254
|
}, classNames: {
|
|
1272
|
-
footnote:
|
|
1273
|
-
source:
|
|
1274
|
-
} }) : null, t[17] =
|
|
1275
|
-
let
|
|
1276
|
-
return t[25] !== re || t[26] !== Bt || t[27] !==
|
|
1255
|
+
footnote: $?.footnote,
|
|
1256
|
+
source: $?.source
|
|
1257
|
+
} }) : null, t[17] = $?.footnote, t[18] = $?.source, t[19] = jt, t[20] = gt, t[21] = N?.footnote, t[22] = N?.source, t[23] = nt, t[24] = be) : be = t[24];
|
|
1258
|
+
let je;
|
|
1259
|
+
return t[25] !== re || t[26] !== Bt || t[27] !== P || t[28] !== u || t[29] !== zt || t[30] !== ot || t[31] !== $t || t[32] !== dt || t[33] !== W || t[34] !== ae || t[35] !== le || t[36] !== Gt || t[37] !== Pt || t[38] !== ne || t[39] !== be || t[40] !== Ot || t[41] !== nt ? (je = /* @__PURE__ */ i.jsxs(re, { className: ae, style: le, id: u, ref: ie, "aria-label": Bt, backgroundColor: P, theme: Ot, language: ot, minHeight: $t, width: nt, height: zt, relativeHeight: W, padding: dt, children: [
|
|
1277
1260
|
Gt,
|
|
1278
1261
|
Pt,
|
|
1279
|
-
|
|
1262
|
+
ne,
|
|
1280
1263
|
be
|
|
1281
|
-
] }), t[25] = re, t[26] = Bt, t[27] =
|
|
1264
|
+
] }), t[25] = re, t[26] = Bt, t[27] = P, t[28] = u, t[29] = zt, t[30] = ot, t[31] = $t, t[32] = dt, t[33] = W, t[34] = ae, t[35] = le, t[36] = Gt, t[37] = Pt, t[38] = ne, t[39] = be, t[40] = Ot, t[41] = nt, t[42] = je) : je = t[42], je;
|
|
1282
1265
|
}
|
|
1283
|
-
function
|
|
1266
|
+
function cs(e) {
|
|
1284
1267
|
return e.size;
|
|
1285
1268
|
}
|
|
1286
|
-
function
|
|
1269
|
+
function us(e) {
|
|
1287
1270
|
return !_t(e.size);
|
|
1288
1271
|
}
|
|
1289
|
-
function
|
|
1272
|
+
function ds(e) {
|
|
1290
1273
|
return e.size;
|
|
1291
1274
|
}
|
|
1292
|
-
function
|
|
1275
|
+
function xs(e) {
|
|
1293
1276
|
return !_t(e.size);
|
|
1294
1277
|
}
|
|
1295
|
-
function
|
|
1278
|
+
function ms(e) {
|
|
1296
1279
|
return e.size;
|
|
1297
1280
|
}
|
|
1298
|
-
function
|
|
1281
|
+
function hs(e) {
|
|
1299
1282
|
return !_t(e.size);
|
|
1300
1283
|
}
|
|
1301
|
-
function
|
|
1284
|
+
function fs(e) {
|
|
1302
1285
|
return e.size;
|
|
1303
1286
|
}
|
|
1304
|
-
function
|
|
1287
|
+
function ps(e) {
|
|
1305
1288
|
return !_t(e.size);
|
|
1306
1289
|
}
|
|
1290
|
+
function gs(e) {
|
|
1291
|
+
return e.color;
|
|
1292
|
+
}
|
|
1307
1293
|
function ys(e) {
|
|
1308
1294
|
return e.color;
|
|
1309
1295
|
}
|
|
@@ -1311,138 +1297,135 @@ function bs(e) {
|
|
|
1311
1297
|
return e.color;
|
|
1312
1298
|
}
|
|
1313
1299
|
function vs(e) {
|
|
1314
|
-
return e
|
|
1300
|
+
return e !== void 0;
|
|
1315
1301
|
}
|
|
1316
1302
|
function ws(e) {
|
|
1317
1303
|
return e !== void 0;
|
|
1318
1304
|
}
|
|
1319
1305
|
function As(e) {
|
|
1320
|
-
return e !== void 0;
|
|
1321
|
-
}
|
|
1322
|
-
function $s(e) {
|
|
1323
1306
|
return e.data;
|
|
1324
1307
|
}
|
|
1325
|
-
function
|
|
1308
|
+
function $s(e) {
|
|
1326
1309
|
return e !== void 0;
|
|
1327
1310
|
}
|
|
1328
|
-
function
|
|
1311
|
+
function Os(e) {
|
|
1329
1312
|
return e.data;
|
|
1330
1313
|
}
|
|
1331
1314
|
function ks(e, t) {
|
|
1332
|
-
return
|
|
1315
|
+
return Ze(e, t);
|
|
1333
1316
|
}
|
|
1334
|
-
function
|
|
1335
|
-
const t = xe.c(
|
|
1317
|
+
function Ms(e) {
|
|
1318
|
+
const t = xe.c(123), {
|
|
1336
1319
|
data: m,
|
|
1337
1320
|
barColors: D,
|
|
1338
1321
|
barPadding: Xt,
|
|
1339
1322
|
showTicks: St,
|
|
1340
1323
|
topMargin: gt,
|
|
1341
|
-
bottomMargin:
|
|
1342
|
-
leftMargin:
|
|
1343
|
-
rightMargin:
|
|
1344
|
-
truncateBy:
|
|
1324
|
+
bottomMargin: _,
|
|
1325
|
+
leftMargin: ct,
|
|
1326
|
+
rightMargin: M,
|
|
1327
|
+
truncateBy: j,
|
|
1345
1328
|
width: y,
|
|
1346
|
-
height:
|
|
1347
|
-
tooltip:
|
|
1348
|
-
onSeriesMouseOver:
|
|
1349
|
-
showLabels:
|
|
1350
|
-
suffix:
|
|
1351
|
-
prefix:
|
|
1352
|
-
showValues:
|
|
1353
|
-
refValues:
|
|
1329
|
+
height: I,
|
|
1330
|
+
tooltip: zt,
|
|
1331
|
+
onSeriesMouseOver: nt,
|
|
1332
|
+
showLabels: jt,
|
|
1333
|
+
suffix: S,
|
|
1334
|
+
prefix: tt,
|
|
1335
|
+
showValues: ut,
|
|
1336
|
+
refValues: dt,
|
|
1354
1337
|
maxValue: Tt,
|
|
1355
1338
|
onSeriesMouseClick: w,
|
|
1356
|
-
selectedColor:
|
|
1357
|
-
rtl:
|
|
1358
|
-
labelOrder:
|
|
1359
|
-
maxBarThickness:
|
|
1360
|
-
minBarThickness:
|
|
1361
|
-
resetSelectionOnDoubleClick:
|
|
1362
|
-
detailsOnClick:
|
|
1363
|
-
barAxisTitle:
|
|
1364
|
-
valueColor:
|
|
1365
|
-
noOfTicks:
|
|
1339
|
+
selectedColor: et,
|
|
1340
|
+
rtl: G,
|
|
1341
|
+
labelOrder: F,
|
|
1342
|
+
maxBarThickness: J,
|
|
1343
|
+
minBarThickness: W,
|
|
1344
|
+
resetSelectionOnDoubleClick: xt,
|
|
1345
|
+
detailsOnClick: B,
|
|
1346
|
+
barAxisTitle: R,
|
|
1347
|
+
valueColor: H,
|
|
1348
|
+
noOfTicks: u,
|
|
1366
1349
|
styles: s,
|
|
1367
|
-
classNames:
|
|
1368
|
-
animate:
|
|
1369
|
-
colorDomain:
|
|
1370
|
-
precision:
|
|
1350
|
+
classNames: o,
|
|
1351
|
+
animate: d,
|
|
1352
|
+
colorDomain: r,
|
|
1353
|
+
precision: h,
|
|
1371
1354
|
customLayers: x,
|
|
1372
|
-
naLabel:
|
|
1373
|
-
} = e,
|
|
1374
|
-
let
|
|
1375
|
-
t[0] !==
|
|
1376
|
-
once:
|
|
1377
|
-
amount:
|
|
1378
|
-
}, t[0] =
|
|
1379
|
-
const yt =
|
|
1380
|
-
let
|
|
1381
|
-
t[3] !==
|
|
1355
|
+
naLabel: A
|
|
1356
|
+
} = e, K = gt === void 0 ? 25 : gt, q = _ === void 0 ? 10 : _, rt = ct === void 0 ? 100 : ct, Ft = M === void 0 ? 40 : M, Yt = de(null);
|
|
1357
|
+
let X;
|
|
1358
|
+
t[0] !== d.amount || t[1] !== d.once ? (X = {
|
|
1359
|
+
once: d.once,
|
|
1360
|
+
amount: d.amount
|
|
1361
|
+
}, t[0] = d.amount, t[1] = d.once, t[2] = X) : X = t[2];
|
|
1362
|
+
const yt = Ce(Yt, X), Bt = R ? K + 25 : K;
|
|
1363
|
+
let n;
|
|
1364
|
+
t[3] !== q || t[4] !== rt || t[5] !== Ft || t[6] !== Bt ? (n = {
|
|
1382
1365
|
top: Bt,
|
|
1383
|
-
bottom:
|
|
1384
|
-
left:
|
|
1366
|
+
bottom: q,
|
|
1367
|
+
left: rt,
|
|
1385
1368
|
right: Ft
|
|
1386
|
-
}, t[3] =
|
|
1387
|
-
const c =
|
|
1388
|
-
let g,
|
|
1389
|
-
if (t[8] !==
|
|
1390
|
-
let
|
|
1391
|
-
t[72] !==
|
|
1392
|
-
...
|
|
1393
|
-
id:
|
|
1394
|
-
}), t[72] =
|
|
1395
|
-
const It = m.map(
|
|
1396
|
-
|
|
1369
|
+
}, t[3] = q, t[4] = rt, t[5] = Ft, t[6] = Bt, t[7] = n) : n = t[7];
|
|
1370
|
+
const c = n, [T, f] = Wt(void 0), [Y, N] = Wt(void 0), [$, Dt] = Wt(void 0), [bt, it] = Wt(void 0), mt = y - c.left - c.right, C = I - c.top - c.bottom;
|
|
1371
|
+
let g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft, pt;
|
|
1372
|
+
if (t[8] !== d || t[9] !== R || t[10] !== D || t[11] !== Xt || t[12] !== o?.graphObjectValues || t[13] !== o?.xAxis?.gridLines || t[14] !== o?.xAxis?.labels || t[15] !== o?.xAxis?.title || t[16] !== o?.yAxis?.axis || t[17] !== o?.yAxis?.labels || t[18] !== r || t[19] !== x || t[20] !== m || t[21] !== B || t[22] !== C || t[23] !== mt || t[24] !== I || t[25] !== yt || t[26] !== F || t[27] !== c.bottom || t[28] !== c.left || t[29] !== c.top || t[30] !== J || t[31] !== Tt || t[32] !== W || t[33] !== Y || t[34] !== A || t[35] !== u || t[36] !== w || t[37] !== nt || t[38] !== h || t[39] !== tt || t[40] !== dt || t[41] !== xt || t[42] !== G || t[43] !== et || t[44] !== jt || t[45] !== St || t[46] !== ut || t[47] !== s?.graphObjectValues || t[48] !== s?.xAxis?.gridLines || t[49] !== s?.xAxis?.labels || t[50] !== s?.xAxis?.title || t[51] !== s?.yAxis?.axis || t[52] !== s?.yAxis?.labels || t[53] !== S || t[54] !== K || t[55] !== j || t[56] !== H || t[57] !== y) {
|
|
1373
|
+
let lt;
|
|
1374
|
+
t[72] !== F ? (lt = (z, v) => ({
|
|
1375
|
+
...z,
|
|
1376
|
+
id: F ? `${z.label}` : `${v}`
|
|
1377
|
+
}), t[72] = F, t[73] = lt) : lt = t[73];
|
|
1378
|
+
const It = m.map(lt), Et = F || It.map(Is), O = Ve().domain([0, Tt]).range([0, mt]).nice(), qt = ge().domain(Et).range([0, W ? Math.max(C, W * Et.length) : J ? Math.min(C, J * Et.length) : C]).paddingInner(Xt), Nt = O.ticks(u);
|
|
1379
|
+
Q = Zt.svg, Mt = Yt, st = `${y}px`, Ct = `${I}px`, E = `0 0 ${y} ${I}`, at = "ltr", Z = `translate(${c.left},${c.top})`, U = St ? /* @__PURE__ */ i.jsx(Pe, { values: Nt.filter(Ts), x: Nt.filter(Ns).map((z) => O(z)), y1: 0 - K, y2: C + c.bottom, styles: {
|
|
1397
1380
|
gridLines: s?.xAxis?.gridLines,
|
|
1398
1381
|
labels: s?.xAxis?.labels
|
|
1399
1382
|
}, classNames: {
|
|
1400
|
-
gridLines:
|
|
1401
|
-
labels:
|
|
1402
|
-
}, suffix:
|
|
1403
|
-
const Kt = mt / 2,
|
|
1404
|
-
t[74] !==
|
|
1383
|
+
gridLines: o?.xAxis?.gridLines,
|
|
1384
|
+
labels: o?.xAxis?.labels
|
|
1385
|
+
}, suffix: S, prefix: tt, labelType: "secondary", showGridLines: !0, precision: h }) : null;
|
|
1386
|
+
const Kt = mt / 2, Lt = 0 - c.top + 15, Qt = s?.xAxis?.title, Ut = o?.xAxis?.title;
|
|
1387
|
+
t[74] !== R || t[75] !== Kt || t[76] !== Lt || t[77] !== Qt || t[78] !== Ut ? (V = /* @__PURE__ */ i.jsx(ke, { x: Kt, y: Lt, style: Qt, className: Ut, text: R }), t[74] = R, t[75] = Kt, t[76] = Lt, t[77] = Qt, t[78] = Ut, t[79] = V) : V = t[79], t[80] !== x ? (ht = x.filter(js).map(zs), t[80] = x, t[81] = ht) : ht = t[81], g = De, P = It.map((z) => _t(qt(z.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1405
1388
|
initial: {
|
|
1406
1389
|
x: 0,
|
|
1407
|
-
y: qt(`${
|
|
1390
|
+
y: qt(`${z.id}`)
|
|
1408
1391
|
},
|
|
1409
1392
|
whileInView: {
|
|
1410
1393
|
x: 0,
|
|
1411
|
-
y: qt(`${
|
|
1394
|
+
y: qt(`${z.id}`),
|
|
1412
1395
|
transition: {
|
|
1413
|
-
duration:
|
|
1396
|
+
duration: d.duration
|
|
1414
1397
|
}
|
|
1415
1398
|
}
|
|
1416
1399
|
}, initial: "initial", animate: yt ? "whileInView" : "initial", exit: {
|
|
1417
1400
|
opacity: 0,
|
|
1418
1401
|
transition: {
|
|
1419
|
-
duration:
|
|
1402
|
+
duration: d.duration
|
|
1420
1403
|
}
|
|
1421
1404
|
}, children: [
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
...
|
|
1405
|
+
z.size.map((v, k) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: et ? D[k] === et ? 1 : 0.3 : 1, onMouseEnter: (a) => {
|
|
1406
|
+
f({
|
|
1407
|
+
...z,
|
|
1425
1408
|
sizeIndex: k
|
|
1426
|
-
}),
|
|
1427
|
-
...
|
|
1409
|
+
}), it(a.clientY), Dt(a.clientX), nt?.({
|
|
1410
|
+
...z,
|
|
1428
1411
|
sizeIndex: k
|
|
1429
1412
|
});
|
|
1430
|
-
}, onMouseMove: (
|
|
1431
|
-
|
|
1432
|
-
...
|
|
1413
|
+
}, onMouseMove: (a) => {
|
|
1414
|
+
f({
|
|
1415
|
+
...z,
|
|
1433
1416
|
sizeIndex: k
|
|
1434
|
-
}),
|
|
1417
|
+
}), it(a.clientY), Dt(a.clientX);
|
|
1435
1418
|
}, onMouseLeave: () => {
|
|
1436
|
-
|
|
1419
|
+
f(void 0), Dt(void 0), it(void 0), nt?.(void 0);
|
|
1437
1420
|
}, onClick: () => {
|
|
1438
|
-
(w ||
|
|
1439
|
-
...
|
|
1421
|
+
(w || B) && (Ae(Y, {
|
|
1422
|
+
...z,
|
|
1440
1423
|
sizeIndex: k
|
|
1441
|
-
}) &&
|
|
1442
|
-
...
|
|
1424
|
+
}) && xt ? (N(void 0), w?.(void 0)) : (N({
|
|
1425
|
+
...z,
|
|
1443
1426
|
sizeIndex: k
|
|
1444
1427
|
}), w && w({
|
|
1445
|
-
...
|
|
1428
|
+
...z,
|
|
1446
1429
|
sizeIndex: k
|
|
1447
1430
|
})));
|
|
1448
1431
|
}, children: [
|
|
@@ -1450,526 +1433,518 @@ function Cs(e) {
|
|
|
1450
1433
|
fill: D[k]
|
|
1451
1434
|
}, height: qt.bandwidth(), exit: {
|
|
1452
1435
|
width: 0,
|
|
1453
|
-
x:
|
|
1436
|
+
x: O(0),
|
|
1454
1437
|
transition: {
|
|
1455
|
-
duration:
|
|
1438
|
+
duration: d.duration
|
|
1456
1439
|
}
|
|
1457
1440
|
}, variants: {
|
|
1458
1441
|
initial: {
|
|
1459
1442
|
width: 0,
|
|
1460
|
-
x:
|
|
1443
|
+
x: O(0),
|
|
1461
1444
|
fill: D[k]
|
|
1462
1445
|
},
|
|
1463
1446
|
whileInView: {
|
|
1464
|
-
width:
|
|
1465
|
-
x:
|
|
1447
|
+
width: O(v || 0),
|
|
1448
|
+
x: O(k === 0 ? 0 : oe(z.size.filter((a, p) => p < k && a))),
|
|
1466
1449
|
fill: D[k],
|
|
1467
1450
|
transition: {
|
|
1468
|
-
duration:
|
|
1451
|
+
duration: d.duration
|
|
1469
1452
|
}
|
|
1470
1453
|
}
|
|
1471
1454
|
}, initial: "initial", animate: yt ? "whileInView" : "initial" }, k) : null,
|
|
1472
|
-
|
|
1455
|
+
ut ? /* @__PURE__ */ i.jsx(Zt.text, { y: qt.bandwidth() / 2, style: {
|
|
1473
1456
|
textAnchor: "middle",
|
|
1474
1457
|
...s?.graphObjectValues || {}
|
|
1475
|
-
}, dy: "0.33em", className: pe("graph-value text-sm",
|
|
1458
|
+
}, dy: "0.33em", className: pe("graph-value text-sm", o?.graphObjectValues), exit: {
|
|
1476
1459
|
opacity: 0,
|
|
1477
1460
|
transition: {
|
|
1478
|
-
duration:
|
|
1461
|
+
duration: d.duration
|
|
1479
1462
|
}
|
|
1480
1463
|
}, variants: {
|
|
1481
1464
|
initial: {
|
|
1482
|
-
x:
|
|
1465
|
+
x: O(0),
|
|
1483
1466
|
opacity: 0,
|
|
1484
|
-
fill:
|
|
1467
|
+
fill: Ne(D[k])
|
|
1485
1468
|
},
|
|
1486
1469
|
whileInView: {
|
|
1487
|
-
x:
|
|
1488
|
-
opacity: v &&
|
|
1489
|
-
fill:
|
|
1470
|
+
x: O(k === 0 ? 0 : oe(z.size.filter((a, p) => p < k && a))) + O(v || 0) / 2,
|
|
1471
|
+
opacity: v && O(v) / ue(v, A, h, tt, S).length > 12 ? 1 : 0,
|
|
1472
|
+
fill: Ne(D[k]),
|
|
1490
1473
|
transition: {
|
|
1491
|
-
duration:
|
|
1474
|
+
duration: d.duration
|
|
1492
1475
|
}
|
|
1493
1476
|
}
|
|
1494
|
-
}, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(v,
|
|
1495
|
-
] }, `${
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
...
|
|
1499
|
-
fill:
|
|
1477
|
+
}, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(v, A, h, tt, S) }) : null
|
|
1478
|
+
] }, `${z.label}-${r[k] || k}`)),
|
|
1479
|
+
jt ? /* @__PURE__ */ i.jsx(Be, { value: `${z.label}`.length < j ? `${z.label}` : `${`${z.label}`.substring(0, j)}...`, y: 0, x: 0 - c.left, width: 0 + c.left, height: qt.bandwidth(), style: s?.yAxis?.labels, className: o?.yAxis?.labels, animate: d, isInView: yt }) : null,
|
|
1480
|
+
ut ? /* @__PURE__ */ i.jsx(Zt.text, { className: pe("graph-value graph-value-total text-sm", H ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", o?.graphObjectValues), style: {
|
|
1481
|
+
...H ? {
|
|
1482
|
+
fill: H
|
|
1500
1483
|
} : {},
|
|
1501
1484
|
textAnchor: "start",
|
|
1502
1485
|
...s?.graphObjectValues || {}
|
|
1503
1486
|
}, y: qt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
|
|
1504
1487
|
initial: {
|
|
1505
|
-
x:
|
|
1488
|
+
x: O(0),
|
|
1506
1489
|
opacity: 0,
|
|
1507
|
-
...
|
|
1508
|
-
fill:
|
|
1490
|
+
...H ? {
|
|
1491
|
+
fill: H
|
|
1509
1492
|
} : {}
|
|
1510
1493
|
},
|
|
1511
1494
|
whileInView: {
|
|
1512
|
-
x:
|
|
1495
|
+
x: O(oe(z.size.map(Ls))),
|
|
1513
1496
|
opacity: 1,
|
|
1514
|
-
...
|
|
1515
|
-
fill:
|
|
1497
|
+
...H ? {
|
|
1498
|
+
fill: H
|
|
1516
1499
|
} : {},
|
|
1517
1500
|
transition: {
|
|
1518
|
-
duration:
|
|
1501
|
+
duration: d.duration
|
|
1519
1502
|
}
|
|
1520
1503
|
}
|
|
1521
1504
|
}, exit: {
|
|
1522
1505
|
opacity: 0,
|
|
1523
1506
|
transition: {
|
|
1524
|
-
duration:
|
|
1507
|
+
duration: d.duration
|
|
1525
1508
|
}
|
|
1526
|
-
}, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(
|
|
1527
|
-
] },
|
|
1528
|
-
const Ht =
|
|
1529
|
-
let
|
|
1530
|
-
t[82] !== Ht ? (
|
|
1509
|
+
}, initial: "initial", animate: yt ? "whileInView" : "initial", children: ue(oe(z.size.filter(Ds)), A, h, tt, S) }) : null
|
|
1510
|
+
] }, z.label));
|
|
1511
|
+
const Ht = o?.yAxis?.axis;
|
|
1512
|
+
let kt;
|
|
1513
|
+
t[82] !== Ht ? (kt = {
|
|
1531
1514
|
axis: Ht
|
|
1532
|
-
}, t[82] = Ht, t[83] =
|
|
1515
|
+
}, t[82] = Ht, t[83] = kt) : kt = t[83];
|
|
1533
1516
|
const Rt = s?.yAxis?.axis;
|
|
1534
1517
|
let Jt;
|
|
1535
1518
|
t[84] !== Rt ? (Jt = {
|
|
1536
1519
|
axis: Rt
|
|
1537
|
-
}, t[84] = Rt, t[85] = Jt) : Jt = t[85], ft = /* @__PURE__ */ i.jsx(
|
|
1520
|
+
}, t[84] = Rt, t[85] = Jt) : Jt = t[85], ft = /* @__PURE__ */ i.jsx(Oe, { x1: O(0), x2: O(0), y1: -2.5, y2: C + c.bottom, classNames: kt, styles: Jt }), pt = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((z, v) => /* @__PURE__ */ i.jsx(Fe, { text: z.text, color: z.color, x: O(z.value), y1: 0 - c.top, y2: C + c.bottom, textSide: O(z.value) > mt * 0.75 || G ? "left" : "right", classNames: z.classNames, styles: z.styles, animate: d, isInView: yt }, v)) }) : null, t[8] = d, t[9] = R, t[10] = D, t[11] = Xt, t[12] = o?.graphObjectValues, t[13] = o?.xAxis?.gridLines, t[14] = o?.xAxis?.labels, t[15] = o?.xAxis?.title, t[16] = o?.yAxis?.axis, t[17] = o?.yAxis?.labels, t[18] = r, t[19] = x, t[20] = m, t[21] = B, t[22] = C, t[23] = mt, t[24] = I, t[25] = yt, t[26] = F, t[27] = c.bottom, t[28] = c.left, t[29] = c.top, t[30] = J, t[31] = Tt, t[32] = W, t[33] = Y, t[34] = A, t[35] = u, t[36] = w, t[37] = nt, t[38] = h, t[39] = tt, t[40] = dt, t[41] = xt, t[42] = G, t[43] = et, t[44] = jt, t[45] = St, t[46] = ut, t[47] = s?.graphObjectValues, t[48] = s?.xAxis?.gridLines, t[49] = s?.xAxis?.labels, t[50] = s?.xAxis?.title, t[51] = s?.yAxis?.axis, t[52] = s?.yAxis?.labels, t[53] = S, t[54] = K, t[55] = j, t[56] = H, t[57] = y, t[58] = g, t[59] = Q, t[60] = Z, t[61] = U, t[62] = V, t[63] = ht, t[64] = Mt, t[65] = st, t[66] = Ct, t[67] = E, t[68] = at, t[69] = P, t[70] = ft, t[71] = pt;
|
|
1538
1521
|
} else
|
|
1539
|
-
g = t[58],
|
|
1522
|
+
g = t[58], Q = t[59], Z = t[60], U = t[61], V = t[62], ht = t[63], Mt = t[64], st = t[65], Ct = t[66], E = t[67], at = t[68], P = t[69], ft = t[70], pt = t[71];
|
|
1540
1523
|
let vt;
|
|
1541
|
-
t[86] !== g || t[87] !==
|
|
1542
|
-
|
|
1524
|
+
t[86] !== g || t[87] !== P || t[88] !== ft || t[89] !== pt ? (vt = /* @__PURE__ */ i.jsxs(g, { children: [
|
|
1525
|
+
P,
|
|
1543
1526
|
ft,
|
|
1544
1527
|
pt
|
|
1545
|
-
] }), t[86] = g, t[87] =
|
|
1528
|
+
] }), t[86] = g, t[87] = P, t[88] = ft, t[89] = pt, t[90] = vt) : vt = t[90];
|
|
1546
1529
|
let wt;
|
|
1547
|
-
t[91] !== x ? (wt = x.filter(
|
|
1548
|
-
let
|
|
1549
|
-
t[93] !==
|
|
1550
|
-
|
|
1551
|
-
|
|
1530
|
+
t[91] !== x ? (wt = x.filter(Vs).map(Cs), t[91] = x, t[92] = wt) : wt = t[92];
|
|
1531
|
+
let ot;
|
|
1532
|
+
t[93] !== Z || t[94] !== U || t[95] !== V || t[96] !== ht || t[97] !== vt || t[98] !== wt ? (ot = /* @__PURE__ */ i.jsxs("g", { transform: Z, children: [
|
|
1533
|
+
U,
|
|
1534
|
+
V,
|
|
1552
1535
|
ht,
|
|
1553
1536
|
vt,
|
|
1554
1537
|
wt
|
|
1555
|
-
] }), t[93] =
|
|
1538
|
+
] }), t[93] = Z, t[94] = U, t[95] = V, t[96] = ht, t[97] = vt, t[98] = wt, t[99] = ot) : ot = t[99];
|
|
1556
1539
|
let At;
|
|
1557
|
-
t[100] !==
|
|
1540
|
+
t[100] !== Q || t[101] !== Mt || t[102] !== st || t[103] !== Ct || t[104] !== E || t[105] !== at || t[106] !== ot ? (At = /* @__PURE__ */ i.jsx(Q, { ref: Mt, width: st, height: Ct, viewBox: E, direction: at, children: ot }), t[100] = Q, t[101] = Mt, t[102] = st, t[103] = Ct, t[104] = E, t[105] = at, t[106] = ot, t[107] = At) : At = t[107];
|
|
1558
1541
|
let $t;
|
|
1559
|
-
t[108] !==
|
|
1542
|
+
t[108] !== o?.tooltip || t[109] !== $ || t[110] !== bt || t[111] !== T || t[112] !== s?.tooltip || t[113] !== zt ? ($t = T && zt && $ && bt ? /* @__PURE__ */ i.jsx($e, { data: T, body: zt, xPos: $, yPos: bt, backgroundStyle: s?.tooltip, className: o?.tooltip }) : null, t[108] = o?.tooltip, t[109] = $, t[110] = bt, t[111] = T, t[112] = s?.tooltip, t[113] = zt, t[114] = $t) : $t = t[114];
|
|
1560
1543
|
let Ot;
|
|
1561
|
-
t[115] !==
|
|
1562
|
-
S(void 0);
|
|
1563
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
|
|
1564
|
-
__html: Me(O, V)
|
|
1565
|
-
} : void 0, children: typeof O == "function" ? O(V) : null }) }) : null, t[115] = O, t[116] = V, t[117] = Ot) : Ot = t[117];
|
|
1544
|
+
t[115] !== o?.modal || t[116] !== B || t[117] !== Y ? (Ot = B && Y !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: B, data: Y, setData: N, className: o?.modal }) : null, t[115] = o?.modal, t[116] = B, t[117] = Y, t[118] = Ot) : Ot = t[118];
|
|
1566
1545
|
let b;
|
|
1567
|
-
return t[
|
|
1546
|
+
return t[119] !== At || t[120] !== $t || t[121] !== Ot ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1568
1547
|
At,
|
|
1569
1548
|
$t,
|
|
1570
1549
|
Ot
|
|
1571
|
-
] }), t[
|
|
1550
|
+
] }), t[119] = At, t[120] = $t, t[121] = Ot, t[122] = b) : b = t[122], b;
|
|
1572
1551
|
}
|
|
1573
|
-
function
|
|
1552
|
+
function Cs(e) {
|
|
1574
1553
|
return e.layer;
|
|
1575
1554
|
}
|
|
1576
|
-
function
|
|
1555
|
+
function Vs(e) {
|
|
1577
1556
|
return e.position === "after";
|
|
1578
1557
|
}
|
|
1579
|
-
function
|
|
1558
|
+
function Ds(e) {
|
|
1580
1559
|
return e;
|
|
1581
1560
|
}
|
|
1582
|
-
function
|
|
1561
|
+
function Ls(e) {
|
|
1583
1562
|
return e || 0;
|
|
1584
1563
|
}
|
|
1585
1564
|
function zs(e) {
|
|
1586
1565
|
return e.layer;
|
|
1587
1566
|
}
|
|
1588
|
-
function
|
|
1567
|
+
function js(e) {
|
|
1589
1568
|
return e.position === "before";
|
|
1590
1569
|
}
|
|
1591
|
-
function
|
|
1570
|
+
function Ns(e) {
|
|
1592
1571
|
return e !== 0;
|
|
1593
1572
|
}
|
|
1594
|
-
function
|
|
1573
|
+
function Ts(e) {
|
|
1595
1574
|
return e !== 0;
|
|
1596
1575
|
}
|
|
1597
|
-
function
|
|
1576
|
+
function Is(e) {
|
|
1598
1577
|
return `${e.id}`;
|
|
1599
1578
|
}
|
|
1600
|
-
function
|
|
1601
|
-
const t = xe.c(
|
|
1579
|
+
function Ss(e) {
|
|
1580
|
+
const t = xe.c(130), {
|
|
1602
1581
|
data: m,
|
|
1603
1582
|
leftMargin: D,
|
|
1604
1583
|
rightMargin: Xt,
|
|
1605
1584
|
topMargin: St,
|
|
1606
1585
|
bottomMargin: gt,
|
|
1607
|
-
width:
|
|
1608
|
-
height:
|
|
1609
|
-
barColors:
|
|
1610
|
-
barPadding:
|
|
1586
|
+
width: _,
|
|
1587
|
+
height: ct,
|
|
1588
|
+
barColors: M,
|
|
1589
|
+
barPadding: j,
|
|
1611
1590
|
showLabels: y,
|
|
1612
|
-
showTicks:
|
|
1613
|
-
truncateBy:
|
|
1614
|
-
tooltip:
|
|
1615
|
-
onSeriesMouseOver:
|
|
1616
|
-
suffix:
|
|
1617
|
-
prefix:
|
|
1618
|
-
showValues:
|
|
1619
|
-
refValues:
|
|
1591
|
+
showTicks: I,
|
|
1592
|
+
truncateBy: zt,
|
|
1593
|
+
tooltip: nt,
|
|
1594
|
+
onSeriesMouseOver: jt,
|
|
1595
|
+
suffix: S,
|
|
1596
|
+
prefix: tt,
|
|
1597
|
+
showValues: ut,
|
|
1598
|
+
refValues: dt,
|
|
1620
1599
|
maxValue: Tt,
|
|
1621
1600
|
onSeriesMouseClick: w,
|
|
1622
|
-
selectedColor:
|
|
1623
|
-
labelOrder:
|
|
1624
|
-
maxBarThickness:
|
|
1625
|
-
minBarThickness:
|
|
1626
|
-
resetSelectionOnDoubleClick:
|
|
1627
|
-
detailsOnClick:
|
|
1628
|
-
barAxisTitle:
|
|
1629
|
-
valueColor:
|
|
1630
|
-
noOfTicks:
|
|
1631
|
-
styles:
|
|
1601
|
+
selectedColor: et,
|
|
1602
|
+
labelOrder: G,
|
|
1603
|
+
maxBarThickness: F,
|
|
1604
|
+
minBarThickness: J,
|
|
1605
|
+
resetSelectionOnDoubleClick: W,
|
|
1606
|
+
detailsOnClick: xt,
|
|
1607
|
+
barAxisTitle: B,
|
|
1608
|
+
valueColor: R,
|
|
1609
|
+
noOfTicks: H,
|
|
1610
|
+
styles: u,
|
|
1632
1611
|
classNames: s,
|
|
1633
|
-
animate:
|
|
1634
|
-
colorDomain:
|
|
1635
|
-
precision:
|
|
1636
|
-
customLayers:
|
|
1612
|
+
animate: o,
|
|
1613
|
+
colorDomain: d,
|
|
1614
|
+
precision: r,
|
|
1615
|
+
customLayers: h,
|
|
1637
1616
|
naLabel: x
|
|
1638
|
-
} = e,
|
|
1617
|
+
} = e, A = D === void 0 ? 20 : D, K = Xt === void 0 ? 20 : Xt, q = St === void 0 ? 20 : St, rt = gt === void 0 ? 25 : gt, Ft = de(null);
|
|
1639
1618
|
let Yt;
|
|
1640
|
-
t[0] !==
|
|
1641
|
-
once:
|
|
1642
|
-
amount:
|
|
1643
|
-
}, t[0] =
|
|
1644
|
-
const
|
|
1619
|
+
t[0] !== o.amount || t[1] !== o.once ? (Yt = {
|
|
1620
|
+
once: o.once,
|
|
1621
|
+
amount: o.amount
|
|
1622
|
+
}, t[0] = o.amount, t[1] = o.once, t[2] = Yt) : Yt = t[2];
|
|
1623
|
+
const X = Ce(Ft, Yt), yt = B ? A + 30 : A;
|
|
1645
1624
|
let Bt;
|
|
1646
|
-
t[3] !==
|
|
1647
|
-
top:
|
|
1648
|
-
bottom:
|
|
1625
|
+
t[3] !== rt || t[4] !== K || t[5] !== yt || t[6] !== q ? (Bt = {
|
|
1626
|
+
top: q,
|
|
1627
|
+
bottom: rt,
|
|
1649
1628
|
left: yt,
|
|
1650
|
-
right:
|
|
1651
|
-
}, t[3] =
|
|
1652
|
-
const
|
|
1653
|
-
let
|
|
1654
|
-
if (t[8] !==
|
|
1655
|
-
const b =
|
|
1656
|
-
let
|
|
1657
|
-
t[72] !==
|
|
1629
|
+
right: K
|
|
1630
|
+
}, t[3] = rt, t[4] = K, t[5] = yt, t[6] = q, t[7] = Bt) : Bt = t[7];
|
|
1631
|
+
const n = Bt, [c, T] = Wt(void 0), [f, Y] = Wt(void 0), [N, $] = Wt(void 0), [Dt, bt] = Wt(void 0), it = _ - n.left - n.right, mt = ct - n.top - n.bottom;
|
|
1632
|
+
let C, g, Q, Z, U, V, ht, Mt, st, Ct, E, at, P, ft;
|
|
1633
|
+
if (t[8] !== o || t[9] !== B || t[10] !== M || t[11] !== j || t[12] !== s?.graphObjectValues || t[13] !== s?.xAxis?.axis || t[14] !== s?.xAxis?.labels || t[15] !== s?.yAxis?.gridLines || t[16] !== s?.yAxis?.labels || t[17] !== s?.yAxis?.title || t[18] !== d || t[19] !== h || t[20] !== m || t[21] !== xt || t[22] !== mt || t[23] !== it || t[24] !== ct || t[25] !== X || t[26] !== G || t[27] !== A || t[28] !== n.bottom || t[29] !== n.left || t[30] !== n.right || t[31] !== n.top || t[32] !== F || t[33] !== Tt || t[34] !== J || t[35] !== f || t[36] !== x || t[37] !== H || t[38] !== w || t[39] !== jt || t[40] !== r || t[41] !== tt || t[42] !== dt || t[43] !== W || t[44] !== et || t[45] !== y || t[46] !== I || t[47] !== ut || t[48] !== u?.graphObjectValues || t[49] !== u?.xAxis?.axis || t[50] !== u?.xAxis?.labels || t[51] !== u?.yAxis?.gridLines || t[52] !== u?.yAxis?.labels || t[53] !== u?.yAxis?.title || t[54] !== S || t[55] !== zt || t[56] !== R || t[57] !== _) {
|
|
1634
|
+
const b = Ve().domain([0, Tt]).range([mt, 0]).nice();
|
|
1635
|
+
let lt;
|
|
1636
|
+
t[72] !== G ? (lt = (p, ee) => ({
|
|
1658
1637
|
...p,
|
|
1659
|
-
id:
|
|
1660
|
-
}), t[72] =
|
|
1661
|
-
const It = m.map(
|
|
1662
|
-
g = Zt.svg, ht = `${
|
|
1638
|
+
id: G ? `${p.label}` : `${ee}`
|
|
1639
|
+
}), t[72] = G, t[73] = lt) : lt = t[73];
|
|
1640
|
+
const It = m.map(lt), Et = G || It.map(Ws), O = ge().domain(Et).range([0, J ? Math.max(it, J * Et.length) : F ? Math.min(it, F * Et.length) : it]).paddingInner(j), qt = b.ticks(H);
|
|
1641
|
+
g = Zt.svg, ht = `${_}px`, Mt = `${ct}px`, st = `0 0 ${_} ${ct}`, Ct = "ltr", E = Ft, ft = `translate(${n.left},${n.top})`;
|
|
1663
1642
|
const Nt = b(0), Kt = b(0);
|
|
1664
|
-
let
|
|
1665
|
-
t[74] !== x || t[75] !==
|
|
1643
|
+
let Lt;
|
|
1644
|
+
t[74] !== x || t[75] !== r || t[76] !== tt || t[77] !== S ? (Lt = ue(0, x, r, tt, S), t[74] = x, t[75] = r, t[76] = tt, t[77] = S, t[78] = Lt) : Lt = t[78];
|
|
1666
1645
|
const Qt = s?.xAxis?.axis, Ut = s?.yAxis?.labels;
|
|
1667
1646
|
let Ht;
|
|
1668
1647
|
t[79] !== Qt || t[80] !== Ut ? (Ht = {
|
|
1669
1648
|
axis: Qt,
|
|
1670
1649
|
label: Ut
|
|
1671
1650
|
}, t[79] = Qt, t[80] = Ut, t[81] = Ht) : Ht = t[81];
|
|
1672
|
-
const
|
|
1651
|
+
const kt = u?.xAxis?.axis, Rt = u?.yAxis?.labels;
|
|
1673
1652
|
let Jt;
|
|
1674
|
-
t[82] !==
|
|
1675
|
-
axis:
|
|
1653
|
+
t[82] !== kt || t[83] !== Rt ? (Jt = {
|
|
1654
|
+
axis: kt,
|
|
1676
1655
|
label: Rt
|
|
1677
|
-
}, t[82] =
|
|
1678
|
-
x: 0 -
|
|
1656
|
+
}, t[82] = kt, t[83] = Rt, t[84] = Jt) : Jt = t[84], Q = /* @__PURE__ */ i.jsx(Oe, { y1: Nt, y2: Kt, x1: 0 - A, x2: it + n.right, label: Lt, labelPos: {
|
|
1657
|
+
x: 0 - A,
|
|
1679
1658
|
y: b(0),
|
|
1680
1659
|
dx: 0,
|
|
1681
1660
|
dy: -5
|
|
1682
|
-
}, classNames: Ht, styles: Jt }),
|
|
1683
|
-
gridLines:
|
|
1684
|
-
labels:
|
|
1661
|
+
}, classNames: Ht, styles: Jt }), Z = I ? /* @__PURE__ */ i.jsx(Xe, { values: qt.filter(Gs), y: qt.filter(Es).map((p) => b(p)), x1: 0 - A, x2: it + n.right, styles: {
|
|
1662
|
+
gridLines: u?.yAxis?.gridLines,
|
|
1663
|
+
labels: u?.yAxis?.labels
|
|
1685
1664
|
}, classNames: {
|
|
1686
1665
|
gridLines: s?.yAxis?.gridLines,
|
|
1687
1666
|
labels: s?.yAxis?.labels
|
|
1688
|
-
}, suffix:
|
|
1689
|
-
const
|
|
1690
|
-
t[85] !==
|
|
1667
|
+
}, suffix: S, prefix: tt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: r }) : null;
|
|
1668
|
+
const z = 0 - A - 15, v = mt / 2, k = u?.yAxis?.title, a = s?.yAxis?.title;
|
|
1669
|
+
t[85] !== B || t[86] !== z || t[87] !== v || t[88] !== k || t[89] !== a ? (U = /* @__PURE__ */ i.jsx(ke, { x: z, y: v, style: k, className: a, text: B, rotate90: !0 }), t[85] = B, t[86] = z, t[87] = v, t[88] = k, t[89] = a, t[90] = U) : U = t[90], t[91] !== h ? (V = h.filter(Ys).map(Xs), t[91] = h, t[92] = V) : V = t[92], C = De, at = It.map((p) => _t(O(p.id)) ? null : /* @__PURE__ */ i.jsxs(Zt.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
|
|
1691
1670
|
initial: {
|
|
1692
|
-
x:
|
|
1671
|
+
x: O(`${p.id}`),
|
|
1693
1672
|
y: 0
|
|
1694
1673
|
},
|
|
1695
1674
|
whileInView: {
|
|
1696
|
-
x:
|
|
1675
|
+
x: O(`${p.id}`),
|
|
1697
1676
|
y: 0,
|
|
1698
1677
|
transition: {
|
|
1699
|
-
duration:
|
|
1678
|
+
duration: o.duration
|
|
1700
1679
|
}
|
|
1701
1680
|
}
|
|
1702
1681
|
}, transition: {
|
|
1703
|
-
duration:
|
|
1704
|
-
}, initial: "initial", animate:
|
|
1682
|
+
duration: o.duration
|
|
1683
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
|
|
1705
1684
|
opacity: 0,
|
|
1706
1685
|
transition: {
|
|
1707
|
-
duration:
|
|
1686
|
+
duration: o.duration
|
|
1708
1687
|
}
|
|
1709
1688
|
}, children: [
|
|
1710
|
-
p.size.map((ee,
|
|
1711
|
-
|
|
1689
|
+
p.size.map((ee, L) => /* @__PURE__ */ i.jsxs(Zt.g, { opacity: et ? M[L] === et ? 1 : 0.3 : 1, onMouseEnter: (Vt) => {
|
|
1690
|
+
T({
|
|
1712
1691
|
...p,
|
|
1713
|
-
sizeIndex:
|
|
1714
|
-
}), bt(Vt.clientY),
|
|
1692
|
+
sizeIndex: L
|
|
1693
|
+
}), bt(Vt.clientY), $(Vt.clientX), jt?.({
|
|
1715
1694
|
...p,
|
|
1716
|
-
sizeIndex:
|
|
1695
|
+
sizeIndex: L
|
|
1717
1696
|
});
|
|
1718
1697
|
}, onMouseMove: (Vt) => {
|
|
1719
|
-
|
|
1698
|
+
T({
|
|
1720
1699
|
...p,
|
|
1721
|
-
sizeIndex:
|
|
1722
|
-
}), bt(Vt.clientY),
|
|
1700
|
+
sizeIndex: L
|
|
1701
|
+
}), bt(Vt.clientY), $(Vt.clientX);
|
|
1723
1702
|
}, onMouseLeave: () => {
|
|
1724
|
-
|
|
1703
|
+
T(void 0), $(void 0), bt(void 0), jt?.(void 0);
|
|
1725
1704
|
}, onClick: () => {
|
|
1726
|
-
(w ||
|
|
1705
|
+
(w || xt) && (Ae(f, {
|
|
1727
1706
|
...p,
|
|
1728
|
-
sizeIndex:
|
|
1729
|
-
}) &&
|
|
1707
|
+
sizeIndex: L
|
|
1708
|
+
}) && W ? (Y(void 0), w?.(void 0)) : (Y({
|
|
1730
1709
|
...p,
|
|
1731
|
-
sizeIndex:
|
|
1710
|
+
sizeIndex: L
|
|
1732
1711
|
}), w && w({
|
|
1733
1712
|
...p,
|
|
1734
|
-
sizeIndex:
|
|
1713
|
+
sizeIndex: L
|
|
1735
1714
|
})));
|
|
1736
1715
|
}, children: [
|
|
1737
|
-
/* @__PURE__ */ i.jsx(Zt.rect, { x: 0, width:
|
|
1716
|
+
/* @__PURE__ */ i.jsx(Zt.rect, { x: 0, width: O.bandwidth(), variants: {
|
|
1738
1717
|
initial: {
|
|
1739
1718
|
height: 0,
|
|
1740
|
-
fill:
|
|
1719
|
+
fill: M[L],
|
|
1741
1720
|
y: b(0)
|
|
1742
1721
|
},
|
|
1743
1722
|
whileInView: {
|
|
1744
|
-
height: Math.abs(b(
|
|
1745
|
-
y: b(
|
|
1746
|
-
fill:
|
|
1723
|
+
height: Math.abs(b(oe(p.size.filter((Vt, l) => l <= L && Vt))) - b(oe(p.size.filter((Vt, l) => l < L && Vt)))),
|
|
1724
|
+
y: b(oe(p.size.filter((Vt, l) => l <= L && Vt))),
|
|
1725
|
+
fill: M[L],
|
|
1747
1726
|
transition: {
|
|
1748
|
-
duration:
|
|
1727
|
+
duration: o.duration
|
|
1749
1728
|
}
|
|
1750
1729
|
}
|
|
1751
|
-
}, initial: "initial", animate:
|
|
1730
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
|
|
1752
1731
|
height: 0,
|
|
1753
1732
|
y: b(0),
|
|
1754
1733
|
transition: {
|
|
1755
|
-
duration:
|
|
1734
|
+
duration: o.duration
|
|
1756
1735
|
}
|
|
1757
1736
|
} }),
|
|
1758
|
-
|
|
1737
|
+
ut ? /* @__PURE__ */ i.jsx(Zt.text, { x: O.bandwidth() / 2, style: {
|
|
1759
1738
|
textAnchor: "middle",
|
|
1760
|
-
...
|
|
1739
|
+
...u?.graphObjectValues || {}
|
|
1761
1740
|
}, className: pe("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
|
|
1762
1741
|
initial: {
|
|
1763
1742
|
y: b(0),
|
|
1764
1743
|
opacity: 0,
|
|
1765
|
-
fill:
|
|
1744
|
+
fill: Ne(M[L])
|
|
1766
1745
|
},
|
|
1767
1746
|
whileInView: {
|
|
1768
|
-
y: b(
|
|
1769
|
-
opacity: ee && Math.abs(b(
|
|
1770
|
-
fill:
|
|
1747
|
+
y: b(oe(p.size.filter((Vt, l) => l <= L && Vt))) + Math.abs(b(oe(p.size.filter((Vt, l) => l <= L && Vt))) - b(oe(p.size.filter((Vt, l) => l < L && Vt)))) / 2,
|
|
1748
|
+
opacity: ee && Math.abs(b(oe(p.size.filter((Vt, l) => l <= L && Vt))) - b(oe(p.size.filter((Vt, l) => l < L && Vt)))) > 20 ? 1 : 0,
|
|
1749
|
+
fill: Ne(M[L]),
|
|
1771
1750
|
transition: {
|
|
1772
|
-
duration:
|
|
1751
|
+
duration: o.duration
|
|
1773
1752
|
}
|
|
1774
1753
|
}
|
|
1775
|
-
}, initial: "initial", animate:
|
|
1754
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial", exit: {
|
|
1776
1755
|
opacity: 0,
|
|
1777
1756
|
transition: {
|
|
1778
|
-
duration:
|
|
1757
|
+
duration: o.duration
|
|
1779
1758
|
}
|
|
1780
|
-
}, children: ue(ee, x,
|
|
1781
|
-
] }, `${p.label}-${
|
|
1782
|
-
y ? /* @__PURE__ */ i.jsx(
|
|
1783
|
-
|
|
1759
|
+
}, children: ue(ee, x, r, tt, S) }) : null
|
|
1760
|
+
] }, `${p.label}-${d[L] || L}`)),
|
|
1761
|
+
y ? /* @__PURE__ */ i.jsx(Ye, { value: `${p.label}`.length < zt ? `${p.label}` : `${`${p.label}`.substring(0, zt)}...`, y: b(0) + 5, x: 0, width: O.bandwidth(), height: n.bottom, style: u?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: o, isInView: X }) : null,
|
|
1762
|
+
ut ? /* @__PURE__ */ i.jsx(Zt.text, { style: {
|
|
1784
1763
|
textAnchor: "middle",
|
|
1785
|
-
...
|
|
1786
|
-
}, x:
|
|
1764
|
+
...u?.graphObjectValues || {}
|
|
1765
|
+
}, x: O.bandwidth() / 2, dy: -10, className: pe("graph-value graph-value-total", R ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
|
|
1787
1766
|
initial: {
|
|
1788
1767
|
y: b(0),
|
|
1789
1768
|
opacity: 0,
|
|
1790
|
-
...
|
|
1791
|
-
fill:
|
|
1769
|
+
...R && {
|
|
1770
|
+
fill: R
|
|
1792
1771
|
}
|
|
1793
1772
|
},
|
|
1794
1773
|
whileInView: {
|
|
1795
|
-
y: b(
|
|
1774
|
+
y: b(oe(p.size.map(Hs))),
|
|
1796
1775
|
opacity: 1,
|
|
1797
|
-
...
|
|
1798
|
-
fill:
|
|
1776
|
+
...R && {
|
|
1777
|
+
fill: R
|
|
1799
1778
|
},
|
|
1800
1779
|
transition: {
|
|
1801
|
-
duration:
|
|
1780
|
+
duration: o.duration
|
|
1802
1781
|
}
|
|
1803
1782
|
}
|
|
1804
1783
|
}, exit: {
|
|
1805
1784
|
opacity: 0,
|
|
1806
1785
|
transition: {
|
|
1807
|
-
duration:
|
|
1786
|
+
duration: o.duration
|
|
1808
1787
|
}
|
|
1809
|
-
}, initial: "initial", animate:
|
|
1810
|
-
] }, p.label)),
|
|
1788
|
+
}, initial: "initial", animate: X ? "whileInView" : "initial", children: ue(oe(p.size.filter(Fs)), x, r, tt, S) }) : null
|
|
1789
|
+
] }, p.label)), P = dt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: dt.map((p, ee) => /* @__PURE__ */ i.jsx(He, { text: p.text, color: p.color, y: b(p.value), x1: 0 - A, x2: it + n.right, classNames: p.classNames, styles: p.styles, animate: o, isInView: X }, ee)) }) : null, t[8] = o, t[9] = B, t[10] = M, t[11] = j, t[12] = s?.graphObjectValues, t[13] = s?.xAxis?.axis, t[14] = s?.xAxis?.labels, t[15] = s?.yAxis?.gridLines, t[16] = s?.yAxis?.labels, t[17] = s?.yAxis?.title, t[18] = d, t[19] = h, t[20] = m, t[21] = xt, t[22] = mt, t[23] = it, t[24] = ct, t[25] = X, t[26] = G, t[27] = A, t[28] = n.bottom, t[29] = n.left, t[30] = n.right, t[31] = n.top, t[32] = F, t[33] = Tt, t[34] = J, t[35] = f, t[36] = x, t[37] = H, t[38] = w, t[39] = jt, t[40] = r, t[41] = tt, t[42] = dt, t[43] = W, t[44] = et, t[45] = y, t[46] = I, t[47] = ut, t[48] = u?.graphObjectValues, t[49] = u?.xAxis?.axis, t[50] = u?.xAxis?.labels, t[51] = u?.yAxis?.gridLines, t[52] = u?.yAxis?.labels, t[53] = u?.yAxis?.title, t[54] = S, t[55] = zt, t[56] = R, t[57] = _, t[58] = C, t[59] = g, t[60] = Q, t[61] = Z, t[62] = U, t[63] = V, t[64] = ht, t[65] = Mt, t[66] = st, t[67] = Ct, t[68] = E, t[69] = at, t[70] = P, t[71] = ft;
|
|
1811
1790
|
} else
|
|
1812
|
-
|
|
1791
|
+
C = t[58], g = t[59], Q = t[60], Z = t[61], U = t[62], V = t[63], ht = t[64], Mt = t[65], st = t[66], Ct = t[67], E = t[68], at = t[69], P = t[70], ft = t[71];
|
|
1813
1792
|
let pt;
|
|
1814
|
-
t[93] !==
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
] }), t[93] =
|
|
1793
|
+
t[93] !== C || t[94] !== at || t[95] !== P ? (pt = /* @__PURE__ */ i.jsxs(C, { children: [
|
|
1794
|
+
at,
|
|
1795
|
+
P
|
|
1796
|
+
] }), t[93] = C, t[94] = at, t[95] = P, t[96] = pt) : pt = t[96];
|
|
1818
1797
|
let vt;
|
|
1819
|
-
t[97] !==
|
|
1798
|
+
t[97] !== h ? (vt = h.filter(Ps).map(Bs), t[97] = h, t[98] = vt) : vt = t[98];
|
|
1820
1799
|
let wt;
|
|
1821
|
-
t[99] !==
|
|
1800
|
+
t[99] !== Q || t[100] !== Z || t[101] !== U || t[102] !== V || t[103] !== pt || t[104] !== vt || t[105] !== ft ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: ft, children: [
|
|
1801
|
+
Q,
|
|
1822
1802
|
Z,
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
j,
|
|
1803
|
+
U,
|
|
1804
|
+
V,
|
|
1826
1805
|
pt,
|
|
1827
1806
|
vt
|
|
1828
|
-
] }), t[99] =
|
|
1829
|
-
let
|
|
1830
|
-
t[107] !== g || t[108] !== ht || t[109] !==
|
|
1807
|
+
] }), t[99] = Q, t[100] = Z, t[101] = U, t[102] = V, t[103] = pt, t[104] = vt, t[105] = ft, t[106] = wt) : wt = t[106];
|
|
1808
|
+
let ot;
|
|
1809
|
+
t[107] !== g || t[108] !== ht || t[109] !== Mt || t[110] !== st || t[111] !== Ct || t[112] !== E || t[113] !== wt ? (ot = /* @__PURE__ */ i.jsx(g, { width: ht, height: Mt, viewBox: st, direction: Ct, ref: E, children: wt }), t[107] = g, t[108] = ht, t[109] = Mt, t[110] = st, t[111] = Ct, t[112] = E, t[113] = wt, t[114] = ot) : ot = t[114];
|
|
1831
1810
|
let At;
|
|
1832
|
-
t[115] !== s?.tooltip || t[116] !==
|
|
1811
|
+
t[115] !== s?.tooltip || t[116] !== N || t[117] !== Dt || t[118] !== c || t[119] !== u?.tooltip || t[120] !== nt ? (At = c && nt && N && Dt ? /* @__PURE__ */ i.jsx($e, { data: c, body: nt, xPos: N, yPos: Dt, backgroundStyle: u?.tooltip, className: s?.tooltip }) : null, t[115] = s?.tooltip, t[116] = N, t[117] = Dt, t[118] = c, t[119] = u?.tooltip, t[120] = nt, t[121] = At) : At = t[121];
|
|
1833
1812
|
let $t;
|
|
1834
|
-
t[122] !==
|
|
1835
|
-
V(void 0);
|
|
1836
|
-
}, children: /* @__PURE__ */ i.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof H == "string" ? {
|
|
1837
|
-
__html: Me(H, h)
|
|
1838
|
-
} : void 0, children: typeof H == "function" ? H(h) : null }) }) : null, t[122] = H, t[123] = h, t[124] = $t) : $t = t[124];
|
|
1813
|
+
t[122] !== s?.modal || t[123] !== xt || t[124] !== f ? ($t = xt && f !== void 0 ? /* @__PURE__ */ i.jsx(Me, { body: xt, data: f, setData: Y, className: s?.modal }) : null, t[122] = s?.modal, t[123] = xt, t[124] = f, t[125] = $t) : $t = t[125];
|
|
1839
1814
|
let Ot;
|
|
1840
|
-
return t[
|
|
1841
|
-
|
|
1815
|
+
return t[126] !== ot || t[127] !== At || t[128] !== $t ? (Ot = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1816
|
+
ot,
|
|
1842
1817
|
At,
|
|
1843
1818
|
$t
|
|
1844
|
-
] }), t[
|
|
1819
|
+
] }), t[126] = ot, t[127] = At, t[128] = $t, t[129] = Ot) : Ot = t[129], Ot;
|
|
1845
1820
|
}
|
|
1846
|
-
function
|
|
1821
|
+
function Bs(e) {
|
|
1847
1822
|
return e.layer;
|
|
1848
1823
|
}
|
|
1849
|
-
function
|
|
1824
|
+
function Ps(e) {
|
|
1850
1825
|
return e.position === "after";
|
|
1851
1826
|
}
|
|
1852
|
-
function
|
|
1827
|
+
function Fs(e) {
|
|
1853
1828
|
return e;
|
|
1854
1829
|
}
|
|
1855
|
-
function
|
|
1830
|
+
function Hs(e) {
|
|
1856
1831
|
return e || 0;
|
|
1857
1832
|
}
|
|
1858
|
-
function
|
|
1833
|
+
function Xs(e) {
|
|
1859
1834
|
return e.layer;
|
|
1860
1835
|
}
|
|
1861
|
-
function
|
|
1836
|
+
function Ys(e) {
|
|
1862
1837
|
return e.position === "before";
|
|
1863
1838
|
}
|
|
1864
|
-
function
|
|
1839
|
+
function Es(e) {
|
|
1865
1840
|
return e !== 0;
|
|
1866
1841
|
}
|
|
1867
|
-
function
|
|
1842
|
+
function Gs(e) {
|
|
1868
1843
|
return e !== 0;
|
|
1869
1844
|
}
|
|
1870
|
-
function
|
|
1845
|
+
function Ws(e) {
|
|
1871
1846
|
return `${e.id}`;
|
|
1872
1847
|
}
|
|
1873
|
-
function
|
|
1848
|
+
function Rs(e) {
|
|
1874
1849
|
const t = xe.c(43), {
|
|
1875
1850
|
data: m,
|
|
1876
1851
|
graphTitle: D,
|
|
1877
1852
|
colors: Xt,
|
|
1878
1853
|
sources: St,
|
|
1879
1854
|
graphDescription: gt,
|
|
1880
|
-
barPadding:
|
|
1881
|
-
showTicks:
|
|
1882
|
-
truncateBy:
|
|
1883
|
-
height:
|
|
1855
|
+
barPadding: _,
|
|
1856
|
+
showTicks: ct,
|
|
1857
|
+
truncateBy: M,
|
|
1858
|
+
height: j,
|
|
1884
1859
|
width: y,
|
|
1885
|
-
footNote:
|
|
1886
|
-
colorDomain:
|
|
1887
|
-
colorLegendTitle:
|
|
1888
|
-
padding:
|
|
1889
|
-
backgroundColor:
|
|
1890
|
-
topMargin:
|
|
1891
|
-
bottomMargin:
|
|
1892
|
-
leftMargin:
|
|
1860
|
+
footNote: I,
|
|
1861
|
+
colorDomain: zt,
|
|
1862
|
+
colorLegendTitle: nt,
|
|
1863
|
+
padding: jt,
|
|
1864
|
+
backgroundColor: S,
|
|
1865
|
+
topMargin: tt,
|
|
1866
|
+
bottomMargin: ut,
|
|
1867
|
+
leftMargin: dt,
|
|
1893
1868
|
rightMargin: Tt,
|
|
1894
1869
|
tooltip: w,
|
|
1895
|
-
onSeriesMouseOver:
|
|
1896
|
-
suffix:
|
|
1897
|
-
prefix:
|
|
1898
|
-
showLabels:
|
|
1899
|
-
relativeHeight:
|
|
1900
|
-
showValues:
|
|
1901
|
-
refValues:
|
|
1902
|
-
graphID:
|
|
1903
|
-
maxValue:
|
|
1904
|
-
onSeriesMouseClick:
|
|
1870
|
+
onSeriesMouseOver: et,
|
|
1871
|
+
suffix: G,
|
|
1872
|
+
prefix: F,
|
|
1873
|
+
showLabels: J,
|
|
1874
|
+
relativeHeight: W,
|
|
1875
|
+
showValues: xt,
|
|
1876
|
+
refValues: B,
|
|
1877
|
+
graphID: R,
|
|
1878
|
+
maxValue: H,
|
|
1879
|
+
onSeriesMouseClick: u,
|
|
1905
1880
|
graphDownload: s,
|
|
1906
|
-
dataDownload:
|
|
1907
|
-
language:
|
|
1908
|
-
labelOrder:
|
|
1909
|
-
minHeight:
|
|
1881
|
+
dataDownload: o,
|
|
1882
|
+
language: d,
|
|
1883
|
+
labelOrder: r,
|
|
1884
|
+
minHeight: h,
|
|
1910
1885
|
theme: x,
|
|
1911
|
-
maxBarThickness:
|
|
1912
|
-
sortParameter:
|
|
1913
|
-
maxNumberOfBars:
|
|
1914
|
-
minBarThickness:
|
|
1886
|
+
maxBarThickness: A,
|
|
1887
|
+
sortParameter: K,
|
|
1888
|
+
maxNumberOfBars: q,
|
|
1889
|
+
minBarThickness: rt,
|
|
1915
1890
|
showColorScale: Ft,
|
|
1916
1891
|
ariaLabel: Yt,
|
|
1917
|
-
resetSelectionOnDoubleClick:
|
|
1892
|
+
resetSelectionOnDoubleClick: X,
|
|
1918
1893
|
detailsOnClick: yt,
|
|
1919
1894
|
barAxisTitle: Bt,
|
|
1920
|
-
noOfTicks:
|
|
1895
|
+
noOfTicks: n,
|
|
1921
1896
|
valueColor: c,
|
|
1922
|
-
styles:
|
|
1923
|
-
classNames:
|
|
1924
|
-
filterNA:
|
|
1925
|
-
animate:
|
|
1926
|
-
precision:
|
|
1927
|
-
customLayers:
|
|
1897
|
+
styles: T,
|
|
1898
|
+
classNames: f,
|
|
1899
|
+
filterNA: Y,
|
|
1900
|
+
animate: N,
|
|
1901
|
+
precision: $,
|
|
1902
|
+
customLayers: Dt,
|
|
1928
1903
|
timeline: bt,
|
|
1929
|
-
naLabel:
|
|
1904
|
+
naLabel: it,
|
|
1930
1905
|
sortData: mt,
|
|
1931
|
-
orientation:
|
|
1932
|
-
} = e, g = Xt === void 0 ? ce.light.categoricalColors.colors : Xt,
|
|
1906
|
+
orientation: C
|
|
1907
|
+
} = e, g = Xt === void 0 ? ce.light.categoricalColors.colors : Xt, Q = _ === void 0 ? 0.25 : _, Z = ct === void 0 ? !0 : ct, U = M === void 0 ? 999 : M, V = S === void 0 ? !1 : S, ht = G === void 0 ? "" : G, Mt = F === void 0 ? "" : F, st = J === void 0 ? !0 : J, Ct = xt === void 0 ? !0 : xt, E = s === void 0 ? !1 : s, at = o === void 0 ? !1 : o, P = d === void 0 ? "en" : d, ft = h === void 0 ? 0 : h, pt = x === void 0 ? "light" : x, vt = Ft === void 0 ? !0 : Ft, wt = X === void 0 ? !0 : X, ot = n === void 0 ? 5 : n, At = Y === void 0 ? !0 : Y, $t = N === void 0 ? !1 : N, Ot = $ === void 0 ? 2 : $;
|
|
1933
1908
|
let b;
|
|
1934
|
-
t[0] !==
|
|
1935
|
-
const
|
|
1909
|
+
t[0] !== Dt ? (b = Dt === void 0 ? [] : Dt, t[0] = Dt, t[1] = b) : b = t[1];
|
|
1910
|
+
const lt = b, It = bt === void 0 ? {
|
|
1936
1911
|
enabled: !1,
|
|
1937
1912
|
autoplay: !1,
|
|
1938
1913
|
showOnlyActiveDate: !0
|
|
1939
|
-
} : bt, Et =
|
|
1914
|
+
} : bt, Et = it === void 0 ? "NA" : it, qt = (C === void 0 ? "vertical" : C) === "horizontal" ? Ms : Ss, [Nt, Kt] = Wt(0), [Lt, Qt] = Wt(0), [Ut, Ht] = Wt(It.autoplay), kt = Qe(Le(m, "date", !0).map((Pt) => Se(`${Pt}`, It.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oa), [Rt, Jt] = Wt(It.autoplay ? 0 : kt.length - 1), [z, v] = Wt(void 0), k = de(null), a = de(null);
|
|
1940
1915
|
let p, ee;
|
|
1941
1916
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (p = () => {
|
|
1942
|
-
const Pt = new ResizeObserver((
|
|
1943
|
-
Kt(
|
|
1917
|
+
const Pt = new ResizeObserver((ne) => {
|
|
1918
|
+
Kt(ne[0].target.clientWidth || 620), Qt(ne[0].target.clientHeight || 480);
|
|
1944
1919
|
});
|
|
1945
1920
|
return k.current && Pt.observe(k.current), () => Pt.disconnect();
|
|
1946
1921
|
}, ee = [], t[2] = p, t[3] = ee) : (p = t[2], ee = t[3]), we(p, ee), we(() => {
|
|
1947
1922
|
const Pt = setInterval(() => {
|
|
1948
|
-
Jt((
|
|
1923
|
+
Jt((ne) => ne < kt.length - 1 ? ne + 1 : 0);
|
|
1949
1924
|
}, (It.speed || 2) * 1e3);
|
|
1950
1925
|
return Ut || clearInterval(Pt), () => clearInterval(Pt);
|
|
1951
|
-
}, [
|
|
1952
|
-
const
|
|
1926
|
+
}, [kt, Ut, It.speed]);
|
|
1927
|
+
const L = Te(kt, Rt, It.showOnlyActiveDate, It.dateFormat || "yyyy"), Vt = Ke, l = f?.graphContainer, ie = T?.graphContainer;
|
|
1953
1928
|
let se;
|
|
1954
|
-
t[4] !==
|
|
1955
|
-
title:
|
|
1956
|
-
description:
|
|
1929
|
+
t[4] !== f?.description || t[5] !== f?.title || t[6] !== m || t[7] !== at || t[8] !== gt || t[9] !== E || t[10] !== D || t[11] !== T?.description || t[12] !== T?.title || t[13] !== y ? (se = D || gt || E || at ? /* @__PURE__ */ i.jsx(Ee, { styles: {
|
|
1930
|
+
title: T?.title,
|
|
1931
|
+
description: T?.description
|
|
1957
1932
|
}, classNames: {
|
|
1958
|
-
title:
|
|
1959
|
-
description:
|
|
1960
|
-
}, graphTitle: D, graphDescription: gt, width: y, graphDownload:
|
|
1961
|
-
const me = It.enabled &&
|
|
1933
|
+
title: f?.title,
|
|
1934
|
+
description: f?.description
|
|
1935
|
+
}, graphTitle: D, graphDescription: gt, width: y, graphDownload: E ? a : void 0, dataDownload: at ? m.map(aa).filter(sa).length > 0 ? m.map(ia).filter(ea) : m.filter(ta) : null }) : null, t[4] = f?.description, t[5] = f?.title, t[6] = m, t[7] = at, t[8] = gt, t[9] = E, t[10] = D, t[11] = T?.description, t[12] = T?.title, t[13] = y, t[14] = se) : se = t[14];
|
|
1936
|
+
const me = It.enabled && kt.length > 0 && L ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
1962
1937
|
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
|
|
1963
1938
|
Ht(!Ut);
|
|
1964
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Ut ? "Click to pause animation" : "Click to play animation", children: Ut ? /* @__PURE__ */ i.jsx(
|
|
1965
|
-
/* @__PURE__ */ i.jsx(
|
|
1966
|
-
Jt(
|
|
1939
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Ut ? "Click to pause animation" : "Click to play animation", children: Ut ? /* @__PURE__ */ i.jsx(qe, {}) : /* @__PURE__ */ i.jsx(Ue, {}) }),
|
|
1940
|
+
/* @__PURE__ */ i.jsx(Ie, { min: kt[0], max: kt[kt.length - 1], marks: L, step: null, defaultValue: kt[kt.length - 1], value: kt[Rt], onChangeComplete: (Pt) => {
|
|
1941
|
+
Jt(kt.indexOf(Pt));
|
|
1967
1942
|
}, onChange: (Pt) => {
|
|
1968
|
-
Jt(
|
|
1943
|
+
Jt(kt.indexOf(Pt));
|
|
1969
1944
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
1970
|
-
] }) : null, fe = "grow flex flex-col justify-center gap-3 w-full", re = m.length === 0 ? /* @__PURE__ */ i.jsx(
|
|
1971
|
-
vt ? /* @__PURE__ */ i.jsx(
|
|
1972
|
-
/* @__PURE__ */ i.jsx(
|
|
1945
|
+
] }) : null, fe = "grow flex flex-col justify-center gap-3 w-full", re = m.length === 0 ? /* @__PURE__ */ i.jsx(Re, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1946
|
+
vt ? /* @__PURE__ */ i.jsx(We, { width: y, colorDomain: zt, colors: g, colorLegendTitle: nt, setSelectedColor: v, showNAColor: !1, className: f?.colorLegend }) : null,
|
|
1947
|
+
/* @__PURE__ */ i.jsx(Je, { ref: k, children: Nt && Lt ? /* @__PURE__ */ i.jsx(qt, { data: K !== void 0 ? K === "total" ? ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(_s) : Pt), Qs, [mt || "asc"]).filter((Pt, ne) => q ? ne < q : !0) : ze(ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Ks) : Pt), (Pt) => _t(Pt.size[K]) ? -1 / 0 : Pt.size[K], [mt || "asc"]).filter((Pt, ne) => q ? ne < q : !0) : ve(m, It.dateFormat || "yyyy").filter((Pt) => It.enabled ? Pt.date === ye(new Date(kt[Rt]), It.dateFormat || "yyyy") : Pt).filter((Pt) => At ? !Pt.size.every(Js) : Pt).filter((Pt, ne) => q ? ne < q : !0), barColors: g, width: Nt, height: Lt, barPadding: Q, showTicks: Z, leftMargin: dt, rightMargin: Tt, topMargin: tt, bottomMargin: ut, truncateBy: U, showLabels: st, tooltip: w, onSeriesMouseOver: et, showValues: Ct, suffix: ht, prefix: Mt, refValues: B, maxValue: _t(H) ? Math.max(...m.map(qs)) : H, onSeriesMouseClick: u, selectedColor: z, rtl: P === "he" || P === "ar", labelOrder: r, maxBarThickness: A, minBarThickness: rt, resetSelectionOnDoubleClick: wt, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: ot, valueColor: c, classNames: f, styles: T, animate: $t === !0 ? {
|
|
1973
1948
|
duration: 0.5,
|
|
1974
1949
|
once: !0,
|
|
1975
1950
|
amount: 0.5
|
|
@@ -1977,259 +1952,259 @@ function qs(e) {
|
|
|
1977
1952
|
duration: 0,
|
|
1978
1953
|
once: !0,
|
|
1979
1954
|
amount: 0
|
|
1980
|
-
}, colorDomain:
|
|
1955
|
+
}, colorDomain: zt, precision: Ot, customLayers: lt, naLabel: Et }) : null })
|
|
1981
1956
|
] });
|
|
1982
|
-
let
|
|
1983
|
-
t[15] !== re ? (
|
|
1957
|
+
let ae;
|
|
1958
|
+
t[15] !== re ? (ae = /* @__PURE__ */ i.jsx("div", { className: fe, children: re }), t[15] = re, t[16] = ae) : ae = t[16];
|
|
1984
1959
|
let le;
|
|
1985
|
-
t[17] !==
|
|
1986
|
-
footnote:
|
|
1987
|
-
source:
|
|
1960
|
+
t[17] !== f?.footnote || t[18] !== f?.source || t[19] !== I || t[20] !== St || t[21] !== T?.footnote || t[22] !== T?.source || t[23] !== y ? (le = St || I ? /* @__PURE__ */ i.jsx(Ge, { styles: {
|
|
1961
|
+
footnote: T?.footnote,
|
|
1962
|
+
source: T?.source
|
|
1988
1963
|
}, classNames: {
|
|
1989
|
-
footnote:
|
|
1990
|
-
source:
|
|
1991
|
-
}, sources: St, footNote:
|
|
1964
|
+
footnote: f?.footnote,
|
|
1965
|
+
source: f?.source
|
|
1966
|
+
}, sources: St, footNote: I, width: y }) : null, t[17] = f?.footnote, t[18] = f?.source, t[19] = I, t[20] = St, t[21] = T?.footnote, t[22] = T?.source, t[23] = y, t[24] = le) : le = t[24];
|
|
1992
1967
|
let Gt;
|
|
1993
|
-
return t[25] !== Vt || t[26] !== Yt || t[27] !==
|
|
1968
|
+
return t[25] !== Vt || t[26] !== Yt || t[27] !== V || t[28] !== R || t[29] !== j || t[30] !== P || t[31] !== ft || t[32] !== jt || t[33] !== W || t[34] !== l || t[35] !== ie || t[36] !== se || t[37] !== me || t[38] !== ae || t[39] !== le || t[40] !== pt || t[41] !== y ? (Gt = /* @__PURE__ */ i.jsxs(Vt, { className: l, style: ie, id: R, ref: a, "aria-label": Yt, backgroundColor: V, theme: pt, language: P, minHeight: ft, width: y, height: j, relativeHeight: W, padding: jt, children: [
|
|
1994
1969
|
se,
|
|
1995
1970
|
me,
|
|
1996
|
-
|
|
1971
|
+
ae,
|
|
1997
1972
|
le
|
|
1998
|
-
] }), t[25] = Vt, t[26] = Yt, t[27] =
|
|
1973
|
+
] }), t[25] = Vt, t[26] = Yt, t[27] = V, t[28] = R, t[29] = j, t[30] = P, t[31] = ft, t[32] = jt, t[33] = W, t[34] = l, t[35] = ie, t[36] = se, t[37] = me, t[38] = ae, t[39] = le, t[40] = pt, t[41] = y, t[42] = Gt) : Gt = t[42], Gt;
|
|
1974
|
+
}
|
|
1975
|
+
function qs(e) {
|
|
1976
|
+
return oe(e.size.filter(Us)) || 0;
|
|
1999
1977
|
}
|
|
2000
1978
|
function Us(e) {
|
|
2001
|
-
return
|
|
1979
|
+
return !_t(e);
|
|
2002
1980
|
}
|
|
2003
1981
|
function Js(e) {
|
|
2004
|
-
return
|
|
1982
|
+
return e == null;
|
|
2005
1983
|
}
|
|
2006
1984
|
function Ks(e) {
|
|
2007
1985
|
return e == null;
|
|
2008
1986
|
}
|
|
2009
1987
|
function Qs(e) {
|
|
2010
|
-
return e
|
|
1988
|
+
return oe(e.size.filter(Zs));
|
|
2011
1989
|
}
|
|
2012
1990
|
function Zs(e) {
|
|
2013
|
-
return ne(e.size.filter(_s));
|
|
2014
|
-
}
|
|
2015
|
-
function _s(e) {
|
|
2016
1991
|
return !_t(e);
|
|
2017
1992
|
}
|
|
2018
|
-
function
|
|
1993
|
+
function _s(e) {
|
|
2019
1994
|
return e == null;
|
|
2020
1995
|
}
|
|
2021
|
-
function
|
|
1996
|
+
function ta(e) {
|
|
2022
1997
|
return e !== void 0;
|
|
2023
1998
|
}
|
|
2024
|
-
function
|
|
1999
|
+
function ea(e) {
|
|
2025
2000
|
return e !== void 0;
|
|
2026
2001
|
}
|
|
2027
|
-
function
|
|
2002
|
+
function ia(e) {
|
|
2028
2003
|
return e.data;
|
|
2029
2004
|
}
|
|
2030
|
-
function
|
|
2005
|
+
function sa(e) {
|
|
2031
2006
|
return e !== void 0;
|
|
2032
2007
|
}
|
|
2033
|
-
function
|
|
2008
|
+
function aa(e) {
|
|
2034
2009
|
return e.data;
|
|
2035
2010
|
}
|
|
2036
|
-
function
|
|
2037
|
-
return
|
|
2011
|
+
function oa(e, t) {
|
|
2012
|
+
return Ze(e, t);
|
|
2038
2013
|
}
|
|
2039
|
-
function
|
|
2014
|
+
function Xa(e) {
|
|
2040
2015
|
const t = xe.c(61), {
|
|
2041
2016
|
data: m,
|
|
2042
2017
|
graphTitle: D,
|
|
2043
2018
|
colors: Xt,
|
|
2044
2019
|
barPadding: St,
|
|
2045
2020
|
showTicks: gt,
|
|
2046
|
-
leftMargin:
|
|
2047
|
-
rightMargin:
|
|
2048
|
-
topMargin:
|
|
2049
|
-
bottomMargin:
|
|
2021
|
+
leftMargin: _,
|
|
2022
|
+
rightMargin: ct,
|
|
2023
|
+
topMargin: M,
|
|
2024
|
+
bottomMargin: j,
|
|
2050
2025
|
truncateBy: y,
|
|
2051
|
-
showLabels:
|
|
2052
|
-
showValues:
|
|
2053
|
-
backgroundColor:
|
|
2054
|
-
suffix:
|
|
2055
|
-
prefix:
|
|
2056
|
-
sources:
|
|
2057
|
-
graphDescription:
|
|
2058
|
-
height:
|
|
2026
|
+
showLabels: I,
|
|
2027
|
+
showValues: zt,
|
|
2028
|
+
backgroundColor: nt,
|
|
2029
|
+
suffix: jt,
|
|
2030
|
+
prefix: S,
|
|
2031
|
+
sources: tt,
|
|
2032
|
+
graphDescription: ut,
|
|
2033
|
+
height: dt,
|
|
2059
2034
|
width: Tt,
|
|
2060
2035
|
footNote: w,
|
|
2061
|
-
colorDomain:
|
|
2062
|
-
colorLegendTitle:
|
|
2063
|
-
padding:
|
|
2064
|
-
relativeHeight:
|
|
2065
|
-
tooltip:
|
|
2066
|
-
onSeriesMouseOver:
|
|
2067
|
-
refValues:
|
|
2068
|
-
showColorScale:
|
|
2069
|
-
graphID:
|
|
2070
|
-
maxValue:
|
|
2036
|
+
colorDomain: et,
|
|
2037
|
+
colorLegendTitle: G,
|
|
2038
|
+
padding: F,
|
|
2039
|
+
relativeHeight: J,
|
|
2040
|
+
tooltip: W,
|
|
2041
|
+
onSeriesMouseOver: xt,
|
|
2042
|
+
refValues: B,
|
|
2043
|
+
showColorScale: R,
|
|
2044
|
+
graphID: H,
|
|
2045
|
+
maxValue: u,
|
|
2071
2046
|
minValue: s,
|
|
2072
|
-
highlightedDataPoints:
|
|
2073
|
-
onSeriesMouseClick:
|
|
2074
|
-
graphDownload:
|
|
2075
|
-
dataDownload:
|
|
2047
|
+
highlightedDataPoints: o,
|
|
2048
|
+
onSeriesMouseClick: d,
|
|
2049
|
+
graphDownload: r,
|
|
2050
|
+
dataDownload: h,
|
|
2076
2051
|
language: x,
|
|
2077
|
-
theme:
|
|
2078
|
-
sortData:
|
|
2079
|
-
labelOrder:
|
|
2080
|
-
showNAColor:
|
|
2052
|
+
theme: A,
|
|
2053
|
+
sortData: K,
|
|
2054
|
+
labelOrder: q,
|
|
2055
|
+
showNAColor: rt,
|
|
2081
2056
|
minHeight: Ft,
|
|
2082
2057
|
maxBarThickness: Yt,
|
|
2083
|
-
maxNumberOfBars:
|
|
2058
|
+
maxNumberOfBars: X,
|
|
2084
2059
|
minBarThickness: yt,
|
|
2085
2060
|
ariaLabel: Bt,
|
|
2086
|
-
resetSelectionOnDoubleClick:
|
|
2061
|
+
resetSelectionOnDoubleClick: n,
|
|
2087
2062
|
detailsOnClick: c,
|
|
2088
|
-
barAxisTitle:
|
|
2089
|
-
noOfTicks:
|
|
2090
|
-
valueColor:
|
|
2091
|
-
orientation:
|
|
2092
|
-
styles:
|
|
2093
|
-
classNames:
|
|
2063
|
+
barAxisTitle: T,
|
|
2064
|
+
noOfTicks: f,
|
|
2065
|
+
valueColor: Y,
|
|
2066
|
+
orientation: N,
|
|
2067
|
+
styles: $,
|
|
2068
|
+
classNames: Dt,
|
|
2094
2069
|
filterNA: bt,
|
|
2095
|
-
animate:
|
|
2070
|
+
animate: it,
|
|
2096
2071
|
dimmedOpacity: mt,
|
|
2097
|
-
precision:
|
|
2072
|
+
precision: C,
|
|
2098
2073
|
customLayers: g,
|
|
2099
|
-
timeline:
|
|
2100
|
-
naLabel:
|
|
2101
|
-
} = e,
|
|
2102
|
-
let
|
|
2103
|
-
return t[0] !==
|
|
2074
|
+
timeline: Q,
|
|
2075
|
+
naLabel: Z
|
|
2076
|
+
} = e, U = N === void 0 ? "vertical" : N;
|
|
2077
|
+
let V;
|
|
2078
|
+
return t[0] !== it || t[1] !== Bt || t[2] !== nt || t[3] !== T || t[4] !== St || t[5] !== j || t[6] !== Dt || t[7] !== et || t[8] !== G || t[9] !== Xt || t[10] !== g || t[11] !== m || t[12] !== h || t[13] !== c || t[14] !== mt || t[15] !== bt || t[16] !== w || t[17] !== ut || t[18] !== r || t[19] !== H || t[20] !== D || t[21] !== dt || t[22] !== o || t[23] !== q || t[24] !== x || t[25] !== _ || t[26] !== Yt || t[27] !== X || t[28] !== u || t[29] !== yt || t[30] !== Ft || t[31] !== s || t[32] !== Z || t[33] !== f || t[34] !== d || t[35] !== xt || t[36] !== U || t[37] !== F || t[38] !== C || t[39] !== S || t[40] !== B || t[41] !== J || t[42] !== n || t[43] !== ct || t[44] !== R || t[45] !== I || t[46] !== rt || t[47] !== gt || t[48] !== zt || t[49] !== K || t[50] !== tt || t[51] !== $ || t[52] !== jt || t[53] !== A || t[54] !== Q || t[55] !== W || t[56] !== M || t[57] !== y || t[58] !== Y || t[59] !== Tt ? (V = /* @__PURE__ */ i.jsx(rs, { data: m, graphTitle: D, colors: Xt, barPadding: St, showTicks: gt, leftMargin: _, rightMargin: ct, topMargin: M, bottomMargin: j, truncateBy: y, showLabels: I, showValues: zt, backgroundColor: nt, suffix: jt, prefix: S, sources: tt, graphDescription: ut, height: dt, width: Tt, footNote: w, colorDomain: et, colorLegendTitle: G, padding: F, relativeHeight: J, tooltip: W, onSeriesMouseOver: xt, refValues: B, showColorScale: R, graphID: H, maxValue: u, minValue: s, highlightedDataPoints: o, onSeriesMouseClick: d, graphDownload: r, dataDownload: h, language: x, theme: A, sortData: K, labelOrder: q, showNAColor: rt, minHeight: Ft, maxBarThickness: Yt, maxNumberOfBars: X, minBarThickness: yt, ariaLabel: Bt, resetSelectionOnDoubleClick: n, styles: $, detailsOnClick: c, barAxisTitle: T, noOfTicks: f, valueColor: Y, classNames: Dt, filterNA: bt, animate: it, dimmedOpacity: mt, precision: C, customLayers: g, timeline: Q, naLabel: Z, orientation: U }), t[0] = it, t[1] = Bt, t[2] = nt, t[3] = T, t[4] = St, t[5] = j, t[6] = Dt, t[7] = et, t[8] = G, t[9] = Xt, t[10] = g, t[11] = m, t[12] = h, t[13] = c, t[14] = mt, t[15] = bt, t[16] = w, t[17] = ut, t[18] = r, t[19] = H, t[20] = D, t[21] = dt, t[22] = o, t[23] = q, t[24] = x, t[25] = _, t[26] = Yt, t[27] = X, t[28] = u, t[29] = yt, t[30] = Ft, t[31] = s, t[32] = Z, t[33] = f, t[34] = d, t[35] = xt, t[36] = U, t[37] = F, t[38] = C, t[39] = S, t[40] = B, t[41] = J, t[42] = n, t[43] = ct, t[44] = R, t[45] = I, t[46] = rt, t[47] = gt, t[48] = zt, t[49] = K, t[50] = tt, t[51] = $, t[52] = jt, t[53] = A, t[54] = Q, t[55] = W, t[56] = M, t[57] = y, t[58] = Y, t[59] = Tt, t[60] = V) : V = t[60], V;
|
|
2104
2079
|
}
|
|
2105
|
-
function
|
|
2080
|
+
function Ya(e) {
|
|
2106
2081
|
const t = xe.c(57), {
|
|
2107
2082
|
data: m,
|
|
2108
2083
|
graphTitle: D,
|
|
2109
2084
|
colors: Xt,
|
|
2110
2085
|
sources: St,
|
|
2111
2086
|
graphDescription: gt,
|
|
2112
|
-
barPadding:
|
|
2113
|
-
showTicks:
|
|
2114
|
-
truncateBy:
|
|
2115
|
-
height:
|
|
2087
|
+
barPadding: _,
|
|
2088
|
+
showTicks: ct,
|
|
2089
|
+
truncateBy: M,
|
|
2090
|
+
height: j,
|
|
2116
2091
|
width: y,
|
|
2117
|
-
footNote:
|
|
2118
|
-
colorDomain:
|
|
2119
|
-
colorLegendTitle:
|
|
2120
|
-
suffix:
|
|
2121
|
-
prefix:
|
|
2122
|
-
showValues:
|
|
2123
|
-
padding:
|
|
2124
|
-
backgroundColor:
|
|
2092
|
+
footNote: I,
|
|
2093
|
+
colorDomain: zt,
|
|
2094
|
+
colorLegendTitle: nt,
|
|
2095
|
+
suffix: jt,
|
|
2096
|
+
prefix: S,
|
|
2097
|
+
showValues: tt,
|
|
2098
|
+
padding: ut,
|
|
2099
|
+
backgroundColor: dt,
|
|
2125
2100
|
leftMargin: Tt,
|
|
2126
2101
|
rightMargin: w,
|
|
2127
|
-
topMargin:
|
|
2128
|
-
bottomMargin:
|
|
2129
|
-
showLabels:
|
|
2130
|
-
relativeHeight:
|
|
2131
|
-
tooltip:
|
|
2132
|
-
onSeriesMouseOver:
|
|
2133
|
-
refValues:
|
|
2134
|
-
graphID:
|
|
2135
|
-
maxValue:
|
|
2136
|
-
minValue:
|
|
2102
|
+
topMargin: et,
|
|
2103
|
+
bottomMargin: G,
|
|
2104
|
+
showLabels: F,
|
|
2105
|
+
relativeHeight: J,
|
|
2106
|
+
tooltip: W,
|
|
2107
|
+
onSeriesMouseOver: xt,
|
|
2108
|
+
refValues: B,
|
|
2109
|
+
graphID: R,
|
|
2110
|
+
maxValue: H,
|
|
2111
|
+
minValue: u,
|
|
2137
2112
|
onSeriesMouseClick: s,
|
|
2138
|
-
graphDownload:
|
|
2139
|
-
dataDownload:
|
|
2140
|
-
language:
|
|
2141
|
-
labelOrder:
|
|
2113
|
+
graphDownload: o,
|
|
2114
|
+
dataDownload: d,
|
|
2115
|
+
language: r,
|
|
2116
|
+
labelOrder: h,
|
|
2142
2117
|
minHeight: x,
|
|
2143
|
-
theme:
|
|
2144
|
-
sortParameter:
|
|
2145
|
-
sortData:
|
|
2146
|
-
maxBarThickness:
|
|
2118
|
+
theme: A,
|
|
2119
|
+
sortParameter: K,
|
|
2120
|
+
sortData: q,
|
|
2121
|
+
maxBarThickness: rt,
|
|
2147
2122
|
ariaLabel: Ft,
|
|
2148
2123
|
resetSelectionOnDoubleClick: Yt,
|
|
2149
|
-
detailsOnClick:
|
|
2124
|
+
detailsOnClick: X,
|
|
2150
2125
|
barAxisTitle: yt,
|
|
2151
2126
|
noOfTicks: Bt,
|
|
2152
|
-
valueColor:
|
|
2127
|
+
valueColor: n,
|
|
2153
2128
|
orientation: c,
|
|
2154
|
-
styles:
|
|
2155
|
-
classNames:
|
|
2156
|
-
filterNA:
|
|
2157
|
-
animate:
|
|
2158
|
-
precision:
|
|
2159
|
-
customLayers:
|
|
2129
|
+
styles: T,
|
|
2130
|
+
classNames: f,
|
|
2131
|
+
filterNA: Y,
|
|
2132
|
+
animate: N,
|
|
2133
|
+
precision: $,
|
|
2134
|
+
customLayers: Dt,
|
|
2160
2135
|
showColorScale: bt,
|
|
2161
|
-
timeline:
|
|
2136
|
+
timeline: it,
|
|
2162
2137
|
naLabel: mt
|
|
2163
|
-
} = e,
|
|
2138
|
+
} = e, C = c === void 0 ? "vertical" : c;
|
|
2164
2139
|
let g;
|
|
2165
|
-
return t[0] !==
|
|
2140
|
+
return t[0] !== N || t[1] !== Ft || t[2] !== dt || t[3] !== yt || t[4] !== _ || t[5] !== G || t[6] !== f || t[7] !== zt || t[8] !== nt || t[9] !== Xt || t[10] !== Dt || t[11] !== m || t[12] !== d || t[13] !== X || t[14] !== Y || t[15] !== I || t[16] !== gt || t[17] !== o || t[18] !== R || t[19] !== D || t[20] !== j || t[21] !== h || t[22] !== r || t[23] !== Tt || t[24] !== rt || t[25] !== H || t[26] !== x || t[27] !== u || t[28] !== mt || t[29] !== Bt || t[30] !== s || t[31] !== xt || t[32] !== C || t[33] !== ut || t[34] !== $ || t[35] !== S || t[36] !== B || t[37] !== J || t[38] !== Yt || t[39] !== w || t[40] !== bt || t[41] !== F || t[42] !== ct || t[43] !== tt || t[44] !== q || t[45] !== K || t[46] !== St || t[47] !== T || t[48] !== jt || t[49] !== A || t[50] !== it || t[51] !== W || t[52] !== et || t[53] !== M || t[54] !== n || t[55] !== y ? (g = /* @__PURE__ */ i.jsx(yi, { orientation: C, data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: _, showTicks: ct, truncateBy: M, height: j, width: y, footNote: I, colorDomain: zt, colorLegendTitle: nt, suffix: jt, prefix: S, showValues: tt, padding: ut, backgroundColor: dt, leftMargin: Tt, rightMargin: w, sortParameter: K, sortData: q, topMargin: et, bottomMargin: G, showLabels: F, relativeHeight: J, tooltip: W, onSeriesMouseOver: xt, refValues: B, graphID: R, maxValue: H, minValue: u, onSeriesMouseClick: s, graphDownload: o, dataDownload: d, language: r, labelOrder: h, minHeight: x, theme: A, maxBarThickness: rt, ariaLabel: Ft, resetSelectionOnDoubleClick: Yt, styles: T, detailsOnClick: X, barAxisTitle: yt, noOfTicks: Bt, valueColor: n, classNames: f, filterNA: Y, animate: N, precision: $, customLayers: Dt, showColorScale: bt, timeline: it, naLabel: mt }), t[0] = N, t[1] = Ft, t[2] = dt, t[3] = yt, t[4] = _, t[5] = G, t[6] = f, t[7] = zt, t[8] = nt, t[9] = Xt, t[10] = Dt, t[11] = m, t[12] = d, t[13] = X, t[14] = Y, t[15] = I, t[16] = gt, t[17] = o, t[18] = R, t[19] = D, t[20] = j, t[21] = h, t[22] = r, t[23] = Tt, t[24] = rt, t[25] = H, t[26] = x, t[27] = u, t[28] = mt, t[29] = Bt, t[30] = s, t[31] = xt, t[32] = C, t[33] = ut, t[34] = $, t[35] = S, t[36] = B, t[37] = J, t[38] = Yt, t[39] = w, t[40] = bt, t[41] = F, t[42] = ct, t[43] = tt, t[44] = q, t[45] = K, t[46] = St, t[47] = T, t[48] = jt, t[49] = A, t[50] = it, t[51] = W, t[52] = et, t[53] = M, t[54] = n, t[55] = y, t[56] = g) : g = t[56], g;
|
|
2166
2141
|
}
|
|
2167
|
-
function
|
|
2142
|
+
function Ea(e) {
|
|
2168
2143
|
const t = xe.c(58), {
|
|
2169
2144
|
data: m,
|
|
2170
2145
|
graphTitle: D,
|
|
2171
2146
|
colors: Xt,
|
|
2172
2147
|
sources: St,
|
|
2173
2148
|
graphDescription: gt,
|
|
2174
|
-
barPadding:
|
|
2175
|
-
showTicks:
|
|
2176
|
-
leftMargin:
|
|
2177
|
-
rightMargin:
|
|
2149
|
+
barPadding: _,
|
|
2150
|
+
showTicks: ct,
|
|
2151
|
+
leftMargin: M,
|
|
2152
|
+
rightMargin: j,
|
|
2178
2153
|
topMargin: y,
|
|
2179
|
-
bottomMargin:
|
|
2180
|
-
truncateBy:
|
|
2181
|
-
showLabels:
|
|
2182
|
-
showValues:
|
|
2183
|
-
backgroundColor:
|
|
2184
|
-
suffix:
|
|
2185
|
-
prefix:
|
|
2186
|
-
height:
|
|
2154
|
+
bottomMargin: I,
|
|
2155
|
+
truncateBy: zt,
|
|
2156
|
+
showLabels: nt,
|
|
2157
|
+
showValues: jt,
|
|
2158
|
+
backgroundColor: S,
|
|
2159
|
+
suffix: tt,
|
|
2160
|
+
prefix: ut,
|
|
2161
|
+
height: dt,
|
|
2187
2162
|
width: Tt,
|
|
2188
2163
|
footNote: w,
|
|
2189
|
-
colorDomain:
|
|
2190
|
-
colorLegendTitle:
|
|
2191
|
-
padding:
|
|
2192
|
-
tooltip:
|
|
2193
|
-
onSeriesMouseOver:
|
|
2194
|
-
relativeHeight:
|
|
2195
|
-
refValues:
|
|
2196
|
-
graphID:
|
|
2197
|
-
maxValue:
|
|
2198
|
-
onSeriesMouseClick:
|
|
2164
|
+
colorDomain: et,
|
|
2165
|
+
colorLegendTitle: G,
|
|
2166
|
+
padding: F,
|
|
2167
|
+
tooltip: J,
|
|
2168
|
+
onSeriesMouseOver: W,
|
|
2169
|
+
relativeHeight: xt,
|
|
2170
|
+
refValues: B,
|
|
2171
|
+
graphID: R,
|
|
2172
|
+
maxValue: H,
|
|
2173
|
+
onSeriesMouseClick: u,
|
|
2199
2174
|
graphDownload: s,
|
|
2200
|
-
dataDownload:
|
|
2201
|
-
language:
|
|
2202
|
-
theme:
|
|
2203
|
-
labelOrder:
|
|
2175
|
+
dataDownload: o,
|
|
2176
|
+
language: d,
|
|
2177
|
+
theme: r,
|
|
2178
|
+
labelOrder: h,
|
|
2204
2179
|
minHeight: x,
|
|
2205
|
-
maxBarThickness:
|
|
2206
|
-
sortParameter:
|
|
2207
|
-
sortData:
|
|
2208
|
-
maxNumberOfBars:
|
|
2180
|
+
maxBarThickness: A,
|
|
2181
|
+
sortParameter: K,
|
|
2182
|
+
sortData: q,
|
|
2183
|
+
maxNumberOfBars: rt,
|
|
2209
2184
|
minBarThickness: Ft,
|
|
2210
2185
|
ariaLabel: Yt,
|
|
2211
|
-
resetSelectionOnDoubleClick:
|
|
2186
|
+
resetSelectionOnDoubleClick: X,
|
|
2212
2187
|
detailsOnClick: yt,
|
|
2213
2188
|
barAxisTitle: Bt,
|
|
2214
|
-
noOfTicks:
|
|
2189
|
+
noOfTicks: n,
|
|
2215
2190
|
valueColor: c,
|
|
2216
|
-
orientation:
|
|
2217
|
-
styles:
|
|
2218
|
-
classNames:
|
|
2219
|
-
filterNA:
|
|
2220
|
-
animate:
|
|
2221
|
-
precision:
|
|
2191
|
+
orientation: T,
|
|
2192
|
+
styles: f,
|
|
2193
|
+
classNames: Y,
|
|
2194
|
+
filterNA: N,
|
|
2195
|
+
animate: $,
|
|
2196
|
+
precision: Dt,
|
|
2222
2197
|
customLayers: bt,
|
|
2223
|
-
showColorScale:
|
|
2198
|
+
showColorScale: it,
|
|
2224
2199
|
timeline: mt,
|
|
2225
|
-
naLabel:
|
|
2226
|
-
} = e, g =
|
|
2227
|
-
let
|
|
2228
|
-
return t[0] !==
|
|
2200
|
+
naLabel: C
|
|
2201
|
+
} = e, g = T === void 0 ? "vertical" : T;
|
|
2202
|
+
let Q;
|
|
2203
|
+
return t[0] !== $ || t[1] !== Yt || t[2] !== S || t[3] !== Bt || t[4] !== _ || t[5] !== I || t[6] !== Y || t[7] !== et || t[8] !== G || t[9] !== Xt || t[10] !== bt || t[11] !== m || t[12] !== o || t[13] !== yt || t[14] !== N || t[15] !== w || t[16] !== gt || t[17] !== s || t[18] !== R || t[19] !== D || t[20] !== dt || t[21] !== h || t[22] !== d || t[23] !== M || t[24] !== A || t[25] !== rt || t[26] !== H || t[27] !== Ft || t[28] !== x || t[29] !== C || t[30] !== n || t[31] !== u || t[32] !== W || t[33] !== g || t[34] !== F || t[35] !== Dt || t[36] !== ut || t[37] !== B || t[38] !== xt || t[39] !== X || t[40] !== j || t[41] !== it || t[42] !== nt || t[43] !== ct || t[44] !== jt || t[45] !== q || t[46] !== K || t[47] !== St || t[48] !== f || t[49] !== tt || t[50] !== r || t[51] !== mt || t[52] !== J || t[53] !== y || t[54] !== zt || t[55] !== c || t[56] !== Tt ? (Q = /* @__PURE__ */ i.jsx(Rs, { data: m, graphTitle: D, colors: Xt, sources: St, graphDescription: gt, barPadding: _, showTicks: ct, leftMargin: M, rightMargin: j, topMargin: y, bottomMargin: I, truncateBy: zt, showLabels: nt, showValues: jt, backgroundColor: S, suffix: tt, prefix: ut, height: dt, width: Tt, footNote: w, colorDomain: et, colorLegendTitle: G, padding: F, tooltip: J, onSeriesMouseOver: W, relativeHeight: xt, refValues: B, graphID: R, maxValue: H, onSeriesMouseClick: u, graphDownload: s, dataDownload: o, language: d, theme: r, labelOrder: h, minHeight: x, maxBarThickness: A, sortParameter: K, sortData: q, maxNumberOfBars: rt, minBarThickness: Ft, ariaLabel: Yt, resetSelectionOnDoubleClick: X, styles: f, detailsOnClick: yt, barAxisTitle: Bt, noOfTicks: n, valueColor: c, classNames: Y, filterNA: N, animate: $, precision: Dt, customLayers: bt, showColorScale: it, timeline: mt, naLabel: C, orientation: g }), t[0] = $, t[1] = Yt, t[2] = S, t[3] = Bt, t[4] = _, t[5] = I, t[6] = Y, t[7] = et, t[8] = G, t[9] = Xt, t[10] = bt, t[11] = m, t[12] = o, t[13] = yt, t[14] = N, t[15] = w, t[16] = gt, t[17] = s, t[18] = R, t[19] = D, t[20] = dt, t[21] = h, t[22] = d, t[23] = M, t[24] = A, t[25] = rt, t[26] = H, t[27] = Ft, t[28] = x, t[29] = C, t[30] = n, t[31] = u, t[32] = W, t[33] = g, t[34] = F, t[35] = Dt, t[36] = ut, t[37] = B, t[38] = xt, t[39] = X, t[40] = j, t[41] = it, t[42] = nt, t[43] = ct, t[44] = jt, t[45] = q, t[46] = K, t[47] = St, t[48] = f, t[49] = tt, t[50] = r, t[51] = mt, t[52] = J, t[53] = y, t[54] = zt, t[55] = c, t[56] = Tt, t[57] = Q) : Q = t[57], Q;
|
|
2229
2204
|
}
|
|
2230
2205
|
export {
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2206
|
+
Ya as GroupedBarGraph,
|
|
2207
|
+
Xa as SimpleBarGraph,
|
|
2208
|
+
Ea as StackedBarGraph
|
|
2234
2209
|
};
|
|
2235
2210
|
//# sourceMappingURL=BarGraph.js.map
|