@jenesei-software/jenesei-kit-react 1.3.39 → 2.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/README.md +0 -37
- package/build/AnimatePresence-BByJ67dn.js +134 -0
- package/build/AnimatePresence-BByJ67dn.js.map +1 -0
- package/build/AnimatePresence-BtUPiqYm.cjs +11 -0
- package/build/AnimatePresence-BtUPiqYm.cjs.map +1 -0
- package/build/area-outside.cjs.js +1 -2
- package/build/area-outside.d.ts +2 -28
- package/build/area-outside.es.js +2 -3
- package/build/area-preview.cjs.js +1 -2
- package/build/area-preview.d.ts +2 -48
- package/build/area-preview.es.js +3 -5
- package/build/area-skeleton.cjs.js +1 -2
- package/build/area-skeleton.d.ts +2 -68
- package/build/area-skeleton.es.js +2 -4
- package/build/areas/outside/area.d.ts +7 -0
- package/build/areas/outside/index.d.ts +1 -0
- package/build/areas/preview/area.d.ts +3 -0
- package/build/areas/preview/area.hooks.d.ts +1 -0
- package/build/areas/preview/area.types.d.ts +19 -0
- package/build/areas/preview/index.d.ts +3 -0
- package/build/areas/skeleton/area.d.ts +3 -0
- package/build/areas/skeleton/area.types.d.ts +21 -0
- package/build/areas/skeleton/index.d.ts +2 -0
- package/build/build-info.txt +3 -3
- package/build/button-C5PgNYns.cjs +3 -0
- package/build/button-C5PgNYns.cjs.map +1 -0
- package/build/button-D8zdhI-0.js +102 -0
- package/build/button-D8zdhI-0.js.map +1 -0
- package/build/checkbox-Ba0-4wxk.js +98 -0
- package/build/checkbox-Ba0-4wxk.js.map +1 -0
- package/build/checkbox-BtkbSjHq.cjs +3 -0
- package/build/checkbox-BtkbSjHq.cjs.map +1 -0
- package/build/chunk-CW3en5xf.cjs +1 -0
- package/build/chunk-D1xtDmiO.js +31 -0
- package/build/component-6HgOL-7c.js +71 -0
- package/build/component-6HgOL-7c.js.map +1 -0
- package/build/component-BjdeqpEq.cjs +3 -0
- package/build/component-BjdeqpEq.cjs.map +1 -0
- package/build/component-button.cjs.js +1 -2
- package/build/component-button.d.ts +2 -208
- package/build/component-button.es.js +2 -5
- package/build/component-checkbox.cjs.js +1 -2
- package/build/component-checkbox.d.ts +2 -208
- package/build/component-checkbox.es.js +2 -8
- package/build/component-date-picker.cjs.js +1 -2
- package/build/component-date-picker.d.ts +2 -582
- package/build/component-date-picker.es.js +2 -19
- package/build/component-icon.cjs.js +1 -2
- package/build/component-icon.d.ts +2 -136
- package/build/component-icon.es.js +4 -8
- package/build/component-input-otp.cjs.js +1 -2
- package/build/component-input-otp.d.ts +2 -211
- package/build/component-input-otp.es.js +2 -7
- package/build/component-input.cjs.js +1 -2
- package/build/component-input.d.ts +2 -286
- package/build/component-input.es.js +2 -18
- package/build/component-pagination.cjs.js +1 -2
- package/build/component-pagination.d.ts +2 -196
- package/build/component-pagination.es.js +2 -4
- package/build/component-popover.cjs.js +1 -0
- package/build/component-popover.d.ts +2 -0
- package/build/component-popover.es.js +5 -0
- package/build/component-select.cjs.js +1 -2
- package/build/component-select.d.ts +2 -411
- package/build/component-select.es.js +6 -18
- package/build/component-separator.cjs.js +1 -2
- package/build/component-separator.d.ts +2 -49
- package/build/component-separator.es.js +2 -5
- package/build/component-stack.cjs.js +1 -2
- package/build/component-stack.d.ts +2 -72
- package/build/component-stack.es.js +3 -6
- package/build/component-textarea.cjs.js +1 -2
- package/build/component-textarea.d.ts +2 -202
- package/build/component-textarea.es.js +2 -6
- package/build/component-toggle.cjs.js +1 -2
- package/build/component-toggle.d.ts +2 -150
- package/build/component-toggle.es.js +2 -6
- package/build/component-tooltip.cjs.js +1 -2
- package/build/component-tooltip.d.ts +2 -360
- package/build/component-tooltip.es.js +2 -10
- package/build/component-typography.cjs.js +1 -2
- package/build/component-typography.d.ts +2 -316
- package/build/component-typography.es.js +3 -9
- package/build/components/button/component.d.ts +3 -0
- package/build/components/button/component.types.d.ts +41 -0
- package/build/components/button/index.d.ts +2 -0
- package/build/components/checkbox/component.d.ts +3 -0
- package/build/components/checkbox/component.types.d.ts +51 -0
- package/build/components/checkbox/index.d.ts +2 -0
- package/build/components/date-picker/component.d.ts +2 -0
- package/build/components/date-picker/component.types.d.ts +86 -0
- package/build/components/date-picker/index.d.ts +2 -0
- package/build/components/error/component.d.ts +3 -0
- package/build/components/error/component.types.d.ts +11 -0
- package/build/components/error/index.d.ts +2 -0
- package/build/components/icon/component.consts.d.ts +6 -0
- package/build/components/icon/component.d.ts +9 -0
- package/build/components/icon/component.functions.d.ts +2 -0
- package/build/components/icon/component.hooks.d.ts +5 -0
- package/build/components/icon/component.types.d.ts +47 -0
- package/build/components/icon/index.d.ts +4 -0
- package/build/components/input/component.d.ts +6 -0
- package/build/components/input/component.types.d.ts +78 -0
- package/build/components/input/index.d.ts +2 -0
- package/build/components/input-otp/component.d.ts +2 -0
- package/build/components/input-otp/component.types.d.ts +8 -0
- package/build/components/input-otp/index.d.ts +2 -0
- package/build/components/pagination/component.constants.d.ts +1 -0
- package/build/components/pagination/component.d.ts +3 -0
- package/build/components/pagination/component.types.d.ts +22 -0
- package/build/components/pagination/index.d.ts +2 -0
- package/build/components/popover/component.constants.d.ts +3 -0
- package/build/components/popover/component.d.ts +34 -0
- package/build/components/popover/component.types.d.ts +113 -0
- package/build/components/popover/index.d.ts +2 -0
- package/build/components/select/component.d.ts +4 -0
- package/build/components/select/component.examples.d.ts +6 -0
- package/build/components/select/component.types.d.ts +109 -0
- package/build/components/select/index.d.ts +3 -0
- package/build/components/separator/component.d.ts +3 -0
- package/build/components/separator/component.types.d.ts +10 -0
- package/build/components/separator/index.d.ts +2 -0
- package/build/components/stack/component.d.ts +4 -0
- package/build/components/stack/component.types.d.ts +20 -0
- package/build/components/stack/index.d.ts +2 -0
- package/build/components/textarea/component.d.ts +2 -0
- package/build/components/textarea/component.types.d.ts +67 -0
- package/build/components/textarea/index.d.ts +2 -0
- package/build/components/toggle/component.d.ts +2 -0
- package/build/components/toggle/component.types.d.ts +25 -0
- package/build/components/toggle/index.d.ts +2 -0
- package/build/components/tooltip/component.constants.d.ts +3 -0
- package/build/components/tooltip/component.d.ts +4 -0
- package/build/components/tooltip/component.types.d.ts +12 -0
- package/build/components/tooltip/index.d.ts +2 -0
- package/build/components/typography/component.d.ts +3 -0
- package/build/components/typography/component.types.d.ts +18 -0
- package/build/components/typography/index.d.ts +2 -0
- package/build/components-error.cjs.js +1 -0
- package/build/components-error.d.ts +2 -0
- package/build/components-error.es.js +4 -0
- package/build/context-app-4_kY3Qcd.js +417 -0
- package/build/context-app-4_kY3Qcd.js.map +1 -0
- package/build/context-app-DKsS6_WR.cjs +9 -0
- package/build/context-app-DKsS6_WR.cjs.map +1 -0
- package/build/context-app.cjs.js +1 -2
- package/build/context-app.d.ts +2 -224
- package/build/context-app.es.js +3 -19
- package/build/context-browser-theme-CPhqqRUP.js +35 -0
- package/build/context-browser-theme-CPhqqRUP.js.map +1 -0
- package/build/context-browser-theme-o9geUlSH.cjs +3 -0
- package/build/context-browser-theme-o9geUlSH.cjs.map +1 -0
- package/build/context-browser-theme.cjs.js +1 -0
- package/build/context-browser-theme.d.ts +2 -0
- package/build/context-browser-theme.es.js +5 -0
- package/build/context-cookie-5CBhf-gb.js +138 -0
- package/build/context-cookie-5CBhf-gb.js.map +1 -0
- package/build/context-cookie-CvTU44MD.cjs +3 -0
- package/build/context-cookie-CvTU44MD.cjs.map +1 -0
- package/build/context-cookie.cjs.js +1 -2
- package/build/context-cookie.d.ts +2 -67
- package/build/context-cookie.es.js +3 -8
- package/build/context-dialog-CCnhd1EY.cjs +3 -0
- package/build/context-dialog-CCnhd1EY.cjs.map +1 -0
- package/build/context-dialog-HLeQ5WNn.js +176 -0
- package/build/context-dialog-HLeQ5WNn.js.map +1 -0
- package/build/context-dialog.cjs.js +1 -2
- package/build/context-dialog.d.ts +2 -106
- package/build/context-dialog.es.js +4 -17
- package/build/context-geolocation-C7PYGQ2g.js +42 -0
- package/build/context-geolocation-C7PYGQ2g.js.map +1 -0
- package/build/context-geolocation-ffFFV4kn.cjs +3 -0
- package/build/context-geolocation-ffFFV4kn.cjs.map +1 -0
- package/build/context-geolocation.cjs.js +1 -2
- package/build/context-geolocation.d.ts +2 -22
- package/build/context-geolocation.es.js +3 -6
- package/build/context-local-storage-Bb_vktd8.js +83 -0
- package/build/context-local-storage-Bb_vktd8.js.map +1 -0
- package/build/context-local-storage-kmxWNK_4.cjs +3 -0
- package/build/context-local-storage-kmxWNK_4.cjs.map +1 -0
- package/build/context-local-storage.cjs.js +1 -2
- package/build/context-local-storage.d.ts +2 -54
- package/build/context-local-storage.es.js +3 -8
- package/build/context-permission-Co4BKDOu.js +77 -0
- package/build/context-permission-Co4BKDOu.js.map +1 -0
- package/build/context-permission-K3tWOiAx.cjs +3 -0
- package/build/context-permission-K3tWOiAx.cjs.map +1 -0
- package/build/context-permission.cjs.js +1 -2
- package/build/context-permission.d.ts +2 -28
- package/build/context-permission.es.js +3 -7
- package/build/context-screen-width-CEsyIyg6.js +53 -0
- package/build/context-screen-width-CEsyIyg6.js.map +1 -0
- package/build/context-screen-width-ind6z7Ny.cjs +3 -0
- package/build/context-screen-width-ind6z7Ny.cjs.map +1 -0
- package/build/context-screen-width.cjs.js +1 -2
- package/build/context-screen-width.d.ts +2 -34
- package/build/context-screen-width.es.js +3 -5
- package/build/context-sonner-Bniiz914.js +218 -0
- package/build/context-sonner-Bniiz914.js.map +1 -0
- package/build/context-sonner-L0OMEvZE.cjs +3 -0
- package/build/context-sonner-L0OMEvZE.cjs.map +1 -0
- package/build/context-sonner.cjs.js +1 -2
- package/build/context-sonner.d.ts +2 -457
- package/build/context-sonner.es.js +3 -20
- package/build/contexts/context-app/context.d.ts +33 -0
- package/build/contexts/context-app/context.hooks.d.ts +2 -0
- package/build/contexts/context-app/context.styles.d.ts +14 -0
- package/build/contexts/context-app/context.types.d.ts +87 -0
- package/build/contexts/context-app/index.d.ts +2 -0
- package/build/contexts/context-browser-theme/context.d.ts +4 -0
- package/build/contexts/context-browser-theme/context.hooks.d.ts +2 -0
- package/build/contexts/context-browser-theme/context.types.d.ts +12 -0
- package/build/contexts/context-browser-theme/index.d.ts +2 -0
- package/build/contexts/context-cookie/context.d.ts +27 -0
- package/build/contexts/context-cookie/context.functions.d.ts +3 -0
- package/build/contexts/context-cookie/context.hooks.d.ts +9 -0
- package/build/contexts/context-cookie/context.types.d.ts +18 -0
- package/build/contexts/context-cookie/index.d.ts +3 -0
- package/build/contexts/context-dialog/context.constants.d.ts +8 -0
- package/build/contexts/context-dialog/context.d.ts +4 -0
- package/build/contexts/context-dialog/context.hooks.d.ts +3 -0
- package/build/contexts/context-dialog/context.styles.d.ts +9 -0
- package/build/contexts/context-dialog/context.types.d.ts +47 -0
- package/build/contexts/context-dialog/index.d.ts +3 -0
- package/build/contexts/context-geolocation/context.d.ts +4 -0
- package/build/contexts/context-geolocation/context.hooks.d.ts +2 -0
- package/build/contexts/context-geolocation/context.types.d.ts +10 -0
- package/build/contexts/context-geolocation/index.d.ts +2 -0
- package/build/contexts/context-local-storage/context.d.ts +21 -0
- package/build/contexts/context-local-storage/context.functions.d.ts +2 -0
- package/build/contexts/context-local-storage/context.hooks.d.ts +5 -0
- package/build/contexts/context-local-storage/context.types.d.ts +16 -0
- package/build/contexts/context-local-storage/index.d.ts +3 -0
- package/build/contexts/context-permission/context.d.ts +3 -0
- package/build/contexts/context-permission/context.functions.d.ts +1 -0
- package/build/contexts/context-permission/context.hooks.d.ts +5 -0
- package/build/contexts/context-permission/context.types.d.ts +11 -0
- package/build/contexts/context-permission/index.d.ts +2 -0
- package/build/contexts/context-screen-width/context.d.ts +4 -0
- package/build/contexts/context-screen-width/context.hooks.d.ts +2 -0
- package/build/contexts/context-screen-width/context.types.d.ts +11 -0
- package/build/contexts/context-screen-width/index.d.ts +3 -0
- package/build/contexts/context-sonner/context.constants.d.ts +9 -0
- package/build/contexts/context-sonner/context.d.ts +4 -0
- package/build/contexts/context-sonner/context.hooks.d.ts +2 -0
- package/build/contexts/context-sonner/context.styles.d.ts +30 -0
- package/build/contexts/context-sonner/context.types.d.ts +59 -0
- package/build/contexts/context-sonner/index.d.ts +3 -0
- package/build/cores/consts.d.ts +30 -0
- package/build/{functions.d.ts → cores/functions.d.ts} +18 -22
- package/build/cores/logger.d.ts +1 -0
- package/build/cores/types.d.ts +18 -0
- package/build/date-picker-CQUe3ZXt.cjs +3 -0
- package/build/date-picker-CQUe3ZXt.cjs.map +1 -0
- package/build/date-picker-z3LcE7Ab.js +689 -0
- package/build/date-picker-z3LcE7Ab.js.map +1 -0
- package/build/dist-C8r_OdG1.cjs +3 -0
- package/build/dist-C8r_OdG1.cjs.map +1 -0
- package/build/dist-Dq_YJa2q.js +483 -0
- package/build/dist-Dq_YJa2q.js.map +1 -0
- package/build/error--kiPVmoi.cjs +3 -0
- package/build/error--kiPVmoi.cjs.map +1 -0
- package/build/error-D1UNY-0f.js +50 -0
- package/build/error-D1UNY-0f.js.map +1 -0
- package/build/functions-CLGf7hqw.js +20 -0
- package/build/functions-CLGf7hqw.js.map +1 -0
- package/build/functions-Dwo54amB.cjs +3 -0
- package/build/functions-Dwo54amB.cjs.map +1 -0
- package/build/hooks/use-debounced-callback/index.d.ts +1 -0
- package/build/hooks/use-debounced-callback/use.d.ts +1 -0
- package/build/hooks/use-deep-compare-memoize/index.d.ts +1 -0
- package/build/hooks/use-deep-compare-memoize/use.d.ts +1 -0
- package/build/hooks/use-deep-memo/index.d.ts +1 -0
- package/build/hooks/use-deep-memo/use.d.ts +1 -0
- package/build/hooks/use-merge-refs/index.d.ts +1 -0
- package/build/hooks/use-merge-refs/use.d.ts +2 -0
- package/build/hooks/use-overflowing/index.d.ts +2 -0
- package/build/hooks/use-overflowing/use.d.ts +12 -0
- package/build/hooks/use-overflowing/use.types.d.ts +6 -0
- package/build/hooks/use-overflowing-advanced/index.d.ts +2 -0
- package/build/hooks/use-overflowing-advanced/use.d.ts +7 -0
- package/build/hooks/use-overflowing-advanced/use.types.d.ts +5 -0
- package/build/hooks/use-overflowing-in-container/index.d.ts +2 -0
- package/build/hooks/use-overflowing-in-container/use.d.ts +7 -0
- package/build/hooks/use-overflowing-in-container/use.types.d.ts +7 -0
- package/build/hooks/use-responsive-layout/index.d.ts +1 -0
- package/build/hooks/use-responsive-layout/use.d.ts +2 -0
- package/build/hooks/use-typography-styles/index.d.ts +2 -0
- package/build/hooks/use-typography-styles/use.d.ts +2 -0
- package/build/hooks/use-typography-styles/use.types.d.ts +11 -0
- package/build/hooks-use-debounced-callback.cjs.js +3 -2
- package/build/hooks-use-debounced-callback.cjs.js.map +1 -1
- package/build/hooks-use-debounced-callback.d.ts +2 -3
- package/build/hooks-use-debounced-callback.es.js +12 -3
- package/build/hooks-use-debounced-callback.es.js.map +1 -1
- package/build/hooks-use-deep-compare-memoize.cjs.js +3 -2
- package/build/hooks-use-deep-compare-memoize.cjs.js.map +1 -1
- package/build/hooks-use-deep-compare-memoize.d.ts +2 -3
- package/build/hooks-use-deep-compare-memoize.es.js +10 -3
- package/build/hooks-use-deep-compare-memoize.es.js.map +1 -1
- package/build/hooks-use-deep-memo.cjs.js +3 -0
- package/build/hooks-use-deep-memo.cjs.js.map +1 -0
- package/build/hooks-use-deep-memo.d.ts +2 -0
- package/build/hooks-use-deep-memo.es.js +13 -0
- package/build/hooks-use-deep-memo.es.js.map +1 -0
- package/build/hooks-use-merge-refs.cjs.js +3 -0
- package/build/hooks-use-merge-refs.cjs.js.map +1 -0
- package/build/hooks-use-merge-refs.d.ts +2 -0
- package/build/hooks-use-merge-refs.es.js +13 -0
- package/build/hooks-use-merge-refs.es.js.map +1 -0
- package/build/hooks-use-overflowing-advanced.cjs.js +3 -0
- package/build/hooks-use-overflowing-advanced.cjs.js.map +1 -0
- package/build/hooks-use-overflowing-advanced.d.ts +2 -0
- package/build/hooks-use-overflowing-advanced.es.js +24 -0
- package/build/hooks-use-overflowing-advanced.es.js.map +1 -0
- package/build/hooks-use-overflowing-in-container.cjs.js +3 -0
- package/build/hooks-use-overflowing-in-container.cjs.js.map +1 -0
- package/build/hooks-use-overflowing-in-container.d.ts +2 -0
- package/build/hooks-use-overflowing-in-container.es.js +20 -0
- package/build/hooks-use-overflowing-in-container.es.js.map +1 -0
- package/build/hooks-use-overflowing.cjs.js +3 -0
- package/build/hooks-use-overflowing.cjs.js.map +1 -0
- package/build/hooks-use-overflowing.d.ts +2 -0
- package/build/hooks-use-overflowing.es.js +28 -0
- package/build/hooks-use-overflowing.es.js.map +1 -0
- package/build/hooks-use-responsive-layout.cjs.js +3 -0
- package/build/hooks-use-responsive-layout.cjs.js.map +1 -0
- package/build/hooks-use-responsive-layout.d.ts +2 -0
- package/build/hooks-use-responsive-layout.es.js +22 -0
- package/build/hooks-use-responsive-layout.es.js.map +1 -0
- package/build/hooks-use-typography-styles.cjs.js +3 -0
- package/build/hooks-use-typography-styles.cjs.js.map +1 -0
- package/build/hooks-use-typography-styles.d.ts +2 -0
- package/build/hooks-use-typography-styles.es.js +37 -0
- package/build/hooks-use-typography-styles.es.js.map +1 -0
- package/build/icon-BG6R5Lfa.js +277 -0
- package/build/icon-BG6R5Lfa.js.map +1 -0
- package/build/icon-CreblPsB.cjs +3 -0
- package/build/icon-CreblPsB.cjs.map +1 -0
- package/build/index.cjs.js +1 -2
- package/build/index.d.ts +39 -2494
- package/build/index.es.js +104 -309
- package/build/input-CWcWWMCp.cjs +11 -0
- package/build/input-CWcWWMCp.cjs.map +1 -0
- package/build/input-DqMLnOz5.js +917 -0
- package/build/input-DqMLnOz5.js.map +1 -0
- package/build/input-otp-DPp3qmvI.js +106 -0
- package/build/input-otp-DPp3qmvI.js.map +1 -0
- package/build/input-otp-Z_wz6o6L.cjs +3 -0
- package/build/input-otp-Z_wz6o6L.cjs.map +1 -0
- package/build/isEqual-VCZu3vai.js +675 -0
- package/build/isEqual-VCZu3vai.js.map +1 -0
- package/build/isEqual-wc3RBuBi.cjs +3 -0
- package/build/isEqual-wc3RBuBi.cjs.map +1 -0
- package/build/logger-BRWLzI5S.js +174 -0
- package/build/logger-BRWLzI5S.js.map +1 -0
- package/build/logger-DZFY33QY.cjs +5 -0
- package/build/logger-DZFY33QY.cjs.map +1 -0
- package/build/motion-BeQRGZxW.cjs +3 -0
- package/build/motion-BeQRGZxW.cjs.map +1 -0
- package/build/motion-Ot_yGWVJ.js +128 -0
- package/build/motion-Ot_yGWVJ.js.map +1 -0
- package/build/outside-BtjOuCPD.js +24 -0
- package/build/outside-BtjOuCPD.js.map +1 -0
- package/build/outside-DJ1B9sBT.cjs +3 -0
- package/build/outside-DJ1B9sBT.cjs.map +1 -0
- package/build/pagination-BnvQ1aha.cjs +3 -0
- package/build/pagination-BnvQ1aha.cjs.map +1 -0
- package/build/pagination-CpaP3Svg.js +110 -0
- package/build/pagination-CpaP3Svg.js.map +1 -0
- package/build/popover-1k1MNFwv.js +1948 -0
- package/build/popover-1k1MNFwv.js.map +1 -0
- package/build/popover-fte_EMYr.cjs +3 -0
- package/build/popover-fte_EMYr.cjs.map +1 -0
- package/build/preview-BvJN6QoV.js +65 -0
- package/build/preview-BvJN6QoV.js.map +1 -0
- package/build/preview-CG76AiC9.cjs +3 -0
- package/build/preview-CG76AiC9.cjs.map +1 -0
- package/build/proxy-D2Z8K6jr.cjs +3 -0
- package/build/proxy-D2Z8K6jr.cjs.map +1 -0
- package/build/proxy-DTLy-pV-.js +4354 -0
- package/build/proxy-DTLy-pV-.js.map +1 -0
- package/build/select-B4JeEvIF.js +3443 -0
- package/build/select-B4JeEvIF.js.map +1 -0
- package/build/select-BQtWzaxE.cjs +9 -0
- package/build/select-BQtWzaxE.cjs.map +1 -0
- package/build/separator-BXoT44nC.cjs +3 -0
- package/build/separator-BXoT44nC.cjs.map +1 -0
- package/build/separator-hWp-s54-.js +29 -0
- package/build/separator-hWp-s54-.js.map +1 -0
- package/build/skeleton-BOfnrUaI.cjs +3 -0
- package/build/skeleton-BOfnrUaI.cjs.map +1 -0
- package/build/skeleton-Bzr92XmL.js +39 -0
- package/build/skeleton-Bzr92XmL.js.map +1 -0
- package/build/style-motion.cjs.js +1 -2
- package/build/style-motion.d.ts +2 -20
- package/build/style-motion.es.js +5 -6
- package/build/style-utils.cjs.js +1 -0
- package/build/style-utils.d.ts +2 -0
- package/build/style-utils.es.js +7 -0
- package/build/styles/motion/index.d.ts +1 -0
- package/build/styles/motion/motion.d.ts +13 -0
- package/build/styles/utils/constants.d.ts +1797 -0
- package/build/styles/utils/functions.d.ts +3 -0
- package/build/styles/utils/index.d.ts +3 -0
- package/build/styles/utils/types.d.ts +68 -0
- package/build/textarea-BRzorAFw.cjs +3 -0
- package/build/textarea-BRzorAFw.cjs.map +1 -0
- package/build/textarea-BssfjUe3.js +132 -0
- package/build/textarea-BssfjUe3.js.map +1 -0
- package/build/toggle-BFp9Nmas.cjs +3 -0
- package/build/toggle-BFp9Nmas.cjs.map +1 -0
- package/build/toggle-CCfZoBpW.js +86 -0
- package/build/toggle-CCfZoBpW.js.map +1 -0
- package/build/typography-B2KioMfq.js +116 -0
- package/build/typography-B2KioMfq.js.map +1 -0
- package/build/typography-whjfut7N.cjs +3 -0
- package/build/typography-whjfut7N.cjs.map +1 -0
- package/build/utils-Cona48dZ.js +925 -0
- package/build/utils-Cona48dZ.js.map +1 -0
- package/build/utils-DtinAjAU.cjs +3 -0
- package/build/utils-DtinAjAU.cjs.map +1 -0
- package/build/v4-BDi_Luux.cjs +3 -0
- package/build/v4-BDi_Luux.cjs.map +1 -0
- package/build/v4-CYaPyb-W.js +31 -0
- package/build/v4-CYaPyb-W.js.map +1 -0
- package/package.json +189 -194
- package/build/area-0BNtBqG8.cjs +0 -2
- package/build/area-0BNtBqG8.cjs.map +0 -1
- package/build/area-B6xxVQ87.js +0 -35
- package/build/area-B6xxVQ87.js.map +0 -1
- package/build/area-B7-4IFQB.js +0 -19
- package/build/area-B7-4IFQB.js.map +0 -1
- package/build/area-DxKLtDFZ.cjs +0 -2
- package/build/area-DxKLtDFZ.cjs.map +0 -1
- package/build/area-outside.cjs.js.map +0 -1
- package/build/area-outside.es.js.map +0 -1
- package/build/area-preview.cjs.js.map +0 -1
- package/build/area-preview.es.js.map +0 -1
- package/build/area-scroll.cjs.js +0 -2
- package/build/area-scroll.cjs.js.map +0 -1
- package/build/area-scroll.d.ts +0 -57
- package/build/area-scroll.es.js +0 -7
- package/build/area-scroll.es.js.map +0 -1
- package/build/area-skeleton.cjs.js.map +0 -1
- package/build/area-skeleton.es.js.map +0 -1
- package/build/area-smooth.cjs.js +0 -2
- package/build/area-smooth.cjs.js.map +0 -1
- package/build/area-smooth.d.ts +0 -37
- package/build/area-smooth.es.js +0 -5
- package/build/area-smooth.es.js.map +0 -1
- package/build/area.hooks-Bk04M7mk.js +0 -26
- package/build/area.hooks-Bk04M7mk.js.map +0 -1
- package/build/area.hooks-C_UKZzcb.cjs +0 -2
- package/build/area.hooks-C_UKZzcb.cjs.map +0 -1
- package/build/area.styles-Cpx4H0gc.cjs +0 -27
- package/build/area.styles-Cpx4H0gc.cjs.map +0 -1
- package/build/area.styles-DhCCEhuq.js +0 -32
- package/build/area.styles-DhCCEhuq.js.map +0 -1
- package/build/component-B0PbrKuJ.cjs +0 -2
- package/build/component-B0PbrKuJ.cjs.map +0 -1
- package/build/component-BBrKC5hB.js +0 -84
- package/build/component-BBrKC5hB.js.map +0 -1
- package/build/component-BMIqhbpK.js +0 -23
- package/build/component-BMIqhbpK.js.map +0 -1
- package/build/component-BlEglNo9.js +0 -60
- package/build/component-BlEglNo9.js.map +0 -1
- package/build/component-CONSm7hH.cjs +0 -2
- package/build/component-CONSm7hH.cjs.map +0 -1
- package/build/component-CPVG0orB.js +0 -50
- package/build/component-CPVG0orB.js.map +0 -1
- package/build/component-CTrSBI75.js +0 -64
- package/build/component-CTrSBI75.js.map +0 -1
- package/build/component-CWawez-M.js +0 -443
- package/build/component-CWawez-M.js.map +0 -1
- package/build/component-CZM5p4mC.js +0 -74
- package/build/component-CZM5p4mC.js.map +0 -1
- package/build/component-Cfs39n8Q.js +0 -21
- package/build/component-Cfs39n8Q.js.map +0 -1
- package/build/component-CoOTSdM5.cjs +0 -28
- package/build/component-CoOTSdM5.cjs.map +0 -1
- package/build/component-Cu2i_-RT.cjs +0 -2
- package/build/component-Cu2i_-RT.cjs.map +0 -1
- package/build/component-D-HMYzXU.js +0 -65
- package/build/component-D-HMYzXU.js.map +0 -1
- package/build/component-DGpaKn6_.js +0 -248
- package/build/component-DGpaKn6_.js.map +0 -1
- package/build/component-DJAq34yj.cjs +0 -2
- package/build/component-DJAq34yj.cjs.map +0 -1
- package/build/component-DKzHmIUP.js +0 -10
- package/build/component-DKzHmIUP.js.map +0 -1
- package/build/component-Dkw50gzn.cjs +0 -2
- package/build/component-Dkw50gzn.cjs.map +0 -1
- package/build/component-DqV_-YxZ.cjs +0 -2
- package/build/component-DqV_-YxZ.cjs.map +0 -1
- package/build/component-Dy66XPIf.cjs +0 -2
- package/build/component-Dy66XPIf.cjs.map +0 -1
- package/build/component-DyLdklDO.cjs +0 -2
- package/build/component-DyLdklDO.cjs.map +0 -1
- package/build/component-LG-duo2b.cjs +0 -2
- package/build/component-LG-duo2b.cjs.map +0 -1
- package/build/component-PZe4p8qh.cjs +0 -2
- package/build/component-PZe4p8qh.cjs.map +0 -1
- package/build/component-RlcwDmkg.js +0 -39
- package/build/component-RlcwDmkg.js.map +0 -1
- package/build/component-ZdZUAyaP.cjs +0 -2
- package/build/component-ZdZUAyaP.cjs.map +0 -1
- package/build/component-accordion.cjs.js +0 -2
- package/build/component-accordion.cjs.js.map +0 -1
- package/build/component-accordion.d.ts +0 -100
- package/build/component-accordion.es.js +0 -11
- package/build/component-accordion.es.js.map +0 -1
- package/build/component-buGvmEo6.cjs +0 -2
- package/build/component-buGvmEo6.cjs.map +0 -1
- package/build/component-button-group.cjs.js +0 -2
- package/build/component-button-group.cjs.js.map +0 -1
- package/build/component-button-group.d.ts +0 -195
- package/build/component-button-group.es.js +0 -7
- package/build/component-button-group.es.js.map +0 -1
- package/build/component-button.cjs.js.map +0 -1
- package/build/component-button.es.js.map +0 -1
- package/build/component-checkbox-group.cjs.js +0 -2
- package/build/component-checkbox-group.cjs.js.map +0 -1
- package/build/component-checkbox-group.d.ts +0 -224
- package/build/component-checkbox-group.es.js +0 -12
- package/build/component-checkbox-group.es.js.map +0 -1
- package/build/component-checkbox.cjs.js.map +0 -1
- package/build/component-checkbox.es.js.map +0 -1
- package/build/component-date-picker.cjs.js.map +0 -1
- package/build/component-date-picker.es.js.map +0 -1
- package/build/component-gcvwlILJ.js +0 -76
- package/build/component-gcvwlILJ.js.map +0 -1
- package/build/component-icon.cjs.js.map +0 -1
- package/build/component-icon.es.js.map +0 -1
- package/build/component-image-button.cjs.js +0 -2
- package/build/component-image-button.cjs.js.map +0 -1
- package/build/component-image-button.d.ts +0 -215
- package/build/component-image-button.es.js +0 -5
- package/build/component-image-button.es.js.map +0 -1
- package/build/component-image-select.cjs.js +0 -2
- package/build/component-image-select.cjs.js.map +0 -1
- package/build/component-image-select.d.ts +0 -313
- package/build/component-image-select.es.js +0 -12
- package/build/component-image-select.es.js.map +0 -1
- package/build/component-image-slider.cjs.js +0 -2
- package/build/component-image-slider.cjs.js.map +0 -1
- package/build/component-image-slider.d.ts +0 -108
- package/build/component-image-slider.es.js +0 -9
- package/build/component-image-slider.es.js.map +0 -1
- package/build/component-image.cjs.js +0 -2
- package/build/component-image.cjs.js.map +0 -1
- package/build/component-image.d.ts +0 -51
- package/build/component-image.es.js +0 -7
- package/build/component-image.es.js.map +0 -1
- package/build/component-input-otp.cjs.js.map +0 -1
- package/build/component-input-otp.es.js.map +0 -1
- package/build/component-input.cjs.js.map +0 -1
- package/build/component-input.es.js.map +0 -1
- package/build/component-pagination.cjs.js.map +0 -1
- package/build/component-pagination.es.js.map +0 -1
- package/build/component-range.cjs.js +0 -2
- package/build/component-range.cjs.js.map +0 -1
- package/build/component-range.d.ts +0 -212
- package/build/component-range.es.js +0 -9
- package/build/component-range.es.js.map +0 -1
- package/build/component-ripple.cjs.js +0 -2
- package/build/component-ripple.cjs.js.map +0 -1
- package/build/component-ripple.d.ts +0 -47
- package/build/component-ripple.es.js +0 -12
- package/build/component-ripple.es.js.map +0 -1
- package/build/component-sNGsB3JK.js +0 -88
- package/build/component-sNGsB3JK.js.map +0 -1
- package/build/component-sVzC5XUR.cjs +0 -2
- package/build/component-sVzC5XUR.cjs.map +0 -1
- package/build/component-select.cjs.js.map +0 -1
- package/build/component-select.es.js.map +0 -1
- package/build/component-separator.cjs.js.map +0 -1
- package/build/component-separator.es.js.map +0 -1
- package/build/component-stack.cjs.js.map +0 -1
- package/build/component-stack.es.js.map +0 -1
- package/build/component-textarea.cjs.js.map +0 -1
- package/build/component-textarea.es.js.map +0 -1
- package/build/component-toggle.cjs.js.map +0 -1
- package/build/component-toggle.es.js.map +0 -1
- package/build/component-tooltip.cjs.js.map +0 -1
- package/build/component-tooltip.es.js.map +0 -1
- package/build/component-typography.cjs.js.map +0 -1
- package/build/component-typography.es.js.map +0 -1
- package/build/component-wOmehMbn.js +0 -170
- package/build/component-wOmehMbn.js.map +0 -1
- package/build/component-zLIAB2HV.cjs +0 -2
- package/build/component-zLIAB2HV.cjs.map +0 -1
- package/build/component.constants-CJcoXCFC.js +0 -757
- package/build/component.constants-CJcoXCFC.js.map +0 -1
- package/build/component.constants-Ctj7PsM8.cjs +0 -2
- package/build/component.constants-Ctj7PsM8.cjs.map +0 -1
- package/build/component.constants-CzKFXlYT.cjs +0 -2
- package/build/component.constants-CzKFXlYT.cjs.map +0 -1
- package/build/component.constants-DjzlauTL.js +0 -142
- package/build/component.constants-DjzlauTL.js.map +0 -1
- package/build/component.functions-D9ffjEok.cjs +0 -8
- package/build/component.functions-D9ffjEok.cjs.map +0 -1
- package/build/component.functions-DNW6h8kk.js +0 -12
- package/build/component.functions-DNW6h8kk.js.map +0 -1
- package/build/component.styles-BX2Aiqp_.cjs +0 -43
- package/build/component.styles-BX2Aiqp_.cjs.map +0 -1
- package/build/component.styles-C0oU5oX_.js +0 -59
- package/build/component.styles-C0oU5oX_.js.map +0 -1
- package/build/component.styles-CD6ZzRrk.cjs +0 -14
- package/build/component.styles-CD6ZzRrk.cjs.map +0 -1
- package/build/component.styles-SZ5VuhNG.js +0 -20
- package/build/component.styles-SZ5VuhNG.js.map +0 -1
- package/build/component.types-CryJGkU7.js +0 -907
- package/build/component.types-CryJGkU7.js.map +0 -1
- package/build/component.types-Drt-O54w.cjs +0 -2
- package/build/component.types-Drt-O54w.cjs.map +0 -1
- package/build/consts.cjs.js +0 -2
- package/build/consts.cjs.js.map +0 -1
- package/build/consts.d.ts +0 -77
- package/build/consts.es.js +0 -151
- package/build/consts.es.js.map +0 -1
- package/build/context-B1id3uai.cjs +0 -2
- package/build/context-B1id3uai.cjs.map +0 -1
- package/build/context-B8kTBKjt.cjs +0 -2
- package/build/context-B8kTBKjt.cjs.map +0 -1
- package/build/context-BkovkNHQ.js +0 -117
- package/build/context-BkovkNHQ.js.map +0 -1
- package/build/context-C0_RNFp_.js +0 -195
- package/build/context-C0_RNFp_.js.map +0 -1
- package/build/context-DyTE2I_6.cjs +0 -4
- package/build/context-DyTE2I_6.cjs.map +0 -1
- package/build/context-LBih45kv.js +0 -44
- package/build/context-LBih45kv.js.map +0 -1
- package/build/context-app.cjs.js.map +0 -1
- package/build/context-app.es.js.map +0 -1
- package/build/context-cookie.cjs.js.map +0 -1
- package/build/context-cookie.es.js.map +0 -1
- package/build/context-dialog.cjs.js.map +0 -1
- package/build/context-dialog.es.js.map +0 -1
- package/build/context-geolocation.cjs.js.map +0 -1
- package/build/context-geolocation.es.js.map +0 -1
- package/build/context-local-storage.cjs.js.map +0 -1
- package/build/context-local-storage.es.js.map +0 -1
- package/build/context-permission.cjs.js.map +0 -1
- package/build/context-permission.es.js.map +0 -1
- package/build/context-screen-width.cjs.js.map +0 -1
- package/build/context-screen-width.es.js.map +0 -1
- package/build/context-sonner.cjs.js.map +0 -1
- package/build/context-sonner.es.js.map +0 -1
- package/build/context.constants-Bzn9Rcey.cjs +0 -32
- package/build/context.constants-Bzn9Rcey.cjs.map +0 -1
- package/build/context.constants-D0UjboYX.js +0 -12593
- package/build/context.constants-D0UjboYX.js.map +0 -1
- package/build/context.constants-DUVlJghM.js +0 -249
- package/build/context.constants-DUVlJghM.js.map +0 -1
- package/build/context.constants-gXk1ewxx.cjs +0 -1742
- package/build/context.constants-gXk1ewxx.cjs.map +0 -1
- package/build/context.functions-B8FDl7nJ.js +0 -14
- package/build/context.functions-B8FDl7nJ.js.map +0 -1
- package/build/context.functions-BqeTmcmr.cjs +0 -2
- package/build/context.functions-BqeTmcmr.cjs.map +0 -1
- package/build/context.functions-D2K4Xk47.js +0 -35
- package/build/context.functions-D2K4Xk47.js.map +0 -1
- package/build/context.functions-Duwzgcga.cjs +0 -2
- package/build/context.functions-Duwzgcga.cjs.map +0 -1
- package/build/context.functions-ObfwvEVG.js +0 -35
- package/build/context.functions-ObfwvEVG.js.map +0 -1
- package/build/context.functions-ar41xFVo.cjs +0 -2
- package/build/context.functions-ar41xFVo.cjs.map +0 -1
- package/build/context.hooks-B9dsW2kz.js +0 -117
- package/build/context.hooks-B9dsW2kz.js.map +0 -1
- package/build/context.hooks-Bkj1PSKe.cjs +0 -2
- package/build/context.hooks-Bkj1PSKe.cjs.map +0 -1
- package/build/context.hooks-CCLq09Ra.js +0 -13
- package/build/context.hooks-CCLq09Ra.js.map +0 -1
- package/build/context.hooks-CDvi20Bm.cjs +0 -2
- package/build/context.hooks-CDvi20Bm.cjs.map +0 -1
- package/build/context.hooks-CUXDpPaG.cjs +0 -2
- package/build/context.hooks-CUXDpPaG.cjs.map +0 -1
- package/build/context.hooks-CXJ-eM6d.js +0 -13
- package/build/context.hooks-CXJ-eM6d.js.map +0 -1
- package/build/context.hooks-CYJnoIrt.cjs +0 -2
- package/build/context.hooks-CYJnoIrt.cjs.map +0 -1
- package/build/context.hooks-DDD8ffJI.cjs +0 -2
- package/build/context.hooks-DDD8ffJI.cjs.map +0 -1
- package/build/context.hooks-Djt5R2yX.js +0 -13
- package/build/context.hooks-Djt5R2yX.js.map +0 -1
- package/build/context.hooks-DpwnIiRj.cjs +0 -2
- package/build/context.hooks-DpwnIiRj.cjs.map +0 -1
- package/build/context.hooks-oclt34zD.js +0 -68
- package/build/context.hooks-oclt34zD.js.map +0 -1
- package/build/context.hooks-v8uZ7dfO.js +0 -49
- package/build/context.hooks-v8uZ7dfO.js.map +0 -1
- package/build/functions.cjs.js +0 -2
- package/build/functions.cjs.js.map +0 -1
- package/build/functions.es.js +0 -50
- package/build/functions.es.js.map +0 -1
- package/build/index.cjs.js.map +0 -1
- package/build/index.es.js.map +0 -1
- package/build/jsx-runtime-C6yv_9g1.cjs +0 -11
- package/build/jsx-runtime-C6yv_9g1.cjs.map +0 -1
- package/build/jsx-runtime-DZS36FSE.js +0 -316
- package/build/jsx-runtime-DZS36FSE.js.map +0 -1
- package/build/motion-DrSN18V7.cjs +0 -2
- package/build/motion-DrSN18V7.cjs.map +0 -1
- package/build/motion-K7hUU4gL.js +0 -85
- package/build/motion-K7hUU4gL.js.map +0 -1
- package/build/style-BfuEu91g.js +0 -176
- package/build/style-BfuEu91g.js.map +0 -1
- package/build/style-Drq-Q1Im.cjs +0 -136
- package/build/style-Drq-Q1Im.cjs.map +0 -1
- package/build/style-add.cjs.js +0 -2
- package/build/style-add.cjs.js.map +0 -1
- package/build/style-add.d.ts +0 -88
- package/build/style-add.es.js +0 -17
- package/build/style-add.es.js.map +0 -1
- package/build/style-error.cjs.js +0 -2
- package/build/style-error.cjs.js.map +0 -1
- package/build/style-error.d.ts +0 -99
- package/build/style-error.es.js +0 -7
- package/build/style-error.es.js.map +0 -1
- package/build/style-fRZ6xrVp.cjs +0 -10
- package/build/style-fRZ6xrVp.cjs.map +0 -1
- package/build/style-motion.cjs.js.map +0 -1
- package/build/style-motion.es.js.map +0 -1
- package/build/style-plT9Ah7t.js +0 -33
- package/build/style-plT9Ah7t.js.map +0 -1
- package/build/style-sx.cjs.js +0 -2
- package/build/style-sx.cjs.js.map +0 -1
- package/build/style-sx.d.ts +0 -33
- package/build/style-sx.es.js +0 -5
- package/build/style-sx.es.js.map +0 -1
- package/build/style-theme.cjs.js +0 -2
- package/build/style-theme.cjs.js.map +0 -1
- package/build/style-theme.d.ts +0 -293
- package/build/style-theme.es.js +0 -16
- package/build/style-theme.es.js.map +0 -1
- package/build/types.cjs.js +0 -2
- package/build/types.cjs.js.map +0 -1
- package/build/types.d.ts +0 -27
- package/build/types.es.js +0 -2
- package/build/types.es.js.map +0 -1
- package/build/use-BNuSnUSV.cjs +0 -16
- package/build/use-BNuSnUSV.cjs.map +0 -1
- package/build/use-Bp8UVw4Y.js +0 -16
- package/build/use-Bp8UVw4Y.js.map +0 -1
- package/build/use-C7vngeRk.js +0 -882
- package/build/use-C7vngeRk.js.map +0 -1
- package/build/use-D8uozTND.js +0 -1577
- package/build/use-D8uozTND.js.map +0 -1
- package/build/use-IhzeVumv.cjs +0 -2
- package/build/use-IhzeVumv.cjs.map +0 -1
- package/build/use-zW3LuRc_.cjs +0 -2
- package/build/use-zW3LuRc_.cjs.map +0 -1
|
@@ -0,0 +1,1948 @@
|
|
|
1
|
+
import { i as Y, n as de, r as J } from "./utils-Cona48dZ.js";
|
|
2
|
+
import { n as Mt, t as Ft } from "./functions-CLGf7hqw.js";
|
|
3
|
+
import { useTypographyStyles as It } from "./hooks-use-typography-styles.es.js";
|
|
4
|
+
import { jsx as V, jsxs as Be } from "react/jsx-runtime";
|
|
5
|
+
import * as w from "react";
|
|
6
|
+
import { useCallback as me, useEffect as z, useLayoutEffect as ut, useMemo as he, useRef as le, useState as Pe } from "react";
|
|
7
|
+
import * as ft from "react-dom";
|
|
8
|
+
function Ee() {
|
|
9
|
+
return typeof window < "u";
|
|
10
|
+
}
|
|
11
|
+
function ie(e) {
|
|
12
|
+
return $e(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
13
|
+
}
|
|
14
|
+
function B(e) {
|
|
15
|
+
var t;
|
|
16
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
17
|
+
}
|
|
18
|
+
function j(e) {
|
|
19
|
+
var t;
|
|
20
|
+
return (t = ($e(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
21
|
+
}
|
|
22
|
+
function $e(e) {
|
|
23
|
+
return Ee() ? e instanceof Node || e instanceof B(e).Node : !1;
|
|
24
|
+
}
|
|
25
|
+
function k(e) {
|
|
26
|
+
return Ee() ? e instanceof Element || e instanceof B(e).Element : !1;
|
|
27
|
+
}
|
|
28
|
+
function U(e) {
|
|
29
|
+
return Ee() ? e instanceof HTMLElement || e instanceof B(e).HTMLElement : !1;
|
|
30
|
+
}
|
|
31
|
+
function Me(e) {
|
|
32
|
+
return !Ee() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof B(e).ShadowRoot;
|
|
33
|
+
}
|
|
34
|
+
function fe(e) {
|
|
35
|
+
const { overflow: t, overflowX: n, overflowY: r, display: i } = $(e);
|
|
36
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
37
|
+
}
|
|
38
|
+
function Nt(e) {
|
|
39
|
+
return /^(table|td|th)$/.test(ie(e));
|
|
40
|
+
}
|
|
41
|
+
function Se(e) {
|
|
42
|
+
try {
|
|
43
|
+
if (e.matches(":popover-open")) return !0;
|
|
44
|
+
} catch {
|
|
45
|
+
}
|
|
46
|
+
try {
|
|
47
|
+
return e.matches(":modal");
|
|
48
|
+
} catch {
|
|
49
|
+
return !1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
var kt = /transform|translate|scale|rotate|perspective|filter/, Ht = /paint|layout|strict|content/, ee = (e) => !!e && e !== "none", Te;
|
|
53
|
+
function Ve(e) {
|
|
54
|
+
const t = k(e) ? $(e) : e;
|
|
55
|
+
return ee(t.transform) || ee(t.translate) || ee(t.scale) || ee(t.rotate) || ee(t.perspective) || !ze() && (ee(t.backdropFilter) || ee(t.filter)) || kt.test(t.willChange || "") || Ht.test(t.contain || "");
|
|
56
|
+
}
|
|
57
|
+
function Wt(e) {
|
|
58
|
+
let t = G(e);
|
|
59
|
+
for (; U(t) && !re(t); ) {
|
|
60
|
+
if (Ve(t)) return t;
|
|
61
|
+
if (Se(t)) return null;
|
|
62
|
+
t = G(t);
|
|
63
|
+
}
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
function ze() {
|
|
67
|
+
return Te == null && (Te = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Te;
|
|
68
|
+
}
|
|
69
|
+
function re(e) {
|
|
70
|
+
return /^(html|body|#document)$/.test(ie(e));
|
|
71
|
+
}
|
|
72
|
+
function $(e) {
|
|
73
|
+
return B(e).getComputedStyle(e);
|
|
74
|
+
}
|
|
75
|
+
function Oe(e) {
|
|
76
|
+
return k(e) ? {
|
|
77
|
+
scrollLeft: e.scrollLeft,
|
|
78
|
+
scrollTop: e.scrollTop
|
|
79
|
+
} : {
|
|
80
|
+
scrollLeft: e.scrollX,
|
|
81
|
+
scrollTop: e.scrollY
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function G(e) {
|
|
85
|
+
if (ie(e) === "html") return e;
|
|
86
|
+
const t = e.assignedSlot || e.parentNode || Me(e) && e.host || j(e);
|
|
87
|
+
return Me(t) ? t.host : t;
|
|
88
|
+
}
|
|
89
|
+
function dt(e) {
|
|
90
|
+
const t = G(e);
|
|
91
|
+
return re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : U(t) && fe(t) ? t : dt(t);
|
|
92
|
+
}
|
|
93
|
+
function ae(e, t, n) {
|
|
94
|
+
var r;
|
|
95
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
96
|
+
const i = dt(e), o = i === ((r = e.ownerDocument) == null ? void 0 : r.body), s = B(i);
|
|
97
|
+
if (o) {
|
|
98
|
+
const l = Fe(s);
|
|
99
|
+
return t.concat(s, s.visualViewport || [], fe(i) ? i : [], l && n ? ae(l) : []);
|
|
100
|
+
} else return t.concat(i, ae(i, [], n));
|
|
101
|
+
}
|
|
102
|
+
function Fe(e) {
|
|
103
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
104
|
+
}
|
|
105
|
+
var Z = Math.min, W = Math.max, be = Math.round, ge = Math.floor, _ = (e) => ({
|
|
106
|
+
x: e,
|
|
107
|
+
y: e
|
|
108
|
+
}), Bt = {
|
|
109
|
+
left: "right",
|
|
110
|
+
right: "left",
|
|
111
|
+
bottom: "top",
|
|
112
|
+
top: "bottom"
|
|
113
|
+
};
|
|
114
|
+
function Ie(e, t, n) {
|
|
115
|
+
return W(e, Z(t, n));
|
|
116
|
+
}
|
|
117
|
+
function oe(e, t) {
|
|
118
|
+
return typeof e == "function" ? e(t) : e;
|
|
119
|
+
}
|
|
120
|
+
function Q(e) {
|
|
121
|
+
return e.split("-")[0];
|
|
122
|
+
}
|
|
123
|
+
function se(e) {
|
|
124
|
+
return e.split("-")[1];
|
|
125
|
+
}
|
|
126
|
+
function mt(e) {
|
|
127
|
+
return e === "x" ? "y" : "x";
|
|
128
|
+
}
|
|
129
|
+
function _e(e) {
|
|
130
|
+
return e === "y" ? "height" : "width";
|
|
131
|
+
}
|
|
132
|
+
function q(e) {
|
|
133
|
+
const t = e[0];
|
|
134
|
+
return t === "t" || t === "b" ? "y" : "x";
|
|
135
|
+
}
|
|
136
|
+
function je(e) {
|
|
137
|
+
return mt(q(e));
|
|
138
|
+
}
|
|
139
|
+
function $t(e, t, n) {
|
|
140
|
+
n === void 0 && (n = !1);
|
|
141
|
+
const r = se(e), i = je(e), o = _e(i);
|
|
142
|
+
let s = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
143
|
+
return t.reference[o] > t.floating[o] && (s = we(s)), [s, we(s)];
|
|
144
|
+
}
|
|
145
|
+
function Vt(e) {
|
|
146
|
+
const t = we(e);
|
|
147
|
+
return [
|
|
148
|
+
Ne(e),
|
|
149
|
+
t,
|
|
150
|
+
Ne(t)
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
function Ne(e) {
|
|
154
|
+
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
155
|
+
}
|
|
156
|
+
var Ye = ["left", "right"], Ke = ["right", "left"], zt = ["top", "bottom"], _t = ["bottom", "top"];
|
|
157
|
+
function jt(e, t, n) {
|
|
158
|
+
switch (e) {
|
|
159
|
+
case "top":
|
|
160
|
+
case "bottom":
|
|
161
|
+
return n ? t ? Ke : Ye : t ? Ye : Ke;
|
|
162
|
+
case "left":
|
|
163
|
+
case "right":
|
|
164
|
+
return t ? zt : _t;
|
|
165
|
+
default:
|
|
166
|
+
return [];
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
function qt(e, t, n, r) {
|
|
170
|
+
const i = se(e);
|
|
171
|
+
let o = jt(Q(e), n === "start", r);
|
|
172
|
+
return i && (o = o.map((s) => s + "-" + i), t && (o = o.concat(o.map(Ne)))), o;
|
|
173
|
+
}
|
|
174
|
+
function we(e) {
|
|
175
|
+
const t = Q(e);
|
|
176
|
+
return Bt[t] + e.slice(t.length);
|
|
177
|
+
}
|
|
178
|
+
function Ut(e) {
|
|
179
|
+
return {
|
|
180
|
+
top: 0,
|
|
181
|
+
right: 0,
|
|
182
|
+
bottom: 0,
|
|
183
|
+
left: 0,
|
|
184
|
+
...e
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function gt(e) {
|
|
188
|
+
return typeof e != "number" ? Ut(e) : {
|
|
189
|
+
top: e,
|
|
190
|
+
right: e,
|
|
191
|
+
bottom: e,
|
|
192
|
+
left: e
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
function ye(e) {
|
|
196
|
+
const { x: t, y: n, width: r, height: i } = e;
|
|
197
|
+
return {
|
|
198
|
+
width: r,
|
|
199
|
+
height: i,
|
|
200
|
+
top: n,
|
|
201
|
+
left: t,
|
|
202
|
+
right: t + r,
|
|
203
|
+
bottom: n + i,
|
|
204
|
+
x: t,
|
|
205
|
+
y: n
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
var Xt = [
|
|
209
|
+
"input:not([inert]):not([inert] *)",
|
|
210
|
+
"select:not([inert]):not([inert] *)",
|
|
211
|
+
"textarea:not([inert]):not([inert] *)",
|
|
212
|
+
"a[href]:not([inert]):not([inert] *)",
|
|
213
|
+
"button:not([inert]):not([inert] *)",
|
|
214
|
+
"[tabindex]:not(slot):not([inert]):not([inert] *)",
|
|
215
|
+
"audio[controls]:not([inert]):not([inert] *)",
|
|
216
|
+
"video[controls]:not([inert]):not([inert] *)",
|
|
217
|
+
'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',
|
|
218
|
+
"details>summary:first-of-type:not([inert]):not([inert] *)",
|
|
219
|
+
"details:not([inert]):not([inert] *)"
|
|
220
|
+
], ke = /* @__PURE__ */ Xt.join(","), ht = typeof Element > "u", ce = ht ? function() {
|
|
221
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, xe = !ht && Element.prototype.getRootNode ? function(e) {
|
|
222
|
+
var t;
|
|
223
|
+
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
224
|
+
} : function(e) {
|
|
225
|
+
return e?.ownerDocument;
|
|
226
|
+
}, pe = function(t, n) {
|
|
227
|
+
var r;
|
|
228
|
+
n === void 0 && (n = !0);
|
|
229
|
+
var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert");
|
|
230
|
+
return i === "" || i === "true" || n && t && (typeof t.closest == "function" ? t.closest("[inert]") : pe(t.parentNode));
|
|
231
|
+
}, Yt = function(t) {
|
|
232
|
+
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
233
|
+
return r === "" || r === "true";
|
|
234
|
+
}, Kt = function(t, n, r) {
|
|
235
|
+
if (pe(t)) return [];
|
|
236
|
+
var i = Array.prototype.slice.apply(t.querySelectorAll(ke));
|
|
237
|
+
return n && ce.call(t, ke) && i.unshift(t), i = i.filter(r), i;
|
|
238
|
+
}, He = function(t, n, r) {
|
|
239
|
+
for (var i = [], o = Array.from(t); o.length; ) {
|
|
240
|
+
var s = o.shift();
|
|
241
|
+
if (!pe(s, !1))
|
|
242
|
+
if (s.tagName === "SLOT") {
|
|
243
|
+
var l = s.assignedElements(), c = He(l.length ? l : s.children, !0, r);
|
|
244
|
+
r.flatten ? i.push.apply(i, c) : i.push({
|
|
245
|
+
scopeParent: s,
|
|
246
|
+
candidates: c
|
|
247
|
+
});
|
|
248
|
+
} else {
|
|
249
|
+
ce.call(s, ke) && r.filter(s) && (n || !t.includes(s)) && i.push(s);
|
|
250
|
+
var u = s.shadowRoot || typeof r.getShadowRoot == "function" && r.getShadowRoot(s), a = !pe(u, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
|
|
251
|
+
if (u && a) {
|
|
252
|
+
var d = He(u === !0 ? s.children : u.children, !0, r);
|
|
253
|
+
r.flatten ? i.push.apply(i, d) : i.push({
|
|
254
|
+
scopeParent: s,
|
|
255
|
+
candidates: d
|
|
256
|
+
});
|
|
257
|
+
} else o.unshift.apply(o, s.children);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return i;
|
|
261
|
+
}, vt = function(t) {
|
|
262
|
+
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
263
|
+
}, bt = function(t) {
|
|
264
|
+
if (!t) throw new Error("No node provided");
|
|
265
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Yt(t)) && !vt(t) ? 0 : t.tabIndex;
|
|
266
|
+
}, Gt = function(t, n) {
|
|
267
|
+
var r = bt(t);
|
|
268
|
+
return r < 0 && n && !vt(t) ? 0 : r;
|
|
269
|
+
}, Zt = function(t, n) {
|
|
270
|
+
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
271
|
+
}, wt = function(t) {
|
|
272
|
+
return t.tagName === "INPUT";
|
|
273
|
+
}, Qt = function(t) {
|
|
274
|
+
return wt(t) && t.type === "hidden";
|
|
275
|
+
}, Jt = function(t) {
|
|
276
|
+
return t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
277
|
+
return n.tagName === "SUMMARY";
|
|
278
|
+
});
|
|
279
|
+
}, en = function(t, n) {
|
|
280
|
+
for (var r = 0; r < t.length; r++) if (t[r].checked && t[r].form === n) return t[r];
|
|
281
|
+
}, tn = function(t) {
|
|
282
|
+
if (!t.name) return !0;
|
|
283
|
+
var n = t.form || xe(t), r = function(l) {
|
|
284
|
+
return n.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
285
|
+
}, i;
|
|
286
|
+
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function") i = r(window.CSS.escape(t.name));
|
|
287
|
+
else try {
|
|
288
|
+
i = r(t.name);
|
|
289
|
+
} catch (s) {
|
|
290
|
+
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
|
|
291
|
+
}
|
|
292
|
+
var o = en(i, t.form);
|
|
293
|
+
return !o || o === t;
|
|
294
|
+
}, nn = function(t) {
|
|
295
|
+
return wt(t) && t.type === "radio";
|
|
296
|
+
}, rn = function(t) {
|
|
297
|
+
return nn(t) && !tn(t);
|
|
298
|
+
}, on = function(t) {
|
|
299
|
+
var n, r = t && xe(t), i = (n = r) === null || n === void 0 ? void 0 : n.host, o = !1;
|
|
300
|
+
if (r && r !== t) {
|
|
301
|
+
var s, l, c;
|
|
302
|
+
for (o = !!((s = i) !== null && s !== void 0 && (l = s.ownerDocument) !== null && l !== void 0 && l.contains(i) || t != null && (c = t.ownerDocument) !== null && c !== void 0 && c.contains(t)); !o && i; ) {
|
|
303
|
+
var u, a, d;
|
|
304
|
+
r = xe(i), i = (u = r) === null || u === void 0 ? void 0 : u.host, o = !!((a = i) !== null && a !== void 0 && (d = a.ownerDocument) !== null && d !== void 0 && d.contains(i));
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return o;
|
|
308
|
+
}, Ge = function(t) {
|
|
309
|
+
var n = t.getBoundingClientRect(), r = n.width, i = n.height;
|
|
310
|
+
return r === 0 && i === 0;
|
|
311
|
+
}, sn = function(t, n) {
|
|
312
|
+
var r = n.displayCheck, i = n.getShadowRoot;
|
|
313
|
+
if (r === "full-native" && "checkVisibility" in t)
|
|
314
|
+
return !t.checkVisibility({
|
|
315
|
+
checkOpacity: !1,
|
|
316
|
+
opacityProperty: !1,
|
|
317
|
+
contentVisibilityAuto: !0,
|
|
318
|
+
visibilityProperty: !0,
|
|
319
|
+
checkVisibilityCSS: !0
|
|
320
|
+
});
|
|
321
|
+
if (getComputedStyle(t).visibility === "hidden") return !0;
|
|
322
|
+
var o = ce.call(t, "details>summary:first-of-type") ? t.parentElement : t;
|
|
323
|
+
if (ce.call(o, "details:not([open]) *")) return !0;
|
|
324
|
+
if (!r || r === "full" || r === "full-native" || r === "legacy-full") {
|
|
325
|
+
if (typeof i == "function") {
|
|
326
|
+
for (var s = t; t; ) {
|
|
327
|
+
var l = t.parentElement, c = xe(t);
|
|
328
|
+
if (l && !l.shadowRoot && i(l) === !0) return Ge(t);
|
|
329
|
+
t.assignedSlot ? t = t.assignedSlot : !l && c !== t.ownerDocument ? t = c.host : t = l;
|
|
330
|
+
}
|
|
331
|
+
t = s;
|
|
332
|
+
}
|
|
333
|
+
if (on(t)) return !t.getClientRects().length;
|
|
334
|
+
if (r !== "legacy-full") return !0;
|
|
335
|
+
} else if (r === "non-zero-area") return Ge(t);
|
|
336
|
+
return !1;
|
|
337
|
+
}, ln = function(t) {
|
|
338
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
339
|
+
for (var n = t.parentElement; n; ) {
|
|
340
|
+
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
341
|
+
for (var r = 0; r < n.children.length; r++) {
|
|
342
|
+
var i = n.children.item(r);
|
|
343
|
+
if (i.tagName === "LEGEND") return ce.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
|
|
344
|
+
}
|
|
345
|
+
return !0;
|
|
346
|
+
}
|
|
347
|
+
n = n.parentElement;
|
|
348
|
+
}
|
|
349
|
+
return !1;
|
|
350
|
+
}, an = function(t, n) {
|
|
351
|
+
return !(n.disabled || Qt(n) || sn(n, t) || Jt(n) || ln(n));
|
|
352
|
+
}, Ze = function(t, n) {
|
|
353
|
+
return !(rn(n) || bt(n) < 0 || !an(t, n));
|
|
354
|
+
}, cn = function(t) {
|
|
355
|
+
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
356
|
+
return !!(isNaN(n) || n >= 0);
|
|
357
|
+
}, yt = function(t) {
|
|
358
|
+
var n = [], r = [];
|
|
359
|
+
return t.forEach(function(i, o) {
|
|
360
|
+
var s = !!i.scopeParent, l = s ? i.scopeParent : i, c = Gt(l, s), u = s ? yt(i.candidates) : l;
|
|
361
|
+
c === 0 ? s ? n.push.apply(n, u) : n.push(l) : r.push({
|
|
362
|
+
documentOrder: o,
|
|
363
|
+
tabIndex: c,
|
|
364
|
+
item: i,
|
|
365
|
+
isScope: s,
|
|
366
|
+
content: u
|
|
367
|
+
});
|
|
368
|
+
}), r.sort(Zt).reduce(function(i, o) {
|
|
369
|
+
return o.isScope ? i.push.apply(i, o.content) : i.push(o.content), i;
|
|
370
|
+
}, []).concat(n);
|
|
371
|
+
}, xt = function(t, n) {
|
|
372
|
+
n = n || {};
|
|
373
|
+
var r;
|
|
374
|
+
return n.getShadowRoot ? r = He([t], n.includeContainer, {
|
|
375
|
+
filter: Ze.bind(null, n),
|
|
376
|
+
flatten: !1,
|
|
377
|
+
getShadowRoot: n.getShadowRoot,
|
|
378
|
+
shadowRootFilter: cn
|
|
379
|
+
}) : r = Kt(t, n.includeContainer, Ze.bind(null, n)), yt(r);
|
|
380
|
+
};
|
|
381
|
+
function un() {
|
|
382
|
+
return /apple/i.test(navigator.vendor);
|
|
383
|
+
}
|
|
384
|
+
function fn(e) {
|
|
385
|
+
let t = e.activeElement;
|
|
386
|
+
for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
|
|
387
|
+
var n;
|
|
388
|
+
t = t.shadowRoot.activeElement;
|
|
389
|
+
}
|
|
390
|
+
return t;
|
|
391
|
+
}
|
|
392
|
+
function dn(e, t) {
|
|
393
|
+
if (!e || !t) return !1;
|
|
394
|
+
const n = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
395
|
+
if (e.contains(t)) return !0;
|
|
396
|
+
if (n && Me(n)) {
|
|
397
|
+
let r = t;
|
|
398
|
+
for (; r; ) {
|
|
399
|
+
if (e === r) return !0;
|
|
400
|
+
r = r.parentNode || r.host;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
return !1;
|
|
404
|
+
}
|
|
405
|
+
function qe(e) {
|
|
406
|
+
return e?.ownerDocument || document;
|
|
407
|
+
}
|
|
408
|
+
var K = typeof document < "u" ? ut : function() {
|
|
409
|
+
}, mn = { ...w }, gn = mn.useInsertionEffect || ((e) => e());
|
|
410
|
+
function hn(e) {
|
|
411
|
+
const t = w.useRef(() => {
|
|
412
|
+
if (process.env.NODE_ENV !== "production") throw new Error("Cannot call an event handler while rendering.");
|
|
413
|
+
});
|
|
414
|
+
return gn(() => {
|
|
415
|
+
t.current = e;
|
|
416
|
+
}), w.useCallback(function() {
|
|
417
|
+
for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i];
|
|
418
|
+
return t.current == null ? void 0 : t.current(...r);
|
|
419
|
+
}, []);
|
|
420
|
+
}
|
|
421
|
+
var pt = () => ({
|
|
422
|
+
getShadowRoot: !0,
|
|
423
|
+
displayCheck: typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
424
|
+
});
|
|
425
|
+
function Rt(e, t) {
|
|
426
|
+
const n = xt(e, pt()), r = n.length;
|
|
427
|
+
if (r === 0) return;
|
|
428
|
+
const i = fn(qe(e)), o = n.indexOf(i);
|
|
429
|
+
return n[o === -1 ? t === 1 ? 0 : r - 1 : o + t];
|
|
430
|
+
}
|
|
431
|
+
function vn(e) {
|
|
432
|
+
return Rt(qe(e).body, 1) || e;
|
|
433
|
+
}
|
|
434
|
+
function bn(e) {
|
|
435
|
+
return Rt(qe(e).body, -1) || e;
|
|
436
|
+
}
|
|
437
|
+
function Ae(e, t) {
|
|
438
|
+
const n = t || e.currentTarget, r = e.relatedTarget;
|
|
439
|
+
return !r || !dn(n, r);
|
|
440
|
+
}
|
|
441
|
+
function wn(e) {
|
|
442
|
+
xt(e, pt()).forEach((t) => {
|
|
443
|
+
t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1");
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
function Qe(e) {
|
|
447
|
+
e.querySelectorAll("[data-tabindex]").forEach((t) => {
|
|
448
|
+
const n = t.dataset.tabindex;
|
|
449
|
+
delete t.dataset.tabindex, n ? t.setAttribute("tabindex", n) : t.removeAttribute("tabindex");
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
function Je(e, t, n) {
|
|
453
|
+
let { reference: r, floating: i } = e;
|
|
454
|
+
const o = q(t), s = je(t), l = _e(s), c = Q(t), u = o === "y", a = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, m = r[l] / 2 - i[l] / 2;
|
|
455
|
+
let g;
|
|
456
|
+
switch (c) {
|
|
457
|
+
case "top":
|
|
458
|
+
g = {
|
|
459
|
+
x: a,
|
|
460
|
+
y: r.y - i.height
|
|
461
|
+
};
|
|
462
|
+
break;
|
|
463
|
+
case "bottom":
|
|
464
|
+
g = {
|
|
465
|
+
x: a,
|
|
466
|
+
y: r.y + r.height
|
|
467
|
+
};
|
|
468
|
+
break;
|
|
469
|
+
case "right":
|
|
470
|
+
g = {
|
|
471
|
+
x: r.x + r.width,
|
|
472
|
+
y: d
|
|
473
|
+
};
|
|
474
|
+
break;
|
|
475
|
+
case "left":
|
|
476
|
+
g = {
|
|
477
|
+
x: r.x - i.width,
|
|
478
|
+
y: d
|
|
479
|
+
};
|
|
480
|
+
break;
|
|
481
|
+
default:
|
|
482
|
+
g = {
|
|
483
|
+
x: r.x,
|
|
484
|
+
y: r.y
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
switch (se(t)) {
|
|
488
|
+
case "start":
|
|
489
|
+
g[s] -= m * (n && u ? -1 : 1);
|
|
490
|
+
break;
|
|
491
|
+
case "end":
|
|
492
|
+
g[s] += m * (n && u ? -1 : 1);
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
495
|
+
return g;
|
|
496
|
+
}
|
|
497
|
+
async function yn(e, t) {
|
|
498
|
+
var n;
|
|
499
|
+
t === void 0 && (t = {});
|
|
500
|
+
const { x: r, y: i, platform: o, rects: s, elements: l, strategy: c } = e, { boundary: u = "clippingAncestors", rootBoundary: a = "viewport", elementContext: d = "floating", altBoundary: m = !1, padding: g = 0 } = oe(t, e), v = gt(g), f = l[m ? d === "floating" ? "reference" : "floating" : d], y = ye(await o.getClippingRect({
|
|
501
|
+
element: (n = await (o.isElement == null ? void 0 : o.isElement(f))) == null || n ? f : f.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
502
|
+
boundary: u,
|
|
503
|
+
rootBoundary: a,
|
|
504
|
+
strategy: c
|
|
505
|
+
})), x = d === "floating" ? {
|
|
506
|
+
x: r,
|
|
507
|
+
y: i,
|
|
508
|
+
width: s.floating.width,
|
|
509
|
+
height: s.floating.height
|
|
510
|
+
} : s.reference, h = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)), R = await (o.isElement == null ? void 0 : o.isElement(h)) ? await (o.getScale == null ? void 0 : o.getScale(h)) || {
|
|
511
|
+
x: 1,
|
|
512
|
+
y: 1
|
|
513
|
+
} : {
|
|
514
|
+
x: 1,
|
|
515
|
+
y: 1
|
|
516
|
+
}, C = ye(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
517
|
+
elements: l,
|
|
518
|
+
rect: x,
|
|
519
|
+
offsetParent: h,
|
|
520
|
+
strategy: c
|
|
521
|
+
}) : x);
|
|
522
|
+
return {
|
|
523
|
+
top: (y.top - C.top + v.top) / R.y,
|
|
524
|
+
bottom: (C.bottom - y.bottom + v.bottom) / R.y,
|
|
525
|
+
left: (y.left - C.left + v.left) / R.x,
|
|
526
|
+
right: (C.right - y.right + v.right) / R.x
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
var xn = 50, pn = async (e, t, n) => {
|
|
530
|
+
const { placement: r = "bottom", strategy: i = "absolute", middleware: o = [], platform: s } = n, l = s.detectOverflow ? s : {
|
|
531
|
+
...s,
|
|
532
|
+
detectOverflow: yn
|
|
533
|
+
}, c = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
534
|
+
let u = await s.getElementRects({
|
|
535
|
+
reference: e,
|
|
536
|
+
floating: t,
|
|
537
|
+
strategy: i
|
|
538
|
+
}), { x: a, y: d } = Je(u, r, c), m = r, g = 0;
|
|
539
|
+
const v = {};
|
|
540
|
+
for (let f = 0; f < o.length; f++) {
|
|
541
|
+
const y = o[f];
|
|
542
|
+
if (!y) continue;
|
|
543
|
+
const { name: x, fn: h } = y, { x: R, y: C, data: F, reset: A } = await h({
|
|
544
|
+
x: a,
|
|
545
|
+
y: d,
|
|
546
|
+
initialPlacement: r,
|
|
547
|
+
placement: m,
|
|
548
|
+
strategy: i,
|
|
549
|
+
middlewareData: v,
|
|
550
|
+
rects: u,
|
|
551
|
+
platform: l,
|
|
552
|
+
elements: {
|
|
553
|
+
reference: e,
|
|
554
|
+
floating: t
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
a = R ?? a, d = C ?? d, v[x] = {
|
|
558
|
+
...v[x],
|
|
559
|
+
...F
|
|
560
|
+
}, A && g < xn && (g++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (u = A.rects === !0 ? await s.getElementRects({
|
|
561
|
+
reference: e,
|
|
562
|
+
floating: t,
|
|
563
|
+
strategy: i
|
|
564
|
+
}) : A.rects), { x: a, y: d } = Je(u, m, c)), f = -1);
|
|
565
|
+
}
|
|
566
|
+
return {
|
|
567
|
+
x: a,
|
|
568
|
+
y: d,
|
|
569
|
+
placement: m,
|
|
570
|
+
strategy: i,
|
|
571
|
+
middlewareData: v
|
|
572
|
+
};
|
|
573
|
+
}, Rn = (e) => ({
|
|
574
|
+
name: "arrow",
|
|
575
|
+
options: e,
|
|
576
|
+
async fn(t) {
|
|
577
|
+
const { x: n, y: r, placement: i, rects: o, platform: s, elements: l, middlewareData: c } = t, { element: u, padding: a = 0 } = oe(e, t) || {};
|
|
578
|
+
if (u == null) return {};
|
|
579
|
+
const d = gt(a), m = {
|
|
580
|
+
x: n,
|
|
581
|
+
y: r
|
|
582
|
+
}, g = je(i), v = _e(g), f = await s.getDimensions(u), y = g === "y", x = y ? "top" : "left", h = y ? "bottom" : "right", R = y ? "clientHeight" : "clientWidth", C = o.reference[v] + o.reference[g] - m[g] - o.floating[v], F = m[g] - o.reference[g], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
583
|
+
let b = A ? A[R] : 0;
|
|
584
|
+
(!b || !await (s.isElement == null ? void 0 : s.isElement(A))) && (b = l.floating[R] || o.floating[v]);
|
|
585
|
+
const p = C / 2 - F / 2, T = b / 2 - f[v] / 2 - 1, O = Z(d[x], T), E = Z(d[h], T), S = O, P = b - f[v] - E, D = b / 2 - f[v] / 2 + p, N = Ie(S, D, P), L = !c.arrow && se(i) != null && D !== N && o.reference[v] / 2 - (D < S ? O : E) - f[v] / 2 < 0, I = L ? D < S ? D - S : D - P : 0;
|
|
586
|
+
return {
|
|
587
|
+
[g]: m[g] + I,
|
|
588
|
+
data: {
|
|
589
|
+
[g]: N,
|
|
590
|
+
centerOffset: D - N - I,
|
|
591
|
+
...L && { alignmentOffset: I }
|
|
592
|
+
},
|
|
593
|
+
reset: L
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
}), En = function(e) {
|
|
597
|
+
return e === void 0 && (e = {}), {
|
|
598
|
+
name: "flip",
|
|
599
|
+
options: e,
|
|
600
|
+
async fn(t) {
|
|
601
|
+
var n, r;
|
|
602
|
+
const { placement: i, middlewareData: o, rects: s, initialPlacement: l, platform: c, elements: u } = t, { mainAxis: a = !0, crossAxis: d = !0, fallbackPlacements: m, fallbackStrategy: g = "bestFit", fallbackAxisSideDirection: v = "none", flipAlignment: f = !0, ...y } = oe(e, t);
|
|
603
|
+
if ((n = o.arrow) != null && n.alignmentOffset) return {};
|
|
604
|
+
const x = Q(i), h = q(l), R = Q(l) === l, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), F = m || (R || !f ? [we(l)] : Vt(l)), A = v !== "none";
|
|
605
|
+
!m && A && F.push(...qt(l, f, v, C));
|
|
606
|
+
const b = [l, ...F], p = await c.detectOverflow(t, y), T = [];
|
|
607
|
+
let O = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
608
|
+
if (a && T.push(p[x]), d) {
|
|
609
|
+
const D = $t(i, s, C);
|
|
610
|
+
T.push(p[D[0]], p[D[1]]);
|
|
611
|
+
}
|
|
612
|
+
if (O = [...O, {
|
|
613
|
+
placement: i,
|
|
614
|
+
overflows: T
|
|
615
|
+
}], !T.every((D) => D <= 0)) {
|
|
616
|
+
var E, S;
|
|
617
|
+
const D = (((E = o.flip) == null ? void 0 : E.index) || 0) + 1, N = b[D];
|
|
618
|
+
if (N && (!(d === "alignment" && h !== q(N)) || O.every((I) => q(I.placement) === h ? I.overflows[0] > 0 : !0)))
|
|
619
|
+
return {
|
|
620
|
+
data: {
|
|
621
|
+
index: D,
|
|
622
|
+
overflows: O
|
|
623
|
+
},
|
|
624
|
+
reset: { placement: N }
|
|
625
|
+
};
|
|
626
|
+
let L = (S = O.filter((I) => I.overflows[0] <= 0).sort((I, M) => I.overflows[1] - M.overflows[1])[0]) == null ? void 0 : S.placement;
|
|
627
|
+
if (!L) switch (g) {
|
|
628
|
+
case "bestFit": {
|
|
629
|
+
var P;
|
|
630
|
+
const I = (P = O.filter((M) => {
|
|
631
|
+
if (A) {
|
|
632
|
+
const H = q(M.placement);
|
|
633
|
+
return H === h || H === "y";
|
|
634
|
+
}
|
|
635
|
+
return !0;
|
|
636
|
+
}).map((M) => [M.placement, M.overflows.filter((H) => H > 0).reduce((H, X) => H + X, 0)]).sort((M, H) => M[1] - H[1])[0]) == null ? void 0 : P[0];
|
|
637
|
+
I && (L = I);
|
|
638
|
+
break;
|
|
639
|
+
}
|
|
640
|
+
case "initialPlacement":
|
|
641
|
+
L = l;
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
if (i !== L) return { reset: { placement: L } };
|
|
645
|
+
}
|
|
646
|
+
return {};
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
}, Sn = /* @__PURE__ */ new Set(["left", "top"]);
|
|
650
|
+
async function On(e, t) {
|
|
651
|
+
const { placement: n, platform: r, elements: i } = e, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = Q(n), l = se(n), c = q(n) === "y", u = Sn.has(s) ? -1 : 1, a = o && c ? -1 : 1, d = oe(t, e);
|
|
652
|
+
let { mainAxis: m, crossAxis: g, alignmentAxis: v } = typeof d == "number" ? {
|
|
653
|
+
mainAxis: d,
|
|
654
|
+
crossAxis: 0,
|
|
655
|
+
alignmentAxis: null
|
|
656
|
+
} : {
|
|
657
|
+
mainAxis: d.mainAxis || 0,
|
|
658
|
+
crossAxis: d.crossAxis || 0,
|
|
659
|
+
alignmentAxis: d.alignmentAxis
|
|
660
|
+
};
|
|
661
|
+
return l && typeof v == "number" && (g = l === "end" ? v * -1 : v), c ? {
|
|
662
|
+
x: g * a,
|
|
663
|
+
y: m * u
|
|
664
|
+
} : {
|
|
665
|
+
x: m * u,
|
|
666
|
+
y: g * a
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
var Cn = function(e) {
|
|
670
|
+
return e === void 0 && (e = 0), {
|
|
671
|
+
name: "offset",
|
|
672
|
+
options: e,
|
|
673
|
+
async fn(t) {
|
|
674
|
+
var n, r;
|
|
675
|
+
const { x: i, y: o, placement: s, middlewareData: l } = t, c = await On(t, e);
|
|
676
|
+
return s === ((n = l.offset) == null ? void 0 : n.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
|
|
677
|
+
x: i + c.x,
|
|
678
|
+
y: o + c.y,
|
|
679
|
+
data: {
|
|
680
|
+
...c,
|
|
681
|
+
placement: s
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
}, Tn = function(e) {
|
|
687
|
+
return e === void 0 && (e = {}), {
|
|
688
|
+
name: "shift",
|
|
689
|
+
options: e,
|
|
690
|
+
async fn(t) {
|
|
691
|
+
const { x: n, y: r, placement: i, platform: o } = t, { mainAxis: s = !0, crossAxis: l = !1, limiter: c = { fn: (x) => {
|
|
692
|
+
let { x: h, y: R } = x;
|
|
693
|
+
return {
|
|
694
|
+
x: h,
|
|
695
|
+
y: R
|
|
696
|
+
};
|
|
697
|
+
} }, ...u } = oe(e, t), a = {
|
|
698
|
+
x: n,
|
|
699
|
+
y: r
|
|
700
|
+
}, d = await o.detectOverflow(t, u), m = q(Q(i)), g = mt(m);
|
|
701
|
+
let v = a[g], f = a[m];
|
|
702
|
+
if (s) {
|
|
703
|
+
const x = g === "y" ? "top" : "left", h = g === "y" ? "bottom" : "right", R = v + d[x], C = v - d[h];
|
|
704
|
+
v = Ie(R, v, C);
|
|
705
|
+
}
|
|
706
|
+
if (l) {
|
|
707
|
+
const x = m === "y" ? "top" : "left", h = m === "y" ? "bottom" : "right", R = f + d[x], C = f - d[h];
|
|
708
|
+
f = Ie(R, f, C);
|
|
709
|
+
}
|
|
710
|
+
const y = c.fn({
|
|
711
|
+
...t,
|
|
712
|
+
[g]: v,
|
|
713
|
+
[m]: f
|
|
714
|
+
});
|
|
715
|
+
return {
|
|
716
|
+
...y,
|
|
717
|
+
data: {
|
|
718
|
+
x: y.x - n,
|
|
719
|
+
y: y.y - r,
|
|
720
|
+
enabled: {
|
|
721
|
+
[g]: s,
|
|
722
|
+
[m]: l
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
}, An = function(e) {
|
|
729
|
+
return e === void 0 && (e = {}), {
|
|
730
|
+
name: "size",
|
|
731
|
+
options: e,
|
|
732
|
+
async fn(t) {
|
|
733
|
+
var n, r;
|
|
734
|
+
const { placement: i, rects: o, platform: s, elements: l } = t, { apply: c = () => {
|
|
735
|
+
}, ...u } = oe(e, t), a = await s.detectOverflow(t, u), d = Q(i), m = se(i), g = q(i) === "y", { width: v, height: f } = o.floating;
|
|
736
|
+
let y, x;
|
|
737
|
+
d === "top" || d === "bottom" ? (y = d, x = m === (await (s.isRTL == null ? void 0 : s.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (x = d, y = m === "end" ? "top" : "bottom");
|
|
738
|
+
const h = f - a.top - a.bottom, R = v - a.left - a.right, C = Z(f - a[y], h), F = Z(v - a[x], R), A = !t.middlewareData.shift;
|
|
739
|
+
let b = C, p = F;
|
|
740
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (p = R), (r = t.middlewareData.shift) != null && r.enabled.y && (b = h), A && !m) {
|
|
741
|
+
const O = W(a.left, 0), E = W(a.right, 0), S = W(a.top, 0), P = W(a.bottom, 0);
|
|
742
|
+
g ? p = v - 2 * (O !== 0 || E !== 0 ? O + E : W(a.left, a.right)) : b = f - 2 * (S !== 0 || P !== 0 ? S + P : W(a.top, a.bottom));
|
|
743
|
+
}
|
|
744
|
+
await c({
|
|
745
|
+
...t,
|
|
746
|
+
availableWidth: p,
|
|
747
|
+
availableHeight: b
|
|
748
|
+
});
|
|
749
|
+
const T = await s.getDimensions(l.floating);
|
|
750
|
+
return v !== T.width || f !== T.height ? { reset: { rects: !0 } } : {};
|
|
751
|
+
}
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
function Et(e) {
|
|
755
|
+
const t = $(e);
|
|
756
|
+
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
757
|
+
const i = U(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, l = be(n) !== o || be(r) !== s;
|
|
758
|
+
return l && (n = o, r = s), {
|
|
759
|
+
width: n,
|
|
760
|
+
height: r,
|
|
761
|
+
$: l
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
function Ue(e) {
|
|
765
|
+
return k(e) ? e : e.contextElement;
|
|
766
|
+
}
|
|
767
|
+
function ne(e) {
|
|
768
|
+
const t = Ue(e);
|
|
769
|
+
if (!U(t)) return _(1);
|
|
770
|
+
const n = t.getBoundingClientRect(), { width: r, height: i, $: o } = Et(t);
|
|
771
|
+
let s = (o ? be(n.width) : n.width) / r, l = (o ? be(n.height) : n.height) / i;
|
|
772
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
773
|
+
x: s,
|
|
774
|
+
y: l
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
var Dn = /* @__PURE__ */ _(0);
|
|
778
|
+
function St(e) {
|
|
779
|
+
const t = B(e);
|
|
780
|
+
return !ze() || !t.visualViewport ? Dn : {
|
|
781
|
+
x: t.visualViewport.offsetLeft,
|
|
782
|
+
y: t.visualViewport.offsetTop
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
function Ln(e, t, n) {
|
|
786
|
+
return t === void 0 && (t = !1), !n || t && n !== B(e) ? !1 : t;
|
|
787
|
+
}
|
|
788
|
+
function te(e, t, n, r) {
|
|
789
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
790
|
+
const i = e.getBoundingClientRect(), o = Ue(e);
|
|
791
|
+
let s = _(1);
|
|
792
|
+
t && (r ? k(r) && (s = ne(r)) : s = ne(e));
|
|
793
|
+
const l = Ln(o, n, r) ? St(o) : _(0);
|
|
794
|
+
let c = (i.left + l.x) / s.x, u = (i.top + l.y) / s.y, a = i.width / s.x, d = i.height / s.y;
|
|
795
|
+
if (o) {
|
|
796
|
+
const m = B(o), g = r && k(r) ? B(r) : r;
|
|
797
|
+
let v = m, f = Fe(v);
|
|
798
|
+
for (; f && r && g !== v; ) {
|
|
799
|
+
const y = ne(f), x = f.getBoundingClientRect(), h = $(f), R = x.left + (f.clientLeft + parseFloat(h.paddingLeft)) * y.x, C = x.top + (f.clientTop + parseFloat(h.paddingTop)) * y.y;
|
|
800
|
+
c *= y.x, u *= y.y, a *= y.x, d *= y.y, c += R, u += C, v = B(f), f = Fe(v);
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
return ye({
|
|
804
|
+
width: a,
|
|
805
|
+
height: d,
|
|
806
|
+
x: c,
|
|
807
|
+
y: u
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
function Ce(e, t) {
|
|
811
|
+
const n = Oe(e).scrollLeft;
|
|
812
|
+
return t ? t.left + n : te(j(e)).left + n;
|
|
813
|
+
}
|
|
814
|
+
function Ot(e, t) {
|
|
815
|
+
const n = e.getBoundingClientRect();
|
|
816
|
+
return {
|
|
817
|
+
x: n.left + t.scrollLeft - Ce(e, n),
|
|
818
|
+
y: n.top + t.scrollTop
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
function Pn(e) {
|
|
822
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e;
|
|
823
|
+
const o = i === "fixed", s = j(r), l = t ? Se(t.floating) : !1;
|
|
824
|
+
if (r === s || l && o) return n;
|
|
825
|
+
let c = {
|
|
826
|
+
scrollLeft: 0,
|
|
827
|
+
scrollTop: 0
|
|
828
|
+
}, u = _(1);
|
|
829
|
+
const a = _(0), d = U(r);
|
|
830
|
+
if ((d || !d && !o) && ((ie(r) !== "body" || fe(s)) && (c = Oe(r)), d)) {
|
|
831
|
+
const g = te(r);
|
|
832
|
+
u = ne(r), a.x = g.x + r.clientLeft, a.y = g.y + r.clientTop;
|
|
833
|
+
}
|
|
834
|
+
const m = s && !d && !o ? Ot(s, c) : _(0);
|
|
835
|
+
return {
|
|
836
|
+
width: n.width * u.x,
|
|
837
|
+
height: n.height * u.y,
|
|
838
|
+
x: n.x * u.x - c.scrollLeft * u.x + a.x + m.x,
|
|
839
|
+
y: n.y * u.y - c.scrollTop * u.y + a.y + m.y
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
function Mn(e) {
|
|
843
|
+
return Array.from(e.getClientRects());
|
|
844
|
+
}
|
|
845
|
+
function Fn(e) {
|
|
846
|
+
const t = j(e), n = Oe(e), r = e.ownerDocument.body, i = W(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = W(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
847
|
+
let s = -n.scrollLeft + Ce(e);
|
|
848
|
+
const l = -n.scrollTop;
|
|
849
|
+
return $(r).direction === "rtl" && (s += W(t.clientWidth, r.clientWidth) - i), {
|
|
850
|
+
width: i,
|
|
851
|
+
height: o,
|
|
852
|
+
x: s,
|
|
853
|
+
y: l
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
var et = 25;
|
|
857
|
+
function In(e, t) {
|
|
858
|
+
const n = B(e), r = j(e), i = n.visualViewport;
|
|
859
|
+
let o = r.clientWidth, s = r.clientHeight, l = 0, c = 0;
|
|
860
|
+
if (i) {
|
|
861
|
+
o = i.width, s = i.height;
|
|
862
|
+
const a = ze();
|
|
863
|
+
(!a || a && t === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
|
|
864
|
+
}
|
|
865
|
+
const u = Ce(r);
|
|
866
|
+
if (u <= 0) {
|
|
867
|
+
const a = r.ownerDocument, d = a.body, m = getComputedStyle(d), g = a.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, v = Math.abs(r.clientWidth - d.clientWidth - g);
|
|
868
|
+
v <= et && (o -= v);
|
|
869
|
+
} else u <= et && (o += u);
|
|
870
|
+
return {
|
|
871
|
+
width: o,
|
|
872
|
+
height: s,
|
|
873
|
+
x: l,
|
|
874
|
+
y: c
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
function Nn(e, t) {
|
|
878
|
+
const n = te(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = U(e) ? ne(e) : _(1);
|
|
879
|
+
return {
|
|
880
|
+
width: e.clientWidth * o.x,
|
|
881
|
+
height: e.clientHeight * o.y,
|
|
882
|
+
x: i * o.x,
|
|
883
|
+
y: r * o.y
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
function tt(e, t, n) {
|
|
887
|
+
let r;
|
|
888
|
+
if (t === "viewport") r = In(e, n);
|
|
889
|
+
else if (t === "document") r = Fn(j(e));
|
|
890
|
+
else if (k(t)) r = Nn(t, n);
|
|
891
|
+
else {
|
|
892
|
+
const i = St(e);
|
|
893
|
+
r = {
|
|
894
|
+
x: t.x - i.x,
|
|
895
|
+
y: t.y - i.y,
|
|
896
|
+
width: t.width,
|
|
897
|
+
height: t.height
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
return ye(r);
|
|
901
|
+
}
|
|
902
|
+
function Ct(e, t) {
|
|
903
|
+
const n = G(e);
|
|
904
|
+
return n === t || !k(n) || re(n) ? !1 : $(n).position === "fixed" || Ct(n, t);
|
|
905
|
+
}
|
|
906
|
+
function kn(e, t) {
|
|
907
|
+
const n = t.get(e);
|
|
908
|
+
if (n) return n;
|
|
909
|
+
let r = ae(e, [], !1).filter((l) => k(l) && ie(l) !== "body"), i = null;
|
|
910
|
+
const o = $(e).position === "fixed";
|
|
911
|
+
let s = o ? G(e) : e;
|
|
912
|
+
for (; k(s) && !re(s); ) {
|
|
913
|
+
const l = $(s), c = Ve(s);
|
|
914
|
+
!c && l.position === "fixed" && (i = null), (o ? !c && !i : !c && l.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || fe(s) && !c && Ct(e, s)) ? r = r.filter((u) => u !== s) : i = l, s = G(s);
|
|
915
|
+
}
|
|
916
|
+
return t.set(e, r), r;
|
|
917
|
+
}
|
|
918
|
+
function Hn(e) {
|
|
919
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e;
|
|
920
|
+
const o = [...n === "clippingAncestors" ? Se(t) ? [] : kn(t, this._c) : [].concat(n), r], s = tt(t, o[0], i);
|
|
921
|
+
let l = s.top, c = s.right, u = s.bottom, a = s.left;
|
|
922
|
+
for (let d = 1; d < o.length; d++) {
|
|
923
|
+
const m = tt(t, o[d], i);
|
|
924
|
+
l = W(m.top, l), c = Z(m.right, c), u = Z(m.bottom, u), a = W(m.left, a);
|
|
925
|
+
}
|
|
926
|
+
return {
|
|
927
|
+
width: c - a,
|
|
928
|
+
height: u - l,
|
|
929
|
+
x: a,
|
|
930
|
+
y: l
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
function Wn(e) {
|
|
934
|
+
const { width: t, height: n } = Et(e);
|
|
935
|
+
return {
|
|
936
|
+
width: t,
|
|
937
|
+
height: n
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
function Bn(e, t, n) {
|
|
941
|
+
const r = U(t), i = j(t), o = n === "fixed", s = te(e, !0, o, t);
|
|
942
|
+
let l = {
|
|
943
|
+
scrollLeft: 0,
|
|
944
|
+
scrollTop: 0
|
|
945
|
+
};
|
|
946
|
+
const c = _(0);
|
|
947
|
+
function u() {
|
|
948
|
+
c.x = Ce(i);
|
|
949
|
+
}
|
|
950
|
+
if (r || !r && !o)
|
|
951
|
+
if ((ie(t) !== "body" || fe(i)) && (l = Oe(t)), r) {
|
|
952
|
+
const d = te(t, !0, o, t);
|
|
953
|
+
c.x = d.x + t.clientLeft, c.y = d.y + t.clientTop;
|
|
954
|
+
} else i && u();
|
|
955
|
+
o && !r && i && u();
|
|
956
|
+
const a = i && !r && !o ? Ot(i, l) : _(0);
|
|
957
|
+
return {
|
|
958
|
+
x: s.left + l.scrollLeft - c.x - a.x,
|
|
959
|
+
y: s.top + l.scrollTop - c.y - a.y,
|
|
960
|
+
width: s.width,
|
|
961
|
+
height: s.height
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
function De(e) {
|
|
965
|
+
return $(e).position === "static";
|
|
966
|
+
}
|
|
967
|
+
function nt(e, t) {
|
|
968
|
+
if (!U(e) || $(e).position === "fixed") return null;
|
|
969
|
+
if (t) return t(e);
|
|
970
|
+
let n = e.offsetParent;
|
|
971
|
+
return j(e) === n && (n = n.ownerDocument.body), n;
|
|
972
|
+
}
|
|
973
|
+
function Tt(e, t) {
|
|
974
|
+
const n = B(e);
|
|
975
|
+
if (Se(e)) return n;
|
|
976
|
+
if (!U(e)) {
|
|
977
|
+
let i = G(e);
|
|
978
|
+
for (; i && !re(i); ) {
|
|
979
|
+
if (k(i) && !De(i)) return i;
|
|
980
|
+
i = G(i);
|
|
981
|
+
}
|
|
982
|
+
return n;
|
|
983
|
+
}
|
|
984
|
+
let r = nt(e, t);
|
|
985
|
+
for (; r && Nt(r) && De(r); ) r = nt(r, t);
|
|
986
|
+
return r && re(r) && De(r) && !Ve(r) ? n : r || Wt(e) || n;
|
|
987
|
+
}
|
|
988
|
+
var $n = async function(e) {
|
|
989
|
+
const t = this.getOffsetParent || Tt, n = this.getDimensions, r = await n(e.floating);
|
|
990
|
+
return {
|
|
991
|
+
reference: Bn(e.reference, await t(e.floating), e.strategy),
|
|
992
|
+
floating: {
|
|
993
|
+
x: 0,
|
|
994
|
+
y: 0,
|
|
995
|
+
width: r.width,
|
|
996
|
+
height: r.height
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
function Vn(e) {
|
|
1001
|
+
return $(e).direction === "rtl";
|
|
1002
|
+
}
|
|
1003
|
+
var zn = {
|
|
1004
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Pn,
|
|
1005
|
+
getDocumentElement: j,
|
|
1006
|
+
getClippingRect: Hn,
|
|
1007
|
+
getOffsetParent: Tt,
|
|
1008
|
+
getElementRects: $n,
|
|
1009
|
+
getClientRects: Mn,
|
|
1010
|
+
getDimensions: Wn,
|
|
1011
|
+
getScale: ne,
|
|
1012
|
+
isElement: k,
|
|
1013
|
+
isRTL: Vn
|
|
1014
|
+
};
|
|
1015
|
+
function At(e, t) {
|
|
1016
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1017
|
+
}
|
|
1018
|
+
function _n(e, t) {
|
|
1019
|
+
let n = null, r;
|
|
1020
|
+
const i = j(e);
|
|
1021
|
+
function o() {
|
|
1022
|
+
var l;
|
|
1023
|
+
clearTimeout(r), (l = n) == null || l.disconnect(), n = null;
|
|
1024
|
+
}
|
|
1025
|
+
function s(l, c) {
|
|
1026
|
+
l === void 0 && (l = !1), c === void 0 && (c = 1), o();
|
|
1027
|
+
const u = e.getBoundingClientRect(), { left: a, top: d, width: m, height: g } = u;
|
|
1028
|
+
if (l || t(), !m || !g) return;
|
|
1029
|
+
const v = ge(d), f = ge(i.clientWidth - (a + m)), y = ge(i.clientHeight - (d + g)), x = ge(a), h = {
|
|
1030
|
+
rootMargin: -v + "px " + -f + "px " + -y + "px " + -x + "px",
|
|
1031
|
+
threshold: W(0, Z(1, c)) || 1
|
|
1032
|
+
};
|
|
1033
|
+
let R = !0;
|
|
1034
|
+
function C(F) {
|
|
1035
|
+
const A = F[0].intersectionRatio;
|
|
1036
|
+
if (A !== c) {
|
|
1037
|
+
if (!R) return s();
|
|
1038
|
+
A ? s(!1, A) : r = setTimeout(() => {
|
|
1039
|
+
s(!1, 1e-7);
|
|
1040
|
+
}, 1e3);
|
|
1041
|
+
}
|
|
1042
|
+
A === 1 && !At(u, e.getBoundingClientRect()) && s(), R = !1;
|
|
1043
|
+
}
|
|
1044
|
+
try {
|
|
1045
|
+
n = new IntersectionObserver(C, {
|
|
1046
|
+
...h,
|
|
1047
|
+
root: i.ownerDocument
|
|
1048
|
+
});
|
|
1049
|
+
} catch {
|
|
1050
|
+
n = new IntersectionObserver(C, h);
|
|
1051
|
+
}
|
|
1052
|
+
n.observe(e);
|
|
1053
|
+
}
|
|
1054
|
+
return s(!0), o;
|
|
1055
|
+
}
|
|
1056
|
+
function jn(e, t, n, r) {
|
|
1057
|
+
r === void 0 && (r = {});
|
|
1058
|
+
const { ancestorScroll: i = !0, ancestorResize: o = !0, elementResize: s = typeof ResizeObserver == "function", layoutShift: l = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, u = Ue(e), a = i || o ? [...u ? ae(u) : [], ...t ? ae(t) : []] : [];
|
|
1059
|
+
a.forEach((x) => {
|
|
1060
|
+
i && x.addEventListener("scroll", n, { passive: !0 }), o && x.addEventListener("resize", n);
|
|
1061
|
+
});
|
|
1062
|
+
const d = u && l ? _n(u, n) : null;
|
|
1063
|
+
let m = -1, g = null;
|
|
1064
|
+
s && (g = new ResizeObserver((x) => {
|
|
1065
|
+
let [h] = x;
|
|
1066
|
+
h && h.target === u && g && t && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
1067
|
+
var R;
|
|
1068
|
+
(R = g) == null || R.observe(t);
|
|
1069
|
+
})), n();
|
|
1070
|
+
}), u && !c && g.observe(u), t && g.observe(t));
|
|
1071
|
+
let v, f = c ? te(e) : null;
|
|
1072
|
+
c && y();
|
|
1073
|
+
function y() {
|
|
1074
|
+
const x = te(e);
|
|
1075
|
+
f && !At(f, x) && n(), f = x, v = requestAnimationFrame(y);
|
|
1076
|
+
}
|
|
1077
|
+
return n(), () => {
|
|
1078
|
+
var x;
|
|
1079
|
+
a.forEach((h) => {
|
|
1080
|
+
i && h.removeEventListener("scroll", n), o && h.removeEventListener("resize", n);
|
|
1081
|
+
}), d?.(), (x = g) == null || x.disconnect(), g = null, c && cancelAnimationFrame(v);
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
var qn = Cn, Un = Tn, Xn = En, Yn = An, rt = Rn, Kn = (e, t, n) => {
|
|
1085
|
+
const r = /* @__PURE__ */ new Map(), i = {
|
|
1086
|
+
platform: zn,
|
|
1087
|
+
...n
|
|
1088
|
+
}, o = {
|
|
1089
|
+
...i.platform,
|
|
1090
|
+
_c: r
|
|
1091
|
+
};
|
|
1092
|
+
return pn(e, t, {
|
|
1093
|
+
...i,
|
|
1094
|
+
platform: o
|
|
1095
|
+
});
|
|
1096
|
+
}, ve = typeof document < "u" ? ut : function() {
|
|
1097
|
+
};
|
|
1098
|
+
function Re(e, t) {
|
|
1099
|
+
if (e === t) return !0;
|
|
1100
|
+
if (typeof e != typeof t) return !1;
|
|
1101
|
+
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
1102
|
+
let n, r, i;
|
|
1103
|
+
if (e && t && typeof e == "object") {
|
|
1104
|
+
if (Array.isArray(e)) {
|
|
1105
|
+
if (n = e.length, n !== t.length) return !1;
|
|
1106
|
+
for (r = n; r-- !== 0; ) if (!Re(e[r], t[r])) return !1;
|
|
1107
|
+
return !0;
|
|
1108
|
+
}
|
|
1109
|
+
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
1110
|
+
for (r = n; r-- !== 0; ) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
1111
|
+
for (r = n; r-- !== 0; ) {
|
|
1112
|
+
const o = i[r];
|
|
1113
|
+
if (!(o === "_owner" && e.$$typeof) && !Re(e[o], t[o]))
|
|
1114
|
+
return !1;
|
|
1115
|
+
}
|
|
1116
|
+
return !0;
|
|
1117
|
+
}
|
|
1118
|
+
return e !== e && t !== t;
|
|
1119
|
+
}
|
|
1120
|
+
function Dt(e) {
|
|
1121
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1122
|
+
}
|
|
1123
|
+
function it(e, t) {
|
|
1124
|
+
const n = Dt(e);
|
|
1125
|
+
return Math.round(t * n) / n;
|
|
1126
|
+
}
|
|
1127
|
+
function Le(e) {
|
|
1128
|
+
const t = w.useRef(e);
|
|
1129
|
+
return ve(() => {
|
|
1130
|
+
t.current = e;
|
|
1131
|
+
}), t;
|
|
1132
|
+
}
|
|
1133
|
+
function Gn(e) {
|
|
1134
|
+
e === void 0 && (e = {});
|
|
1135
|
+
const { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: o, floating: s } = {}, transform: l = !0, whileElementsMounted: c, open: u } = e, [a, d] = w.useState({
|
|
1136
|
+
x: 0,
|
|
1137
|
+
y: 0,
|
|
1138
|
+
strategy: n,
|
|
1139
|
+
placement: t,
|
|
1140
|
+
middlewareData: {},
|
|
1141
|
+
isPositioned: !1
|
|
1142
|
+
}), [m, g] = w.useState(r);
|
|
1143
|
+
Re(m, r) || g(r);
|
|
1144
|
+
const [v, f] = w.useState(null), [y, x] = w.useState(null), h = w.useCallback((M) => {
|
|
1145
|
+
M !== A.current && (A.current = M, f(M));
|
|
1146
|
+
}, []), R = w.useCallback((M) => {
|
|
1147
|
+
M !== b.current && (b.current = M, x(M));
|
|
1148
|
+
}, []), C = o || v, F = s || y, A = w.useRef(null), b = w.useRef(null), p = w.useRef(a), T = c != null, O = Le(c), E = Le(i), S = Le(u), P = w.useCallback(() => {
|
|
1149
|
+
if (!A.current || !b.current) return;
|
|
1150
|
+
const M = {
|
|
1151
|
+
placement: t,
|
|
1152
|
+
strategy: n,
|
|
1153
|
+
middleware: m
|
|
1154
|
+
};
|
|
1155
|
+
E.current && (M.platform = E.current), Kn(A.current, b.current, M).then((H) => {
|
|
1156
|
+
const X = {
|
|
1157
|
+
...H,
|
|
1158
|
+
isPositioned: S.current !== !1
|
|
1159
|
+
};
|
|
1160
|
+
D.current && !Re(p.current, X) && (p.current = X, ft.flushSync(() => {
|
|
1161
|
+
d(X);
|
|
1162
|
+
}));
|
|
1163
|
+
});
|
|
1164
|
+
}, [
|
|
1165
|
+
m,
|
|
1166
|
+
t,
|
|
1167
|
+
n,
|
|
1168
|
+
E,
|
|
1169
|
+
S
|
|
1170
|
+
]);
|
|
1171
|
+
ve(() => {
|
|
1172
|
+
u === !1 && p.current.isPositioned && (p.current.isPositioned = !1, d((M) => ({
|
|
1173
|
+
...M,
|
|
1174
|
+
isPositioned: !1
|
|
1175
|
+
})));
|
|
1176
|
+
}, [u]);
|
|
1177
|
+
const D = w.useRef(!1);
|
|
1178
|
+
ve(() => (D.current = !0, () => {
|
|
1179
|
+
D.current = !1;
|
|
1180
|
+
}), []), ve(() => {
|
|
1181
|
+
if (C && (A.current = C), F && (b.current = F), C && F) {
|
|
1182
|
+
if (O.current) return O.current(C, F, P);
|
|
1183
|
+
P();
|
|
1184
|
+
}
|
|
1185
|
+
}, [
|
|
1186
|
+
C,
|
|
1187
|
+
F,
|
|
1188
|
+
P,
|
|
1189
|
+
O,
|
|
1190
|
+
T
|
|
1191
|
+
]);
|
|
1192
|
+
const N = w.useMemo(() => ({
|
|
1193
|
+
reference: A,
|
|
1194
|
+
floating: b,
|
|
1195
|
+
setReference: h,
|
|
1196
|
+
setFloating: R
|
|
1197
|
+
}), [h, R]), L = w.useMemo(() => ({
|
|
1198
|
+
reference: C,
|
|
1199
|
+
floating: F
|
|
1200
|
+
}), [C, F]), I = w.useMemo(() => {
|
|
1201
|
+
const M = {
|
|
1202
|
+
position: n,
|
|
1203
|
+
left: 0,
|
|
1204
|
+
top: 0
|
|
1205
|
+
};
|
|
1206
|
+
if (!L.floating) return M;
|
|
1207
|
+
const H = it(L.floating, a.x), X = it(L.floating, a.y);
|
|
1208
|
+
return l ? {
|
|
1209
|
+
...M,
|
|
1210
|
+
transform: "translate(" + H + "px, " + X + "px)",
|
|
1211
|
+
...Dt(L.floating) >= 1.5 && { willChange: "transform" }
|
|
1212
|
+
} : {
|
|
1213
|
+
position: n,
|
|
1214
|
+
left: H,
|
|
1215
|
+
top: X
|
|
1216
|
+
};
|
|
1217
|
+
}, [
|
|
1218
|
+
n,
|
|
1219
|
+
l,
|
|
1220
|
+
L.floating,
|
|
1221
|
+
a.x,
|
|
1222
|
+
a.y
|
|
1223
|
+
]);
|
|
1224
|
+
return w.useMemo(() => ({
|
|
1225
|
+
...a,
|
|
1226
|
+
update: P,
|
|
1227
|
+
refs: N,
|
|
1228
|
+
elements: L,
|
|
1229
|
+
floatingStyles: I
|
|
1230
|
+
}), [
|
|
1231
|
+
a,
|
|
1232
|
+
P,
|
|
1233
|
+
N,
|
|
1234
|
+
L,
|
|
1235
|
+
I
|
|
1236
|
+
]);
|
|
1237
|
+
}
|
|
1238
|
+
var Zn = (e) => {
|
|
1239
|
+
function t(n) {
|
|
1240
|
+
return {}.hasOwnProperty.call(n, "current");
|
|
1241
|
+
}
|
|
1242
|
+
return {
|
|
1243
|
+
name: "arrow",
|
|
1244
|
+
options: e,
|
|
1245
|
+
fn(n) {
|
|
1246
|
+
const { element: r, padding: i } = typeof e == "function" ? e(n) : e;
|
|
1247
|
+
return r && t(r) ? r.current != null ? rt({
|
|
1248
|
+
element: r.current,
|
|
1249
|
+
padding: i
|
|
1250
|
+
}).fn(n) : {} : r ? rt({
|
|
1251
|
+
element: r,
|
|
1252
|
+
padding: i
|
|
1253
|
+
}).fn(n) : {};
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1256
|
+
}, Qn = (e, t) => {
|
|
1257
|
+
const n = qn(e);
|
|
1258
|
+
return {
|
|
1259
|
+
name: n.name,
|
|
1260
|
+
fn: n.fn,
|
|
1261
|
+
options: [e, t]
|
|
1262
|
+
};
|
|
1263
|
+
}, Jn = (e, t) => {
|
|
1264
|
+
const n = Un(e);
|
|
1265
|
+
return {
|
|
1266
|
+
name: n.name,
|
|
1267
|
+
fn: n.fn,
|
|
1268
|
+
options: [e, t]
|
|
1269
|
+
};
|
|
1270
|
+
}, er = (e, t) => {
|
|
1271
|
+
const n = Xn(e);
|
|
1272
|
+
return {
|
|
1273
|
+
name: n.name,
|
|
1274
|
+
fn: n.fn,
|
|
1275
|
+
options: [e, t]
|
|
1276
|
+
};
|
|
1277
|
+
}, tr = (e, t) => {
|
|
1278
|
+
const n = Yn(e);
|
|
1279
|
+
return {
|
|
1280
|
+
name: n.name,
|
|
1281
|
+
fn: n.fn,
|
|
1282
|
+
options: [e, t]
|
|
1283
|
+
};
|
|
1284
|
+
}, nr = (e, t) => {
|
|
1285
|
+
const n = Zn(e);
|
|
1286
|
+
return {
|
|
1287
|
+
name: n.name,
|
|
1288
|
+
fn: n.fn,
|
|
1289
|
+
options: [e, t]
|
|
1290
|
+
};
|
|
1291
|
+
}, rr = "ArrowLeft", ir = "ArrowRight", or = "ArrowUp", sr = "ArrowDown", lr = [rr, ir], ar = [or, sr], Ir = [...lr, ...ar], cr = { ...w }, ot = !1, ur = 0, st = () => "floating-ui-" + Math.random().toString(36).slice(2, 6) + ur++;
|
|
1292
|
+
function fr() {
|
|
1293
|
+
const [e, t] = w.useState(() => ot ? st() : void 0);
|
|
1294
|
+
return K(() => {
|
|
1295
|
+
e == null && t(st());
|
|
1296
|
+
}, []), w.useEffect(() => {
|
|
1297
|
+
ot = !0;
|
|
1298
|
+
}, []), e;
|
|
1299
|
+
}
|
|
1300
|
+
var Xe = cr.useId || fr, ue;
|
|
1301
|
+
process.env.NODE_ENV !== "production" && (ue = /* @__PURE__ */ new Set());
|
|
1302
|
+
function dr() {
|
|
1303
|
+
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
|
|
1304
|
+
const i = "Floating UI: " + n.join(" ");
|
|
1305
|
+
if (!((e = ue) != null && e.has(i))) {
|
|
1306
|
+
var o;
|
|
1307
|
+
(o = ue) == null || o.add(i), console.warn(i);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
function mr() {
|
|
1311
|
+
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
|
|
1312
|
+
const i = "Floating UI: " + n.join(" ");
|
|
1313
|
+
if (!((e = ue) != null && e.has(i))) {
|
|
1314
|
+
var o;
|
|
1315
|
+
(o = ue) == null || o.add(i), console.error(i);
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
var gr = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
1319
|
+
const { context: { placement: r, elements: { floating: i }, middlewareData: { arrow: o, shift: s } }, width: l = 14, height: c = 7, tipRadius: u = 0, strokeWidth: a = 0, staticOffset: d, stroke: m, d: g, style: { transform: v, ...f } = {}, ...y } = t;
|
|
1320
|
+
process.env.NODE_ENV !== "production" && (n || dr("The `ref` prop is required for `FloatingArrow`."));
|
|
1321
|
+
const x = Xe(), [h, R] = w.useState(!1);
|
|
1322
|
+
if (K(() => {
|
|
1323
|
+
i && $(i).direction === "rtl" && R(!0);
|
|
1324
|
+
}, [i]), !i) return null;
|
|
1325
|
+
const [C, F] = r.split("-"), A = C === "top" || C === "bottom";
|
|
1326
|
+
let b = d;
|
|
1327
|
+
(A && s != null && s.x || !A && s != null && s.y) && (b = null);
|
|
1328
|
+
const p = a * 2, T = p / 2, O = l / 2 * (u / -8 + 1), E = c / 2 * u / 4, S = !!g, P = b && F === "end" ? "bottom" : "top";
|
|
1329
|
+
let D = b && F === "end" ? "right" : "left";
|
|
1330
|
+
b && h && (D = F === "end" ? "left" : "right");
|
|
1331
|
+
const N = o?.x != null ? b || o.x : "", L = o?.y != null ? b || o.y : "", I = g || "M0,0" + (" H" + l) + (" L" + (l - O) + "," + (c - E)) + (" Q" + l / 2 + "," + c + " " + O + "," + (c - E)) + " Z", M = {
|
|
1332
|
+
top: S ? "rotate(180deg)" : "",
|
|
1333
|
+
left: S ? "rotate(90deg)" : "rotate(-90deg)",
|
|
1334
|
+
bottom: S ? "" : "rotate(180deg)",
|
|
1335
|
+
right: S ? "rotate(-90deg)" : "rotate(90deg)"
|
|
1336
|
+
}[C];
|
|
1337
|
+
return /* @__PURE__ */ Be("svg", {
|
|
1338
|
+
...y,
|
|
1339
|
+
"aria-hidden": !0,
|
|
1340
|
+
ref: n,
|
|
1341
|
+
width: S ? l : l + p,
|
|
1342
|
+
height: l,
|
|
1343
|
+
viewBox: "0 0 " + l + " " + (c > l ? c : l),
|
|
1344
|
+
style: {
|
|
1345
|
+
position: "absolute",
|
|
1346
|
+
pointerEvents: "none",
|
|
1347
|
+
[D]: N,
|
|
1348
|
+
[P]: L,
|
|
1349
|
+
[C]: A || S ? "100%" : "calc(100% - " + p / 2 + "px)",
|
|
1350
|
+
transform: [M, v].filter((H) => !!H).join(" "),
|
|
1351
|
+
...f
|
|
1352
|
+
},
|
|
1353
|
+
children: [
|
|
1354
|
+
p > 0 && /* @__PURE__ */ V("path", {
|
|
1355
|
+
clipPath: "url(#" + x + ")",
|
|
1356
|
+
fill: "none",
|
|
1357
|
+
stroke: m,
|
|
1358
|
+
strokeWidth: p + (g ? 0 : 1),
|
|
1359
|
+
d: I
|
|
1360
|
+
}),
|
|
1361
|
+
/* @__PURE__ */ V("path", {
|
|
1362
|
+
stroke: p && !g ? y.fill : "none",
|
|
1363
|
+
d: I
|
|
1364
|
+
}),
|
|
1365
|
+
/* @__PURE__ */ V("clipPath", {
|
|
1366
|
+
id: x,
|
|
1367
|
+
children: /* @__PURE__ */ V("rect", {
|
|
1368
|
+
x: -T,
|
|
1369
|
+
y: T * (S ? -1 : 1),
|
|
1370
|
+
width: l + p,
|
|
1371
|
+
height: l
|
|
1372
|
+
})
|
|
1373
|
+
})
|
|
1374
|
+
]
|
|
1375
|
+
});
|
|
1376
|
+
});
|
|
1377
|
+
function hr() {
|
|
1378
|
+
const e = /* @__PURE__ */ new Map();
|
|
1379
|
+
return {
|
|
1380
|
+
emit(t, n) {
|
|
1381
|
+
var r;
|
|
1382
|
+
(r = e.get(t)) == null || r.forEach((i) => i(n));
|
|
1383
|
+
},
|
|
1384
|
+
on(t, n) {
|
|
1385
|
+
e.has(t) || e.set(t, /* @__PURE__ */ new Set()), e.get(t).add(n);
|
|
1386
|
+
},
|
|
1387
|
+
off(t, n) {
|
|
1388
|
+
var r;
|
|
1389
|
+
(r = e.get(t)) == null || r.delete(n);
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
}
|
|
1393
|
+
var vr = /* @__PURE__ */ w.createContext(null), br = /* @__PURE__ */ w.createContext(null), wr = () => {
|
|
1394
|
+
var e;
|
|
1395
|
+
return ((e = w.useContext(vr)) == null ? void 0 : e.id) || null;
|
|
1396
|
+
}, yr = () => w.useContext(br);
|
|
1397
|
+
function Lt(e) {
|
|
1398
|
+
return "data-floating-ui-" + e;
|
|
1399
|
+
}
|
|
1400
|
+
var xr = {
|
|
1401
|
+
border: 0,
|
|
1402
|
+
clip: "rect(0 0 0 0)",
|
|
1403
|
+
height: "1px",
|
|
1404
|
+
margin: "-1px",
|
|
1405
|
+
overflow: "hidden",
|
|
1406
|
+
padding: 0,
|
|
1407
|
+
position: "fixed",
|
|
1408
|
+
whiteSpace: "nowrap",
|
|
1409
|
+
width: "1px",
|
|
1410
|
+
top: 0,
|
|
1411
|
+
left: 0
|
|
1412
|
+
}, lt = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
1413
|
+
const [r, i] = w.useState();
|
|
1414
|
+
K(() => {
|
|
1415
|
+
un() && i("button");
|
|
1416
|
+
}, []);
|
|
1417
|
+
const o = {
|
|
1418
|
+
ref: n,
|
|
1419
|
+
tabIndex: 0,
|
|
1420
|
+
role: r,
|
|
1421
|
+
"aria-hidden": r ? void 0 : !0,
|
|
1422
|
+
[Lt("focus-guard")]: "",
|
|
1423
|
+
style: xr
|
|
1424
|
+
};
|
|
1425
|
+
return /* @__PURE__ */ V("span", {
|
|
1426
|
+
...t,
|
|
1427
|
+
...o
|
|
1428
|
+
});
|
|
1429
|
+
}), pr = {
|
|
1430
|
+
clipPath: "inset(50%)",
|
|
1431
|
+
position: "fixed",
|
|
1432
|
+
top: 0,
|
|
1433
|
+
left: 0
|
|
1434
|
+
}, Pt = /* @__PURE__ */ w.createContext(null), at = /* @__PURE__ */ Lt("portal");
|
|
1435
|
+
function Rr(e) {
|
|
1436
|
+
e === void 0 && (e = {});
|
|
1437
|
+
const { id: t, root: n } = e, r = Xe(), i = Sr(), [o, s] = w.useState(null), l = w.useRef(null);
|
|
1438
|
+
return K(() => () => {
|
|
1439
|
+
o?.remove(), queueMicrotask(() => {
|
|
1440
|
+
l.current = null;
|
|
1441
|
+
});
|
|
1442
|
+
}, [o]), K(() => {
|
|
1443
|
+
if (!r || l.current) return;
|
|
1444
|
+
const c = t ? document.getElementById(t) : null;
|
|
1445
|
+
if (!c) return;
|
|
1446
|
+
const u = document.createElement("div");
|
|
1447
|
+
u.id = r, u.setAttribute(at, ""), c.appendChild(u), l.current = u, s(u);
|
|
1448
|
+
}, [t, r]), K(() => {
|
|
1449
|
+
if (n === null || !r || l.current) return;
|
|
1450
|
+
let c = n || i?.portalNode;
|
|
1451
|
+
c && !$e(c) && (c = c.current), c = c || document.body;
|
|
1452
|
+
let u = null;
|
|
1453
|
+
t && (u = document.createElement("div"), u.id = t, c.appendChild(u));
|
|
1454
|
+
const a = document.createElement("div");
|
|
1455
|
+
a.id = r, a.setAttribute(at, ""), c = u || c, c.appendChild(a), l.current = a, s(a);
|
|
1456
|
+
}, [
|
|
1457
|
+
t,
|
|
1458
|
+
n,
|
|
1459
|
+
r,
|
|
1460
|
+
i
|
|
1461
|
+
]), o;
|
|
1462
|
+
}
|
|
1463
|
+
function Er(e) {
|
|
1464
|
+
const { children: t, id: n, root: r, preserveTabOrder: i = !0 } = e, o = Rr({
|
|
1465
|
+
id: n,
|
|
1466
|
+
root: r
|
|
1467
|
+
}), [s, l] = w.useState(null), c = w.useRef(null), u = w.useRef(null), a = w.useRef(null), d = w.useRef(null), m = s?.modal, g = s?.open, v = !!s && !s.modal && s.open && i && !!(r || o);
|
|
1468
|
+
return w.useEffect(() => {
|
|
1469
|
+
if (!o || !i || m) return;
|
|
1470
|
+
function f(y) {
|
|
1471
|
+
o && Ae(y) && (y.type === "focusin" ? Qe : wn)(o);
|
|
1472
|
+
}
|
|
1473
|
+
return o.addEventListener("focusin", f, !0), o.addEventListener("focusout", f, !0), () => {
|
|
1474
|
+
o.removeEventListener("focusin", f, !0), o.removeEventListener("focusout", f, !0);
|
|
1475
|
+
};
|
|
1476
|
+
}, [
|
|
1477
|
+
o,
|
|
1478
|
+
i,
|
|
1479
|
+
m
|
|
1480
|
+
]), w.useEffect(() => {
|
|
1481
|
+
o && (g || Qe(o));
|
|
1482
|
+
}, [g, o]), /* @__PURE__ */ Be(Pt.Provider, {
|
|
1483
|
+
value: w.useMemo(() => ({
|
|
1484
|
+
preserveTabOrder: i,
|
|
1485
|
+
beforeOutsideRef: c,
|
|
1486
|
+
afterOutsideRef: u,
|
|
1487
|
+
beforeInsideRef: a,
|
|
1488
|
+
afterInsideRef: d,
|
|
1489
|
+
portalNode: o,
|
|
1490
|
+
setFocusManagerState: l
|
|
1491
|
+
}), [i, o]),
|
|
1492
|
+
children: [
|
|
1493
|
+
v && o && /* @__PURE__ */ V(lt, {
|
|
1494
|
+
"data-type": "outside",
|
|
1495
|
+
ref: c,
|
|
1496
|
+
onFocus: (f) => {
|
|
1497
|
+
if (Ae(f, o)) {
|
|
1498
|
+
var y;
|
|
1499
|
+
(y = a.current) == null || y.focus();
|
|
1500
|
+
} else bn(s ? s.domReference : null)?.focus();
|
|
1501
|
+
}
|
|
1502
|
+
}),
|
|
1503
|
+
v && o && /* @__PURE__ */ V("span", {
|
|
1504
|
+
"aria-owns": o.id,
|
|
1505
|
+
style: pr
|
|
1506
|
+
}),
|
|
1507
|
+
o && /* @__PURE__ */ ft.createPortal(t, o),
|
|
1508
|
+
v && o && /* @__PURE__ */ V(lt, {
|
|
1509
|
+
"data-type": "outside",
|
|
1510
|
+
ref: u,
|
|
1511
|
+
onFocus: (f) => {
|
|
1512
|
+
if (Ae(f, o)) {
|
|
1513
|
+
var y;
|
|
1514
|
+
(y = d.current) == null || y.focus();
|
|
1515
|
+
} else
|
|
1516
|
+
vn(s ? s.domReference : null)?.focus(), s != null && s.closeOnFocusOut && s?.onOpenChange(!1, f.nativeEvent, "focus-out");
|
|
1517
|
+
}
|
|
1518
|
+
})
|
|
1519
|
+
]
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
var Sr = () => w.useContext(Pt);
|
|
1523
|
+
function Or(e) {
|
|
1524
|
+
const { open: t = !1, onOpenChange: n, elements: r } = e, i = Xe(), o = w.useRef({}), [s] = w.useState(() => hr()), l = wr() != null;
|
|
1525
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1526
|
+
const g = r.reference;
|
|
1527
|
+
g && !k(g) && mr("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
1528
|
+
}
|
|
1529
|
+
const [c, u] = w.useState(r.reference), a = hn((g, v, f) => {
|
|
1530
|
+
o.current.openEvent = g ? v : void 0, s.emit("openchange", {
|
|
1531
|
+
open: g,
|
|
1532
|
+
event: v,
|
|
1533
|
+
reason: f,
|
|
1534
|
+
nested: l
|
|
1535
|
+
}), n?.(g, v, f);
|
|
1536
|
+
}), d = w.useMemo(() => ({ setPositionReference: u }), []), m = w.useMemo(() => ({
|
|
1537
|
+
reference: c || r.reference || null,
|
|
1538
|
+
floating: r.floating || null,
|
|
1539
|
+
domReference: r.reference
|
|
1540
|
+
}), [
|
|
1541
|
+
c,
|
|
1542
|
+
r.reference,
|
|
1543
|
+
r.floating
|
|
1544
|
+
]);
|
|
1545
|
+
return w.useMemo(() => ({
|
|
1546
|
+
dataRef: o,
|
|
1547
|
+
open: t,
|
|
1548
|
+
onOpenChange: a,
|
|
1549
|
+
elements: m,
|
|
1550
|
+
events: s,
|
|
1551
|
+
floatingId: i,
|
|
1552
|
+
refs: d
|
|
1553
|
+
}), [
|
|
1554
|
+
t,
|
|
1555
|
+
a,
|
|
1556
|
+
m,
|
|
1557
|
+
s,
|
|
1558
|
+
i,
|
|
1559
|
+
d
|
|
1560
|
+
]);
|
|
1561
|
+
}
|
|
1562
|
+
function Cr(e) {
|
|
1563
|
+
e === void 0 && (e = {});
|
|
1564
|
+
const { nodeId: t } = e, n = Or({
|
|
1565
|
+
...e,
|
|
1566
|
+
elements: {
|
|
1567
|
+
reference: null,
|
|
1568
|
+
floating: null,
|
|
1569
|
+
...e.elements
|
|
1570
|
+
}
|
|
1571
|
+
}), r = e.rootContext || n, i = r.elements, [o, s] = w.useState(null), [l, c] = w.useState(null), u = i?.domReference || o, a = w.useRef(null), d = yr();
|
|
1572
|
+
K(() => {
|
|
1573
|
+
u && (a.current = u);
|
|
1574
|
+
}, [u]);
|
|
1575
|
+
const m = Gn({
|
|
1576
|
+
...e,
|
|
1577
|
+
elements: {
|
|
1578
|
+
...i,
|
|
1579
|
+
...l && { reference: l }
|
|
1580
|
+
}
|
|
1581
|
+
}), g = w.useCallback((h) => {
|
|
1582
|
+
const R = k(h) ? {
|
|
1583
|
+
getBoundingClientRect: () => h.getBoundingClientRect(),
|
|
1584
|
+
getClientRects: () => h.getClientRects(),
|
|
1585
|
+
contextElement: h
|
|
1586
|
+
} : h;
|
|
1587
|
+
c(R), m.refs.setReference(R);
|
|
1588
|
+
}, [m.refs]), v = w.useCallback((h) => {
|
|
1589
|
+
(k(h) || h === null) && (a.current = h, s(h)), (k(m.refs.reference.current) || m.refs.reference.current === null || h !== null && !k(h)) && m.refs.setReference(h);
|
|
1590
|
+
}, [m.refs]), f = w.useMemo(() => ({
|
|
1591
|
+
...m.refs,
|
|
1592
|
+
setReference: v,
|
|
1593
|
+
setPositionReference: g,
|
|
1594
|
+
domReference: a
|
|
1595
|
+
}), [
|
|
1596
|
+
m.refs,
|
|
1597
|
+
v,
|
|
1598
|
+
g
|
|
1599
|
+
]), y = w.useMemo(() => ({
|
|
1600
|
+
...m.elements,
|
|
1601
|
+
domReference: u
|
|
1602
|
+
}), [m.elements, u]), x = w.useMemo(() => ({
|
|
1603
|
+
...m,
|
|
1604
|
+
...r,
|
|
1605
|
+
refs: f,
|
|
1606
|
+
elements: y,
|
|
1607
|
+
nodeId: t
|
|
1608
|
+
}), [
|
|
1609
|
+
m,
|
|
1610
|
+
f,
|
|
1611
|
+
y,
|
|
1612
|
+
t,
|
|
1613
|
+
r
|
|
1614
|
+
]);
|
|
1615
|
+
return K(() => {
|
|
1616
|
+
r.dataRef.current.floatingContext = x;
|
|
1617
|
+
const h = d?.nodesRef.current.find((R) => R.id === t);
|
|
1618
|
+
h && (h.context = x);
|
|
1619
|
+
}), w.useMemo(() => ({
|
|
1620
|
+
...m,
|
|
1621
|
+
context: x,
|
|
1622
|
+
refs: f,
|
|
1623
|
+
elements: y
|
|
1624
|
+
}), [
|
|
1625
|
+
m,
|
|
1626
|
+
f,
|
|
1627
|
+
y,
|
|
1628
|
+
x
|
|
1629
|
+
]);
|
|
1630
|
+
}
|
|
1631
|
+
var Tr = 300, We = (e) => {
|
|
1632
|
+
const t = [
|
|
1633
|
+
"a[href]",
|
|
1634
|
+
"button:not([disabled])",
|
|
1635
|
+
"textarea:not([disabled])",
|
|
1636
|
+
"input:not([disabled])",
|
|
1637
|
+
"select:not([disabled])",
|
|
1638
|
+
'[tabindex]:not([tabindex="-1"])',
|
|
1639
|
+
'[contenteditable="true"]'
|
|
1640
|
+
].join(",");
|
|
1641
|
+
return Array.from(e.querySelectorAll(t));
|
|
1642
|
+
}, ct = (e, t = !1) => {
|
|
1643
|
+
const n = We(document.body), r = n.indexOf(e);
|
|
1644
|
+
return r === -1 ? null : t ? r > 0 ? n[r - 1] : null : r < n.length - 1 ? n[r + 1] : null;
|
|
1645
|
+
}, Nr = (e) => {
|
|
1646
|
+
const [t, n] = Pe(e.isOpen), r = le(null);
|
|
1647
|
+
z(() => {
|
|
1648
|
+
if (r.current && (clearTimeout(r.current), r.current = null), e.isOpen) {
|
|
1649
|
+
n(!0);
|
|
1650
|
+
return;
|
|
1651
|
+
}
|
|
1652
|
+
return r.current = setTimeout(() => {
|
|
1653
|
+
n(!1), r.current = null;
|
|
1654
|
+
}, Tr), () => {
|
|
1655
|
+
r.current && (clearTimeout(r.current), r.current = null);
|
|
1656
|
+
};
|
|
1657
|
+
}, [e.isOpen]);
|
|
1658
|
+
const { className: i, style: o } = It({ sx: {
|
|
1659
|
+
variant: "callout",
|
|
1660
|
+
...e?.sxTypography
|
|
1661
|
+
} }), { className: s, style: l } = he(() => {
|
|
1662
|
+
const u = Ft([
|
|
1663
|
+
i,
|
|
1664
|
+
de.component.popover.root,
|
|
1665
|
+
de.transition.color,
|
|
1666
|
+
e.control ? de.control[e.control] : !1,
|
|
1667
|
+
e.isDisabledBoxShadow ? !1 : de.component.popover.boxShadow,
|
|
1668
|
+
e.className
|
|
1669
|
+
]), a = {};
|
|
1670
|
+
return a[Y.component.popover.background] = J.genre.popover[e.genre].background, a[Y.component.popover.color] = J.genre.popover[e.genre].color, a[Y.component.popover.borderColor] = J.genre.popover[e.genre].border, e.isDisabledBoxShadow || (a[Y.component.popover.boxShadow] = J.genre.popover[e.genre].boxShadow), a[Y.component.popover.maxHeight] = e.maxHeight || "100%", a[Y.component.popover.maxWidth] = e.maxWidth || "100%", a[Y.component.popover.padding] = J.size[e.size].padding, a[Y.component.popover.borderRadius] = J.size[e.size].radius, {
|
|
1671
|
+
className: u,
|
|
1672
|
+
style: Mt([
|
|
1673
|
+
o,
|
|
1674
|
+
Object.keys(a).length ? a : void 0,
|
|
1675
|
+
e.style
|
|
1676
|
+
])
|
|
1677
|
+
};
|
|
1678
|
+
}, [
|
|
1679
|
+
e.className,
|
|
1680
|
+
e.style,
|
|
1681
|
+
e.genre,
|
|
1682
|
+
e.maxHeight,
|
|
1683
|
+
e.maxWidth,
|
|
1684
|
+
e.size,
|
|
1685
|
+
i,
|
|
1686
|
+
o,
|
|
1687
|
+
e.control,
|
|
1688
|
+
e.isDisabledBoxShadow
|
|
1689
|
+
]), c = e.placement ? {
|
|
1690
|
+
top: {
|
|
1691
|
+
size: "left",
|
|
1692
|
+
value: `calc(50% - ${(e.arrowHeight ?? 8) * 2}px)`
|
|
1693
|
+
},
|
|
1694
|
+
right: {
|
|
1695
|
+
size: "top",
|
|
1696
|
+
value: `calc(50% - ${e.arrowHeight ?? 8}px)`
|
|
1697
|
+
},
|
|
1698
|
+
bottom: {
|
|
1699
|
+
size: "left",
|
|
1700
|
+
value: `calc(50% - ${(e.arrowHeight ?? 8) * 2}px)`
|
|
1701
|
+
},
|
|
1702
|
+
left: {
|
|
1703
|
+
size: "top",
|
|
1704
|
+
value: `calc(50% - ${e.arrowHeight ?? 8}px)`
|
|
1705
|
+
}
|
|
1706
|
+
}[e.placement.split("-")[0]] : null;
|
|
1707
|
+
return /* @__PURE__ */ V(Er, { children: /* @__PURE__ */ V("div", {
|
|
1708
|
+
ref: e.ref,
|
|
1709
|
+
style: {
|
|
1710
|
+
position: "absolute",
|
|
1711
|
+
top: 0,
|
|
1712
|
+
left: 0,
|
|
1713
|
+
...e.floatingStyles,
|
|
1714
|
+
zIndex: 9998,
|
|
1715
|
+
outline: "0px transparent solid !important",
|
|
1716
|
+
border: "0px transparent solid !important",
|
|
1717
|
+
pointerEvents: e.isOpen ? "auto" : "none"
|
|
1718
|
+
},
|
|
1719
|
+
children: /* @__PURE__ */ Be("div", {
|
|
1720
|
+
tabIndex: -1,
|
|
1721
|
+
className: s,
|
|
1722
|
+
style: {
|
|
1723
|
+
...l,
|
|
1724
|
+
transition: "opacity var(--transition-default)",
|
|
1725
|
+
...e.isOpen ? {
|
|
1726
|
+
opacity: 1,
|
|
1727
|
+
visibility: "visible"
|
|
1728
|
+
} : {
|
|
1729
|
+
opacity: 0,
|
|
1730
|
+
visibility: t ? "visible" : "hidden"
|
|
1731
|
+
}
|
|
1732
|
+
},
|
|
1733
|
+
children: [e.isArrow && e.context && /* @__PURE__ */ V(gr, {
|
|
1734
|
+
width: (e.arrowHeight ?? 8) * 2,
|
|
1735
|
+
height: e.arrowHeight ?? 8,
|
|
1736
|
+
ref: e.refArrow,
|
|
1737
|
+
context: e.context,
|
|
1738
|
+
fill: J.genre.popover[e.genre].background,
|
|
1739
|
+
style: e.isCenteredArrow && c ? { [c.size]: c.value } : {}
|
|
1740
|
+
}), e.children]
|
|
1741
|
+
})
|
|
1742
|
+
}) });
|
|
1743
|
+
}, kr = (e) => {
|
|
1744
|
+
const { onFocus: t, onBlur: n, onBlurReference: r } = e, [i, o] = Pe(!1), [s, l] = Pe(!1), c = le(null), u = le(null), a = he(() => (e.hoverOffset ?? e.offset ?? 8) + (e.arrowHeight ?? 0), [
|
|
1745
|
+
e.hoverOffset,
|
|
1746
|
+
e.offset,
|
|
1747
|
+
e.arrowHeight
|
|
1748
|
+
]), d = he(() => (e.offset ?? 8) + (e.arrowHeight ?? 0), [e.offset, e.arrowHeight]), { floatingStyles: m, context: g, update: v, refs: f, placement: y } = Cr({
|
|
1749
|
+
open: i,
|
|
1750
|
+
placement: e.placement,
|
|
1751
|
+
middleware: [
|
|
1752
|
+
Qn(d),
|
|
1753
|
+
er(),
|
|
1754
|
+
Jn(),
|
|
1755
|
+
e.isArrow ? nr({ element: u }) : !1,
|
|
1756
|
+
e.isWidthAsContent ? tr({ apply({ rects: b, elements: p }) {
|
|
1757
|
+
Object.assign(p.floating.style, {
|
|
1758
|
+
minWidth: `min(${b.reference.width}px, 100dvw)`,
|
|
1759
|
+
maxWidth: `min(${b.reference.width}px, 100dvw)`
|
|
1760
|
+
});
|
|
1761
|
+
} }) : !1
|
|
1762
|
+
]
|
|
1763
|
+
}), x = le(null), h = le(null), R = he(() => e.hoverCloseDelay ?? 100, [e.hoverCloseDelay]);
|
|
1764
|
+
z(() => {
|
|
1765
|
+
if (e.isDisabled) return;
|
|
1766
|
+
const b = f.reference.current;
|
|
1767
|
+
if (b) {
|
|
1768
|
+
if ((e.mode === "click" || e.mode === "clickOpen") && b instanceof HTMLElement) {
|
|
1769
|
+
const p = () => {
|
|
1770
|
+
e.mode === "click" ? o((T) => !T) : e.mode === "clickOpen" && o(!0);
|
|
1771
|
+
};
|
|
1772
|
+
return b.addEventListener("click", p), () => {
|
|
1773
|
+
b.removeEventListener("click", p);
|
|
1774
|
+
};
|
|
1775
|
+
} else if (e.mode === "hover" && b instanceof HTMLElement) {
|
|
1776
|
+
const p = () => {
|
|
1777
|
+
o(!0);
|
|
1778
|
+
}, T = () => {
|
|
1779
|
+
h.current && clearTimeout(h.current), h.current = setTimeout(() => o(!1), R);
|
|
1780
|
+
};
|
|
1781
|
+
return b.addEventListener("mouseenter", p), b.addEventListener("mouseleave", T), () => {
|
|
1782
|
+
b.removeEventListener("mouseenter", p), b.removeEventListener("mouseleave", T), h.current && clearTimeout(h.current);
|
|
1783
|
+
};
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}, [
|
|
1787
|
+
e.mode,
|
|
1788
|
+
f.reference,
|
|
1789
|
+
R,
|
|
1790
|
+
e.isDisabled
|
|
1791
|
+
]), z(() => {
|
|
1792
|
+
if (!(!i || !f.reference.current || !f.floating.current || e.isDisabled))
|
|
1793
|
+
return jn(f.reference.current, f.floating.current, v);
|
|
1794
|
+
}, [
|
|
1795
|
+
i,
|
|
1796
|
+
f.reference,
|
|
1797
|
+
f.floating,
|
|
1798
|
+
v,
|
|
1799
|
+
e.isDisabled
|
|
1800
|
+
]), z(() => {
|
|
1801
|
+
if (!(!i || !f.reference.current || !f.floating.current || e.isDisabled))
|
|
1802
|
+
return e.isClickOutside && (x.current = (b) => {
|
|
1803
|
+
const p = f.reference.current, T = f.floating.current, O = e.refsExcludeClickOutside || [];
|
|
1804
|
+
p instanceof HTMLElement && T instanceof HTMLElement && !p.contains(b.target) && !T.contains(b.target) && !O.some((E) => typeof E == "object" && E !== null && "current" in E ? E.current?.contains(b.target) : !1) && o(!1);
|
|
1805
|
+
}, document.addEventListener("mousedown", x.current)), () => {
|
|
1806
|
+
x.current && (document.removeEventListener("mousedown", x.current), x.current = null), h.current && clearTimeout(h.current);
|
|
1807
|
+
};
|
|
1808
|
+
}, [
|
|
1809
|
+
i,
|
|
1810
|
+
f.reference,
|
|
1811
|
+
f.floating,
|
|
1812
|
+
e.isClickOutside,
|
|
1813
|
+
e.isDisabled,
|
|
1814
|
+
e.refsExcludeClickOutside
|
|
1815
|
+
]), z(() => {
|
|
1816
|
+
if (!i || !e.isFloatingHover || !f.reference.current || !f.floating.current || e.isDisabled) return;
|
|
1817
|
+
const b = f.reference.current, p = f.floating.current, T = (O) => {
|
|
1818
|
+
const E = O.clientX, S = O.clientY, P = b.getBoundingClientRect(), D = p.getBoundingClientRect(), N = E >= P.left - a && E <= P.right + a && S >= P.top - a && S <= P.bottom + a, L = E >= D.left - a && E <= D.right + a && S >= D.top - a && S <= D.bottom + a;
|
|
1819
|
+
N || L ? h.current && (clearTimeout(h.current), h.current = null) : (h.current && clearTimeout(h.current), h.current = setTimeout(() => o(!1), R));
|
|
1820
|
+
};
|
|
1821
|
+
return document.addEventListener("mousemove", T), () => {
|
|
1822
|
+
document.removeEventListener("mousemove", T), h.current && clearTimeout(h.current);
|
|
1823
|
+
};
|
|
1824
|
+
}, [
|
|
1825
|
+
i,
|
|
1826
|
+
e.isFloatingHover,
|
|
1827
|
+
f.reference,
|
|
1828
|
+
f.floating,
|
|
1829
|
+
a,
|
|
1830
|
+
R,
|
|
1831
|
+
e.isDisabled
|
|
1832
|
+
]);
|
|
1833
|
+
const C = me(() => {
|
|
1834
|
+
e.isDisabled || o(!0);
|
|
1835
|
+
}, [e.isDisabled]), F = me(() => {
|
|
1836
|
+
e.isDisabled || o(!1);
|
|
1837
|
+
}, [e.isDisabled]), A = me(() => {
|
|
1838
|
+
e.isDisabled || o((b) => !b);
|
|
1839
|
+
}, [e.isDisabled]);
|
|
1840
|
+
return z(() => {
|
|
1841
|
+
i && (t?.(), l(!0));
|
|
1842
|
+
}, [i, t]), z(() => {
|
|
1843
|
+
!i && s && n?.();
|
|
1844
|
+
}, [
|
|
1845
|
+
i,
|
|
1846
|
+
s,
|
|
1847
|
+
n
|
|
1848
|
+
]), z(() => {
|
|
1849
|
+
if (!i || e.isDisabled) return;
|
|
1850
|
+
const b = (p) => {
|
|
1851
|
+
const T = f.reference.current, O = f.floating.current, E = e.refsExcludeClickOutside || [];
|
|
1852
|
+
T instanceof HTMLElement && T.contains(p.target) || O instanceof HTMLElement && O.contains(p.target) || E.some((S) => S && "current" in S && S.current && S.current instanceof HTMLElement ? S.current.contains(p.target) : !1) || o(!1);
|
|
1853
|
+
};
|
|
1854
|
+
return document.addEventListener("focusin", b), () => {
|
|
1855
|
+
document.removeEventListener("focusin", b);
|
|
1856
|
+
};
|
|
1857
|
+
}, [
|
|
1858
|
+
i,
|
|
1859
|
+
f.reference,
|
|
1860
|
+
f.floating,
|
|
1861
|
+
e.refsExcludeClickOutside,
|
|
1862
|
+
e.isDisabled
|
|
1863
|
+
]), z(() => {
|
|
1864
|
+
if (!f.reference.current || e.isDisabled || !r) return;
|
|
1865
|
+
const b = f.reference.current, p = e.refsExcludeBlur || [], T = (O) => {
|
|
1866
|
+
b instanceof HTMLElement && !b.contains(O.relatedTarget) && !p.some((E) => E && "current" in E && E.current && E.current instanceof HTMLElement ? E.current.contains(O.relatedTarget) : !1) && r();
|
|
1867
|
+
};
|
|
1868
|
+
return b instanceof HTMLElement && b.addEventListener("blur", T, !0), () => {
|
|
1869
|
+
b instanceof HTMLElement && b.removeEventListener("blur", T, !0);
|
|
1870
|
+
};
|
|
1871
|
+
}, [
|
|
1872
|
+
f.reference,
|
|
1873
|
+
e.isDisabled,
|
|
1874
|
+
r,
|
|
1875
|
+
e.refsExcludeBlur
|
|
1876
|
+
]), z(() => {
|
|
1877
|
+
if (!e.isFocusTrap || !i || !f.floating.current) return;
|
|
1878
|
+
const b = f.floating.current, p = f.reference.current;
|
|
1879
|
+
c.current = document.activeElement;
|
|
1880
|
+
const T = () => {
|
|
1881
|
+
const S = We(b);
|
|
1882
|
+
return S.length > 0 ? (S[0].focus(), !0) : !1;
|
|
1883
|
+
};
|
|
1884
|
+
let O = null;
|
|
1885
|
+
T() || (O = new MutationObserver(() => {
|
|
1886
|
+
T() && (O?.disconnect(), O = null);
|
|
1887
|
+
}), O.observe(b, {
|
|
1888
|
+
childList: !0,
|
|
1889
|
+
subtree: !0
|
|
1890
|
+
}));
|
|
1891
|
+
const E = (S) => {
|
|
1892
|
+
if (S.key !== "Tab") return;
|
|
1893
|
+
const P = We(b);
|
|
1894
|
+
if (P.length === 0) return;
|
|
1895
|
+
const D = P[0], N = P[P.length - 1];
|
|
1896
|
+
if (S.shiftKey) {
|
|
1897
|
+
if (document.activeElement === D) {
|
|
1898
|
+
S.preventDefault();
|
|
1899
|
+
const L = ct(p, !0);
|
|
1900
|
+
L && L.focus();
|
|
1901
|
+
return;
|
|
1902
|
+
}
|
|
1903
|
+
return;
|
|
1904
|
+
}
|
|
1905
|
+
if (document.activeElement === N) {
|
|
1906
|
+
S.preventDefault();
|
|
1907
|
+
const L = ct(p, !1);
|
|
1908
|
+
L && L.focus();
|
|
1909
|
+
return;
|
|
1910
|
+
}
|
|
1911
|
+
};
|
|
1912
|
+
return document.addEventListener("keydown", E), () => {
|
|
1913
|
+
O && O.disconnect(), document.removeEventListener("keydown", E);
|
|
1914
|
+
};
|
|
1915
|
+
}, [
|
|
1916
|
+
i,
|
|
1917
|
+
f.floating,
|
|
1918
|
+
f.reference.current,
|
|
1919
|
+
e.isFocusTrap
|
|
1920
|
+
]), {
|
|
1921
|
+
getIsInside: me((b) => {
|
|
1922
|
+
if (!b) return !1;
|
|
1923
|
+
const p = f.reference.current, T = f.floating.current, O = e.refsExcludeBlur || [];
|
|
1924
|
+
return p instanceof HTMLElement && p.contains(b) || T instanceof HTMLElement && T.contains(b) || O.some((E) => E && "current" in E && E.current && E.current instanceof HTMLElement ? E.current.contains(b) : !1);
|
|
1925
|
+
}, [
|
|
1926
|
+
f.reference,
|
|
1927
|
+
f.floating,
|
|
1928
|
+
e.refsExcludeBlur
|
|
1929
|
+
]),
|
|
1930
|
+
isOpen: i,
|
|
1931
|
+
setIsOpen: o,
|
|
1932
|
+
open: C,
|
|
1933
|
+
close: F,
|
|
1934
|
+
toggle: A,
|
|
1935
|
+
refReference: f.setReference,
|
|
1936
|
+
refFloating: f.setFloating,
|
|
1937
|
+
refArrow: u,
|
|
1938
|
+
context: g,
|
|
1939
|
+
floatingStyles: m,
|
|
1940
|
+
placement: y
|
|
1941
|
+
};
|
|
1942
|
+
};
|
|
1943
|
+
export {
|
|
1944
|
+
kr as n,
|
|
1945
|
+
Nr as t
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1948
|
+
//# sourceMappingURL=popover-1k1MNFwv.js.map
|