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