@undp/data-viz 2.4.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.d.ts +11 -9
- package/dist/AreaChart.js +320 -322
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +15 -25
- package/dist/BarGraph.js +1694 -1694
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.d.ts +13 -9
- package/dist/BasicStatCard.js +79 -81
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +11 -9
- package/dist/BeeSwarmChart.js +335 -336
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +13 -3
- package/dist/BiVariateChoroplethMap.js +247 -245
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +11 -5
- package/dist/BulletChart.js +560 -559
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +11 -9
- package/dist/ButterflyChart.js +348 -350
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +11 -3
- package/dist/ChoroplethMap.js +213 -213
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +11 -9
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.d.ts +1 -1
- package/dist/DataCards.js +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.d.ts +4 -5
- package/dist/DataTable.js +114 -116
- package/dist/DataTable.js.map +1 -1
- package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
- package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
- package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
- package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.d.ts +11 -9
- package/dist/DifferenceLineChart.js +502 -504
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +14 -9
- package/dist/DonutChart.js +174 -179
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.d.ts +1 -1
- package/dist/DotDensityMap.js +2 -2
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.d.ts +13 -9
- package/dist/DualAxisLineChart.js +341 -351
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +11 -9
- package/dist/DumbbellChart.js +592 -593
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.d.ts +1 -1
- package/dist/GeoHubCompareMaps.js +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.d.ts +1 -1
- package/dist/GeoHubMap.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/GraphEl-B7x5ku_y.cjs +2 -0
- package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
- package/dist/GraphEl-B8tGXqWk.js +1829 -0
- package/dist/GraphEl-B8tGXqWk.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +28 -16
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +28 -16
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +11 -9
- package/dist/HeatMap.js +203 -205
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.cjs.map +1 -1
- package/dist/Histogram.d.ts +11 -5
- package/dist/Histogram.js +88 -89
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +11 -3
- package/dist/HybridMap.js +279 -279
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
- package/dist/LineChartWithConfidenceInterval.js +393 -395
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +28 -16
- package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +11 -9
- package/dist/MultiLineAltChart.js +411 -413
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.d.ts +11 -9
- package/dist/MultiLineChart.js +438 -440
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +13 -13
- package/dist/ParetoChart.js +347 -355
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
- package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +11 -5
- package/dist/RadarChart.js +213 -213
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +11 -9
- package/dist/SankeyChart.js +448 -450
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +13 -13
- package/dist/ScatterPlot.js +490 -498
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +28 -16
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.d.ts +11 -9
- package/dist/SimpleLineChart.js +362 -364
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +28 -16
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
- package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.d.ts +1 -1
- package/dist/SlopeChart.js +2 -2
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +1 -1
- package/dist/SparkLine.js +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.d.ts +11 -9
- package/dist/StatCardFromData.js +113 -116
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +11 -9
- package/dist/StripChart.js +434 -435
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +11 -3
- package/dist/ThreeDGlobe.js +143 -143
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
- package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
- package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
- package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
- package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +11 -9
- package/dist/TreeMapGraph.js +369 -371
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +28 -16
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.d.ts +11 -5
- package/dist/UnitChart.js +118 -119
- package/dist/UnitChart.js.map +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +11 -9
- package/dist/WaterfallChart.js +306 -308
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
- package/dist/index-BPyj_6hG.js +375 -0
- package/dist/index-BPyj_6hG.js.map +1 -0
- package/dist/index-DuLvdHo2.cjs +2 -0
- package/dist/index-DuLvdHo2.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +105 -245
- package/dist/index.js +2 -2
- package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
- package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
- package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
- package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
- package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
- package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/GraphEl-B73N4RIA.js +0 -1906
- package/dist/GraphEl-B73N4RIA.js.map +0 -1
- package/dist/GraphEl-Lt1og0C-.cjs +0 -2
- package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
- package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
- package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
- package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
- package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
- package/dist/index-B0Awa_de.js +0 -377
- package/dist/index-B0Awa_de.js.map +0 -1
- package/dist/index-CP8cmNzt.cjs +0 -2
- package/dist/index-CP8cmNzt.cjs.map +0 -1
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
- package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
- package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
package/dist/AreaChart.js
CHANGED
|
@@ -1,442 +1,440 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { p as $, f as
|
|
4
|
-
import { s as
|
|
5
|
-
import { o as
|
|
6
|
-
import { n as Se } from "./numberFormattingFunction-
|
|
7
|
-
import { T as
|
|
8
|
-
import { c as
|
|
9
|
-
import { C as
|
|
10
|
-
import { A as
|
|
11
|
-
import { A as
|
|
12
|
-
import { X as
|
|
13
|
-
import { a as
|
|
14
|
-
import { Y as
|
|
15
|
-
import { H as
|
|
16
|
-
import { t as
|
|
17
|
-
import { a as
|
|
18
|
-
import { a as
|
|
19
|
-
import { c as
|
|
20
|
-
import { c as
|
|
1
|
+
import { c as Ce, m as ve, j as n } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { useRef as ce, useState as Ut, useEffect as we } from "react";
|
|
3
|
+
import { p as $, f as je } from "./parse-Dv4of-PN.js";
|
|
4
|
+
import { s as Ae } from "./index-CeVNqhMO.js";
|
|
5
|
+
import { o as De } from "./index-BZQYSqar.js";
|
|
6
|
+
import { n as Se } from "./numberFormattingFunction-BUUV_luR.js";
|
|
7
|
+
import { T as $e } from "./Tooltip-3EYDVa3w.js";
|
|
8
|
+
import { c as ae } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
9
|
+
import { C as ke, g as Te, A as Ne } from "./customArea-D89lETG0.js";
|
|
10
|
+
import { A as Me } from "./AxisTitle-CyLCqpW6.js";
|
|
11
|
+
import { A as He } from "./Axis-CNZYWzH0.js";
|
|
12
|
+
import { X as Re } from "./XTicksAndGridLines-CkYwVshF.js";
|
|
13
|
+
import { a as Ye } from "./ReferenceLine-D41VuUhE.js";
|
|
14
|
+
import { Y as Fe } from "./YTicksAndGridLines-BbujwxOB.js";
|
|
15
|
+
import { H as Ve } from "./index-DHVGV8Df.js";
|
|
16
|
+
import { t as Ge } from "./time-vyz6Y89P.js";
|
|
17
|
+
import { a as Pe } from "./linear-DNXM5Pdl.js";
|
|
18
|
+
import { a as Xe } from "./area-B6r7cv2o.js";
|
|
19
|
+
import { c as Ee } from "./line-DFlZsxI1.js";
|
|
20
|
+
import { c as We, s as Ie, a as Ze, m as Be } from "./step-BrDul-H4.js";
|
|
21
21
|
import { s as ze } from "./select-DKy99ogv.js";
|
|
22
|
-
import { m as
|
|
22
|
+
import { m as le } from "./proxy-BsxtcZKa.js";
|
|
23
23
|
import { a as Ue } from "./init-BhZylTFx.js";
|
|
24
24
|
import { p as qe } from "./pointer-CWRWOsrb.js";
|
|
25
25
|
import { u as Je } from "./use-in-view-KOXq5Kmc.js";
|
|
26
26
|
import { A as Ke } from "./index-Cv_5q6Rb.js";
|
|
27
27
|
import { GraphFooter as Qe } from "./GraphFooter.js";
|
|
28
|
-
import { GraphHeader as
|
|
29
|
-
import { ColorLegend as
|
|
30
|
-
import { Colors as
|
|
31
|
-
import { E as
|
|
32
|
-
import { a as
|
|
33
|
-
function
|
|
34
|
-
const t =
|
|
35
|
-
data:
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
38
|
-
colors:
|
|
28
|
+
import { GraphHeader as _e } from "./GraphHeader.js";
|
|
29
|
+
import { ColorLegend as to } from "./ColorLegend.js";
|
|
30
|
+
import { Colors as eo } from "./Colors.js";
|
|
31
|
+
import { E as oo } from "./EmptyState-CaxXCkiN.js";
|
|
32
|
+
import { a as so, G as io } from "./GraphContainer-B8ZqOzKI.js";
|
|
33
|
+
function no(i) {
|
|
34
|
+
const t = Ce.c(135), {
|
|
35
|
+
data: p,
|
|
36
|
+
width: W,
|
|
37
|
+
height: Ot,
|
|
38
|
+
colors: Lt,
|
|
39
39
|
dateFormat: s,
|
|
40
|
-
noOfXTicks:
|
|
41
|
-
rightMargin:
|
|
42
|
-
leftMargin:
|
|
43
|
-
topMargin:
|
|
44
|
-
bottomMargin:
|
|
45
|
-
yAxisTitle:
|
|
46
|
-
tooltip:
|
|
47
|
-
onSeriesMouseOver:
|
|
48
|
-
highlightAreaSettings:
|
|
49
|
-
refValues:
|
|
50
|
-
minValue:
|
|
51
|
-
maxValue:
|
|
52
|
-
rtl:
|
|
53
|
-
annotations:
|
|
54
|
-
customHighlightAreaSettings:
|
|
55
|
-
noOfYTicks:
|
|
56
|
-
prefix:
|
|
40
|
+
noOfXTicks: Vt,
|
|
41
|
+
rightMargin: w,
|
|
42
|
+
leftMargin: A,
|
|
43
|
+
topMargin: jt,
|
|
44
|
+
bottomMargin: Dt,
|
|
45
|
+
yAxisTitle: I,
|
|
46
|
+
tooltip: Z,
|
|
47
|
+
onSeriesMouseOver: rt,
|
|
48
|
+
highlightAreaSettings: at,
|
|
49
|
+
refValues: lt,
|
|
50
|
+
minValue: Gt,
|
|
51
|
+
maxValue: ct,
|
|
52
|
+
rtl: Y,
|
|
53
|
+
annotations: B,
|
|
54
|
+
customHighlightAreaSettings: mt,
|
|
55
|
+
noOfYTicks: Pt,
|
|
56
|
+
prefix: F,
|
|
57
57
|
suffix: k,
|
|
58
|
-
curveType:
|
|
58
|
+
curveType: z,
|
|
59
59
|
styles: x,
|
|
60
60
|
classNames: d,
|
|
61
|
-
precision:
|
|
62
|
-
customLayers:
|
|
61
|
+
precision: U,
|
|
62
|
+
customLayers: V,
|
|
63
63
|
animate: c,
|
|
64
|
-
locale:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
locale: q,
|
|
65
|
+
padZeros: J
|
|
66
|
+
} = i, ft = ce(null);
|
|
67
|
+
let G;
|
|
68
|
+
t[0] !== c.amount || t[1] !== c.once ? (G = {
|
|
68
69
|
once: c.once,
|
|
69
70
|
amount: c.amount
|
|
70
|
-
}, t[0] = c.amount, t[1] = c.once, t[2] =
|
|
71
|
-
const
|
|
72
|
-
let
|
|
73
|
-
t[3] !==
|
|
74
|
-
top:
|
|
75
|
-
bottom:
|
|
76
|
-
left:
|
|
77
|
-
right:
|
|
78
|
-
}, t[3] =
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
t[8] !== s ? (
|
|
71
|
+
}, t[0] = c.amount, t[1] = c.once, t[2] = G) : G = t[2];
|
|
72
|
+
const y = Je(ft, G), Xt = z === "linear" ? Ee : z === "step" ? We : z === "stepAfter" ? Ie : z === "stepBefore" ? Ze : Be, [b, Et] = Ut(void 0), [pt, g] = Ut(void 0), [l, ut] = Ut(void 0), St = I ? A + 30 : A;
|
|
73
|
+
let u;
|
|
74
|
+
t[3] !== Dt || t[4] !== w || t[5] !== St || t[6] !== jt ? (u = {
|
|
75
|
+
top: jt,
|
|
76
|
+
bottom: Dt,
|
|
77
|
+
left: St,
|
|
78
|
+
right: w
|
|
79
|
+
}, t[3] = Dt, t[4] = w, t[5] = St, t[6] = jt, t[7] = u) : u = t[7];
|
|
80
|
+
const m = u, K = ce(null);
|
|
81
|
+
let Q;
|
|
82
|
+
t[8] !== s ? (Q = (o) => ({
|
|
82
83
|
...o,
|
|
83
84
|
date: $(`${o.date}`, s, /* @__PURE__ */ new Date())
|
|
84
|
-
}), t[8] = s, t[9] =
|
|
85
|
-
const
|
|
86
|
-
let
|
|
87
|
-
if (t[10] !== s || t[11] !==
|
|
85
|
+
}), t[8] = s, t[9] = Q) : Q = t[9];
|
|
86
|
+
const v = De(p.map(Q), ["date"], ["asc"]);
|
|
87
|
+
let _;
|
|
88
|
+
if (t[10] !== s || t[11] !== at) {
|
|
88
89
|
let o;
|
|
89
90
|
t[13] !== s ? (o = (e) => ({
|
|
90
91
|
...e,
|
|
91
92
|
coordinates: [e.coordinates[0] === null ? null : $(`${e.coordinates[0]}`, s, /* @__PURE__ */ new Date()), e.coordinates[1] === null ? null : $(`${e.coordinates[1]}`, s, /* @__PURE__ */ new Date())]
|
|
92
|
-
}), t[13] = s, t[14] = o) : o = t[14],
|
|
93
|
+
}), t[13] = s, t[14] = o) : o = t[14], _ = at.map(o), t[10] = s, t[11] = at, t[12] = _;
|
|
93
94
|
} else
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
let
|
|
97
|
-
if (t[15] !==
|
|
95
|
+
_ = t[12];
|
|
96
|
+
const gt = _;
|
|
97
|
+
let tt;
|
|
98
|
+
if (t[15] !== mt || t[16] !== s) {
|
|
98
99
|
let o;
|
|
99
100
|
t[18] !== s ? (o = (e) => ({
|
|
100
101
|
...e,
|
|
101
|
-
coordinates: e.coordinates.map((
|
|
102
|
-
}), t[18] = s, t[19] = o) : o = t[19],
|
|
102
|
+
coordinates: e.coordinates.map((j, E) => E % 2 === 0 ? $(`${j}`, s, /* @__PURE__ */ new Date()) : j)
|
|
103
|
+
}), t[18] = s, t[19] = o) : o = t[19], tt = mt.map(o), t[15] = mt, t[16] = s, t[17] = tt;
|
|
103
104
|
} else
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
date:
|
|
107
|
-
y0: e === 0 ? 0 :
|
|
108
|
-
y1:
|
|
109
|
-
}))),
|
|
110
|
-
let
|
|
111
|
-
t[20] !==
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
const o = (
|
|
115
|
-
const
|
|
116
|
-
|
|
105
|
+
tt = t[17];
|
|
106
|
+
const Wt = tt, $t = v[0].y.map((o, e) => v.map((j) => ({
|
|
107
|
+
date: j.date,
|
|
108
|
+
y0: e === 0 ? 0 : Ae(j.y.filter((E, zt) => zt < e)),
|
|
109
|
+
y1: Ae(j.y.filter((E, zt) => zt <= e))
|
|
110
|
+
}))), f = W - m.left - m.right, h = Ot - m.top - m.bottom, It = v[0].date, kt = v[v.length - 1].date, C = ae(Gt) ? 0 : Gt;
|
|
111
|
+
let et;
|
|
112
|
+
t[20] !== p || t[21] !== ct ? (et = ae(ct) ? Math.max(...p.map(go)) : ct, t[20] = p, t[21] = ct, t[22] = et) : et = t[22];
|
|
113
|
+
const T = et, r = Ge().domain([It, kt]).range([0, f]), a = Pe().domain([C, T]).range([h, 0]).nice(), xt = Xe().x((o) => r(o.date)).y0((o) => a(o.y0)).y1((o) => a(o.y1)).curve(Xt), dt = a.ticks(Pt), Tt = r.ticks(Vt);
|
|
114
|
+
we(() => {
|
|
115
|
+
const o = (j) => {
|
|
116
|
+
const E = v[Ue(v.map(uo), r.invert(qe(j)[0]), 0)];
|
|
117
|
+
Et(E || v[v.length - 1]), rt?.(E || v[v.length - 1]), ut(j.clientY), g(j.clientX);
|
|
117
118
|
}, e = () => {
|
|
118
|
-
|
|
119
|
+
Et(void 0), g(void 0), ut(void 0), rt?.(void 0);
|
|
119
120
|
};
|
|
120
|
-
ze(
|
|
121
|
-
}, [
|
|
122
|
-
let W;
|
|
123
|
-
t[23] !== c || t[24] !== h || t[25] !== m || t[26] !== dt || t[27] !== g || t[28] !== n ? (W = /* @__PURE__ */ r.jsx(Fe, { areaSettings: dt, width: m, height: h, scale: n, animate: c, isInView: g }), t[23] = c, t[24] = h, t[25] = m, t[26] = dt, t[27] = g, t[28] = n, t[29] = W) : W = t[29];
|
|
124
|
-
const yt = x?.yAxis?.gridLines, tt = x?.yAxis?.labels;
|
|
125
|
-
let et;
|
|
126
|
-
t[30] !== yt || t[31] !== tt ? (et = {
|
|
127
|
-
gridLines: yt,
|
|
128
|
-
labels: tt
|
|
129
|
-
}, t[30] = yt, t[31] = tt, t[32] = et) : et = t[32];
|
|
130
|
-
const vt = d?.yAxis?.gridLines, At = d?.yAxis?.labels;
|
|
121
|
+
ze(K.current).on("mousemove", o).on("mouseout", e), rt?.(void 0);
|
|
122
|
+
}, [r, v, rt]);
|
|
131
123
|
let ot;
|
|
132
|
-
t[
|
|
124
|
+
t[23] !== c || t[24] !== h || t[25] !== f || t[26] !== gt || t[27] !== y || t[28] !== r ? (ot = /* @__PURE__ */ n.jsx(Ve, { areaSettings: gt, width: f, height: h, scale: r, animate: c, isInView: y }), t[23] = c, t[24] = h, t[25] = f, t[26] = gt, t[27] = y, t[28] = r, t[29] = ot) : ot = t[29];
|
|
125
|
+
const ht = x?.yAxis?.gridLines, yt = x?.yAxis?.labels;
|
|
126
|
+
let P;
|
|
127
|
+
t[30] !== ht || t[31] !== yt ? (P = {
|
|
128
|
+
gridLines: ht,
|
|
129
|
+
labels: yt
|
|
130
|
+
}, t[30] = ht, t[31] = yt, t[32] = P) : P = t[32];
|
|
131
|
+
const vt = d?.yAxis?.gridLines, st = d?.yAxis?.labels;
|
|
132
|
+
let X;
|
|
133
|
+
t[33] !== vt || t[34] !== st ? (X = {
|
|
133
134
|
gridLines: vt,
|
|
134
|
-
labels:
|
|
135
|
-
}, t[33] = vt, t[34] =
|
|
136
|
-
const
|
|
137
|
-
let
|
|
138
|
-
t[36] !==
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
t[
|
|
142
|
-
x:
|
|
135
|
+
labels: st
|
|
136
|
+
}, t[33] = vt, t[34] = st, t[35] = X) : X = t[35];
|
|
137
|
+
const Zt = a(C < 0 ? 0 : C), it = a(C < 0 ? 0 : C), Bt = 0 - A, At = f + m.right, Nt = C < 0 ? 0 : C;
|
|
138
|
+
let D;
|
|
139
|
+
t[36] !== q || t[37] !== J || t[38] !== U || t[39] !== F || t[40] !== k || t[41] !== Nt ? (D = Se(Nt, void 0, U, F, k, q, J), t[36] = q, t[37] = J, t[38] = U, t[39] = F, t[40] = k, t[41] = Nt, t[42] = D) : D = t[42];
|
|
140
|
+
const nt = 0 - A, Ct = T < 0 ? "1em" : -5, wt = a(C < 0 ? 0 : C);
|
|
141
|
+
let O;
|
|
142
|
+
t[43] !== nt || t[44] !== Ct || t[45] !== wt ? (O = {
|
|
143
|
+
x: nt,
|
|
143
144
|
dx: 0,
|
|
144
|
-
dy:
|
|
145
|
-
y:
|
|
146
|
-
}, t[
|
|
147
|
-
const
|
|
148
|
-
let
|
|
149
|
-
t[
|
|
150
|
-
axis:
|
|
151
|
-
label:
|
|
152
|
-
}, t[
|
|
153
|
-
const
|
|
154
|
-
let N;
|
|
155
|
-
t[49] !== nt || t[50] !== rt ? (N = {
|
|
156
|
-
axis: nt,
|
|
157
|
-
label: rt
|
|
158
|
-
}, t[49] = nt, t[50] = rt, t[51] = N) : N = t[51];
|
|
159
|
-
let at;
|
|
160
|
-
t[52] !== Ct || t[53] !== wt || t[54] !== bt || t[55] !== st || t[56] !== L || t[57] !== j || t[58] !== I || t[59] !== N ? (at = /* @__PURE__ */ r.jsx(Me, { y1: Ct, y2: wt, x1: bt, x2: st, label: L, labelPos: j, classNames: I, styles: N }), t[52] = Ct, t[53] = wt, t[54] = bt, t[55] = st, t[56] = L, t[57] = j, t[58] = I, t[59] = N, t[60] = at) : at = t[60];
|
|
161
|
-
const M = 0 - v - 15, H = h / 2, R = x?.yAxis?.title, Y = d?.yAxis?.title;
|
|
145
|
+
dy: Ct,
|
|
146
|
+
y: wt
|
|
147
|
+
}, t[43] = nt, t[44] = Ct, t[45] = wt, t[46] = O) : O = t[46];
|
|
148
|
+
const N = d?.xAxis?.axis, M = d?.yAxis?.labels;
|
|
149
|
+
let L;
|
|
150
|
+
t[47] !== N || t[48] !== M ? (L = {
|
|
151
|
+
axis: N,
|
|
152
|
+
label: M
|
|
153
|
+
}, t[47] = N, t[48] = M, t[49] = L) : L = t[49];
|
|
154
|
+
const H = x?.xAxis?.axis, R = x?.yAxis?.labels;
|
|
162
155
|
let S;
|
|
163
|
-
t[
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
let
|
|
168
|
-
t[
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}, t[
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
t[
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
156
|
+
t[50] !== H || t[51] !== R ? (S = {
|
|
157
|
+
axis: H,
|
|
158
|
+
label: R
|
|
159
|
+
}, t[50] = H, t[51] = R, t[52] = S) : S = t[52];
|
|
160
|
+
let bt;
|
|
161
|
+
t[53] !== Zt || t[54] !== it || t[55] !== Bt || t[56] !== At || t[57] !== D || t[58] !== O || t[59] !== L || t[60] !== S ? (bt = /* @__PURE__ */ n.jsx(He, { y1: Zt, y2: it, x1: Bt, x2: At, label: D, labelPos: O, classNames: L, styles: S }), t[53] = Zt, t[54] = it, t[55] = Bt, t[56] = At, t[57] = D, t[58] = O, t[59] = L, t[60] = S, t[61] = bt) : bt = t[61];
|
|
162
|
+
const Mt = 0 - A - 15, me = h / 2, fe = x?.yAxis?.title, pe = d?.yAxis?.title;
|
|
163
|
+
let qt;
|
|
164
|
+
t[62] !== Mt || t[63] !== me || t[64] !== fe || t[65] !== pe || t[66] !== I ? (qt = /* @__PURE__ */ n.jsx(Me, { x: Mt, y: me, style: fe, className: pe, text: I, rotate90: !0 }), t[62] = Mt, t[63] = me, t[64] = fe, t[65] = pe, t[66] = I, t[67] = qt) : qt = t[67];
|
|
165
|
+
let Jt;
|
|
166
|
+
t[68] !== s ? (Jt = (o) => je(o, s), t[68] = s, t[69] = Jt) : Jt = t[69];
|
|
167
|
+
const be = Tt.map(Jt), Oe = Tt.map((o) => r(o)), ue = x?.xAxis?.gridLines, ge = x?.xAxis?.labels;
|
|
168
|
+
let Kt;
|
|
169
|
+
t[70] !== ue || t[71] !== ge ? (Kt = {
|
|
170
|
+
gridLines: ue,
|
|
171
|
+
labels: ge
|
|
172
|
+
}, t[70] = ue, t[71] = ge, t[72] = Kt) : Kt = t[72];
|
|
173
|
+
const xe = d?.xAxis?.gridLines;
|
|
174
|
+
let Ht;
|
|
175
|
+
t[73] !== xe ? (Ht = ve("opacity-0", xe), t[73] = xe, t[74] = Ht) : Ht = t[74];
|
|
176
|
+
const de = d?.xAxis?.labels;
|
|
177
|
+
let Rt;
|
|
178
|
+
t[75] !== de ? (Rt = ve("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[8px] sm:text-[9px] md:text-[10px] lg:text-xs", de), t[75] = de, t[76] = Rt) : Rt = t[76];
|
|
179
|
+
let Qt;
|
|
180
|
+
t[77] !== Ht || t[78] !== Rt ? (Qt = {
|
|
181
|
+
gridLines: Ht,
|
|
182
|
+
labels: Rt
|
|
183
|
+
}, t[77] = Ht, t[78] = Rt, t[79] = Qt) : Qt = t[79];
|
|
184
|
+
let _t;
|
|
185
|
+
t[80] !== V ? (_t = V.filter(mo).map(co), t[80] = V, t[81] = _t) : _t = t[81];
|
|
186
|
+
const he = le, ye = $t.map((o, e) => /* @__PURE__ */ n.jsx(le.path, { d: xt(o), exit: {
|
|
186
187
|
opacity: 0,
|
|
187
188
|
transition: {
|
|
188
189
|
duration: c.duration
|
|
189
190
|
}
|
|
190
191
|
}, variants: {
|
|
191
192
|
initial: {
|
|
192
|
-
d:
|
|
193
|
+
d: xt(o.map(lo)),
|
|
193
194
|
opacity: 0
|
|
194
195
|
},
|
|
195
196
|
whileInView: {
|
|
196
|
-
d:
|
|
197
|
+
d: xt(o),
|
|
197
198
|
opacity: 1,
|
|
198
199
|
transition: {
|
|
199
200
|
duration: c.duration
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
|
-
}, initial: "initial", animate:
|
|
203
|
-
fill:
|
|
203
|
+
}, initial: "initial", animate: y ? "whileInView" : "initial", style: {
|
|
204
|
+
fill: Lt[e],
|
|
204
205
|
opacity: 0.8
|
|
205
206
|
} }, e));
|
|
206
|
-
let
|
|
207
|
-
t[
|
|
208
|
-
let
|
|
209
|
-
t[
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
] }), t[
|
|
213
|
-
let
|
|
214
|
-
t[
|
|
215
|
-
let
|
|
216
|
-
if (t[
|
|
207
|
+
let Yt;
|
|
208
|
+
t[82] !== d?.mouseOverLine || t[83] !== h || t[84] !== b || t[85] !== x?.mouseOverLine || t[86] !== r ? (Yt = b ? /* @__PURE__ */ n.jsx("line", { y1: 0, y2: h, x1: r(b.date), x2: r(b.date), className: ve("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", d?.mouseOverLine), style: x?.mouseOverLine }) : null, t[82] = d?.mouseOverLine, t[83] = h, t[84] = b, t[85] = x?.mouseOverLine, t[86] = r, t[87] = Yt) : Yt = t[87];
|
|
209
|
+
let te;
|
|
210
|
+
t[88] !== he.g || t[89] !== ye || t[90] !== Yt ? (te = /* @__PURE__ */ n.jsxs(he.g, { children: [
|
|
211
|
+
ye,
|
|
212
|
+
Yt
|
|
213
|
+
] }), t[88] = he.g, t[89] = ye, t[90] = Yt, t[91] = te) : te = t[91];
|
|
214
|
+
let ee;
|
|
215
|
+
t[92] !== c || t[93] !== f || t[94] !== y || t[95] !== A || t[96] !== m.right || t[97] !== lt || t[98] !== a ? (ee = lt ? /* @__PURE__ */ n.jsx(n.Fragment, { children: lt.map((o, e) => /* @__PURE__ */ n.jsx(Ye, { text: o.text, color: o.color, y: a(o.value), x1: 0 - A, x2: f + m.right, classNames: o.classNames, styles: o.styles, animate: c, isInView: y }, e)) }) : null, t[92] = c, t[93] = f, t[94] = y, t[95] = A, t[96] = m.right, t[97] = lt, t[98] = a, t[99] = ee) : ee = t[99];
|
|
216
|
+
let Ft;
|
|
217
|
+
if (t[100] !== c || t[101] !== B || t[102] !== s || t[103] !== f || t[104] !== y || t[105] !== m.right || t[106] !== Y || t[107] !== r || t[108] !== a) {
|
|
217
218
|
let o;
|
|
218
|
-
t[
|
|
219
|
-
const
|
|
220
|
-
x: e.xCoordinate ?
|
|
219
|
+
t[110] !== c || t[111] !== s || t[112] !== f || t[113] !== y || t[114] !== m.right || t[115] !== Y || t[116] !== r || t[117] !== a ? (o = (e, j) => {
|
|
220
|
+
const E = Te({
|
|
221
|
+
x: e.xCoordinate ? r($(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
221
222
|
y: e.yCoordinate ? a(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
|
|
222
223
|
}, {
|
|
223
|
-
x: e.xCoordinate ?
|
|
224
|
+
x: e.xCoordinate ? r($(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) : 0,
|
|
224
225
|
y: e.yCoordinate ? a(e.yCoordinate) : 0
|
|
225
|
-
},
|
|
226
|
-
y1:
|
|
227
|
-
x1:
|
|
226
|
+
}, ae(e.connectorRadius) ? 3.5 : e.connectorRadius), zt = e.showConnector ? {
|
|
227
|
+
y1: E.y,
|
|
228
|
+
x1: E.x,
|
|
228
229
|
y2: e.yCoordinate ? a(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
|
|
229
|
-
x2: e.xCoordinate ?
|
|
230
|
-
cx: e.xCoordinate ?
|
|
230
|
+
x2: e.xCoordinate ? r($(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
231
|
+
cx: e.xCoordinate ? r($(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) : 0,
|
|
231
232
|
cy: e.yCoordinate ? a(e.yCoordinate) : 0,
|
|
232
|
-
circleRadius:
|
|
233
|
+
circleRadius: ae(e.connectorRadius) ? 3.5 : e.connectorRadius,
|
|
233
234
|
strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
|
|
234
|
-
} : void 0,
|
|
235
|
+
} : void 0, Le = {
|
|
235
236
|
y: e.yCoordinate ? a(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
|
|
236
|
-
x:
|
|
237
|
-
width:
|
|
237
|
+
x: Y ? 0 : e.xCoordinate ? r($(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
238
|
+
width: Y ? e.xCoordinate ? r($(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : f + m.right - (e.xCoordinate ? r($(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
|
|
238
239
|
maxWidth: e.maxWidth,
|
|
239
240
|
fontWeight: e.fontWeight,
|
|
240
241
|
align: e.align
|
|
241
242
|
};
|
|
242
|
-
return /* @__PURE__ */
|
|
243
|
-
}, t[
|
|
243
|
+
return /* @__PURE__ */ n.jsx(Ne, { color: e.color, connectorsSettings: zt, labelSettings: Le, text: e.text, classNames: e.classNames, styles: e.styles, animate: c, isInView: y }, j);
|
|
244
|
+
}, t[110] = c, t[111] = s, t[112] = f, t[113] = y, t[114] = m.right, t[115] = Y, t[116] = r, t[117] = a, t[118] = o) : o = t[118], Ft = B.map(o), t[100] = c, t[101] = B, t[102] = s, t[103] = f, t[104] = y, t[105] = m.right, t[106] = Y, t[107] = r, t[108] = a, t[109] = Ft;
|
|
244
245
|
} else
|
|
245
|
-
|
|
246
|
-
let
|
|
247
|
-
t[
|
|
248
|
-
let
|
|
249
|
-
t[
|
|
250
|
-
let
|
|
251
|
-
t[
|
|
246
|
+
Ft = t[109];
|
|
247
|
+
let oe;
|
|
248
|
+
t[119] !== Ft ? (oe = /* @__PURE__ */ n.jsx("g", { children: Ft }), t[119] = Ft, t[120] = oe) : oe = t[120];
|
|
249
|
+
let se;
|
|
250
|
+
t[121] !== V ? (se = V.filter(ao).map(ro), t[121] = V, t[122] = se) : se = t[122];
|
|
251
|
+
let ie;
|
|
252
|
+
t[123] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = {
|
|
252
253
|
fill: "none",
|
|
253
254
|
pointerEvents: "all"
|
|
254
|
-
}, t[
|
|
255
|
-
let
|
|
256
|
-
t[
|
|
257
|
-
let
|
|
258
|
-
return t[
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
|
|
265
|
-
|
|
255
|
+
}, t[123] = ie) : ie = t[123];
|
|
256
|
+
let ne;
|
|
257
|
+
t[124] !== K || t[125] !== h || t[126] !== f ? (ne = /* @__PURE__ */ n.jsx("rect", { ref: K, style: ie, width: f, height: h }), t[124] = K, t[125] = h, t[126] = f, t[127] = ne) : ne = t[127];
|
|
258
|
+
let re;
|
|
259
|
+
return t[128] !== d?.tooltip || t[129] !== pt || t[130] !== l || t[131] !== b || t[132] !== x?.tooltip || t[133] !== Z ? (re = b && Z && pt && l ? /* @__PURE__ */ n.jsx($e, { data: b, body: Z, xPos: pt, yPos: l, backgroundStyle: x?.tooltip, className: d?.tooltip }) : null, t[128] = d?.tooltip, t[129] = pt, t[130] = l, t[131] = b, t[132] = x?.tooltip, t[133] = Z, t[134] = re) : re = t[134], /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
260
|
+
/* @__PURE__ */ n.jsx(le.svg, { width: `${W}px`, height: `${Ot}px`, viewBox: `0 0 ${W} ${Ot}`, direction: "ltr", ref: ft, children: /* @__PURE__ */ n.jsx(Ke, { children: /* @__PURE__ */ n.jsxs(le.g, { transform: `translate(${m.left},${m.top})`, children: [
|
|
261
|
+
ot,
|
|
262
|
+
/* @__PURE__ */ n.jsx(ke, { animate: c, areaSettings: Wt, scaleX: r, scaleY: a, isInView: y }),
|
|
263
|
+
/* @__PURE__ */ n.jsxs("g", { children: [
|
|
264
|
+
/* @__PURE__ */ n.jsx(Fe, { values: dt.filter(po), y: dt.filter(fo).map((o) => a(o)), x1: 0 - A, x2: f + m.right, styles: P, classNames: X, suffix: k, prefix: F, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: U, locale: q, padZeros: J }),
|
|
265
|
+
bt,
|
|
266
|
+
qt
|
|
266
267
|
] }),
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
268
|
+
/* @__PURE__ */ n.jsx(Re, { values: be, x: Oe, y1: 0, y2: h, styles: Kt, classNames: Qt, suffix: k, prefix: F, labelType: "primary", showGridLines: !0, precision: U, locale: q, padZeros: J }),
|
|
269
|
+
_t,
|
|
270
|
+
te,
|
|
271
|
+
ee,
|
|
272
|
+
oe,
|
|
273
|
+
se,
|
|
274
|
+
ne
|
|
274
275
|
] }) }) }),
|
|
275
|
-
|
|
276
|
+
re
|
|
276
277
|
] });
|
|
277
278
|
}
|
|
278
|
-
function
|
|
279
|
+
function ro(i) {
|
|
279
280
|
return i.layer;
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
+
function ao(i) {
|
|
282
283
|
return i.position === "after";
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function lo(i) {
|
|
285
286
|
return {
|
|
286
287
|
...i,
|
|
287
288
|
y0: 0,
|
|
288
289
|
y1: 0
|
|
289
290
|
};
|
|
290
291
|
}
|
|
291
|
-
function lo(i) {
|
|
292
|
-
return i.layer;
|
|
293
|
-
}
|
|
294
292
|
function co(i) {
|
|
295
|
-
return i.
|
|
293
|
+
return i.layer;
|
|
296
294
|
}
|
|
297
295
|
function mo(i) {
|
|
298
|
-
return i
|
|
296
|
+
return i.position === "before";
|
|
299
297
|
}
|
|
300
298
|
function fo(i) {
|
|
301
299
|
return i !== 0;
|
|
302
300
|
}
|
|
303
301
|
function po(i) {
|
|
304
|
-
return i
|
|
302
|
+
return i !== 0;
|
|
305
303
|
}
|
|
306
304
|
function uo(i) {
|
|
307
|
-
return
|
|
305
|
+
return i.date;
|
|
306
|
+
}
|
|
307
|
+
function go(i) {
|
|
308
|
+
return Ae(i.y) || 0;
|
|
308
309
|
}
|
|
309
|
-
function
|
|
310
|
-
const t =
|
|
311
|
-
data:
|
|
312
|
-
graphTitle:
|
|
313
|
-
colors:
|
|
314
|
-
sources:
|
|
310
|
+
function _o(i) {
|
|
311
|
+
const t = Ce.c(92), {
|
|
312
|
+
data: p,
|
|
313
|
+
graphTitle: W,
|
|
314
|
+
colors: Ot,
|
|
315
|
+
sources: Lt,
|
|
315
316
|
graphDescription: s,
|
|
316
|
-
height:
|
|
317
|
-
width:
|
|
318
|
-
footNote:
|
|
319
|
-
noOfXTicks:
|
|
320
|
-
dateFormat:
|
|
321
|
-
colorDomain:
|
|
322
|
-
padding:
|
|
323
|
-
backgroundColor:
|
|
324
|
-
colorLegendTitle:
|
|
325
|
-
leftMargin:
|
|
326
|
-
rightMargin:
|
|
327
|
-
topMargin:
|
|
328
|
-
bottomMargin:
|
|
329
|
-
highlightAreaSettings:
|
|
330
|
-
tooltip:
|
|
331
|
-
relativeHeight:
|
|
332
|
-
onSeriesMouseOver:
|
|
317
|
+
height: Vt,
|
|
318
|
+
width: w,
|
|
319
|
+
footNote: A,
|
|
320
|
+
noOfXTicks: jt,
|
|
321
|
+
dateFormat: Dt,
|
|
322
|
+
colorDomain: I,
|
|
323
|
+
padding: Z,
|
|
324
|
+
backgroundColor: rt,
|
|
325
|
+
colorLegendTitle: at,
|
|
326
|
+
leftMargin: lt,
|
|
327
|
+
rightMargin: Gt,
|
|
328
|
+
topMargin: ct,
|
|
329
|
+
bottomMargin: Y,
|
|
330
|
+
highlightAreaSettings: B,
|
|
331
|
+
tooltip: mt,
|
|
332
|
+
relativeHeight: Pt,
|
|
333
|
+
onSeriesMouseOver: F,
|
|
333
334
|
refValues: k,
|
|
334
|
-
graphID:
|
|
335
|
+
graphID: z,
|
|
335
336
|
minValue: x,
|
|
336
337
|
maxValue: d,
|
|
337
|
-
graphDownload:
|
|
338
|
-
dataDownload:
|
|
338
|
+
graphDownload: U,
|
|
339
|
+
dataDownload: V,
|
|
339
340
|
showColorScale: c,
|
|
340
|
-
language:
|
|
341
|
-
minHeight:
|
|
342
|
-
annotations:
|
|
343
|
-
customHighlightAreaSettings:
|
|
344
|
-
theme:
|
|
345
|
-
ariaLabel:
|
|
346
|
-
yAxisTitle:
|
|
347
|
-
noOfYTicks:
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
curveType: zt,
|
|
351
|
-
styles: p,
|
|
341
|
+
language: q,
|
|
342
|
+
minHeight: J,
|
|
343
|
+
annotations: ft,
|
|
344
|
+
customHighlightAreaSettings: G,
|
|
345
|
+
theme: y,
|
|
346
|
+
ariaLabel: Xt,
|
|
347
|
+
yAxisTitle: b,
|
|
348
|
+
noOfYTicks: Et,
|
|
349
|
+
curveType: pt,
|
|
350
|
+
styles: g,
|
|
352
351
|
classNames: l,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
Kt(Yt[0].target.clientWidth || 620), Qt(Yt[0].target.clientHeight || 480);
|
|
352
|
+
customLayers: ut,
|
|
353
|
+
animate: St,
|
|
354
|
+
numberDisplayOptions: u
|
|
355
|
+
} = i, m = Ot === void 0 ? eo.light.categoricalColors.colors : Ot, K = jt === void 0 ? 10 : jt, Q = Dt === void 0 ? "yyyy" : Dt, v = rt === void 0 ? !1 : rt, _ = lt === void 0 ? 50 : lt, gt = Gt === void 0 ? 20 : Gt, tt = ct === void 0 ? 20 : ct, Wt = Y === void 0 ? 25 : Y;
|
|
356
|
+
let $t;
|
|
357
|
+
t[0] !== B ? ($t = B === void 0 ? [] : B, t[0] = B, t[1] = $t) : $t = t[1];
|
|
358
|
+
const f = $t;
|
|
359
|
+
let h;
|
|
360
|
+
t[2] !== k ? (h = k === void 0 ? [] : k, t[2] = k, t[3] = h) : h = t[3];
|
|
361
|
+
const It = h, kt = U === void 0 ? !1 : U, C = V === void 0 ? !1 : V, et = c === void 0 ? !0 : c, T = q === void 0 ? "en" : q, r = J === void 0 ? 0 : J;
|
|
362
|
+
let a;
|
|
363
|
+
t[4] !== ft ? (a = ft === void 0 ? [] : ft, t[4] = ft, t[5] = a) : a = t[5];
|
|
364
|
+
const xt = a;
|
|
365
|
+
let dt;
|
|
366
|
+
t[6] !== G ? (dt = G === void 0 ? [] : G, t[6] = G, t[7] = dt) : dt = t[7];
|
|
367
|
+
const Tt = dt, ot = y === void 0 ? "light" : y, ht = Et === void 0 ? 5 : Et, yt = pt === void 0 ? "curve" : pt;
|
|
368
|
+
let P;
|
|
369
|
+
t[8] !== ut ? (P = ut === void 0 ? [] : ut, t[8] = ut, t[9] = P) : P = t[9];
|
|
370
|
+
const vt = P, st = St === void 0 ? !1 : St, [X, Zt] = Ut(0), [it, Bt] = Ut(0), At = ce(null), Nt = ce(null);
|
|
371
|
+
let D, nt;
|
|
372
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => {
|
|
373
|
+
const bt = new ResizeObserver((Mt) => {
|
|
374
|
+
Zt(Mt[0].target.clientWidth || 620), Bt(Mt[0].target.clientHeight || 480);
|
|
377
375
|
});
|
|
378
|
-
return
|
|
379
|
-
},
|
|
380
|
-
const
|
|
381
|
-
let
|
|
382
|
-
t[12] !== l?.description || t[13] !== l?.title || t[14] !==
|
|
383
|
-
title:
|
|
384
|
-
description:
|
|
376
|
+
return At.current && bt.observe(At.current), () => bt.disconnect();
|
|
377
|
+
}, nt = [], t[10] = D, t[11] = nt) : (D = t[10], nt = t[11]), we(D, nt);
|
|
378
|
+
const Ct = l?.graphContainer, wt = g?.graphContainer;
|
|
379
|
+
let O;
|
|
380
|
+
t[12] !== l?.description || t[13] !== l?.title || t[14] !== p || t[15] !== C || t[16] !== s || t[17] !== kt || t[18] !== W || t[19] !== g?.description || t[20] !== g?.title || t[21] !== w ? (O = W || s || kt || C ? /* @__PURE__ */ n.jsx(_e, { styles: {
|
|
381
|
+
title: g?.title,
|
|
382
|
+
description: g?.description
|
|
385
383
|
}, classNames: {
|
|
386
384
|
title: l?.title,
|
|
387
385
|
description: l?.description
|
|
388
|
-
}, graphTitle:
|
|
389
|
-
let
|
|
390
|
-
t[23] !== l?.colorLegend || t[24] !==
|
|
391
|
-
let
|
|
392
|
-
t[30] !==
|
|
393
|
-
let
|
|
394
|
-
t[32] !==
|
|
386
|
+
}, graphTitle: W, graphDescription: s, width: w, graphDownload: kt ? Nt : void 0, dataDownload: C ? p.map(Ao).filter(vo).length > 0 ? p.map(yo).filter(ho) : p.filter(xo) : null }) : null, t[12] = l?.description, t[13] = l?.title, t[14] = p, t[15] = C, t[16] = s, t[17] = kt, t[18] = W, t[19] = g?.description, t[20] = g?.title, t[21] = w, t[22] = O) : O = t[22];
|
|
387
|
+
let N;
|
|
388
|
+
t[23] !== l?.colorLegend || t[24] !== I || t[25] !== at || t[26] !== m || t[27] !== p.length || t[28] !== et ? (N = et !== !1 && p.length > 0 ? /* @__PURE__ */ n.jsx(to, { colorDomain: I, colors: m, colorLegendTitle: at, showNAColor: !1, className: l?.colorLegend }) : null, t[23] = l?.colorLegend, t[24] = I, t[25] = at, t[26] = m, t[27] = p.length, t[28] = et, t[29] = N) : N = t[29];
|
|
389
|
+
let M;
|
|
390
|
+
t[30] !== p.length ? (M = p.length === 0 && /* @__PURE__ */ n.jsx(oo, {}), t[30] = p.length, t[31] = M) : M = t[31];
|
|
391
|
+
let L;
|
|
392
|
+
t[32] !== st || t[33] !== xt || t[34] !== Wt || t[35] !== l || t[36] !== m || t[37] !== yt || t[38] !== Tt || t[39] !== vt || t[40] !== p || t[41] !== Q || t[42] !== f || t[43] !== T || t[44] !== _ || t[45] !== d || t[46] !== x || t[47] !== K || t[48] !== ht || t[49] !== u?.locale || t[50] !== u?.padZeros || t[51] !== u?.precision || t[52] !== u?.prefix || t[53] !== u?.suffix || t[54] !== F || t[55] !== It || t[56] !== gt || t[57] !== g || t[58] !== it || t[59] !== X || t[60] !== mt || t[61] !== tt || t[62] !== b ? (L = X && it && p.length > 0 ? /* @__PURE__ */ n.jsx(no, { data: p, colors: m, width: X, height: it, dateFormat: Q, noOfXTicks: K, leftMargin: _, rightMargin: gt, topMargin: tt, bottomMargin: Wt, tooltip: mt, onSeriesMouseOver: F, highlightAreaSettings: f, refValues: It, minValue: x, maxValue: d, rtl: T === "he" || T === "ar", annotations: xt, customHighlightAreaSettings: Tt, yAxisTitle: b, noOfYTicks: ht, curveType: yt, styles: g, classNames: l, customLayers: vt, animate: st === !0 ? {
|
|
395
393
|
duration: 0.5,
|
|
396
394
|
once: !0,
|
|
397
395
|
amount: 0.5
|
|
398
|
-
} :
|
|
396
|
+
} : st || {
|
|
399
397
|
duration: 0,
|
|
400
398
|
once: !0,
|
|
401
399
|
amount: 0
|
|
402
|
-
}, locale:
|
|
403
|
-
let
|
|
404
|
-
t[
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
] }), t[
|
|
408
|
-
let
|
|
409
|
-
t[
|
|
410
|
-
footnote:
|
|
411
|
-
source:
|
|
400
|
+
}, locale: u?.locale || "en", padZeros: u?.padZeros || !1, suffix: u?.suffix || "", prefix: u?.prefix || "", precision: u?.precision ?? 2 }) : null, t[32] = st, t[33] = xt, t[34] = Wt, t[35] = l, t[36] = m, t[37] = yt, t[38] = Tt, t[39] = vt, t[40] = p, t[41] = Q, t[42] = f, t[43] = T, t[44] = _, t[45] = d, t[46] = x, t[47] = K, t[48] = ht, t[49] = u?.locale, t[50] = u?.padZeros, t[51] = u?.precision, t[52] = u?.prefix, t[53] = u?.suffix, t[54] = F, t[55] = It, t[56] = gt, t[57] = g, t[58] = it, t[59] = X, t[60] = mt, t[61] = tt, t[62] = b, t[63] = L) : L = t[63];
|
|
401
|
+
let H;
|
|
402
|
+
t[64] !== M || t[65] !== L ? (H = /* @__PURE__ */ n.jsxs(so, { ref: At, children: [
|
|
403
|
+
M,
|
|
404
|
+
L
|
|
405
|
+
] }), t[64] = M, t[65] = L, t[66] = H) : H = t[66];
|
|
406
|
+
let R;
|
|
407
|
+
t[67] !== l?.footnote || t[68] !== l?.source || t[69] !== A || t[70] !== Lt || t[71] !== g?.footnote || t[72] !== g?.source || t[73] !== w ? (R = Lt || A ? /* @__PURE__ */ n.jsx(Qe, { styles: {
|
|
408
|
+
footnote: g?.footnote,
|
|
409
|
+
source: g?.source
|
|
412
410
|
}, classNames: {
|
|
413
411
|
footnote: l?.footnote,
|
|
414
412
|
source: l?.source
|
|
415
|
-
}, sources:
|
|
416
|
-
let
|
|
417
|
-
return t[
|
|
418
|
-
|
|
413
|
+
}, sources: Lt, footNote: A, width: w }) : null, t[67] = l?.footnote, t[68] = l?.source, t[69] = A, t[70] = Lt, t[71] = g?.footnote, t[72] = g?.source, t[73] = w, t[74] = R) : R = t[74];
|
|
414
|
+
let S;
|
|
415
|
+
return t[75] !== Xt || t[76] !== v || t[77] !== z || t[78] !== Vt || t[79] !== T || t[80] !== r || t[81] !== Z || t[82] !== Pt || t[83] !== Ct || t[84] !== wt || t[85] !== O || t[86] !== N || t[87] !== H || t[88] !== R || t[89] !== ot || t[90] !== w ? (S = /* @__PURE__ */ n.jsxs(io, { className: Ct, style: wt, id: z, ref: Nt, "aria-label": Xt, backgroundColor: v, theme: ot, language: T, minHeight: r, width: w, height: Vt, relativeHeight: Pt, padding: Z, children: [
|
|
416
|
+
O,
|
|
417
|
+
N,
|
|
419
418
|
H,
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
] }), t[74] = C, t[75] = Ut, t[76] = K, t[77] = Xt, t[78] = T, t[79] = Ht, t[80] = q, t[81] = Wt, t[82] = N, t[83] = at, t[84] = M, t[85] = H, t[86] = S, t[87] = D, t[88] = vt, t[89] = A, t[90] = Rt) : Rt = t[90], Rt;
|
|
423
|
-
}
|
|
424
|
-
function go(i) {
|
|
425
|
-
return i !== void 0;
|
|
419
|
+
R
|
|
420
|
+
] }), t[75] = Xt, t[76] = v, t[77] = z, t[78] = Vt, t[79] = T, t[80] = r, t[81] = Z, t[82] = Pt, t[83] = Ct, t[84] = wt, t[85] = O, t[86] = N, t[87] = H, t[88] = R, t[89] = ot, t[90] = w, t[91] = S) : S = t[91], S;
|
|
426
421
|
}
|
|
427
422
|
function xo(i) {
|
|
428
423
|
return i !== void 0;
|
|
429
424
|
}
|
|
430
425
|
function ho(i) {
|
|
431
|
-
return i
|
|
426
|
+
return i !== void 0;
|
|
432
427
|
}
|
|
433
428
|
function yo(i) {
|
|
434
|
-
return i
|
|
429
|
+
return i.data;
|
|
435
430
|
}
|
|
436
431
|
function vo(i) {
|
|
432
|
+
return i !== void 0;
|
|
433
|
+
}
|
|
434
|
+
function Ao(i) {
|
|
437
435
|
return i.data;
|
|
438
436
|
}
|
|
439
437
|
export {
|
|
440
|
-
|
|
438
|
+
_o as AreaChart
|
|
441
439
|
};
|
|
442
440
|
//# sourceMappingURL=AreaChart.js.map
|