@hexclave/dashboard-ui-components 1.0.41 → 1.0.43
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/analytics-chart-BUxntwQ3.d.ts +553 -0
- package/dist/analytics-chart-BUxntwQ3.d.ts.map +1 -0
- package/dist/components/alert.d.ts +1 -3
- package/dist/components/alert.d.ts.map +1 -1
- package/dist/components/alert.js +4 -7
- package/dist/components/alert.js.map +1 -1
- package/dist/components/analytics-chart/analytics-chart-pie.d.ts +3 -4
- package/dist/components/analytics-chart/analytics-chart-pie.d.ts.map +1 -1
- package/dist/components/analytics-chart/analytics-chart-pie.js +2 -4
- package/dist/components/analytics-chart/analytics-chart-pie.js.map +1 -1
- package/dist/components/analytics-chart/analytics-chart.d.ts +2 -554
- package/dist/components/analytics-chart/analytics-chart.js +4 -7
- package/dist/components/analytics-chart/analytics-chart.js.map +1 -1
- package/dist/components/analytics-chart/default-analytics-chart-tooltip.d.ts +2 -66
- package/dist/components/analytics-chart/default-analytics-chart-tooltip.js +3 -5
- package/dist/components/analytics-chart/default-analytics-chart-tooltip.js.map +1 -1
- package/dist/components/analytics-chart/format.d.ts +2 -13
- package/dist/components/analytics-chart/format.js +2 -3
- package/dist/components/analytics-chart/format.js.map +1 -1
- package/dist/components/analytics-chart/index.d.ts +7 -7
- package/dist/components/analytics-chart/index.js +175 -177
- package/dist/components/analytics-chart/palette.d.ts +2 -15
- package/dist/components/analytics-chart/palette.js +2 -3
- package/dist/components/analytics-chart/palette.js.map +1 -1
- package/dist/components/analytics-chart/render-data-series.d.ts +1 -1
- package/dist/components/analytics-chart/render-data-series.d.ts.map +1 -1
- package/dist/components/analytics-chart/render-data-series.js +2 -4
- package/dist/components/analytics-chart/render-data-series.js.map +1 -1
- package/dist/components/analytics-chart/state.d.ts +2 -54
- package/dist/components/analytics-chart/state.js +2 -4
- package/dist/components/analytics-chart/state.js.map +1 -1
- package/dist/components/analytics-chart/strings.d.ts +2 -33
- package/dist/components/analytics-chart/strings.js +2 -3
- package/dist/components/analytics-chart/strings.js.map +1 -1
- package/dist/components/analytics-chart/types.d.ts +2 -158
- package/dist/components/analytics-chart/types.js +2 -3
- package/dist/components/analytics-chart/types.js.map +1 -1
- package/dist/components/badge.d.ts +1 -3
- package/dist/components/badge.d.ts.map +1 -1
- package/dist/components/badge.js +4 -10
- package/dist/components/badge.js.map +1 -1
- package/dist/components/button.d.ts +6 -7
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +4 -5
- package/dist/components/button.js.map +1 -1
- package/dist/components/card.d.ts +2 -3
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/card.js +6 -8
- package/dist/components/card.js.map +1 -1
- package/dist/components/chart-card.d.ts +1 -2
- package/dist/components/chart-card.d.ts.map +1 -1
- package/dist/components/chart-card.js +5 -7
- package/dist/components/chart-card.js.map +1 -1
- package/dist/components/chart-container.d.ts +1 -2
- package/dist/components/chart-container.d.ts.map +1 -1
- package/dist/components/chart-container.js +5 -7
- package/dist/components/chart-container.js.map +1 -1
- package/dist/components/chart-legend.d.ts +1 -1
- package/dist/components/chart-legend.js +4 -6
- package/dist/components/chart-legend.js.map +1 -1
- package/dist/components/chart-theme.d.ts.map +1 -1
- package/dist/components/chart-theme.js +3 -5
- package/dist/components/chart-theme.js.map +1 -1
- package/dist/components/chart-tooltip.d.ts +10 -14
- package/dist/components/chart-tooltip.d.ts.map +1 -1
- package/dist/components/chart-tooltip.js +6 -8
- package/dist/components/chart-tooltip.js.map +1 -1
- package/dist/components/cursor-blast-effect.d.ts +1 -3
- package/dist/components/cursor-blast-effect.d.ts.map +1 -1
- package/dist/components/cursor-blast-effect.js +2 -5
- package/dist/components/cursor-blast-effect.js.map +1 -1
- package/dist/components/data-grid/data-grid-export-dialog.d.ts +2 -3
- package/dist/components/data-grid/data-grid-export-dialog.d.ts.map +1 -1
- package/dist/components/data-grid/data-grid-export-dialog.js +4 -6
- package/dist/components/data-grid/data-grid-export-dialog.js.map +1 -1
- package/dist/components/data-grid/data-grid-sizing.d.ts +2 -13
- package/dist/components/data-grid/data-grid-sizing.js +3 -4
- package/dist/components/data-grid/data-grid-sizing.js.map +1 -1
- package/dist/components/data-grid/data-grid-toolbar.d.ts +2 -31
- package/dist/components/data-grid/data-grid-toolbar.js +5 -7
- package/dist/components/data-grid/data-grid-toolbar.js.map +1 -1
- package/dist/components/data-grid/data-grid.d.ts +2 -47
- package/dist/components/data-grid/data-grid.js +8 -10
- package/dist/components/data-grid/data-grid.js.map +1 -1
- package/dist/components/data-grid/data-grid.test.js +1 -3
- package/dist/components/data-grid/data-grid.test.js.map +1 -1
- package/dist/components/data-grid/index.d.ts +8 -8
- package/dist/components/data-grid/index.js +139 -141
- package/dist/components/data-grid/state.d.ts +2 -34
- package/dist/components/data-grid/state.js +2 -4
- package/dist/components/data-grid/state.js.map +1 -1
- package/dist/components/data-grid/strings.d.ts +2 -8
- package/dist/components/data-grid/strings.js +2 -3
- package/dist/components/data-grid/strings.js.map +1 -1
- package/dist/components/data-grid/types.d.ts +2 -308
- package/dist/components/data-grid/use-data-source.d.ts +2 -85
- package/dist/components/data-grid/use-data-source.js +2 -4
- package/dist/components/data-grid/use-data-source.js.map +1 -1
- package/dist/components/data-grid/use-url-state.d.ts +2 -38
- package/dist/components/data-grid/use-url-state.js +2 -5
- package/dist/components/data-grid/use-url-state.js.map +1 -1
- package/dist/components/data-grid/use-url-state.test.js +1 -3
- package/dist/components/data-grid/use-url-state.test.js.map +1 -1
- package/dist/components/dialog.d.ts +2 -71
- package/dist/components/dialog.js +6 -8
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/edit-mode.d.ts +1 -3
- package/dist/components/edit-mode.d.ts.map +1 -1
- package/dist/components/edit-mode.js +2 -5
- package/dist/components/edit-mode.js.map +1 -1
- package/dist/components/empty-state.d.ts +1 -2
- package/dist/components/empty-state.d.ts.map +1 -1
- package/dist/components/empty-state.js +4 -6
- package/dist/components/empty-state.js.map +1 -1
- package/dist/components/input.js +4 -6
- package/dist/components/input.js.map +1 -1
- package/dist/components/metric-card.d.ts +1 -2
- package/dist/components/metric-card.d.ts.map +1 -1
- package/dist/components/metric-card.js +5 -7
- package/dist/components/metric-card.js.map +1 -1
- package/dist/components/pill-toggle.d.ts +1 -3
- package/dist/components/pill-toggle.d.ts.map +1 -1
- package/dist/components/pill-toggle.js +4 -7
- package/dist/components/pill-toggle.js.map +1 -1
- package/dist/components/progress-bar.d.ts +1 -3
- package/dist/components/progress-bar.d.ts.map +1 -1
- package/dist/components/progress-bar.js +3 -6
- package/dist/components/progress-bar.js.map +1 -1
- package/dist/components/separator.d.ts +1 -3
- package/dist/components/separator.d.ts.map +1 -1
- package/dist/components/separator.js +2 -5
- package/dist/components/separator.js.map +1 -1
- package/dist/components/skeleton.d.ts +1 -2
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.js +2 -5
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/table.js +4 -6
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.d.ts +1 -2
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +4 -7
- package/dist/components/tabs.js.map +1 -1
- package/dist/dashboard-ui-components.global.js +247 -258
- package/dist/dashboard-ui-components.global.js.map +3 -3
- package/dist/data-grid-AJi1TNDa.d.ts +46 -0
- package/dist/data-grid-AJi1TNDa.d.ts.map +1 -0
- package/dist/data-grid-sizing-S1ixcZKo.d.ts +13 -0
- package/dist/data-grid-sizing-S1ixcZKo.d.ts.map +1 -0
- package/dist/data-grid-toolbar-BGSNGDpT.d.ts +30 -0
- package/dist/data-grid-toolbar-BGSNGDpT.d.ts.map +1 -0
- package/dist/default-analytics-chart-tooltip-PrLoMaC1.d.ts +65 -0
- package/dist/default-analytics-chart-tooltip-PrLoMaC1.d.ts.map +1 -0
- package/dist/dialog-CCtTH7s6.d.ts +131 -0
- package/dist/dialog-CCtTH7s6.d.ts.map +1 -0
- package/dist/esm/components/alert.d.ts +1 -3
- package/dist/esm/components/alert.d.ts.map +1 -1
- package/dist/esm/components/alert.js +3 -5
- package/dist/esm/components/alert.js.map +1 -1
- package/dist/esm/components/analytics-chart/analytics-chart-pie.d.ts +3 -4
- package/dist/esm/components/analytics-chart/analytics-chart-pie.d.ts.map +1 -1
- package/dist/esm/components/analytics-chart/analytics-chart-pie.js +1 -2
- package/dist/esm/components/analytics-chart/analytics-chart-pie.js.map +1 -1
- package/dist/esm/components/analytics-chart/analytics-chart.d.ts +4 -5
- package/dist/esm/components/analytics-chart/analytics-chart.d.ts.map +1 -1
- package/dist/esm/components/analytics-chart/analytics-chart.js +3 -5
- package/dist/esm/components/analytics-chart/analytics-chart.js.map +1 -1
- package/dist/esm/components/analytics-chart/default-analytics-chart-tooltip.d.ts +4 -5
- package/dist/esm/components/analytics-chart/default-analytics-chart-tooltip.d.ts.map +1 -1
- package/dist/esm/components/analytics-chart/default-analytics-chart-tooltip.js +2 -3
- package/dist/esm/components/analytics-chart/default-analytics-chart-tooltip.js.map +1 -1
- package/dist/esm/components/analytics-chart/format.d.ts +1 -1
- package/dist/esm/components/analytics-chart/format.d.ts.map +1 -1
- package/dist/esm/components/analytics-chart/format.js +1 -1
- package/dist/esm/components/analytics-chart/format.js.map +1 -1
- package/dist/esm/components/analytics-chart/index.d.ts +7 -7
- package/dist/esm/components/analytics-chart/index.js +1 -2
- package/dist/esm/components/analytics-chart/palette.d.ts +1 -1
- package/dist/esm/components/analytics-chart/palette.d.ts.map +1 -1
- package/dist/esm/components/analytics-chart/palette.js +1 -1
- package/dist/esm/components/analytics-chart/palette.js.map +1 -1
- package/dist/esm/components/analytics-chart/render-data-series.d.ts +1 -1
- package/dist/esm/components/analytics-chart/render-data-series.d.ts.map +1 -1
- package/dist/esm/components/analytics-chart/render-data-series.js +1 -2
- package/dist/esm/components/analytics-chart/render-data-series.js.map +1 -1
- package/dist/esm/components/analytics-chart/state.d.ts +1 -1
- package/dist/esm/components/analytics-chart/state.d.ts.map +1 -1
- package/dist/esm/components/analytics-chart/state.js +1 -2
- package/dist/esm/components/analytics-chart/state.js.map +1 -1
- package/dist/esm/components/analytics-chart/strings.d.ts.map +1 -1
- package/dist/esm/components/analytics-chart/strings.js +1 -1
- package/dist/esm/components/analytics-chart/strings.js.map +1 -1
- package/dist/esm/components/analytics-chart/types.d.ts.map +1 -1
- package/dist/esm/components/analytics-chart/types.js +1 -1
- package/dist/esm/components/analytics-chart/types.js.map +1 -1
- package/dist/esm/components/badge.d.ts +1 -3
- package/dist/esm/components/badge.d.ts.map +1 -1
- package/dist/esm/components/badge.js +3 -8
- package/dist/esm/components/badge.js.map +1 -1
- package/dist/esm/components/button.d.ts +6 -7
- package/dist/esm/components/button.d.ts.map +1 -1
- package/dist/esm/components/button.js +2 -3
- package/dist/esm/components/button.js.map +1 -1
- package/dist/esm/components/card.d.ts +2 -3
- package/dist/esm/components/card.d.ts.map +1 -1
- package/dist/esm/components/card.js +3 -5
- package/dist/esm/components/card.js.map +1 -1
- package/dist/esm/components/chart-card.d.ts +1 -2
- package/dist/esm/components/chart-card.d.ts.map +1 -1
- package/dist/esm/components/chart-card.js +3 -5
- package/dist/esm/components/chart-card.js.map +1 -1
- package/dist/esm/components/chart-container.d.ts +1 -2
- package/dist/esm/components/chart-container.d.ts.map +1 -1
- package/dist/esm/components/chart-container.js +1 -3
- package/dist/esm/components/chart-container.js.map +1 -1
- package/dist/esm/components/chart-legend.d.ts +1 -1
- package/dist/esm/components/chart-legend.js +1 -3
- package/dist/esm/components/chart-legend.js.map +1 -1
- package/dist/esm/components/chart-theme.d.ts.map +1 -1
- package/dist/esm/components/chart-theme.js +2 -3
- package/dist/esm/components/chart-theme.js.map +1 -1
- package/dist/esm/components/chart-tooltip.d.ts +10 -14
- package/dist/esm/components/chart-tooltip.d.ts.map +1 -1
- package/dist/esm/components/chart-tooltip.js +2 -4
- package/dist/esm/components/chart-tooltip.js.map +1 -1
- package/dist/esm/components/cursor-blast-effect.d.ts +1 -3
- package/dist/esm/components/cursor-blast-effect.d.ts.map +1 -1
- package/dist/esm/components/cursor-blast-effect.js +1 -3
- package/dist/esm/components/cursor-blast-effect.js.map +1 -1
- package/dist/esm/components/data-grid/data-grid-export-dialog.d.ts +2 -3
- package/dist/esm/components/data-grid/data-grid-export-dialog.d.ts.map +1 -1
- package/dist/esm/components/data-grid/data-grid-export-dialog.js +2 -4
- package/dist/esm/components/data-grid/data-grid-export-dialog.js.map +1 -1
- package/dist/esm/components/data-grid/data-grid-sizing.d.ts +1 -1
- package/dist/esm/components/data-grid/data-grid-sizing.d.ts.map +1 -1
- package/dist/esm/components/data-grid/data-grid-sizing.js +2 -2
- package/dist/esm/components/data-grid/data-grid-sizing.js.map +1 -1
- package/dist/esm/components/data-grid/data-grid-toolbar.d.ts +2 -3
- package/dist/esm/components/data-grid/data-grid-toolbar.d.ts.map +1 -1
- package/dist/esm/components/data-grid/data-grid-toolbar.js +2 -4
- package/dist/esm/components/data-grid/data-grid-toolbar.js.map +1 -1
- package/dist/esm/components/data-grid/data-grid.d.ts +2 -3
- package/dist/esm/components/data-grid/data-grid.d.ts.map +1 -1
- package/dist/esm/components/data-grid/data-grid.js +6 -8
- package/dist/esm/components/data-grid/data-grid.js.map +1 -1
- package/dist/esm/components/data-grid/data-grid.test.js +2 -3
- package/dist/esm/components/data-grid/data-grid.test.js.map +1 -1
- package/dist/esm/components/data-grid/index.d.ts +8 -8
- package/dist/esm/components/data-grid/index.js +1 -2
- package/dist/esm/components/data-grid/state.d.ts +1 -1
- package/dist/esm/components/data-grid/state.d.ts.map +1 -1
- package/dist/esm/components/data-grid/state.js +1 -2
- package/dist/esm/components/data-grid/state.js.map +1 -1
- package/dist/esm/components/data-grid/strings.d.ts +1 -1
- package/dist/esm/components/data-grid/strings.d.ts.map +1 -1
- package/dist/esm/components/data-grid/strings.js +1 -1
- package/dist/esm/components/data-grid/strings.js.map +1 -1
- package/dist/esm/components/data-grid/types.d.ts.map +1 -1
- package/dist/esm/components/data-grid/types.js +1 -1
- package/dist/esm/components/data-grid/use-data-source.d.ts +1 -1
- package/dist/esm/components/data-grid/use-data-source.d.ts.map +1 -1
- package/dist/esm/components/data-grid/use-data-source.js +1 -2
- package/dist/esm/components/data-grid/use-data-source.js.map +1 -1
- package/dist/esm/components/data-grid/use-url-state.d.ts +1 -1
- package/dist/esm/components/data-grid/use-url-state.d.ts.map +1 -1
- package/dist/esm/components/data-grid/use-url-state.js +1 -3
- package/dist/esm/components/data-grid/use-url-state.js.map +1 -1
- package/dist/esm/components/data-grid/use-url-state.test.js +2 -3
- package/dist/esm/components/data-grid/use-url-state.test.js.map +1 -1
- package/dist/esm/components/dialog.d.ts +6 -8
- package/dist/esm/components/dialog.d.ts.map +1 -1
- package/dist/esm/components/dialog.js +3 -5
- package/dist/esm/components/dialog.js.map +1 -1
- package/dist/esm/components/edit-mode.d.ts +1 -3
- package/dist/esm/components/edit-mode.d.ts.map +1 -1
- package/dist/esm/components/edit-mode.js +1 -3
- package/dist/esm/components/edit-mode.js.map +1 -1
- package/dist/esm/components/empty-state.d.ts +1 -2
- package/dist/esm/components/empty-state.d.ts.map +1 -1
- package/dist/esm/components/empty-state.js +2 -4
- package/dist/esm/components/empty-state.js.map +1 -1
- package/dist/esm/components/input.js +2 -4
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/metric-card.d.ts +1 -2
- package/dist/esm/components/metric-card.d.ts.map +1 -1
- package/dist/esm/components/metric-card.js +3 -5
- package/dist/esm/components/metric-card.js.map +1 -1
- package/dist/esm/components/pill-toggle.d.ts +1 -3
- package/dist/esm/components/pill-toggle.d.ts.map +1 -1
- package/dist/esm/components/pill-toggle.js +3 -5
- package/dist/esm/components/pill-toggle.js.map +1 -1
- package/dist/esm/components/progress-bar.d.ts +1 -3
- package/dist/esm/components/progress-bar.d.ts.map +1 -1
- package/dist/esm/components/progress-bar.js +2 -4
- package/dist/esm/components/progress-bar.js.map +1 -1
- package/dist/esm/components/separator.d.ts +1 -3
- package/dist/esm/components/separator.d.ts.map +1 -1
- package/dist/esm/components/separator.js +1 -3
- package/dist/esm/components/separator.js.map +1 -1
- package/dist/esm/components/skeleton.d.ts +1 -2
- package/dist/esm/components/skeleton.d.ts.map +1 -1
- package/dist/esm/components/skeleton.js +1 -3
- package/dist/esm/components/skeleton.js.map +1 -1
- package/dist/esm/components/table.js +2 -4
- package/dist/esm/components/table.js.map +1 -1
- package/dist/esm/components/tabs.d.ts +1 -2
- package/dist/esm/components/tabs.d.ts.map +1 -1
- package/dist/esm/components/tabs.js +3 -5
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/index.d.ts +23 -23
- package/dist/esm/index.js +3 -6
- package/dist/format-DdrrnMlc.d.ts +13 -0
- package/dist/format-DdrrnMlc.d.ts.map +1 -0
- package/dist/index.d.ts +17 -17
- package/dist/index.js +278 -277
- package/dist/palette-pqnuo5cq.d.ts +15 -0
- package/dist/palette-pqnuo5cq.d.ts.map +1 -0
- package/dist/{chunk-BE-pF4vm.js → rolldown-runtime-D6vf50IK.js} +12 -18
- package/dist/state-6LW8ACh5.d.ts +34 -0
- package/dist/state-6LW8ACh5.d.ts.map +1 -0
- package/dist/state-Hch3gYtt.d.ts +54 -0
- package/dist/state-Hch3gYtt.d.ts.map +1 -0
- package/dist/strings-CACVtKlq.d.ts +8 -0
- package/dist/strings-CACVtKlq.d.ts.map +1 -0
- package/dist/strings-D-t58Uol.d.ts +33 -0
- package/dist/strings-D-t58Uol.d.ts.map +1 -0
- package/dist/types-1-eOd1JF.d.ts +308 -0
- package/dist/types-1-eOd1JF.d.ts.map +1 -0
- package/dist/types-NyzRTEfi.d.ts +158 -0
- package/dist/types-NyzRTEfi.d.ts.map +1 -0
- package/dist/use-data-source-BVFynerX.d.ts +85 -0
- package/dist/use-data-source-BVFynerX.d.ts.map +1 -0
- package/dist/use-url-state-B4_wnBjm.d.ts +38 -0
- package/dist/use-url-state-B4_wnBjm.d.ts.map +1 -0
- package/package.json +3 -7
- package/src/components/analytics-chart/analytics-chart.tsx +2 -3
- package/src/components/analytics-chart/default-analytics-chart-tooltip.tsx +1 -1
- package/src/components/chart-tooltip.tsx +1 -1
- package/src/components/data-grid/data-grid-toolbar.tsx +1 -1
- package/src/components/data-grid/data-grid.tsx +2 -2
- package/dist/components/analytics-chart/analytics-chart.d.ts.map +0 -1
- package/dist/components/analytics-chart/default-analytics-chart-tooltip.d.ts.map +0 -1
- package/dist/components/analytics-chart/format.d.ts.map +0 -1
- package/dist/components/analytics-chart/palette.d.ts.map +0 -1
- package/dist/components/analytics-chart/state.d.ts.map +0 -1
- package/dist/components/analytics-chart/strings.d.ts.map +0 -1
- package/dist/components/analytics-chart/types.d.ts.map +0 -1
- package/dist/components/data-grid/data-grid-sizing.d.ts.map +0 -1
- package/dist/components/data-grid/data-grid-toolbar.d.ts.map +0 -1
- package/dist/components/data-grid/data-grid.d.ts.map +0 -1
- package/dist/components/data-grid/state.d.ts.map +0 -1
- package/dist/components/data-grid/strings.d.ts.map +0 -1
- package/dist/components/data-grid/types.d.ts.map +0 -1
- package/dist/components/data-grid/use-data-source.d.ts.map +0 -1
- package/dist/components/data-grid/use-url-state.d.ts.map +0 -1
- package/dist/components/dialog.d.ts.map +0 -1
|
@@ -5101,15 +5101,6 @@ This is likely an error in Hexclave. Please make sure you are running the newest
|
|
|
5101
5101
|
{ error }
|
|
5102
5102
|
], (json) => [json.error]);
|
|
5103
5103
|
var AnalyticsNotEnabled = createKnownErrorConstructor(KnownError, "ANALYTICS_NOT_ENABLED", () => [400, "Analytics is not enabled for this project."], () => []);
|
|
5104
|
-
var DefaultPaymentMethodRequired = createKnownErrorConstructor(KnownError, "DEFAULT_PAYMENT_METHOD_REQUIRED", (customerType, customerId) => [
|
|
5105
|
-
400,
|
|
5106
|
-
"No default payment method is set for this customer.",
|
|
5107
|
-
{
|
|
5108
|
-
customer_type: customerType,
|
|
5109
|
-
customer_id: customerId
|
|
5110
|
-
}
|
|
5111
|
-
], (json) => [json.customer_type, json.customer_id]);
|
|
5112
|
-
var NewPurchasesBlocked = createKnownErrorConstructor(KnownError, "NEW_PURCHASES_BLOCKED", () => [403, "New purchases are currently blocked for this project. Please contact support for more information."], () => []);
|
|
5113
5104
|
var KnownErrors = {
|
|
5114
5105
|
CannotDeleteCurrentSession,
|
|
5115
5106
|
UnsupportedError,
|
|
@@ -5248,8 +5239,15 @@ This is likely an error in Hexclave. Please make sure you are running the newest
|
|
|
5248
5239
|
TestModePurchaseNonRefundable,
|
|
5249
5240
|
ItemQuantityInsufficientAmount,
|
|
5250
5241
|
StripeAccountInfoNotFound,
|
|
5251
|
-
DefaultPaymentMethodRequired,
|
|
5252
|
-
|
|
5242
|
+
DefaultPaymentMethodRequired: createKnownErrorConstructor(KnownError, "DEFAULT_PAYMENT_METHOD_REQUIRED", (customerType, customerId) => [
|
|
5243
|
+
400,
|
|
5244
|
+
"No default payment method is set for this customer.",
|
|
5245
|
+
{
|
|
5246
|
+
customer_type: customerType,
|
|
5247
|
+
customer_id: customerId
|
|
5248
|
+
}
|
|
5249
|
+
], (json) => [json.customer_type, json.customer_id]),
|
|
5250
|
+
NewPurchasesBlocked: createKnownErrorConstructor(KnownError, "NEW_PURCHASES_BLOCKED", () => [403, "New purchases are currently blocked for this project. Please contact support for more information."], () => []),
|
|
5253
5251
|
DataVaultStoreDoesNotExist,
|
|
5254
5252
|
DataVaultStoreHashedKeyDoesNotExist,
|
|
5255
5253
|
AnalyticsQueryTimeout,
|
|
@@ -7923,11 +7921,10 @@ attempted value: ${formattedValue}
|
|
|
7923
7921
|
var intervalOrNeverSchema = yupUnion(intervalSchema.defined(), yupString().oneOf(["never"]).defined());
|
|
7924
7922
|
var dayIntervalOrNeverSchema = yupUnion(dayIntervalSchema.defined(), yupString().oneOf(["never"]).defined());
|
|
7925
7923
|
var USER_SPECIFIED_ID_PATTERN = /^[a-zA-Z0-9_][a-zA-Z0-9_-]*$/;
|
|
7926
|
-
var USER_SPECIFIED_ID_MAX_LENGTH = 63;
|
|
7927
7924
|
function getUserSpecifiedIdErrorMessage(idName) {
|
|
7928
7925
|
return `${idName} must contain only letters, numbers, underscores, and hyphens, and not start with a hyphen`;
|
|
7929
7926
|
}
|
|
7930
|
-
var userSpecifiedIdSchema = (idName) => yupString().max(
|
|
7927
|
+
var userSpecifiedIdSchema = (idName) => yupString().max(63).matches(USER_SPECIFIED_ID_PATTERN, getUserSpecifiedIdErrorMessage(idName));
|
|
7931
7928
|
var moneyAmountSchema = (currency) => yupString().test("money-amount", "Invalid money amount", (value, context) => {
|
|
7932
7929
|
if (value == null) return true;
|
|
7933
7930
|
const match = value.match(/^([0-9]+)(\.([0-9]+))?$/);
|
|
@@ -8832,14 +8829,6 @@ attempted value: ${formattedValue}
|
|
|
8832
8829
|
return null;
|
|
8833
8830
|
}
|
|
8834
8831
|
};
|
|
8835
|
-
var tokenMatch = "[a-zA-Z0-9!#$%&\\'\\*\\+\\-\\.\\^_`\\|~]+";
|
|
8836
|
-
var token68Match = "[a-zA-Z0-9\\-\\._\\~\\+\\/]+={0,2}";
|
|
8837
|
-
var quotedParamMatcher = "(" + tokenMatch + ')\\s*=\\s*"((?:[^"\\\\]|\\\\[\\s\\S])*)"';
|
|
8838
|
-
var paramMatcher = "(" + tokenMatch + ")\\s*=\\s*([a-zA-Z0-9!#$%&\\'\\*\\+\\-\\.\\^_`\\|~]+)";
|
|
8839
|
-
var schemeRE = new RegExp("^[,\\s]*(" + tokenMatch + ")");
|
|
8840
|
-
var quotedParamRE = new RegExp("^[,\\s]*" + quotedParamMatcher + "[,\\s]*(.*)");
|
|
8841
|
-
var unquotedParamRE = new RegExp("^[,\\s]*" + paramMatcher + "[,\\s]*(.*)");
|
|
8842
|
-
var token68ParamRE = new RegExp("^(" + token68Match + ")(?:$|[,\\s])(.*)");
|
|
8843
8832
|
var nopkce = Symbol();
|
|
8844
8833
|
var expectNoNonce = Symbol();
|
|
8845
8834
|
var skipAuthTimeCheck = Symbol();
|
|
@@ -10125,17 +10114,17 @@ ${error}`);
|
|
|
10125
10114
|
}
|
|
10126
10115
|
|
|
10127
10116
|
// ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
10128
|
-
var
|
|
10117
|
+
var React6 = __toESM(require_react(), 1);
|
|
10129
10118
|
function createContext2(rootComponentName, defaultContext) {
|
|
10130
|
-
const Context =
|
|
10119
|
+
const Context = React6.createContext(defaultContext);
|
|
10131
10120
|
const Provider2 = (props) => {
|
|
10132
10121
|
const { children, ...context } = props;
|
|
10133
|
-
const value =
|
|
10122
|
+
const value = React6.useMemo(() => context, Object.values(context));
|
|
10134
10123
|
return /* @__PURE__ */ jsx(Context.Provider, { value, children });
|
|
10135
10124
|
};
|
|
10136
10125
|
Provider2.displayName = rootComponentName + "Provider";
|
|
10137
10126
|
function useContext22(consumerName) {
|
|
10138
|
-
const context =
|
|
10127
|
+
const context = React6.useContext(Context);
|
|
10139
10128
|
if (context) return context;
|
|
10140
10129
|
if (defaultContext !== void 0) return defaultContext;
|
|
10141
10130
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
@@ -10145,19 +10134,19 @@ ${error}`);
|
|
|
10145
10134
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
10146
10135
|
let defaultContexts = [];
|
|
10147
10136
|
function createContext32(rootComponentName, defaultContext) {
|
|
10148
|
-
const BaseContext2 =
|
|
10137
|
+
const BaseContext2 = React6.createContext(defaultContext);
|
|
10149
10138
|
const index2 = defaultContexts.length;
|
|
10150
10139
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
10151
10140
|
const Provider2 = (props) => {
|
|
10152
10141
|
const { scope, children, ...context } = props;
|
|
10153
10142
|
const Context = scope?.[scopeName]?.[index2] || BaseContext2;
|
|
10154
|
-
const value =
|
|
10143
|
+
const value = React6.useMemo(() => context, Object.values(context));
|
|
10155
10144
|
return /* @__PURE__ */ jsx(Context.Provider, { value, children });
|
|
10156
10145
|
};
|
|
10157
10146
|
Provider2.displayName = rootComponentName + "Provider";
|
|
10158
10147
|
function useContext22(consumerName, scope) {
|
|
10159
10148
|
const Context = scope?.[scopeName]?.[index2] || BaseContext2;
|
|
10160
|
-
const context =
|
|
10149
|
+
const context = React6.useContext(Context);
|
|
10161
10150
|
if (context) return context;
|
|
10162
10151
|
if (defaultContext !== void 0) return defaultContext;
|
|
10163
10152
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
@@ -10166,11 +10155,11 @@ ${error}`);
|
|
|
10166
10155
|
}
|
|
10167
10156
|
const createScope = () => {
|
|
10168
10157
|
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
10169
|
-
return
|
|
10158
|
+
return React6.createContext(defaultContext);
|
|
10170
10159
|
});
|
|
10171
10160
|
return function useScope(scope) {
|
|
10172
10161
|
const contexts = scope?.[scopeName] || scopeContexts;
|
|
10173
|
-
return
|
|
10162
|
+
return React6.useMemo(
|
|
10174
10163
|
() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
|
|
10175
10164
|
[scope, contexts]
|
|
10176
10165
|
);
|
|
@@ -10193,7 +10182,7 @@ ${error}`);
|
|
|
10193
10182
|
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
10194
10183
|
return { ...nextScopes2, ...currentScope };
|
|
10195
10184
|
}, {});
|
|
10196
|
-
return
|
|
10185
|
+
return React6.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
10197
10186
|
};
|
|
10198
10187
|
};
|
|
10199
10188
|
createScope.scopeName = baseScope.scopeName;
|
|
@@ -10201,25 +10190,25 @@ ${error}`);
|
|
|
10201
10190
|
}
|
|
10202
10191
|
|
|
10203
10192
|
// ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
10204
|
-
var
|
|
10193
|
+
var React7 = __toESM(require_react(), 1);
|
|
10205
10194
|
// @__NO_SIDE_EFFECTS__
|
|
10206
10195
|
function createSlot2(ownerName) {
|
|
10207
10196
|
const SlotClone = /* @__PURE__ */ createSlotClone2(ownerName);
|
|
10208
|
-
const Slot22 =
|
|
10197
|
+
const Slot22 = React7.forwardRef((props, forwardedRef) => {
|
|
10209
10198
|
const { children, ...slotProps } = props;
|
|
10210
|
-
const childrenArray =
|
|
10199
|
+
const childrenArray = React7.Children.toArray(children);
|
|
10211
10200
|
const slottable = childrenArray.find(isSlottable2);
|
|
10212
10201
|
if (slottable) {
|
|
10213
10202
|
const newElement = slottable.props.children;
|
|
10214
10203
|
const newChildren = childrenArray.map((child) => {
|
|
10215
10204
|
if (child === slottable) {
|
|
10216
|
-
if (
|
|
10217
|
-
return
|
|
10205
|
+
if (React7.Children.count(newElement) > 1) return React7.Children.only(null);
|
|
10206
|
+
return React7.isValidElement(newElement) ? newElement.props.children : null;
|
|
10218
10207
|
} else {
|
|
10219
10208
|
return child;
|
|
10220
10209
|
}
|
|
10221
10210
|
});
|
|
10222
|
-
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children:
|
|
10211
|
+
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React7.isValidElement(newElement) ? React7.cloneElement(newElement, void 0, newChildren) : null });
|
|
10223
10212
|
}
|
|
10224
10213
|
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
10225
10214
|
});
|
|
@@ -10228,17 +10217,17 @@ ${error}`);
|
|
|
10228
10217
|
}
|
|
10229
10218
|
// @__NO_SIDE_EFFECTS__
|
|
10230
10219
|
function createSlotClone2(ownerName) {
|
|
10231
|
-
const SlotClone =
|
|
10220
|
+
const SlotClone = React7.forwardRef((props, forwardedRef) => {
|
|
10232
10221
|
const { children, ...slotProps } = props;
|
|
10233
|
-
if (
|
|
10222
|
+
if (React7.isValidElement(children)) {
|
|
10234
10223
|
const childrenRef = getElementRef2(children);
|
|
10235
10224
|
const props2 = mergeProps2(slotProps, children.props);
|
|
10236
|
-
if (children.type !==
|
|
10225
|
+
if (children.type !== React7.Fragment) {
|
|
10237
10226
|
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
10238
10227
|
}
|
|
10239
|
-
return
|
|
10228
|
+
return React7.cloneElement(children, props2);
|
|
10240
10229
|
}
|
|
10241
|
-
return
|
|
10230
|
+
return React7.Children.count(children) > 1 ? React7.Children.only(null) : null;
|
|
10242
10231
|
});
|
|
10243
10232
|
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
10244
10233
|
return SlotClone;
|
|
@@ -10254,7 +10243,7 @@ ${error}`);
|
|
|
10254
10243
|
return Slottable22;
|
|
10255
10244
|
}
|
|
10256
10245
|
function isSlottable2(child) {
|
|
10257
|
-
return
|
|
10246
|
+
return React7.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER2;
|
|
10258
10247
|
}
|
|
10259
10248
|
function mergeProps2(slotProps, childProps) {
|
|
10260
10249
|
const overrideProps = { ...childProps };
|
|
@@ -10295,10 +10284,10 @@ ${error}`);
|
|
|
10295
10284
|
}
|
|
10296
10285
|
|
|
10297
10286
|
// ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.7__@_d3b8d348a25db9227f3697eddbb26378/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
10298
|
-
var
|
|
10287
|
+
var React11 = __toESM(require_react(), 1);
|
|
10299
10288
|
|
|
10300
10289
|
// ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.7__@types+rea_5f3d28fea11cf58eed3830d0189b6e2d/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
10301
|
-
var
|
|
10290
|
+
var React8 = __toESM(require_react(), 1);
|
|
10302
10291
|
var ReactDOM = __toESM(require_react_dom(), 1);
|
|
10303
10292
|
var NODES = [
|
|
10304
10293
|
"a",
|
|
@@ -10321,7 +10310,7 @@ ${error}`);
|
|
|
10321
10310
|
];
|
|
10322
10311
|
var Primitive = NODES.reduce((primitive, node) => {
|
|
10323
10312
|
const Slot3 = createSlot2(`Primitive.${node}`);
|
|
10324
|
-
const Node2 =
|
|
10313
|
+
const Node2 = React8.forwardRef((props, forwardedRef) => {
|
|
10325
10314
|
const { asChild, ...primitiveProps } = props;
|
|
10326
10315
|
const Comp = asChild ? Slot3 : node;
|
|
10327
10316
|
if (typeof window !== "undefined") {
|
|
@@ -10337,20 +10326,20 @@ ${error}`);
|
|
|
10337
10326
|
}
|
|
10338
10327
|
|
|
10339
10328
|
// ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
10340
|
-
var
|
|
10329
|
+
var React9 = __toESM(require_react(), 1);
|
|
10341
10330
|
function useCallbackRef(callback) {
|
|
10342
|
-
const callbackRef =
|
|
10343
|
-
|
|
10331
|
+
const callbackRef = React9.useRef(callback);
|
|
10332
|
+
React9.useEffect(() => {
|
|
10344
10333
|
callbackRef.current = callback;
|
|
10345
10334
|
});
|
|
10346
|
-
return
|
|
10335
|
+
return React9.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
10347
10336
|
}
|
|
10348
10337
|
|
|
10349
10338
|
// ../../node_modules/.pnpm/@radix-ui+react-use-escape-keydown@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
|
|
10350
|
-
var
|
|
10339
|
+
var React10 = __toESM(require_react(), 1);
|
|
10351
10340
|
function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
|
|
10352
10341
|
const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
|
|
10353
|
-
|
|
10342
|
+
React10.useEffect(() => {
|
|
10354
10343
|
const handleKeyDown = (event) => {
|
|
10355
10344
|
if (event.key === "Escape") {
|
|
10356
10345
|
onEscapeKeyDown(event);
|
|
@@ -10367,12 +10356,12 @@ ${error}`);
|
|
|
10367
10356
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
10368
10357
|
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
10369
10358
|
var originalBodyPointerEvents;
|
|
10370
|
-
var DismissableLayerContext =
|
|
10359
|
+
var DismissableLayerContext = React11.createContext({
|
|
10371
10360
|
layers: /* @__PURE__ */ new Set(),
|
|
10372
10361
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
10373
10362
|
branches: /* @__PURE__ */ new Set()
|
|
10374
10363
|
});
|
|
10375
|
-
var DismissableLayer =
|
|
10364
|
+
var DismissableLayer = React11.forwardRef(
|
|
10376
10365
|
(props, forwardedRef) => {
|
|
10377
10366
|
const {
|
|
10378
10367
|
disableOutsidePointerEvents = false,
|
|
@@ -10383,10 +10372,10 @@ ${error}`);
|
|
|
10383
10372
|
onDismiss,
|
|
10384
10373
|
...layerProps
|
|
10385
10374
|
} = props;
|
|
10386
|
-
const context =
|
|
10387
|
-
const [node, setNode] =
|
|
10375
|
+
const context = React11.useContext(DismissableLayerContext);
|
|
10376
|
+
const [node, setNode] = React11.useState(null);
|
|
10388
10377
|
const ownerDocument = node?.ownerDocument ?? globalThis?.document;
|
|
10389
|
-
const [, force] =
|
|
10378
|
+
const [, force] = React11.useState({});
|
|
10390
10379
|
const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
|
|
10391
10380
|
const layers = Array.from(context.layers);
|
|
10392
10381
|
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
|
@@ -10419,7 +10408,7 @@ ${error}`);
|
|
|
10419
10408
|
onDismiss();
|
|
10420
10409
|
}
|
|
10421
10410
|
}, ownerDocument);
|
|
10422
|
-
|
|
10411
|
+
React11.useEffect(() => {
|
|
10423
10412
|
if (!node) return;
|
|
10424
10413
|
if (disableOutsidePointerEvents) {
|
|
10425
10414
|
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
@@ -10436,7 +10425,7 @@ ${error}`);
|
|
|
10436
10425
|
}
|
|
10437
10426
|
};
|
|
10438
10427
|
}, [node, ownerDocument, disableOutsidePointerEvents, context]);
|
|
10439
|
-
|
|
10428
|
+
React11.useEffect(() => {
|
|
10440
10429
|
return () => {
|
|
10441
10430
|
if (!node) return;
|
|
10442
10431
|
context.layers.delete(node);
|
|
@@ -10444,7 +10433,7 @@ ${error}`);
|
|
|
10444
10433
|
dispatchUpdate();
|
|
10445
10434
|
};
|
|
10446
10435
|
}, [node, context]);
|
|
10447
|
-
|
|
10436
|
+
React11.useEffect(() => {
|
|
10448
10437
|
const handleUpdate = () => force({});
|
|
10449
10438
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
10450
10439
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
@@ -10470,11 +10459,11 @@ ${error}`);
|
|
|
10470
10459
|
);
|
|
10471
10460
|
DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
|
|
10472
10461
|
var BRANCH_NAME = "DismissableLayerBranch";
|
|
10473
|
-
var DismissableLayerBranch =
|
|
10474
|
-
const context =
|
|
10475
|
-
const ref =
|
|
10462
|
+
var DismissableLayerBranch = React11.forwardRef((props, forwardedRef) => {
|
|
10463
|
+
const context = React11.useContext(DismissableLayerContext);
|
|
10464
|
+
const ref = React11.useRef(null);
|
|
10476
10465
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
10477
|
-
|
|
10466
|
+
React11.useEffect(() => {
|
|
10478
10467
|
const node = ref.current;
|
|
10479
10468
|
if (node) {
|
|
10480
10469
|
context.branches.add(node);
|
|
@@ -10488,10 +10477,10 @@ ${error}`);
|
|
|
10488
10477
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
10489
10478
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
10490
10479
|
const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
|
|
10491
|
-
const isPointerInsideReactTreeRef =
|
|
10492
|
-
const handleClickRef =
|
|
10480
|
+
const isPointerInsideReactTreeRef = React11.useRef(false);
|
|
10481
|
+
const handleClickRef = React11.useRef(() => {
|
|
10493
10482
|
});
|
|
10494
|
-
|
|
10483
|
+
React11.useEffect(() => {
|
|
10495
10484
|
const handlePointerDown = (event) => {
|
|
10496
10485
|
if (event.target && !isPointerInsideReactTreeRef.current) {
|
|
10497
10486
|
let handleAndDispatchPointerDownOutsideEvent2 = function() {
|
|
@@ -10532,8 +10521,8 @@ ${error}`);
|
|
|
10532
10521
|
}
|
|
10533
10522
|
function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
|
|
10534
10523
|
const handleFocusOutside = useCallbackRef(onFocusOutside);
|
|
10535
|
-
const isFocusInsideReactTreeRef =
|
|
10536
|
-
|
|
10524
|
+
const isFocusInsideReactTreeRef = React11.useRef(false);
|
|
10525
|
+
React11.useEffect(() => {
|
|
10537
10526
|
const handleFocus = (event) => {
|
|
10538
10527
|
if (event.target && !isFocusInsideReactTreeRef.current) {
|
|
10539
10528
|
const eventDetail = { originalEvent: event };
|
|
@@ -10566,10 +10555,10 @@ ${error}`);
|
|
|
10566
10555
|
}
|
|
10567
10556
|
|
|
10568
10557
|
// ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
10569
|
-
var
|
|
10558
|
+
var React12 = __toESM(require_react(), 1);
|
|
10570
10559
|
var count = 0;
|
|
10571
10560
|
function useFocusGuards() {
|
|
10572
|
-
|
|
10561
|
+
React12.useEffect(() => {
|
|
10573
10562
|
const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
|
|
10574
10563
|
document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
|
|
10575
10564
|
document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
|
|
@@ -10594,12 +10583,12 @@ ${error}`);
|
|
|
10594
10583
|
}
|
|
10595
10584
|
|
|
10596
10585
|
// ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.7__@types+r_4bc0a4f7a0f317379d2e6b46c577ea20/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
10597
|
-
var
|
|
10586
|
+
var React13 = __toESM(require_react(), 1);
|
|
10598
10587
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
10599
10588
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
10600
10589
|
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
10601
10590
|
var FOCUS_SCOPE_NAME = "FocusScope";
|
|
10602
|
-
var FocusScope =
|
|
10591
|
+
var FocusScope = React13.forwardRef((props, forwardedRef) => {
|
|
10603
10592
|
const {
|
|
10604
10593
|
loop = false,
|
|
10605
10594
|
trapped = false,
|
|
@@ -10607,12 +10596,12 @@ ${error}`);
|
|
|
10607
10596
|
onUnmountAutoFocus: onUnmountAutoFocusProp,
|
|
10608
10597
|
...scopeProps
|
|
10609
10598
|
} = props;
|
|
10610
|
-
const [container, setContainer] =
|
|
10599
|
+
const [container, setContainer] = React13.useState(null);
|
|
10611
10600
|
const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
|
|
10612
10601
|
const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
|
|
10613
|
-
const lastFocusedElementRef =
|
|
10602
|
+
const lastFocusedElementRef = React13.useRef(null);
|
|
10614
10603
|
const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
|
|
10615
|
-
const focusScope =
|
|
10604
|
+
const focusScope = React13.useRef({
|
|
10616
10605
|
paused: false,
|
|
10617
10606
|
pause() {
|
|
10618
10607
|
this.paused = true;
|
|
@@ -10621,7 +10610,7 @@ ${error}`);
|
|
|
10621
10610
|
this.paused = false;
|
|
10622
10611
|
}
|
|
10623
10612
|
}).current;
|
|
10624
|
-
|
|
10613
|
+
React13.useEffect(() => {
|
|
10625
10614
|
if (trapped) {
|
|
10626
10615
|
let handleFocusIn2 = function(event) {
|
|
10627
10616
|
if (focusScope.paused || !container) return;
|
|
@@ -10657,7 +10646,7 @@ ${error}`);
|
|
|
10657
10646
|
};
|
|
10658
10647
|
}
|
|
10659
10648
|
}, [trapped, container, focusScope.paused]);
|
|
10660
|
-
|
|
10649
|
+
React13.useEffect(() => {
|
|
10661
10650
|
if (container) {
|
|
10662
10651
|
focusScopesStack.add(focusScope);
|
|
10663
10652
|
const previouslyFocusedElement = document.activeElement;
|
|
@@ -10688,7 +10677,7 @@ ${error}`);
|
|
|
10688
10677
|
};
|
|
10689
10678
|
}
|
|
10690
10679
|
}, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
|
|
10691
|
-
const handleKeyDown =
|
|
10680
|
+
const handleKeyDown = React13.useCallback(
|
|
10692
10681
|
(event) => {
|
|
10693
10682
|
if (!loop && !trapped) return;
|
|
10694
10683
|
if (focusScope.paused) return;
|
|
@@ -10797,18 +10786,18 @@ ${error}`);
|
|
|
10797
10786
|
}
|
|
10798
10787
|
|
|
10799
10788
|
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
10800
|
-
var
|
|
10789
|
+
var React15 = __toESM(require_react(), 1);
|
|
10801
10790
|
|
|
10802
10791
|
// ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
10803
|
-
var
|
|
10804
|
-
var useLayoutEffect2 = globalThis?.document ?
|
|
10792
|
+
var React14 = __toESM(require_react(), 1);
|
|
10793
|
+
var useLayoutEffect2 = globalThis?.document ? React14.useLayoutEffect : () => {
|
|
10805
10794
|
};
|
|
10806
10795
|
|
|
10807
10796
|
// ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
10808
|
-
var useReactId =
|
|
10797
|
+
var useReactId = React15[" useId ".trim().toString()] || (() => void 0);
|
|
10809
10798
|
var count2 = 0;
|
|
10810
10799
|
function useId(deterministicId) {
|
|
10811
|
-
const [id, setId] =
|
|
10800
|
+
const [id, setId] = React15.useState(useReactId());
|
|
10812
10801
|
useLayoutEffect2(() => {
|
|
10813
10802
|
if (!deterministicId) setId((reactId) => reactId ?? String(count2++));
|
|
10814
10803
|
}, [deterministicId]);
|
|
@@ -10816,7 +10805,7 @@ ${error}`);
|
|
|
10816
10805
|
}
|
|
10817
10806
|
|
|
10818
10807
|
// ../../node_modules/.pnpm/@radix-ui+react-popper@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@_4468d6b8a14aa8e01a5fa6b59b3b35ec/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
10819
|
-
var
|
|
10808
|
+
var React19 = __toESM(require_react(), 1);
|
|
10820
10809
|
|
|
10821
10810
|
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.8/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
10822
10811
|
var sides = ["top", "right", "bottom", "left"];
|
|
@@ -12389,7 +12378,7 @@ ${error}`);
|
|
|
12389
12378
|
};
|
|
12390
12379
|
|
|
12391
12380
|
// ../../node_modules/.pnpm/@floating-ui+react-dom@2.1.2_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
12392
|
-
var
|
|
12381
|
+
var React16 = __toESM(require_react(), 1);
|
|
12393
12382
|
var import_react8 = __toESM(require_react(), 1);
|
|
12394
12383
|
var ReactDOM2 = __toESM(require_react_dom(), 1);
|
|
12395
12384
|
var index = typeof document !== "undefined" ? import_react8.useLayoutEffect : import_react8.useEffect;
|
|
@@ -12452,7 +12441,7 @@ ${error}`);
|
|
|
12452
12441
|
return Math.round(value * dpr) / dpr;
|
|
12453
12442
|
}
|
|
12454
12443
|
function useLatestRef(value) {
|
|
12455
|
-
const ref =
|
|
12444
|
+
const ref = React16.useRef(value);
|
|
12456
12445
|
index(() => {
|
|
12457
12446
|
ref.current = value;
|
|
12458
12447
|
});
|
|
@@ -12475,7 +12464,7 @@ ${error}`);
|
|
|
12475
12464
|
whileElementsMounted,
|
|
12476
12465
|
open
|
|
12477
12466
|
} = options;
|
|
12478
|
-
const [data, setData] =
|
|
12467
|
+
const [data, setData] = React16.useState({
|
|
12479
12468
|
x: 0,
|
|
12480
12469
|
y: 0,
|
|
12481
12470
|
strategy,
|
|
@@ -12483,19 +12472,19 @@ ${error}`);
|
|
|
12483
12472
|
middlewareData: {},
|
|
12484
12473
|
isPositioned: false
|
|
12485
12474
|
});
|
|
12486
|
-
const [latestMiddleware, setLatestMiddleware] =
|
|
12475
|
+
const [latestMiddleware, setLatestMiddleware] = React16.useState(middleware);
|
|
12487
12476
|
if (!deepEqual(latestMiddleware, middleware)) {
|
|
12488
12477
|
setLatestMiddleware(middleware);
|
|
12489
12478
|
}
|
|
12490
|
-
const [_reference, _setReference] =
|
|
12491
|
-
const [_floating, _setFloating] =
|
|
12492
|
-
const setReference =
|
|
12479
|
+
const [_reference, _setReference] = React16.useState(null);
|
|
12480
|
+
const [_floating, _setFloating] = React16.useState(null);
|
|
12481
|
+
const setReference = React16.useCallback((node) => {
|
|
12493
12482
|
if (node !== referenceRef.current) {
|
|
12494
12483
|
referenceRef.current = node;
|
|
12495
12484
|
_setReference(node);
|
|
12496
12485
|
}
|
|
12497
12486
|
}, []);
|
|
12498
|
-
const setFloating =
|
|
12487
|
+
const setFloating = React16.useCallback((node) => {
|
|
12499
12488
|
if (node !== floatingRef.current) {
|
|
12500
12489
|
floatingRef.current = node;
|
|
12501
12490
|
_setFloating(node);
|
|
@@ -12503,14 +12492,14 @@ ${error}`);
|
|
|
12503
12492
|
}, []);
|
|
12504
12493
|
const referenceEl = externalReference || _reference;
|
|
12505
12494
|
const floatingEl = externalFloating || _floating;
|
|
12506
|
-
const referenceRef =
|
|
12507
|
-
const floatingRef =
|
|
12508
|
-
const dataRef =
|
|
12495
|
+
const referenceRef = React16.useRef(null);
|
|
12496
|
+
const floatingRef = React16.useRef(null);
|
|
12497
|
+
const dataRef = React16.useRef(data);
|
|
12509
12498
|
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
12510
12499
|
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
12511
12500
|
const platformRef = useLatestRef(platform2);
|
|
12512
12501
|
const openRef = useLatestRef(open);
|
|
12513
|
-
const update =
|
|
12502
|
+
const update = React16.useCallback(() => {
|
|
12514
12503
|
if (!referenceRef.current || !floatingRef.current) {
|
|
12515
12504
|
return;
|
|
12516
12505
|
}
|
|
@@ -12548,7 +12537,7 @@ ${error}`);
|
|
|
12548
12537
|
}));
|
|
12549
12538
|
}
|
|
12550
12539
|
}, [open]);
|
|
12551
|
-
const isMountedRef =
|
|
12540
|
+
const isMountedRef = React16.useRef(false);
|
|
12552
12541
|
index(() => {
|
|
12553
12542
|
isMountedRef.current = true;
|
|
12554
12543
|
return () => {
|
|
@@ -12565,17 +12554,17 @@ ${error}`);
|
|
|
12565
12554
|
update();
|
|
12566
12555
|
}
|
|
12567
12556
|
}, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
|
|
12568
|
-
const refs =
|
|
12557
|
+
const refs = React16.useMemo(() => ({
|
|
12569
12558
|
reference: referenceRef,
|
|
12570
12559
|
floating: floatingRef,
|
|
12571
12560
|
setReference,
|
|
12572
12561
|
setFloating
|
|
12573
12562
|
}), [setReference, setFloating]);
|
|
12574
|
-
const elements =
|
|
12563
|
+
const elements = React16.useMemo(() => ({
|
|
12575
12564
|
reference: referenceEl,
|
|
12576
12565
|
floating: floatingEl
|
|
12577
12566
|
}), [referenceEl, floatingEl]);
|
|
12578
|
-
const floatingStyles =
|
|
12567
|
+
const floatingStyles = React16.useMemo(() => {
|
|
12579
12568
|
const initialStyles = {
|
|
12580
12569
|
position: strategy,
|
|
12581
12570
|
left: 0,
|
|
@@ -12601,7 +12590,7 @@ ${error}`);
|
|
|
12601
12590
|
top: y
|
|
12602
12591
|
};
|
|
12603
12592
|
}, [strategy, transform, elements.floating, data.x, data.y]);
|
|
12604
|
-
return
|
|
12593
|
+
return React16.useMemo(() => ({
|
|
12605
12594
|
...data,
|
|
12606
12595
|
update,
|
|
12607
12596
|
refs,
|
|
@@ -12670,9 +12659,9 @@ ${error}`);
|
|
|
12670
12659
|
});
|
|
12671
12660
|
|
|
12672
12661
|
// ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@1_2aa610ae3ce517c8615cebea9e24dc5b/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
12673
|
-
var
|
|
12662
|
+
var React17 = __toESM(require_react(), 1);
|
|
12674
12663
|
var NAME = "Arrow";
|
|
12675
|
-
var Arrow =
|
|
12664
|
+
var Arrow = React17.forwardRef((props, forwardedRef) => {
|
|
12676
12665
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
12677
12666
|
return /* @__PURE__ */ jsx(
|
|
12678
12667
|
Primitive.svg,
|
|
@@ -12691,9 +12680,9 @@ ${error}`);
|
|
|
12691
12680
|
var Root = Arrow;
|
|
12692
12681
|
|
|
12693
12682
|
// ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
12694
|
-
var
|
|
12683
|
+
var React18 = __toESM(require_react(), 1);
|
|
12695
12684
|
function useSize(element) {
|
|
12696
|
-
const [size4, setSize] =
|
|
12685
|
+
const [size4, setSize] = React18.useState(void 0);
|
|
12697
12686
|
useLayoutEffect2(() => {
|
|
12698
12687
|
if (element) {
|
|
12699
12688
|
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
@@ -12733,19 +12722,19 @@ ${error}`);
|
|
|
12733
12722
|
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
12734
12723
|
var Popper = (props) => {
|
|
12735
12724
|
const { __scopePopper, children } = props;
|
|
12736
|
-
const [anchor, setAnchor] =
|
|
12725
|
+
const [anchor, setAnchor] = React19.useState(null);
|
|
12737
12726
|
return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
12738
12727
|
};
|
|
12739
12728
|
Popper.displayName = POPPER_NAME;
|
|
12740
12729
|
var ANCHOR_NAME = "PopperAnchor";
|
|
12741
|
-
var PopperAnchor =
|
|
12730
|
+
var PopperAnchor = React19.forwardRef(
|
|
12742
12731
|
(props, forwardedRef) => {
|
|
12743
12732
|
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
12744
12733
|
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
12745
|
-
const ref =
|
|
12734
|
+
const ref = React19.useRef(null);
|
|
12746
12735
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
12747
|
-
const anchorRef =
|
|
12748
|
-
|
|
12736
|
+
const anchorRef = React19.useRef(null);
|
|
12737
|
+
React19.useEffect(() => {
|
|
12749
12738
|
const previousAnchor = anchorRef.current;
|
|
12750
12739
|
anchorRef.current = virtualRef?.current || ref.current;
|
|
12751
12740
|
if (previousAnchor !== anchorRef.current) {
|
|
@@ -12758,7 +12747,7 @@ ${error}`);
|
|
|
12758
12747
|
PopperAnchor.displayName = ANCHOR_NAME;
|
|
12759
12748
|
var CONTENT_NAME = "PopperContent";
|
|
12760
12749
|
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
|
|
12761
|
-
var PopperContent =
|
|
12750
|
+
var PopperContent = React19.forwardRef(
|
|
12762
12751
|
(props, forwardedRef) => {
|
|
12763
12752
|
const {
|
|
12764
12753
|
__scopePopper,
|
|
@@ -12777,9 +12766,9 @@ ${error}`);
|
|
|
12777
12766
|
...contentProps
|
|
12778
12767
|
} = props;
|
|
12779
12768
|
const context = usePopperContext(CONTENT_NAME, __scopePopper);
|
|
12780
|
-
const [content, setContent] =
|
|
12769
|
+
const [content, setContent] = React19.useState(null);
|
|
12781
12770
|
const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
|
|
12782
|
-
const [arrow4, setArrow] =
|
|
12771
|
+
const [arrow4, setArrow] = React19.useState(null);
|
|
12783
12772
|
const arrowSize = useSize(arrow4);
|
|
12784
12773
|
const arrowWidth = arrowSize?.width ?? 0;
|
|
12785
12774
|
const arrowHeight = arrowSize?.height ?? 0;
|
|
@@ -12841,7 +12830,7 @@ ${error}`);
|
|
|
12841
12830
|
const arrowX = middlewareData.arrow?.x;
|
|
12842
12831
|
const arrowY = middlewareData.arrow?.y;
|
|
12843
12832
|
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
12844
|
-
const [contentZIndex, setContentZIndex] =
|
|
12833
|
+
const [contentZIndex, setContentZIndex] = React19.useState();
|
|
12845
12834
|
useLayoutEffect2(() => {
|
|
12846
12835
|
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
12847
12836
|
}, [content]);
|
|
@@ -12907,7 +12896,7 @@ ${error}`);
|
|
|
12907
12896
|
bottom: "top",
|
|
12908
12897
|
left: "right"
|
|
12909
12898
|
};
|
|
12910
|
-
var PopperArrow =
|
|
12899
|
+
var PopperArrow = React19.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
12911
12900
|
const { __scopePopper, ...arrowProps } = props;
|
|
12912
12901
|
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
12913
12902
|
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
@@ -12999,12 +12988,12 @@ ${error}`);
|
|
|
12999
12988
|
var Arrow2 = PopperArrow;
|
|
13000
12989
|
|
|
13001
12990
|
// ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.9_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react@_7645cc20debbdc3166db2ed8e9fd2af5/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
13002
|
-
var
|
|
12991
|
+
var React20 = __toESM(require_react(), 1);
|
|
13003
12992
|
var import_react_dom2 = __toESM(require_react_dom(), 1);
|
|
13004
12993
|
var PORTAL_NAME = "Portal";
|
|
13005
|
-
var Portal =
|
|
12994
|
+
var Portal = React20.forwardRef((props, forwardedRef) => {
|
|
13006
12995
|
const { container: containerProp, ...portalProps } = props;
|
|
13007
|
-
const [mounted, setMounted] =
|
|
12996
|
+
const [mounted, setMounted] = React20.useState(false);
|
|
13008
12997
|
useLayoutEffect2(() => setMounted(true), []);
|
|
13009
12998
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
13010
12999
|
return container ? import_react_dom2.default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
@@ -13012,9 +13001,9 @@ ${error}`);
|
|
|
13012
13001
|
Portal.displayName = PORTAL_NAME;
|
|
13013
13002
|
|
|
13014
13003
|
// ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.7_react@19.2.3/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
13004
|
+
var React21 = __toESM(require_react(), 1);
|
|
13015
13005
|
var React22 = __toESM(require_react(), 1);
|
|
13016
|
-
var
|
|
13017
|
-
var useInsertionEffect = React22[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
13006
|
+
var useInsertionEffect = React21[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
13018
13007
|
function useControllableState({
|
|
13019
13008
|
prop,
|
|
13020
13009
|
defaultProp,
|
|
@@ -13029,8 +13018,8 @@ ${error}`);
|
|
|
13029
13018
|
const isControlled = prop !== void 0;
|
|
13030
13019
|
const value = isControlled ? prop : uncontrolledProp;
|
|
13031
13020
|
if (true) {
|
|
13032
|
-
const isControlledRef =
|
|
13033
|
-
|
|
13021
|
+
const isControlledRef = React21.useRef(prop !== void 0);
|
|
13022
|
+
React21.useEffect(() => {
|
|
13034
13023
|
const wasControlled = isControlledRef.current;
|
|
13035
13024
|
if (wasControlled !== isControlled) {
|
|
13036
13025
|
const from = wasControlled ? "controlled" : "uncontrolled";
|
|
@@ -13042,7 +13031,7 @@ ${error}`);
|
|
|
13042
13031
|
isControlledRef.current = isControlled;
|
|
13043
13032
|
}, [isControlled, caller]);
|
|
13044
13033
|
}
|
|
13045
|
-
const setValue =
|
|
13034
|
+
const setValue = React21.useCallback(
|
|
13046
13035
|
(nextValue) => {
|
|
13047
13036
|
if (isControlled) {
|
|
13048
13037
|
const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
|
|
@@ -13061,13 +13050,13 @@ ${error}`);
|
|
|
13061
13050
|
defaultProp,
|
|
13062
13051
|
onChange
|
|
13063
13052
|
}) {
|
|
13064
|
-
const [value, setValue] =
|
|
13065
|
-
const prevValueRef =
|
|
13066
|
-
const onChangeRef =
|
|
13053
|
+
const [value, setValue] = React21.useState(defaultProp);
|
|
13054
|
+
const prevValueRef = React21.useRef(value);
|
|
13055
|
+
const onChangeRef = React21.useRef(onChange);
|
|
13067
13056
|
useInsertionEffect(() => {
|
|
13068
13057
|
onChangeRef.current = onChange;
|
|
13069
13058
|
}, [onChange]);
|
|
13070
|
-
|
|
13059
|
+
React21.useEffect(() => {
|
|
13071
13060
|
if (prevValueRef.current !== value) {
|
|
13072
13061
|
onChangeRef.current?.(value);
|
|
13073
13062
|
prevValueRef.current = value;
|
|
@@ -13081,7 +13070,7 @@ ${error}`);
|
|
|
13081
13070
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
13082
13071
|
|
|
13083
13072
|
// ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.7__@typ_b08a54b8b8cc1e2fcb68c28280b66cb9/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
13084
|
-
var
|
|
13073
|
+
var React23 = __toESM(require_react(), 1);
|
|
13085
13074
|
var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
13086
13075
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
13087
13076
|
position: "absolute",
|
|
@@ -13096,7 +13085,7 @@ ${error}`);
|
|
|
13096
13085
|
wordWrap: "normal"
|
|
13097
13086
|
});
|
|
13098
13087
|
var NAME2 = "VisuallyHidden";
|
|
13099
|
-
var VisuallyHidden =
|
|
13088
|
+
var VisuallyHidden = React23.forwardRef(
|
|
13100
13089
|
(props, forwardedRef) => {
|
|
13101
13090
|
return /* @__PURE__ */ jsx(
|
|
13102
13091
|
Primitive.span,
|
|
@@ -13265,10 +13254,10 @@ ${error}`);
|
|
|
13265
13254
|
}
|
|
13266
13255
|
|
|
13267
13256
|
// ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.7_react@19.2.3/node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
13268
|
-
var
|
|
13257
|
+
var React30 = __toESM(require_react());
|
|
13269
13258
|
|
|
13270
13259
|
// ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.7_react@19.2.3/node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
13271
|
-
var
|
|
13260
|
+
var React26 = __toESM(require_react());
|
|
13272
13261
|
|
|
13273
13262
|
// ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.7_react@19.2.3/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
13274
13263
|
var zeroRightClassName = "right-scroll-bar-position";
|
|
@@ -13315,8 +13304,8 @@ ${error}`);
|
|
|
13315
13304
|
}
|
|
13316
13305
|
|
|
13317
13306
|
// ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.7_react@19.2.3/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
13318
|
-
var
|
|
13319
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" ?
|
|
13307
|
+
var React24 = __toESM(require_react());
|
|
13308
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React24.useLayoutEffect : React24.useEffect;
|
|
13320
13309
|
var currentValues = /* @__PURE__ */ new WeakMap();
|
|
13321
13310
|
function useMergeRefs(refs, defaultValue) {
|
|
13322
13311
|
var callbackRef = useCallbackRef2(defaultValue || null, function(newValue) {
|
|
@@ -13433,7 +13422,7 @@ ${error}`);
|
|
|
13433
13422
|
}
|
|
13434
13423
|
|
|
13435
13424
|
// ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.7_react@19.2.3/node_modules/use-sidecar/dist/es2015/exports.js
|
|
13436
|
-
var
|
|
13425
|
+
var React25 = __toESM(require_react());
|
|
13437
13426
|
var SideCar = function(_a5) {
|
|
13438
13427
|
var sideCar = _a5.sideCar, rest = __rest(_a5, ["sideCar"]);
|
|
13439
13428
|
if (!sideCar) {
|
|
@@ -13443,7 +13432,7 @@ ${error}`);
|
|
|
13443
13432
|
if (!Target) {
|
|
13444
13433
|
throw new Error("Sidecar medium not found");
|
|
13445
13434
|
}
|
|
13446
|
-
return
|
|
13435
|
+
return React25.createElement(Target, __assign({}, rest));
|
|
13447
13436
|
};
|
|
13448
13437
|
SideCar.isSideCarExport = true;
|
|
13449
13438
|
function exportSidecar(medium, exported) {
|
|
@@ -13458,9 +13447,9 @@ ${error}`);
|
|
|
13458
13447
|
var nothing = function() {
|
|
13459
13448
|
return;
|
|
13460
13449
|
};
|
|
13461
|
-
var RemoveScroll =
|
|
13462
|
-
var ref =
|
|
13463
|
-
var _a5 =
|
|
13450
|
+
var RemoveScroll = React26.forwardRef(function(props, parentRef) {
|
|
13451
|
+
var ref = React26.useRef(null);
|
|
13452
|
+
var _a5 = React26.useState({
|
|
13464
13453
|
onScrollCapture: nothing,
|
|
13465
13454
|
onWheelCapture: nothing,
|
|
13466
13455
|
onTouchMoveCapture: nothing
|
|
@@ -13469,11 +13458,11 @@ ${error}`);
|
|
|
13469
13458
|
var SideCar2 = sideCar;
|
|
13470
13459
|
var containerRef = useMergeRefs([ref, parentRef]);
|
|
13471
13460
|
var containerProps = __assign(__assign({}, rest), callbacks);
|
|
13472
|
-
return
|
|
13473
|
-
|
|
13461
|
+
return React26.createElement(
|
|
13462
|
+
React26.Fragment,
|
|
13474
13463
|
null,
|
|
13475
|
-
enabled &&
|
|
13476
|
-
forwardProps ?
|
|
13464
|
+
enabled && React26.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
|
|
13465
|
+
forwardProps ? React26.cloneElement(React26.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React26.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
|
|
13477
13466
|
);
|
|
13478
13467
|
});
|
|
13479
13468
|
RemoveScroll.defaultProps = {
|
|
@@ -13487,13 +13476,13 @@ ${error}`);
|
|
|
13487
13476
|
};
|
|
13488
13477
|
|
|
13489
13478
|
// ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.7_react@19.2.3/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
13490
|
-
var
|
|
13479
|
+
var React29 = __toESM(require_react());
|
|
13491
13480
|
|
|
13492
13481
|
// ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.7_react@19.2.3/node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
13493
|
-
var
|
|
13482
|
+
var React28 = __toESM(require_react());
|
|
13494
13483
|
|
|
13495
13484
|
// ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.7_react@19.2.3/node_modules/react-style-singleton/dist/es2015/hook.js
|
|
13496
|
-
var
|
|
13485
|
+
var React27 = __toESM(require_react());
|
|
13497
13486
|
|
|
13498
13487
|
// ../../node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
13499
13488
|
var currentNonce;
|
|
@@ -13557,7 +13546,7 @@ ${error}`);
|
|
|
13557
13546
|
var styleHookSingleton = function() {
|
|
13558
13547
|
var sheet = stylesheetSingleton();
|
|
13559
13548
|
return function(styles, isDynamic) {
|
|
13560
|
-
|
|
13549
|
+
React27.useEffect(function() {
|
|
13561
13550
|
sheet.add(styles);
|
|
13562
13551
|
return function() {
|
|
13563
13552
|
sheet.remove();
|
|
@@ -13631,7 +13620,7 @@ ${error}`);
|
|
|
13631
13620
|
return isFinite(counter) ? counter : 0;
|
|
13632
13621
|
};
|
|
13633
13622
|
var useLockAttribute = function() {
|
|
13634
|
-
|
|
13623
|
+
React28.useEffect(function() {
|
|
13635
13624
|
document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
|
|
13636
13625
|
return function() {
|
|
13637
13626
|
var newCounter = getCurrentUseCounter() - 1;
|
|
@@ -13646,10 +13635,10 @@ ${error}`);
|
|
|
13646
13635
|
var RemoveScrollBar = function(_a5) {
|
|
13647
13636
|
var noRelative = _a5.noRelative, noImportant = _a5.noImportant, _b = _a5.gapMode, gapMode = _b === void 0 ? "margin" : _b;
|
|
13648
13637
|
useLockAttribute();
|
|
13649
|
-
var gap =
|
|
13638
|
+
var gap = React28.useMemo(function() {
|
|
13650
13639
|
return getGapWidth(gapMode);
|
|
13651
13640
|
}, [gapMode]);
|
|
13652
|
-
return
|
|
13641
|
+
return React28.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
|
|
13653
13642
|
};
|
|
13654
13643
|
|
|
13655
13644
|
// ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.7_react@19.2.3/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
@@ -13790,16 +13779,16 @@ ${error}`);
|
|
|
13790
13779
|
var idCounter = 0;
|
|
13791
13780
|
var lockStack = [];
|
|
13792
13781
|
function RemoveScrollSideCar(props) {
|
|
13793
|
-
var shouldPreventQueue =
|
|
13794
|
-
var touchStartRef =
|
|
13795
|
-
var activeAxis =
|
|
13796
|
-
var id =
|
|
13797
|
-
var Style2 =
|
|
13798
|
-
var lastProps =
|
|
13799
|
-
|
|
13782
|
+
var shouldPreventQueue = React29.useRef([]);
|
|
13783
|
+
var touchStartRef = React29.useRef([0, 0]);
|
|
13784
|
+
var activeAxis = React29.useRef();
|
|
13785
|
+
var id = React29.useState(idCounter++)[0];
|
|
13786
|
+
var Style2 = React29.useState(styleSingleton)[0];
|
|
13787
|
+
var lastProps = React29.useRef(props);
|
|
13788
|
+
React29.useEffect(function() {
|
|
13800
13789
|
lastProps.current = props;
|
|
13801
13790
|
}, [props]);
|
|
13802
|
-
|
|
13791
|
+
React29.useEffect(function() {
|
|
13803
13792
|
if (props.inert) {
|
|
13804
13793
|
document.body.classList.add("block-interactivity-".concat(id));
|
|
13805
13794
|
var allow_1 = __spreadArray5([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
@@ -13815,7 +13804,7 @@ ${error}`);
|
|
|
13815
13804
|
}
|
|
13816
13805
|
return;
|
|
13817
13806
|
}, [props.inert, props.lockRef.current, props.shards]);
|
|
13818
|
-
var shouldCancelEvent =
|
|
13807
|
+
var shouldCancelEvent = React29.useCallback(function(event, parent) {
|
|
13819
13808
|
if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
|
|
13820
13809
|
return !lastProps.current.allowPinchZoom;
|
|
13821
13810
|
}
|
|
@@ -13851,7 +13840,7 @@ ${error}`);
|
|
|
13851
13840
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
13852
13841
|
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
|
|
13853
13842
|
}, []);
|
|
13854
|
-
var shouldPrevent =
|
|
13843
|
+
var shouldPrevent = React29.useCallback(function(_event) {
|
|
13855
13844
|
var event = _event;
|
|
13856
13845
|
if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
|
|
13857
13846
|
return;
|
|
@@ -13878,7 +13867,7 @@ ${error}`);
|
|
|
13878
13867
|
}
|
|
13879
13868
|
}
|
|
13880
13869
|
}, []);
|
|
13881
|
-
var shouldCancel =
|
|
13870
|
+
var shouldCancel = React29.useCallback(function(name, delta, target, should) {
|
|
13882
13871
|
var event = { name, delta, target, should, shadowParent: getOutermostShadowParent(target) };
|
|
13883
13872
|
shouldPreventQueue.current.push(event);
|
|
13884
13873
|
setTimeout(function() {
|
|
@@ -13887,17 +13876,17 @@ ${error}`);
|
|
|
13887
13876
|
});
|
|
13888
13877
|
}, 1);
|
|
13889
13878
|
}, []);
|
|
13890
|
-
var scrollTouchStart =
|
|
13879
|
+
var scrollTouchStart = React29.useCallback(function(event) {
|
|
13891
13880
|
touchStartRef.current = getTouchXY(event);
|
|
13892
13881
|
activeAxis.current = void 0;
|
|
13893
13882
|
}, []);
|
|
13894
|
-
var scrollWheel =
|
|
13883
|
+
var scrollWheel = React29.useCallback(function(event) {
|
|
13895
13884
|
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
13896
13885
|
}, []);
|
|
13897
|
-
var scrollTouchMove =
|
|
13886
|
+
var scrollTouchMove = React29.useCallback(function(event) {
|
|
13898
13887
|
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
13899
13888
|
}, []);
|
|
13900
|
-
|
|
13889
|
+
React29.useEffect(function() {
|
|
13901
13890
|
lockStack.push(Style2);
|
|
13902
13891
|
props.setCallbacks({
|
|
13903
13892
|
onScrollCapture: scrollWheel,
|
|
@@ -13917,11 +13906,11 @@ ${error}`);
|
|
|
13917
13906
|
};
|
|
13918
13907
|
}, []);
|
|
13919
13908
|
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
13920
|
-
return
|
|
13921
|
-
|
|
13909
|
+
return React29.createElement(
|
|
13910
|
+
React29.Fragment,
|
|
13922
13911
|
null,
|
|
13923
|
-
inert ?
|
|
13924
|
-
removeScrollBar ?
|
|
13912
|
+
inert ? React29.createElement(Style2, { styles: generateStyle(id) }) : null,
|
|
13913
|
+
removeScrollBar ? React29.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
|
|
13925
13914
|
);
|
|
13926
13915
|
}
|
|
13927
13916
|
function getOutermostShadowParent(node) {
|
|
@@ -13940,17 +13929,17 @@ ${error}`);
|
|
|
13940
13929
|
var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
13941
13930
|
|
|
13942
13931
|
// ../../node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@19.2.7_react@19.2.3/node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
13943
|
-
var ReactRemoveScroll =
|
|
13944
|
-
return
|
|
13932
|
+
var ReactRemoveScroll = React30.forwardRef(function(props, ref) {
|
|
13933
|
+
return React30.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
|
|
13945
13934
|
});
|
|
13946
13935
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
13947
13936
|
var Combination_default = ReactRemoveScroll;
|
|
13948
13937
|
|
|
13949
13938
|
// ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.7__@types+reac_90b29b5754215655309320557426a63a/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
13950
13939
|
var React210 = __toESM(require_react(), 1);
|
|
13951
|
-
var
|
|
13940
|
+
var React31 = __toESM(require_react(), 1);
|
|
13952
13941
|
function useStateMachine(initialState, machine) {
|
|
13953
|
-
return
|
|
13942
|
+
return React31.useReducer((state, event) => {
|
|
13954
13943
|
const nextState = machine[state][event];
|
|
13955
13944
|
return nextState ?? state;
|
|
13956
13945
|
}, initialState);
|
|
@@ -14073,7 +14062,7 @@ ${error}`);
|
|
|
14073
14062
|
}
|
|
14074
14063
|
|
|
14075
14064
|
// ../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
14076
|
-
var
|
|
14065
|
+
var React32 = __toESM(require_react(), 1);
|
|
14077
14066
|
|
|
14078
14067
|
// ../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
|
|
14079
14068
|
function functionalUpdate(updater, input) {
|
|
@@ -16707,10 +16696,10 @@ ${error}`);
|
|
|
16707
16696
|
renderFallbackValue: null,
|
|
16708
16697
|
...options
|
|
16709
16698
|
};
|
|
16710
|
-
const [tableRef] =
|
|
16699
|
+
const [tableRef] = React32.useState(() => ({
|
|
16711
16700
|
current: createTable(resolvedOptions)
|
|
16712
16701
|
}));
|
|
16713
|
-
const [state, setState] =
|
|
16702
|
+
const [state, setState] = React32.useState(() => tableRef.current.initialState);
|
|
16714
16703
|
tableRef.current.setOptions((prev) => ({
|
|
16715
16704
|
...prev,
|
|
16716
16705
|
...options,
|
|
@@ -16729,7 +16718,7 @@ ${error}`);
|
|
|
16729
16718
|
}
|
|
16730
16719
|
|
|
16731
16720
|
// ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react_66d7d575cbd072ce29e52afb89085e9d/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
16732
|
-
var
|
|
16721
|
+
var React33 = __toESM(require_react(), 1);
|
|
16733
16722
|
var DIALOG_NAME = "Dialog";
|
|
16734
16723
|
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
|
16735
16724
|
var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
|
|
@@ -16742,8 +16731,8 @@ ${error}`);
|
|
|
16742
16731
|
onOpenChange,
|
|
16743
16732
|
modal = true
|
|
16744
16733
|
} = props;
|
|
16745
|
-
const triggerRef =
|
|
16746
|
-
const contentRef =
|
|
16734
|
+
const triggerRef = React33.useRef(null);
|
|
16735
|
+
const contentRef = React33.useRef(null);
|
|
16747
16736
|
const [open, setOpen] = useControllableState({
|
|
16748
16737
|
prop: openProp,
|
|
16749
16738
|
defaultProp: defaultOpen ?? false,
|
|
@@ -16761,7 +16750,7 @@ ${error}`);
|
|
|
16761
16750
|
descriptionId: useId(),
|
|
16762
16751
|
open,
|
|
16763
16752
|
onOpenChange: setOpen,
|
|
16764
|
-
onOpenToggle:
|
|
16753
|
+
onOpenToggle: React33.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
16765
16754
|
modal,
|
|
16766
16755
|
children
|
|
16767
16756
|
}
|
|
@@ -16769,7 +16758,7 @@ ${error}`);
|
|
|
16769
16758
|
};
|
|
16770
16759
|
Dialog.displayName = DIALOG_NAME;
|
|
16771
16760
|
var TRIGGER_NAME = "DialogTrigger";
|
|
16772
|
-
var DialogTrigger =
|
|
16761
|
+
var DialogTrigger = React33.forwardRef(
|
|
16773
16762
|
(props, forwardedRef) => {
|
|
16774
16763
|
const { __scopeDialog, ...triggerProps } = props;
|
|
16775
16764
|
const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
|
|
@@ -16797,11 +16786,11 @@ ${error}`);
|
|
|
16797
16786
|
var DialogPortal = (props) => {
|
|
16798
16787
|
const { __scopeDialog, forceMount, children, container } = props;
|
|
16799
16788
|
const context = useDialogContext(PORTAL_NAME2, __scopeDialog);
|
|
16800
|
-
return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children:
|
|
16789
|
+
return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React33.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal, { asChild: true, container, children: child }) })) });
|
|
16801
16790
|
};
|
|
16802
16791
|
DialogPortal.displayName = PORTAL_NAME2;
|
|
16803
16792
|
var OVERLAY_NAME = "DialogOverlay";
|
|
16804
|
-
var DialogOverlay =
|
|
16793
|
+
var DialogOverlay = React33.forwardRef(
|
|
16805
16794
|
(props, forwardedRef) => {
|
|
16806
16795
|
const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
|
|
16807
16796
|
const { forceMount = portalContext.forceMount, ...overlayProps } = props;
|
|
@@ -16811,7 +16800,7 @@ ${error}`);
|
|
|
16811
16800
|
);
|
|
16812
16801
|
DialogOverlay.displayName = OVERLAY_NAME;
|
|
16813
16802
|
var Slot2 = createSlot2("DialogOverlay.RemoveScroll");
|
|
16814
|
-
var DialogOverlayImpl =
|
|
16803
|
+
var DialogOverlayImpl = React33.forwardRef(
|
|
16815
16804
|
(props, forwardedRef) => {
|
|
16816
16805
|
const { __scopeDialog, ...overlayProps } = props;
|
|
16817
16806
|
const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
|
|
@@ -16831,7 +16820,7 @@ ${error}`);
|
|
|
16831
16820
|
}
|
|
16832
16821
|
);
|
|
16833
16822
|
var CONTENT_NAME2 = "DialogContent";
|
|
16834
|
-
var DialogContent =
|
|
16823
|
+
var DialogContent = React33.forwardRef(
|
|
16835
16824
|
(props, forwardedRef) => {
|
|
16836
16825
|
const portalContext = usePortalContext(CONTENT_NAME2, props.__scopeDialog);
|
|
16837
16826
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
@@ -16840,12 +16829,12 @@ ${error}`);
|
|
|
16840
16829
|
}
|
|
16841
16830
|
);
|
|
16842
16831
|
DialogContent.displayName = CONTENT_NAME2;
|
|
16843
|
-
var DialogContentModal =
|
|
16832
|
+
var DialogContentModal = React33.forwardRef(
|
|
16844
16833
|
(props, forwardedRef) => {
|
|
16845
16834
|
const context = useDialogContext(CONTENT_NAME2, props.__scopeDialog);
|
|
16846
|
-
const contentRef =
|
|
16835
|
+
const contentRef = React33.useRef(null);
|
|
16847
16836
|
const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
|
|
16848
|
-
|
|
16837
|
+
React33.useEffect(() => {
|
|
16849
16838
|
const content = contentRef.current;
|
|
16850
16839
|
if (content) return hideOthers(content);
|
|
16851
16840
|
}, []);
|
|
@@ -16874,11 +16863,11 @@ ${error}`);
|
|
|
16874
16863
|
);
|
|
16875
16864
|
}
|
|
16876
16865
|
);
|
|
16877
|
-
var DialogContentNonModal =
|
|
16866
|
+
var DialogContentNonModal = React33.forwardRef(
|
|
16878
16867
|
(props, forwardedRef) => {
|
|
16879
16868
|
const context = useDialogContext(CONTENT_NAME2, props.__scopeDialog);
|
|
16880
|
-
const hasInteractedOutsideRef =
|
|
16881
|
-
const hasPointerDownOutsideRef =
|
|
16869
|
+
const hasInteractedOutsideRef = React33.useRef(false);
|
|
16870
|
+
const hasPointerDownOutsideRef = React33.useRef(false);
|
|
16882
16871
|
return /* @__PURE__ */ jsx(
|
|
16883
16872
|
DialogContentImpl,
|
|
16884
16873
|
{
|
|
@@ -16914,11 +16903,11 @@ ${error}`);
|
|
|
16914
16903
|
);
|
|
16915
16904
|
}
|
|
16916
16905
|
);
|
|
16917
|
-
var DialogContentImpl =
|
|
16906
|
+
var DialogContentImpl = React33.forwardRef(
|
|
16918
16907
|
(props, forwardedRef) => {
|
|
16919
16908
|
const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
|
|
16920
16909
|
const context = useDialogContext(CONTENT_NAME2, __scopeDialog);
|
|
16921
|
-
const contentRef =
|
|
16910
|
+
const contentRef = React33.useRef(null);
|
|
16922
16911
|
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
|
16923
16912
|
useFocusGuards();
|
|
16924
16913
|
return /* @__PURE__ */ jsxs(Fragment24, { children: [
|
|
@@ -16953,7 +16942,7 @@ ${error}`);
|
|
|
16953
16942
|
}
|
|
16954
16943
|
);
|
|
16955
16944
|
var TITLE_NAME = "DialogTitle";
|
|
16956
|
-
var DialogTitle =
|
|
16945
|
+
var DialogTitle = React33.forwardRef(
|
|
16957
16946
|
(props, forwardedRef) => {
|
|
16958
16947
|
const { __scopeDialog, ...titleProps } = props;
|
|
16959
16948
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
@@ -16962,7 +16951,7 @@ ${error}`);
|
|
|
16962
16951
|
);
|
|
16963
16952
|
DialogTitle.displayName = TITLE_NAME;
|
|
16964
16953
|
var DESCRIPTION_NAME = "DialogDescription";
|
|
16965
|
-
var DialogDescription =
|
|
16954
|
+
var DialogDescription = React33.forwardRef(
|
|
16966
16955
|
(props, forwardedRef) => {
|
|
16967
16956
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
16968
16957
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
@@ -16971,7 +16960,7 @@ ${error}`);
|
|
|
16971
16960
|
);
|
|
16972
16961
|
DialogDescription.displayName = DESCRIPTION_NAME;
|
|
16973
16962
|
var CLOSE_NAME = "DialogClose";
|
|
16974
|
-
var DialogClose =
|
|
16963
|
+
var DialogClose = React33.forwardRef(
|
|
16975
16964
|
(props, forwardedRef) => {
|
|
16976
16965
|
const { __scopeDialog, ...closeProps } = props;
|
|
16977
16966
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
|
@@ -17003,7 +16992,7 @@ ${error}`);
|
|
|
17003
16992
|
If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
17004
16993
|
|
|
17005
16994
|
For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
|
|
17006
|
-
|
|
16995
|
+
React33.useEffect(() => {
|
|
17007
16996
|
if (titleId) {
|
|
17008
16997
|
const hasTitle = document.getElementById(titleId);
|
|
17009
16998
|
if (!hasTitle) console.error(MESSAGE);
|
|
@@ -17015,7 +17004,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17015
17004
|
var DescriptionWarning = ({ contentRef, descriptionId }) => {
|
|
17016
17005
|
const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);
|
|
17017
17006
|
const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${descriptionWarningContext.contentName}}.`;
|
|
17018
|
-
|
|
17007
|
+
React33.useEffect(() => {
|
|
17019
17008
|
const describedById = contentRef.current?.getAttribute("aria-describedby");
|
|
17020
17009
|
if (descriptionId && describedById) {
|
|
17021
17010
|
const hasDescription = document.getElementById(descriptionId);
|
|
@@ -17047,7 +17036,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17047
17036
|
DialogOverlay2.displayName = Overlay.displayName;
|
|
17048
17037
|
var DialogContent2 = forwardRefIfNeeded(({ className, children, overlayProps, noCloseButton, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal2, { children: [/* @__PURE__ */ jsx(DialogOverlay2, { ...overlayProps }), /* @__PURE__ */ jsxs(Content2, {
|
|
17049
17038
|
ref,
|
|
17050
|
-
className: cn("stack-scope fixed left-[50%] top-[50%] max-h-screen z-50 flex flex-col w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border bg-
|
|
17039
|
+
className: cn("stack-scope fixed left-[50%] top-[50%] max-h-screen z-50 flex flex-col w-full max-w-lg translate-x-[-50%] translate-y-[-50%] border bg-white p-6 shadow-lg duration-100 dark:bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className),
|
|
17051
17040
|
...props,
|
|
17052
17041
|
children: [children, !noCloseButton && /* @__PURE__ */ jsxs(Close, {
|
|
17053
17042
|
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
|
|
@@ -17086,7 +17075,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17086
17075
|
DialogDescription2.displayName = Description.displayName;
|
|
17087
17076
|
|
|
17088
17077
|
// ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.7__@types+react_61903d443f318e235810cb4023b9ffb4/node_modules/@radix-ui/react-tooltip/dist/index.mjs
|
|
17089
|
-
var
|
|
17078
|
+
var React34 = __toESM(require_react(), 1);
|
|
17090
17079
|
var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
|
|
17091
17080
|
createPopperScope
|
|
17092
17081
|
]);
|
|
@@ -17103,10 +17092,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17103
17092
|
disableHoverableContent = false,
|
|
17104
17093
|
children
|
|
17105
17094
|
} = props;
|
|
17106
|
-
const isOpenDelayedRef =
|
|
17107
|
-
const isPointerInTransitRef =
|
|
17108
|
-
const skipDelayTimerRef =
|
|
17109
|
-
|
|
17095
|
+
const isOpenDelayedRef = React34.useRef(true);
|
|
17096
|
+
const isPointerInTransitRef = React34.useRef(false);
|
|
17097
|
+
const skipDelayTimerRef = React34.useRef(0);
|
|
17098
|
+
React34.useEffect(() => {
|
|
17110
17099
|
const skipDelayTimer = skipDelayTimerRef.current;
|
|
17111
17100
|
return () => window.clearTimeout(skipDelayTimer);
|
|
17112
17101
|
}, []);
|
|
@@ -17116,11 +17105,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17116
17105
|
scope: __scopeTooltip,
|
|
17117
17106
|
isOpenDelayedRef,
|
|
17118
17107
|
delayDuration,
|
|
17119
|
-
onOpen:
|
|
17108
|
+
onOpen: React34.useCallback(() => {
|
|
17120
17109
|
window.clearTimeout(skipDelayTimerRef.current);
|
|
17121
17110
|
isOpenDelayedRef.current = false;
|
|
17122
17111
|
}, []),
|
|
17123
|
-
onClose:
|
|
17112
|
+
onClose: React34.useCallback(() => {
|
|
17124
17113
|
window.clearTimeout(skipDelayTimerRef.current);
|
|
17125
17114
|
skipDelayTimerRef.current = window.setTimeout(
|
|
17126
17115
|
() => isOpenDelayedRef.current = true,
|
|
@@ -17128,7 +17117,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17128
17117
|
);
|
|
17129
17118
|
}, [skipDelayDuration]),
|
|
17130
17119
|
isPointerInTransitRef,
|
|
17131
|
-
onPointerInTransitChange:
|
|
17120
|
+
onPointerInTransitChange: React34.useCallback((inTransit) => {
|
|
17132
17121
|
isPointerInTransitRef.current = inTransit;
|
|
17133
17122
|
}, []),
|
|
17134
17123
|
disableHoverableContent,
|
|
@@ -17151,12 +17140,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17151
17140
|
} = props;
|
|
17152
17141
|
const providerContext = useTooltipProviderContext(TOOLTIP_NAME, props.__scopeTooltip);
|
|
17153
17142
|
const popperScope = usePopperScope(__scopeTooltip);
|
|
17154
|
-
const [trigger, setTrigger] =
|
|
17143
|
+
const [trigger, setTrigger] = React34.useState(null);
|
|
17155
17144
|
const contentId = useId();
|
|
17156
|
-
const openTimerRef =
|
|
17145
|
+
const openTimerRef = React34.useRef(0);
|
|
17157
17146
|
const disableHoverableContent = disableHoverableContentProp ?? providerContext.disableHoverableContent;
|
|
17158
17147
|
const delayDuration = delayDurationProp ?? providerContext.delayDuration;
|
|
17159
|
-
const wasOpenDelayedRef =
|
|
17148
|
+
const wasOpenDelayedRef = React34.useRef(false);
|
|
17160
17149
|
const [open, setOpen] = useControllableState({
|
|
17161
17150
|
prop: openProp,
|
|
17162
17151
|
defaultProp: defaultOpen ?? false,
|
|
@@ -17171,21 +17160,21 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17171
17160
|
},
|
|
17172
17161
|
caller: TOOLTIP_NAME
|
|
17173
17162
|
});
|
|
17174
|
-
const stateAttribute =
|
|
17163
|
+
const stateAttribute = React34.useMemo(() => {
|
|
17175
17164
|
return open ? wasOpenDelayedRef.current ? "delayed-open" : "instant-open" : "closed";
|
|
17176
17165
|
}, [open]);
|
|
17177
|
-
const handleOpen =
|
|
17166
|
+
const handleOpen = React34.useCallback(() => {
|
|
17178
17167
|
window.clearTimeout(openTimerRef.current);
|
|
17179
17168
|
openTimerRef.current = 0;
|
|
17180
17169
|
wasOpenDelayedRef.current = false;
|
|
17181
17170
|
setOpen(true);
|
|
17182
17171
|
}, [setOpen]);
|
|
17183
|
-
const handleClose =
|
|
17172
|
+
const handleClose = React34.useCallback(() => {
|
|
17184
17173
|
window.clearTimeout(openTimerRef.current);
|
|
17185
17174
|
openTimerRef.current = 0;
|
|
17186
17175
|
setOpen(false);
|
|
17187
17176
|
}, [setOpen]);
|
|
17188
|
-
const handleDelayedOpen =
|
|
17177
|
+
const handleDelayedOpen = React34.useCallback(() => {
|
|
17189
17178
|
window.clearTimeout(openTimerRef.current);
|
|
17190
17179
|
openTimerRef.current = window.setTimeout(() => {
|
|
17191
17180
|
wasOpenDelayedRef.current = true;
|
|
@@ -17193,7 +17182,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17193
17182
|
openTimerRef.current = 0;
|
|
17194
17183
|
}, delayDuration);
|
|
17195
17184
|
}, [delayDuration, setOpen]);
|
|
17196
|
-
|
|
17185
|
+
React34.useEffect(() => {
|
|
17197
17186
|
return () => {
|
|
17198
17187
|
if (openTimerRef.current) {
|
|
17199
17188
|
window.clearTimeout(openTimerRef.current);
|
|
@@ -17210,11 +17199,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17210
17199
|
stateAttribute,
|
|
17211
17200
|
trigger,
|
|
17212
17201
|
onTriggerChange: setTrigger,
|
|
17213
|
-
onTriggerEnter:
|
|
17202
|
+
onTriggerEnter: React34.useCallback(() => {
|
|
17214
17203
|
if (providerContext.isOpenDelayedRef.current) handleDelayedOpen();
|
|
17215
17204
|
else handleOpen();
|
|
17216
17205
|
}, [providerContext.isOpenDelayedRef, handleDelayedOpen, handleOpen]),
|
|
17217
|
-
onTriggerLeave:
|
|
17206
|
+
onTriggerLeave: React34.useCallback(() => {
|
|
17218
17207
|
if (disableHoverableContent) {
|
|
17219
17208
|
handleClose();
|
|
17220
17209
|
} else {
|
|
@@ -17231,18 +17220,18 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17231
17220
|
};
|
|
17232
17221
|
Tooltip.displayName = TOOLTIP_NAME;
|
|
17233
17222
|
var TRIGGER_NAME2 = "TooltipTrigger";
|
|
17234
|
-
var TooltipTrigger =
|
|
17223
|
+
var TooltipTrigger = React34.forwardRef(
|
|
17235
17224
|
(props, forwardedRef) => {
|
|
17236
17225
|
const { __scopeTooltip, ...triggerProps } = props;
|
|
17237
17226
|
const context = useTooltipContext(TRIGGER_NAME2, __scopeTooltip);
|
|
17238
17227
|
const providerContext = useTooltipProviderContext(TRIGGER_NAME2, __scopeTooltip);
|
|
17239
17228
|
const popperScope = usePopperScope(__scopeTooltip);
|
|
17240
|
-
const ref =
|
|
17229
|
+
const ref = React34.useRef(null);
|
|
17241
17230
|
const composedRefs = useComposedRefs(forwardedRef, ref, context.onTriggerChange);
|
|
17242
|
-
const isPointerDownRef =
|
|
17243
|
-
const hasPointerMoveOpenedRef =
|
|
17244
|
-
const handlePointerUp =
|
|
17245
|
-
|
|
17231
|
+
const isPointerDownRef = React34.useRef(false);
|
|
17232
|
+
const hasPointerMoveOpenedRef = React34.useRef(false);
|
|
17233
|
+
const handlePointerUp = React34.useCallback(() => isPointerDownRef.current = false, []);
|
|
17234
|
+
React34.useEffect(() => {
|
|
17246
17235
|
return () => document.removeEventListener("pointerup", handlePointerUp);
|
|
17247
17236
|
}, [handlePointerUp]);
|
|
17248
17237
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
@@ -17291,7 +17280,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17291
17280
|
};
|
|
17292
17281
|
TooltipPortal.displayName = PORTAL_NAME3;
|
|
17293
17282
|
var CONTENT_NAME3 = "TooltipContent";
|
|
17294
|
-
var TooltipContent =
|
|
17283
|
+
var TooltipContent = React34.forwardRef(
|
|
17295
17284
|
(props, forwardedRef) => {
|
|
17296
17285
|
const portalContext = usePortalContext2(CONTENT_NAME3, props.__scopeTooltip);
|
|
17297
17286
|
const { forceMount = portalContext.forceMount, side = "top", ...contentProps } = props;
|
|
@@ -17299,20 +17288,20 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17299
17288
|
return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.disableHoverableContent ? /* @__PURE__ */ jsx(TooltipContentImpl, { side, ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(TooltipContentHoverable, { side, ...contentProps, ref: forwardedRef }) });
|
|
17300
17289
|
}
|
|
17301
17290
|
);
|
|
17302
|
-
var TooltipContentHoverable =
|
|
17291
|
+
var TooltipContentHoverable = React34.forwardRef((props, forwardedRef) => {
|
|
17303
17292
|
const context = useTooltipContext(CONTENT_NAME3, props.__scopeTooltip);
|
|
17304
17293
|
const providerContext = useTooltipProviderContext(CONTENT_NAME3, props.__scopeTooltip);
|
|
17305
|
-
const ref =
|
|
17294
|
+
const ref = React34.useRef(null);
|
|
17306
17295
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
17307
|
-
const [pointerGraceArea, setPointerGraceArea] =
|
|
17296
|
+
const [pointerGraceArea, setPointerGraceArea] = React34.useState(null);
|
|
17308
17297
|
const { trigger, onClose } = context;
|
|
17309
17298
|
const content = ref.current;
|
|
17310
17299
|
const { onPointerInTransitChange } = providerContext;
|
|
17311
|
-
const handleRemoveGraceArea =
|
|
17300
|
+
const handleRemoveGraceArea = React34.useCallback(() => {
|
|
17312
17301
|
setPointerGraceArea(null);
|
|
17313
17302
|
onPointerInTransitChange(false);
|
|
17314
17303
|
}, [onPointerInTransitChange]);
|
|
17315
|
-
const handleCreateGraceArea =
|
|
17304
|
+
const handleCreateGraceArea = React34.useCallback(
|
|
17316
17305
|
(event, hoverTarget) => {
|
|
17317
17306
|
const currentTarget = event.currentTarget;
|
|
17318
17307
|
const exitPoint = { x: event.clientX, y: event.clientY };
|
|
@@ -17325,10 +17314,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17325
17314
|
},
|
|
17326
17315
|
[onPointerInTransitChange]
|
|
17327
17316
|
);
|
|
17328
|
-
|
|
17317
|
+
React34.useEffect(() => {
|
|
17329
17318
|
return () => handleRemoveGraceArea();
|
|
17330
17319
|
}, [handleRemoveGraceArea]);
|
|
17331
|
-
|
|
17320
|
+
React34.useEffect(() => {
|
|
17332
17321
|
if (trigger && content) {
|
|
17333
17322
|
const handleTriggerLeave = (event) => handleCreateGraceArea(event, content);
|
|
17334
17323
|
const handleContentLeave = (event) => handleCreateGraceArea(event, trigger);
|
|
@@ -17340,7 +17329,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17340
17329
|
};
|
|
17341
17330
|
}
|
|
17342
17331
|
}, [trigger, content, handleCreateGraceArea, handleRemoveGraceArea]);
|
|
17343
|
-
|
|
17332
|
+
React34.useEffect(() => {
|
|
17344
17333
|
if (pointerGraceArea) {
|
|
17345
17334
|
const handleTrackPointerGrace = (event) => {
|
|
17346
17335
|
const target = event.target;
|
|
@@ -17362,7 +17351,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17362
17351
|
});
|
|
17363
17352
|
var [VisuallyHiddenContentContextProvider, useVisuallyHiddenContentContext] = createTooltipContext(TOOLTIP_NAME, { isInside: false });
|
|
17364
17353
|
var Slottable2 = createSlottable2("TooltipContent");
|
|
17365
|
-
var TooltipContentImpl =
|
|
17354
|
+
var TooltipContentImpl = React34.forwardRef(
|
|
17366
17355
|
(props, forwardedRef) => {
|
|
17367
17356
|
const {
|
|
17368
17357
|
__scopeTooltip,
|
|
@@ -17375,11 +17364,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17375
17364
|
const context = useTooltipContext(CONTENT_NAME3, __scopeTooltip);
|
|
17376
17365
|
const popperScope = usePopperScope(__scopeTooltip);
|
|
17377
17366
|
const { onClose } = context;
|
|
17378
|
-
|
|
17367
|
+
React34.useEffect(() => {
|
|
17379
17368
|
document.addEventListener(TOOLTIP_OPEN, onClose);
|
|
17380
17369
|
return () => document.removeEventListener(TOOLTIP_OPEN, onClose);
|
|
17381
17370
|
}, [onClose]);
|
|
17382
|
-
|
|
17371
|
+
React34.useEffect(() => {
|
|
17383
17372
|
if (context.trigger) {
|
|
17384
17373
|
const handleScroll2 = (event) => {
|
|
17385
17374
|
const target = event.target;
|
|
@@ -17428,7 +17417,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17428
17417
|
);
|
|
17429
17418
|
TooltipContent.displayName = CONTENT_NAME3;
|
|
17430
17419
|
var ARROW_NAME2 = "TooltipArrow";
|
|
17431
|
-
var TooltipArrow =
|
|
17420
|
+
var TooltipArrow = React34.forwardRef(
|
|
17432
17421
|
(props, forwardedRef) => {
|
|
17433
17422
|
const { __scopeTooltip, ...arrowProps } = props;
|
|
17434
17423
|
const popperScope = usePopperScope(__scopeTooltip);
|
|
@@ -17617,7 +17606,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
17617
17606
|
var TooltipContent2 = forwardRefIfNeeded(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(Content22, {
|
|
17618
17607
|
ref,
|
|
17619
17608
|
sideOffset,
|
|
17620
|
-
className: cn("stack-scope z-50 overflow-hidden rounded-md bg-
|
|
17609
|
+
className: cn("stack-scope z-50 overflow-hidden rounded-md border border-black/[0.08] bg-white px-3 py-1.5 text-xs text-foreground shadow-md ring-1 ring-black/[0.06] dark:border-white/[0.08] dark:bg-primary dark:text-primary-foreground dark:ring-white/[0.08] animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className),
|
|
17621
17610
|
...props
|
|
17622
17611
|
}));
|
|
17623
17612
|
TooltipContent2.displayName = Content22.displayName;
|
|
@@ -18977,12 +18966,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
18977
18966
|
};
|
|
18978
18967
|
|
|
18979
18968
|
// src/components/chart-container.tsx
|
|
18980
|
-
var
|
|
18969
|
+
var React37 = __toESM(require_react());
|
|
18981
18970
|
var RechartsPrimitive = __toESM(require_recharts());
|
|
18982
18971
|
var THEMES = { light: "", dark: ".dark" };
|
|
18983
|
-
var ChartContext =
|
|
18972
|
+
var ChartContext = React37.createContext(null);
|
|
18984
18973
|
function useDesignChart() {
|
|
18985
|
-
const context =
|
|
18974
|
+
const context = React37.useContext(ChartContext);
|
|
18986
18975
|
if (!context) {
|
|
18987
18976
|
throw new Error("useDesignChart must be used within a <DesignChartContainer />");
|
|
18988
18977
|
}
|
|
@@ -19013,8 +19002,8 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
19013
19002
|
}
|
|
19014
19003
|
);
|
|
19015
19004
|
}
|
|
19016
|
-
var DesignChartContainer =
|
|
19017
|
-
const uniqueId =
|
|
19005
|
+
var DesignChartContainer = React37.forwardRef(({ id, className, children, config, maxHeight, ...props }, ref) => {
|
|
19006
|
+
const uniqueId = React37.useId();
|
|
19018
19007
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
19019
19008
|
return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
|
|
19020
19009
|
"div",
|
|
@@ -19065,10 +19054,10 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
19065
19054
|
}
|
|
19066
19055
|
|
|
19067
19056
|
// src/components/chart-tooltip.tsx
|
|
19068
|
-
var
|
|
19057
|
+
var React38 = __toESM(require_react());
|
|
19069
19058
|
var RechartsPrimitive2 = __toESM(require_recharts());
|
|
19070
19059
|
var DesignChartTooltip = RechartsPrimitive2.Tooltip;
|
|
19071
|
-
var DesignChartTooltipContent =
|
|
19060
|
+
var DesignChartTooltipContent = React38.forwardRef(
|
|
19072
19061
|
({
|
|
19073
19062
|
active,
|
|
19074
19063
|
payload,
|
|
@@ -19085,7 +19074,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
19085
19074
|
labelKey
|
|
19086
19075
|
}, ref) => {
|
|
19087
19076
|
const { config } = useDesignChart();
|
|
19088
|
-
const tooltipLabel =
|
|
19077
|
+
const tooltipLabel = React38.useMemo(() => {
|
|
19089
19078
|
if (hideLabel || !payload?.length) {
|
|
19090
19079
|
return null;
|
|
19091
19080
|
}
|
|
@@ -19119,7 +19108,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
19119
19108
|
{
|
|
19120
19109
|
ref,
|
|
19121
19110
|
className: cn(
|
|
19122
|
-
"grid min-w-[8rem] items-start gap-1.5 rounded-xl bg-
|
|
19111
|
+
"grid min-w-[8rem] items-start gap-1.5 rounded-xl bg-white/95 px-3.5 py-2.5 text-xs shadow-lg ring-1 ring-black/[0.08] backdrop-blur-xl dark:bg-background/95 dark:ring-white/[0.08]",
|
|
19123
19112
|
className
|
|
19124
19113
|
),
|
|
19125
19114
|
style: { zIndex: 9999 },
|
|
@@ -19185,8 +19174,8 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
19185
19174
|
DesignChartTooltipContent.displayName = "DesignChartTooltipContent";
|
|
19186
19175
|
|
|
19187
19176
|
// src/components/chart-legend.tsx
|
|
19188
|
-
var
|
|
19189
|
-
var DesignChartLegendContent =
|
|
19177
|
+
var React39 = __toESM(require_react());
|
|
19178
|
+
var DesignChartLegendContent = React39.forwardRef(
|
|
19190
19179
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
19191
19180
|
const { config } = useDesignChart();
|
|
19192
19181
|
if (!payload?.length) {
|
|
@@ -19489,7 +19478,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
19489
19478
|
function DefaultAnalyticsChartTooltip({ ctx }) {
|
|
19490
19479
|
const { point, isPinned, primary, compare, delta, formatValue: fv, formatDate: fd, strings } = ctx;
|
|
19491
19480
|
const anySegmented = (primary?.segmented ?? false) || (compare?.segmented ?? false);
|
|
19492
|
-
return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-
|
|
19481
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-black/[0.08] bg-white/95 px-3 py-2.5 shadow-[0_10px_28px_rgba(15,23,42,0.18)] ring-1 ring-black/[0.06] backdrop-blur-xl dark:border-white/[0.08] dark:bg-background/95 dark:ring-white/[0.08] dark:shadow-[0_10px_28px_rgba(0,0,0,0.55)] min-w-[180px]", children: [
|
|
19493
19482
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
19494
19483
|
/* @__PURE__ */ jsx("span", { className: "font-mono text-[10px] uppercase tracking-wider text-muted-foreground", children: fd(point.ts) }),
|
|
19495
19484
|
isPinned && /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 rounded-full bg-blue-500/10 px-1.5 py-[1px] text-[9px] font-semibold uppercase tracking-wider text-blue-600 dark:text-blue-300", children: [
|
|
@@ -20965,7 +20954,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
20965
20954
|
return /* @__PURE__ */ jsx(
|
|
20966
20955
|
"div",
|
|
20967
20956
|
{
|
|
20968
|
-
className: "pointer-events-none absolute -top-1 z-30 -translate-x-1/2 -translate-y-full rounded-lg border border-blue-500/30 bg-
|
|
20957
|
+
className: "pointer-events-none absolute -top-1 z-30 -translate-x-1/2 -translate-y-full rounded-lg border border-blue-500/30 bg-white/95 px-3 py-1.5 text-[11px] shadow-lg backdrop-blur-xl dark:border-blue-400/30 dark:bg-background/95",
|
|
20969
20958
|
style: { left: indexToCss((lo + hi) / 2) },
|
|
20970
20959
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
20971
20960
|
/* @__PURE__ */ jsx("span", { className: "font-mono text-[10px] uppercase tracking-wider text-muted-foreground", children: strings.rangeLabel }),
|
|
@@ -21008,7 +20997,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
21008
20997
|
const anchorStyle = snapLeft ? { left: "8px" } : snapRight ? { right: "8px" } : { left: indexToCss(center), transform: "translateX(-50%)" };
|
|
21009
20998
|
const days = hi - lo + 1;
|
|
21010
20999
|
const draft = annotationDraft;
|
|
21011
|
-
return /* @__PURE__ */ jsx("div", { className: "absolute top-2 z-30", style: anchorStyle, children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1 rounded-full border border-
|
|
21000
|
+
return /* @__PURE__ */ jsx("div", { className: "absolute top-2 z-30", style: anchorStyle, children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1 rounded-full border border-black/[0.08] bg-white/95 py-1 pl-2 pr-1 shadow-[0_10px_28px_rgba(15,23,42,0.18)] ring-1 ring-black/[0.06] backdrop-blur-xl dark:border-white/[0.08] dark:bg-background/95 dark:ring-white/[0.08] dark:shadow-[0_10px_28px_rgba(0,0,0,0.55)]", children: draft == null ? /* @__PURE__ */ jsxs(Fragment24, { children: [
|
|
21012
21001
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 whitespace-nowrap px-1 font-mono text-[10px] tabular-nums text-muted-foreground", children: [
|
|
21013
21002
|
/* @__PURE__ */ jsxs("span", { className: "text-foreground", children: [
|
|
21014
21003
|
fmtValue(data[lo].ts, xFormatKind),
|
|
@@ -21229,7 +21218,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
21229
21218
|
}
|
|
21230
21219
|
|
|
21231
21220
|
// ../../node_modules/.pnpm/@tanstack+react-virtual@3.13.18_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@tanstack/react-virtual/dist/esm/index.js
|
|
21232
|
-
var
|
|
21221
|
+
var React40 = __toESM(require_react(), 1);
|
|
21233
21222
|
var import_react_dom4 = __toESM(require_react_dom(), 1);
|
|
21234
21223
|
|
|
21235
21224
|
// ../../node_modules/.pnpm/@tanstack+virtual-core@3.13.18/node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
@@ -22111,12 +22100,12 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
22111
22100
|
}
|
|
22112
22101
|
|
|
22113
22102
|
// ../../node_modules/.pnpm/@tanstack+react-virtual@3.13.18_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@tanstack/react-virtual/dist/esm/index.js
|
|
22114
|
-
var useIsomorphicLayoutEffect2 = typeof document !== "undefined" ?
|
|
22103
|
+
var useIsomorphicLayoutEffect2 = typeof document !== "undefined" ? React40.useLayoutEffect : React40.useEffect;
|
|
22115
22104
|
function useVirtualizerBase({
|
|
22116
22105
|
useFlushSync = true,
|
|
22117
22106
|
...options
|
|
22118
22107
|
}) {
|
|
22119
|
-
const rerender =
|
|
22108
|
+
const rerender = React40.useReducer(() => ({}), {})[1];
|
|
22120
22109
|
const resolvedOptions = {
|
|
22121
22110
|
...options,
|
|
22122
22111
|
onChange: (instance2, sync) => {
|
|
@@ -22129,7 +22118,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
22129
22118
|
(_a5 = options.onChange) == null ? void 0 : _a5.call(options, instance2, sync);
|
|
22130
22119
|
}
|
|
22131
22120
|
};
|
|
22132
|
-
const [instance] =
|
|
22121
|
+
const [instance] = React40.useState(
|
|
22133
22122
|
() => new Virtualizer(resolvedOptions)
|
|
22134
22123
|
);
|
|
22135
22124
|
instance.setOptions(resolvedOptions);
|
|
@@ -22745,7 +22734,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
22745
22734
|
ref: popoverRef,
|
|
22746
22735
|
className: cn(
|
|
22747
22736
|
"absolute top-full left-0 mt-1 z-50",
|
|
22748
|
-
"bg-
|
|
22737
|
+
"bg-white text-popover-foreground rounded-xl shadow-lg dark:bg-popover",
|
|
22749
22738
|
"ring-1 ring-black/[0.08] dark:ring-white/[0.1]",
|
|
22750
22739
|
"backdrop-blur-xl",
|
|
22751
22740
|
className
|
|
@@ -23756,7 +23745,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
23756
23745
|
"div",
|
|
23757
23746
|
{
|
|
23758
23747
|
ref: stickyChromeRef,
|
|
23759
|
-
className: "sticky z-30 w-full min-w-0 shrink-0 overflow-visible rounded-t-[calc(var(--radius)*2)] bg-white/90 dark:bg-background
|
|
23748
|
+
className: "sticky z-30 w-full min-w-0 shrink-0 overflow-visible rounded-t-[calc(var(--radius)*2)] bg-white/90 dark:bg-background backdrop-blur-xl",
|
|
23760
23749
|
style: { top: stickyTop ?? (maxHeight != null ? 0 : "var(--data-grid-sticky-top, 0px)") },
|
|
23761
23750
|
children: [
|
|
23762
23751
|
toolbar !== false && /* @__PURE__ */ jsx("div", { className: "relative bg-transparent", children: toolbar ? toolbar(toolbarCtx) : /* @__PURE__ */ jsx(
|
|
@@ -23944,7 +23933,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
23944
23933
|
)
|
|
23945
23934
|
}
|
|
23946
23935
|
),
|
|
23947
|
-
footer !== false && /* @__PURE__ */ jsxs("div", { className: "sticky bottom-0 z-30 shrink-0 overflow-hidden rounded-b-[calc(var(--radius)*2)] bg-white/90 dark:bg-background
|
|
23936
|
+
footer !== false && /* @__PURE__ */ jsxs("div", { className: "sticky bottom-0 z-30 shrink-0 overflow-hidden rounded-b-[calc(var(--radius)*2)] bg-white/90 dark:bg-background backdrop-blur-xl", children: [
|
|
23948
23937
|
footer ? footer(footerCtx) : /* @__PURE__ */ jsx(DefaultFooter, { ctx: footerCtx, pagination: paginationMode, onChange }),
|
|
23949
23938
|
footerExtra && (typeof footerExtra === "function" ? footerExtra(footerCtx) : footerExtra)
|
|
23950
23939
|
] })
|