@spark-ui/components 14.0.0-beta.1 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button-B6rA3-e5.js +2 -0
- package/dist/{Button-C3xHNaGl.js.map → Button-B6rA3-e5.js.map} +1 -1
- package/dist/{Button-D32Avk2j.mjs → Button-C3C0aixy.mjs} +4 -4
- package/dist/{Button-D32Avk2j.mjs.map → Button-C3C0aixy.mjs.map} +1 -1
- package/dist/DialogContent.styles-BSfXHt21.mjs +61 -0
- package/dist/DialogContent.styles-BSfXHt21.mjs.map +1 -0
- package/dist/DialogContent.styles-bBs6l8Cy.js +2 -0
- package/dist/DialogContent.styles-bBs6l8Cy.js.map +1 -0
- package/dist/Icon-CF0W0LKr.js +2 -0
- package/dist/{Icon-Bf0XrmiR.js.map → Icon-CF0W0LKr.js.map} +1 -1
- package/dist/{Icon-D1RueiPY.mjs → Icon-Ck-dhfLd.mjs} +6 -6
- package/dist/{Icon-D1RueiPY.mjs.map → Icon-Ck-dhfLd.mjs.map} +1 -1
- package/dist/{IconButton-BY3gYXtU.mjs → IconButton-C62-axzv.mjs} +6 -6
- package/dist/{IconButton-BY3gYXtU.mjs.map → IconButton-C62-axzv.mjs.map} +1 -1
- package/dist/IconButton-D3g86WpZ.js +2 -0
- package/dist/{IconButton-Bf-EDzpI.js.map → IconButton-D3g86WpZ.js.map} +1 -1
- package/dist/Slot-D2Bbf8Gw.mjs +14 -0
- package/dist/{Slot-C98rL4yy.mjs.map → Slot-D2Bbf8Gw.mjs.map} +1 -1
- package/dist/Slot-DQ8z2zsy.js +2 -0
- package/dist/{Slot-ghrohQLA.js.map → Slot-DQ8z2zsy.js.map} +1 -1
- package/dist/Spinner-_Kffli3B.js +2 -0
- package/dist/{Spinner-DK8VEsaR.js.map → Spinner-_Kffli3B.js.map} +1 -1
- package/dist/{Spinner-CYL5kyzM.mjs → Spinner-jF3-zoh_.mjs} +3 -3
- package/dist/{Spinner-CYL5kyzM.mjs.map → Spinner-jF3-zoh_.mjs.map} +1 -1
- package/dist/{TextLink-3MEVs3No.mjs → TextLink-BuzFRWO6.mjs} +3 -3
- package/dist/{TextLink-3MEVs3No.mjs.map → TextLink-BuzFRWO6.mjs.map} +1 -1
- package/dist/TextLink-C3xDLsbC.js +2 -0
- package/dist/{TextLink-DD0VO37q.js.map → TextLink-C3xDLsbC.js.map} +1 -1
- package/dist/{VisuallyHidden-AoRh4WRK.js → VisuallyHidden-CB6Nx76j.js} +2 -2
- package/dist/{VisuallyHidden-AoRh4WRK.js.map → VisuallyHidden-CB6Nx76j.js.map} +1 -1
- package/dist/{VisuallyHidden-ByNP7ZUI.mjs → VisuallyHidden-KH1biLx-.mjs} +2 -2
- package/dist/{VisuallyHidden-ByNP7ZUI.mjs.map → VisuallyHidden-KH1biLx-.mjs.map} +1 -1
- package/dist/accordion/index.d.mts +15 -0
- package/dist/accordion/index.js +1 -1
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +90 -608
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert-dialog/AlertDialogPortal.d.ts +1 -1
- package/dist/alert-dialog/index.d.mts +38 -0
- package/dist/alert-dialog/index.js +1 -34
- package/dist/alert-dialog/index.js.map +1 -1
- package/dist/alert-dialog/index.mjs +139 -2475
- package/dist/alert-dialog/index.mjs.map +1 -1
- package/dist/avatar/index.d.mts +15 -0
- package/dist/avatar/index.js +1 -1
- package/dist/avatar/index.js.map +1 -1
- package/dist/avatar/index.mjs +4 -4
- package/dist/badge/index.d.mts +1 -0
- package/dist/badge/index.js +1 -1
- package/dist/badge/index.js.map +1 -1
- package/dist/badge/index.mjs +6 -6
- package/dist/breadcrumb/index.d.mts +12 -0
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +21 -21
- package/dist/button/Button.d.ts +1 -1
- package/dist/button/index.d.mts +1 -0
- package/dist/button/index.js +1 -1
- package/dist/button/index.mjs +1 -1
- package/dist/button/variants/index.d.mts +5 -0
- package/dist/card/index.d.mts +8 -0
- package/dist/card/index.js +1 -1
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +2 -2
- package/dist/carousel/index.d.mts +19 -0
- package/dist/carousel/index.js +1 -1
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs +3 -3
- package/dist/checkbox/index.d.mts +2 -0
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs +128 -364
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/chip/index.d.mts +15 -0
- package/dist/chip/index.js +1 -1
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +196 -370
- package/dist/chip/index.mjs.map +1 -1
- package/dist/chip/variants/index.d.mts +3 -0
- package/dist/collapsible/index.d.mts +7 -0
- package/dist/collapsible/index.js +1 -1
- package/dist/collapsible/index.js.map +1 -1
- package/dist/collapsible/index.mjs +38 -213
- package/dist/collapsible/index.mjs.map +1 -1
- package/dist/combobox/index.d.mts +35 -0
- package/dist/combobox/index.js +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +7 -7
- package/dist/combobox/utils/index.d.mts +14 -0
- package/dist/dialog/Dialog.d.ts +13 -13
- package/dist/dialog/DialogClose.d.ts +9 -8
- package/dist/dialog/DialogContent.d.ts +4 -4
- package/dist/dialog/DialogDescription.d.ts +3 -3
- package/dist/dialog/DialogOverlay.d.ts +5 -5
- package/dist/dialog/DialogPortal.d.ts +4 -4
- package/dist/dialog/DialogTitle.d.ts +3 -3
- package/dist/dialog/DialogTrigger.d.ts +5 -9
- package/dist/dialog/index.d.mts +37 -0
- package/dist/dialog/index.js +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +149 -159
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/divider/index.d.mts +6 -0
- package/dist/divider/index.js +1 -1
- package/dist/divider/index.js.map +1 -1
- package/dist/divider/index.mjs +58 -76
- package/dist/divider/index.mjs.map +1 -1
- package/dist/drawer/Drawer.d.ts +12 -19
- package/dist/drawer/DrawerClose.d.ts +9 -5
- package/dist/drawer/DrawerContent.d.ts +5 -5
- package/dist/drawer/DrawerDescription.d.ts +4 -4
- package/dist/drawer/DrawerOverlay.d.ts +5 -5
- package/dist/drawer/DrawerPortal.d.ts +4 -4
- package/dist/drawer/DrawerTitle.d.ts +5 -5
- package/dist/drawer/DrawerTrigger.d.ts +5 -5
- package/dist/drawer/index.d.mts +37 -0
- package/dist/drawer/index.d.ts +2 -0
- package/dist/drawer/index.js +1 -1
- package/dist/drawer/index.js.map +1 -1
- package/dist/drawer/index.mjs +143 -114
- package/dist/drawer/index.mjs.map +1 -1
- package/dist/drawer/useRenderSlot.d.ts +3 -0
- package/dist/dropdown/index.d.mts +29 -0
- package/dist/dropdown/index.js +1 -1
- package/dist/dropdown/index.js.map +1 -1
- package/dist/dropdown/index.mjs +5 -5
- package/dist/file-upload/index.d.mts +22 -0
- package/dist/file-upload/index.js +1 -1
- package/dist/file-upload/index.js.map +1 -1
- package/dist/file-upload/index.mjs +6 -6
- package/dist/form-field/index.d.mts +31 -0
- package/dist/form-field/index.js +1 -1
- package/dist/form-field/index.js.map +1 -1
- package/dist/form-field/index.mjs +47 -47
- package/dist/icon/index.d.mts +1 -0
- package/dist/icon/index.js +1 -1
- package/dist/icon/index.mjs +1 -1
- package/dist/icon-button/index.d.mts +1 -0
- package/dist/icon-button/index.js +1 -1
- package/dist/icon-button/index.mjs +1 -1
- package/dist/input/index.d.mts +21 -0
- package/dist/input/index.js +1 -1
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +4 -4
- package/dist/input-otp/index.d.mts +14 -0
- package/dist/input-otp/index.js +1 -1
- package/dist/input-otp/index.js.map +1 -1
- package/dist/input-otp/index.mjs +139 -137
- package/dist/input-otp/index.mjs.map +1 -1
- package/dist/kbd/index.d.mts +1 -0
- package/dist/label/index.d.mts +7 -0
- package/dist/label/index.js +1 -1
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +37 -2
- package/dist/label/index.mjs.map +1 -1
- package/dist/link-box/index.d.mts +9 -0
- package/dist/link-box/index.js +1 -1
- package/dist/link-box/index.js.map +1 -1
- package/dist/link-box/index.mjs +7 -7
- package/dist/pagination/index.d.mts +18 -0
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/index.js.map +1 -1
- package/dist/pagination/index.mjs +126 -844
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/popover/index.d.mts +17 -0
- package/dist/popover/index.js +1 -1
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +119 -1748
- package/dist/popover/index.mjs.map +1 -1
- package/dist/portal/index.d.mts +1 -0
- package/dist/portal/index.js +1 -1
- package/dist/portal/index.js.map +1 -1
- package/dist/portal/index.mjs +3 -3
- package/dist/portal/index.mjs.map +1 -1
- package/dist/progress/index.d.mts +13 -0
- package/dist/progress/index.js +1 -6
- package/dist/progress/index.js.map +1 -1
- package/dist/progress/index.mjs +87 -162
- package/dist/progress/index.mjs.map +1 -1
- package/dist/progress-tracker/index.d.mts +10 -0
- package/dist/progress-tracker/index.js +1 -1
- package/dist/progress-tracker/index.js.map +1 -1
- package/dist/progress-tracker/index.mjs +14 -14
- package/dist/radio-group/index.d.mts +7 -0
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-group/index.js.map +1 -1
- package/dist/radio-group/index.mjs +85 -312
- package/dist/radio-group/index.mjs.map +1 -1
- package/dist/rating/index.d.mts +1 -0
- package/dist/rating/index.js +1 -1
- package/dist/rating/index.js.map +1 -1
- package/dist/rating/index.mjs +11 -11
- package/dist/scrolling-list/index.d.mts +15 -0
- package/dist/scrolling-list/index.js +1 -1
- package/dist/scrolling-list/index.js.map +1 -1
- package/dist/scrolling-list/index.mjs +168 -333
- package/dist/scrolling-list/index.mjs.map +1 -1
- package/dist/segmented-gauge/index.d.mts +13 -0
- package/dist/segmented-gauge/index.js +1 -1
- package/dist/segmented-gauge/index.js.map +1 -1
- package/dist/segmented-gauge/index.mjs +1 -1
- package/dist/select/index.d.mts +21 -0
- package/dist/select/index.js +1 -1
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +21 -21
- package/dist/skeleton/index.d.mts +8 -0
- package/dist/skeleton/index.js +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +2 -2
- package/dist/slider/Slider.d.ts +6 -1
- package/dist/slider/SliderContext.d.ts +4 -1
- package/dist/slider/index.d.mts +8 -0
- package/dist/slider/index.js +1 -1
- package/dist/slider/index.js.map +1 -1
- package/dist/slider/index.mjs +96 -496
- package/dist/slider/index.mjs.map +1 -1
- package/dist/slot/index.d.mts +1 -0
- package/dist/slot/index.js +1 -1
- package/dist/slot/index.mjs +1 -1
- package/dist/snackbar/index.d.mts +13 -0
- package/dist/snackbar/index.js +1 -1
- package/dist/snackbar/index.js.map +1 -1
- package/dist/snackbar/index.mjs +189 -1105
- package/dist/snackbar/index.mjs.map +1 -1
- package/dist/spinner/index.d.mts +1 -0
- package/dist/spinner/index.js +1 -1
- package/dist/spinner/index.mjs +1 -1
- package/dist/stepper/index.d.mts +9 -0
- package/dist/stepper/index.js +1 -7
- package/dist/stepper/index.js.map +1 -1
- package/dist/stepper/index.mjs +137 -2317
- package/dist/stepper/index.mjs.map +1 -1
- package/dist/switch/index.d.mts +1 -0
- package/dist/switch/index.js +1 -1
- package/dist/switch/index.js.map +1 -1
- package/dist/switch/index.mjs +85 -208
- package/dist/switch/index.mjs.map +1 -1
- package/dist/tabs/index.d.mts +13 -0
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +179 -329
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/tag/index.d.mts +1 -0
- package/dist/tag/index.js +1 -1
- package/dist/tag/index.js.map +1 -1
- package/dist/tag/index.mjs +2 -2
- package/dist/tag/variants/index.d.mts +3 -0
- package/dist/text-link/index.d.mts +1 -0
- package/dist/text-link/index.js +1 -1
- package/dist/text-link/index.mjs +1 -1
- package/dist/textarea/index.d.mts +14 -0
- package/dist/textarea/index.js +1 -1
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +6 -6
- package/dist/toast/index.d.mts +20 -0
- package/dist/toast/index.js +1 -1
- package/dist/toast/index.js.map +1 -1
- package/dist/toast/index.mjs +146 -1008
- package/dist/toast/index.mjs.map +1 -1
- package/dist/useRenderSlot-DATwjgpo.js +2 -0
- package/dist/useRenderSlot-DATwjgpo.js.map +1 -0
- package/dist/useRenderSlot-LwWj8QbC.mjs +10 -0
- package/dist/useRenderSlot-LwWj8QbC.mjs.map +1 -0
- package/dist/visually-hidden/index.d.mts +1 -0
- package/dist/visually-hidden/index.js +1 -1
- package/dist/visually-hidden/index.mjs +1 -1
- package/package.json +7 -6
- package/dist/Button-C3xHNaGl.js +0 -2
- package/dist/DialogContent.styles-BrhKaHc_.js +0 -2
- package/dist/DialogContent.styles-BrhKaHc_.js.map +0 -1
- package/dist/DialogContent.styles-WGWJS9dj.mjs +0 -48
- package/dist/DialogContent.styles-WGWJS9dj.mjs.map +0 -1
- package/dist/Icon-Bf0XrmiR.js +0 -2
- package/dist/IconButton-Bf-EDzpI.js +0 -2
- package/dist/Slot-C98rL4yy.mjs +0 -14
- package/dist/Slot-ghrohQLA.js +0 -2
- package/dist/Spinner-DK8VEsaR.js +0 -2
- package/dist/TextLink-DD0VO37q.js +0 -2
- package/dist/composite-Br3kM5N9.mjs +0 -40
- package/dist/composite-Br3kM5N9.mjs.map +0 -1
- package/dist/composite-fJD9R7R0.js +0 -2
- package/dist/composite-fJD9R7R0.js.map +0 -1
- package/dist/detectBrowser-Bc7rk5fI.mjs +0 -44
- package/dist/detectBrowser-Bc7rk5fI.mjs.map +0 -1
- package/dist/detectBrowser-DTbs_30X.js +0 -2
- package/dist/detectBrowser-DTbs_30X.js.map +0 -1
- package/dist/downshift.esm-Ncwetv0s.mjs +0 -3038
- package/dist/downshift.esm-Ncwetv0s.mjs.map +0 -1
- package/dist/downshift.esm-PfCOUbxq.js +0 -37
- package/dist/downshift.esm-PfCOUbxq.js.map +0 -1
- package/dist/floating-ui.utils.dom-CCN4I08l.js +0 -2
- package/dist/floating-ui.utils.dom-CCN4I08l.js.map +0 -1
- package/dist/floating-ui.utils.dom-uiDUZc_y.mjs +0 -136
- package/dist/floating-ui.utils.dom-uiDUZc_y.mjs.map +0 -1
- package/dist/index-0KYGKeVg.js +0 -2
- package/dist/index-0KYGKeVg.js.map +0 -1
- package/dist/index-1WIgmEZh.js +0 -2
- package/dist/index-1WIgmEZh.js.map +0 -1
- package/dist/index-BRi38DTc.mjs +0 -21
- package/dist/index-BRi38DTc.mjs.map +0 -1
- package/dist/index-BZAtNKwE.mjs +0 -71
- package/dist/index-BZAtNKwE.mjs.map +0 -1
- package/dist/index-BZPx6jYI.mjs +0 -9
- package/dist/index-BZPx6jYI.mjs.map +0 -1
- package/dist/index-BlkdpEIe.mjs +0 -55
- package/dist/index-BlkdpEIe.mjs.map +0 -1
- package/dist/index-BmAFn37q.mjs +0 -49
- package/dist/index-BmAFn37q.mjs.map +0 -1
- package/dist/index-C-J_tHdS.js +0 -6
- package/dist/index-C-J_tHdS.js.map +0 -1
- package/dist/index-C1qb0595.mjs +0 -28
- package/dist/index-C1qb0595.mjs.map +0 -1
- package/dist/index-C34GgsKQ.mjs +0 -54
- package/dist/index-C34GgsKQ.mjs.map +0 -1
- package/dist/index-CCKe-Mpx.mjs +0 -7
- package/dist/index-CCKe-Mpx.mjs.map +0 -1
- package/dist/index-CDBBjNXc.js +0 -2
- package/dist/index-CDBBjNXc.js.map +0 -1
- package/dist/index-CYjGhVvU.mjs +0 -243
- package/dist/index-CYjGhVvU.mjs.map +0 -1
- package/dist/index-ChLwd62c.js +0 -2
- package/dist/index-ChLwd62c.js.map +0 -1
- package/dist/index-Cjj_rUPu.js +0 -2
- package/dist/index-Cjj_rUPu.js.map +0 -1
- package/dist/index-CyMbLkj0.js +0 -2
- package/dist/index-CyMbLkj0.js.map +0 -1
- package/dist/index-DFZozV_h.mjs +0 -69
- package/dist/index-DFZozV_h.mjs.map +0 -1
- package/dist/index-DKuHkHFX.js +0 -2
- package/dist/index-DKuHkHFX.js.map +0 -1
- package/dist/index-DLHLIYPI.mjs +0 -16
- package/dist/index-DLHLIYPI.mjs.map +0 -1
- package/dist/index-DO-atGp-.js +0 -2
- package/dist/index-DO-atGp-.js.map +0 -1
- package/dist/index-DWlg8lkk.mjs +0 -179
- package/dist/index-DWlg8lkk.mjs.map +0 -1
- package/dist/index-DYxWvftI.js +0 -2
- package/dist/index-DYxWvftI.js.map +0 -1
- package/dist/index-D_lWkK39.mjs +0 -803
- package/dist/index-D_lWkK39.mjs.map +0 -1
- package/dist/index-DdkVj7D0.js +0 -18
- package/dist/index-DdkVj7D0.js.map +0 -1
- package/dist/index-De-6atSi.js +0 -2
- package/dist/index-De-6atSi.js.map +0 -1
- package/dist/index-DhGWNzsz.mjs +0 -83
- package/dist/index-DhGWNzsz.mjs.map +0 -1
- package/dist/index-Dkj4QRX8.js +0 -2
- package/dist/index-Dkj4QRX8.js.map +0 -1
- package/dist/index-DlIFg0Eu.mjs +0 -60
- package/dist/index-DlIFg0Eu.mjs.map +0 -1
- package/dist/index-DnaHaH_0.js +0 -2
- package/dist/index-DnaHaH_0.js.map +0 -1
- package/dist/index-MHF2-CYX.js +0 -2
- package/dist/index-MHF2-CYX.js.map +0 -1
- package/dist/index-MQ0c3ZX_.js +0 -2
- package/dist/index-MQ0c3ZX_.js.map +0 -1
- package/dist/index-MSR-vgWR.mjs +0 -37
- package/dist/index-MSR-vgWR.mjs.map +0 -1
- package/dist/index-VL0YEmOW.mjs +0 -125
- package/dist/index-VL0YEmOW.mjs.map +0 -1
- package/dist/index-tXqxYME3.js +0 -42
- package/dist/index-tXqxYME3.js.map +0 -1
- package/dist/inertValue-Bif5Sqs6.mjs +0 -522
- package/dist/inertValue-Bif5Sqs6.mjs.map +0 -1
- package/dist/inertValue-ShwihJSN.js +0 -5
- package/dist/inertValue-ShwihJSN.js.map +0 -1
- package/dist/useCollapsiblePanel-D1dCo0lf.js +0 -4
- package/dist/useCollapsiblePanel-D1dCo0lf.js.map +0 -1
- package/dist/useCollapsiblePanel-kbMNl4Z4.mjs +0 -287
- package/dist/useCollapsiblePanel-kbMNl4Z4.mjs.map +0 -1
- package/dist/useFocusWithin-CFNEka2I.js +0 -2
- package/dist/useFocusWithin-CFNEka2I.js.map +0 -1
- package/dist/useFocusWithin-CoL4390f.mjs +0 -796
- package/dist/useFocusWithin-CoL4390f.mjs.map +0 -1
- package/dist/useOpenChangeComplete-Dk-u_f2y.js +0 -2
- package/dist/useOpenChangeComplete-Dk-u_f2y.js.map +0 -1
- package/dist/useOpenChangeComplete-RUbg6RBw.mjs +0 -582
- package/dist/useOpenChangeComplete-RUbg6RBw.mjs.map +0 -1
- package/dist/useTransitionStatus-CktVVKxz.mjs +0 -46
- package/dist/useTransitionStatus-CktVVKxz.mjs.map +0 -1
- package/dist/useTransitionStatus-CqbEyvIj.js +0 -2
- package/dist/useTransitionStatus-CqbEyvIj.js.map +0 -1
package/dist/popover/index.mjs
CHANGED
|
@@ -1,1673 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import { c as z, g as Y, d as Pe, e as V, i as q, f as U, h as Ce, j as oe, k as fe, l as mn, m as rt, n as hn, o as Re, p as Oe, q as ge, r as je, s as it } from "../floating-ui.utils.dom-uiDUZc_y.mjs";
|
|
10
|
-
import * as gn from "react-dom";
|
|
11
|
-
import { P as ie } from "../index-MSR-vgWR.mjs";
|
|
12
|
-
import { u as Xe } from "../index-CCKe-Mpx.mjs";
|
|
13
|
-
import { u as vn } from "../index-C1qb0595.mjs";
|
|
14
|
-
import { P as xn } from "../index-DLHLIYPI.mjs";
|
|
15
|
-
import { P as st } from "../index-BZAtNKwE.mjs";
|
|
16
|
-
import { c as at, a as ct } from "../index-BmAFn37q.mjs";
|
|
17
|
-
import { Close as wn } from "@spark-ui/icons/Close";
|
|
18
|
-
import { I as yn } from "../Icon-D1RueiPY.mjs";
|
|
19
|
-
import { I as Pn } from "../IconButton-BY3gYXtU.mjs";
|
|
20
|
-
const bn = ["top", "right", "bottom", "left"], G = Math.min, I = Math.max, ue = Math.round, ce = Math.floor, B = (e) => ({
|
|
21
|
-
x: e,
|
|
22
|
-
y: e
|
|
23
|
-
}), An = {
|
|
24
|
-
left: "right",
|
|
25
|
-
right: "left",
|
|
26
|
-
bottom: "top",
|
|
27
|
-
top: "bottom"
|
|
28
|
-
}, Cn = {
|
|
29
|
-
start: "end",
|
|
30
|
-
end: "start"
|
|
31
|
-
};
|
|
32
|
-
function be(e, t, n) {
|
|
33
|
-
return I(e, G(t, n));
|
|
34
|
-
}
|
|
35
|
-
function j(e, t) {
|
|
36
|
-
return typeof e == "function" ? e(t) : e;
|
|
37
|
-
}
|
|
38
|
-
function X(e) {
|
|
39
|
-
return e.split("-")[0];
|
|
40
|
-
}
|
|
41
|
-
function ee(e) {
|
|
42
|
-
return e.split("-")[1];
|
|
43
|
-
}
|
|
44
|
-
function Se(e) {
|
|
45
|
-
return e === "x" ? "y" : "x";
|
|
46
|
-
}
|
|
47
|
-
function Ee(e) {
|
|
48
|
-
return e === "y" ? "height" : "width";
|
|
49
|
-
}
|
|
50
|
-
const Rn = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
51
|
-
function W(e) {
|
|
52
|
-
return Rn.has(X(e)) ? "y" : "x";
|
|
53
|
-
}
|
|
54
|
-
function Ne(e) {
|
|
55
|
-
return Se(W(e));
|
|
56
|
-
}
|
|
57
|
-
function On(e, t, n) {
|
|
58
|
-
n === void 0 && (n = !1);
|
|
59
|
-
const o = ee(e), r = Ne(e), i = Ee(r);
|
|
60
|
-
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
61
|
-
return t.reference[i] > t.floating[i] && (s = de(s)), [s, de(s)];
|
|
62
|
-
}
|
|
63
|
-
function Sn(e) {
|
|
64
|
-
const t = de(e);
|
|
65
|
-
return [Ae(e), t, Ae(t)];
|
|
66
|
-
}
|
|
67
|
-
function Ae(e) {
|
|
68
|
-
return e.replace(/start|end/g, (t) => Cn[t]);
|
|
69
|
-
}
|
|
70
|
-
const Ye = ["left", "right"], qe = ["right", "left"], En = ["top", "bottom"], Nn = ["bottom", "top"];
|
|
71
|
-
function Mn(e, t, n) {
|
|
72
|
-
switch (e) {
|
|
73
|
-
case "top":
|
|
74
|
-
case "bottom":
|
|
75
|
-
return n ? t ? qe : Ye : t ? Ye : qe;
|
|
76
|
-
case "left":
|
|
77
|
-
case "right":
|
|
78
|
-
return t ? En : Nn;
|
|
79
|
-
default:
|
|
80
|
-
return [];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function Dn(e, t, n, o) {
|
|
84
|
-
const r = ee(e);
|
|
85
|
-
let i = Mn(X(e), n === "start", o);
|
|
86
|
-
return r && (i = i.map((s) => s + "-" + r), t && (i = i.concat(i.map(Ae)))), i;
|
|
87
|
-
}
|
|
88
|
-
function de(e) {
|
|
89
|
-
return e.replace(/left|right|bottom|top/g, (t) => An[t]);
|
|
90
|
-
}
|
|
91
|
-
function Tn(e) {
|
|
92
|
-
return {
|
|
93
|
-
top: 0,
|
|
94
|
-
right: 0,
|
|
95
|
-
bottom: 0,
|
|
96
|
-
left: 0,
|
|
97
|
-
...e
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function lt(e) {
|
|
101
|
-
return typeof e != "number" ? Tn(e) : {
|
|
102
|
-
top: e,
|
|
103
|
-
right: e,
|
|
104
|
-
bottom: e,
|
|
105
|
-
left: e
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function pe(e) {
|
|
109
|
-
const {
|
|
110
|
-
x: t,
|
|
111
|
-
y: n,
|
|
112
|
-
width: o,
|
|
113
|
-
height: r
|
|
114
|
-
} = e;
|
|
115
|
-
return {
|
|
116
|
-
width: o,
|
|
117
|
-
height: r,
|
|
118
|
-
top: n,
|
|
119
|
-
left: t,
|
|
120
|
-
right: t + o,
|
|
121
|
-
bottom: n + r,
|
|
122
|
-
x: t,
|
|
123
|
-
y: n
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function Ge(e, t, n) {
|
|
127
|
-
let {
|
|
128
|
-
reference: o,
|
|
129
|
-
floating: r
|
|
130
|
-
} = e;
|
|
131
|
-
const i = W(t), s = Ne(t), a = Ee(s), c = X(t), l = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, p = o[a] / 2 - r[a] / 2;
|
|
132
|
-
let d;
|
|
133
|
-
switch (c) {
|
|
134
|
-
case "top":
|
|
135
|
-
d = {
|
|
136
|
-
x: f,
|
|
137
|
-
y: o.y - r.height
|
|
138
|
-
};
|
|
139
|
-
break;
|
|
140
|
-
case "bottom":
|
|
141
|
-
d = {
|
|
142
|
-
x: f,
|
|
143
|
-
y: o.y + o.height
|
|
144
|
-
};
|
|
145
|
-
break;
|
|
146
|
-
case "right":
|
|
147
|
-
d = {
|
|
148
|
-
x: o.x + o.width,
|
|
149
|
-
y: u
|
|
150
|
-
};
|
|
151
|
-
break;
|
|
152
|
-
case "left":
|
|
153
|
-
d = {
|
|
154
|
-
x: o.x - r.width,
|
|
155
|
-
y: u
|
|
156
|
-
};
|
|
157
|
-
break;
|
|
158
|
-
default:
|
|
159
|
-
d = {
|
|
160
|
-
x: o.x,
|
|
161
|
-
y: o.y
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
switch (ee(t)) {
|
|
165
|
-
case "start":
|
|
166
|
-
d[s] -= p * (n && l ? -1 : 1);
|
|
167
|
-
break;
|
|
168
|
-
case "end":
|
|
169
|
-
d[s] += p * (n && l ? -1 : 1);
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
return d;
|
|
173
|
-
}
|
|
174
|
-
const _n = async (e, t, n) => {
|
|
175
|
-
const {
|
|
176
|
-
placement: o = "bottom",
|
|
177
|
-
strategy: r = "absolute",
|
|
178
|
-
middleware: i = [],
|
|
179
|
-
platform: s
|
|
180
|
-
} = n, a = i.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
181
|
-
let l = await s.getElementRects({
|
|
182
|
-
reference: e,
|
|
183
|
-
floating: t,
|
|
184
|
-
strategy: r
|
|
185
|
-
}), {
|
|
186
|
-
x: f,
|
|
187
|
-
y: u
|
|
188
|
-
} = Ge(l, o, c), p = o, d = {}, m = 0;
|
|
189
|
-
for (let h = 0; h < a.length; h++) {
|
|
190
|
-
const {
|
|
191
|
-
name: x,
|
|
192
|
-
fn: g
|
|
193
|
-
} = a[h], {
|
|
194
|
-
x: y,
|
|
195
|
-
y: P,
|
|
196
|
-
data: b,
|
|
197
|
-
reset: A
|
|
198
|
-
} = await g({
|
|
199
|
-
x: f,
|
|
200
|
-
y: u,
|
|
201
|
-
initialPlacement: o,
|
|
202
|
-
placement: p,
|
|
203
|
-
strategy: r,
|
|
204
|
-
middlewareData: d,
|
|
205
|
-
rects: l,
|
|
206
|
-
platform: s,
|
|
207
|
-
elements: {
|
|
208
|
-
reference: e,
|
|
209
|
-
floating: t
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
f = y ?? f, u = P ?? u, d = {
|
|
213
|
-
...d,
|
|
214
|
-
[x]: {
|
|
215
|
-
...d[x],
|
|
216
|
-
...b
|
|
217
|
-
}
|
|
218
|
-
}, A && m <= 50 && (m++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (l = A.rects === !0 ? await s.getElementRects({
|
|
219
|
-
reference: e,
|
|
220
|
-
floating: t,
|
|
221
|
-
strategy: r
|
|
222
|
-
}) : A.rects), {
|
|
223
|
-
x: f,
|
|
224
|
-
y: u
|
|
225
|
-
} = Ge(l, p, c)), h = -1);
|
|
226
|
-
}
|
|
227
|
-
return {
|
|
228
|
-
x: f,
|
|
229
|
-
y: u,
|
|
230
|
-
placement: p,
|
|
231
|
-
strategy: r,
|
|
232
|
-
middlewareData: d
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
async function re(e, t) {
|
|
236
|
-
var n;
|
|
237
|
-
t === void 0 && (t = {});
|
|
238
|
-
const {
|
|
239
|
-
x: o,
|
|
240
|
-
y: r,
|
|
241
|
-
platform: i,
|
|
242
|
-
rects: s,
|
|
243
|
-
elements: a,
|
|
244
|
-
strategy: c
|
|
245
|
-
} = e, {
|
|
246
|
-
boundary: l = "clippingAncestors",
|
|
247
|
-
rootBoundary: f = "viewport",
|
|
248
|
-
elementContext: u = "floating",
|
|
249
|
-
altBoundary: p = !1,
|
|
250
|
-
padding: d = 0
|
|
251
|
-
} = j(t, e), m = lt(d), x = a[p ? u === "floating" ? "reference" : "floating" : u], g = pe(await i.getClippingRect({
|
|
252
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(x))) == null || n ? x : x.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
253
|
-
boundary: l,
|
|
254
|
-
rootBoundary: f,
|
|
255
|
-
strategy: c
|
|
256
|
-
})), y = u === "floating" ? {
|
|
257
|
-
x: o,
|
|
258
|
-
y: r,
|
|
259
|
-
width: s.floating.width,
|
|
260
|
-
height: s.floating.height
|
|
261
|
-
} : s.reference, P = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), b = await (i.isElement == null ? void 0 : i.isElement(P)) ? await (i.getScale == null ? void 0 : i.getScale(P)) || {
|
|
262
|
-
x: 1,
|
|
263
|
-
y: 1
|
|
264
|
-
} : {
|
|
265
|
-
x: 1,
|
|
266
|
-
y: 1
|
|
267
|
-
}, A = pe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
268
|
-
elements: a,
|
|
269
|
-
rect: y,
|
|
270
|
-
offsetParent: P,
|
|
271
|
-
strategy: c
|
|
272
|
-
}) : y);
|
|
273
|
-
return {
|
|
274
|
-
top: (g.top - A.top + m.top) / b.y,
|
|
275
|
-
bottom: (A.bottom - g.bottom + m.bottom) / b.y,
|
|
276
|
-
left: (g.left - A.left + m.left) / b.x,
|
|
277
|
-
right: (A.right - g.right + m.right) / b.x
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
const $n = (e) => ({
|
|
281
|
-
name: "arrow",
|
|
282
|
-
options: e,
|
|
283
|
-
async fn(t) {
|
|
284
|
-
const {
|
|
285
|
-
x: n,
|
|
286
|
-
y: o,
|
|
287
|
-
placement: r,
|
|
288
|
-
rects: i,
|
|
289
|
-
platform: s,
|
|
290
|
-
elements: a,
|
|
291
|
-
middlewareData: c
|
|
292
|
-
} = t, {
|
|
293
|
-
element: l,
|
|
294
|
-
padding: f = 0
|
|
295
|
-
} = j(e, t) || {};
|
|
296
|
-
if (l == null)
|
|
297
|
-
return {};
|
|
298
|
-
const u = lt(f), p = {
|
|
299
|
-
x: n,
|
|
300
|
-
y: o
|
|
301
|
-
}, d = Ne(r), m = Ee(d), h = await s.getDimensions(l), x = d === "y", g = x ? "top" : "left", y = x ? "bottom" : "right", P = x ? "clientHeight" : "clientWidth", b = i.reference[m] + i.reference[d] - p[d] - i.floating[m], A = p[d] - i.reference[d], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
302
|
-
let R = O ? O[P] : 0;
|
|
303
|
-
(!R || !await (s.isElement == null ? void 0 : s.isElement(O))) && (R = a.floating[P] || i.floating[m]);
|
|
304
|
-
const T = b / 2 - A / 2, k = R / 2 - h[m] / 2 - 1, D = G(u[g], k), $ = G(u[y], k), F = D, E = R - h[m] - $, S = R / 2 - h[m] / 2 + T, L = be(F, S, E), N = !c.arrow && ee(r) != null && S !== L && i.reference[m] / 2 - (S < F ? D : $) - h[m] / 2 < 0, M = N ? S < F ? S - F : S - E : 0;
|
|
305
|
-
return {
|
|
306
|
-
[d]: p[d] + M,
|
|
307
|
-
data: {
|
|
308
|
-
[d]: L,
|
|
309
|
-
centerOffset: S - L - M,
|
|
310
|
-
...N && {
|
|
311
|
-
alignmentOffset: M
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
reset: N
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
}), Fn = function(e) {
|
|
318
|
-
return e === void 0 && (e = {}), {
|
|
319
|
-
name: "flip",
|
|
320
|
-
options: e,
|
|
321
|
-
async fn(t) {
|
|
322
|
-
var n, o;
|
|
323
|
-
const {
|
|
324
|
-
placement: r,
|
|
325
|
-
middlewareData: i,
|
|
326
|
-
rects: s,
|
|
327
|
-
initialPlacement: a,
|
|
328
|
-
platform: c,
|
|
329
|
-
elements: l
|
|
330
|
-
} = t, {
|
|
331
|
-
mainAxis: f = !0,
|
|
332
|
-
crossAxis: u = !0,
|
|
333
|
-
fallbackPlacements: p,
|
|
334
|
-
fallbackStrategy: d = "bestFit",
|
|
335
|
-
fallbackAxisSideDirection: m = "none",
|
|
336
|
-
flipAlignment: h = !0,
|
|
337
|
-
...x
|
|
338
|
-
} = j(e, t);
|
|
339
|
-
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
340
|
-
return {};
|
|
341
|
-
const g = X(r), y = W(a), P = X(a) === a, b = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), A = p || (P || !h ? [de(a)] : Sn(a)), O = m !== "none";
|
|
342
|
-
!p && O && A.push(...Dn(a, h, m, b));
|
|
343
|
-
const R = [a, ...A], T = await re(t, x), k = [];
|
|
344
|
-
let D = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
345
|
-
if (f && k.push(T[g]), u) {
|
|
346
|
-
const S = On(r, s, b);
|
|
347
|
-
k.push(T[S[0]], T[S[1]]);
|
|
348
|
-
}
|
|
349
|
-
if (D = [...D, {
|
|
350
|
-
placement: r,
|
|
351
|
-
overflows: k
|
|
352
|
-
}], !k.every((S) => S <= 0)) {
|
|
353
|
-
var $, F;
|
|
354
|
-
const S = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, L = R[S];
|
|
355
|
-
if (L && (!(u === "alignment" ? y !== W(L) : !1) || // We leave the current main axis only if every placement on that axis
|
|
356
|
-
// overflows the main axis.
|
|
357
|
-
D.every((C) => W(C.placement) === y ? C.overflows[0] > 0 : !0)))
|
|
358
|
-
return {
|
|
359
|
-
data: {
|
|
360
|
-
index: S,
|
|
361
|
-
overflows: D
|
|
362
|
-
},
|
|
363
|
-
reset: {
|
|
364
|
-
placement: L
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
let N = (F = D.filter((M) => M.overflows[0] <= 0).sort((M, C) => M.overflows[1] - C.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
368
|
-
if (!N)
|
|
369
|
-
switch (d) {
|
|
370
|
-
case "bestFit": {
|
|
371
|
-
var E;
|
|
372
|
-
const M = (E = D.filter((C) => {
|
|
373
|
-
if (O) {
|
|
374
|
-
const _ = W(C.placement);
|
|
375
|
-
return _ === y || // Create a bias to the `y` side axis due to horizontal
|
|
376
|
-
// reading directions favoring greater width.
|
|
377
|
-
_ === "y";
|
|
378
|
-
}
|
|
379
|
-
return !0;
|
|
380
|
-
}).map((C) => [C.placement, C.overflows.filter((_) => _ > 0).reduce((_, H) => _ + H, 0)]).sort((C, _) => C[1] - _[1])[0]) == null ? void 0 : E[0];
|
|
381
|
-
M && (N = M);
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
case "initialPlacement":
|
|
385
|
-
N = a;
|
|
386
|
-
break;
|
|
387
|
-
}
|
|
388
|
-
if (r !== N)
|
|
389
|
-
return {
|
|
390
|
-
reset: {
|
|
391
|
-
placement: N
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
return {};
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
function Ke(e, t) {
|
|
400
|
-
return {
|
|
401
|
-
top: e.top - t.height,
|
|
402
|
-
right: e.right - t.width,
|
|
403
|
-
bottom: e.bottom - t.height,
|
|
404
|
-
left: e.left - t.width
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
function Ue(e) {
|
|
408
|
-
return bn.some((t) => e[t] >= 0);
|
|
409
|
-
}
|
|
410
|
-
const kn = function(e) {
|
|
411
|
-
return e === void 0 && (e = {}), {
|
|
412
|
-
name: "hide",
|
|
413
|
-
options: e,
|
|
414
|
-
async fn(t) {
|
|
415
|
-
const {
|
|
416
|
-
rects: n
|
|
417
|
-
} = t, {
|
|
418
|
-
strategy: o = "referenceHidden",
|
|
419
|
-
...r
|
|
420
|
-
} = j(e, t);
|
|
421
|
-
switch (o) {
|
|
422
|
-
case "referenceHidden": {
|
|
423
|
-
const i = await re(t, {
|
|
424
|
-
...r,
|
|
425
|
-
elementContext: "reference"
|
|
426
|
-
}), s = Ke(i, n.reference);
|
|
427
|
-
return {
|
|
428
|
-
data: {
|
|
429
|
-
referenceHiddenOffsets: s,
|
|
430
|
-
referenceHidden: Ue(s)
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
case "escaped": {
|
|
435
|
-
const i = await re(t, {
|
|
436
|
-
...r,
|
|
437
|
-
altBoundary: !0
|
|
438
|
-
}), s = Ke(i, n.floating);
|
|
439
|
-
return {
|
|
440
|
-
data: {
|
|
441
|
-
escapedOffsets: s,
|
|
442
|
-
escaped: Ue(s)
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
default:
|
|
447
|
-
return {};
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
}, ft = /* @__PURE__ */ new Set(["left", "top"]);
|
|
452
|
-
async function Ln(e, t) {
|
|
453
|
-
const {
|
|
454
|
-
placement: n,
|
|
455
|
-
platform: o,
|
|
456
|
-
elements: r
|
|
457
|
-
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = X(n), a = ee(n), c = W(n) === "y", l = ft.has(s) ? -1 : 1, f = i && c ? -1 : 1, u = j(t, e);
|
|
458
|
-
let {
|
|
459
|
-
mainAxis: p,
|
|
460
|
-
crossAxis: d,
|
|
461
|
-
alignmentAxis: m
|
|
462
|
-
} = typeof u == "number" ? {
|
|
463
|
-
mainAxis: u,
|
|
464
|
-
crossAxis: 0,
|
|
465
|
-
alignmentAxis: null
|
|
466
|
-
} : {
|
|
467
|
-
mainAxis: u.mainAxis || 0,
|
|
468
|
-
crossAxis: u.crossAxis || 0,
|
|
469
|
-
alignmentAxis: u.alignmentAxis
|
|
470
|
-
};
|
|
471
|
-
return a && typeof m == "number" && (d = a === "end" ? m * -1 : m), c ? {
|
|
472
|
-
x: d * f,
|
|
473
|
-
y: p * l
|
|
474
|
-
} : {
|
|
475
|
-
x: p * l,
|
|
476
|
-
y: d * f
|
|
477
|
-
};
|
|
478
|
-
}
|
|
479
|
-
const In = function(e) {
|
|
480
|
-
return e === void 0 && (e = 0), {
|
|
481
|
-
name: "offset",
|
|
482
|
-
options: e,
|
|
483
|
-
async fn(t) {
|
|
484
|
-
var n, o;
|
|
485
|
-
const {
|
|
486
|
-
x: r,
|
|
487
|
-
y: i,
|
|
488
|
-
placement: s,
|
|
489
|
-
middlewareData: a
|
|
490
|
-
} = t, c = await Ln(t, e);
|
|
491
|
-
return s === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
|
|
492
|
-
x: r + c.x,
|
|
493
|
-
y: i + c.y,
|
|
494
|
-
data: {
|
|
495
|
-
...c,
|
|
496
|
-
placement: s
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
};
|
|
501
|
-
}, Hn = function(e) {
|
|
502
|
-
return e === void 0 && (e = {}), {
|
|
503
|
-
name: "shift",
|
|
504
|
-
options: e,
|
|
505
|
-
async fn(t) {
|
|
506
|
-
const {
|
|
507
|
-
x: n,
|
|
508
|
-
y: o,
|
|
509
|
-
placement: r
|
|
510
|
-
} = t, {
|
|
511
|
-
mainAxis: i = !0,
|
|
512
|
-
crossAxis: s = !1,
|
|
513
|
-
limiter: a = {
|
|
514
|
-
fn: (x) => {
|
|
515
|
-
let {
|
|
516
|
-
x: g,
|
|
517
|
-
y
|
|
518
|
-
} = x;
|
|
519
|
-
return {
|
|
520
|
-
x: g,
|
|
521
|
-
y
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
...c
|
|
526
|
-
} = j(e, t), l = {
|
|
527
|
-
x: n,
|
|
528
|
-
y: o
|
|
529
|
-
}, f = await re(t, c), u = W(X(r)), p = Se(u);
|
|
530
|
-
let d = l[p], m = l[u];
|
|
531
|
-
if (i) {
|
|
532
|
-
const x = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", y = d + f[x], P = d - f[g];
|
|
533
|
-
d = be(y, d, P);
|
|
534
|
-
}
|
|
535
|
-
if (s) {
|
|
536
|
-
const x = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", y = m + f[x], P = m - f[g];
|
|
537
|
-
m = be(y, m, P);
|
|
538
|
-
}
|
|
539
|
-
const h = a.fn({
|
|
540
|
-
...t,
|
|
541
|
-
[p]: d,
|
|
542
|
-
[u]: m
|
|
543
|
-
});
|
|
544
|
-
return {
|
|
545
|
-
...h,
|
|
546
|
-
data: {
|
|
547
|
-
x: h.x - n,
|
|
548
|
-
y: h.y - o,
|
|
549
|
-
enabled: {
|
|
550
|
-
[p]: i,
|
|
551
|
-
[u]: s
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
|
-
}, Wn = function(e) {
|
|
558
|
-
return e === void 0 && (e = {}), {
|
|
559
|
-
options: e,
|
|
560
|
-
fn(t) {
|
|
561
|
-
const {
|
|
562
|
-
x: n,
|
|
563
|
-
y: o,
|
|
564
|
-
placement: r,
|
|
565
|
-
rects: i,
|
|
566
|
-
middlewareData: s
|
|
567
|
-
} = t, {
|
|
568
|
-
offset: a = 0,
|
|
569
|
-
mainAxis: c = !0,
|
|
570
|
-
crossAxis: l = !0
|
|
571
|
-
} = j(e, t), f = {
|
|
572
|
-
x: n,
|
|
573
|
-
y: o
|
|
574
|
-
}, u = W(r), p = Se(u);
|
|
575
|
-
let d = f[p], m = f[u];
|
|
576
|
-
const h = j(a, t), x = typeof h == "number" ? {
|
|
577
|
-
mainAxis: h,
|
|
578
|
-
crossAxis: 0
|
|
579
|
-
} : {
|
|
580
|
-
mainAxis: 0,
|
|
581
|
-
crossAxis: 0,
|
|
582
|
-
...h
|
|
583
|
-
};
|
|
584
|
-
if (c) {
|
|
585
|
-
const P = p === "y" ? "height" : "width", b = i.reference[p] - i.floating[P] + x.mainAxis, A = i.reference[p] + i.reference[P] - x.mainAxis;
|
|
586
|
-
d < b ? d = b : d > A && (d = A);
|
|
587
|
-
}
|
|
588
|
-
if (l) {
|
|
589
|
-
var g, y;
|
|
590
|
-
const P = p === "y" ? "width" : "height", b = ft.has(X(r)), A = i.reference[u] - i.floating[P] + (b && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (b ? 0 : x.crossAxis), O = i.reference[u] + i.reference[P] + (b ? 0 : ((y = s.offset) == null ? void 0 : y[u]) || 0) - (b ? x.crossAxis : 0);
|
|
591
|
-
m < A ? m = A : m > O && (m = O);
|
|
592
|
-
}
|
|
593
|
-
return {
|
|
594
|
-
[p]: d,
|
|
595
|
-
[u]: m
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
}, Bn = function(e) {
|
|
600
|
-
return e === void 0 && (e = {}), {
|
|
601
|
-
name: "size",
|
|
602
|
-
options: e,
|
|
603
|
-
async fn(t) {
|
|
604
|
-
var n, o;
|
|
605
|
-
const {
|
|
606
|
-
placement: r,
|
|
607
|
-
rects: i,
|
|
608
|
-
platform: s,
|
|
609
|
-
elements: a
|
|
610
|
-
} = t, {
|
|
611
|
-
apply: c = () => {
|
|
612
|
-
},
|
|
613
|
-
...l
|
|
614
|
-
} = j(e, t), f = await re(t, l), u = X(r), p = ee(r), d = W(r) === "y", {
|
|
615
|
-
width: m,
|
|
616
|
-
height: h
|
|
617
|
-
} = i.floating;
|
|
618
|
-
let x, g;
|
|
619
|
-
u === "top" || u === "bottom" ? (x = u, g = p === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (g = u, x = p === "end" ? "top" : "bottom");
|
|
620
|
-
const y = h - f.top - f.bottom, P = m - f.left - f.right, b = G(h - f[x], y), A = G(m - f[g], P), O = !t.middlewareData.shift;
|
|
621
|
-
let R = b, T = A;
|
|
622
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = P), (o = t.middlewareData.shift) != null && o.enabled.y && (R = y), O && !p) {
|
|
623
|
-
const D = I(f.left, 0), $ = I(f.right, 0), F = I(f.top, 0), E = I(f.bottom, 0);
|
|
624
|
-
d ? T = m - 2 * (D !== 0 || $ !== 0 ? D + $ : I(f.left, f.right)) : R = h - 2 * (F !== 0 || E !== 0 ? F + E : I(f.top, f.bottom));
|
|
625
|
-
}
|
|
626
|
-
await c({
|
|
627
|
-
...t,
|
|
628
|
-
availableWidth: T,
|
|
629
|
-
availableHeight: R
|
|
630
|
-
});
|
|
631
|
-
const k = await s.getDimensions(a.floating);
|
|
632
|
-
return m !== k.width || h !== k.height ? {
|
|
633
|
-
reset: {
|
|
634
|
-
rects: !0
|
|
635
|
-
}
|
|
636
|
-
} : {};
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
};
|
|
640
|
-
function ut(e) {
|
|
641
|
-
const t = V(e);
|
|
642
|
-
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
643
|
-
const r = q(e), i = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, a = ue(n) !== i || ue(o) !== s;
|
|
644
|
-
return a && (n = i, o = s), {
|
|
645
|
-
width: n,
|
|
646
|
-
height: o,
|
|
647
|
-
$: a
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
function Me(e) {
|
|
651
|
-
return z(e) ? e : e.contextElement;
|
|
652
|
-
}
|
|
653
|
-
function J(e) {
|
|
654
|
-
const t = Me(e);
|
|
655
|
-
if (!q(t))
|
|
656
|
-
return B(1);
|
|
657
|
-
const n = t.getBoundingClientRect(), {
|
|
658
|
-
width: o,
|
|
659
|
-
height: r,
|
|
660
|
-
$: i
|
|
661
|
-
} = ut(t);
|
|
662
|
-
let s = (i ? ue(n.width) : n.width) / o, a = (i ? ue(n.height) : n.height) / r;
|
|
663
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
664
|
-
x: s,
|
|
665
|
-
y: a
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
const zn = /* @__PURE__ */ B(0);
|
|
669
|
-
function dt(e) {
|
|
670
|
-
const t = U(e);
|
|
671
|
-
return !it() || !t.visualViewport ? zn : {
|
|
672
|
-
x: t.visualViewport.offsetLeft,
|
|
673
|
-
y: t.visualViewport.offsetTop
|
|
674
|
-
};
|
|
675
|
-
}
|
|
676
|
-
function Vn(e, t, n) {
|
|
677
|
-
return t === void 0 && (t = !1), !n || t && n !== U(e) ? !1 : t;
|
|
678
|
-
}
|
|
679
|
-
function Z(e, t, n, o) {
|
|
680
|
-
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
681
|
-
const r = e.getBoundingClientRect(), i = Me(e);
|
|
682
|
-
let s = B(1);
|
|
683
|
-
t && (o ? z(o) && (s = J(o)) : s = J(e));
|
|
684
|
-
const a = Vn(i, n, o) ? dt(i) : B(0);
|
|
685
|
-
let c = (r.left + a.x) / s.x, l = (r.top + a.y) / s.y, f = r.width / s.x, u = r.height / s.y;
|
|
686
|
-
if (i) {
|
|
687
|
-
const p = U(i), d = o && z(o) ? U(o) : o;
|
|
688
|
-
let m = p, h = je(m);
|
|
689
|
-
for (; h && o && d !== m; ) {
|
|
690
|
-
const x = J(h), g = h.getBoundingClientRect(), y = V(h), P = g.left + (h.clientLeft + parseFloat(y.paddingLeft)) * x.x, b = g.top + (h.clientTop + parseFloat(y.paddingTop)) * x.y;
|
|
691
|
-
c *= x.x, l *= x.y, f *= x.x, u *= x.y, c += P, l += b, m = U(h), h = je(m);
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
return pe({
|
|
695
|
-
width: f,
|
|
696
|
-
height: u,
|
|
697
|
-
x: c,
|
|
698
|
-
y: l
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
function ve(e, t) {
|
|
702
|
-
const n = ge(e).scrollLeft;
|
|
703
|
-
return t ? t.left + n : Z(Y(e)).left + n;
|
|
704
|
-
}
|
|
705
|
-
function pt(e, t) {
|
|
706
|
-
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - ve(e, n), r = n.top + t.scrollTop;
|
|
707
|
-
return {
|
|
708
|
-
x: o,
|
|
709
|
-
y: r
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
function jn(e) {
|
|
713
|
-
let {
|
|
714
|
-
elements: t,
|
|
715
|
-
rect: n,
|
|
716
|
-
offsetParent: o,
|
|
717
|
-
strategy: r
|
|
718
|
-
} = e;
|
|
719
|
-
const i = r === "fixed", s = Y(o), a = t ? Ce(t.floating) : !1;
|
|
720
|
-
if (o === s || a && i)
|
|
721
|
-
return n;
|
|
722
|
-
let c = {
|
|
723
|
-
scrollLeft: 0,
|
|
724
|
-
scrollTop: 0
|
|
725
|
-
}, l = B(1);
|
|
726
|
-
const f = B(0), u = q(o);
|
|
727
|
-
if ((u || !u && !i) && ((Re(o) !== "body" || Oe(s)) && (c = ge(o)), q(o))) {
|
|
728
|
-
const d = Z(o);
|
|
729
|
-
l = J(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
|
|
730
|
-
}
|
|
731
|
-
const p = s && !u && !i ? pt(s, c) : B(0);
|
|
732
|
-
return {
|
|
733
|
-
width: n.width * l.x,
|
|
734
|
-
height: n.height * l.y,
|
|
735
|
-
x: n.x * l.x - c.scrollLeft * l.x + f.x + p.x,
|
|
736
|
-
y: n.y * l.y - c.scrollTop * l.y + f.y + p.y
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
function Xn(e) {
|
|
740
|
-
return Array.from(e.getClientRects());
|
|
741
|
-
}
|
|
742
|
-
function Yn(e) {
|
|
743
|
-
const t = Y(e), n = ge(e), o = e.ownerDocument.body, r = I(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = I(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
744
|
-
let s = -n.scrollLeft + ve(e);
|
|
745
|
-
const a = -n.scrollTop;
|
|
746
|
-
return V(o).direction === "rtl" && (s += I(t.clientWidth, o.clientWidth) - r), {
|
|
747
|
-
width: r,
|
|
748
|
-
height: i,
|
|
749
|
-
x: s,
|
|
750
|
-
y: a
|
|
751
|
-
};
|
|
752
|
-
}
|
|
753
|
-
const Ze = 25;
|
|
754
|
-
function qn(e, t) {
|
|
755
|
-
const n = U(e), o = Y(e), r = n.visualViewport;
|
|
756
|
-
let i = o.clientWidth, s = o.clientHeight, a = 0, c = 0;
|
|
757
|
-
if (r) {
|
|
758
|
-
i = r.width, s = r.height;
|
|
759
|
-
const f = it();
|
|
760
|
-
(!f || f && t === "fixed") && (a = r.offsetLeft, c = r.offsetTop);
|
|
761
|
-
}
|
|
762
|
-
const l = ve(o);
|
|
763
|
-
if (l <= 0) {
|
|
764
|
-
const f = o.ownerDocument, u = f.body, p = getComputedStyle(u), d = f.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, m = Math.abs(o.clientWidth - u.clientWidth - d);
|
|
765
|
-
m <= Ze && (i -= m);
|
|
766
|
-
} else l <= Ze && (i += l);
|
|
767
|
-
return {
|
|
768
|
-
width: i,
|
|
769
|
-
height: s,
|
|
770
|
-
x: a,
|
|
771
|
-
y: c
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
const Gn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
775
|
-
function Kn(e, t) {
|
|
776
|
-
const n = Z(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = q(e) ? J(e) : B(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, c = r * i.x, l = o * i.y;
|
|
777
|
-
return {
|
|
778
|
-
width: s,
|
|
779
|
-
height: a,
|
|
780
|
-
x: c,
|
|
781
|
-
y: l
|
|
782
|
-
};
|
|
783
|
-
}
|
|
784
|
-
function Je(e, t, n) {
|
|
785
|
-
let o;
|
|
786
|
-
if (t === "viewport")
|
|
787
|
-
o = qn(e, n);
|
|
788
|
-
else if (t === "document")
|
|
789
|
-
o = Yn(Y(e));
|
|
790
|
-
else if (z(t))
|
|
791
|
-
o = Kn(t, n);
|
|
792
|
-
else {
|
|
793
|
-
const r = dt(e);
|
|
794
|
-
o = {
|
|
795
|
-
x: t.x - r.x,
|
|
796
|
-
y: t.y - r.y,
|
|
797
|
-
width: t.width,
|
|
798
|
-
height: t.height
|
|
799
|
-
};
|
|
800
|
-
}
|
|
801
|
-
return pe(o);
|
|
802
|
-
}
|
|
803
|
-
function mt(e, t) {
|
|
804
|
-
const n = oe(e);
|
|
805
|
-
return n === t || !z(n) || fe(n) ? !1 : V(n).position === "fixed" || mt(n, t);
|
|
806
|
-
}
|
|
807
|
-
function Un(e, t) {
|
|
808
|
-
const n = t.get(e);
|
|
809
|
-
if (n)
|
|
810
|
-
return n;
|
|
811
|
-
let o = Pe(e, [], !1).filter((a) => z(a) && Re(a) !== "body"), r = null;
|
|
812
|
-
const i = V(e).position === "fixed";
|
|
813
|
-
let s = i ? oe(e) : e;
|
|
814
|
-
for (; z(s) && !fe(s); ) {
|
|
815
|
-
const a = V(s), c = rt(s);
|
|
816
|
-
!c && a.position === "fixed" && (r = null), (i ? !c && !r : !c && a.position === "static" && !!r && Gn.has(r.position) || Oe(s) && !c && mt(e, s)) ? o = o.filter((f) => f !== s) : r = a, s = oe(s);
|
|
817
|
-
}
|
|
818
|
-
return t.set(e, o), o;
|
|
819
|
-
}
|
|
820
|
-
function Zn(e) {
|
|
821
|
-
let {
|
|
822
|
-
element: t,
|
|
823
|
-
boundary: n,
|
|
824
|
-
rootBoundary: o,
|
|
825
|
-
strategy: r
|
|
826
|
-
} = e;
|
|
827
|
-
const s = [...n === "clippingAncestors" ? Ce(t) ? [] : Un(t, this._c) : [].concat(n), o], a = s[0], c = s.reduce((l, f) => {
|
|
828
|
-
const u = Je(t, f, r);
|
|
829
|
-
return l.top = I(u.top, l.top), l.right = G(u.right, l.right), l.bottom = G(u.bottom, l.bottom), l.left = I(u.left, l.left), l;
|
|
830
|
-
}, Je(t, a, r));
|
|
831
|
-
return {
|
|
832
|
-
width: c.right - c.left,
|
|
833
|
-
height: c.bottom - c.top,
|
|
834
|
-
x: c.left,
|
|
835
|
-
y: c.top
|
|
836
|
-
};
|
|
837
|
-
}
|
|
838
|
-
function Jn(e) {
|
|
839
|
-
const {
|
|
840
|
-
width: t,
|
|
841
|
-
height: n
|
|
842
|
-
} = ut(e);
|
|
843
|
-
return {
|
|
844
|
-
width: t,
|
|
845
|
-
height: n
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
function Qn(e, t, n) {
|
|
849
|
-
const o = q(t), r = Y(t), i = n === "fixed", s = Z(e, !0, i, t);
|
|
850
|
-
let a = {
|
|
851
|
-
scrollLeft: 0,
|
|
852
|
-
scrollTop: 0
|
|
853
|
-
};
|
|
854
|
-
const c = B(0);
|
|
855
|
-
function l() {
|
|
856
|
-
c.x = ve(r);
|
|
857
|
-
}
|
|
858
|
-
if (o || !o && !i)
|
|
859
|
-
if ((Re(t) !== "body" || Oe(r)) && (a = ge(t)), o) {
|
|
860
|
-
const d = Z(t, !0, i, t);
|
|
861
|
-
c.x = d.x + t.clientLeft, c.y = d.y + t.clientTop;
|
|
862
|
-
} else r && l();
|
|
863
|
-
i && !o && r && l();
|
|
864
|
-
const f = r && !o && !i ? pt(r, a) : B(0), u = s.left + a.scrollLeft - c.x - f.x, p = s.top + a.scrollTop - c.y - f.y;
|
|
865
|
-
return {
|
|
866
|
-
x: u,
|
|
867
|
-
y: p,
|
|
868
|
-
width: s.width,
|
|
869
|
-
height: s.height
|
|
870
|
-
};
|
|
871
|
-
}
|
|
872
|
-
function we(e) {
|
|
873
|
-
return V(e).position === "static";
|
|
874
|
-
}
|
|
875
|
-
function Qe(e, t) {
|
|
876
|
-
if (!q(e) || V(e).position === "fixed")
|
|
877
|
-
return null;
|
|
878
|
-
if (t)
|
|
879
|
-
return t(e);
|
|
880
|
-
let n = e.offsetParent;
|
|
881
|
-
return Y(e) === n && (n = n.ownerDocument.body), n;
|
|
882
|
-
}
|
|
883
|
-
function ht(e, t) {
|
|
884
|
-
const n = U(e);
|
|
885
|
-
if (Ce(e))
|
|
886
|
-
return n;
|
|
887
|
-
if (!q(e)) {
|
|
888
|
-
let r = oe(e);
|
|
889
|
-
for (; r && !fe(r); ) {
|
|
890
|
-
if (z(r) && !we(r))
|
|
891
|
-
return r;
|
|
892
|
-
r = oe(r);
|
|
893
|
-
}
|
|
894
|
-
return n;
|
|
895
|
-
}
|
|
896
|
-
let o = Qe(e, t);
|
|
897
|
-
for (; o && mn(o) && we(o); )
|
|
898
|
-
o = Qe(o, t);
|
|
899
|
-
return o && fe(o) && we(o) && !rt(o) ? n : o || hn(e) || n;
|
|
900
|
-
}
|
|
901
|
-
const eo = async function(e) {
|
|
902
|
-
const t = this.getOffsetParent || ht, n = this.getDimensions, o = await n(e.floating);
|
|
903
|
-
return {
|
|
904
|
-
reference: Qn(e.reference, await t(e.floating), e.strategy),
|
|
905
|
-
floating: {
|
|
906
|
-
x: 0,
|
|
907
|
-
y: 0,
|
|
908
|
-
width: o.width,
|
|
909
|
-
height: o.height
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
|
-
};
|
|
913
|
-
function to(e) {
|
|
914
|
-
return V(e).direction === "rtl";
|
|
915
|
-
}
|
|
916
|
-
const no = {
|
|
917
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: jn,
|
|
918
|
-
getDocumentElement: Y,
|
|
919
|
-
getClippingRect: Zn,
|
|
920
|
-
getOffsetParent: ht,
|
|
921
|
-
getElementRects: eo,
|
|
922
|
-
getClientRects: Xn,
|
|
923
|
-
getDimensions: Jn,
|
|
924
|
-
getScale: J,
|
|
925
|
-
isElement: z,
|
|
926
|
-
isRTL: to
|
|
927
|
-
};
|
|
928
|
-
function gt(e, t) {
|
|
929
|
-
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
930
|
-
}
|
|
931
|
-
function oo(e, t) {
|
|
932
|
-
let n = null, o;
|
|
933
|
-
const r = Y(e);
|
|
934
|
-
function i() {
|
|
935
|
-
var a;
|
|
936
|
-
clearTimeout(o), (a = n) == null || a.disconnect(), n = null;
|
|
937
|
-
}
|
|
938
|
-
function s(a, c) {
|
|
939
|
-
a === void 0 && (a = !1), c === void 0 && (c = 1), i();
|
|
940
|
-
const l = e.getBoundingClientRect(), {
|
|
941
|
-
left: f,
|
|
942
|
-
top: u,
|
|
943
|
-
width: p,
|
|
944
|
-
height: d
|
|
945
|
-
} = l;
|
|
946
|
-
if (a || t(), !p || !d)
|
|
947
|
-
return;
|
|
948
|
-
const m = ce(u), h = ce(r.clientWidth - (f + p)), x = ce(r.clientHeight - (u + d)), g = ce(f), P = {
|
|
949
|
-
rootMargin: -m + "px " + -h + "px " + -x + "px " + -g + "px",
|
|
950
|
-
threshold: I(0, G(1, c)) || 1
|
|
951
|
-
};
|
|
952
|
-
let b = !0;
|
|
953
|
-
function A(O) {
|
|
954
|
-
const R = O[0].intersectionRatio;
|
|
955
|
-
if (R !== c) {
|
|
956
|
-
if (!b)
|
|
957
|
-
return s();
|
|
958
|
-
R ? s(!1, R) : o = setTimeout(() => {
|
|
959
|
-
s(!1, 1e-7);
|
|
960
|
-
}, 1e3);
|
|
961
|
-
}
|
|
962
|
-
R === 1 && !gt(l, e.getBoundingClientRect()) && s(), b = !1;
|
|
963
|
-
}
|
|
964
|
-
try {
|
|
965
|
-
n = new IntersectionObserver(A, {
|
|
966
|
-
...P,
|
|
967
|
-
// Handle <iframe>s
|
|
968
|
-
root: r.ownerDocument
|
|
969
|
-
});
|
|
970
|
-
} catch {
|
|
971
|
-
n = new IntersectionObserver(A, P);
|
|
972
|
-
}
|
|
973
|
-
n.observe(e);
|
|
974
|
-
}
|
|
975
|
-
return s(!0), i;
|
|
976
|
-
}
|
|
977
|
-
function ro(e, t, n, o) {
|
|
978
|
-
o === void 0 && (o = {});
|
|
979
|
-
const {
|
|
980
|
-
ancestorScroll: r = !0,
|
|
981
|
-
ancestorResize: i = !0,
|
|
982
|
-
elementResize: s = typeof ResizeObserver == "function",
|
|
983
|
-
layoutShift: a = typeof IntersectionObserver == "function",
|
|
984
|
-
animationFrame: c = !1
|
|
985
|
-
} = o, l = Me(e), f = r || i ? [...l ? Pe(l) : [], ...Pe(t)] : [];
|
|
986
|
-
f.forEach((g) => {
|
|
987
|
-
r && g.addEventListener("scroll", n, {
|
|
988
|
-
passive: !0
|
|
989
|
-
}), i && g.addEventListener("resize", n);
|
|
990
|
-
});
|
|
991
|
-
const u = l && a ? oo(l, n) : null;
|
|
992
|
-
let p = -1, d = null;
|
|
993
|
-
s && (d = new ResizeObserver((g) => {
|
|
994
|
-
let [y] = g;
|
|
995
|
-
y && y.target === l && d && (d.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
996
|
-
var P;
|
|
997
|
-
(P = d) == null || P.observe(t);
|
|
998
|
-
})), n();
|
|
999
|
-
}), l && !c && d.observe(l), d.observe(t));
|
|
1000
|
-
let m, h = c ? Z(e) : null;
|
|
1001
|
-
c && x();
|
|
1002
|
-
function x() {
|
|
1003
|
-
const g = Z(e);
|
|
1004
|
-
h && !gt(h, g) && n(), h = g, m = requestAnimationFrame(x);
|
|
1005
|
-
}
|
|
1006
|
-
return n(), () => {
|
|
1007
|
-
var g;
|
|
1008
|
-
f.forEach((y) => {
|
|
1009
|
-
r && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
|
|
1010
|
-
}), u?.(), (g = d) == null || g.disconnect(), d = null, c && cancelAnimationFrame(m);
|
|
1011
|
-
};
|
|
1012
|
-
}
|
|
1013
|
-
const io = In, so = Hn, ao = Fn, co = Bn, lo = kn, et = $n, fo = Wn, uo = (e, t, n) => {
|
|
1014
|
-
const o = /* @__PURE__ */ new Map(), r = {
|
|
1015
|
-
platform: no,
|
|
1016
|
-
...n
|
|
1017
|
-
}, i = {
|
|
1018
|
-
...r.platform,
|
|
1019
|
-
_c: o
|
|
1020
|
-
};
|
|
1021
|
-
return _n(e, t, {
|
|
1022
|
-
...r,
|
|
1023
|
-
platform: i
|
|
1024
|
-
});
|
|
1025
|
-
};
|
|
1026
|
-
var po = typeof document < "u", mo = function() {
|
|
1027
|
-
}, le = po ? nt : mo;
|
|
1028
|
-
function me(e, t) {
|
|
1029
|
-
if (e === t)
|
|
1030
|
-
return !0;
|
|
1031
|
-
if (typeof e != typeof t)
|
|
1032
|
-
return !1;
|
|
1033
|
-
if (typeof e == "function" && e.toString() === t.toString())
|
|
1034
|
-
return !0;
|
|
1035
|
-
let n, o, r;
|
|
1036
|
-
if (e && t && typeof e == "object") {
|
|
1037
|
-
if (Array.isArray(e)) {
|
|
1038
|
-
if (n = e.length, n !== t.length) return !1;
|
|
1039
|
-
for (o = n; o-- !== 0; )
|
|
1040
|
-
if (!me(e[o], t[o]))
|
|
1041
|
-
return !1;
|
|
1042
|
-
return !0;
|
|
1043
|
-
}
|
|
1044
|
-
if (r = Object.keys(e), n = r.length, n !== Object.keys(t).length)
|
|
1045
|
-
return !1;
|
|
1046
|
-
for (o = n; o-- !== 0; )
|
|
1047
|
-
if (!{}.hasOwnProperty.call(t, r[o]))
|
|
1048
|
-
return !1;
|
|
1049
|
-
for (o = n; o-- !== 0; ) {
|
|
1050
|
-
const i = r[o];
|
|
1051
|
-
if (!(i === "_owner" && e.$$typeof) && !me(e[i], t[i]))
|
|
1052
|
-
return !1;
|
|
1053
|
-
}
|
|
1054
|
-
return !0;
|
|
1055
|
-
}
|
|
1056
|
-
return e !== e && t !== t;
|
|
1057
|
-
}
|
|
1058
|
-
function vt(e) {
|
|
1059
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1060
|
-
}
|
|
1061
|
-
function tt(e, t) {
|
|
1062
|
-
const n = vt(e);
|
|
1063
|
-
return Math.round(t * n) / n;
|
|
1064
|
-
}
|
|
1065
|
-
function ye(e) {
|
|
1066
|
-
const t = v.useRef(e);
|
|
1067
|
-
return le(() => {
|
|
1068
|
-
t.current = e;
|
|
1069
|
-
}), t;
|
|
1070
|
-
}
|
|
1071
|
-
function ho(e) {
|
|
1072
|
-
e === void 0 && (e = {});
|
|
1073
|
-
const {
|
|
1074
|
-
placement: t = "bottom",
|
|
1075
|
-
strategy: n = "absolute",
|
|
1076
|
-
middleware: o = [],
|
|
1077
|
-
platform: r,
|
|
1078
|
-
elements: {
|
|
1079
|
-
reference: i,
|
|
1080
|
-
floating: s
|
|
1081
|
-
} = {},
|
|
1082
|
-
transform: a = !0,
|
|
1083
|
-
whileElementsMounted: c,
|
|
1084
|
-
open: l
|
|
1085
|
-
} = e, [f, u] = v.useState({
|
|
1086
|
-
x: 0,
|
|
1087
|
-
y: 0,
|
|
1088
|
-
strategy: n,
|
|
1089
|
-
placement: t,
|
|
1090
|
-
middlewareData: {},
|
|
1091
|
-
isPositioned: !1
|
|
1092
|
-
}), [p, d] = v.useState(o);
|
|
1093
|
-
me(p, o) || d(o);
|
|
1094
|
-
const [m, h] = v.useState(null), [x, g] = v.useState(null), y = v.useCallback((C) => {
|
|
1095
|
-
C !== O.current && (O.current = C, h(C));
|
|
1096
|
-
}, []), P = v.useCallback((C) => {
|
|
1097
|
-
C !== R.current && (R.current = C, g(C));
|
|
1098
|
-
}, []), b = i || m, A = s || x, O = v.useRef(null), R = v.useRef(null), T = v.useRef(f), k = c != null, D = ye(c), $ = ye(r), F = ye(l), E = v.useCallback(() => {
|
|
1099
|
-
if (!O.current || !R.current)
|
|
1100
|
-
return;
|
|
1101
|
-
const C = {
|
|
1102
|
-
placement: t,
|
|
1103
|
-
strategy: n,
|
|
1104
|
-
middleware: p
|
|
1105
|
-
};
|
|
1106
|
-
$.current && (C.platform = $.current), uo(O.current, R.current, C).then((_) => {
|
|
1107
|
-
const H = {
|
|
1108
|
-
..._,
|
|
1109
|
-
// The floating element's position may be recomputed while it's closed
|
|
1110
|
-
// but still mounted (such as when transitioning out). To ensure
|
|
1111
|
-
// `isPositioned` will be `false` initially on the next open, avoid
|
|
1112
|
-
// setting it to `true` when `open === false` (must be specified).
|
|
1113
|
-
isPositioned: F.current !== !1
|
|
1114
|
-
};
|
|
1115
|
-
S.current && !me(T.current, H) && (T.current = H, gn.flushSync(() => {
|
|
1116
|
-
u(H);
|
|
1117
|
-
}));
|
|
1118
|
-
});
|
|
1119
|
-
}, [p, t, n, $, F]);
|
|
1120
|
-
le(() => {
|
|
1121
|
-
l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((C) => ({
|
|
1122
|
-
...C,
|
|
1123
|
-
isPositioned: !1
|
|
1124
|
-
})));
|
|
1125
|
-
}, [l]);
|
|
1126
|
-
const S = v.useRef(!1);
|
|
1127
|
-
le(() => (S.current = !0, () => {
|
|
1128
|
-
S.current = !1;
|
|
1129
|
-
}), []), le(() => {
|
|
1130
|
-
if (b && (O.current = b), A && (R.current = A), b && A) {
|
|
1131
|
-
if (D.current)
|
|
1132
|
-
return D.current(b, A, E);
|
|
1133
|
-
E();
|
|
1134
|
-
}
|
|
1135
|
-
}, [b, A, E, D, k]);
|
|
1136
|
-
const L = v.useMemo(() => ({
|
|
1137
|
-
reference: O,
|
|
1138
|
-
floating: R,
|
|
1139
|
-
setReference: y,
|
|
1140
|
-
setFloating: P
|
|
1141
|
-
}), [y, P]), N = v.useMemo(() => ({
|
|
1142
|
-
reference: b,
|
|
1143
|
-
floating: A
|
|
1144
|
-
}), [b, A]), M = v.useMemo(() => {
|
|
1145
|
-
const C = {
|
|
1146
|
-
position: n,
|
|
1147
|
-
left: 0,
|
|
1148
|
-
top: 0
|
|
1149
|
-
};
|
|
1150
|
-
if (!N.floating)
|
|
1151
|
-
return C;
|
|
1152
|
-
const _ = tt(N.floating, f.x), H = tt(N.floating, f.y);
|
|
1153
|
-
return a ? {
|
|
1154
|
-
...C,
|
|
1155
|
-
transform: "translate(" + _ + "px, " + H + "px)",
|
|
1156
|
-
...vt(N.floating) >= 1.5 && {
|
|
1157
|
-
willChange: "transform"
|
|
1158
|
-
}
|
|
1159
|
-
} : {
|
|
1160
|
-
position: n,
|
|
1161
|
-
left: _,
|
|
1162
|
-
top: H
|
|
1163
|
-
};
|
|
1164
|
-
}, [n, a, N.floating, f.x, f.y]);
|
|
1165
|
-
return v.useMemo(() => ({
|
|
1166
|
-
...f,
|
|
1167
|
-
update: E,
|
|
1168
|
-
refs: L,
|
|
1169
|
-
elements: N,
|
|
1170
|
-
floatingStyles: M
|
|
1171
|
-
}), [f, E, L, N, M]);
|
|
1172
|
-
}
|
|
1173
|
-
const go = (e) => {
|
|
1174
|
-
function t(n) {
|
|
1175
|
-
return {}.hasOwnProperty.call(n, "current");
|
|
1176
|
-
}
|
|
1177
|
-
return {
|
|
1178
|
-
name: "arrow",
|
|
1179
|
-
options: e,
|
|
1180
|
-
fn(n) {
|
|
1181
|
-
const {
|
|
1182
|
-
element: o,
|
|
1183
|
-
padding: r
|
|
1184
|
-
} = typeof e == "function" ? e(n) : e;
|
|
1185
|
-
return o && t(o) ? o.current != null ? et({
|
|
1186
|
-
element: o.current,
|
|
1187
|
-
padding: r
|
|
1188
|
-
}).fn(n) : {} : o ? et({
|
|
1189
|
-
element: o,
|
|
1190
|
-
padding: r
|
|
1191
|
-
}).fn(n) : {};
|
|
1192
|
-
}
|
|
1193
|
-
};
|
|
1194
|
-
}, vo = (e, t) => ({
|
|
1195
|
-
...io(e),
|
|
1196
|
-
options: [e, t]
|
|
1197
|
-
}), xo = (e, t) => ({
|
|
1198
|
-
...so(e),
|
|
1199
|
-
options: [e, t]
|
|
1200
|
-
}), wo = (e, t) => ({
|
|
1201
|
-
...fo(e),
|
|
1202
|
-
options: [e, t]
|
|
1203
|
-
}), yo = (e, t) => ({
|
|
1204
|
-
...ao(e),
|
|
1205
|
-
options: [e, t]
|
|
1206
|
-
}), Po = (e, t) => ({
|
|
1207
|
-
...co(e),
|
|
1208
|
-
options: [e, t]
|
|
1209
|
-
}), bo = (e, t) => ({
|
|
1210
|
-
...lo(e),
|
|
1211
|
-
options: [e, t]
|
|
1212
|
-
}), Ao = (e, t) => ({
|
|
1213
|
-
...go(e),
|
|
1214
|
-
options: [e, t]
|
|
1215
|
-
});
|
|
1216
|
-
var Co = "Arrow", xt = v.forwardRef((e, t) => {
|
|
1217
|
-
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
1218
|
-
return /* @__PURE__ */ w(
|
|
1219
|
-
ie.svg,
|
|
1220
|
-
{
|
|
1221
|
-
...i,
|
|
1222
|
-
ref: t,
|
|
1223
|
-
width: o,
|
|
1224
|
-
height: r,
|
|
1225
|
-
viewBox: "0 0 30 10",
|
|
1226
|
-
preserveAspectRatio: "none",
|
|
1227
|
-
children: e.asChild ? n : /* @__PURE__ */ w("polygon", { points: "0,0 30,0 15,10" })
|
|
1228
|
-
}
|
|
1229
|
-
);
|
|
1230
|
-
});
|
|
1231
|
-
xt.displayName = Co;
|
|
1232
|
-
var Ro = xt, De = "Popper", [wt, yt] = ot(De), [Oo, Pt] = wt(De), bt = (e) => {
|
|
1233
|
-
const { __scopePopper: t, children: n } = e, [o, r] = v.useState(null);
|
|
1234
|
-
return /* @__PURE__ */ w(Oo, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
1235
|
-
};
|
|
1236
|
-
bt.displayName = De;
|
|
1237
|
-
var At = "PopperAnchor", Ct = v.forwardRef(
|
|
1238
|
-
(e, t) => {
|
|
1239
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, i = Pt(At, n), s = v.useRef(null), a = he(t, s), c = v.useRef(null);
|
|
1240
|
-
return v.useEffect(() => {
|
|
1241
|
-
const l = c.current;
|
|
1242
|
-
c.current = o?.current || s.current, l !== c.current && i.onAnchorChange(c.current);
|
|
1243
|
-
}), o ? null : /* @__PURE__ */ w(ie.div, { ...r, ref: a });
|
|
1244
|
-
}
|
|
1245
|
-
);
|
|
1246
|
-
Ct.displayName = At;
|
|
1247
|
-
var Te = "PopperContent", [So, Eo] = wt(Te), Rt = v.forwardRef(
|
|
1248
|
-
(e, t) => {
|
|
1249
|
-
const {
|
|
1250
|
-
__scopePopper: n,
|
|
1251
|
-
side: o = "bottom",
|
|
1252
|
-
sideOffset: r = 0,
|
|
1253
|
-
align: i = "center",
|
|
1254
|
-
alignOffset: s = 0,
|
|
1255
|
-
arrowPadding: a = 0,
|
|
1256
|
-
avoidCollisions: c = !0,
|
|
1257
|
-
collisionBoundary: l = [],
|
|
1258
|
-
collisionPadding: f = 0,
|
|
1259
|
-
sticky: u = "partial",
|
|
1260
|
-
hideWhenDetached: p = !1,
|
|
1261
|
-
updatePositionStrategy: d = "optimized",
|
|
1262
|
-
onPlaced: m,
|
|
1263
|
-
...h
|
|
1264
|
-
} = e, x = Pt(Te, n), [g, y] = v.useState(null), P = he(t, (te) => y(te)), [b, A] = v.useState(null), O = vn(b), R = O?.width ?? 0, T = O?.height ?? 0, k = o + (i !== "center" ? "-" + i : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(l) ? l : [l], F = $.length > 0, E = {
|
|
1265
|
-
padding: D,
|
|
1266
|
-
boundary: $.filter(Mo),
|
|
1267
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1268
|
-
altBoundary: F
|
|
1269
|
-
}, { refs: S, floatingStyles: L, placement: N, isPositioned: M, middlewareData: C } = ho({
|
|
1270
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1271
|
-
strategy: "fixed",
|
|
1272
|
-
placement: k,
|
|
1273
|
-
whileElementsMounted: (...te) => ro(...te, {
|
|
1274
|
-
animationFrame: d === "always"
|
|
1275
|
-
}),
|
|
1276
|
-
elements: {
|
|
1277
|
-
reference: x.anchor
|
|
1278
|
-
},
|
|
1279
|
-
middleware: [
|
|
1280
|
-
vo({ mainAxis: r + T, alignmentAxis: s }),
|
|
1281
|
-
c && xo({
|
|
1282
|
-
mainAxis: !0,
|
|
1283
|
-
crossAxis: !1,
|
|
1284
|
-
limiter: u === "partial" ? wo() : void 0,
|
|
1285
|
-
...E
|
|
1286
|
-
}),
|
|
1287
|
-
c && yo({ ...E }),
|
|
1288
|
-
Po({
|
|
1289
|
-
...E,
|
|
1290
|
-
apply: ({ elements: te, rects: Ve, availableWidth: Ut, availableHeight: Zt }) => {
|
|
1291
|
-
const { width: Jt, height: Qt } = Ve.reference, ae = te.floating.style;
|
|
1292
|
-
ae.setProperty("--radix-popper-available-width", `${Ut}px`), ae.setProperty("--radix-popper-available-height", `${Zt}px`), ae.setProperty("--radix-popper-anchor-width", `${Jt}px`), ae.setProperty("--radix-popper-anchor-height", `${Qt}px`);
|
|
1293
|
-
}
|
|
1294
|
-
}),
|
|
1295
|
-
b && Ao({ element: b, padding: a }),
|
|
1296
|
-
Do({ arrowWidth: R, arrowHeight: T }),
|
|
1297
|
-
p && bo({ strategy: "referenceHidden", ...E })
|
|
1298
|
-
]
|
|
1299
|
-
}), [_, H] = Et(N), ze = dn(m);
|
|
1300
|
-
Xe(() => {
|
|
1301
|
-
M && ze?.();
|
|
1302
|
-
}, [M, ze]);
|
|
1303
|
-
const Xt = C.arrow?.x, Yt = C.arrow?.y, qt = C.arrow?.centerOffset !== 0, [Gt, Kt] = v.useState();
|
|
1304
|
-
return Xe(() => {
|
|
1305
|
-
g && Kt(window.getComputedStyle(g).zIndex);
|
|
1306
|
-
}, [g]), /* @__PURE__ */ w(
|
|
1307
|
-
"div",
|
|
1308
|
-
{
|
|
1309
|
-
ref: S.setFloating,
|
|
1310
|
-
"data-radix-popper-content-wrapper": "",
|
|
1311
|
-
style: {
|
|
1312
|
-
...L,
|
|
1313
|
-
transform: M ? L.transform : "translate(0, -200%)",
|
|
1314
|
-
// keep off the page when measuring
|
|
1315
|
-
minWidth: "max-content",
|
|
1316
|
-
zIndex: Gt,
|
|
1317
|
-
"--radix-popper-transform-origin": [
|
|
1318
|
-
C.transformOrigin?.x,
|
|
1319
|
-
C.transformOrigin?.y
|
|
1320
|
-
].join(" "),
|
|
1321
|
-
// hide the content if using the hide middleware and should be hidden
|
|
1322
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
1323
|
-
// as if the PopperContent isn't there at all
|
|
1324
|
-
...C.hide?.referenceHidden && {
|
|
1325
|
-
visibility: "hidden",
|
|
1326
|
-
pointerEvents: "none"
|
|
1327
|
-
}
|
|
1328
|
-
},
|
|
1329
|
-
dir: e.dir,
|
|
1330
|
-
children: /* @__PURE__ */ w(
|
|
1331
|
-
So,
|
|
1332
|
-
{
|
|
1333
|
-
scope: n,
|
|
1334
|
-
placedSide: _,
|
|
1335
|
-
onArrowChange: A,
|
|
1336
|
-
arrowX: Xt,
|
|
1337
|
-
arrowY: Yt,
|
|
1338
|
-
shouldHideArrow: qt,
|
|
1339
|
-
children: /* @__PURE__ */ w(
|
|
1340
|
-
ie.div,
|
|
1341
|
-
{
|
|
1342
|
-
"data-side": _,
|
|
1343
|
-
"data-align": H,
|
|
1344
|
-
...h,
|
|
1345
|
-
ref: P,
|
|
1346
|
-
style: {
|
|
1347
|
-
...h.style,
|
|
1348
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
1349
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
1350
|
-
animation: M ? void 0 : "none"
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
)
|
|
1354
|
-
}
|
|
1355
|
-
)
|
|
1356
|
-
}
|
|
1357
|
-
);
|
|
1358
|
-
}
|
|
1359
|
-
);
|
|
1360
|
-
Rt.displayName = Te;
|
|
1361
|
-
var Ot = "PopperArrow", No = {
|
|
1362
|
-
top: "bottom",
|
|
1363
|
-
right: "left",
|
|
1364
|
-
bottom: "top",
|
|
1365
|
-
left: "right"
|
|
1366
|
-
}, St = v.forwardRef(function(t, n) {
|
|
1367
|
-
const { __scopePopper: o, ...r } = t, i = Eo(Ot, o), s = No[i.placedSide];
|
|
1368
|
-
return (
|
|
1369
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
1370
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
1371
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
1372
|
-
/* @__PURE__ */ w(
|
|
1373
|
-
"span",
|
|
1374
|
-
{
|
|
1375
|
-
ref: i.onArrowChange,
|
|
1376
|
-
style: {
|
|
1377
|
-
position: "absolute",
|
|
1378
|
-
left: i.arrowX,
|
|
1379
|
-
top: i.arrowY,
|
|
1380
|
-
[s]: 0,
|
|
1381
|
-
transformOrigin: {
|
|
1382
|
-
top: "",
|
|
1383
|
-
right: "0 0",
|
|
1384
|
-
bottom: "center 0",
|
|
1385
|
-
left: "100% 0"
|
|
1386
|
-
}[i.placedSide],
|
|
1387
|
-
transform: {
|
|
1388
|
-
top: "translateY(100%)",
|
|
1389
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
1390
|
-
bottom: "rotate(180deg)",
|
|
1391
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
1392
|
-
}[i.placedSide],
|
|
1393
|
-
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
1394
|
-
},
|
|
1395
|
-
children: /* @__PURE__ */ w(
|
|
1396
|
-
Ro,
|
|
1397
|
-
{
|
|
1398
|
-
...r,
|
|
1399
|
-
ref: n,
|
|
1400
|
-
style: {
|
|
1401
|
-
...r.style,
|
|
1402
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
1403
|
-
display: "block"
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
)
|
|
1407
|
-
}
|
|
1408
|
-
)
|
|
1409
|
-
);
|
|
1410
|
-
});
|
|
1411
|
-
St.displayName = Ot;
|
|
1412
|
-
function Mo(e) {
|
|
1413
|
-
return e !== null;
|
|
1414
|
-
}
|
|
1415
|
-
var Do = (e) => ({
|
|
1416
|
-
name: "transformOrigin",
|
|
1417
|
-
options: e,
|
|
1418
|
-
fn(t) {
|
|
1419
|
-
const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0, a = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [l, f] = Et(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (r.arrow?.x ?? 0) + a / 2, d = (r.arrow?.y ?? 0) + c / 2;
|
|
1420
|
-
let m = "", h = "";
|
|
1421
|
-
return l === "bottom" ? (m = s ? u : `${p}px`, h = `${-c}px`) : l === "top" ? (m = s ? u : `${p}px`, h = `${o.floating.height + c}px`) : l === "right" ? (m = `${-c}px`, h = s ? u : `${d}px`) : l === "left" && (m = `${o.floating.width + c}px`, h = s ? u : `${d}px`), { data: { x: m, y: h } };
|
|
1422
|
-
}
|
|
1423
|
-
});
|
|
1424
|
-
function Et(e) {
|
|
1425
|
-
const [t, n = "center"] = e.split("-");
|
|
1426
|
-
return [t, n];
|
|
1427
|
-
}
|
|
1428
|
-
var To = bt, Nt = Ct, _o = Rt, $o = St, xe = "Popover", [Mt] = ot(xe, [
|
|
1429
|
-
yt
|
|
1430
|
-
]), se = yt(), [Fo, K] = Mt(xe), Dt = (e) => {
|
|
1431
|
-
const {
|
|
1432
|
-
__scopePopover: t,
|
|
1433
|
-
children: n,
|
|
1434
|
-
open: o,
|
|
1435
|
-
defaultOpen: r,
|
|
1436
|
-
onOpenChange: i,
|
|
1437
|
-
modal: s = !1
|
|
1438
|
-
} = e, a = se(t), c = v.useRef(null), [l, f] = v.useState(!1), [u, p] = rn({
|
|
1439
|
-
prop: o,
|
|
1440
|
-
defaultProp: r ?? !1,
|
|
1441
|
-
onChange: i,
|
|
1442
|
-
caller: xe
|
|
1443
|
-
});
|
|
1444
|
-
return /* @__PURE__ */ w(To, { ...a, children: /* @__PURE__ */ w(
|
|
1445
|
-
Fo,
|
|
1446
|
-
{
|
|
1447
|
-
scope: t,
|
|
1448
|
-
contentId: pn(),
|
|
1449
|
-
triggerRef: c,
|
|
1450
|
-
open: u,
|
|
1451
|
-
onOpenChange: p,
|
|
1452
|
-
onOpenToggle: v.useCallback(() => p((d) => !d), [p]),
|
|
1453
|
-
hasCustomAnchor: l,
|
|
1454
|
-
onCustomAnchorAdd: v.useCallback(() => f(!0), []),
|
|
1455
|
-
onCustomAnchorRemove: v.useCallback(() => f(!1), []),
|
|
1456
|
-
modal: s,
|
|
1457
|
-
children: n
|
|
1458
|
-
}
|
|
1459
|
-
) });
|
|
1460
|
-
};
|
|
1461
|
-
Dt.displayName = xe;
|
|
1462
|
-
var Tt = "PopoverAnchor", _t = v.forwardRef(
|
|
1463
|
-
(e, t) => {
|
|
1464
|
-
const { __scopePopover: n, ...o } = e, r = K(Tt, n), i = se(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: a } = r;
|
|
1465
|
-
return v.useEffect(() => (s(), () => a()), [s, a]), /* @__PURE__ */ w(Nt, { ...i, ...o, ref: t });
|
|
1466
|
-
}
|
|
1467
|
-
);
|
|
1468
|
-
_t.displayName = Tt;
|
|
1469
|
-
var $t = "PopoverTrigger", Ft = v.forwardRef(
|
|
1470
|
-
(e, t) => {
|
|
1471
|
-
const { __scopePopover: n, ...o } = e, r = K($t, n), i = se(n), s = he(t, r.triggerRef), a = /* @__PURE__ */ w(
|
|
1472
|
-
ie.button,
|
|
1473
|
-
{
|
|
1474
|
-
type: "button",
|
|
1475
|
-
"aria-haspopup": "dialog",
|
|
1476
|
-
"aria-expanded": r.open,
|
|
1477
|
-
"aria-controls": r.contentId,
|
|
1478
|
-
"data-state": zt(r.open),
|
|
1479
|
-
...o,
|
|
1480
|
-
ref: s,
|
|
1481
|
-
onClick: ne(e.onClick, r.onOpenToggle)
|
|
1482
|
-
}
|
|
1483
|
-
);
|
|
1484
|
-
return r.hasCustomAnchor ? a : /* @__PURE__ */ w(Nt, { asChild: !0, ...i, children: a });
|
|
1485
|
-
}
|
|
1486
|
-
);
|
|
1487
|
-
Ft.displayName = $t;
|
|
1488
|
-
var _e = "PopoverPortal", [ko, Lo] = Mt(_e, {
|
|
1489
|
-
forceMount: void 0
|
|
1490
|
-
}), kt = (e) => {
|
|
1491
|
-
const { __scopePopover: t, forceMount: n, children: o, container: r } = e, i = K(_e, t);
|
|
1492
|
-
return /* @__PURE__ */ w(ko, { scope: t, forceMount: n, children: /* @__PURE__ */ w(st, { present: n || i.open, children: /* @__PURE__ */ w(xn, { asChild: !0, container: r, children: o }) }) });
|
|
1493
|
-
};
|
|
1494
|
-
kt.displayName = _e;
|
|
1495
|
-
var Q = "PopoverContent", Lt = v.forwardRef(
|
|
1496
|
-
(e, t) => {
|
|
1497
|
-
const n = Lo(Q, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, i = K(Q, e.__scopePopover);
|
|
1498
|
-
return /* @__PURE__ */ w(st, { present: o || i.open, children: i.modal ? /* @__PURE__ */ w(Ho, { ...r, ref: t }) : /* @__PURE__ */ w(Wo, { ...r, ref: t }) });
|
|
1499
|
-
}
|
|
1500
|
-
);
|
|
1501
|
-
Lt.displayName = Q;
|
|
1502
|
-
var Io = sn("PopoverContent.RemoveScroll"), Ho = v.forwardRef(
|
|
1503
|
-
(e, t) => {
|
|
1504
|
-
const n = K(Q, e.__scopePopover), o = v.useRef(null), r = he(t, o), i = v.useRef(!1);
|
|
1505
|
-
return v.useEffect(() => {
|
|
1506
|
-
const s = o.current;
|
|
1507
|
-
if (s) return an(s);
|
|
1508
|
-
}, []), /* @__PURE__ */ w(cn, { as: Io, allowPinchZoom: !0, children: /* @__PURE__ */ w(
|
|
1509
|
-
It,
|
|
1510
|
-
{
|
|
1511
|
-
...e,
|
|
1512
|
-
ref: r,
|
|
1513
|
-
trapFocus: n.open,
|
|
1514
|
-
disableOutsidePointerEvents: !0,
|
|
1515
|
-
onCloseAutoFocus: ne(e.onCloseAutoFocus, (s) => {
|
|
1516
|
-
s.preventDefault(), i.current || n.triggerRef.current?.focus();
|
|
1517
|
-
}),
|
|
1518
|
-
onPointerDownOutside: ne(
|
|
1519
|
-
e.onPointerDownOutside,
|
|
1520
|
-
(s) => {
|
|
1521
|
-
const a = s.detail.originalEvent, c = a.button === 0 && a.ctrlKey === !0, l = a.button === 2 || c;
|
|
1522
|
-
i.current = l;
|
|
1523
|
-
},
|
|
1524
|
-
{ checkForDefaultPrevented: !1 }
|
|
1525
|
-
),
|
|
1526
|
-
onFocusOutside: ne(
|
|
1527
|
-
e.onFocusOutside,
|
|
1528
|
-
(s) => s.preventDefault(),
|
|
1529
|
-
{ checkForDefaultPrevented: !1 }
|
|
1530
|
-
)
|
|
1531
|
-
}
|
|
1532
|
-
) });
|
|
1533
|
-
}
|
|
1534
|
-
), Wo = v.forwardRef(
|
|
1535
|
-
(e, t) => {
|
|
1536
|
-
const n = K(Q, e.__scopePopover), o = v.useRef(!1), r = v.useRef(!1);
|
|
1537
|
-
return /* @__PURE__ */ w(
|
|
1538
|
-
It,
|
|
1539
|
-
{
|
|
1540
|
-
...e,
|
|
1541
|
-
ref: t,
|
|
1542
|
-
trapFocus: !1,
|
|
1543
|
-
disableOutsidePointerEvents: !1,
|
|
1544
|
-
onCloseAutoFocus: (i) => {
|
|
1545
|
-
e.onCloseAutoFocus?.(i), i.defaultPrevented || (o.current || n.triggerRef.current?.focus(), i.preventDefault()), o.current = !1, r.current = !1;
|
|
1546
|
-
},
|
|
1547
|
-
onInteractOutside: (i) => {
|
|
1548
|
-
e.onInteractOutside?.(i), i.defaultPrevented || (o.current = !0, i.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
1549
|
-
const s = i.target;
|
|
1550
|
-
n.triggerRef.current?.contains(s) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && r.current && i.preventDefault();
|
|
1551
|
-
}
|
|
1552
|
-
}
|
|
1553
|
-
);
|
|
1554
|
-
}
|
|
1555
|
-
), It = v.forwardRef(
|
|
1556
|
-
(e, t) => {
|
|
1557
|
-
const {
|
|
1558
|
-
__scopePopover: n,
|
|
1559
|
-
trapFocus: o,
|
|
1560
|
-
onOpenAutoFocus: r,
|
|
1561
|
-
onCloseAutoFocus: i,
|
|
1562
|
-
disableOutsidePointerEvents: s,
|
|
1563
|
-
onEscapeKeyDown: a,
|
|
1564
|
-
onPointerDownOutside: c,
|
|
1565
|
-
onFocusOutside: l,
|
|
1566
|
-
onInteractOutside: f,
|
|
1567
|
-
...u
|
|
1568
|
-
} = e, p = K(Q, n), d = se(n);
|
|
1569
|
-
return ln(), /* @__PURE__ */ w(
|
|
1570
|
-
fn,
|
|
1571
|
-
{
|
|
1572
|
-
asChild: !0,
|
|
1573
|
-
loop: !0,
|
|
1574
|
-
trapped: o,
|
|
1575
|
-
onMountAutoFocus: r,
|
|
1576
|
-
onUnmountAutoFocus: i,
|
|
1577
|
-
children: /* @__PURE__ */ w(
|
|
1578
|
-
un,
|
|
1579
|
-
{
|
|
1580
|
-
asChild: !0,
|
|
1581
|
-
disableOutsidePointerEvents: s,
|
|
1582
|
-
onInteractOutside: f,
|
|
1583
|
-
onEscapeKeyDown: a,
|
|
1584
|
-
onPointerDownOutside: c,
|
|
1585
|
-
onFocusOutside: l,
|
|
1586
|
-
onDismiss: () => p.onOpenChange(!1),
|
|
1587
|
-
children: /* @__PURE__ */ w(
|
|
1588
|
-
_o,
|
|
1589
|
-
{
|
|
1590
|
-
"data-state": zt(p.open),
|
|
1591
|
-
role: "dialog",
|
|
1592
|
-
id: p.contentId,
|
|
1593
|
-
...d,
|
|
1594
|
-
...u,
|
|
1595
|
-
ref: t,
|
|
1596
|
-
style: {
|
|
1597
|
-
...u.style,
|
|
1598
|
-
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
1599
|
-
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
1600
|
-
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
1601
|
-
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
1602
|
-
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
)
|
|
1606
|
-
}
|
|
1607
|
-
)
|
|
1608
|
-
}
|
|
1609
|
-
);
|
|
1610
|
-
}
|
|
1611
|
-
), Ht = "PopoverClose", Wt = v.forwardRef(
|
|
1612
|
-
(e, t) => {
|
|
1613
|
-
const { __scopePopover: n, ...o } = e, r = K(Ht, n);
|
|
1614
|
-
return /* @__PURE__ */ w(
|
|
1615
|
-
ie.button,
|
|
1616
|
-
{
|
|
1617
|
-
type: "button",
|
|
1618
|
-
...o,
|
|
1619
|
-
ref: t,
|
|
1620
|
-
onClick: ne(e.onClick, () => r.onOpenChange(!1))
|
|
1621
|
-
}
|
|
1622
|
-
);
|
|
1623
|
-
}
|
|
1624
|
-
);
|
|
1625
|
-
Wt.displayName = Ht;
|
|
1626
|
-
var Bo = "PopoverArrow", Bt = v.forwardRef(
|
|
1627
|
-
(e, t) => {
|
|
1628
|
-
const { __scopePopover: n, ...o } = e, r = se(n);
|
|
1629
|
-
return /* @__PURE__ */ w($o, { ...r, ...o, ref: t });
|
|
1630
|
-
}
|
|
1631
|
-
);
|
|
1632
|
-
Bt.displayName = Bo;
|
|
1633
|
-
function zt(e) {
|
|
1634
|
-
return e ? "open" : "closed";
|
|
1635
|
-
}
|
|
1636
|
-
var zo = Dt, Vo = _t, jo = Ft, Xo = kt, Yo = Lt, qo = Wt, Go = Bt;
|
|
1637
|
-
const Vt = en(null), Ko = ":popover", Uo = ({
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as i } from "radix-ui";
|
|
3
|
+
import { createContext as V, useState as W, useContext as j, useId as R, useLayoutEffect as D } from "react";
|
|
4
|
+
import { cva as P, cx as x } from "class-variance-authority";
|
|
5
|
+
import { Close as F } from "@spark-ui/icons/Close";
|
|
6
|
+
import { I as L } from "../Icon-Ck-dhfLd.mjs";
|
|
7
|
+
import { I as O } from "../IconButton-C62-axzv.mjs";
|
|
8
|
+
const y = V(null), S = ":popover", X = ({
|
|
1638
9
|
children: e,
|
|
1639
|
-
intent:
|
|
10
|
+
intent: o
|
|
1640
11
|
}) => {
|
|
1641
|
-
const [
|
|
1642
|
-
return /* @__PURE__ */
|
|
1643
|
-
|
|
12
|
+
const [r, a] = W(null);
|
|
13
|
+
return /* @__PURE__ */ t(
|
|
14
|
+
y.Provider,
|
|
1644
15
|
{
|
|
1645
16
|
value: {
|
|
1646
|
-
headerId:
|
|
1647
|
-
setHeaderId:
|
|
1648
|
-
intent:
|
|
17
|
+
headerId: r,
|
|
18
|
+
setHeaderId: a,
|
|
19
|
+
intent: o
|
|
1649
20
|
},
|
|
1650
21
|
children: e
|
|
1651
22
|
}
|
|
1652
23
|
);
|
|
1653
|
-
},
|
|
1654
|
-
const e =
|
|
24
|
+
}, p = () => {
|
|
25
|
+
const e = j(y);
|
|
1655
26
|
if (!e)
|
|
1656
27
|
throw Error("usePopover must be used within a Popover provider");
|
|
1657
28
|
return e;
|
|
1658
|
-
},
|
|
1659
|
-
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1662
|
-
const
|
|
29
|
+
}, N = ({ children: e, intent: o = "surface", modal: r = !1, ...a }) => /* @__PURE__ */ t(X, { intent: o, children: /* @__PURE__ */ t(i.Root, { "data-spark-component": "popover", modal: r, ...a, children: e }) });
|
|
30
|
+
N.displayName = "Popover";
|
|
31
|
+
const d = ({ asChild: e = !1, children: o, ref: r, ...a }) => /* @__PURE__ */ t(i.Anchor, { "data-spark-component": "popover-anchor", ref: r, asChild: e, ...a, children: o });
|
|
32
|
+
d.displayName = "Popover.Anchor";
|
|
33
|
+
const u = ({
|
|
1663
34
|
asChild: e = !1,
|
|
1664
|
-
width:
|
|
1665
|
-
height:
|
|
1666
|
-
className:
|
|
1667
|
-
ref:
|
|
1668
|
-
...
|
|
35
|
+
width: o = 16,
|
|
36
|
+
height: r = 8,
|
|
37
|
+
className: a,
|
|
38
|
+
ref: n,
|
|
39
|
+
...s
|
|
1669
40
|
}) => {
|
|
1670
|
-
const { intent:
|
|
41
|
+
const { intent: c } = p(), l = P("visible", {
|
|
1671
42
|
variants: {
|
|
1672
43
|
intent: {
|
|
1673
44
|
surface: "fill-surface",
|
|
@@ -1686,38 +57,38 @@ const ke = ({
|
|
|
1686
57
|
intent: "surface"
|
|
1687
58
|
}
|
|
1688
59
|
});
|
|
1689
|
-
return /* @__PURE__ */
|
|
1690
|
-
|
|
60
|
+
return /* @__PURE__ */ t(
|
|
61
|
+
i.Arrow,
|
|
1691
62
|
{
|
|
1692
63
|
"data-spark-component": "popover-arrow",
|
|
1693
|
-
ref:
|
|
1694
|
-
className:
|
|
64
|
+
ref: n,
|
|
65
|
+
className: l({ intent: c, className: a }),
|
|
1695
66
|
asChild: e,
|
|
1696
|
-
width:
|
|
1697
|
-
height:
|
|
1698
|
-
...
|
|
67
|
+
width: o,
|
|
68
|
+
height: r,
|
|
69
|
+
...s
|
|
1699
70
|
}
|
|
1700
71
|
);
|
|
1701
72
|
};
|
|
1702
|
-
|
|
1703
|
-
const
|
|
73
|
+
u.displayName = "Popover.Arrow";
|
|
74
|
+
const m = ({
|
|
1704
75
|
"aria-label": e,
|
|
1705
|
-
className:
|
|
1706
|
-
ref:
|
|
1707
|
-
...
|
|
1708
|
-
}) => /* @__PURE__ */
|
|
1709
|
-
|
|
76
|
+
className: o,
|
|
77
|
+
ref: r,
|
|
78
|
+
...a
|
|
79
|
+
}) => /* @__PURE__ */ t(
|
|
80
|
+
i.Close,
|
|
1710
81
|
{
|
|
1711
82
|
"data-spark-component": "popover-close-button",
|
|
1712
|
-
ref:
|
|
1713
|
-
className:
|
|
83
|
+
ref: r,
|
|
84
|
+
className: x("right-lg top-md absolute", o),
|
|
1714
85
|
asChild: !0,
|
|
1715
|
-
...
|
|
1716
|
-
children: /* @__PURE__ */
|
|
86
|
+
...a,
|
|
87
|
+
children: /* @__PURE__ */ t(O, { size: "sm", intent: "neutral", design: "ghost", "aria-label": e, children: /* @__PURE__ */ t(L, { children: /* @__PURE__ */ t(F, {}) }) })
|
|
1717
88
|
}
|
|
1718
89
|
);
|
|
1719
|
-
|
|
1720
|
-
const
|
|
90
|
+
m.displayName = "Popover.CloseButton";
|
|
91
|
+
const _ = P(
|
|
1721
92
|
[
|
|
1722
93
|
"rounded-md",
|
|
1723
94
|
"shadow-sm",
|
|
@@ -1775,96 +146,96 @@ const Zo = at(
|
|
|
1775
146
|
elevation: "popover"
|
|
1776
147
|
}
|
|
1777
148
|
}
|
|
1778
|
-
),
|
|
149
|
+
), f = ({
|
|
1779
150
|
// Spark props
|
|
1780
151
|
className: e,
|
|
1781
|
-
children:
|
|
1782
|
-
matchTriggerWidth:
|
|
152
|
+
children: o,
|
|
153
|
+
matchTriggerWidth: r = !1,
|
|
1783
154
|
// Radix props
|
|
1784
|
-
align:
|
|
1785
|
-
arrowPadding:
|
|
155
|
+
align: a = "center",
|
|
156
|
+
arrowPadding: n = 16,
|
|
1786
157
|
// In order not to overlap the arrow on the rounded corners of the popover.
|
|
1787
|
-
asChild:
|
|
1788
|
-
avoidCollisions:
|
|
1789
|
-
"aria-labelledby":
|
|
1790
|
-
collisionBoundary:
|
|
1791
|
-
collisionPadding:
|
|
1792
|
-
hideWhenDetached:
|
|
1793
|
-
side:
|
|
1794
|
-
sideOffset:
|
|
1795
|
-
sticky:
|
|
1796
|
-
inset:
|
|
1797
|
-
elevation:
|
|
1798
|
-
ref:
|
|
1799
|
-
...
|
|
158
|
+
asChild: s = !1,
|
|
159
|
+
avoidCollisions: c = !0,
|
|
160
|
+
"aria-labelledby": l,
|
|
161
|
+
collisionBoundary: b,
|
|
162
|
+
collisionPadding: w = 0,
|
|
163
|
+
hideWhenDetached: C = !1,
|
|
164
|
+
side: I = "bottom",
|
|
165
|
+
sideOffset: A = 8,
|
|
166
|
+
sticky: k = "partial",
|
|
167
|
+
inset: B = !1,
|
|
168
|
+
elevation: T = "popover",
|
|
169
|
+
ref: H,
|
|
170
|
+
...z
|
|
1800
171
|
}) => {
|
|
1801
|
-
const { headerId:
|
|
1802
|
-
return /* @__PURE__ */
|
|
1803
|
-
|
|
172
|
+
const { headerId: $, intent: E } = p();
|
|
173
|
+
return /* @__PURE__ */ t(
|
|
174
|
+
i.Content,
|
|
1804
175
|
{
|
|
1805
|
-
"aria-labelledby":
|
|
1806
|
-
className:
|
|
1807
|
-
enforceBoundaries: !!
|
|
1808
|
-
matchTriggerWidth:
|
|
1809
|
-
inset:
|
|
1810
|
-
elevation:
|
|
1811
|
-
intent:
|
|
176
|
+
"aria-labelledby": $ || l,
|
|
177
|
+
className: _({
|
|
178
|
+
enforceBoundaries: !!b,
|
|
179
|
+
matchTriggerWidth: r,
|
|
180
|
+
inset: B,
|
|
181
|
+
elevation: T,
|
|
182
|
+
intent: E,
|
|
1812
183
|
className: e
|
|
1813
184
|
}),
|
|
1814
185
|
"data-spark-component": "popover-content",
|
|
1815
|
-
ref:
|
|
1816
|
-
align:
|
|
1817
|
-
arrowPadding:
|
|
1818
|
-
asChild:
|
|
1819
|
-
avoidCollisions:
|
|
1820
|
-
collisionBoundary:
|
|
1821
|
-
collisionPadding:
|
|
1822
|
-
hideWhenDetached:
|
|
1823
|
-
side:
|
|
1824
|
-
sideOffset:
|
|
1825
|
-
sticky:
|
|
1826
|
-
...
|
|
1827
|
-
children:
|
|
186
|
+
ref: H,
|
|
187
|
+
align: a,
|
|
188
|
+
arrowPadding: n,
|
|
189
|
+
asChild: s,
|
|
190
|
+
avoidCollisions: c,
|
|
191
|
+
collisionBoundary: b,
|
|
192
|
+
collisionPadding: w,
|
|
193
|
+
hideWhenDetached: C,
|
|
194
|
+
side: I,
|
|
195
|
+
sideOffset: A,
|
|
196
|
+
sticky: k,
|
|
197
|
+
...z,
|
|
198
|
+
children: o
|
|
1828
199
|
}
|
|
1829
200
|
);
|
|
1830
201
|
};
|
|
1831
|
-
|
|
1832
|
-
const
|
|
1833
|
-
const
|
|
1834
|
-
return
|
|
202
|
+
f.displayName = "Popover.Content";
|
|
203
|
+
const v = ({ children: e, className: o, ref: r, ...a }) => {
|
|
204
|
+
const n = `${S}-header-${R()}`, { setHeaderId: s } = p();
|
|
205
|
+
return D(() => (s(n), () => s(null)), [n, s]), /* @__PURE__ */ t("header", { id: n, ref: r, className: x("mb-md text-headline-2", o), ...a, children: e });
|
|
1835
206
|
};
|
|
1836
|
-
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1839
|
-
const
|
|
1840
|
-
|
|
207
|
+
v.displayName = "Popover.Header";
|
|
208
|
+
const g = ({ children: e, ...o }) => /* @__PURE__ */ t(i.Portal, { ...o, children: e });
|
|
209
|
+
g.displayName = "Popover.Portal";
|
|
210
|
+
const h = ({ asChild: e = !1, children: o, ref: r, ...a }) => /* @__PURE__ */ t(
|
|
211
|
+
i.Trigger,
|
|
1841
212
|
{
|
|
1842
213
|
"data-spark-component": "popover-trigger",
|
|
1843
|
-
ref:
|
|
214
|
+
ref: r,
|
|
1844
215
|
asChild: e,
|
|
1845
|
-
...
|
|
1846
|
-
children:
|
|
216
|
+
...a,
|
|
217
|
+
children: o
|
|
1847
218
|
}
|
|
1848
219
|
);
|
|
1849
|
-
|
|
1850
|
-
const
|
|
1851
|
-
Anchor:
|
|
1852
|
-
Arrow:
|
|
1853
|
-
CloseButton:
|
|
1854
|
-
Content:
|
|
1855
|
-
Header:
|
|
1856
|
-
Portal:
|
|
1857
|
-
Trigger:
|
|
220
|
+
h.displayName = "Popover.Trigger";
|
|
221
|
+
const q = Object.assign(N, {
|
|
222
|
+
Anchor: d,
|
|
223
|
+
Arrow: u,
|
|
224
|
+
CloseButton: m,
|
|
225
|
+
Content: f,
|
|
226
|
+
Header: v,
|
|
227
|
+
Portal: g,
|
|
228
|
+
Trigger: h
|
|
1858
229
|
});
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
230
|
+
q.displayName = "Popover";
|
|
231
|
+
d.displayName = "Popover.Anchor";
|
|
232
|
+
u.displayName = "Popover.Arrow";
|
|
233
|
+
m.displayName = "Popover.CloseButton";
|
|
234
|
+
f.displayName = "Popover.Content";
|
|
235
|
+
v.displayName = "Popover.Header";
|
|
236
|
+
g.displayName = "Popover.Portal";
|
|
237
|
+
h.displayName = "Popover.Trigger";
|
|
1867
238
|
export {
|
|
1868
|
-
|
|
239
|
+
q as Popover
|
|
1869
240
|
};
|
|
1870
241
|
//# sourceMappingURL=index.mjs.map
|