@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/ChoroplethMap.js
CHANGED
|
@@ -1,467 +1,469 @@
|
|
|
1
|
-
import { j as t, m as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { g as
|
|
4
|
-
import { w as
|
|
5
|
-
import { f as
|
|
6
|
-
import { i as
|
|
7
|
-
import { i as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { i as
|
|
10
|
-
import { n as
|
|
11
|
-
import { T as
|
|
12
|
-
import { c as
|
|
13
|
-
import { X as
|
|
14
|
-
import { D as
|
|
15
|
-
import { o as
|
|
16
|
-
import { t as
|
|
17
|
-
import { s as
|
|
18
|
-
import { m as
|
|
19
|
-
import { u as
|
|
20
|
-
import { A as
|
|
21
|
-
import { GraphFooter as
|
|
22
|
-
import { GraphHeader as
|
|
23
|
-
import { Colors as
|
|
24
|
-
import { f as
|
|
25
|
-
import { g as
|
|
26
|
-
import { g as
|
|
27
|
-
import { a as
|
|
28
|
-
function
|
|
1
|
+
import { j as t, m as At, c as Ft } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { useMemo as Mt, useState as b, useRef as Pe, useEffect as ze, useEffectEvent as St } from "react";
|
|
3
|
+
import { g as Lt, N as Tt } from "./getSliderMarks-X-_goqH9.js";
|
|
4
|
+
import { w as $t } from "./Spinner-B2IIKg9r.js";
|
|
5
|
+
import { f as Ht, p as Gt } from "./parse-Dv4of-PN.js";
|
|
6
|
+
import { i as Ut } from "./index-Bwrro8-q.js";
|
|
7
|
+
import { i as Ot, z as Vt, a as Rt, g as qt, b as Xt, c as Yt, d as Jt, e as Kt, f as Zt } from "./index-CKpKc9DR.js";
|
|
8
|
+
import { _ as Et } from "./Typography-BO0gQDIT.js";
|
|
9
|
+
import { i as Qt } from "./index-DCsFBfJ_.js";
|
|
10
|
+
import { n as eo } from "./numberFormattingFunction-DqMf_v1m.js";
|
|
11
|
+
import { T as to } from "./Tooltip-Bj-s__cI.js";
|
|
12
|
+
import { c as oo } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
13
|
+
import { X as ro, E as ao, P as no, e as io } from "./index-ApTBN0kp.js";
|
|
14
|
+
import { D as so } from "./DetailsModal-B2XBWR7w.js";
|
|
15
|
+
import { o as lo } from "./ordinal-CHaxGJ_l.js";
|
|
16
|
+
import { t as co } from "./threshold-DFfqcDMa.js";
|
|
17
|
+
import { s as Ct } from "./select-DKy99ogv.js";
|
|
18
|
+
import { m as st } from "./proxy-BsxtcZKa.js";
|
|
19
|
+
import { u as mo } from "./use-in-view-KOXq5Kmc.js";
|
|
20
|
+
import { A as po } from "./index-Cv_5q6Rb.js";
|
|
21
|
+
import { GraphFooter as uo } from "./GraphFooter.js";
|
|
22
|
+
import { GraphHeader as ho } from "./GraphHeader.js";
|
|
23
|
+
import { Colors as lt } from "./Colors.js";
|
|
24
|
+
import { f as Bt } from "./fetchAndParseData-BAXhgTDM.js";
|
|
25
|
+
import { g as fo } from "./getUniqValue-DsqSii6M.js";
|
|
26
|
+
import { g as go } from "./getJenks-DTCcQSDi.js";
|
|
27
|
+
import { a as yo, G as vo } from "./GraphContainer-B8ZqOzKI.js";
|
|
28
|
+
function xo(p) {
|
|
29
29
|
const {
|
|
30
30
|
data: e,
|
|
31
31
|
colorDomain: a,
|
|
32
32
|
colors: n,
|
|
33
33
|
mapData: F,
|
|
34
|
-
colorLegendTitle:
|
|
35
|
-
categorical:
|
|
34
|
+
colorLegendTitle: N,
|
|
35
|
+
categorical: L,
|
|
36
36
|
height: y,
|
|
37
|
-
width:
|
|
37
|
+
width: u,
|
|
38
38
|
scale: f,
|
|
39
|
-
centerPoint:
|
|
40
|
-
tooltip:
|
|
41
|
-
mapBorderWidth:
|
|
42
|
-
mapBorderColor:
|
|
39
|
+
centerPoint: T,
|
|
40
|
+
tooltip: te,
|
|
41
|
+
mapBorderWidth: R,
|
|
42
|
+
mapBorderColor: oe,
|
|
43
43
|
mapNoDataColor: ye,
|
|
44
|
-
onSeriesMouseOver:
|
|
44
|
+
onSeriesMouseOver: re,
|
|
45
45
|
showColorScale: ve,
|
|
46
|
-
zoomScaleExtend:
|
|
47
|
-
zoomTranslateExtend:
|
|
48
|
-
highlightedIds:
|
|
49
|
-
onSeriesMouseClick:
|
|
46
|
+
zoomScaleExtend: We,
|
|
47
|
+
zoomTranslateExtend: _e,
|
|
48
|
+
highlightedIds: j,
|
|
49
|
+
onSeriesMouseClick: ae,
|
|
50
50
|
mapProperty: g,
|
|
51
51
|
resetSelectionOnDoubleClick: xe,
|
|
52
|
-
detailsOnClick:
|
|
53
|
-
styles:
|
|
54
|
-
classNames:
|
|
55
|
-
mapProjection:
|
|
56
|
-
zoomInteraction:
|
|
57
|
-
animate:
|
|
58
|
-
dimmedOpacity:
|
|
59
|
-
customLayers:
|
|
52
|
+
detailsOnClick: q,
|
|
53
|
+
styles: Ae,
|
|
54
|
+
classNames: ne,
|
|
55
|
+
mapProjection: S,
|
|
56
|
+
zoomInteraction: O,
|
|
57
|
+
animate: M,
|
|
58
|
+
dimmedOpacity: E,
|
|
59
|
+
customLayers: ie,
|
|
60
60
|
collapseColorScaleByDefault: be,
|
|
61
|
-
zoomAndCenterByHighlightedIds:
|
|
62
|
-
projectionRotate:
|
|
63
|
-
rewindCoordinatesInMapData:
|
|
64
|
-
overlayMapData:
|
|
65
|
-
overlayMapBorderColor:
|
|
66
|
-
overlayMapBorderWidth:
|
|
67
|
-
|
|
61
|
+
zoomAndCenterByHighlightedIds: je,
|
|
62
|
+
projectionRotate: $,
|
|
63
|
+
rewindCoordinatesInMapData: X,
|
|
64
|
+
overlayMapData: Y,
|
|
65
|
+
overlayMapBorderColor: Fe,
|
|
66
|
+
overlayMapBorderWidth: Le,
|
|
67
|
+
locale: ke
|
|
68
|
+
} = p, x = Mt(() => X ? Ot(F, {
|
|
68
69
|
reverse: !0
|
|
69
|
-
}) : F, [F,
|
|
70
|
+
}) : F, [F, X]), De = Mt(() => !X || !Y ? Y : Ot(Y, {
|
|
70
71
|
reverse: !0
|
|
71
|
-
}), [
|
|
72
|
-
once:
|
|
73
|
-
amount:
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
const o =
|
|
77
|
-
if (
|
|
78
|
-
if (
|
|
79
|
-
const
|
|
80
|
-
return
|
|
81
|
-
},
|
|
82
|
-
transform:
|
|
72
|
+
}), [Y, X]), [i, l] = b(void 0), se = Pe(null), [Te, we] = b(be === void 0 ? !(u < 680) : !be), [le, H] = b(void 0), [B, J] = b(void 0), [K, ce] = b(void 0), [Ce, h] = b(void 0), G = Pe(null), k = mo(G, {
|
|
73
|
+
once: M.once,
|
|
74
|
+
amount: M.amount
|
|
75
|
+
}), Z = Pe(null), I = L ? lo().domain(a).range(n) : co().domain(a).range(n);
|
|
76
|
+
ze(() => {
|
|
77
|
+
const o = Ct(Z.current), r = Ct(G.current), v = (d) => {
|
|
78
|
+
if (O === "noZoom") return !1;
|
|
79
|
+
if (O === "button") return !d.type.includes("wheel");
|
|
80
|
+
const Oe = d.type === "wheel", w = d.type.startsWith("touch"), W = d.type === "mousedown" || d.type === "mousemove";
|
|
81
|
+
return w ? !0 : Oe ? O === "scroll" ? !0 : d.ctrlKey : W && !d.button && !d.ctrlKey;
|
|
82
|
+
}, D = Vt().scaleExtent(We).translateExtent(_e || [[-20, -20], [u + 20, y + 20]]).filter(v).on("zoom", ({
|
|
83
|
+
transform: d
|
|
83
84
|
}) => {
|
|
84
|
-
o.attr("transform",
|
|
85
|
+
o.attr("transform", d);
|
|
85
86
|
});
|
|
86
|
-
r.call(
|
|
87
|
-
}, [y,
|
|
88
|
-
const
|
|
87
|
+
r.call(D), se.current = D;
|
|
88
|
+
}, [y, u, O]);
|
|
89
|
+
const U = Rt({
|
|
89
90
|
...x,
|
|
90
|
-
features:
|
|
91
|
+
features: je ? x.features.filter(
|
|
91
92
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
92
|
-
(o) => (
|
|
93
|
+
(o) => (j || []).length === 0 || j?.indexOf(o.properties[g]) !== -1
|
|
93
94
|
) : x.features
|
|
94
|
-
}),
|
|
95
|
+
}), z = Qt({
|
|
95
96
|
...x,
|
|
96
|
-
features:
|
|
97
|
+
features: je ? x.features.filter(
|
|
97
98
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
98
|
-
(o) => (
|
|
99
|
+
(o) => (j || []).length === 0 || j?.indexOf(o.properties[g]) !== -1
|
|
99
100
|
) : x.features
|
|
100
|
-
}),
|
|
101
|
-
if (!
|
|
102
|
-
|
|
101
|
+
}), Ne = (U[2] - U[0]) * 1.15, Me = (U[3] - U[1]) * 1.15, Se = u * 190 / 960 * 360 / Ne, de = y * 190 / 678 * 180 / Me, P = f * Math.min(Se, de), me = S === "mercator" ? qt().rotate($).center(T || z.geometry.coordinates).translate([u / 2, y / 2]).scale(P) : S === "equalEarth" ? Xt().rotate($).center(T || z.geometry.coordinates).translate([u / 2, y / 2]).scale(P) : S === "naturalEarth" ? Yt().rotate($).center(T || z.geometry.coordinates).translate([u / 2, y / 2]).scale(P) : S === "orthographic" ? Jt().rotate($).center(T || z.geometry.coordinates).translate([u / 2, y / 2]).scale(P) : Kt().rotate($).center(T || z.geometry.coordinates).translate([u / 2, y / 2]).scale(P), V = Zt().projection(me), Q = (o) => {
|
|
102
|
+
if (!G.current || !se.current) return;
|
|
103
|
+
Ct(G.current).call(se.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
|
|
103
104
|
};
|
|
104
105
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
105
106
|
/* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
|
|
106
|
-
/* @__PURE__ */ t.jsx(
|
|
107
|
-
|
|
107
|
+
/* @__PURE__ */ t.jsx(st.svg, { width: `${u}px`, height: `${y}px`, viewBox: `0 0 ${u} ${y}`, ref: G, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: Z, children: [
|
|
108
|
+
ie.filter((o) => o.position === "before").map((o) => o.layer),
|
|
108
109
|
x.features.map((o, r) => {
|
|
109
110
|
if (!o.properties?.[g]) return null;
|
|
110
|
-
const v =
|
|
111
|
-
return v ? /* @__PURE__ */ t.jsx(
|
|
112
|
-
stroke:
|
|
113
|
-
strokeWidth:
|
|
111
|
+
const v = V(o);
|
|
112
|
+
return v ? /* @__PURE__ */ t.jsx(st.g, { opacity: i ? E : j ? j.indexOf(o.properties[g]) !== -1 ? 1 : E : 1, children: /* @__PURE__ */ t.jsx("path", { d: v, style: {
|
|
113
|
+
stroke: oe,
|
|
114
|
+
strokeWidth: R,
|
|
114
115
|
fill: ye,
|
|
115
116
|
vectorEffect: "non-scaling-stroke"
|
|
116
117
|
} }) }, r) : null;
|
|
117
118
|
}),
|
|
118
|
-
/* @__PURE__ */ t.jsx(
|
|
119
|
+
/* @__PURE__ */ t.jsx(po, { children: e.map((o) => {
|
|
119
120
|
const r = x.features.findIndex(
|
|
120
121
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
121
|
-
(
|
|
122
|
+
(d) => o.id === d.properties[g]
|
|
122
123
|
);
|
|
123
124
|
if (r === -1) return null;
|
|
124
|
-
const v =
|
|
125
|
+
const v = V(x.features[r]);
|
|
125
126
|
if (!v) return null;
|
|
126
|
-
const
|
|
127
|
+
const D = oo(o.x) ? ye : (
|
|
127
128
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
128
|
-
|
|
129
|
+
I(o.x)
|
|
129
130
|
);
|
|
130
|
-
return /* @__PURE__ */ t.jsx(
|
|
131
|
+
return /* @__PURE__ */ t.jsx(st.g, { className: "undp-map-shapes", variants: {
|
|
131
132
|
initial: {
|
|
132
133
|
opacity: 0
|
|
133
134
|
},
|
|
134
135
|
whileInView: {
|
|
135
|
-
opacity:
|
|
136
|
+
opacity: i ? i === D ? 1 : E : j ? j.indexOf(o.id) !== -1 ? 1 : E : 1,
|
|
136
137
|
transition: {
|
|
137
|
-
duration:
|
|
138
|
+
duration: M.duration
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
|
-
}, initial: "initial", animate:
|
|
141
|
+
}, initial: "initial", animate: k ? "whileInView" : "initial", exit: {
|
|
141
142
|
opacity: 0,
|
|
142
143
|
transition: {
|
|
143
|
-
duration:
|
|
144
|
+
duration: M.duration
|
|
144
145
|
}
|
|
145
|
-
}, onMouseEnter: (
|
|
146
|
-
|
|
147
|
-
}, onMouseMove: (
|
|
148
|
-
|
|
146
|
+
}, onMouseEnter: (d) => {
|
|
147
|
+
J(o), h(d.clientY), ce(d.clientX), re?.(o);
|
|
148
|
+
}, onMouseMove: (d) => {
|
|
149
|
+
J(o), h(d.clientY), ce(d.clientX);
|
|
149
150
|
}, onMouseLeave: () => {
|
|
150
|
-
|
|
151
|
+
J(void 0), ce(void 0), h(void 0), re?.(void 0);
|
|
151
152
|
}, onClick: () => {
|
|
152
|
-
(
|
|
153
|
-
}, children: /* @__PURE__ */ t.jsx(
|
|
153
|
+
(ae || q) && (Ut(le, o) && xe ? (H(void 0), ae?.(void 0)) : (H(o), ae?.(o)));
|
|
154
|
+
}, children: /* @__PURE__ */ t.jsx(st.path, { d: v, variants: {
|
|
154
155
|
initial: {
|
|
155
|
-
fill:
|
|
156
|
+
fill: D,
|
|
156
157
|
opacity: 0
|
|
157
158
|
},
|
|
158
159
|
whileInView: {
|
|
159
|
-
fill:
|
|
160
|
+
fill: D,
|
|
160
161
|
opacity: 1,
|
|
161
162
|
transition: {
|
|
162
|
-
duration:
|
|
163
|
+
duration: M.duration
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
|
-
}, initial: "initial", animate:
|
|
166
|
+
}, initial: "initial", animate: k ? "whileInView" : "initial", exit: {
|
|
166
167
|
opacity: 0,
|
|
167
168
|
transition: {
|
|
168
|
-
duration:
|
|
169
|
+
duration: M.duration
|
|
169
170
|
}
|
|
170
171
|
}, style: {
|
|
171
|
-
stroke:
|
|
172
|
-
strokeWidth:
|
|
172
|
+
stroke: oe,
|
|
173
|
+
strokeWidth: R,
|
|
173
174
|
vectorEffect: "non-scaling-stroke"
|
|
174
175
|
} }, `${o.id}`) }, o.id);
|
|
175
176
|
}) }),
|
|
176
|
-
|
|
177
|
+
B ? x.features.filter(
|
|
177
178
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
178
|
-
(o) => o.properties[g] ===
|
|
179
|
-
).map((o, r) => /* @__PURE__ */ t.jsx("path", { d:
|
|
179
|
+
(o) => o.properties[g] === B.id
|
|
180
|
+
).map((o, r) => /* @__PURE__ */ t.jsx("path", { d: V(o) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
|
|
180
181
|
fill: "none",
|
|
181
182
|
fillOpacity: 0,
|
|
182
183
|
strokeWidth: "0.5",
|
|
183
184
|
vectorEffect: "non-scaling-stroke"
|
|
184
185
|
} }, r)) : null,
|
|
185
|
-
|
|
186
|
-
const v =
|
|
186
|
+
De?.features.map((o, r) => {
|
|
187
|
+
const v = V(o);
|
|
187
188
|
return v ? /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("path", { d: v, style: {
|
|
188
|
-
stroke:
|
|
189
|
-
strokeWidth:
|
|
189
|
+
stroke: Fe || oe,
|
|
190
|
+
strokeWidth: Le || R + 1,
|
|
190
191
|
fill: "none",
|
|
191
192
|
pointerEvents: "none",
|
|
192
193
|
vectorEffect: "non-scaling-stroke"
|
|
193
194
|
} }) }, r) : null;
|
|
194
195
|
}),
|
|
195
|
-
|
|
196
|
+
ie.filter((o) => o.position === "after").map((o) => o.layer)
|
|
196
197
|
] }) }),
|
|
197
|
-
ve === !1 ? null : /* @__PURE__ */ t.jsx("div", { className:
|
|
198
|
+
ve === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: At("absolute left-4 bottom-4 map-color-legend", ne?.colorLegend), children: Te ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
198
199
|
/* @__PURE__ */ t.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
|
|
199
|
-
|
|
200
|
-
}, children: /* @__PURE__ */ t.jsx(
|
|
200
|
+
we(!1);
|
|
201
|
+
}, children: /* @__PURE__ */ t.jsx(ro, {}) }),
|
|
201
202
|
/* @__PURE__ */ t.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
|
|
202
|
-
width:
|
|
203
|
+
width: L ? void 0 : "340px"
|
|
203
204
|
}, children: [
|
|
204
|
-
|
|
205
|
+
N && N !== "" ? /* @__PURE__ */ t.jsx(Et, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
|
|
205
206
|
display: "-webkit-box",
|
|
206
207
|
WebkitLineClamp: "1",
|
|
207
208
|
WebkitBoxOrient: "vertical"
|
|
208
|
-
}, children:
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
}, children: N }) : null,
|
|
210
|
+
L ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: a.map((o, r) => /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
|
|
211
|
+
l(n[r % n.length]);
|
|
211
212
|
}, onMouseLeave: () => {
|
|
212
|
-
|
|
213
|
+
l(void 0);
|
|
213
214
|
}, children: [
|
|
214
215
|
/* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
|
|
215
216
|
backgroundColor: n[r % n.length]
|
|
216
217
|
} }),
|
|
217
|
-
/* @__PURE__ */ t.jsx(
|
|
218
|
+
/* @__PURE__ */ t.jsx(Et, { size: "sm", marginBottom: "none", leading: "none", children: o })
|
|
218
219
|
] }, r)) }) : /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
|
|
219
220
|
a.map((o, r) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
|
|
220
|
-
|
|
221
|
+
l(n[r]);
|
|
221
222
|
}, onMouseLeave: () => {
|
|
222
|
-
|
|
223
|
+
l(void 0);
|
|
223
224
|
}, className: "cursor-pointer", children: [
|
|
224
|
-
/* @__PURE__ */ t.jsx("rect", { x: r * 320 / n.length + 1, y: 1, width: 320 / n.length - 2, height: 8, className:
|
|
225
|
+
/* @__PURE__ */ t.jsx("rect", { x: r * 320 / n.length + 1, y: 1, width: 320 / n.length - 2, height: 8, className: i === n[r] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
|
|
225
226
|
fill: n[r],
|
|
226
|
-
...
|
|
227
|
+
...i === n[r] ? {} : {
|
|
227
228
|
stroke: n[r]
|
|
228
229
|
}
|
|
229
230
|
} }),
|
|
230
231
|
/* @__PURE__ */ t.jsx("text", { x: (r + 1) * 320 / n.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
|
|
231
232
|
textAnchor: "middle"
|
|
232
|
-
}, children:
|
|
233
|
+
}, children: eo(o, "NA", void 0, void 0, void 0, ke) })
|
|
233
234
|
] }, r)),
|
|
234
235
|
/* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("rect", { onMouseOver: () => {
|
|
235
|
-
|
|
236
|
+
l(n[a.length]);
|
|
236
237
|
}, onMouseLeave: () => {
|
|
237
|
-
|
|
238
|
-
}, x: a.length * 320 / n.length + 1, y: 1, width: 320 / n.length - 2, height: 8, className: `cursor-pointer ${
|
|
238
|
+
l(void 0);
|
|
239
|
+
}, x: a.length * 320 / n.length + 1, y: 1, width: 320 / n.length - 2, height: 8, className: `cursor-pointer ${i === n[a.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
|
|
239
240
|
fill: n[a.length],
|
|
240
|
-
...
|
|
241
|
+
...i === n[a.length] ? {} : {
|
|
241
242
|
stroke: n[a.length]
|
|
242
243
|
}
|
|
243
244
|
} }) })
|
|
244
245
|
] }) })
|
|
245
246
|
] })
|
|
246
|
-
] }) : /* @__PURE__ */ t.jsx("button", { type: "button", className: "
|
|
247
|
-
|
|
248
|
-
}, children: /* @__PURE__ */ t.jsx(
|
|
249
|
-
|
|
250
|
-
/* @__PURE__ */ t.jsx("button", { onClick: () =>
|
|
251
|
-
/* @__PURE__ */ t.jsx("button", { onClick: () =>
|
|
247
|
+
] }) : /* @__PURE__ */ t.jsx("button", { type: "button", className: "p-1 border-0 rounded-[2px] text-primary-gray-700 bg-primary-gray-300 dark:bg-primary-gray-500 map-legend-button", onClick: () => {
|
|
248
|
+
we(!0);
|
|
249
|
+
}, children: /* @__PURE__ */ t.jsx(ao, {}) }) }),
|
|
250
|
+
O === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
|
|
251
|
+
/* @__PURE__ */ t.jsx("button", { onClick: () => Q("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
|
|
252
|
+
/* @__PURE__ */ t.jsx("button", { onClick: () => Q("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
|
|
252
253
|
] })
|
|
253
254
|
] }),
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
q && le !== void 0 ? /* @__PURE__ */ t.jsx(so, { body: q, data: le, setData: H, className: ne?.modal }) : null,
|
|
256
|
+
B && te && K && Ce ? /* @__PURE__ */ t.jsx(to, { data: B, body: te, xPos: K, yPos: Ce, backgroundStyle: Ae?.tooltip, className: ne?.tooltip }) : null
|
|
256
257
|
] });
|
|
257
258
|
}
|
|
258
|
-
function
|
|
259
|
-
const e =
|
|
259
|
+
function or(p) {
|
|
260
|
+
const e = Ft.c(136), {
|
|
260
261
|
data: a,
|
|
261
262
|
mapData: n,
|
|
262
263
|
graphTitle: F,
|
|
263
|
-
colors:
|
|
264
|
-
sources:
|
|
264
|
+
colors: N,
|
|
265
|
+
sources: L,
|
|
265
266
|
graphDescription: y,
|
|
266
|
-
height:
|
|
267
|
+
height: u,
|
|
267
268
|
width: f,
|
|
268
|
-
footNote:
|
|
269
|
-
colorDomain:
|
|
270
|
-
colorLegendTitle:
|
|
271
|
-
scaleType:
|
|
269
|
+
footNote: T,
|
|
270
|
+
colorDomain: te,
|
|
271
|
+
colorLegendTitle: R,
|
|
272
|
+
scaleType: oe,
|
|
272
273
|
scale: ye,
|
|
273
|
-
centerPoint:
|
|
274
|
+
centerPoint: re,
|
|
274
275
|
padding: ve,
|
|
275
|
-
mapBorderWidth:
|
|
276
|
-
mapNoDataColor:
|
|
277
|
-
backgroundColor:
|
|
278
|
-
mapBorderColor:
|
|
276
|
+
mapBorderWidth: We,
|
|
277
|
+
mapNoDataColor: _e,
|
|
278
|
+
backgroundColor: j,
|
|
279
|
+
mapBorderColor: ae,
|
|
279
280
|
relativeHeight: g,
|
|
280
281
|
tooltip: xe,
|
|
281
|
-
onSeriesMouseOver:
|
|
282
|
-
isWorldMap:
|
|
283
|
-
showColorScale:
|
|
284
|
-
zoomScaleExtend:
|
|
285
|
-
zoomTranslateExtend:
|
|
286
|
-
graphID:
|
|
287
|
-
highlightedIds:
|
|
288
|
-
onSeriesMouseClick:
|
|
282
|
+
onSeriesMouseOver: q,
|
|
283
|
+
isWorldMap: Ae,
|
|
284
|
+
showColorScale: ne,
|
|
285
|
+
zoomScaleExtend: S,
|
|
286
|
+
zoomTranslateExtend: O,
|
|
287
|
+
graphID: M,
|
|
288
|
+
highlightedIds: E,
|
|
289
|
+
onSeriesMouseClick: ie,
|
|
289
290
|
mapProperty: be,
|
|
290
|
-
graphDownload:
|
|
291
|
-
dataDownload:
|
|
292
|
-
showAntarctica:
|
|
293
|
-
language:
|
|
294
|
-
minHeight:
|
|
295
|
-
theme:
|
|
296
|
-
ariaLabel:
|
|
297
|
-
resetSelectionOnDoubleClick:
|
|
298
|
-
detailsOnClick:
|
|
299
|
-
styles:
|
|
300
|
-
classNames:
|
|
301
|
-
mapProjection:
|
|
302
|
-
zoomInteraction:
|
|
303
|
-
animate:
|
|
304
|
-
dimmedOpacity:
|
|
305
|
-
customLayers:
|
|
306
|
-
timeline:
|
|
307
|
-
collapseColorScaleByDefault:
|
|
308
|
-
projectionRotate:
|
|
309
|
-
zoomAndCenterByHighlightedIds:
|
|
310
|
-
rewindCoordinatesInMapData:
|
|
311
|
-
mapOverlay:
|
|
312
|
-
|
|
291
|
+
graphDownload: je,
|
|
292
|
+
dataDownload: $,
|
|
293
|
+
showAntarctica: X,
|
|
294
|
+
language: Y,
|
|
295
|
+
minHeight: Fe,
|
|
296
|
+
theme: Le,
|
|
297
|
+
ariaLabel: ke,
|
|
298
|
+
resetSelectionOnDoubleClick: x,
|
|
299
|
+
detailsOnClick: De,
|
|
300
|
+
styles: i,
|
|
301
|
+
classNames: l,
|
|
302
|
+
mapProjection: se,
|
|
303
|
+
zoomInteraction: Te,
|
|
304
|
+
animate: we,
|
|
305
|
+
dimmedOpacity: le,
|
|
306
|
+
customLayers: H,
|
|
307
|
+
timeline: B,
|
|
308
|
+
collapseColorScaleByDefault: J,
|
|
309
|
+
projectionRotate: K,
|
|
310
|
+
zoomAndCenterByHighlightedIds: ce,
|
|
311
|
+
rewindCoordinatesInMapData: Ce,
|
|
312
|
+
mapOverlay: h,
|
|
313
|
+
locale: G
|
|
314
|
+
} = p, k = n === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : n, Z = T === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : T, I = oe === void 0 ? "threshold" : oe, U = ye === void 0 ? 0.95 : ye, z = We === void 0 ? 0.5 : We, Ne = _e === void 0 ? lt.light.graphNoData : _e, Me = j === void 0 ? !1 : j, Se = ae === void 0 ? lt.light.grays["gray-500"] : ae, de = Ae === void 0 ? !0 : Ae, P = ne === void 0 ? !0 : ne;
|
|
313
315
|
let me;
|
|
314
|
-
e[0] !==
|
|
315
|
-
const
|
|
316
|
-
let
|
|
317
|
-
e[2] !==
|
|
318
|
-
const o =
|
|
319
|
-
let $e;
|
|
320
|
-
e[4] !== I ? ($e = I === void 0 ? [] : I, e[4] = I, e[5] = $e) : $e = e[5];
|
|
321
|
-
const pt = $e;
|
|
316
|
+
e[0] !== S ? (me = S === void 0 ? [0.8, 6] : S, e[0] = S, e[1] = me) : me = e[1];
|
|
317
|
+
const V = me;
|
|
318
|
+
let Q;
|
|
319
|
+
e[2] !== E ? (Q = E === void 0 ? [] : E, e[2] = E, e[3] = Q) : Q = e[3];
|
|
320
|
+
const o = Q, r = be === void 0 ? "ISO3" : be, v = je === void 0 ? !1 : je, D = $ === void 0 ? !1 : $, d = X === void 0 ? !1 : X, Oe = Y === void 0 ? "en" : Y, w = Fe === void 0 ? 0 : Fe, W = Le === void 0 ? "light" : Le, ct = x === void 0 ? !0 : x, dt = se === void 0 ? "naturalEarth" : se, mt = Te === void 0 ? "button" : Te, $e = we === void 0 ? !1 : we, pt = le === void 0 ? 0.3 : le;
|
|
322
321
|
let He;
|
|
323
|
-
e[
|
|
322
|
+
e[4] !== H ? (He = H === void 0 ? [] : H, e[4] = H, e[5] = He) : He = e[5];
|
|
323
|
+
const ut = He;
|
|
324
|
+
let Ge;
|
|
325
|
+
e[6] !== B ? (Ge = B === void 0 ? {
|
|
324
326
|
enabled: !1,
|
|
325
327
|
autoplay: !1,
|
|
326
328
|
showOnlyActiveDate: !0
|
|
327
|
-
} :
|
|
328
|
-
const
|
|
329
|
-
let
|
|
330
|
-
e[8] !==
|
|
331
|
-
const
|
|
332
|
-
let
|
|
333
|
-
if (e[10] !== a || e[11] !==
|
|
334
|
-
let
|
|
335
|
-
e[13] !==
|
|
329
|
+
} : B, e[6] = B, e[7] = Ge) : Ge = e[7];
|
|
330
|
+
const s = Ge;
|
|
331
|
+
let Ue;
|
|
332
|
+
e[8] !== K ? (Ue = K === void 0 ? [0, 0] : K, e[8] = K, e[9] = Ue) : Ue = e[9];
|
|
333
|
+
const ht = Ue, ft = ce === void 0 ? !1 : ce, gt = Ce === void 0 ? !0 : Ce, yt = G === void 0 ? "en" : G, [ee, It] = b(0), [Ee, zt] = b(0), [_, Pt] = b(s.autoplay);
|
|
334
|
+
let Be;
|
|
335
|
+
if (e[10] !== a || e[11] !== s.dateFormat) {
|
|
336
|
+
let c;
|
|
337
|
+
e[13] !== s.dateFormat ? (c = (C) => Gt(`${C.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[13] = s.dateFormat, e[14] = c) : c = e[14], Be = [...new Set(a.filter(So).map(c))], Be.sort(Mo), e[10] = a, e[11] = s.dateFormat, e[12] = Be;
|
|
336
338
|
} else
|
|
337
|
-
|
|
338
|
-
const
|
|
339
|
-
let
|
|
340
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
341
|
-
const
|
|
342
|
-
|
|
339
|
+
Be = e[12];
|
|
340
|
+
const m = Be, [A, vt] = b(s.autoplay ? 0 : m.length - 1), [pe, Wt] = b(void 0), [xt, _t] = b(void 0), bt = Pe(null), Nt = Pe(null);
|
|
341
|
+
let Ve, Re;
|
|
342
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ve = () => {
|
|
343
|
+
const c = new ResizeObserver((C) => {
|
|
344
|
+
It(C[0].target.clientWidth || 620), zt(C[0].target.clientHeight || 480);
|
|
343
345
|
});
|
|
344
|
-
return
|
|
345
|
-
},
|
|
346
|
-
let
|
|
347
|
-
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
348
|
-
|
|
349
|
-
}, e[17] =
|
|
350
|
-
const
|
|
351
|
-
let Xe;
|
|
352
|
-
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Xe = (l) => {
|
|
353
|
-
Pt(l);
|
|
354
|
-
}, e[18] = Xe) : Xe = e[18];
|
|
355
|
-
const Ee = Nt(Xe);
|
|
346
|
+
return bt.current && c.observe(bt.current), () => c.disconnect();
|
|
347
|
+
}, Re = [], e[15] = Ve, e[16] = Re) : (Ve = e[15], Re = e[16]), ze(Ve, Re);
|
|
348
|
+
let qe;
|
|
349
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qe = (c) => {
|
|
350
|
+
Wt(c);
|
|
351
|
+
}, e[17] = qe) : qe = e[17];
|
|
352
|
+
const Xe = St(qe);
|
|
356
353
|
let Ye;
|
|
357
|
-
e[
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}, e[19] = D, e[20] = qe, e[21] = Ye) : Ye = e[21];
|
|
354
|
+
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ye = (c) => {
|
|
355
|
+
_t(c);
|
|
356
|
+
}, e[18] = Ye) : Ye = e[18];
|
|
357
|
+
const Ie = St(Ye);
|
|
362
358
|
let Je;
|
|
363
|
-
e[
|
|
359
|
+
e[19] !== k || e[20] !== Xe ? (Je = () => {
|
|
360
|
+
typeof k == "string" ? Bt(k).then((C) => {
|
|
361
|
+
Xe(C);
|
|
362
|
+
}) : Xe(k);
|
|
363
|
+
}, e[19] = k, e[20] = Xe, e[21] = Je) : Je = e[21];
|
|
364
364
|
let Ke;
|
|
365
|
-
e[
|
|
366
|
-
u?.mapData || Ee(void 0), typeof u?.mapData == "string" ? Ot(u?.mapData).then((N) => {
|
|
367
|
-
Ee(N);
|
|
368
|
-
}) : Ee(u?.mapData);
|
|
369
|
-
}, e[24] = u?.mapData, e[25] = Ee, e[26] = Ke) : Ke = e[26];
|
|
370
|
-
const xt = u?.mapData;
|
|
365
|
+
e[22] !== k ? (Ke = [k], e[22] = k, e[23] = Ke) : Ke = e[23], ze(Je, Ke);
|
|
371
366
|
let Ze;
|
|
372
|
-
e[
|
|
367
|
+
e[24] !== h?.mapData || e[25] !== Ie ? (Ze = () => {
|
|
368
|
+
h?.mapData || Ie(void 0), typeof h?.mapData == "string" ? Bt(h?.mapData).then((C) => {
|
|
369
|
+
Ie(C);
|
|
370
|
+
}) : Ie(h?.mapData);
|
|
371
|
+
}, e[24] = h?.mapData, e[25] = Ie, e[26] = Ze) : Ze = e[26];
|
|
372
|
+
const jt = h?.mapData;
|
|
373
373
|
let Qe;
|
|
374
|
-
e[
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
374
|
+
e[27] !== jt ? (Qe = [jt], e[27] = jt, e[28] = Qe) : Qe = e[28], ze(Ze, Qe);
|
|
375
|
+
let et;
|
|
376
|
+
e[29] !== te || e[30] !== N?.length || e[31] !== a || e[32] !== I ? (et = te || (I === "categorical" ? fo(a, "x") : go(a.map(No), N?.length || 4)), e[29] = te, e[30] = N?.length, e[31] = a, e[32] = I, e[33] = et) : et = e[33];
|
|
377
|
+
const tt = et;
|
|
378
|
+
let ot, rt;
|
|
379
|
+
e[34] !== _ || e[35] !== s.speed || e[36] !== m ? (ot = () => {
|
|
380
|
+
const c = setInterval(() => {
|
|
381
|
+
vt((C) => C < m.length - 1 ? C + 1 : 0);
|
|
382
|
+
}, (s.speed || 2) * 1e3);
|
|
383
|
+
return _ || clearInterval(c), () => clearInterval(c);
|
|
384
|
+
}, rt = [m, _, s.speed], e[34] = _, e[35] = s.speed, e[36] = m, e[37] = ot, e[38] = rt) : (ot = e[37], rt = e[38]), ze(ot, rt);
|
|
385
|
+
const kt = s.dateFormat || "yyyy";
|
|
386
|
+
let at;
|
|
387
|
+
e[39] !== A || e[40] !== kt || e[41] !== s.showOnlyActiveDate || e[42] !== m ? (at = Lt(m, A, s.showOnlyActiveDate, kt), e[39] = A, e[40] = kt, e[41] = s.showOnlyActiveDate, e[42] = m, e[43] = at) : at = e[43];
|
|
388
|
+
const nt = at, Dt = l?.graphContainer, wt = i?.graphContainer;
|
|
387
389
|
let ue;
|
|
388
|
-
e[44] !==
|
|
389
|
-
title:
|
|
390
|
-
description:
|
|
390
|
+
e[44] !== l?.description || e[45] !== l?.title || e[46] !== a || e[47] !== D || e[48] !== y || e[49] !== v || e[50] !== F || e[51] !== i?.description || e[52] !== i?.title || e[53] !== f ? (ue = F || y || v || D ? /* @__PURE__ */ t.jsx(ho, { styles: {
|
|
391
|
+
title: i?.title,
|
|
392
|
+
description: i?.description
|
|
391
393
|
}, classNames: {
|
|
392
|
-
title:
|
|
393
|
-
description:
|
|
394
|
-
}, graphTitle: F, graphDescription: y, width: f, graphDownload: v ?
|
|
394
|
+
title: l?.title,
|
|
395
|
+
description: l?.description
|
|
396
|
+
}, graphTitle: F, graphDescription: y, width: f, graphDownload: v ? Nt : void 0, dataDownload: D ? a.map(Co).filter(wo).length > 0 ? a.map(Do).filter(ko) : a.filter(jo) : null }) : null, e[44] = l?.description, e[45] = l?.title, e[46] = a, e[47] = D, e[48] = y, e[49] = v, e[50] = F, e[51] = i?.description, e[52] = i?.title, e[53] = f, e[54] = ue) : ue = e[54];
|
|
395
397
|
let he;
|
|
396
|
-
e[55] !==
|
|
398
|
+
e[55] !== A || e[56] !== nt || e[57] !== _ || e[58] !== s.enabled || e[59] !== m ? (he = s.enabled && m.length > 0 && nt ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
397
399
|
/* @__PURE__ */ t.jsx("button", { type: "button", onClick: () => {
|
|
398
|
-
|
|
399
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
400
|
-
/* @__PURE__ */ t.jsx(
|
|
401
|
-
|
|
402
|
-
}, onChange: (
|
|
403
|
-
|
|
400
|
+
Pt(!_);
|
|
401
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": _ ? "Click to pause animation" : "Click to play animation", children: _ ? /* @__PURE__ */ t.jsx(no, {}) : /* @__PURE__ */ t.jsx(io, {}) }),
|
|
402
|
+
/* @__PURE__ */ t.jsx(Tt, { min: m[0], max: m[m.length - 1], marks: nt, step: null, defaultValue: m[m.length - 1], value: m[A], onChangeComplete: (c) => {
|
|
403
|
+
vt(m.indexOf(c));
|
|
404
|
+
}, onChange: (c) => {
|
|
405
|
+
vt(m.indexOf(c));
|
|
404
406
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
405
|
-
] }) : null, e[55] =
|
|
407
|
+
] }) : null, e[55] = A, e[56] = nt, e[57] = _, e[58] = s.enabled, e[59] = m, e[60] = he) : he = e[60];
|
|
406
408
|
let fe;
|
|
407
|
-
e[61] !==
|
|
409
|
+
e[61] !== $e || e[62] !== re || e[63] !== l || e[64] !== J || e[65] !== R || e[66] !== N || e[67] !== ut || e[68] !== a || e[69] !== De || e[70] !== pt || e[71] !== tt || e[72] !== u || e[73] !== o || e[74] !== A || e[75] !== de || e[76] !== yt || e[77] !== Se || e[78] !== z || e[79] !== Ne || e[80] !== h?.mapBorderColor || e[81] !== h?.mapBorderWidth || e[82] !== dt || e[83] !== r || e[84] !== pe || e[85] !== w || e[86] !== ie || e[87] !== q || e[88] !== xt || e[89] !== ht || e[90] !== g || e[91] !== ct || e[92] !== gt || e[93] !== U || e[94] !== I || e[95] !== d || e[96] !== P || e[97] !== i || e[98] !== Ee || e[99] !== ee || e[100] !== W || e[101] !== s.dateFormat || e[102] !== s.enabled || e[103] !== xe || e[104] !== m || e[105] !== f || e[106] !== ft || e[107] !== mt || e[108] !== V || e[109] !== O ? (fe = /* @__PURE__ */ t.jsx(yo, { ref: bt, children: ee && Ee && pe ? /* @__PURE__ */ t.jsx(xo, { data: a.filter((c) => s.enabled ? `${c.date}` === Ht(new Date(m[A]), s.dateFormat || "yyyy") : c), mapData: d ? pe : {
|
|
408
410
|
...pe,
|
|
409
|
-
features: pe.features.filter(
|
|
410
|
-
}, colorDomain:
|
|
411
|
+
features: pe.features.filter(bo)
|
|
412
|
+
}, colorDomain: tt, width: ee, height: Ee, scale: U, centerPoint: re, colors: N || (I === "categorical" ? lt[W].categoricalColors.colors : lt[W].sequentialColors[`neutralColorsx0${tt.length + 1}`]), colorLegendTitle: R, mapBorderWidth: z, mapNoDataColor: Ne, categorical: I === "categorical", mapBorderColor: Se, tooltip: xe, onSeriesMouseOver: q, isWorldMap: de, showColorScale: P, zoomScaleExtend: V, zoomTranslateExtend: O, onSeriesMouseClick: ie, mapProperty: r, highlightedIds: o, resetSelectionOnDoubleClick: ct, styles: i, overlayMapData: xt, overlayMapBorderColor: h?.mapBorderColor, overlayMapBorderWidth: h?.mapBorderWidth, classNames: l, detailsOnClick: De, mapProjection: dt || (de ? "naturalEarth" : "mercator"), zoomInteraction: mt, dimmedOpacity: pt, animate: $e === !0 ? {
|
|
411
413
|
duration: 0.5,
|
|
412
414
|
once: !0,
|
|
413
415
|
amount: 0.5
|
|
414
|
-
} :
|
|
416
|
+
} : $e || {
|
|
415
417
|
duration: 0,
|
|
416
418
|
once: !0,
|
|
417
419
|
amount: 0
|
|
418
|
-
}, customLayers:
|
|
419
|
-
height: `${Math.max(
|
|
420
|
-
}, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(
|
|
420
|
+
}, customLayers: ut, zoomAndCenterByHighlightedIds: ft, collapseColorScaleByDefault: J, projectionRotate: ht, rewindCoordinatesInMapData: gt, locale: yt }) : /* @__PURE__ */ t.jsx("div", { style: {
|
|
421
|
+
height: `${Math.max(w, u || (g ? w ? (f || ee) * g > w ? (f || ee) * g : w : (f || ee) * g : Ee))}px`
|
|
422
|
+
}, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx($t, { "aria-label": "Loading graph" }) }) }), e[61] = $e, e[62] = re, e[63] = l, e[64] = J, e[65] = R, e[66] = N, e[67] = ut, e[68] = a, e[69] = De, e[70] = pt, e[71] = tt, e[72] = u, e[73] = o, e[74] = A, e[75] = de, e[76] = yt, e[77] = Se, e[78] = z, e[79] = Ne, e[80] = h?.mapBorderColor, e[81] = h?.mapBorderWidth, e[82] = dt, e[83] = r, e[84] = pe, e[85] = w, e[86] = ie, e[87] = q, e[88] = xt, e[89] = ht, e[90] = g, e[91] = ct, e[92] = gt, e[93] = U, e[94] = I, e[95] = d, e[96] = P, e[97] = i, e[98] = Ee, e[99] = ee, e[100] = W, e[101] = s.dateFormat, e[102] = s.enabled, e[103] = xe, e[104] = m, e[105] = f, e[106] = ft, e[107] = mt, e[108] = V, e[109] = O, e[110] = fe) : fe = e[110];
|
|
421
423
|
let ge;
|
|
422
|
-
e[
|
|
423
|
-
footnote:
|
|
424
|
-
source:
|
|
424
|
+
e[111] !== l?.footnote || e[112] !== l?.source || e[113] !== Z || e[114] !== L || e[115] !== i?.footnote || e[116] !== i?.source || e[117] !== f ? (ge = L || Z ? /* @__PURE__ */ t.jsx(uo, { styles: {
|
|
425
|
+
footnote: i?.footnote,
|
|
426
|
+
source: i?.source
|
|
425
427
|
}, classNames: {
|
|
426
|
-
footnote:
|
|
427
|
-
source:
|
|
428
|
-
}, sources:
|
|
429
|
-
let
|
|
430
|
-
return e[
|
|
428
|
+
footnote: l?.footnote,
|
|
429
|
+
source: l?.source
|
|
430
|
+
}, sources: L, footNote: Z, width: f }) : null, e[111] = l?.footnote, e[112] = l?.source, e[113] = Z, e[114] = L, e[115] = i?.footnote, e[116] = i?.source, e[117] = f, e[118] = ge) : ge = e[118];
|
|
431
|
+
let it;
|
|
432
|
+
return e[119] !== ke || e[120] !== Me || e[121] !== M || e[122] !== u || e[123] !== Oe || e[124] !== w || e[125] !== ve || e[126] !== g || e[127] !== Dt || e[128] !== wt || e[129] !== ue || e[130] !== he || e[131] !== fe || e[132] !== ge || e[133] !== W || e[134] !== f ? (it = /* @__PURE__ */ t.jsxs(vo, { className: Dt, style: wt, id: M, ref: Nt, "aria-label": ke, backgroundColor: Me, theme: W, language: Oe, minHeight: w, width: f, height: u, relativeHeight: g, padding: ve, children: [
|
|
431
433
|
ue,
|
|
432
434
|
he,
|
|
433
435
|
fe,
|
|
434
436
|
ge
|
|
435
|
-
] }), e[
|
|
437
|
+
] }), e[119] = ke, e[120] = Me, e[121] = M, e[122] = u, e[123] = Oe, e[124] = w, e[125] = ve, e[126] = g, e[127] = Dt, e[128] = wt, e[129] = ue, e[130] = he, e[131] = fe, e[132] = ge, e[133] = W, e[134] = f, e[135] = it) : it = e[135], it;
|
|
436
438
|
}
|
|
437
|
-
function
|
|
438
|
-
return
|
|
439
|
+
function bo(p) {
|
|
440
|
+
return p.properties?.NAME !== "Antarctica";
|
|
439
441
|
}
|
|
440
|
-
function
|
|
441
|
-
return
|
|
442
|
+
function jo(p) {
|
|
443
|
+
return p !== void 0;
|
|
442
444
|
}
|
|
443
|
-
function
|
|
444
|
-
return
|
|
445
|
+
function ko(p) {
|
|
446
|
+
return p !== void 0;
|
|
445
447
|
}
|
|
446
|
-
function
|
|
447
|
-
return
|
|
448
|
+
function Do(p) {
|
|
449
|
+
return p.data;
|
|
448
450
|
}
|
|
449
|
-
function
|
|
450
|
-
return
|
|
451
|
+
function wo(p) {
|
|
452
|
+
return p !== void 0;
|
|
451
453
|
}
|
|
452
|
-
function
|
|
453
|
-
return
|
|
454
|
+
function Co(p) {
|
|
455
|
+
return p.data;
|
|
454
456
|
}
|
|
455
|
-
function
|
|
456
|
-
return
|
|
457
|
+
function No(p) {
|
|
458
|
+
return p.x;
|
|
457
459
|
}
|
|
458
|
-
function
|
|
459
|
-
return
|
|
460
|
+
function Mo(p, e) {
|
|
461
|
+
return p - e;
|
|
460
462
|
}
|
|
461
|
-
function
|
|
462
|
-
return
|
|
463
|
+
function So(p) {
|
|
464
|
+
return p.date;
|
|
463
465
|
}
|
|
464
466
|
export {
|
|
465
|
-
|
|
467
|
+
or as ChoroplethMap
|
|
466
468
|
};
|
|
467
469
|
//# sourceMappingURL=ChoroplethMap.js.map
|