@undp/data-viz 2.4.1 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.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 +309 -304
- 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 +314 -311
- 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.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +1 -1
- package/dist/DotDensityMap.js +270 -267
- package/dist/DotDensityMap.js.map +1 -1
- 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-BgkDbq50.cjs +2 -0
- package/dist/GraphEl-BgkDbq50.cjs.map +1 -0
- package/dist/GraphEl-Ch0uAeZw.js +1830 -0
- package/dist/GraphEl-Ch0uAeZw.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +29 -16
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +29 -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 +339 -336
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +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 +29 -16
- package/dist/MultiGraphDashboardFromConfig.d.ts +29 -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 +29 -16
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +29 -16
- package/dist/PerformanceIntensiveScrollStory.d.ts +29 -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 +15 -13
- package/dist/ScatterPlot.js +477 -483
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +29 -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 +29 -16
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +29 -16
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +29 -16
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +29 -16
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +29 -16
- package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +29 -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 +29 -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/{imageDownload-Diofs_vY.js → imageDownload-BYsNEtMS.js} +11 -11
- package/dist/{imageDownload-Diofs_vY.js.map → imageDownload-BYsNEtMS.js.map} +1 -1
- package/dist/{imageDownload-61q6jyJW.cjs → imageDownload-CkMwA7Cw.cjs} +4 -4
- package/dist/{imageDownload-61q6jyJW.cjs.map → imageDownload-CkMwA7Cw.cjs.map} +1 -1
- 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 +108 -245
- package/dist/index.js +3 -3
- 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/style.css +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -2
- 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
|
@@ -1,216 +1,217 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { p as
|
|
4
|
-
import { l as
|
|
5
|
-
import { o as
|
|
6
|
-
import { n as
|
|
7
|
-
import { T as
|
|
8
|
-
import { c as
|
|
9
|
-
import { g as
|
|
1
|
+
import { c as Re, j as o, m as be } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { useRef as De, useState as Ut, useEffect as We } from "react";
|
|
3
|
+
import { p as b, f as He } from "./parse-Dv4of-PN.js";
|
|
4
|
+
import { l as Ye, a as Pe } from "./simple-statistics-flVzqVtt.js";
|
|
5
|
+
import { o as Ee } from "./index-BZQYSqar.js";
|
|
6
|
+
import { n as Le } from "./numberFormattingFunction-BUUV_luR.js";
|
|
7
|
+
import { T as Xe } from "./Tooltip-3EYDVa3w.js";
|
|
8
|
+
import { c as P } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
9
|
+
import { g as Ge, A as Ze, C as Be } from "./customArea-D89lETG0.js";
|
|
10
10
|
import { A as ze } from "./AxisTitle-CyLCqpW6.js";
|
|
11
11
|
import { A as Ue } from "./Axis-CNZYWzH0.js";
|
|
12
12
|
import { a as qe } from "./ReferenceLine-D41VuUhE.js";
|
|
13
13
|
import { R as Je } from "./RegressionLine-CuwB42I6.js";
|
|
14
|
-
import { Y as Ke } from "./YTicksAndGridLines-
|
|
14
|
+
import { Y as Ke } from "./YTicksAndGridLines-BbujwxOB.js";
|
|
15
15
|
import { H as Qe } from "./index-DHVGV8Df.js";
|
|
16
|
-
import { t as
|
|
17
|
-
import { a as
|
|
18
|
-
import { l as
|
|
19
|
-
import { c as
|
|
20
|
-
import { a as
|
|
21
|
-
import { s as
|
|
16
|
+
import { t as _e } from "./time-vyz6Y89P.js";
|
|
17
|
+
import { a as ti } from "./linear-DNXM5Pdl.js";
|
|
18
|
+
import { l as Te, c as ei } from "./line-DFlZsxI1.js";
|
|
19
|
+
import { c as ii, s as ni, a as oi, m as ai } from "./step-BrDul-H4.js";
|
|
20
|
+
import { a as si } from "./area-B6r7cv2o.js";
|
|
21
|
+
import { s as ri } from "./select-DKy99ogv.js";
|
|
22
22
|
import { m as V } from "./proxy-BsxtcZKa.js";
|
|
23
|
-
import { a as
|
|
24
|
-
import { p as
|
|
25
|
-
import { u as
|
|
26
|
-
import { GraphFooter as
|
|
27
|
-
import { GraphHeader as
|
|
28
|
-
import { Colors as
|
|
29
|
-
import { ColorLegend as
|
|
30
|
-
import { E as
|
|
23
|
+
import { a as li } from "./init-BhZylTFx.js";
|
|
24
|
+
import { p as ci } from "./pointer-CWRWOsrb.js";
|
|
25
|
+
import { u as mi } from "./use-in-view-KOXq5Kmc.js";
|
|
26
|
+
import { GraphFooter as fi } from "./GraphFooter.js";
|
|
27
|
+
import { GraphHeader as ui } from "./GraphHeader.js";
|
|
28
|
+
import { Colors as Ve } from "./Colors.js";
|
|
29
|
+
import { ColorLegend as hi } from "./ColorLegend.js";
|
|
30
|
+
import { E as pi } from "./EmptyState-CaxXCkiN.js";
|
|
31
31
|
import { a as yi, G as di } from "./GraphContainer-B8ZqOzKI.js";
|
|
32
|
-
import { g as
|
|
33
|
-
function
|
|
34
|
-
const t =
|
|
35
|
-
data:
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
32
|
+
import { g as xi } from "./getNoOfTicks-CpmRjcRF.js";
|
|
33
|
+
function gi(i) {
|
|
34
|
+
const t = Re.c(104), {
|
|
35
|
+
data: x,
|
|
36
|
+
width: tt,
|
|
37
|
+
height: et,
|
|
38
38
|
lineColor: D,
|
|
39
|
-
suffix:
|
|
40
|
-
prefix:
|
|
39
|
+
suffix: k,
|
|
40
|
+
prefix: h,
|
|
41
41
|
dateFormat: l,
|
|
42
|
-
highlightAreaSettings:
|
|
43
|
-
showValues:
|
|
44
|
-
noOfXTicks:
|
|
45
|
-
rightMargin:
|
|
46
|
-
leftMargin:
|
|
47
|
-
topMargin:
|
|
48
|
-
bottomMargin:
|
|
49
|
-
tooltip:
|
|
50
|
-
onSeriesMouseOver:
|
|
51
|
-
refValues:
|
|
52
|
-
minValue:
|
|
53
|
-
maxValue:
|
|
42
|
+
highlightAreaSettings: kt,
|
|
43
|
+
showValues: re,
|
|
44
|
+
noOfXTicks: le,
|
|
45
|
+
rightMargin: It,
|
|
46
|
+
leftMargin: I,
|
|
47
|
+
topMargin: ht,
|
|
48
|
+
bottomMargin: St,
|
|
49
|
+
tooltip: pt,
|
|
50
|
+
onSeriesMouseOver: $t,
|
|
51
|
+
refValues: qt,
|
|
52
|
+
minValue: Nt,
|
|
53
|
+
maxValue: E,
|
|
54
54
|
animate: n,
|
|
55
|
-
rtl:
|
|
56
|
-
strokeWidth:
|
|
57
|
-
showDots:
|
|
58
|
-
annotations:
|
|
59
|
-
customHighlightAreaSettings:
|
|
60
|
-
regressionLine:
|
|
55
|
+
rtl: Tt,
|
|
56
|
+
strokeWidth: yt,
|
|
57
|
+
showDots: Jt,
|
|
58
|
+
annotations: Kt,
|
|
59
|
+
customHighlightAreaSettings: dt,
|
|
60
|
+
regressionLine: Wt,
|
|
61
61
|
showIntervalDots: ce,
|
|
62
|
-
showIntervalValues:
|
|
63
|
-
intervalLineStrokeWidth:
|
|
64
|
-
intervalLineColors:
|
|
65
|
-
intervalAreaColor:
|
|
66
|
-
intervalAreaOpacity:
|
|
67
|
-
yAxisTitle:
|
|
68
|
-
noOfYTicks:
|
|
69
|
-
minDate:
|
|
70
|
-
maxDate:
|
|
71
|
-
curveType:
|
|
72
|
-
styles:
|
|
73
|
-
classNames:
|
|
74
|
-
precision:
|
|
75
|
-
customLayers:
|
|
76
|
-
locale:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
62
|
+
showIntervalValues: me,
|
|
63
|
+
intervalLineStrokeWidth: Rt,
|
|
64
|
+
intervalLineColors: w,
|
|
65
|
+
intervalAreaColor: Ft,
|
|
66
|
+
intervalAreaOpacity: fe,
|
|
67
|
+
yAxisTitle: xt,
|
|
68
|
+
noOfYTicks: ue,
|
|
69
|
+
minDate: Qt,
|
|
70
|
+
maxDate: _t,
|
|
71
|
+
curveType: gt,
|
|
72
|
+
styles: g,
|
|
73
|
+
classNames: v,
|
|
74
|
+
precision: L,
|
|
75
|
+
customLayers: S,
|
|
76
|
+
locale: N,
|
|
77
|
+
padZeros: $
|
|
78
|
+
} = i, Ht = De(null);
|
|
79
|
+
let vt;
|
|
80
|
+
t[0] !== n.amount || t[1] !== n.once ? (vt = {
|
|
80
81
|
once: n.once,
|
|
81
82
|
amount: n.amount
|
|
82
|
-
}, t[0] = n.amount, t[1] = n.once, t[2] =
|
|
83
|
-
const c =
|
|
84
|
-
let
|
|
85
|
-
t[3] !== n.duration || t[4] !==
|
|
86
|
-
if (c && !
|
|
83
|
+
}, t[0] = n.amount, t[1] = n.once, t[2] = vt) : vt = t[2];
|
|
84
|
+
const c = mi(Ht, vt), [p, te] = Ut(!1);
|
|
85
|
+
let X, G;
|
|
86
|
+
t[3] !== n.duration || t[4] !== p || t[5] !== c ? (X = () => {
|
|
87
|
+
if (c && !p) {
|
|
87
88
|
const e = setTimeout(() => {
|
|
88
|
-
|
|
89
|
+
te(!0);
|
|
89
90
|
}, (n.duration + 0.5) * 1e3);
|
|
90
91
|
return () => clearTimeout(e);
|
|
91
92
|
}
|
|
92
|
-
},
|
|
93
|
-
const
|
|
94
|
-
let At;
|
|
95
|
-
t[8] !== ht || t[9] !== Xt || t[10] !== et || t[11] !== Gt ? (At = {
|
|
96
|
-
top: Gt,
|
|
97
|
-
bottom: ht,
|
|
98
|
-
left: et,
|
|
99
|
-
right: Xt
|
|
100
|
-
}, t[8] = ht, t[9] = Xt, t[10] = et, t[11] = Gt, t[12] = At) : At = t[12];
|
|
101
|
-
const w = At, it = ke(null);
|
|
93
|
+
}, G = [c, p, n.duration], t[3] = n.duration, t[4] = p, t[5] = c, t[6] = X, t[7] = G) : (X = t[6], G = t[7]), We(X, G);
|
|
94
|
+
const wt = gt === "linear" ? ei : gt === "step" ? ii : gt === "stepAfter" ? ni : gt === "stepBefore" ? oi : ai, [m, u] = Ut(void 0), [Z, y] = Ut(void 0), [it, Yt] = Ut(void 0), Mt = xt ? I + 30 : I;
|
|
102
95
|
let nt;
|
|
103
|
-
t[
|
|
104
|
-
|
|
96
|
+
t[8] !== St || t[9] !== It || t[10] !== Mt || t[11] !== ht ? (nt = {
|
|
97
|
+
top: ht,
|
|
98
|
+
bottom: St,
|
|
99
|
+
left: Mt,
|
|
100
|
+
right: It
|
|
101
|
+
}, t[8] = St, t[9] = It, t[10] = Mt, t[11] = ht, t[12] = nt) : nt = t[12];
|
|
102
|
+
const j = nt, ot = De(null);
|
|
103
|
+
let at;
|
|
104
|
+
t[13] !== l ? (at = (e) => ({
|
|
105
|
+
date: b(`${e.date}`, l, /* @__PURE__ */ new Date()),
|
|
105
106
|
y: e.y,
|
|
106
|
-
yMin:
|
|
107
|
-
yMax:
|
|
107
|
+
yMin: P(e.yMin) ? e.y : e.yMin,
|
|
108
|
+
yMax: P(e.yMax) ? e.y : e.yMax,
|
|
108
109
|
data: e.data
|
|
109
|
-
}), t[13] = l, t[14] =
|
|
110
|
-
const s =
|
|
111
|
-
let
|
|
112
|
-
if (t[15] !== l || t[16] !==
|
|
110
|
+
}), t[13] = l, t[14] = at) : at = t[14];
|
|
111
|
+
const s = Ee(x.filter(Si).map(at), ["date"], ["asc"]);
|
|
112
|
+
let B;
|
|
113
|
+
if (t[15] !== l || t[16] !== kt) {
|
|
113
114
|
let e;
|
|
114
|
-
t[18] !== l ? (e = (
|
|
115
|
-
...
|
|
116
|
-
coordinates: [
|
|
117
|
-
}), t[18] = l, t[19] = e) : e = t[19],
|
|
115
|
+
t[18] !== l ? (e = (d) => ({
|
|
116
|
+
...d,
|
|
117
|
+
coordinates: [d.coordinates[0] === null ? null : b(`${d.coordinates[0]}`, l, /* @__PURE__ */ new Date()), d.coordinates[1] === null ? null : b(`${d.coordinates[1]}`, l, /* @__PURE__ */ new Date())]
|
|
118
|
+
}), t[18] = l, t[19] = e) : e = t[19], B = kt.map(e), t[15] = l, t[16] = kt, t[17] = B;
|
|
118
119
|
} else
|
|
119
|
-
|
|
120
|
-
const
|
|
121
|
-
let
|
|
122
|
-
if (t[20] !==
|
|
120
|
+
B = t[17];
|
|
121
|
+
const jt = B;
|
|
122
|
+
let z;
|
|
123
|
+
if (t[20] !== dt || t[21] !== l) {
|
|
123
124
|
let e;
|
|
124
|
-
t[23] !== l ? (e = (
|
|
125
|
-
...
|
|
126
|
-
coordinates:
|
|
127
|
-
}), t[23] = l, t[24] = e) : e = t[24],
|
|
125
|
+
t[23] !== l ? (e = (d) => ({
|
|
126
|
+
...d,
|
|
127
|
+
coordinates: d.coordinates.map((_, zt) => zt % 2 === 0 ? b(`${_}`, l, /* @__PURE__ */ new Date()) : _)
|
|
128
|
+
}), t[23] = l, t[24] = e) : e = t[24], z = dt.map(e), t[20] = dt, t[21] = l, t[22] = z;
|
|
128
129
|
} else
|
|
129
|
-
|
|
130
|
-
const
|
|
130
|
+
z = t[22];
|
|
131
|
+
const ee = z, f = tt - j.left - j.right, M = et - j.top - j.bottom, ie = Qt ? b(`${Qt}`, l, /* @__PURE__ */ new Date()) : s[0].date, ne = _t ? b(`${_t}`, l, /* @__PURE__ */ new Date()) : s[s.length - 1].date, C = P(Nt) ? Math.min(...s.map(Ii)) ? Math.min(...s.map(ki)) > 0 ? 0 : Math.min(...s.map(Di)) : 0 : Nt, U = Math.max(...s.map(Vi)) ? Math.max(...s.map(Li)) : 0, a = _e().domain([ie, ne]).range([0, f]);
|
|
131
132
|
let st;
|
|
132
|
-
t[25] !==
|
|
133
|
-
const r =
|
|
134
|
-
|
|
135
|
-
const e = (
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
|
|
133
|
+
t[25] !== U || t[26] !== E ? (st = P(E) ? U > 0 ? U : 0 : E, t[25] = U, t[26] = E, t[27] = st) : st = t[27];
|
|
134
|
+
const r = ti().domain([C, st]).range([M, 0]).nice(), Ct = Te().x((e) => a(e.date)).y((e) => r(e.y)).curve(wt), At = Te().x((e) => a(e.date)).y((e) => r(e.yMin)).curve(wt), T = Te().x((e) => a(e.date)).y((e) => r(e.yMax)).curve(wt), Pt = si().x((e) => a(e.date)).y0((e) => r(e.yMin)).y1((e) => r(e.yMax)).curve(wt), Et = r.ticks(ue), oe = a.ticks(le);
|
|
135
|
+
We(() => {
|
|
136
|
+
const e = (_) => {
|
|
137
|
+
const zt = s[li(s.map(bi), a.invert(ci(_)[0]), 0)];
|
|
138
|
+
u(zt || s[s.length - 1]), $t?.(zt || s[s.length - 1]), Yt(_.clientY), y(_.clientX);
|
|
139
|
+
}, d = () => {
|
|
140
|
+
u(void 0), y(void 0), Yt(void 0), $t?.(void 0);
|
|
140
141
|
};
|
|
141
|
-
|
|
142
|
-
}, [a, s,
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
t[28] !== n || t[29] !==
|
|
146
|
-
const
|
|
142
|
+
ri(ot.current).on("mousemove", e).on("mouseout", d);
|
|
143
|
+
}, [a, s, $t]);
|
|
144
|
+
const Xt = Ye(s.filter(Oi).map((e) => [a(e.date), r(e.y)])), Gt = Pe(Xt);
|
|
145
|
+
let q;
|
|
146
|
+
t[28] !== n || t[29] !== M || t[30] !== f || t[31] !== jt || t[32] !== c || t[33] !== a ? (q = /* @__PURE__ */ o.jsx(Qe, { areaSettings: jt, width: f, height: M, scale: a, animate: n, isInView: c }), t[28] = n, t[29] = M, t[30] = f, t[31] = jt, t[32] = c, t[33] = a, t[34] = q) : q = t[34];
|
|
147
|
+
const Ot = g?.yAxis?.gridLines, bt = g?.yAxis?.labels;
|
|
147
148
|
let rt;
|
|
148
|
-
t[35] !==
|
|
149
|
-
gridLines:
|
|
150
|
-
labels:
|
|
151
|
-
}, t[35] =
|
|
152
|
-
const
|
|
153
|
-
let B;
|
|
154
|
-
t[38] !== lt || t[39] !== kt ? (B = {
|
|
155
|
-
gridLines: lt,
|
|
156
|
-
labels: kt
|
|
157
|
-
}, t[38] = lt, t[39] = kt, t[40] = B) : B = t[40];
|
|
158
|
-
const It = r(M < 0 ? 0 : M), St = r(M < 0 ? 0 : M), $t = 0 - W, Nt = f + w.right, Tt = M < 0 ? 0 : M;
|
|
159
|
-
let k;
|
|
160
|
-
t[41] !== O || t[42] !== R || t[43] !== A || t[44] !== T || t[45] !== Tt ? (k = Ve(Tt, void 0, R, A, T, O), t[41] = O, t[42] = R, t[43] = A, t[44] = T, t[45] = Tt, t[46] = k) : k = t[46];
|
|
161
|
-
const Wt = 0 - W, Rt = r(M < 0 ? 0 : M), z = G < 0 ? "1em" : -5;
|
|
149
|
+
t[35] !== Ot || t[36] !== bt ? (rt = {
|
|
150
|
+
gridLines: Ot,
|
|
151
|
+
labels: bt
|
|
152
|
+
}, t[35] = Ot, t[36] = bt, t[37] = rt) : rt = t[37];
|
|
153
|
+
const Lt = v?.yAxis?.gridLines, lt = v?.yAxis?.labels;
|
|
162
154
|
let ct;
|
|
163
|
-
t[
|
|
164
|
-
|
|
165
|
-
|
|
155
|
+
t[38] !== Lt || t[39] !== lt ? (ct = {
|
|
156
|
+
gridLines: Lt,
|
|
157
|
+
labels: lt
|
|
158
|
+
}, t[38] = Lt, t[39] = lt, t[40] = ct) : ct = t[40];
|
|
159
|
+
const J = r(C < 0 ? 0 : C), ae = r(C < 0 ? 0 : C), mt = 0 - I, se = f + j.right, Vt = C < 0 ? 0 : C;
|
|
160
|
+
let K;
|
|
161
|
+
t[41] !== N || t[42] !== $ || t[43] !== L || t[44] !== h || t[45] !== k || t[46] !== Vt ? (K = Le(Vt, void 0, L, h, k, N, $), t[41] = N, t[42] = $, t[43] = L, t[44] = h, t[45] = k, t[46] = Vt, t[47] = K) : K = t[47];
|
|
162
|
+
const ft = 0 - I, ut = r(C < 0 ? 0 : C), Dt = U < 0 ? "1em" : -5;
|
|
163
|
+
let W;
|
|
164
|
+
t[48] !== ft || t[49] !== ut || t[50] !== Dt ? (W = {
|
|
165
|
+
x: ft,
|
|
166
|
+
y: ut,
|
|
166
167
|
dx: 0,
|
|
167
|
-
dy:
|
|
168
|
-
}, t[
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
t[
|
|
172
|
-
axis:
|
|
173
|
-
label:
|
|
174
|
-
}, t[
|
|
175
|
-
const
|
|
176
|
-
let
|
|
177
|
-
t[
|
|
178
|
-
axis:
|
|
179
|
-
label:
|
|
180
|
-
}, t[
|
|
181
|
-
let
|
|
182
|
-
t[
|
|
183
|
-
const
|
|
184
|
-
let
|
|
185
|
-
t[
|
|
186
|
-
let
|
|
187
|
-
t[
|
|
188
|
-
let
|
|
189
|
-
t[
|
|
190
|
-
fill:
|
|
191
|
-
}, t[
|
|
192
|
-
let
|
|
193
|
-
t[
|
|
168
|
+
dy: Dt
|
|
169
|
+
}, t[48] = ft, t[49] = ut, t[50] = Dt, t[51] = W) : W = t[51];
|
|
170
|
+
const R = v?.xAxis?.axis, F = v?.yAxis?.labels;
|
|
171
|
+
let A;
|
|
172
|
+
t[52] !== R || t[53] !== F ? (A = {
|
|
173
|
+
axis: R,
|
|
174
|
+
label: F
|
|
175
|
+
}, t[52] = R, t[53] = F, t[54] = A) : A = t[54];
|
|
176
|
+
const H = g?.xAxis?.axis, Y = g?.yAxis?.labels;
|
|
177
|
+
let O;
|
|
178
|
+
t[55] !== H || t[56] !== Y ? (O = {
|
|
179
|
+
axis: H,
|
|
180
|
+
label: Y
|
|
181
|
+
}, t[55] = H, t[56] = Y, t[57] = O) : O = t[57];
|
|
182
|
+
let Q;
|
|
183
|
+
t[58] !== J || t[59] !== ae || t[60] !== mt || t[61] !== se || t[62] !== K || t[63] !== W || t[64] !== A || t[65] !== O ? (Q = /* @__PURE__ */ o.jsx(Ue, { y1: J, y2: ae, x1: mt, x2: se, label: K, labelPos: W, classNames: A, styles: O }), t[58] = J, t[59] = ae, t[60] = mt, t[61] = se, t[62] = K, t[63] = W, t[64] = A, t[65] = O, t[66] = Q) : Q = t[66];
|
|
184
|
+
const Zt = 0 - I + 15, Bt = M / 2, ke = g?.yAxis?.title, Ie = v?.yAxis?.title;
|
|
185
|
+
let he;
|
|
186
|
+
t[67] !== Zt || t[68] !== Bt || t[69] !== ke || t[70] !== Ie || t[71] !== xt ? (he = /* @__PURE__ */ o.jsx(ze, { x: Zt, y: Bt, style: ke, className: Ie, text: xt, rotate90: !0 }), t[67] = Zt, t[68] = Bt, t[69] = ke, t[70] = Ie, t[71] = xt, t[72] = he) : he = t[72];
|
|
187
|
+
let pe;
|
|
188
|
+
t[73] !== S ? (pe = S.filter(ji).map(Mi), t[73] = S, t[74] = pe) : pe = t[74];
|
|
189
|
+
let ye;
|
|
190
|
+
t[75] !== Ft ? (ye = {
|
|
191
|
+
fill: Ft
|
|
192
|
+
}, t[75] = Ft, t[76] = ye) : ye = t[76];
|
|
193
|
+
let de;
|
|
194
|
+
t[77] !== n.duration ? (de = {
|
|
194
195
|
opacity: 0,
|
|
195
196
|
transition: {
|
|
196
197
|
duration: n.duration
|
|
197
198
|
}
|
|
198
|
-
}, t[
|
|
199
|
-
let
|
|
200
|
-
t[
|
|
199
|
+
}, t[77] = n.duration, t[78] = de) : de = t[78];
|
|
200
|
+
let xe;
|
|
201
|
+
t[79] !== D || t[80] !== yt ? (xe = {
|
|
201
202
|
stroke: D,
|
|
202
203
|
fill: "none",
|
|
203
|
-
strokeWidth:
|
|
204
|
-
}, t[
|
|
205
|
-
let
|
|
206
|
-
t[
|
|
204
|
+
strokeWidth: yt
|
|
205
|
+
}, t[79] = D, t[80] = yt, t[81] = xe) : xe = t[81];
|
|
206
|
+
let ge;
|
|
207
|
+
t[82] !== n.duration ? (ge = {
|
|
207
208
|
opacity: 0,
|
|
208
209
|
transition: {
|
|
209
210
|
duration: n.duration
|
|
210
211
|
}
|
|
211
|
-
}, t[
|
|
212
|
-
const
|
|
213
|
-
|
|
212
|
+
}, t[82] = n.duration, t[83] = ge) : ge = t[83];
|
|
213
|
+
const Se = s.map((e, d) => /* @__PURE__ */ o.jsx(V.g, { children: P(e.y) ? null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
214
|
+
Jt ? /* @__PURE__ */ o.jsx(V.circle, { r: f / s.length < 5 ? 0 : f / s.length < 20 ? 2 : 4, style: {
|
|
214
215
|
fill: D
|
|
215
216
|
}, exit: {
|
|
216
217
|
opacity: 0,
|
|
@@ -226,8 +227,8 @@ function xi(i) {
|
|
|
226
227
|
whileInView: {
|
|
227
228
|
opacity: 1,
|
|
228
229
|
transition: {
|
|
229
|
-
duration:
|
|
230
|
-
delay:
|
|
230
|
+
duration: p ? n.duration : 0.5,
|
|
231
|
+
delay: p ? 0 : n.duration
|
|
231
232
|
},
|
|
232
233
|
cx: a(e.date),
|
|
233
234
|
cy: r(e.y)
|
|
@@ -242,19 +243,19 @@ function xi(i) {
|
|
|
242
243
|
}, variants: {
|
|
243
244
|
initial: {
|
|
244
245
|
opacity: 0,
|
|
245
|
-
fill:
|
|
246
|
+
fill: w[0],
|
|
246
247
|
cx: a(e.date),
|
|
247
248
|
cy: r(e.yMin)
|
|
248
249
|
},
|
|
249
250
|
whileInView: {
|
|
250
251
|
opacity: 1,
|
|
251
252
|
transition: {
|
|
252
|
-
duration:
|
|
253
|
-
delay:
|
|
253
|
+
duration: p ? n.duration : 0.5,
|
|
254
|
+
delay: p ? 0 : n.duration
|
|
254
255
|
},
|
|
255
256
|
cx: a(e.date),
|
|
256
257
|
cy: r(e.yMin),
|
|
257
|
-
fill:
|
|
258
|
+
fill: w[0]
|
|
258
259
|
}
|
|
259
260
|
}, initial: "initial", animate: c ? "whileInView" : "initial" }),
|
|
260
261
|
/* @__PURE__ */ o.jsx(V.circle, { r: f / s.length < 5 ? 0 : f / s.length < 20 ? 2 : 4, exit: {
|
|
@@ -265,26 +266,26 @@ function xi(i) {
|
|
|
265
266
|
}, variants: {
|
|
266
267
|
initial: {
|
|
267
268
|
opacity: 0,
|
|
268
|
-
fill:
|
|
269
|
+
fill: w[1],
|
|
269
270
|
cx: a(e.date),
|
|
270
271
|
cy: r(e.yMax)
|
|
271
272
|
},
|
|
272
273
|
whileInView: {
|
|
273
274
|
opacity: 1,
|
|
274
|
-
fill:
|
|
275
|
+
fill: w[1],
|
|
275
276
|
transition: {
|
|
276
|
-
duration:
|
|
277
|
-
delay:
|
|
277
|
+
duration: p ? n.duration : 0.5,
|
|
278
|
+
delay: p ? 0 : n.duration
|
|
278
279
|
},
|
|
279
280
|
cx: a(e.date),
|
|
280
281
|
cy: r(e.yMax)
|
|
281
282
|
}
|
|
282
283
|
}, initial: "initial", animate: c ? "whileInView" : "initial" })
|
|
283
284
|
] }) : null,
|
|
284
|
-
|
|
285
|
+
re ? /* @__PURE__ */ o.jsx(V.text, { dy: -8, style: {
|
|
285
286
|
textAnchor: "middle",
|
|
286
|
-
...
|
|
287
|
-
}, className:
|
|
287
|
+
...g?.graphObjectValues || {}
|
|
288
|
+
}, className: be("graph-value text-xs font-bold", v?.graphObjectValues), exit: {
|
|
288
289
|
opacity: 0,
|
|
289
290
|
transition: {
|
|
290
291
|
duration: n.duration
|
|
@@ -302,16 +303,16 @@ function xi(i) {
|
|
|
302
303
|
fill: D,
|
|
303
304
|
y: r(e.y),
|
|
304
305
|
transition: {
|
|
305
|
-
duration:
|
|
306
|
-
delay:
|
|
306
|
+
duration: p ? n.duration : 0.5,
|
|
307
|
+
delay: p ? 0 : n.duration
|
|
307
308
|
}
|
|
308
309
|
}
|
|
309
|
-
}, initial: "initial", animate: c ? "whileInView" : "initial", children:
|
|
310
|
-
|
|
310
|
+
}, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.y, void 0, L, h, k, N, $) }) : null,
|
|
311
|
+
me ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
311
312
|
/* @__PURE__ */ o.jsx(V.text, { dy: "1em", style: {
|
|
312
313
|
textAnchor: "middle",
|
|
313
|
-
...
|
|
314
|
-
}, className:
|
|
314
|
+
...g?.graphObjectValues || {}
|
|
315
|
+
}, className: be("text-xs font-bold", v?.graphObjectValues), exit: {
|
|
315
316
|
opacity: 0,
|
|
316
317
|
transition: {
|
|
317
318
|
duration: n.duration
|
|
@@ -319,7 +320,7 @@ function xi(i) {
|
|
|
319
320
|
}, variants: {
|
|
320
321
|
initial: {
|
|
321
322
|
opacity: 0,
|
|
322
|
-
fill:
|
|
323
|
+
fill: w[0],
|
|
323
324
|
x: a(e.date),
|
|
324
325
|
y: r(e.yMin)
|
|
325
326
|
},
|
|
@@ -327,17 +328,17 @@ function xi(i) {
|
|
|
327
328
|
opacity: 1,
|
|
328
329
|
x: a(e.date),
|
|
329
330
|
y: r(e.yMin),
|
|
330
|
-
fill:
|
|
331
|
+
fill: w[0],
|
|
331
332
|
transition: {
|
|
332
|
-
duration:
|
|
333
|
-
delay:
|
|
333
|
+
duration: p ? n.duration : 0.5,
|
|
334
|
+
delay: p ? 0 : n.duration
|
|
334
335
|
}
|
|
335
336
|
}
|
|
336
|
-
}, initial: "initial", animate: c ? "whileInView" : "initial", children:
|
|
337
|
+
}, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMin, void 0, L, h, k, N, $) }),
|
|
337
338
|
/* @__PURE__ */ o.jsx(V.text, { dy: -8, style: {
|
|
338
339
|
textAnchor: "middle",
|
|
339
|
-
...
|
|
340
|
-
}, className:
|
|
340
|
+
...g?.graphObjectValues || {}
|
|
341
|
+
}, className: be("text-xs font-bold", v?.graphObjectValues), exit: {
|
|
341
342
|
opacity: 0,
|
|
342
343
|
transition: {
|
|
343
344
|
duration: n.duration
|
|
@@ -345,97 +346,97 @@ function xi(i) {
|
|
|
345
346
|
}, variants: {
|
|
346
347
|
initial: {
|
|
347
348
|
opacity: 0,
|
|
348
|
-
fill:
|
|
349
|
+
fill: w[1],
|
|
349
350
|
x: a(e.date),
|
|
350
351
|
y: r(e.yMax)
|
|
351
352
|
},
|
|
352
353
|
whileInView: {
|
|
353
354
|
opacity: 1,
|
|
354
|
-
fill:
|
|
355
|
+
fill: w[1],
|
|
355
356
|
x: a(e.date),
|
|
356
357
|
y: r(e.yMax),
|
|
357
358
|
transition: {
|
|
358
|
-
duration:
|
|
359
|
-
delay:
|
|
359
|
+
duration: p ? n.duration : 0.5,
|
|
360
|
+
delay: p ? 0 : n.duration
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
|
-
}, initial: "initial", animate: c ? "whileInView" : "initial", children:
|
|
363
|
+
}, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMax, void 0, L, h, k, N, $) })
|
|
363
364
|
] }) : null
|
|
364
|
-
] }) },
|
|
365
|
-
let
|
|
366
|
-
t[
|
|
367
|
-
const
|
|
368
|
-
const
|
|
369
|
-
x: e.xCoordinate ? a(
|
|
365
|
+
] }) }, d));
|
|
366
|
+
let ve;
|
|
367
|
+
t[84] !== Se ? (ve = /* @__PURE__ */ o.jsx("g", { children: Se }), t[84] = Se, t[85] = ve) : ve = t[85];
|
|
368
|
+
const $e = Kt.map((e, d) => {
|
|
369
|
+
const _ = Ge({
|
|
370
|
+
x: e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
370
371
|
y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
|
|
371
372
|
}, {
|
|
372
|
-
x: e.xCoordinate ? a(
|
|
373
|
+
x: e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
|
|
373
374
|
y: e.yCoordinate ? r(e.yCoordinate) : 0
|
|
374
|
-
},
|
|
375
|
-
y1:
|
|
376
|
-
x1:
|
|
375
|
+
}, P(e.connectorRadius) ? 3.5 : e.connectorRadius), zt = e.showConnector ? {
|
|
376
|
+
y1: _.y,
|
|
377
|
+
x1: _.x,
|
|
377
378
|
y2: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
|
|
378
|
-
x2: e.xCoordinate ? a(
|
|
379
|
+
x2: e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
379
380
|
cy: e.yCoordinate ? r(e.yCoordinate) : 0,
|
|
380
|
-
cx: e.xCoordinate ? a(
|
|
381
|
-
circleRadius:
|
|
381
|
+
cx: e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
|
|
382
|
+
circleRadius: P(e.connectorRadius) ? 3.5 : e.connectorRadius,
|
|
382
383
|
strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
|
|
383
|
-
} : void 0,
|
|
384
|
+
} : void 0, Fe = {
|
|
384
385
|
y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
|
|
385
|
-
x:
|
|
386
|
-
width:
|
|
386
|
+
x: Tt ? 0 : e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
|
|
387
|
+
width: Tt ? e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : f + j.right - (e.xCoordinate ? a(b(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
|
|
387
388
|
maxWidth: e.maxWidth,
|
|
388
389
|
fontWeight: e.fontWeight,
|
|
389
390
|
align: e.align
|
|
390
391
|
};
|
|
391
|
-
return /* @__PURE__ */ o.jsx(
|
|
392
|
+
return /* @__PURE__ */ o.jsx(Ze, { color: e.color, connectorsSettings: zt, labelSettings: Fe, text: e.text, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, d);
|
|
392
393
|
});
|
|
394
|
+
let we;
|
|
395
|
+
t[86] !== $e ? (we = /* @__PURE__ */ o.jsx("g", { children: $e }), t[86] = $e, t[87] = we) : we = t[87];
|
|
396
|
+
const Ne = Wt ? /* @__PURE__ */ o.jsx(Je, { x1: 0, x2: f, y1: Gt(0), y2: Gt(f), graphHeight: M, graphWidth: f, className: v?.regLine, style: g?.regLine, color: typeof Wt == "string" ? Wt : void 0, animate: n, isInView: c }) : null;
|
|
393
397
|
let Me;
|
|
394
|
-
t[
|
|
395
|
-
const $e = xt ? /* @__PURE__ */ o.jsx(Je, { x1: 0, x2: f, y1: Lt(0), y2: Lt(f), graphHeight: v, graphWidth: f, className: g?.regLine, style: x?.regLine, color: typeof xt == "string" ? xt : void 0, animate: n, isInView: c }) : null;
|
|
398
|
+
t[88] !== Ne ? (Me = /* @__PURE__ */ o.jsx("g", { children: Ne }), t[88] = Ne, t[89] = Me) : Me = t[89];
|
|
396
399
|
let je;
|
|
397
|
-
t[
|
|
400
|
+
t[90] !== S ? (je = S.filter(wi).map(vi), t[90] = S, t[91] = je) : je = t[91];
|
|
398
401
|
let Ce;
|
|
399
|
-
t[
|
|
400
|
-
let Ae;
|
|
401
|
-
t[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = {
|
|
402
|
+
t[92] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = {
|
|
402
403
|
fill: "none",
|
|
403
404
|
pointerEvents: "all"
|
|
404
|
-
}, t[
|
|
405
|
+
}, t[92] = Ce) : Ce = t[92];
|
|
406
|
+
let Ae;
|
|
407
|
+
t[93] !== ot || t[94] !== M || t[95] !== f ? (Ae = /* @__PURE__ */ o.jsx("rect", { ref: ot, style: Ce, width: f, height: M }), t[93] = ot, t[94] = M, t[95] = f, t[96] = Ae) : Ae = t[96];
|
|
405
408
|
let Oe;
|
|
406
|
-
t[
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
L,
|
|
411
|
-
/* @__PURE__ */ o.jsx(Be, { areaSettings: he, scaleX: a, scaleY: r, animate: n, isInView: c }),
|
|
409
|
+
return t[97] !== v?.tooltip || t[98] !== Z || t[99] !== it || t[100] !== m || t[101] !== g?.tooltip || t[102] !== pt ? (Oe = m && pt && Z && it ? /* @__PURE__ */ o.jsx(Xe, { data: m, body: pt, xPos: Z, yPos: it, backgroundStyle: g?.tooltip, className: v?.tooltip }) : null, t[97] = v?.tooltip, t[98] = Z, t[99] = it, t[100] = m, t[101] = g?.tooltip, t[102] = pt, t[103] = Oe) : Oe = t[103], /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
410
|
+
/* @__PURE__ */ o.jsx(V.svg, { width: `${tt}px`, height: `${et}px`, viewBox: `0 0 ${tt} ${et}`, direction: "ltr", ref: Ht, children: /* @__PURE__ */ o.jsxs("g", { transform: `translate(${j.left},${j.top})`, children: [
|
|
411
|
+
q,
|
|
412
|
+
/* @__PURE__ */ o.jsx(Be, { areaSettings: ee, scaleX: a, scaleY: r, animate: n, isInView: c }),
|
|
412
413
|
/* @__PURE__ */ o.jsxs("g", { children: [
|
|
413
|
-
/* @__PURE__ */ o.jsx(Ke, { values:
|
|
414
|
-
|
|
415
|
-
|
|
414
|
+
/* @__PURE__ */ o.jsx(Ke, { values: Et.filter(Ai), y: Et.filter(Ci).map((e) => r(e)), x1: 0 - I, x2: f + j.right, styles: rt, classNames: ct, suffix: k, prefix: h, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: L, locale: N, padZeros: $ }),
|
|
415
|
+
Q,
|
|
416
|
+
he
|
|
416
417
|
] }),
|
|
417
|
-
/* @__PURE__ */ o.jsx("g", { children:
|
|
418
|
+
/* @__PURE__ */ o.jsx("g", { children: oe.map((e, d) => /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("text", { y: M, x: a(e), style: {
|
|
418
419
|
textAnchor: "middle"
|
|
419
|
-
}, className: "fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", dy: 15, children:
|
|
420
|
-
|
|
421
|
-
/* @__PURE__ */ o.jsx(V.path, { style:
|
|
420
|
+
}, className: "fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", dy: 15, children: He(e, l) }) }, d)) }),
|
|
421
|
+
pe,
|
|
422
|
+
/* @__PURE__ */ o.jsx(V.path, { style: ye, exit: de, variants: {
|
|
422
423
|
initial: {
|
|
423
424
|
opacity: 0,
|
|
424
|
-
d:
|
|
425
|
+
d: Pt(s) || ""
|
|
425
426
|
},
|
|
426
427
|
whileInView: {
|
|
427
|
-
opacity:
|
|
428
|
-
d:
|
|
428
|
+
opacity: fe,
|
|
429
|
+
d: Pt(s) || "",
|
|
429
430
|
transition: {
|
|
430
431
|
duration: n.duration
|
|
431
432
|
}
|
|
432
433
|
}
|
|
433
434
|
}, initial: "initial", animate: c ? "whileInView" : "initial" }),
|
|
434
|
-
|
|
435
|
+
Rt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
435
436
|
/* @__PURE__ */ o.jsx(V.path, { style: {
|
|
436
|
-
stroke:
|
|
437
|
+
stroke: w[0],
|
|
437
438
|
fill: "none",
|
|
438
|
-
strokeWidth:
|
|
439
|
+
strokeWidth: Rt
|
|
439
440
|
}, exit: {
|
|
440
441
|
opacity: 0,
|
|
441
442
|
transition: {
|
|
@@ -444,12 +445,12 @@ function xi(i) {
|
|
|
444
445
|
}, variants: {
|
|
445
446
|
initial: {
|
|
446
447
|
pathLength: 0,
|
|
447
|
-
d:
|
|
448
|
+
d: At(s) || "",
|
|
448
449
|
opacity: 1
|
|
449
450
|
},
|
|
450
451
|
whileInView: {
|
|
451
452
|
pathLength: 1,
|
|
452
|
-
d:
|
|
453
|
+
d: At(s) || "",
|
|
453
454
|
opacity: 1,
|
|
454
455
|
transition: {
|
|
455
456
|
duration: n.duration
|
|
@@ -457,9 +458,9 @@ function xi(i) {
|
|
|
457
458
|
}
|
|
458
459
|
}, initial: "initial", animate: c ? "whileInView" : "initial" }),
|
|
459
460
|
/* @__PURE__ */ o.jsx(V.path, { style: {
|
|
460
|
-
stroke:
|
|
461
|
+
stroke: w[1],
|
|
461
462
|
fill: "none",
|
|
462
|
-
strokeWidth:
|
|
463
|
+
strokeWidth: Rt
|
|
463
464
|
}, exit: {
|
|
464
465
|
opacity: 0,
|
|
465
466
|
transition: {
|
|
@@ -468,12 +469,12 @@ function xi(i) {
|
|
|
468
469
|
}, variants: {
|
|
469
470
|
initial: {
|
|
470
471
|
pathLength: 0,
|
|
471
|
-
d:
|
|
472
|
+
d: T(s) || "",
|
|
472
473
|
opacity: 1
|
|
473
474
|
},
|
|
474
475
|
whileInView: {
|
|
475
476
|
pathLength: 1,
|
|
476
|
-
d:
|
|
477
|
+
d: T(s) || "",
|
|
477
478
|
opacity: 1,
|
|
478
479
|
transition: {
|
|
479
480
|
duration: n.duration
|
|
@@ -481,64 +482,61 @@ function xi(i) {
|
|
|
481
482
|
}
|
|
482
483
|
}, initial: "initial", animate: c ? "whileInView" : "initial" })
|
|
483
484
|
] }) : null,
|
|
484
|
-
/* @__PURE__ */ o.jsx(V.path, { style:
|
|
485
|
+
/* @__PURE__ */ o.jsx(V.path, { style: xe, exit: ge, variants: {
|
|
485
486
|
initial: {
|
|
486
487
|
pathLength: 0,
|
|
487
|
-
d:
|
|
488
|
+
d: Ct(s) || "",
|
|
488
489
|
opacity: 1
|
|
489
490
|
},
|
|
490
491
|
whileInView: {
|
|
491
492
|
pathLength: 1,
|
|
492
|
-
d:
|
|
493
|
+
d: Ct(s) || "",
|
|
493
494
|
opacity: 1,
|
|
494
495
|
transition: {
|
|
495
496
|
duration: n.duration
|
|
496
497
|
}
|
|
497
498
|
}
|
|
498
499
|
}, initial: "initial", animate: c ? "whileInView" : "initial" }),
|
|
499
|
-
|
|
500
|
+
m ? /* @__PURE__ */ o.jsx("line", { y1: 0, y2: M, x1: a(m.date), x2: a(m.date), className: be("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", v?.mouseOverLine), style: g?.mouseOverLine }) : null,
|
|
501
|
+
ve,
|
|
502
|
+
qt ? /* @__PURE__ */ o.jsx(o.Fragment, { children: qt.map((e, d) => /* @__PURE__ */ o.jsx(qe, { text: e.text, color: e.color, y: r(e.value), x1: 0 - I, x2: f + j.right, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, d)) }) : null,
|
|
500
503
|
we,
|
|
501
|
-
ae ? /* @__PURE__ */ o.jsx(o.Fragment, { children: ae.map((e, y) => /* @__PURE__ */ o.jsx(qe, { text: e.text, color: e.color, y: r(e.value), x1: 0 - W, x2: f + w.right, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, y)) }) : null,
|
|
502
504
|
Me,
|
|
503
505
|
je,
|
|
504
|
-
|
|
505
|
-
Oe
|
|
506
|
+
Ae
|
|
506
507
|
] }) }),
|
|
507
|
-
|
|
508
|
+
Oe
|
|
508
509
|
] });
|
|
509
510
|
}
|
|
510
|
-
function gi(i) {
|
|
511
|
-
return i.layer;
|
|
512
|
-
}
|
|
513
511
|
function vi(i) {
|
|
514
|
-
return i.
|
|
512
|
+
return i.layer;
|
|
515
513
|
}
|
|
516
514
|
function wi(i) {
|
|
517
|
-
return i.
|
|
515
|
+
return i.position === "after";
|
|
518
516
|
}
|
|
519
517
|
function Mi(i) {
|
|
520
|
-
return i.
|
|
518
|
+
return i.layer;
|
|
521
519
|
}
|
|
522
520
|
function ji(i) {
|
|
523
|
-
return i
|
|
521
|
+
return i.position === "before";
|
|
524
522
|
}
|
|
525
523
|
function Ci(i) {
|
|
526
524
|
return i !== 0;
|
|
527
525
|
}
|
|
528
526
|
function Ai(i) {
|
|
529
|
-
return
|
|
527
|
+
return i !== 0;
|
|
530
528
|
}
|
|
531
529
|
function Oi(i) {
|
|
532
|
-
return i.date;
|
|
530
|
+
return !P(i.date) && !P(i.y);
|
|
533
531
|
}
|
|
534
532
|
function bi(i) {
|
|
535
|
-
return
|
|
533
|
+
return i.date;
|
|
536
534
|
}
|
|
537
535
|
function Li(i) {
|
|
538
536
|
return Math.max(i.y, i.yMax, i.yMin);
|
|
539
537
|
}
|
|
540
538
|
function Vi(i) {
|
|
541
|
-
return Math.
|
|
539
|
+
return Math.max(i.y, i.yMax, i.yMin);
|
|
542
540
|
}
|
|
543
541
|
function Di(i) {
|
|
544
542
|
return Math.min(i.y, i.yMax, i.yMin);
|
|
@@ -547,154 +545,154 @@ function ki(i) {
|
|
|
547
545
|
return Math.min(i.y, i.yMax, i.yMin);
|
|
548
546
|
}
|
|
549
547
|
function Ii(i) {
|
|
550
|
-
return
|
|
548
|
+
return Math.min(i.y, i.yMax, i.yMin);
|
|
551
549
|
}
|
|
552
|
-
function
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
customLayers:
|
|
611
|
-
|
|
612
|
-
} = i,
|
|
613
|
-
let Jt;
|
|
614
|
-
t[0] !== dt ? (Jt = dt === void 0 ? [] : dt, t[0] = dt, t[1] = Jt) : Jt = t[1];
|
|
615
|
-
const ye = Jt;
|
|
616
|
-
let M;
|
|
617
|
-
t[2] !== Q ? (M = Q === void 0 ? [] : Q, t[2] = Q, t[3] = M) : M = t[3];
|
|
618
|
-
const G = M, a = xe === void 0 ? !1 : xe, st = zt === void 0 ? !1 : zt, r = j === void 0 ? !1 : j, Kt = Ut === void 0 ? 0 : Ut;
|
|
619
|
-
let bt;
|
|
620
|
-
t[4] !== qt ? (bt = qt === void 0 ? [De.light.grays["gray-500"], De.light.grays["gray-500"]] : qt, t[4] = qt, t[5] = bt) : bt = t[5];
|
|
621
|
-
const Qt = bt, Zt = gt === void 0 ? De.primaryColors["blue-100"] : gt, _t = ge === void 0 ? 0.4 : ge, te = me === void 0 ? !1 : me, ee = fe === void 0 ? !1 : fe, Lt = vt === void 0 ? !1 : vt, L = x === void 0 ? "en" : x, Vt = g === void 0 ? 0 : g, Dt = R === void 0 ? 2 : R, rt = X === void 0 ? !0 : X;
|
|
622
|
-
let lt;
|
|
623
|
-
t[6] !== O ? (lt = O === void 0 ? [] : O, t[6] = O, t[7] = lt) : lt = t[7];
|
|
624
|
-
const kt = lt;
|
|
550
|
+
function Si(i) {
|
|
551
|
+
return !P(i.y);
|
|
552
|
+
}
|
|
553
|
+
function xn(i) {
|
|
554
|
+
const t = Re.c(106), {
|
|
555
|
+
data: x,
|
|
556
|
+
graphTitle: tt,
|
|
557
|
+
sources: et,
|
|
558
|
+
graphDescription: D,
|
|
559
|
+
height: k,
|
|
560
|
+
width: h,
|
|
561
|
+
footNote: l,
|
|
562
|
+
noOfXTicks: kt,
|
|
563
|
+
dateFormat: re,
|
|
564
|
+
showValues: le,
|
|
565
|
+
backgroundColor: It,
|
|
566
|
+
padding: I,
|
|
567
|
+
lineColor: ht,
|
|
568
|
+
leftMargin: St,
|
|
569
|
+
rightMargin: pt,
|
|
570
|
+
topMargin: $t,
|
|
571
|
+
bottomMargin: qt,
|
|
572
|
+
tooltip: Nt,
|
|
573
|
+
refValues: E,
|
|
574
|
+
highlightAreaSettings: n,
|
|
575
|
+
relativeHeight: Tt,
|
|
576
|
+
onSeriesMouseOver: yt,
|
|
577
|
+
graphID: Jt,
|
|
578
|
+
minValue: Kt,
|
|
579
|
+
maxValue: dt,
|
|
580
|
+
regressionLine: Wt,
|
|
581
|
+
showIntervalDots: ce,
|
|
582
|
+
showIntervalValues: me,
|
|
583
|
+
intervalLineStrokeWidth: Rt,
|
|
584
|
+
intervalLineColors: w,
|
|
585
|
+
intervalAreaColor: Ft,
|
|
586
|
+
intervalAreaOpacity: fe,
|
|
587
|
+
graphDownload: xt,
|
|
588
|
+
dataDownload: ue,
|
|
589
|
+
animate: Qt,
|
|
590
|
+
language: _t,
|
|
591
|
+
minHeight: gt,
|
|
592
|
+
strokeWidth: g,
|
|
593
|
+
showDots: v,
|
|
594
|
+
annotations: L,
|
|
595
|
+
customHighlightAreaSettings: S,
|
|
596
|
+
theme: N,
|
|
597
|
+
ariaLabel: $,
|
|
598
|
+
yAxisTitle: Ht,
|
|
599
|
+
noOfYTicks: vt,
|
|
600
|
+
minDate: c,
|
|
601
|
+
maxDate: p,
|
|
602
|
+
colorLegendTitle: te,
|
|
603
|
+
colorLegendColors: X,
|
|
604
|
+
colorLegendDomain: G,
|
|
605
|
+
curveType: wt,
|
|
606
|
+
styles: m,
|
|
607
|
+
classNames: u,
|
|
608
|
+
customLayers: Z,
|
|
609
|
+
numberDisplayOptions: y
|
|
610
|
+
} = i, it = kt === void 0 ? 10 : kt, Yt = re === void 0 ? "yyyy" : re, Mt = le === void 0 ? !1 : le, nt = It === void 0 ? !1 : It, j = St === void 0 ? 30 : St, ot = pt === void 0 ? 30 : pt, at = $t === void 0 ? 20 : $t, s = qt === void 0 ? 25 : qt;
|
|
625
611
|
let B;
|
|
626
|
-
t[
|
|
627
|
-
const
|
|
628
|
-
let
|
|
629
|
-
t[
|
|
630
|
-
const
|
|
631
|
-
let
|
|
612
|
+
t[0] !== E ? (B = E === void 0 ? [] : E, t[0] = E, t[1] = B) : B = t[1];
|
|
613
|
+
const jt = B;
|
|
614
|
+
let z;
|
|
615
|
+
t[2] !== n ? (z = n === void 0 ? [] : n, t[2] = n, t[3] = z) : z = t[3];
|
|
616
|
+
const ee = z, f = Wt === void 0 ? !1 : Wt, M = ce === void 0 ? !1 : ce, ie = me === void 0 ? !1 : me, ne = Rt === void 0 ? 0 : Rt;
|
|
617
|
+
let C;
|
|
618
|
+
t[4] !== w ? (C = w === void 0 ? [Ve.light.grays["gray-500"], Ve.light.grays["gray-500"]] : w, t[4] = w, t[5] = C) : C = t[5];
|
|
619
|
+
const U = C, a = Ft === void 0 ? Ve.primaryColors["blue-100"] : Ft, st = fe === void 0 ? 0.4 : fe, r = xt === void 0 ? !1 : xt, Ct = ue === void 0 ? !1 : ue, At = Qt === void 0 ? !1 : Qt, T = _t === void 0 ? "en" : _t, Pt = gt === void 0 ? 0 : gt, Et = g === void 0 ? 2 : g, oe = v === void 0 ? !0 : v;
|
|
620
|
+
let Xt;
|
|
621
|
+
t[6] !== L ? (Xt = L === void 0 ? [] : L, t[6] = L, t[7] = Xt) : Xt = t[7];
|
|
622
|
+
const Gt = Xt;
|
|
623
|
+
let q;
|
|
624
|
+
t[8] !== S ? (q = S === void 0 ? [] : S, t[8] = S, t[9] = q) : q = t[9];
|
|
625
|
+
const Ot = q, bt = N === void 0 ? "light" : N, rt = vt === void 0 ? 5 : vt, Lt = wt === void 0 ? "curve" : wt;
|
|
626
|
+
let lt;
|
|
627
|
+
t[10] !== Z ? (lt = Z === void 0 ? [] : Z, t[10] = Z, t[11] = lt) : lt = t[11];
|
|
628
|
+
const ct = lt, [J, ae] = Ut(0), [mt, se] = Ut(0), Vt = De(null), K = De(null);
|
|
629
|
+
let ft, ut;
|
|
632
630
|
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = () => {
|
|
633
|
-
const
|
|
634
|
-
|
|
631
|
+
const Zt = new ResizeObserver((Bt) => {
|
|
632
|
+
ae(Bt[0].target.clientWidth || 620), se(Bt[0].target.clientHeight || 480);
|
|
635
633
|
});
|
|
636
|
-
return
|
|
637
|
-
},
|
|
638
|
-
const
|
|
639
|
-
let
|
|
640
|
-
t[14] !==
|
|
641
|
-
title: h?.title,
|
|
642
|
-
description: h?.description
|
|
643
|
-
}, classNames: {
|
|
634
|
+
return Vt.current && Zt.observe(Vt.current), () => Zt.disconnect();
|
|
635
|
+
}, ut = [], t[12] = ft, t[13] = ut) : (ft = t[12], ut = t[13]), We(ft, ut);
|
|
636
|
+
const Dt = u?.graphContainer, W = m?.graphContainer;
|
|
637
|
+
let R;
|
|
638
|
+
t[14] !== u?.description || t[15] !== u?.title || t[16] !== x || t[17] !== Ct || t[18] !== D || t[19] !== r || t[20] !== tt || t[21] !== m?.description || t[22] !== m?.title || t[23] !== h ? (R = tt || D || r || Ct ? /* @__PURE__ */ o.jsx(ui, { styles: {
|
|
644
639
|
title: m?.title,
|
|
645
640
|
description: m?.description
|
|
646
|
-
},
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
641
|
+
}, classNames: {
|
|
642
|
+
title: u?.title,
|
|
643
|
+
description: u?.description
|
|
644
|
+
}, graphTitle: tt, graphDescription: D, width: h, graphDownload: r ? K : void 0, dataDownload: Ct ? x.map(Ri).filter(Wi).length > 0 ? x.map(Ti).filter(Ni) : x.filter($i) : null }) : null, t[14] = u?.description, t[15] = u?.title, t[16] = x, t[17] = Ct, t[18] = D, t[19] = r, t[20] = tt, t[21] = m?.description, t[22] = m?.title, t[23] = h, t[24] = R) : R = t[24];
|
|
645
|
+
let F;
|
|
646
|
+
t[25] !== u?.colorLegend || t[26] !== X || t[27] !== G || t[28] !== te || t[29] !== x.length || t[30] !== h ? (F = X && G && x.length > 0 ? /* @__PURE__ */ o.jsx(hi, { width: h, colorLegendTitle: te, colors: X, colorDomain: G, showNAColor: !1, className: u?.colorLegend }) : null, t[25] = u?.colorLegend, t[26] = X, t[27] = G, t[28] = te, t[29] = x.length, t[30] = h, t[31] = F) : F = t[31];
|
|
647
|
+
let A;
|
|
648
|
+
t[32] !== x.length ? (A = x.length === 0 && /* @__PURE__ */ o.jsx(pi, {}), t[32] = x.length, t[33] = A) : A = t[33];
|
|
649
|
+
let H;
|
|
650
|
+
t[34] !== At || t[35] !== Gt || t[36] !== s || t[37] !== u || t[38] !== Lt || t[39] !== Ot || t[40] !== ct || t[41] !== x || t[42] !== Yt || t[43] !== ee || t[44] !== a || t[45] !== st || t[46] !== U || t[47] !== ne || t[48] !== T || t[49] !== j || t[50] !== ht || t[51] !== p || t[52] !== dt || t[53] !== c || t[54] !== Kt || t[55] !== it || t[56] !== rt || t[57] !== y?.locale || t[58] !== y?.padZeros || t[59] !== y?.precision || t[60] !== y?.prefix || t[61] !== y?.suffix || t[62] !== yt || t[63] !== jt || t[64] !== f || t[65] !== ot || t[66] !== oe || t[67] !== M || t[68] !== ie || t[69] !== Mt || t[70] !== Et || t[71] !== m || t[72] !== mt || t[73] !== J || t[74] !== Nt || t[75] !== at || t[76] !== Ht ? (H = J && mt && x.length > 0 ? /* @__PURE__ */ o.jsx(gi, { data: x, lineColor: ht || Ve.primaryColors["blue-600"], width: J, height: mt, dateFormat: Yt, showValues: Mt, noOfXTicks: it ?? xi(J), leftMargin: j, rightMargin: ot, topMargin: at, bottomMargin: s, tooltip: Nt, highlightAreaSettings: ee, onSeriesMouseOver: yt, refValues: jt, minValue: Kt, maxValue: dt, animate: At === !0 ? {
|
|
653
651
|
duration: 0.5,
|
|
654
652
|
once: !0,
|
|
655
653
|
amount: 0.5
|
|
656
|
-
} :
|
|
654
|
+
} : At || {
|
|
657
655
|
duration: 0,
|
|
658
656
|
once: !0,
|
|
659
657
|
amount: 0
|
|
660
|
-
}, rtl:
|
|
661
|
-
let
|
|
662
|
-
t[
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
] }), t[
|
|
666
|
-
let
|
|
667
|
-
t[
|
|
668
|
-
footnote: h?.footnote,
|
|
669
|
-
source: h?.source
|
|
670
|
-
}, classNames: {
|
|
658
|
+
}, rtl: T === "he" || T === "ar", strokeWidth: Et, showDots: oe, annotations: Gt, customHighlightAreaSettings: Ot, regressionLine: f, showIntervalDots: M, showIntervalValues: ie, intervalLineStrokeWidth: ne, intervalLineColors: U, intervalAreaColor: a, intervalAreaOpacity: st, yAxisTitle: Ht, noOfYTicks: rt, minDate: c, maxDate: p, curveType: Lt, styles: m, classNames: u, customLayers: ct, locale: y?.locale || "en", padZeros: y?.padZeros || !1, suffix: y?.suffix || "", prefix: y?.prefix || "", precision: y?.precision ?? 2 }) : null, t[34] = At, t[35] = Gt, t[36] = s, t[37] = u, t[38] = Lt, t[39] = Ot, t[40] = ct, t[41] = x, t[42] = Yt, t[43] = ee, t[44] = a, t[45] = st, t[46] = U, t[47] = ne, t[48] = T, t[49] = j, t[50] = ht, t[51] = p, t[52] = dt, t[53] = c, t[54] = Kt, t[55] = it, t[56] = rt, t[57] = y?.locale, t[58] = y?.padZeros, t[59] = y?.precision, t[60] = y?.prefix, t[61] = y?.suffix, t[62] = yt, t[63] = jt, t[64] = f, t[65] = ot, t[66] = oe, t[67] = M, t[68] = ie, t[69] = Mt, t[70] = Et, t[71] = m, t[72] = mt, t[73] = J, t[74] = Nt, t[75] = at, t[76] = Ht, t[77] = H) : H = t[77];
|
|
659
|
+
let Y;
|
|
660
|
+
t[78] !== A || t[79] !== H ? (Y = /* @__PURE__ */ o.jsxs(yi, { ref: Vt, children: [
|
|
661
|
+
A,
|
|
662
|
+
H
|
|
663
|
+
] }), t[78] = A, t[79] = H, t[80] = Y) : Y = t[80];
|
|
664
|
+
let O;
|
|
665
|
+
t[81] !== u?.footnote || t[82] !== u?.source || t[83] !== l || t[84] !== et || t[85] !== m?.footnote || t[86] !== m?.source || t[87] !== h ? (O = et || l ? /* @__PURE__ */ o.jsx(fi, { styles: {
|
|
671
666
|
footnote: m?.footnote,
|
|
672
667
|
source: m?.source
|
|
673
|
-
},
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
668
|
+
}, classNames: {
|
|
669
|
+
footnote: u?.footnote,
|
|
670
|
+
source: u?.source
|
|
671
|
+
}, sources: et, footNote: l, width: h }) : null, t[81] = u?.footnote, t[82] = u?.source, t[83] = l, t[84] = et, t[85] = m?.footnote, t[86] = m?.source, t[87] = h, t[88] = O) : O = t[88];
|
|
672
|
+
let Q;
|
|
673
|
+
return t[89] !== $ || t[90] !== nt || t[91] !== Jt || t[92] !== k || t[93] !== T || t[94] !== Pt || t[95] !== I || t[96] !== Tt || t[97] !== Dt || t[98] !== W || t[99] !== R || t[100] !== F || t[101] !== Y || t[102] !== O || t[103] !== bt || t[104] !== h ? (Q = /* @__PURE__ */ o.jsxs(di, { className: Dt, style: W, id: Jt, ref: K, "aria-label": $, backgroundColor: nt, theme: bt, language: T, minHeight: Pt, width: h, height: k, relativeHeight: Tt, padding: I, children: [
|
|
674
|
+
R,
|
|
675
|
+
F,
|
|
677
676
|
Y,
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
] }), t[88] = c, t[89] = Ot, t[90] = pt, t[91] = l, t[92] = L, t[93] = Vt, t[94] = ht, t[95] = re, t[96] = ut, t[97] = Ft, t[98] = H, t[99] = Y, t[100] = $, t[101] = N, t[102] = St, t[103] = p, t[104] = U) : U = t[104], U;
|
|
681
|
-
}
|
|
682
|
-
function Si(i) {
|
|
683
|
-
return i !== void 0;
|
|
677
|
+
O
|
|
678
|
+
] }), t[89] = $, t[90] = nt, t[91] = Jt, t[92] = k, t[93] = T, t[94] = Pt, t[95] = I, t[96] = Tt, t[97] = Dt, t[98] = W, t[99] = R, t[100] = F, t[101] = Y, t[102] = O, t[103] = bt, t[104] = h, t[105] = Q) : Q = t[105], Q;
|
|
684
679
|
}
|
|
685
680
|
function $i(i) {
|
|
686
681
|
return i !== void 0;
|
|
687
682
|
}
|
|
688
683
|
function Ni(i) {
|
|
689
|
-
return i
|
|
684
|
+
return i !== void 0;
|
|
690
685
|
}
|
|
691
686
|
function Ti(i) {
|
|
692
|
-
return i
|
|
687
|
+
return i.data;
|
|
693
688
|
}
|
|
694
689
|
function Wi(i) {
|
|
690
|
+
return i !== void 0;
|
|
691
|
+
}
|
|
692
|
+
function Ri(i) {
|
|
695
693
|
return i.data;
|
|
696
694
|
}
|
|
697
695
|
export {
|
|
698
|
-
|
|
696
|
+
xn as LineChartWithConfidenceInterval
|
|
699
697
|
};
|
|
700
698
|
//# sourceMappingURL=LineChartWithConfidenceInterval.js.map
|