@undp/data-viz 2.3.17 → 2.3.19
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 +1687 -1675
- 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 +268 -265
- 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 +526 -523
- 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 +146 -146
- 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 +547 -544
- 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-D8WRC8-j.cjs +2 -0
- package/dist/GraphEl-D8WRC8-j.cjs.map +1 -0
- package/dist/{GraphEl-CnJf8b50.js → GraphEl-Dorm_qQE.js} +48 -10
- package/dist/GraphEl-Dorm_qQE.js.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 +283 -281
- 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 +434 -432
- 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 +398 -394
- 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 +220 -218
- 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 +439 -437
- 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 +425 -423
- 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.js +10 -10
- 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 +360 -357
- 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 +219 -217
- 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 +243 -241
- 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-Bdo_HXb_.cjs +2 -0
- package/dist/index-Bdo_HXb_.cjs.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-CGrBpeUa.js +380 -0
- package/dist/index-CGrBpeUa.js.map +1 -0
- 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-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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-Co3YGYe1.js","sources":["../node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Taken from https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx\n */\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n }\n else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n // React <19 will log an error to the console if a callback ref returns a\n // value. We don't use ref cleanups internally so this will only happen if a\n // user's ref callback returns a value, which we only expect if they are\n // using the cleanup functionality added in React 19.\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === \"function\") {\n cleanup();\n }\n else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nfunction useComposedRefs(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs);\n}\n\nexport { useComposedRefs };\n//# sourceMappingURL=use-composed-ref.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, root }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n */\n const childRef = children.props?.ref ??\n children?.ref;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? document.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = (jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, root: root, children: children }));\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n//# sourceMappingURL=utils.mjs.map\n","\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n exitingComponents.current.add(key);\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && safeToRemove?.();\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","useComposedRefs","React","PopChildMeasure","prevProps","element","parent","parentWidth","isHTMLElement","size","PopChild","children","isPresent","anchorX","root","id","useId","useRef","nonce","useContext","MotionConfigContext","childRef","composedRef","useInsertionEffect","width","height","top","left","right","x","style","jsx","PresenceChild","initial","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","useConstant","newChildrenMap","isReusedContext","context","useMemo","childId","isComplete","_","key","PresenceContext","getChildKey","child","onlyElements","filtered","Children","isValidElement","AnimatePresence","propagate","isParentPresent","safeToRemove","usePresence","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","exitingComponents","diffedChildren","setDiffedChildren","useState","renderedChildren","setRenderedChildren","useIsomorphicLayoutEffect","i","exitingChildren","nextChildren","forceRender","LayoutGroupContext","Fragment","onExit","isEveryExitComplete","isExitComplete"],"mappings":";;;;AASA,SAASA,EAAOC,GAAKC,GAAO;AACxB,MAAI,OAAOD,KAAQ;AACf,WAAOA,EAAIC,CAAK;AAEf,EAAID,KAAQ,SACbA,EAAI,UAAUC;AAEtB;AAKA,SAASC,KAAeC,GAAM;AAC1B,SAAO,CAACC,MAAS;AACb,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IA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A,IAAO,QAAQE,GAAQ,uBAAuBC,GAAuB,MAAMC,GAAM,MAAMvB,GAAM,gBAAgBF,IAAY,SAAYkE,GAAQ,SAASjE,GAAS,UAAUqC,EAAK,GAAIH,CAAG;AAAA,EACnM,CAAC,EAAC,CAAE;AACZ;","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"index-Cv_5q6Rb.js","sources":["../node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Taken from https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx\n */\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n }\n else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n // React <19 will log an error to the console if a callback ref returns a\n // value. We don't use ref cleanups internally so this will only happen if a\n // user's ref callback returns a value, which we only expect if they are\n // using the cleanup functionality added in React 19.\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === \"function\") {\n cleanup();\n }\n else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nfunction useComposedRefs(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs);\n}\n\nexport { useComposedRefs };\n//# sourceMappingURL=use-composed-ref.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, root }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n */\n const childRef = children.props?.ref ??\n children?.ref;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? document.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = (jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, root: root, children: children }));\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n//# sourceMappingURL=utils.mjs.map\n","\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n exitingComponents.current.add(key);\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && safeToRemove?.();\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","useComposedRefs","React","PopChildMeasure","prevProps","element","parent","parentWidth","isHTMLElement","size","PopChild","children","isPresent","anchorX","root","id","useId","useRef","nonce","useContext","MotionConfigContext","childRef","composedRef","useInsertionEffect","width","height","top","left","right","x","style","jsx","PresenceChild","initial","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","useConstant","newChildrenMap","isReusedContext","context","useMemo","childId","isComplete","_","key","PresenceContext","getChildKey","child","onlyElements","filtered","Children","isValidElement","AnimatePresence","propagate","isParentPresent","safeToRemove","usePresence","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","exitingComponents","diffedChildren","setDiffedChildren","useState","renderedChildren","setRenderedChildren","useIsomorphicLayoutEffect","i","exitingChildren","nextChildren","forceRender","LayoutGroupContext","Fragment","onExit","isEveryExitComplete","isExitComplete"],"mappings":";;;;AASA,SAASA,EAAOC,GAAKC,GAAO;AACxB,MAAI,OAAOD,KAAQ;AACf,WAAOA,EAAIC,CAAK;AAEf,EAAID,KAAQ,SACbA,EAAI,UAAUC;AAEtB;AAKA,SAASC,KAAeC,GAAM;AAC1B,SAAO,CAACC,MAAS;AACb,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AAC/B,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAY,eAClCF,IAAa,KAEVE;AAAA,IACX,CAAC;AAKD,QAAIF;AACA,aAAO,MAAM;AACT,iBAAS,IAAI,GAAG,IAAIC,EAAS,QAAQ,KAAK;AACtC,gBAAMC,IAAUD,EAAS,CAAC;AAC1B,UAAI,OAAOC,KAAY,aACnBA,EAAO,IAGPR,EAAOI,EAAK,CAAC,GAAG,IAAI;AAAA,QAE5B;AAAA,MACJ;AAAA,EAER;AACJ;AAKA,SAASK,KAAmBL,GAAM;AAE9B,SAAOM,EAAM,YAAYP,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACvD;AC7CA,MAAMO,UAAwBD,EAAM,UAAU;AAAA,EAC1C,wBAAwBE,GAAW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AWyD,CAAkB;AACrD,SAAQ7C,EAAAA,IAAI8C,EAAAA,UAAU,EAAE,UAAUR,EAAiB,IAAI,CAACnB,MAAU;AAC1D,UAAMH,IAAME,EAAYC,CAAK,GACvBtC,IAAY4C,KAAa,CAACC,IAC1B,KACAG,MAAoBS,KAClBR,EAAY,SAASd,CAAG,GAC1B+B,IAAS,MAAM;AACjB,UAAIb,EAAkB,QAAQ,IAAIlB,CAAG;AACjC;AAGJ,UADAkB,EAAkB,QAAQ,IAAIlB,CAAG,GAC7BiB,EAAa,IAAIjB,CAAG;AACpB,QAAAiB,EAAa,IAAIjB,GAAK,EAAI;AAAA;AAG1B;AAEJ,UAAIgC,IAAsB;AAC1B,MAAAf,EAAa,QAAQ,CAACgB,MAAmB;AACrC,QAAKA,MACDD,IAAsB;AAAA,MAC9B,CAAC,GACGA,MACAJ,IAAW,GACXL,EAAoBP,EAAuB,OAAO,GAClDP,KAAaE,IAAY,GACzBxB,KAAkBA,EAAc;AAAA,IAExC;AACA,WAAQH,EAAAA,IAAIC,GAAe,EAAE,WAAWpB,GAAW,SAAS,CAACkD,EAAgB,WAAW7B,IAC9E,SACA,IAAO,QAAQE,GAAQ,uBAAuBC,GAAuB,MAAMC,GAAM,MAAMvB,GAAM,gBAAgBF,IAAY,SAAYkE,GAAQ,SAASjE,GAAS,UAAUqC,EAAK,GAAIH,CAAG;AAAA,EACnM,CAAC,EAAC,CAAE;AACZ;","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as w, j as h } from "./index-CHPV5EwG-
|
|
1
|
+
import { c as w, j as h } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
2
|
import { Colors as x } from "./Colors.js";
|
|
3
|
-
import { m as u } from "./proxy
|
|
3
|
+
import { m as u } from "./proxy-BsxtcZKa.js";
|
|
4
4
|
function V(d) {
|
|
5
5
|
const i = w.c(15), {
|
|
6
6
|
areaSettings: m,
|
|
@@ -96,4 +96,4 @@ export {
|
|
|
96
96
|
V as H,
|
|
97
97
|
k as a
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=index-
|
|
99
|
+
//# sourceMappingURL=index-DHVGV8Df.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DHVGV8Df.js","sources":["../src/Components/Elements/HighlightArea/index.tsx"],"sourcesContent":["import { NumberValue } from 'd3-scale';\r\nimport { motion } from 'motion/react';\r\n\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { AnimateDataType } from '@/Types';\r\n\r\ninterface Props {\r\n areaSettings: {\r\n coordinates: (Date | null | number)[];\r\n style?: React.CSSProperties;\r\n className?: string;\r\n color?: string;\r\n strokeWidth?: number;\r\n }[];\r\n width: number;\r\n height: number;\r\n scale: (value: Date | NumberValue) => number;\r\n animate: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function HighlightArea(props: Props) {\r\n const { areaSettings, width, height, scale, animate, isInView } = props;\r\n return (\r\n <>\r\n {areaSettings.map((d, i) => (\r\n <motion.g key={i}>\r\n {d.coordinates[0] === null && d.coordinates[1] === null ? null : (\r\n <motion.g>\r\n <motion.rect\r\n style={{\r\n fill: d.color || Colors.light.grays['gray-300'],\r\n strokeWidth: d.strokeWidth,\r\n ...(d.style || {}),\r\n }}\r\n className={d.className}\r\n y={0}\r\n height={height}\r\n variants={{\r\n initial: {\r\n width: 0,\r\n x: d.coordinates[0] ? scale(d.coordinates[0]) : 0,\r\n opacity: 1,\r\n },\r\n whileInView: {\r\n width: d.coordinates[1]\r\n ? scale(d.coordinates[1]) - (d.coordinates[0] ? scale(d.coordinates[0]) : 0)\r\n : width - (d.coordinates[0] ? scale(d.coordinates[0]) : 0),\r\n x: d.coordinates[0] ? scale(d.coordinates[0]) : 0,\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, width: 0, transition: { duration: animate.duration } }}\r\n />\r\n </motion.g>\r\n )}\r\n </motion.g>\r\n ))}\r\n </>\r\n );\r\n}\r\n\r\ninterface ScatterPlotProps {\r\n areaSettings: {\r\n coordinates: (Date | null | number)[];\r\n style?: React.CSSProperties;\r\n className?: string;\r\n color?: string;\r\n strokeWidth?: number;\r\n }[];\r\n width: number;\r\n height: number;\r\n scaleX: (value: Date | NumberValue) => number;\r\n scaleY: (value: Date | NumberValue) => number;\r\n animate: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function HighlightAreaForScatterPlot(props: ScatterPlotProps) {\r\n const { areaSettings, width, height, scaleX, scaleY, animate, isInView } = props;\r\n return (\r\n <>\r\n {areaSettings.map((d, i) => (\r\n <motion.g key={`highlight_area_${i}`}>\r\n {d.coordinates.filter(el => el === null).length === 4 ? null : (\r\n <motion.g>\r\n <motion.rect\r\n style={{\r\n fill: d.color || Colors.light.grays['gray-300'],\r\n strokeWidth: d.strokeWidth,\r\n ...(d.style || {}),\r\n }}\r\n className={d.className}\r\n variants={{\r\n initial: {\r\n x: d.coordinates[0] ? scaleX(d.coordinates[0] as number) : 0,\r\n width: 0,\r\n y: d.coordinates[3] ? scaleY(d.coordinates[3] as number) : 0,\r\n height: 0,\r\n },\r\n whileInView: {\r\n x: d.coordinates[0] ? scaleX(d.coordinates[0] as number) : 0,\r\n width: d.coordinates[1]\r\n ? scaleX(d.coordinates[1] as number) -\r\n (d.coordinates[0] ? scaleX(d.coordinates[0] as number) : 0)\r\n : width - (d.coordinates[0] ? scaleX(d.coordinates[0] as number) : 0),\r\n y: d.coordinates[3] ? scaleY(d.coordinates[3] as number) : 0,\r\n height:\r\n d.coordinates[2] !== null\r\n ? scaleY(d.coordinates[2] as number) -\r\n (d.coordinates[3] ? scaleY(d.coordinates[3] as number) : 0)\r\n : height -\r\n (d.coordinates[3] ? height - scaleY(d.coordinates[3] as number) : 0),\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{\r\n opacity: 0,\r\n width: 0,\r\n height: 0,\r\n transition: { duration: animate.duration },\r\n }}\r\n />\r\n </motion.g>\r\n )}\r\n </motion.g>\r\n ))}\r\n </>\r\n );\r\n}\r\n"],"names":["HighlightArea","props","$","_c","areaSettings","width","height","scale","animate","isInView","t0","t1","d","i","jsx","motion","coordinates","fill","color","Colors","light","grays","strokeWidth","style","className","initial","x","opacity","whileInView","transition","duration","map","HighlightAreaForScatterPlot","scaleX","scaleY","filter","_temp","length","y","el"],"mappings":";;;AAqBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,cAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,UAAAA;AAAAA,EAAAA,IAAkER;AAAM,MAAAS;AAAA,MAAAR,SAAAM,KAAAN,EAAA,CAAA,MAAAE,KAAAF,EAAA,CAAA,MAAAI,KAAAJ,EAAA,CAAA,MAAAO,KAAAP,SAAAK,KAAAL,EAAA,CAAA,MAAAG,GAAA;AAAA,QAAAM;AAAA,IAAAT,EAAA,CAAA,MAAAM,KAAAN,EAAA,CAAA,MAAAI,KAAAJ,EAAA,CAAA,MAAAO,KAAAP,EAAA,EAAA,MAAAK,KAAAL,UAAAG,KAGlDM,IAAAA,CAAAC,GAAAC,MAChBC,gBAAAA,EAAAA,IAAAC,EAAA,GAAA,EACGH,UAAAA,EAACI,YAAY,CAAA,MAAQ,QAAQJ,EAACI,YAAY,CAAA,MAAQ,OAAlD,OACCF,gBAAAA,EAAAA,IAAAC,EAAA,GAAA,EACE,UAAAD,gBAAAA,EAAAA,IAAAC,EAAA,MAAA,EACS,OAAA;AAAA,MAAAE,MACCL,EAACM,SAAUC,EAAMC,MAAMC,MAAO,UAAU;AAAA,MAACC,aAClCV,EAACU;AA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A8CjB,GAACT,OAAAM,GAAAN,OAAAE,GAAAF,OAAAI,GAAAJ,OAAAO,GAAAP,OAAA+B,GAAA/B,OAAAgC,GAAAhC,OAAAG,GAAAH,OAAAQ;AAAAA,EAAA;AAAAA,IAAAA,IAAAR,EAAA,CAAA;AAAA,MAAAS;AAAA,SAAAT,UAAAQ,KA/CJC,wCACGD,UAAAA,EAAAA,CA8CC,GACDR,QAAAQ,GAAAR,QAAAS,KAAAA,IAAAT,EAAA,EAAA,GAhDHS;AAgDG;AAnDA,SAAAyB,EAAAG,GAAA;AAAA,SAM+BA,MAAO;AAAI;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const w=require("./index-CHPV5EwG-
|
|
1
|
+
"use strict";const w=require("./index-CHPV5EwG-D4pAp7u0.cjs"),o=require("react"),g=require("./proxy-CqH8m8IQ.cjs");function T(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const M=T(o);function L(e,s){if(typeof e=="function")return e(s);e!=null&&(e.current=s)}function _(...e){return s=>{let t=!1;const r=e.map(u=>{const n=L(u,s);return!t&&typeof n=="function"&&(t=!0),n});if(t)return()=>{for(let u=0;u<r.length;u++){const n=r[u];typeof n=="function"?n():L(e[u],null)}}}}function A(...e){return M.useCallback(_(...e),e)}class q extends M.Component{getSnapshotBeforeUpdate(s){const t=this.props.childRef.current;if(t&&s.isPresent&&!this.props.isPresent){const r=t.offsetParent,u=g.isHTMLElement(r)&&r.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=u-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function H({children:e,isPresent:s,anchorX:t,root:r}){const u=o.useId(),n=o.useRef(null),h=o.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:R}=o.useContext(g.MotionConfigContext),j=e.props?.ref??e?.ref,f=A(n,j);return o.useInsertionEffect(()=>{const{width:y,height:c,top:l,left:a,right:m}=h.current;if(s||!n.current||!y||!c)return;const x=t==="left"?`left: ${a}`:`right: ${m}`;n.current.dataset.motionPopId=u;const d=document.createElement("style");R&&(d.nonce=R);const P=r??document.head;return P.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
|
2
2
|
[data-motion-pop-id="${u}"] {
|
|
3
3
|
position: absolute !important;
|
|
4
4
|
width: ${y}px !important;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
top: ${l}px !important;
|
|
8
8
|
}
|
|
9
9
|
`),()=>{P.contains(d)&&P.removeChild(d)}},[s]),w.jsxRuntimeExports.jsx(q,{isPresent:s,childRef:n,sizeRef:h,children:M.cloneElement(e,{ref:f})})}const N=({children:e,initial:s,isPresent:t,onExitComplete:r,custom:u,presenceAffectsLayout:n,mode:h,anchorX:R,root:j})=>{const f=g.useConstant(V),y=o.useId();let c=!0,l=o.useMemo(()=>(c=!1,{id:y,initial:s,isPresent:t,custom:u,onExitComplete:a=>{f.set(a,!0);for(const m of f.values())if(!m)return;r&&r()},register:a=>(f.set(a,!1),()=>f.delete(a))}),[t,f,r]);return n&&c&&(l={...l}),o.useMemo(()=>{f.forEach((a,m)=>f.set(m,!1))},[t]),M.useEffect(()=>{!t&&!f.size&&r&&r()},[t]),h==="popLayout"&&(e=w.jsxRuntimeExports.jsx(H,{isPresent:t,anchorX:R,root:j,children:e})),w.jsxRuntimeExports.jsx(g.PresenceContext.Provider,{value:l,children:e})};function V(){return new Map}const b=e=>e.key||"";function O(e){const s=[];return o.Children.forEach(e,t=>{o.isValidElement(t)&&s.push(t)}),s}const W=({children:e,custom:s,initial:t=!0,onExitComplete:r,presenceAffectsLayout:u=!0,mode:n="sync",propagate:h=!1,anchorX:R="left",root:j})=>{const[f,y]=g.usePresence(h),c=o.useMemo(()=>O(e),[e]),l=h&&!f?[]:c.map(b),a=o.useRef(!0),m=o.useRef(c),x=g.useConstant(()=>new Map),d=o.useRef(new Set),[P,S]=o.useState(c),[C,k]=o.useState(c);g.useIsomorphicLayoutEffect(()=>{a.current=!1,m.current=c;for(let p=0;p<C.length;p++){const i=b(C[p]);l.includes(i)?(x.delete(i),d.current.delete(i)):x.get(i)!==!0&&x.set(i,!1)}},[C,l.length,l.join("-")]);const v=[];if(c!==P){let p=[...c];for(let i=0;i<C.length;i++){const E=C[i],$=b(E);l.includes($)||(p.splice(i,0,E),v.push(E))}return n==="wait"&&v.length&&(p=v),k(O(p)),S(c),null}process.env.NODE_ENV!=="production"&&n==="wait"&&C.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:D}=o.useContext(g.LayoutGroupContext);return w.jsxRuntimeExports.jsx(w.jsxRuntimeExports.Fragment,{children:C.map(p=>{const i=b(p),E=h&&!f?!1:c===C||l.includes(i),$=()=>{if(d.current.has(i))return;if(d.current.add(i),x.has(i))x.set(i,!0);else return;let z=!0;x.forEach(I=>{I||(z=!1)}),z&&(D?.(),k(m.current),h&&y?.(),r&&r())};return w.jsxRuntimeExports.jsx(N,{isPresent:E,initial:!a.current||t?void 0:!1,custom:s,presenceAffectsLayout:u,mode:n,root:j,onExitComplete:E?void 0:$,anchorX:R,children:p},i)})})};exports.AnimatePresence=W;
|
|
10
|
-
//# sourceMappingURL=index-
|
|
10
|
+
//# sourceMappingURL=index-FXfr51ZM.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-CoobIWNj.cjs","sources":["../node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Taken from https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx\n */\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n }\n else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n // React <19 will log an error to the console if a callback ref returns a\n // value. We don't use ref cleanups internally so this will only happen if a\n // user's ref callback returns a value, which we only expect if they are\n // using the cleanup functionality added in React 19.\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === \"function\") {\n cleanup();\n }\n else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nfunction useComposedRefs(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs);\n}\n\nexport { useComposedRefs };\n//# sourceMappingURL=use-composed-ref.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, root }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n */\n const childRef = children.props?.ref ??\n children?.ref;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? document.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = (jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, root: root, children: children }));\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n//# sourceMappingURL=utils.mjs.map\n","\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n exitingComponents.current.add(key);\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && safeToRemove?.();\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React","PopChildMeasure","prevProps","element","parent","parentWidth","isHTMLElement","size","PopChild","children","isPresent","anchorX","root","id","useId","useRef","nonce","useContext","MotionConfigContext","childRef","composedRef","useInsertionEffect","width","height","top","left","right","style","jsx","PresenceChild","initial","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","useConstant","newChildrenMap","isReusedContext","context","useMemo","childId","isComplete","_","key","PresenceContext","getChildKey","child","onlyElements","filtered","Children","isValidElement","AnimatePresence","propagate","isParentPresent","safeToRemove","usePresence","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","exitingComponents","diffedChildren","setDiffedChildren","useState","renderedChildren","setRenderedChildren","useIsomorphicLayoutEffect","exitingChildren","nextChildren","forceRender","LayoutGroupContext","Fragment","onExit","isEveryExit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E,UAAWnB,EAAW,QAAS,CAACiD,EAAgB,SAAW7B,EAC9E,OACA,GAAO,OAAQE,EAAQ,sBAAuBC,EAAuB,KAAMC,EAAM,KAAMtB,EAAM,eAAgBF,EAAY,OAAYgE,EAAQ,QAAS/D,EAAS,SAAUoC,CAAK,EAAIH,CAAG,CACnM,CAAC,CAAC,CAAE,CACZ","x_google_ignoreList":[0,1,2,3,4]}
|
|
1
|
+
{"version":3,"file":"index-FXfr51ZM.cjs","sources":["../node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs","../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"],"sourcesContent":["import * as React from 'react';\n\n/**\n * Taken from https://github.com/radix-ui/primitives/blob/main/packages/react/compose-refs/src/compose-refs.tsx\n */\n/**\n * Set a given ref to a given value\n * This utility takes care of different types of refs: callback refs and RefObject(s)\n */\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n }\n else if (ref !== null && ref !== undefined) {\n ref.current = value;\n }\n}\n/**\n * A utility to compose multiple refs together\n * Accepts callback refs and RefObject(s)\n */\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup === \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n // React <19 will log an error to the console if a callback ref returns a\n // value. We don't use ref cleanups internally so this will only happen if a\n // user's ref callback returns a value, which we only expect if they are\n // using the cleanup functionality added in React 19.\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup === \"function\") {\n cleanup();\n }\n else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\n/**\n * A custom hook that composes multiple refs\n * Accepts callback refs and RefObject(s)\n */\nfunction useComposedRefs(...refs) {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useCallback(composeRefs(...refs), refs);\n}\n\nexport { useComposedRefs };\n//# sourceMappingURL=use-composed-ref.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (element && prevProps.isPresent && !this.props.isPresent) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const size = this.props.sizeRef.current;\n size.height = element.offsetHeight || 0;\n size.width = element.offsetWidth || 0;\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, root }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n */\n const childRef = children.props?.ref ??\n children?.ref;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right } = size.current;\n if (isPresent || !ref.current || !width || !height)\n return;\n const x = anchorX === \"left\" ? `left: ${left}` : `right: ${right}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? document.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n top: ${top}px !important;\n }\n `);\n }\n return () => {\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => presenceChildren.delete(childId);\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n if (mode === \"popLayout\") {\n children = (jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, root: root, children: children }));\n }\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n","import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n//# sourceMappingURL=utils.mjs.map\n","\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n exitingComponents.current.add(key);\n if (exitComplete.has(key)) {\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && safeToRemove?.();\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React","PopChildMeasure","prevProps","element","parent","parentWidth","isHTMLElement","size","PopChild","children","isPresent","anchorX","root","id","useId","useRef","nonce","useContext","MotionConfigContext","childRef","composedRef","useInsertionEffect","width","height","top","left","right","style","jsx","PresenceChild","initial","onExitComplete","custom","presenceAffectsLayout","mode","presenceChildren","useConstant","newChildrenMap","isReusedContext","context","useMemo","childId","isComplete","_","key","PresenceContext","getChildKey","child","onlyElements","filtered","Children","isValidElement","AnimatePresence","propagate","isParentPresent","safeToRemove","usePresence","presentChildren","presentKeys","isInitialRender","pendingPresentChildren","exitComplete","exitingComponents","diffedChildren","setDiffedChildren","useState","renderedChildren","setRenderedChildren","useIsomorphicLayoutEffect","exitingChildren","nextChildren","forceRender","LayoutGroupContext","Fragment","onExit","isEveryExitComplete","isExitComplete"],"mappings":"6YASA,SAASA,EAAOC,EAAKC,EAAO,CACxB,GAAI,OAAOD,GAAQ,WACf,OAAOA,EAAIC,CAAK,EAEXD,GAAQ,OACbA,EAAI,QAAUC,EAEtB,CAKA,SAASC,KAAeC,EAAM,CAC1B,OAAQC,GAAS,CACb,IAAIC,EAAa,GACjB,MAAMC,EAAWH,EAAK,IAAKH,GAAQ,CAC/B,MAAMO,EAAUR,EAAOC,EAAKI,CAAI,EAChC,MAAI,CAACC,GAAc,OAAOE,GAAY,aAClCF,EAAa,IAEVE,CACX,CAAC,EAKD,GAAIF,EACA,MAAO,IAAM,CACT,QAASG,EAAI,EAAGA,EAAIF,EAAS,OAAQE,IAAK,CACtC,MAAMD,EAAUD,EAASE,CAAC,EACtB,OAAOD,GAAY,WACnBA,EAAO,EAGPR,EAAOI,EAAKK,CAAC,EAAG,IAAI,CAE5B,CACJ,CAER,CACJ,CAKA,SAASC,KAAmBN,EAAM,CAE9B,OAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACvD,CC7CA,MAAMQ,UAAwBD,EAAM,SAAU,CAC1C,wBAAwBE,EAAW,CAC/B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EAAYC,CAAK,EACvBrC,EAAY2C,GAAa,CAACC,EAC1B,GACAG,IAAoBS,GAClBR,EAAY,SAASd,CAAG,EAC1B8B,EAAS,IAAM,CACjB,GAAIZ,EAAkB,QAAQ,IAAIlB,CAAG,EACjC,OAGJ,GADAkB,EAAkB,QAAQ,IAAIlB,CAAG,EAC7BiB,EAAa,IAAIjB,CAAG,EACpBiB,EAAa,IAAIjB,EAAK,EAAI,MAG1B,QAEJ,IAAI+B,EAAsB,GAC1Bd,EAAa,QAASe,GAAmB,CAChCA,IACDD,EAAsB,GAC9B,CAAC,EACGA,IACAJ,IAAW,EACXJ,EAAoBP,EAAuB,OAAO,EAClDP,GAAaE,IAAY,EACzBxB,GAAkBA,EAAc,EAExC,EACA,OAAQH,EAAAA,kBAAAA,IAAIC,EAAe,CAAE,UAAWnB,EAAW,QAAS,CAACiD,EAAgB,SAAW7B,EAC9E,OACA,GAAO,OAAQE,EAAQ,sBAAuBC,EAAuB,KAAMC,EAAM,KAAMtB,EAAM,eAAgBF,EAAY,OAAYgE,EAAQ,QAAS/D,EAAS,SAAUoC,CAAK,EAAIH,CAAG,CACnM,CAAC,CAAC,CAAE,CACZ","x_google_ignoreList":[0,1,2,3,4]}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import c from "react";
|
|
2
|
-
import { g as I, P as M, C as h } from "./index-
|
|
3
|
-
import { a as m } from "./index-CHPV5EwG-
|
|
2
|
+
import { g as I, P as M, C as h } from "./index-w64Zl8io-ihagHOdP.js";
|
|
3
|
+
import { a as m } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
4
4
|
function E(i) {
|
|
5
|
-
const f = i + "CollectionProvider", [y, S] = I(f), [
|
|
5
|
+
const f = i + "CollectionProvider", [y, S] = I(f), [w, a] = y(
|
|
6
6
|
f,
|
|
7
7
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
8
|
-
),
|
|
8
|
+
), p = (l) => {
|
|
9
9
|
const { scope: e, children: r } = l, t = c.useRef(null), n = c.useRef(/* @__PURE__ */ new Map()).current;
|
|
10
|
-
return /* @__PURE__ */ m.jsx(
|
|
10
|
+
return /* @__PURE__ */ m.jsx(w, { scope: e, itemMap: n, collectionRef: t, children: r });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
const u = i + "CollectionSlot",
|
|
12
|
+
p.displayName = f;
|
|
13
|
+
const u = i + "CollectionSlot", A = h(u), d = c.forwardRef(
|
|
14
14
|
(l, e) => {
|
|
15
15
|
const { scope: r, children: t } = l, n = a(u, r), o = M(e, n.collectionRef);
|
|
16
|
-
return /* @__PURE__ */ m.jsx(
|
|
16
|
+
return /* @__PURE__ */ m.jsx(A, { ref: o, children: t });
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
|
-
|
|
20
|
-
const s = i + "CollectionItemSlot", R = "data-radix-collection-item",
|
|
19
|
+
d.displayName = u;
|
|
20
|
+
const s = i + "CollectionItemSlot", R = "data-radix-collection-item", N = h(s), x = c.forwardRef(
|
|
21
21
|
(l, e) => {
|
|
22
|
-
const { scope: r, children: t, ...n } = l, o = c.useRef(null),
|
|
22
|
+
const { scope: r, children: t, ...n } = l, o = c.useRef(null), v = M(e, o), C = a(s, r);
|
|
23
23
|
return c.useEffect(() => (C.itemMap.set(o, { ref: o, ...n }), () => {
|
|
24
24
|
C.itemMap.delete(o);
|
|
25
|
-
})), /* @__PURE__ */ m.jsx(
|
|
25
|
+
})), /* @__PURE__ */ m.jsx(N, { [R]: "", ref: v, children: t });
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
x.displayName = s;
|
|
29
|
-
function
|
|
29
|
+
function j(l) {
|
|
30
30
|
const e = a(i + "CollectionConsumer", l);
|
|
31
31
|
return c.useCallback(() => {
|
|
32
32
|
const r = e.collectionRef.current;
|
|
@@ -38,12 +38,12 @@ function E(i) {
|
|
|
38
38
|
}, [e.collectionRef, e.itemMap]);
|
|
39
39
|
}
|
|
40
40
|
return [
|
|
41
|
-
{ Provider:
|
|
42
|
-
|
|
41
|
+
{ Provider: p, Slot: d, ItemSlot: x },
|
|
42
|
+
j,
|
|
43
43
|
S
|
|
44
44
|
];
|
|
45
45
|
}
|
|
46
46
|
export {
|
|
47
47
|
E as h
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=index-
|
|
49
|
+
//# sourceMappingURL=index-Scxs_wcm-BAjU0Cob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Scxs_wcm-BAjU0Cob.js","sources":["../node_modules/@undp/design-system-react/dist/index-Scxs_wcm.js"],"sourcesContent":["import r from \"react\";\nimport { a as y } from \"./index-CnQ7XQg1.js\";\nimport { u as S, a as M } from \"./index-DEx84bLj.js\";\nimport { j as d } from \"./jsx-runtime-tc70JA_2.js\";\nfunction h(s) {\n const a = s + \"CollectionProvider\", [A, E] = y(a), [N, m] = A(\n a,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n ), p = (c) => {\n const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ d.jsx(N, { scope: e, itemMap: t, collectionRef: o, children: l });\n };\n p.displayName = a;\n const f = s + \"CollectionSlot\", _ = M(f), C = r.forwardRef(\n (c, e) => {\n const { scope: l, children: o } = c, t = m(f, l), n = S(e, t.collectionRef);\n return /* @__PURE__ */ d.jsx(_, { ref: n, children: o });\n }\n );\n C.displayName = f;\n const u = s + \"CollectionItemSlot\", R = \"data-radix-collection-item\", T = M(u), x = r.forwardRef(\n (c, e) => {\n const { scope: l, children: o, ...t } = c, n = r.useRef(null), I = S(e, n), i = m(u, l);\n return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => {\n i.itemMap.delete(n);\n })), /* @__PURE__ */ d.jsx(T, { [R]: \"\", ref: I, children: o });\n }\n );\n x.displayName = u;\n function O(c) {\n const e = m(s + \"CollectionConsumer\", c);\n return r.useCallback(() => {\n const o = e.collectionRef.current;\n if (!o) return [];\n const t = Array.from(o.querySelectorAll(`[${R}]`));\n return Array.from(e.itemMap.values()).sort(\n (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)\n );\n }, [e.collectionRef, e.itemMap]);\n }\n return [\n { Provider: p, Slot: C, ItemSlot: x },\n O,\n E\n ];\n}\nexport {\n h as c\n};\n//# sourceMappingURL=index-Scxs_wcm.js.map\n"],"names":["h","s","a","A","E","y","N","m","c","l","o","r","t","d","f","_","M","C","n","S","u","T","I","i","O","v"],"mappings":";;;AAIA,SAASA,EAAEC,GAAG;AACZ,QAAMC,IAAID,IAAI,sBAAsB,CAACE,GAAGC,CAAC,IAAIC,EAAEH,CAAC,GAAG,CAACI,GAAGC,CAAC,IAAIJ;AAAA,IAC1DD;AAAA,IACA,EAAE,eAAe,EAAE,SAAS,KAAI,GAAI,SAAyB,oBAAI,IAAG,EAAE;AAAA,EAC1E,GAAK,IAAI,CAACM,MAAM;AACZ,UAAM,EAAE,OAAO,GAAG,UAAUC,EAAC,IAAKD,GAAGE,IAAIC,EAAE,OAAO,IAAI,GAAGC,IAAID,EAAE,OAAuB,oBAAI,IAAG,CAAE,EAAE;AACjG,WAAuBE,gBAAAA,EAAE,IAAIP,GAAG,EAAE,OAAO,GAAG,SAASM,GAAG,eAAeF,GAAG,UAAUD,EAAC,CAAE;AAAA,EACzF;AACA,IAAE,cAAcP;AAChB,QAAMY,IAAIb,IAAI,kBAAkBc,IAAIC,EAAEF,CAAC,GAAGG,IAAIN,EAAE;AAAA,IAC9C,CAACH,GAAG,MAAM;AACR,YAAM,EAAE,OAAOC,GAAG,UAAUC,EAAC,IAAKF,GAAGI,IAAIL,EAAEO,GAAGL,CAAC,GAAGS,IAAIC,EAAE,GAAGP,EAAE,aAAa;AAC1E,aAAuBC,gBAAAA,EAAE,IAAIE,GAAG,EAAE,KAAKG,GAAG,UAAUR,GAAG;AAAA,IACzD;AAAA,EACJ;AACEO,EAAAA,EAAE,cAAcH;AAChB,QAAMM,IAAInB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"),i=require("./index-w64Zl8io-DrMm5QSb.cjs"),m=require("./index-CHPV5EwG-D4pAp7u0.cjs");function N(s){const u=s+"CollectionProvider",[M,y]=i.g(u),[w,a]=M(u,{collectionRef:{current:null},itemMap:new Map}),p=o=>{const{scope:e,children:r}=o,t=c.useRef(null),l=c.useRef(new Map).current;return m.ae.jsx(w,{scope:e,itemMap:l,collectionRef:t,children:r})};p.displayName=u;const f=s+"CollectionSlot",P=i.C(f),R=c.forwardRef((o,e)=>{const{scope:r,children:t}=o,l=a(f,r),n=i.P(e,l.collectionRef);return m.ae.jsx(P,{ref:n,children:t})});R.displayName=f;const d=s+"CollectionItemSlot",C="data-radix-collection-item",S=i.C(d),x=c.forwardRef((o,e)=>{const{scope:r,children:t,...l}=o,n=c.useRef(null),A=i.P(e,n),h=a(d,r);return c.useEffect(()=>(h.itemMap.set(n,{ref:n,...l}),()=>{h.itemMap.delete(n)})),m.ae.jsx(S,{[C]:"",ref:A,children:t})});x.displayName=d;function q(o){const e=a(s+"CollectionConsumer",o);return c.useCallback(()=>{const r=e.collectionRef.current;if(!r)return[];const t=Array.from(r.querySelectorAll(`[${C}]`));return Array.from(e.itemMap.values()).sort((l,n)=>t.indexOf(l.ref.current)-t.indexOf(n.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:p,Slot:R,ItemSlot:x},q,y]}exports.h=N;
|
|
2
|
+
//# sourceMappingURL=index-Scxs_wcm-DUDU-Gll.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Scxs_wcm-DUDU-Gll.cjs","sources":["../node_modules/@undp/design-system-react/dist/index-Scxs_wcm.js"],"sourcesContent":["import r from \"react\";\nimport { a as y } from \"./index-CnQ7XQg1.js\";\nimport { u as S, a as M } from \"./index-DEx84bLj.js\";\nimport { j as d } from \"./jsx-runtime-tc70JA_2.js\";\nfunction h(s) {\n const a = s + \"CollectionProvider\", [A, E] = y(a), [N, m] = A(\n a,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n ), p = (c) => {\n const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ d.jsx(N, { scope: e, itemMap: t, collectionRef: o, children: l });\n };\n p.displayName = a;\n const f = s + \"CollectionSlot\", _ = M(f), C = r.forwardRef(\n (c, e) => {\n const { scope: l, children: o } = c, t = m(f, l), n = S(e, t.collectionRef);\n return /* @__PURE__ */ d.jsx(_, { ref: n, children: o });\n }\n );\n C.displayName = f;\n const u = s + \"CollectionItemSlot\", R = \"data-radix-collection-item\", T = M(u), x = r.forwardRef(\n (c, e) => {\n const { scope: l, children: o, ...t } = c, n = r.useRef(null), I = S(e, n), i = m(u, l);\n return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => {\n i.itemMap.delete(n);\n })), /* @__PURE__ */ d.jsx(T, { [R]: \"\", ref: I, children: o });\n }\n );\n x.displayName = u;\n function O(c) {\n const e = m(s + \"CollectionConsumer\", c);\n return r.useCallback(() => {\n const o = e.collectionRef.current;\n if (!o) return [];\n const t = Array.from(o.querySelectorAll(`[${R}]`));\n return Array.from(e.itemMap.values()).sort(\n (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)\n );\n }, [e.collectionRef, e.itemMap]);\n }\n return [\n { Provider: p, Slot: C, ItemSlot: x },\n O,\n E\n ];\n}\nexport {\n h as c\n};\n//# sourceMappingURL=index-Scxs_wcm.js.map\n"],"names":["h","a","A","E","y","N","m","c","l","o","r","t","d","_","M","C","S","u","R","T","I","i","O","v"],"mappings":"4HAIA,SAASA,EAAE,EAAG,CACZ,MAAMC,EAAI,EAAI,qBAAsB,CAACC,EAAGC,CAAC,EAAIC,EAAAA,EAAEH,CAAC,EAAG,CAACI,EAAGC,CAAC,EAAIJ,EAC1DD,EACA,CAAE,cAAe,CAAE,QAAS,IAAI,EAAI,QAAyB,IAAI,GAAK,CAC1E,EAAK,EAAKM,GAAM,CACZ,KAAM,CAAE,MAAO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AAE,YAAY,IAAM,CACzB,MAAMD,EAAI,EAAE,cAAc,QAC1B,GAAI,CAACA,EAAG,MAAO,CAAA,EACf,MAAM,EAAI,MAAM,KAAKA,EAAE,iBAAiB,IAAIS,CAAC,GAAG,CAAC,EACjD,OAAO,MAAM,KAAK,EAAE,QAAQ,OAAM,CAAE,EAAE,KACpC,CAACG,EAAGE,IAAM,EAAE,QAAQF,EAAE,IAAI,OAAO,EAAI,EAAE,QAAQE,EAAE,IAAI,OAAO,CACpE,CACI,EAAG,CAAC,EAAE,cAAe,EAAE,OAAO,CAAC,CACjC,CACA,MAAO,CACL,CAAE,SAAU,EAAG,KAAMR,EAAG,SAAU,CAAC,EACnCO,EACAnB,CACJ,CACA","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const Y=require("react"),E=require("./index-CHPV5EwG-6v2a2njQ.cjs"),W=require("react-dom");function I(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=I(Y),J=I(W);function j(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function A(...e){return t=>{let n=!1;const r=e.map(o=>{const i=j(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():j(e[o],null)}}}}function O(...e){return s.useCallback(A(...e),e)}function k(e){const t=Q(e),n=s.forwardRef((r,o)=>{const{children:i,...u}=r,c=s.Children.toArray(i),d=c.find(te);if(d){const a=d.props.children,l=c.map(f=>f===d?s.Children.count(a)>1?s.Children.only(null):s.isValidElement(a)?a.props.children:null:f);return E.ae.jsx(t,{...u,ref:o,children:s.isValidElement(a)?s.cloneElement(a,void 0,l):null})}return E.ae.jsx(t,{...u,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Q(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const u=re(o),c=ne(i,o.props);return o.type!==s.Fragment&&(c.ref=r?A(r,u):u),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ee=Symbol("radix.slottable");function te(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ee}function ne(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...u)=>{const c=i(...u);return o(...u),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function re(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],w=oe.reduce((e,t)=>{const n=k(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:u,...c}=o,d=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.ae.jsx(d,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function F(e,t){e&&J.flushSync(()=>e.dispatchEvent(t))}var se=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ie="VisuallyHidden",U=s.forwardRef((e,t)=>E.ae.jsx(w.span,{...e,ref:t,style:{...se,...e.style}}));U.displayName=ie;function ue(e,t){const n=s.createContext(t),r=i=>{const{children:u,...c}=i,d=s.useMemo(()=>c,Object.values(c));return E.ae.jsx(n.Provider,{value:d,children:u})};r.displayName=e+"Provider";function o(i){const u=s.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function ce(e,t=[]){let n=[];function r(i,u){const c=s.createContext(u),d=n.length;n=[...n,u];const a=f=>{const{scope:m,children:v,...y}=f,h=m?.[e]?.[d]||c,C=s.useMemo(()=>y,Object.values(y));return E.ae.jsx(h.Provider,{value:C,children:v})};a.displayName=i+"Provider";function l(f,m){const v=m?.[e]?.[d]||c,y=s.useContext(v);if(y)return y;if(u!==void 0)return u;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[a,l]}const o=()=>{const i=n.map(u=>s.createContext(u));return function(u){const c=u?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return o.scopeName=e,[r,ae(o,...t)]}function ae(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=r.reduce((u,{useScope:c,scopeName:d})=>{const a=c(o)[`__scope${d}`];return{...u,...a}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var b=globalThis?.document?s.useLayoutEffect:()=>{},le=s[" useInsertionEffect ".trim().toString()]||b;function de({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,u]=fe({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const l=s.useRef(e!==void 0);s.useEffect(()=>{const f=l.current;f!==c&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=c},[c,r])}const a=s.useCallback(l=>{if(c){const f=pe(l)?l(e):l;f!==e&&u.current?.(f)}else i(l)},[c,e,i,u]);return[d,a]}function fe({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return le(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function pe(e){return typeof e=="function"}function P(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function me(e,t=globalThis?.document){const n=P(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ve="DismissableLayer",R="dismissableLayer.update",ye="dismissableLayer.pointerDownOutside",Ee="dismissableLayer.focusOutside",_,z=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:u,onDismiss:c,...d}=e,a=s.useContext(z),[l,f]=s.useState(null),m=l?.ownerDocument??globalThis?.document,[,v]=s.useState({}),y=O(t,p=>f(p)),h=Array.from(a.layers),[C]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),Z=h.indexOf(C),T=l?h.indexOf(l):-1,K=a.layersWithOutsidePointerEventsDisabled.size>0,L=T>=Z,G=be(p=>{const D=p.target,$=[...a.branches].some(X=>X.contains(D));!L||$||(o?.(p),u?.(p),p.defaultPrevented||c?.())},m),x=we(p=>{const D=p.target;[...a.branches].some($=>$.contains(D))||(i?.(p),u?.(p),p.defaultPrevented||c?.())},m);return me(p=>{T===a.layers.size-1&&(r?.(p),!p.defaultPrevented&&c&&(p.preventDefault(),c()))},m),s.useEffect(()=>{if(l)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(_=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(l)),a.layers.add(l),M(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=_)}},[l,m,n,a]),s.useEffect(()=>()=>{l&&(a.layers.delete(l),a.layersWithOutsidePointerEventsDisabled.delete(l),M())},[l,a]),s.useEffect(()=>{const p=()=>v({});return document.addEventListener(R,p),()=>document.removeEventListener(R,p)},[]),E.ae.jsx(w.div,{...d,ref:y,style:{pointerEvents:K?L?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,x.onFocusCapture),onBlurCapture:N(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,G.onPointerDownCapture)})});S.displayName=ve;var he="DismissableLayerBranch",B=s.forwardRef((e,t)=>{const n=s.useContext(z),r=s.useRef(null),o=O(t,r);return s.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),E.ae.jsx(w.div,{...e,ref:o})});B.displayName=he;function be(e,t=globalThis?.document){const n=P(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let d=function(){V(ye,n,a,{discrete:!0})};const a={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function we(e,t=globalThis?.document){const n=P(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i=>{i.target&&!r.current&&V(Ee,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function M(){const e=new CustomEvent(R);document.dispatchEvent(e)}function V(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?F(o,i):o.dispatchEvent(i)}var ge=S,Ne=B,Oe="Portal",q=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=s.useState(!1);b(()=>i(!0),[]);const u=n||o&&globalThis?.document?.body;return u?W.createPortal(E.ae.jsx(w.div,{...r,ref:t}),u):null});q.displayName=Oe;function Pe(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var H=e=>{const{present:t,children:n}=e,r=Ce(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),i=O(r.ref,De(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:i}):null};H.displayName="Presence";function Ce(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),i=s.useRef("none"),u=e?"mounted":"unmounted",[c,d]=Pe(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const a=g(r.current);i.current=c==="mounted"?a:"none"},[c]),b(()=>{const a=r.current,l=o.current;if(l!==e){const f=i.current,m=g(a);e?d("MOUNT"):m==="none"||a?.display==="none"?d("UNMOUNT"):d(l&&f!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),b(()=>{if(t){let a;const l=t.ownerDocument.defaultView??window,f=v=>{const y=g(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&y&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",a=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},m=v=>{v.target===t&&(i.current=g(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{l.clearTimeout(a),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:s.useCallback(a=>{r.current=a?getComputedStyle(a):null,n(a)},[])}}function g(e){return e?.animationName||"none"}function De(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.$=Ne;exports.C=k;exports.E=H;exports.E$1=b;exports.N=F;exports.P=O;exports.R=ue;exports.T=S;exports.Z=ge;exports._=de;exports.a=U;exports.c=P;exports.g=ce;exports.j=N;exports.u=q;exports.w=w;
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
"use strict";const Y=require("react"),E=require("./index-CHPV5EwG-D4pAp7u0.cjs"),W=require("react-dom");function I(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=I(Y),J=I(W);function j(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function A(...e){return t=>{let n=!1;const r=e.map(o=>{const i=j(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():j(e[o],null)}}}}function O(...e){return s.useCallback(A(...e),e)}function k(e){const t=Q(e),n=s.forwardRef((r,o)=>{const{children:i,...u}=r,c=s.Children.toArray(i),d=c.find(te);if(d){const a=d.props.children,l=c.map(f=>f===d?s.Children.count(a)>1?s.Children.only(null):s.isValidElement(a)?a.props.children:null:f);return E.ae.jsx(t,{...u,ref:o,children:s.isValidElement(a)?s.cloneElement(a,void 0,l):null})}return E.ae.jsx(t,{...u,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Q(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const u=re(o),c=ne(i,o.props);return o.type!==s.Fragment&&(c.ref=r?A(r,u):u),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ee=Symbol("radix.slottable");function te(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ee}function ne(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...u)=>{const c=i(...u);return o(...u),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function re(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],w=oe.reduce((e,t)=>{const n=k(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:u,...c}=o,d=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.ae.jsx(d,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function F(e,t){e&&J.flushSync(()=>e.dispatchEvent(t))}var se=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ie="VisuallyHidden",U=s.forwardRef((e,t)=>E.ae.jsx(w.span,{...e,ref:t,style:{...se,...e.style}}));U.displayName=ie;function ue(e,t){const n=s.createContext(t),r=i=>{const{children:u,...c}=i,d=s.useMemo(()=>c,Object.values(c));return E.ae.jsx(n.Provider,{value:d,children:u})};r.displayName=e+"Provider";function o(i){const u=s.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function ce(e,t=[]){let n=[];function r(i,u){const c=s.createContext(u),d=n.length;n=[...n,u];const a=f=>{const{scope:m,children:v,...y}=f,h=m?.[e]?.[d]||c,C=s.useMemo(()=>y,Object.values(y));return E.ae.jsx(h.Provider,{value:C,children:v})};a.displayName=i+"Provider";function l(f,m){const v=m?.[e]?.[d]||c,y=s.useContext(v);if(y)return y;if(u!==void 0)return u;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[a,l]}const o=()=>{const i=n.map(u=>s.createContext(u));return function(u){const c=u?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return o.scopeName=e,[r,ae(o,...t)]}function ae(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=r.reduce((u,{useScope:c,scopeName:d})=>{const a=c(o)[`__scope${d}`];return{...u,...a}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var b=globalThis?.document?s.useLayoutEffect:()=>{},le=s[" useInsertionEffect ".trim().toString()]||b;function de({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,u]=fe({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:o;{const l=s.useRef(e!==void 0);s.useEffect(()=>{const f=l.current;f!==c&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=c},[c,r])}const a=s.useCallback(l=>{if(c){const f=pe(l)?l(e):l;f!==e&&u.current?.(f)}else i(l)},[c,e,i,u]);return[d,a]}function fe({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return le(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function pe(e){return typeof e=="function"}function P(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function me(e,t=globalThis?.document){const n=P(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ve="DismissableLayer",R="dismissableLayer.update",ye="dismissableLayer.pointerDownOutside",Ee="dismissableLayer.focusOutside",_,z=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:u,onDismiss:c,...d}=e,a=s.useContext(z),[l,f]=s.useState(null),m=l?.ownerDocument??globalThis?.document,[,v]=s.useState({}),y=O(t,p=>f(p)),h=Array.from(a.layers),[C]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),Z=h.indexOf(C),T=l?h.indexOf(l):-1,K=a.layersWithOutsidePointerEventsDisabled.size>0,L=T>=Z,G=be(p=>{const D=p.target,$=[...a.branches].some(X=>X.contains(D));!L||$||(o?.(p),u?.(p),p.defaultPrevented||c?.())},m),x=we(p=>{const D=p.target;[...a.branches].some($=>$.contains(D))||(i?.(p),u?.(p),p.defaultPrevented||c?.())},m);return me(p=>{T===a.layers.size-1&&(r?.(p),!p.defaultPrevented&&c&&(p.preventDefault(),c()))},m),s.useEffect(()=>{if(l)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(_=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(l)),a.layers.add(l),M(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=_)}},[l,m,n,a]),s.useEffect(()=>()=>{l&&(a.layers.delete(l),a.layersWithOutsidePointerEventsDisabled.delete(l),M())},[l,a]),s.useEffect(()=>{const p=()=>v({});return document.addEventListener(R,p),()=>document.removeEventListener(R,p)},[]),E.ae.jsx(w.div,{...d,ref:y,style:{pointerEvents:K?L?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,x.onFocusCapture),onBlurCapture:N(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,G.onPointerDownCapture)})});S.displayName=ve;var he="DismissableLayerBranch",B=s.forwardRef((e,t)=>{const n=s.useContext(z),r=s.useRef(null),o=O(t,r);return s.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),E.ae.jsx(w.div,{...e,ref:o})});B.displayName=he;function be(e,t=globalThis?.document){const n=P(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let d=function(){V(ye,n,a,{discrete:!0})};const a={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function we(e,t=globalThis?.document){const n=P(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i=>{i.target&&!r.current&&V(Ee,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function M(){const e=new CustomEvent(R);document.dispatchEvent(e)}function V(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?F(o,i):o.dispatchEvent(i)}var ge=S,Ne=B,Oe="Portal",q=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=s.useState(!1);b(()=>i(!0),[]);const u=n||o&&globalThis?.document?.body;return u?W.createPortal(E.ae.jsx(w.div,{...r,ref:t}),u):null});q.displayName=Oe;function Pe(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var H=e=>{const{present:t,children:n}=e,r=Ce(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),i=O(r.ref,De(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:i}):null};H.displayName="Presence";function Ce(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),i=s.useRef("none"),u=e?"mounted":"unmounted",[c,d]=Pe(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const a=g(r.current);i.current=c==="mounted"?a:"none"},[c]),b(()=>{const a=r.current,l=o.current;if(l!==e){const f=i.current,m=g(a);e?d("MOUNT"):m==="none"||a?.display==="none"?d("UNMOUNT"):d(l&&f!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),b(()=>{if(t){let a;const l=t.ownerDocument.defaultView??window,f=v=>{const y=g(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&y&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",a=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},m=v=>{v.target===t&&(i.current=g(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{l.clearTimeout(a),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:s.useCallback(a=>{r.current=a?getComputedStyle(a):null,n(a)},[])}}function g(e){return e?.animationName||"none"}function De(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.$=Ne;exports.C=k;exports.E=H;exports.E$1=b;exports.N=F;exports.P=O;exports.R=ue;exports.T=S;exports.Z=ge;exports._=de;exports.a=U;exports.c=P;exports.g=ce;exports.j=N;exports.u=q;exports.w=w;
|
|
2
|
+
//# sourceMappingURL=index-w64Zl8io-DrMm5QSb.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-w64Zl8io-DrMm5QSb.cjs","sources":["../node_modules/@undp/design-system-react/dist/index-DEx84bLj.js","../node_modules/@undp/design-system-react/dist/index-x074zSlZ.js","../node_modules/@undp/design-system-react/dist/index-CnQ7XQg1.js","../node_modules/@undp/design-system-react/dist/index-0ioNhtNM.js","../node_modules/@undp/design-system-react/dist/index-CkWXyUnb.js","../node_modules/@undp/design-system-react/dist/index-CkVr4wwq.js","../node_modules/@undp/design-system-react/dist/index-w64Zl8io.js"],"sourcesContent":["import * as l from \"react\";\nimport * as h from \"react-dom\";\nimport { j as f } from \"./jsx-runtime-tc70JA_2.js\";\nfunction d(e, t) {\n if (typeof e == \"function\")\n return e(t);\n e != null && (e.current = t);\n}\nfunction m(...e) {\n return (t) => {\n let r = !1;\n const o = e.map((n) => {\n const i = d(n, t);\n return !r && typeof i == \"function\" && (r = !0), i;\n });\n if (r)\n return () => {\n for (let n = 0; n < o.length; n++) {\n const i = o[n];\n typeof i == \"function\" ? i() : d(e[n], null);\n }\n };\n };\n}\nfunction P(...e) {\n return l.useCallback(m(...e), e);\n}\n// @__NO_SIDE_EFFECTS__\nfunction C(e) {\n const t = /* @__PURE__ */ E(e), r = l.forwardRef((o, n) => {\n const { children: i, ...a } = o, s = l.Children.toArray(i), c = s.find(b);\n if (c) {\n const u = c.props.children, S = s.map((p) => p === c ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : p);\n return /* @__PURE__ */ f.jsx(t, { ...a, ref: n, children: l.isValidElement(u) ? l.cloneElement(u, void 0, S) : null });\n }\n return /* @__PURE__ */ f.jsx(t, { ...a, ref: n, children: i });\n });\n return r.displayName = `${e}.Slot`, r;\n}\n// @__NO_SIDE_EFFECTS__\nfunction E(e) {\n const t = l.forwardRef((r, o) => {\n const { children: n, ...i } = r;\n if (l.isValidElement(n)) {\n const a = v(n), s = g(i, n.props);\n return n.type !== l.Fragment && (s.ref = o ? m(o, a) : a), l.cloneElement(n, s);\n }\n return l.Children.count(n) > 1 ? l.Children.only(null) : null;\n });\n return t.displayName = `${e}.SlotClone`, t;\n}\nvar y = /* @__PURE__ */ Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction j(e) {\n const t = ({ children: r }) => /* @__PURE__ */ f.jsx(f.Fragment, { children: r });\n return t.displayName = `${e}.Slottable`, t.__radixId = y, t;\n}\nfunction b(e) {\n return l.isValidElement(e) && typeof e.type == \"function\" && \"__radixId\" in e.type && e.type.__radixId === y;\n}\nfunction g(e, t) {\n const r = { ...t };\n for (const o in t) {\n const n = e[o], i = t[o];\n /^on[A-Z]/.test(o) ? n && i ? r[o] = (...s) => {\n const c = i(...s);\n return n(...s), c;\n } : n && (r[o] = n) : o === \"style\" ? r[o] = { ...n, ...i } : o === \"className\" && (r[o] = [n, i].filter(Boolean).join(\" \"));\n }\n return { ...e, ...r };\n}\nfunction v(e) {\n let t = Object.getOwnPropertyDescriptor(e.props, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning;\n return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, \"ref\")?.get, r = t && \"isReactWarning\" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);\n}\nvar R = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n], w = R.reduce((e, t) => {\n const r = /* @__PURE__ */ C(`Primitive.${t}`), o = l.forwardRef((n, i) => {\n const { asChild: a, ...s } = n, c = a ? r : t;\n return typeof window < \"u\" && (window[/* @__PURE__ */ Symbol.for(\"radix-ui\")] = !0), /* @__PURE__ */ f.jsx(c, { ...s, ref: i });\n });\n return o.displayName = `Primitive.${t}`, { ...e, [t]: o };\n}, {});\nfunction N(e, t) {\n e && h.flushSync(() => e.dispatchEvent(t));\n}\nexport {\n w as P,\n C as a,\n j as b,\n m as c,\n N as d,\n P as u\n};\n//# sourceMappingURL=index-DEx84bLj.js.map\n","import * as i from \"react\";\nimport { P as o } from \"./index-DEx84bLj.js\";\nimport { j as t } from \"./jsx-runtime-tc70JA_2.js\";\nvar s = Object.freeze({\n // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss\n position: \"absolute\",\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\"\n}), d = \"VisuallyHidden\", a = i.forwardRef(\n (r, e) => /* @__PURE__ */ t.jsx(\n o.span,\n {\n ...r,\n ref: e,\n style: { ...s, ...r.style }\n }\n )\n);\na.displayName = d;\nvar n = a;\nexport {\n n as R,\n s as V,\n a\n};\n//# sourceMappingURL=index-x074zSlZ.js.map\n","import * as c from \"react\";\nimport { j as x } from \"./jsx-runtime-tc70JA_2.js\";\nfunction R(e, s) {\n const t = c.createContext(s), i = (u) => {\n const { children: r, ...o } = u, l = c.useMemo(() => o, Object.values(o));\n return /* @__PURE__ */ x.jsx(t.Provider, { value: l, children: r });\n };\n i.displayName = e + \"Provider\";\n function n(u) {\n const r = c.useContext(t);\n if (r) return r;\n if (s !== void 0) return s;\n throw new Error(`\\`${u}\\` must be used within \\`${e}\\``);\n }\n return [i, n];\n}\nfunction g(e, s = []) {\n let t = [];\n function i(u, r) {\n const o = c.createContext(r), l = t.length;\n t = [...t, r];\n const d = (f) => {\n const { scope: v, children: p, ...m } = f, C = v?.[e]?.[l] || o, h = c.useMemo(() => m, Object.values(m));\n return /* @__PURE__ */ x.jsx(C.Provider, { value: h, children: p });\n };\n d.displayName = u + \"Provider\";\n function a(f, v) {\n const p = v?.[e]?.[l] || o, m = c.useContext(p);\n if (m) return m;\n if (r !== void 0) return r;\n throw new Error(`\\`${f}\\` must be used within \\`${u}\\``);\n }\n return [d, a];\n }\n const n = () => {\n const u = t.map((r) => c.createContext(r));\n return function(o) {\n const l = o?.[e] || u;\n return c.useMemo(\n () => ({ [`__scope${e}`]: { ...o, [e]: l } }),\n [o, l]\n );\n };\n };\n return n.scopeName = e, [i, S(n, ...s)];\n}\nfunction S(...e) {\n const s = e[0];\n if (e.length === 1) return s;\n const t = () => {\n const i = e.map((n) => ({\n useScope: n(),\n scopeName: n.scopeName\n }));\n return function(u) {\n const r = i.reduce((o, { useScope: l, scopeName: d }) => {\n const f = l(u)[`__scope${d}`];\n return { ...o, ...f };\n }, {});\n return c.useMemo(() => ({ [`__scope${s.scopeName}`]: r }), [r]);\n };\n };\n return t.scopeName = s.scopeName, t;\n}\nfunction j(e, s, { checkForDefaultPrevented: t = !0 } = {}) {\n return function(n) {\n if (e?.(n), t === !1 || !n.defaultPrevented)\n return s?.(n);\n };\n}\nvar E = globalThis?.document ? c.useLayoutEffect : () => {\n}, P = c[\" useInsertionEffect \".trim().toString()] || E;\nfunction _({\n prop: e,\n defaultProp: s,\n onChange: t = () => {\n },\n caller: i\n}) {\n const [n, u, r] = b({\n defaultProp: s,\n onChange: t\n }), o = e !== void 0, l = o ? e : n;\n {\n const a = c.useRef(e !== void 0);\n c.useEffect(() => {\n const f = a.current;\n f !== o && console.warn(\n `${i} is changing from ${f ? \"controlled\" : \"uncontrolled\"} to ${o ? \"controlled\" : \"uncontrolled\"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`\n ), a.current = o;\n }, [o, i]);\n }\n const d = c.useCallback(\n (a) => {\n if (o) {\n const f = w(a) ? a(e) : a;\n f !== e && r.current?.(f);\n } else\n u(a);\n },\n [o, e, u, r]\n );\n return [l, d];\n}\nfunction b({\n defaultProp: e,\n onChange: s\n}) {\n const [t, i] = c.useState(e), n = c.useRef(t), u = c.useRef(s);\n return P(() => {\n u.current = s;\n }, [s]), c.useEffect(() => {\n n.current !== t && (u.current?.(t), n.current = t);\n }, [t, n]), [t, i, u];\n}\nfunction w(e) {\n return typeof e == \"function\";\n}\nexport {\n g as a,\n E as b,\n j as c,\n R as d,\n _ as u\n};\n//# sourceMappingURL=index-CnQ7XQg1.js.map\n","import * as e from \"react\";\nfunction c(r) {\n const t = e.useRef(r);\n return e.useEffect(() => {\n t.current = r;\n }), e.useMemo(() => (...u) => t.current?.(...u), []);\n}\nexport {\n c as u\n};\n//# sourceMappingURL=index-0ioNhtNM.js.map\n","import * as i from \"react\";\nimport { c as h } from \"./index-CnQ7XQg1.js\";\nimport { u as R, P as g, d as j } from \"./index-DEx84bLj.js\";\nimport { u as m } from \"./index-0ioNhtNM.js\";\nimport { j as x } from \"./jsx-runtime-tc70JA_2.js\";\nfunction z(n, e = globalThis?.document) {\n const t = m(n);\n i.useEffect(() => {\n const o = (s) => {\n s.key === \"Escape\" && t(s);\n };\n return e.addEventListener(\"keydown\", o, { capture: !0 }), () => e.removeEventListener(\"keydown\", o, { capture: !0 });\n }, [t, e]);\n}\nvar H = \"DismissableLayer\", p = \"dismissableLayer.update\", K = \"dismissableLayer.pointerDownOutside\", M = \"dismissableLayer.focusOutside\", C, B = i.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n}), T = i.forwardRef(\n (n, e) => {\n const {\n disableOutsidePointerEvents: t = !1,\n onEscapeKeyDown: o,\n onPointerDownOutside: s,\n onFocusOutside: c,\n onInteractOutside: f,\n onDismiss: d,\n ...E\n } = n, a = i.useContext(B), [u, S] = i.useState(null), l = u?.ownerDocument ?? globalThis?.document, [, W] = i.useState({}), k = R(e, (r) => S(r)), b = Array.from(a.layers), [A] = [...a.layersWithOutsidePointerEventsDisabled].slice(-1), N = b.indexOf(A), D = u ? b.indexOf(u) : -1, _ = a.layersWithOutsidePointerEventsDisabled.size > 0, P = D >= N, U = Y((r) => {\n const v = r.target, L = [...a.branches].some((y) => y.contains(v));\n !P || L || (s?.(r), f?.(r), r.defaultPrevented || d?.());\n }, l), O = q((r) => {\n const v = r.target;\n [...a.branches].some((y) => y.contains(v)) || (c?.(r), f?.(r), r.defaultPrevented || d?.());\n }, l);\n return z((r) => {\n D === a.layers.size - 1 && (o?.(r), !r.defaultPrevented && d && (r.preventDefault(), d()));\n }, l), i.useEffect(() => {\n if (u)\n return t && (a.layersWithOutsidePointerEventsDisabled.size === 0 && (C = l.body.style.pointerEvents, l.body.style.pointerEvents = \"none\"), a.layersWithOutsidePointerEventsDisabled.add(u)), a.layers.add(u), w(), () => {\n t && a.layersWithOutsidePointerEventsDisabled.size === 1 && (l.body.style.pointerEvents = C);\n };\n }, [u, l, t, a]), i.useEffect(() => () => {\n u && (a.layers.delete(u), a.layersWithOutsidePointerEventsDisabled.delete(u), w());\n }, [u, a]), i.useEffect(() => {\n const r = () => W({});\n return document.addEventListener(p, r), () => document.removeEventListener(p, r);\n }, []), /* @__PURE__ */ x.jsx(\n g.div,\n {\n ...E,\n ref: k,\n style: {\n pointerEvents: _ ? P ? \"auto\" : \"none\" : void 0,\n ...n.style\n },\n onFocusCapture: h(n.onFocusCapture, O.onFocusCapture),\n onBlurCapture: h(n.onBlurCapture, O.onBlurCapture),\n onPointerDownCapture: h(\n n.onPointerDownCapture,\n U.onPointerDownCapture\n )\n }\n );\n }\n);\nT.displayName = H;\nvar X = \"DismissableLayerBranch\", F = i.forwardRef((n, e) => {\n const t = i.useContext(B), o = i.useRef(null), s = R(e, o);\n return i.useEffect(() => {\n const c = o.current;\n if (c)\n return t.branches.add(c), () => {\n t.branches.delete(c);\n };\n }, [t.branches]), /* @__PURE__ */ x.jsx(g.div, { ...n, ref: s });\n});\nF.displayName = X;\nfunction Y(n, e = globalThis?.document) {\n const t = m(n), o = i.useRef(!1), s = i.useRef(() => {\n });\n return i.useEffect(() => {\n const c = (d) => {\n if (d.target && !o.current) {\n let E = function() {\n I(\n K,\n t,\n a,\n { discrete: !0 }\n );\n };\n const a = { originalEvent: d };\n d.pointerType === \"touch\" ? (e.removeEventListener(\"click\", s.current), s.current = E, e.addEventListener(\"click\", s.current, { once: !0 })) : E();\n } else\n e.removeEventListener(\"click\", s.current);\n o.current = !1;\n }, f = window.setTimeout(() => {\n e.addEventListener(\"pointerdown\", c);\n }, 0);\n return () => {\n window.clearTimeout(f), e.removeEventListener(\"pointerdown\", c), e.removeEventListener(\"click\", s.current);\n };\n }, [e, t]), {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => o.current = !0\n };\n}\nfunction q(n, e = globalThis?.document) {\n const t = m(n), o = i.useRef(!1);\n return i.useEffect(() => {\n const s = (c) => {\n c.target && !o.current && I(M, t, { originalEvent: c }, {\n discrete: !1\n });\n };\n return e.addEventListener(\"focusin\", s), () => e.removeEventListener(\"focusin\", s);\n }, [e, t]), {\n onFocusCapture: () => o.current = !0,\n onBlurCapture: () => o.current = !1\n };\n}\nfunction w() {\n const n = new CustomEvent(p);\n document.dispatchEvent(n);\n}\nfunction I(n, e, t, { discrete: o }) {\n const s = t.originalEvent.target, c = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });\n e && s.addEventListener(n, e, { once: !0 }), o ? j(s, c) : s.dispatchEvent(c);\n}\nvar Z = T, $ = F;\nexport {\n $ as B,\n T as D,\n Z as R\n};\n//# sourceMappingURL=index-CkWXyUnb.js.map\n","import * as o from \"react\";\nimport n from \"react-dom\";\nimport { P as f } from \"./index-DEx84bLj.js\";\nimport { b as c } from \"./index-CnQ7XQg1.js\";\nimport { j as l } from \"./jsx-runtime-tc70JA_2.js\";\nvar p = \"Portal\", u = o.forwardRef((r, a) => {\n const { container: e, ...s } = r, [i, m] = o.useState(!1);\n c(() => m(!0), []);\n const t = e || i && globalThis?.document?.body;\n return t ? n.createPortal(/* @__PURE__ */ l.jsx(f.div, { ...s, ref: a }), t) : null;\n});\nu.displayName = p;\nexport {\n u as P\n};\n//# sourceMappingURL=index-CkVr4wwq.js.map\n","import * as i from \"react\";\nimport { u as y } from \"./index-DEx84bLj.js\";\nimport { b as A } from \"./index-CnQ7XQg1.js\";\nfunction T(n, e) {\n return i.useReducer((t, r) => e[t][r] ?? t, n);\n}\nvar E = (n) => {\n const { present: e, children: t } = n, r = R(e), a = typeof t == \"function\" ? t({ present: r.isPresent }) : i.Children.only(t), c = y(r.ref, P(a));\n return typeof t == \"function\" || r.isPresent ? i.cloneElement(a, { ref: c }) : null;\n};\nE.displayName = \"Presence\";\nfunction R(n) {\n const [e, t] = i.useState(), r = i.useRef(null), a = i.useRef(n), c = i.useRef(\"none\"), p = n ? \"mounted\" : \"unmounted\", [N, s] = T(p, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n return i.useEffect(() => {\n const o = l(r.current);\n c.current = N === \"mounted\" ? o : \"none\";\n }, [N]), A(() => {\n const o = r.current, m = a.current;\n if (m !== n) {\n const f = c.current, u = l(o);\n n ? s(\"MOUNT\") : u === \"none\" || o?.display === \"none\" ? s(\"UNMOUNT\") : s(m && f !== u ? \"ANIMATION_OUT\" : \"UNMOUNT\"), a.current = n;\n }\n }, [n, s]), A(() => {\n if (e) {\n let o;\n const m = e.ownerDocument.defaultView ?? window, d = (u) => {\n const g = l(r.current).includes(CSS.escape(u.animationName));\n if (u.target === e && g && (s(\"ANIMATION_END\"), !a.current)) {\n const O = e.style.animationFillMode;\n e.style.animationFillMode = \"forwards\", o = m.setTimeout(() => {\n e.style.animationFillMode === \"forwards\" && (e.style.animationFillMode = O);\n });\n }\n }, f = (u) => {\n u.target === e && (c.current = l(r.current));\n };\n return e.addEventListener(\"animationstart\", f), e.addEventListener(\"animationcancel\", d), e.addEventListener(\"animationend\", d), () => {\n m.clearTimeout(o), e.removeEventListener(\"animationstart\", f), e.removeEventListener(\"animationcancel\", d), e.removeEventListener(\"animationend\", d);\n };\n } else\n s(\"ANIMATION_END\");\n }, [e, s]), {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(N),\n ref: i.useCallback((o) => {\n r.current = o ? getComputedStyle(o) : null, t(o);\n }, [])\n };\n}\nfunction l(n) {\n return n?.animationName || \"none\";\n}\nfunction P(n) {\n let e = Object.getOwnPropertyDescriptor(n.props, \"ref\")?.get, t = e && \"isReactWarning\" in e && e.isReactWarning;\n return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, \"ref\")?.get, t = e && \"isReactWarning\" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);\n}\nexport {\n E as P\n};\n//# sourceMappingURL=index-w64Zl8io.js.map\n"],"names":["d","m","r","o","n","P","l","C","E","a","s","c","b","u","S","p","f","v","g","y","R","w","N","h","i","e","t","x","j","_","z","H","K","M","B","T","W","k","A","D","U","Y","L","O","q","X","F","I","Z","$"],"mappings":"yYAGA,SAASA,EAAE,EAAG,EAAG,CACf,GAAI,OAAO,GAAK,WACd,OAAO,EAAE,CAAC,EACZ,GAAK,OAAS,EAAE,QAAU,EAC5B,CACA,SAASC,KAAK,EAAG,CACf,OAAQ,GAAM,CACZ,IAAIC,EAAI,GACR,MAAMC,EAAI,EAAE,IAAKC,GAAM,CACrB,MAAM,EAAIJ,EAAEI,EAAG,CAAC,EAChB,MAAO,CAACF,GAAK,OAAO,GAAK,aAAeA,EAAI,IAAK,CACnD,CAAC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AAG,IAAKsB,EAAID,GAAK,mBAAoBA,GAAKA,EAAE,eAAgBC,EAAItB,EAAE,MAAM,IAAMA,EAAE,MAAM,KAAOA,EAAE,IACjK","x_google_ignoreList":[0,1,2,3,4,5,6]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { a as E } from "./index-CHPV5EwG-
|
|
2
|
+
import { a as E } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
3
3
|
import * as V from "react-dom";
|
|
4
4
|
import H from "react-dom";
|
|
5
5
|
function x(e, t) {
|
|
@@ -456,4 +456,4 @@ export {
|
|
|
456
456
|
ve as u,
|
|
457
457
|
g as w
|
|
458
458
|
};
|
|
459
|
-
//# sourceMappingURL=index-
|
|
459
|
+
//# sourceMappingURL=index-w64Zl8io-ihagHOdP.js.map
|