@scbt-ecom/ui 0.95.3 → 0.95.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/shared/ui/formElements/uncontrolled/maskInput/MaskInput.js +1 -1
- package/dist/lib/shared/ui/formElements/uncontrolled/maskInput/MaskInput.js.map +1 -1
- package/dist/lib/shared/ui/formElements/uncontrolled/select/Select.js +1 -1
- package/dist/lib/shared/ui/formElements/uncontrolled/select/Select.js.map +1 -1
- package/dist/lib/shared/ui/formElements/uncontrolled/select/ui/SelectItem.js +1 -1
- package/dist/lib/shared/ui/formElements/uncontrolled/select/ui/SelectItem.js.map +1 -1
- package/dist/lib/widgets/model/helpers.js +2 -2
- package/dist/lib/widgets/model/helpers.js.map +1 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +1 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
- package/dist/node_modules/use-mask-input/dist/index.js +14 -0
- package/dist/node_modules/use-mask-input/dist/index.js.map +1 -0
- package/dist/stats.html +1 -1
- package/package.json +5 -4
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -2
- package/dist/_virtual/use-sync-external-store-with-selector.production.js.map +0 -1
- package/dist/_virtual/with-selector.js +0 -2
- package/dist/_virtual/with-selector.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/description/description.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/description/description.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/mouse.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/mouse.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-by-comparator.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -3
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/form-fields.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/form-fields.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/frozen.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/frozen.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/id.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/id.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/machine.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/machine.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/react-glue.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/react-glue.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/dom.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/dom.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/env.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/form.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/form.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/match.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/render.js +0 -5
- package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/store.js +0 -2
- package/dist/node_modules/@headlessui/react/dist/utils/store.js.map +0 -1
- package/dist/node_modules/@headlessui/react/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -2
- package/dist/node_modules/@headlessui/react/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +0 -1
- package/dist/node_modules/@headlessui/react/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -2
- package/dist/node_modules/@headlessui/react/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js +0 -2
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useHover.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/useHover.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/utils.js +0 -2
- package/dist/node_modules/@react-aria/interactions/dist/utils.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/platform.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/platform.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js +0 -2
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js.map +0 -1
- package/dist/node_modules/@react-stately/flags/dist/import.js +0 -2
- package/dist/node_modules/@react-stately/flags/dist/import.js.map +0 -1
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -2
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js.map +0 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -2
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js.map +0 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -5
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -10
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/with-selector.js +0 -2
- package/dist/node_modules/use-sync-external-store/with-selector.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scbt-ecom/ui",
|
|
3
|
-
"version": "0.95.
|
|
3
|
+
"version": "0.95.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
},
|
|
84
84
|
"peerDependecies": {
|
|
85
85
|
"react": "^18.3.1",
|
|
86
|
-
"react-dom": "^18.3.1"
|
|
86
|
+
"react-dom": "^18.3.1",
|
|
87
|
+
"@headlessui/react": "^2.1.2"
|
|
87
88
|
},
|
|
88
89
|
"overrides": {
|
|
89
90
|
"esbuild": "0.24.0"
|
|
@@ -129,7 +130,8 @@
|
|
|
129
130
|
"tailwind-merge": "^2.4.0",
|
|
130
131
|
"tailwindcss": "^3.4.7",
|
|
131
132
|
"tailwindcss-animate": "^1.0.7",
|
|
132
|
-
"zod": "^3.23.8"
|
|
133
|
+
"zod": "^3.23.8",
|
|
134
|
+
"use-mask-input": "^3.4.2"
|
|
133
135
|
},
|
|
134
136
|
"devDependencies": {
|
|
135
137
|
"@chromatic-com/storybook": "^1.6.1",
|
|
@@ -190,7 +192,6 @@
|
|
|
190
192
|
"ts-node": "^10.9.2",
|
|
191
193
|
"typescript": "^5.2.2",
|
|
192
194
|
"typescript-eslint": "^8.11.0",
|
|
193
|
-
"use-mask-input": "^3.4.2",
|
|
194
195
|
"vite": "^5.3.4",
|
|
195
196
|
"vite-plugin-checker": "^0.7.2",
|
|
196
197
|
"vite-plugin-dts": "^4.0.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-sync-external-store-with-selector.production.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"with-selector.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createContext as n,useContext as a,useMemo as u}from"react";import{useOnUnmount as i}from"../../hooks/use-on-unmount.js";import{ComboboxMachine as m}from"./combobox-machine.js";const s=n(null);function x(t){let o=a(s);if(o===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,c),e}return o}function c({id:t,virtual:o=null,__demoMode:e=!1}){let r=u(()=>m.new({id:t,virtual:o,__demoMode:e}),[]);return i(()=>r.dispose()),r}export{s as ComboboxContext,c as useComboboxMachine,x as useComboboxMachineContext};
|
|
2
|
-
//# sourceMappingURL=combobox-machine-glue.js.map
|
package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-machine-glue.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/components/combobox/combobox-machine-glue.js"],"sourcesContent":["import{createContext as r,useContext as a,useMemo as m}from\"react\";import{useOnUnmount as c}from'../../hooks/use-on-unmount.js';import{ComboboxMachine as i}from'./combobox-machine.js';const u=r(null);function p(n){let o=a(u);if(o===null){let e=new Error(`<${n} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,b),e}return o}function b({id:n,virtual:o=null,__demoMode:e=!1}){let t=m(()=>i.new({id:n,virtual:o,__demoMode:e}),[]);return c(()=>t.dispose()),t}export{u as ComboboxContext,b as useComboboxMachine,p as useComboboxMachineContext};\n"],"names":["u","r","p","n","a","b","t","m","i","c"],"mappings":"wLAA6L,MAACA,EAAEC,EAAE,IAAI,EAAE,SAASC,EAAEC,EAAE,CAAC,IAAI,EAAEC,EAAEJ,CAAC,EAAE,GAAG,IAAI,KAAK,CAAC,IAAI,EAAE,IAAI,MAAM,IAAIG,CAAC,iDAAiD,EAAE,MAAM,MAAM,mBAAmB,MAAM,kBAAkB,EAAEE,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,SAASA,EAAE,CAAC,GAAGF,EAAE,QAAQ,EAAE,KAAK,WAAW,EAAE,EAAE,EAAE,CAAC,IAAIG,EAAEC,EAAE,IAAIC,EAAE,IAAI,CAAC,GAAGL,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,EAAE,CAAA,CAAE,EAAE,OAAOM,EAAE,IAAIH,EAAE,QAAO,CAAE,EAAEA,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Machine as T}from"../../machine.js";import{stackMachines as y,ActionTypes as R}from"../../machines/stack-machine.js";import{Focus as p,calculateActiveIndex as x}from"../../utils/calculate-active-index.js";import{sortByDomNode as S}from"../../utils/focus-management.js";import{match as b}from"../../utils/match.js";var C=Object.defineProperty,E=(e,n,t)=>n in e?C(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,h=(e,n,t)=>(E(e,typeof n!="symbol"?n+"":n,t),t),_=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(_||{}),M=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(M||{}),A=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(A||{}),F=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.DefaultToFirstOption=6]="DefaultToFirstOption",e[e.SetActivationTrigger=7]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",e[e.SetInputElement=9]="SetInputElement",e[e.SetButtonElement=10]="SetButtonElement",e[e.SetOptionsElement=11]="SetOptionsElement",e))(F||{});function c(e,n=t=>t){let t=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,i=n(e.options.slice()),o=i.length>0&&i[0].dataRef.current.order!==null?i.sort((r,l)=>r.dataRef.current.order-l.dataRef.current.order):S(i,r=>r.dataRef.current.domRef.current),a=t?o.indexOf(t):null;return a===-1&&(a=null),{options:o,activeOptionIndex:a}}let D={1(e){var n;return(n=e.dataRef.current)!=null&&n.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(e){var n,t;if((n=e.dataRef.current)!=null&&n.disabled||e.comboboxState===0)return e;if((t=e.dataRef.current)!=null&&t.value){let i=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(i!==-1)return{...e,activeOptionIndex:i,comboboxState:0,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3(e,n){return e.isTyping===n.isTyping?e:{...e,isTyping:n.isTyping}},2(e,n){var t,i,o,a;if((t=e.dataRef.current)!=null&&t.disabled||e.optionsElement&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let{options:s,disabled:d}=e.virtual,v=n.focus===p.Specific?n.idx:x(n,{resolveItems:()=>s,resolveActiveIndex:()=>{var m,g;return(g=(m=e.activeOptionIndex)!=null?m:s.findIndex(I=>!d(I)))!=null?g:null},resolveDisabled:d,resolveId(){throw new Error("Function not implemented.")}}),f=(o=n.trigger)!=null?o:2;return e.activeOptionIndex===v&&e.activationTrigger===f?e:{...e,activeOptionIndex:v,activationTrigger:f,isTyping:!1,__demoMode:!1}}let r=c(e);if(r.activeOptionIndex===null){let s=r.options.findIndex(d=>!d.dataRef.current.disabled);s!==-1&&(r.activeOptionIndex=s)}let l=n.focus===p.Specific?n.idx:x(n,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:s=>s.id,resolveDisabled:s=>s.dataRef.current.disabled}),u=(a=n.trigger)!=null?a:2;return e.activeOptionIndex===l&&e.activationTrigger===u?e:{...e,...r,isTyping:!1,activeOptionIndex:l,activationTrigger:u,__demoMode:!1}},4:(e,n)=>{var t,i,o,a;if((t=e.dataRef.current)!=null&&t.virtual)return{...e,options:[...e.options,n.payload]};let r=n.payload,l=c(e,s=>(s.push(r),s));e.activeOptionIndex===null&&(o=(i=e.dataRef.current).isSelected)!=null&&o.call(i,n.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(r));let u={...e,...l,activationTrigger:2};return(a=e.dataRef.current)!=null&&a.__demoMode&&e.dataRef.current.value===void 0&&(u.activeOptionIndex=0),u},5:(e,n)=>{var t;if((t=e.dataRef.current)!=null&&t.virtual)return{...e,options:e.options.filter(o=>o.id!==n.id)};let i=c(e,o=>{let a=o.findIndex(r=>r.id===n.id);return a!==-1&&o.splice(a,1),o});return{...e,...i,activationTrigger:2}},6:(e,n)=>e.defaultToFirstOption===n.value?e:{...e,defaultToFirstOption:n.value},7:(e,n)=>e.activationTrigger===n.trigger?e:{...e,activationTrigger:n.trigger},8:(e,n)=>{var t,i;if(e.virtual===null)return{...e,virtual:{options:n.options,disabled:(t=n.disabled)!=null?t:()=>!1}};if(e.virtual.options===n.options&&e.virtual.disabled===n.disabled)return e;let o=e.activeOptionIndex;if(e.activeOptionIndex!==null){let a=n.options.indexOf(e.virtual.options[e.activeOptionIndex]);a!==-1?o=a:o=null}return{...e,activeOptionIndex:o,virtual:{options:n.options,disabled:(i=n.disabled)!=null?i:()=>!1}}},9:(e,n)=>e.inputElement===n.element?e:{...e,inputElement:n.element},10:(e,n)=>e.buttonElement===n.element?e:{...e,buttonElement:n.element},11:(e,n)=>e.optionsElement===n.element?e:{...e,optionsElement:n.element}};class O extends T{constructor(n){super(n),h(this,"actions",{onChange:t=>{let{onChange:i,compare:o,mode:a,value:r}=this.state.dataRef.current;return b(a,{0:()=>i==null?void 0:i(t),1:()=>{let l=r.slice(),u=l.findIndex(s=>o(s,t));return u===-1?l.push(t):l.splice(u,1),i==null?void 0:i(l)}})},registerOption:(t,i)=>(this.send({type:4,payload:{id:t,dataRef:i}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(i.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:t})}),goToOption:(t,i)=>(this.send({type:6,value:!1}),this.send({type:2,...t,trigger:i})),setIsTyping:t=>{this.send({type:3,isTyping:t})},closeCombobox:()=>{var t,i;this.send({type:1}),this.send({type:6,value:!1}),(i=(t=this.state.dataRef.current).onClose)==null||i.call(t)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:t=>{this.send({type:7,trigger:t})},selectActiveOption:()=>{let t=this.selectors.activeOptionIndex(this.state);if(t!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[t]);else{let{dataRef:i}=this.state.options[t];this.actions.onChange(i.current.value)}this.actions.goToOption({focus:p.Specific,idx:t})}},setInputElement:t=>{this.send({type:9,element:t})},setButtonElement:t=>{this.send({type:10,element:t})},setOptionsElement:t=>{this.send({type:11,element:t})}}),h(this,"selectors",{activeDescendantId:t=>{var i,o;let a=this.selectors.activeOptionIndex(t);if(a!==null)return t.virtual?(o=t.options.find(r=>!r.dataRef.current.disabled&&t.dataRef.current.compare(r.dataRef.current.value,t.virtual.options[a])))==null?void 0:o.id:(i=t.options[a])==null?void 0:i.id},activeOptionIndex:t=>{if(t.defaultToFirstOption&&t.activeOptionIndex===null&&(t.virtual?t.virtual.options.length>0:t.options.length>0)){if(t.virtual){let{options:o,disabled:a}=t.virtual,r=o.findIndex(l=>{var u;return!((u=a==null?void 0:a(l))!=null&&u)});if(r!==-1)return r}let i=t.options.findIndex(o=>!o.dataRef.current.disabled);if(i!==-1)return i}return t.activeOptionIndex},activeOption:t=>{var i,o;let a=this.selectors.activeOptionIndex(t);return a===null?null:t.virtual?t.virtual.options[a??0]:(o=(i=t.options[a])==null?void 0:i.dataRef.current.value)!=null?o:null},isActive:(t,i,o)=>{var a;let r=this.selectors.activeOptionIndex(t);return r===null?!1:t.virtual?r===t.dataRef.current.calculateIndex(i):((a=t.options[r])==null?void 0:a.id)===o},shouldScrollIntoView:(t,i,o)=>!(t.virtual||t.__demoMode||t.comboboxState!==0||t.activationTrigger===0||!this.selectors.isActive(t,i,o))});{let t=this.state.id,i=y.get(null);this.disposables.add(i.on(R.Push,o=>{!i.selectors.isTop(o,t)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>i.actions.push(t)),this.on(1,()=>i.actions.pop(t))}}static new({id:n,virtual:t=null,__demoMode:i=!1}){var o;return new O({id:n,dataRef:{current:{}},comboboxState:i?0:1,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:(o=t.disabled)!=null?o:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:i})}reduce(n,t){return b(t.type,D,n,t)}}export{F as ActionTypes,A as ActivationTrigger,O as ComboboxMachine,_ as ComboboxState,M as ValueMode};
|
|
2
|
-
//# sourceMappingURL=combobox-machine.js.map
|
package/dist/node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-machine.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/components/combobox/combobox-machine.js"],"sourcesContent":["var S=Object.defineProperty;var I=(t,i,e)=>i in t?S(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e;var c=(t,i,e)=>(I(t,typeof i!=\"symbol\"?i+\"\":i,e),e);import{Machine as h}from'../../machine.js';import{ActionTypes as R,stackMachines as A}from'../../machines/stack-machine.js';import{Focus as f,calculateActiveIndex as x}from'../../utils/calculate-active-index.js';import{sortByDomNode as E}from'../../utils/focus-management.js';import{match as g}from'../../utils/match.js';var C=(e=>(e[e.Open=0]=\"Open\",e[e.Closed=1]=\"Closed\",e))(C||{}),M=(e=>(e[e.Single=0]=\"Single\",e[e.Multi=1]=\"Multi\",e))(M||{}),F=(n=>(n[n.Pointer=0]=\"Pointer\",n[n.Focus=1]=\"Focus\",n[n.Other=2]=\"Other\",n))(F||{}),_=(l=>(l[l.OpenCombobox=0]=\"OpenCombobox\",l[l.CloseCombobox=1]=\"CloseCombobox\",l[l.GoToOption=2]=\"GoToOption\",l[l.SetTyping=3]=\"SetTyping\",l[l.RegisterOption=4]=\"RegisterOption\",l[l.UnregisterOption=5]=\"UnregisterOption\",l[l.DefaultToFirstOption=6]=\"DefaultToFirstOption\",l[l.SetActivationTrigger=7]=\"SetActivationTrigger\",l[l.UpdateVirtualConfiguration=8]=\"UpdateVirtualConfiguration\",l[l.SetInputElement=9]=\"SetInputElement\",l[l.SetButtonElement=10]=\"SetButtonElement\",l[l.SetOptionsElement=11]=\"SetOptionsElement\",l))(_||{});function T(t,i=e=>e){let e=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,n=i(t.options.slice()),o=n.length>0&&n[0].dataRef.current.order!==null?n.sort((u,a)=>u.dataRef.current.order-a.dataRef.current.order):E(n,u=>u.dataRef.current.domRef.current),r=e?o.indexOf(e):null;return r===-1&&(r=null),{options:o,activeOptionIndex:r}}let D={[1](t){var i;return(i=t.dataRef.current)!=null&&i.disabled||t.comboboxState===1?t:{...t,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},[0](t){var i,e;if((i=t.dataRef.current)!=null&&i.disabled||t.comboboxState===0)return t;if((e=t.dataRef.current)!=null&&e.value){let n=t.dataRef.current.calculateIndex(t.dataRef.current.value);if(n!==-1)return{...t,activeOptionIndex:n,comboboxState:0,__demoMode:!1}}return{...t,comboboxState:0,__demoMode:!1}},[3](t,i){return t.isTyping===i.isTyping?t:{...t,isTyping:i.isTyping}},[2](t,i){var r,u,a,d;if((r=t.dataRef.current)!=null&&r.disabled||t.optionsElement&&!((u=t.dataRef.current)!=null&&u.optionsPropsRef.current.static)&&t.comboboxState===1)return t;if(t.virtual){let{options:p,disabled:s}=t.virtual,b=i.focus===f.Specific?i.idx:x(i,{resolveItems:()=>p,resolveActiveIndex:()=>{var v,m;return(m=(v=t.activeOptionIndex)!=null?v:p.findIndex(y=>!s(y)))!=null?m:null},resolveDisabled:s,resolveId(){throw new Error(\"Function not implemented.\")}}),l=(a=i.trigger)!=null?a:2;return t.activeOptionIndex===b&&t.activationTrigger===l?t:{...t,activeOptionIndex:b,activationTrigger:l,isTyping:!1,__demoMode:!1}}let e=T(t);if(e.activeOptionIndex===null){let p=e.options.findIndex(s=>!s.dataRef.current.disabled);p!==-1&&(e.activeOptionIndex=p)}let n=i.focus===f.Specific?i.idx:x(i,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled}),o=(d=i.trigger)!=null?d:2;return t.activeOptionIndex===n&&t.activationTrigger===o?t:{...t,...e,isTyping:!1,activeOptionIndex:n,activationTrigger:o,__demoMode:!1}},[4]:(t,i)=>{var r,u,a,d;if((r=t.dataRef.current)!=null&&r.virtual)return{...t,options:[...t.options,i.payload]};let e=i.payload,n=T(t,p=>(p.push(e),p));t.activeOptionIndex===null&&(a=(u=t.dataRef.current).isSelected)!=null&&a.call(u,i.payload.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(e));let o={...t,...n,activationTrigger:2};return(d=t.dataRef.current)!=null&&d.__demoMode&&t.dataRef.current.value===void 0&&(o.activeOptionIndex=0),o},[5]:(t,i)=>{var n;if((n=t.dataRef.current)!=null&&n.virtual)return{...t,options:t.options.filter(o=>o.id!==i.id)};let e=T(t,o=>{let r=o.findIndex(u=>u.id===i.id);return r!==-1&&o.splice(r,1),o});return{...t,...e,activationTrigger:2}},[6]:(t,i)=>t.defaultToFirstOption===i.value?t:{...t,defaultToFirstOption:i.value},[7]:(t,i)=>t.activationTrigger===i.trigger?t:{...t,activationTrigger:i.trigger},[8]:(t,i)=>{var n,o;if(t.virtual===null)return{...t,virtual:{options:i.options,disabled:(n=i.disabled)!=null?n:()=>!1}};if(t.virtual.options===i.options&&t.virtual.disabled===i.disabled)return t;let e=t.activeOptionIndex;if(t.activeOptionIndex!==null){let r=i.options.indexOf(t.virtual.options[t.activeOptionIndex]);r!==-1?e=r:e=null}return{...t,activeOptionIndex:e,virtual:{options:i.options,disabled:(o=i.disabled)!=null?o:()=>!1}}},[9]:(t,i)=>t.inputElement===i.element?t:{...t,inputElement:i.element},[10]:(t,i)=>t.buttonElement===i.element?t:{...t,buttonElement:i.element},[11]:(t,i)=>t.optionsElement===i.element?t:{...t,optionsElement:i.element}};class O extends h{constructor(e){super(e);c(this,\"actions\",{onChange:e=>{let{onChange:n,compare:o,mode:r,value:u}=this.state.dataRef.current;return g(r,{[0]:()=>n==null?void 0:n(e),[1]:()=>{let a=u.slice(),d=a.findIndex(p=>o(p,e));return d===-1?a.push(e):a.splice(d,1),n==null?void 0:n(a)}})},registerOption:(e,n)=>(this.send({type:4,payload:{id:e,dataRef:n}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(n.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,n)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:n})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,n;this.send({type:1}),this.send({type:6,value:!1}),(n=(e=this.state.dataRef.current).onClose)==null||n.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(e!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:n}=this.state.options[e];this.actions.onChange(n.current.value)}this.actions.goToOption({focus:f.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}});c(this,\"selectors\",{activeDescendantId:e=>{var o,r;let n=this.selectors.activeOptionIndex(e);if(n!==null)return e.virtual?(r=e.options.find(u=>!u.dataRef.current.disabled&&e.dataRef.current.compare(u.dataRef.current.value,e.virtual.options[n])))==null?void 0:r.id:(o=e.options[n])==null?void 0:o.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&e.activeOptionIndex===null&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:o,disabled:r}=e.virtual,u=o.findIndex(a=>{var d;return!((d=r==null?void 0:r(a))!=null&&d)});if(u!==-1)return u}let n=e.options.findIndex(o=>!o.dataRef.current.disabled);if(n!==-1)return n}return e.activeOptionIndex},activeOption:e=>{var o,r;let n=this.selectors.activeOptionIndex(e);return n===null?null:e.virtual?e.virtual.options[n!=null?n:0]:(r=(o=e.options[n])==null?void 0:o.dataRef.current.value)!=null?r:null},isActive:(e,n,o)=>{var u;let r=this.selectors.activeOptionIndex(e);return r===null?!1:e.virtual?r===e.dataRef.current.calculateIndex(n):((u=e.options[r])==null?void 0:u.id)===o},shouldScrollIntoView:(e,n,o)=>!(e.virtual||e.__demoMode||e.comboboxState!==0||e.activationTrigger===0||!this.selectors.isActive(e,n,o))});{let n=this.state.id,o=A.get(null);this.disposables.add(o.on(R.Push,r=>{!o.selectors.isTop(r,n)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>o.actions.push(n)),this.on(1,()=>o.actions.pop(n))}}static new({id:e,virtual:n=null,__demoMode:o=!1}){var r;return new O({id:e,dataRef:{current:{}},comboboxState:o?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:(r=n.disabled)!=null?r:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:o})}reduce(e,n){return g(n.type,D,e,n)}}export{_ as ActionTypes,F as ActivationTrigger,O as ComboboxMachine,C as ComboboxState,M as ValueMode};\n"],"names":["S","I","t","i","e","c","C","F","n","_","l","T","u","a","E","r","d","p","s","b","f","x","v","m","y","o","h","g","A","R"],"mappings":"iUAAA,IAAIA,EAAE,OAAO,eAAmBC,EAAE,CAACC,EAAEC,EAAEC,IAAID,KAAKD,EAAEF,EAAEE,EAAEC,EAAE,CAAC,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,MAAMC,CA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AGA,EAAE,oBAAoB,GAAG,CAAC,KAAK,UAAU,SAASA,EAAEI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAIA,EAAE,KAAK,MAAM,GAAGiB,EAAEG,EAAE,IAAI,IAAI,EAAE,KAAK,YAAY,IAAIH,EAAE,GAAGI,EAAE,KAAKd,GAAG,CAAC,CAACU,EAAE,UAAU,MAAMV,EAAEP,CAAC,GAAG,KAAK,MAAM,gBAAgB,GAAG,KAAK,QAAQ,cAAa,CAAE,CAAC,CAAC,EAAE,KAAK,GAAG,EAAE,IAAIiB,EAAE,QAAQ,KAAKjB,CAAC,CAAC,EAAE,KAAK,GAAG,EAAE,IAAIiB,EAAE,QAAQ,IAAIjB,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,GAAGJ,EAAE,QAAQI,EAAE,KAAK,WAAWiB,EAAE,EAAE,EAAE,CAAC,IAAIV,EAAE,OAAO,IAAI,EAAE,CAAC,GAAGX,EAAE,QAAQ,CAAC,QAAQ,CAAA,CAAE,EAAE,cAAcqB,EAAE,EAAE,EAAE,SAAS,GAAG,QAAQ,CAAA,EAAG,QAAQjB,EAAE,CAAC,QAAQA,EAAE,QAAQ,UAAUO,EAAEP,EAAE,WAAW,KAAKO,EAAE,IAAI,EAAE,EAAE,KAAK,kBAAkB,KAAK,kBAAkB,EAAE,aAAa,KAAK,cAAc,KAAK,eAAe,KAAK,WAAWU,CAAC,CAAC,CAAC,CAAC,OAAOrB,EAAEI,EAAE,CAAC,OAAOmB,EAAEnB,EAAE,KAAK,EAAEJ,EAAEI,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useFocusRing as Te}from"../../../../../@react-aria/focus/dist/useFocusRing.js";import{useHover as Se}from"../../../../../@react-aria/interactions/dist/useHover.js";import{useVirtualizer as Me}from"../../../../../@tanstack/react-virtual/dist/esm/index.js";import D,{useId as re,useRef as de,useMemo as q,useState as ge,useCallback as Y,createContext as ye,Fragment as Fe,useContext as Ie}from"react";import{flushSync as te}from"react-dom";import{useActivePress as Ae}from"../../hooks/use-active-press.js";import{useByComparator as ke}from"../../hooks/use-by-comparator.js";import{useControllable as _e}from"../../hooks/use-controllable.js";import{useDefaultValue as Le}from"../../hooks/use-default-value.js";import{useDisposables as Ve}from"../../hooks/use-disposables.js";import{useElementSize as Ce}from"../../hooks/use-element-size.js";import{useEvent as E}from"../../hooks/use-event.js";import{useInertOthers as Be}from"../../hooks/use-inert-others.js";import{useIsoMorphicEffect as ee}from"../../hooks/use-iso-morphic-effect.js";import{useLatestValue as ze}from"../../hooks/use-latest-value.js";import{useOnDisappear as He}from"../../hooks/use-on-disappear.js";import{useOutsideClick as Ne}from"../../hooks/use-outside-click.js";import{useOwnerDocument as ve}from"../../hooks/use-owner.js";import{useQuickRelease as Ue,Action as se}from"../../hooks/use-quick-release.js";import{useRefocusableInput as Re}from"../../hooks/use-refocusable-input.js";import{useResolveButtonType as We}from"../../hooks/use-resolve-button-type.js";import{useScrollLock as Ke}from"../../hooks/use-scroll-lock.js";import{useSyncRefs as fe}from"../../hooks/use-sync-refs.js";import{useTrackedPointer as je}from"../../hooks/use-tracked-pointer.js";import{useTransition as qe,transitionDataAttributes as Ge}from"../../hooks/use-transition.js";import{useTreeWalker as Qe}from"../../hooks/use-tree-walker.js";import{useWatch as he}from"../../hooks/use-watch.js";import{useDisabled as Je}from"../../internal/disabled.js";import{useFloatingReference as Xe,useResolvedAnchor as Ye,useFloatingPanel as Ze,useFloatingPanelProps as eo,FloatingProvider as oo}from"../../internal/floating.js";import{FormFields as to}from"../../internal/form-fields.js";import{useFrozenData as Ee,Frozen as no}from"../../internal/frozen.js";import{useProvidedId as ao}from"../../internal/id.js";import{useOpenClosed as io,State as me,OpenClosedProvider as so}from"../../internal/open-closed.js";import{stackMachines as lo}from"../../machines/stack-machine.js";import{useSlice as I}from"../../react-glue.js";import{history as Pe}from"../../utils/active-element-history.js";import{isDisabledReactIssue7711 as ro}from"../../utils/bugs.js";import{Focus as _}from"../../utils/calculate-active-index.js";import{disposables as uo}from"../../utils/disposables.js";import{isHTMLElement as co}from"../../utils/dom.js";import{match as be}from"../../utils/match.js";import{isMobile as po}from"../../utils/platform.js";import{forwardRefWithAs as ue,mergeProps as xe,useRender as ce,RenderFeatures as Oe}from"../../utils/render.js";import{useDescribedBy as mo}from"../description/description.js";import{Keys as k}from"../keyboard.js";import{Label as bo,useLabelledBy as $e,useLabels as fo}from"../label/label.js";import{MouseButton as we}from"../mouse.js";import{Portal as vo}from"../portal/portal.js";import{ComboboxState as l,ActivationTrigger as Z,ValueMode as U,ActionTypes as go}from"./combobox-machine.js";import{useComboboxMachineContext as pe,useComboboxMachine as xo,ComboboxContext as $o}from"./combobox-machine-glue.js";let le=ye(null);le.displayName="ComboboxDataContext";function ne($){let P=Ie(le);if(P===null){let n=new Error(`<${$} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ne),n}return P}let De=ye(null);function Co($){let P=pe("VirtualProvider"),n=ne("VirtualProvider"),{options:f}=n.virtual,e=I(P,s=>s.optionsElement),[a,v]=q(()=>{let s=e;if(!s)return[0,0];let t=window.getComputedStyle(s);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]},[e]),R=Me({enabled:f.length!==0,scrollPaddingStart:a,scrollPaddingEnd:v,count:f.length,estimateSize(){return 40},getScrollElement(){return P.state.optionsElement},overscan:12}),[O,d]=ge(0);ee(()=>{d(s=>s+1)},[f]);let c=R.getVirtualItems(),T=I(P,s=>s.activationTrigger===Z.Pointer),p=I(P,P.selectors.activeOptionIndex);return c.length===0?null:D.createElement(De.Provider,{value:R},D.createElement("div",{style:{position:"relative",width:"100%",height:`${R.getTotalSize()}px`},ref:s=>{s&&(T||p!==null&&f.length>p&&R.scrollToIndex(p))}},c.map(s=>{var t;return D.createElement(Fe,{key:s.key},D.cloneElement((t=$.children)==null?void 0:t.call($,{...$.slot,option:f[s.index]}),{key:`${O}-${s.key}`,"data-index":s.index,"aria-setsize":f.length,"aria-posinset":s.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${s.start}px)`,overflowAnchor:"none"}}))})))}let ho=Fe;function Eo($,P){let n=re(),f=Je(),{value:e,defaultValue:a,onChange:v,form:R,name:O,by:d,invalid:c=!1,disabled:T=f||!1,onClose:p,__demoMode:s=!1,multiple:t=!1,immediate:C=!1,virtual:m=null,nullable:W,...H}=$,S=Le(a),[y=t?[]:void 0,M]=_e(e,v,S),u=xo({id:n,virtual:m,__demoMode:s}),L=de({static:!1,hold:!1}),x=ke(d),A=E(i=>m?d===null?m.options.indexOf(i):m.options.findIndex(F=>x(F,i)):u.state.options.findIndex(F=>x(F.dataRef.current.value,i))),K=Y(i=>be(w.mode,{[U.Multi]:()=>y.some(F=>x(F,i)),[U.Single]:()=>x(y,i)}),[y]),j=I(u,i=>i.virtual),r=E(()=>p==null?void 0:p()),w=q(()=>({__demoMode:s,immediate:C,optionsPropsRef:L,value:y,defaultValue:S,disabled:T,invalid:c,mode:t?U.Multi:U.Single,virtual:m?j:null,onChange:M,isSelected:K,calculateIndex:A,compare:x,onClose:r}),[y,S,T,c,t,M,K,s,u,m,j,r]);ee(()=>{var i;m&&u.send({type:go.UpdateVirtualConfiguration,options:m.options,disabled:(i=m.disabled)!=null?i:null})},[m,m==null?void 0:m.options,m==null?void 0:m.disabled]),ee(()=>{u.state.dataRef.current=w},[w]);let[V,b,N,oe]=I(u,i=>[i.comboboxState,i.buttonElement,i.inputElement,i.optionsElement]),Q=lo.get(null),G=I(Q,Y(i=>Q.selectors.isTop(i,n),[Q,n]));Ne(G,[b,N,oe],()=>u.actions.closeCombobox());let ae=I(u,u.selectors.activeOptionIndex),J=I(u,u.selectors.activeOption),ie=q(()=>({open:V===l.Open,disabled:T,invalid:c,activeIndex:ae,activeOption:J,value:y}),[w,T,y,c,J,V]),[X,o]=fo(),B=P===null?{}:{ref:P},h=Y(()=>{if(S!==void 0)return M==null?void 0:M(S)},[M,S]),z=ce();return D.createElement(o,{value:X,props:{htmlFor:N==null?void 0:N.id},slot:{open:V===l.Open,disabled:T}},D.createElement(oo,null,D.createElement(le.Provider,{value:w},D.createElement($o.Provider,{value:u},D.createElement(so,{value:be(V,{[l.Open]:me.Open,[l.Closed]:me.Closed})},O!=null&&D.createElement(to,{disabled:T,data:y!=null?{[O]:y}:{},form:R,onReset:h}),z({ourProps:B,theirProps:H,slot:ie,defaultTag:ho,name:"Combobox"}))))))}let Po="input";function Oo($,P){var n,f;let e=pe("Combobox.Input"),a=ne("Combobox.Input"),v=re(),R=ao(),{id:O=R||`headlessui-combobox-input-${v}`,onChange:d,displayValue:c,disabled:T=a.disabled||!1,autoFocus:p=!1,type:s="text",...t}=$,[C]=I(e,o=>[o.inputElement]),m=de(null),W=fe(m,P,Xe(),e.actions.setInputElement),H=ve(C),[S,y]=I(e,o=>[o.comboboxState,o.isTyping]),M=Ve(),u=E(()=>{e.actions.onChange(null),e.state.optionsElement&&(e.state.optionsElement.scrollTop=0),e.actions.goToOption({focus:_.Nothing})}),L=q(()=>{var o;return typeof c=="function"&&a.value!==void 0?(o=c(a.value))!=null?o:"":typeof a.value=="string"?a.value:""},[a.value,c]);he(([o,B],[h,z])=>{if(e.state.isTyping)return;let i=m.current;i&&((z===l.Open&&B===l.Closed||o!==h)&&(i.value=o),requestAnimationFrame(()=>{if(e.state.isTyping||!i||(H==null?void 0:H.activeElement)!==i)return;let{selectionStart:F,selectionEnd:g}=i;Math.abs((g??0)-(F??0))===0&&F===0&&i.setSelectionRange(i.value.length,i.value.length)}))},[L,S,H,y]),he(([o],[B])=>{if(o===l.Open&&B===l.Closed){if(e.state.isTyping)return;let h=m.current;if(!h)return;let z=h.value,{selectionStart:i,selectionEnd:F,selectionDirection:g}=h;h.value="",h.value=z,g!==null?h.setSelectionRange(i,F,g):h.setSelectionRange(i,F)}},[S]);let x=de(!1),A=E(()=>{x.current=!0}),K=E(()=>{M.nextFrame(()=>{x.current=!1})}),j=E(o=>{switch(e.actions.setIsTyping(!0),o.key){case k.Enter:if(e.state.comboboxState!==l.Open||x.current)return;if(o.preventDefault(),o.stopPropagation(),e.selectors.activeOptionIndex(e.state)===null){e.actions.closeCombobox();return}e.actions.selectActiveOption(),a.mode===U.Single&&e.actions.closeCombobox();break;case k.ArrowDown:return o.preventDefault(),o.stopPropagation(),be(e.state.comboboxState,{[l.Open]:()=>e.actions.goToOption({focus:_.Next}),[l.Closed]:()=>e.actions.openCombobox()});case k.ArrowUp:return o.preventDefault(),o.stopPropagation(),be(e.state.comboboxState,{[l.Open]:()=>e.actions.goToOption({focus:_.Previous}),[l.Closed]:()=>{te(()=>e.actions.openCombobox()),a.value||e.actions.goToOption({focus:_.Last})}});case k.Home:if(o.shiftKey)break;return o.preventDefault(),o.stopPropagation(),e.actions.goToOption({focus:_.First});case k.PageUp:return o.preventDefault(),o.stopPropagation(),e.actions.goToOption({focus:_.First});case k.End:if(o.shiftKey)break;return o.preventDefault(),o.stopPropagation(),e.actions.goToOption({focus:_.Last});case k.PageDown:return o.preventDefault(),o.stopPropagation(),e.actions.goToOption({focus:_.Last});case k.Escape:return e.state.comboboxState!==l.Open?void 0:(o.preventDefault(),e.state.optionsElement&&!a.optionsPropsRef.current.static&&o.stopPropagation(),a.mode===U.Single&&a.value===null&&u(),e.actions.closeCombobox());case k.Tab:if(e.state.comboboxState!==l.Open)return;a.mode===U.Single&&e.state.activationTrigger!==Z.Focus&&e.actions.selectActiveOption(),e.actions.closeCombobox();break}}),r=E(o=>{d==null||d(o),a.mode===U.Single&&o.target.value===""&&u(),e.actions.openCombobox()}),w=E(o=>{var B,h,z;let i=(B=o.relatedTarget)!=null?B:Pe.find(F=>F!==o.currentTarget);if(!((h=e.state.optionsElement)!=null&&h.contains(i))&&!((z=e.state.buttonElement)!=null&&z.contains(i))&&e.state.comboboxState===l.Open)return o.preventDefault(),a.mode===U.Single&&a.value===null&&u(),e.actions.closeCombobox()}),V=E(o=>{var B,h,z;let i=(B=o.relatedTarget)!=null?B:Pe.find(F=>F!==o.currentTarget);(h=e.state.buttonElement)!=null&&h.contains(i)||(z=e.state.optionsElement)!=null&&z.contains(i)||a.disabled||a.immediate&&e.state.comboboxState!==l.Open&&M.microTask(()=>{te(()=>e.actions.openCombobox()),e.actions.setActivationTrigger(Z.Focus)})}),b=$e(),N=mo(),{isFocused:oe,focusProps:Q}=Te({autoFocus:p}),{isHovered:G,hoverProps:ae}=Se({isDisabled:T}),J=I(e,o=>o.optionsElement),ie=q(()=>({open:S===l.Open,disabled:T,invalid:a.invalid,hover:G,focus:oe,autofocus:p}),[a,G,oe,p,T,a.invalid]),X=xe({ref:W,id:O,role:"combobox",type:s,"aria-controls":J==null?void 0:J.id,"aria-expanded":S===l.Open,"aria-activedescendant":I(e,e.selectors.activeDescendantId),"aria-labelledby":b,"aria-describedby":N,"aria-autocomplete":"list",defaultValue:(f=(n=$.defaultValue)!=null?n:a.defaultValue!==void 0?c==null?void 0:c(a.defaultValue):null)!=null?f:a.defaultValue,disabled:T||void 0,autoFocus:p,onCompositionStart:A,onCompositionEnd:K,onKeyDown:j,onChange:r,onFocus:V,onBlur:w},Q,ae);return ce()({ourProps:X,theirProps:t,slot:ie,defaultTag:Po,name:"Combobox.Input"})}let To="button";function So($,P){let n=pe("Combobox.Button"),f=ne("Combobox.Button"),[e,a]=ge(null),v=fe(P,a,n.actions.setButtonElement),R=re(),{id:O=`headlessui-combobox-button-${R}`,disabled:d=f.disabled||!1,autoFocus:c=!1,...T}=$,[p,s,t]=I(n,r=>[r.comboboxState,r.inputElement,r.optionsElement]),C=Re(s),m=p===l.Open;Ue(m,{trigger:e,action:Y(r=>{if(e!=null&&e.contains(r.target))return se.Ignore;if(s!=null&&s.contains(r.target))return se.Ignore;let w=r.target.closest('[role="option"]:not([data-disabled])');return co(w)?se.Select(w):t!=null&&t.contains(r.target)?se.Ignore:se.Close},[e,s,t]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let W=E(r=>{switch(r.key){case k.Space:case k.Enter:r.preventDefault(),r.stopPropagation(),n.state.comboboxState===l.Closed&&te(()=>n.actions.openCombobox()),C();return;case k.ArrowDown:r.preventDefault(),r.stopPropagation(),n.state.comboboxState===l.Closed&&(te(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:_.First})),C();return;case k.ArrowUp:r.preventDefault(),r.stopPropagation(),n.state.comboboxState===l.Closed&&(te(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:_.Last})),C();return;case k.Escape:if(n.state.comboboxState!==l.Open)return;r.preventDefault(),n.state.optionsElement&&!f.optionsPropsRef.current.static&&r.stopPropagation(),te(()=>n.actions.closeCombobox()),C();return;default:return}}),H=E(r=>{r.preventDefault(),!ro(r.currentTarget)&&(r.button===we.Left&&(n.state.comboboxState===l.Open?n.actions.closeCombobox():n.actions.openCombobox()),C())}),S=$e([O]),{isFocusVisible:y,focusProps:M}=Te({autoFocus:c}),{isHovered:u,hoverProps:L}=Se({isDisabled:d}),{pressed:x,pressProps:A}=Ae({disabled:d}),K=q(()=>({open:p===l.Open,active:x||p===l.Open,disabled:d,invalid:f.invalid,value:f.value,hover:u,focus:y}),[f,u,y,x,d,p]),j=xe({ref:v,id:O,type:We($,e),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":t==null?void 0:t.id,"aria-expanded":p===l.Open,"aria-labelledby":S,disabled:d||void 0,autoFocus:c,onPointerDown:H,onKeyDown:W},M,L,A);return ce()({ourProps:j,theirProps:T,slot:K,defaultTag:To,name:"Combobox.Button"})}let yo="div",Fo=Oe.RenderStrategy|Oe.Static;function Io($,P){var n,f,e;let a=re(),{id:v=`headlessui-combobox-options-${a}`,hold:R=!1,anchor:O,portal:d=!1,modal:c=!0,transition:T=!1,...p}=$,s=pe("Combobox.Options"),t=ne("Combobox.Options"),C=Ye(O);C&&(d=!0);let[m,W]=Ze(C),[H,S]=ge(null),y=eo(),M=fe(P,C?m:null,s.actions.setOptionsElement,S),[u,L,x,A,K]=I(s,g=>[g.comboboxState,g.inputElement,g.buttonElement,g.optionsElement,g.activationTrigger]),j=ve(L||x),r=ve(A),w=io(),[V,b]=qe(T,H,w!==null?(w&me.Open)===me.Open:u===l.Open);He(V,L,s.actions.closeCombobox);let N=t.__demoMode?!1:c&&u===l.Open;Ke(N,r);let oe=t.__demoMode?!1:c&&u===l.Open;Be(oe,{allowed:Y(()=>[L,x,A],[L,x,A])}),ee(()=>{var g;t.optionsPropsRef.current.static=(g=$.static)!=null?g:!1},[t.optionsPropsRef,$.static]),ee(()=>{t.optionsPropsRef.current.hold=R},[t.optionsPropsRef,R]),Qe(u===l.Open,{container:A,accept(g){return g.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(g){g.setAttribute("role","none")}});let Q=$e([x==null?void 0:x.id]),G=q(()=>({open:u===l.Open,option:void 0}),[u]),ae=E(()=>{s.actions.setActivationTrigger(Z.Pointer)}),J=E(g=>{g.preventDefault(),s.actions.setActivationTrigger(Z.Pointer)}),ie=xe(C?y():{},{"aria-labelledby":Q,role:"listbox","aria-multiselectable":t.mode===U.Multi?!0:void 0,id:v,ref:M,style:{...p.style,...W,"--input-width":Ce(L,!0).width,"--button-width":Ce(x,!0).width},onWheel:K===Z.Pointer?void 0:ae,onMouseDown:J,...Ge(b)}),X=V&&u===l.Closed,o=Ee(X,(n=t.virtual)==null?void 0:n.options),B=Ee(X,t.value),h=E(g=>t.compare(B,g)),z=q(()=>{if(!t.virtual)return t;if(o===void 0)throw new Error("Missing `options` in virtual mode");return o!==t.virtual.options?{...t,virtual:{...t.virtual,options:o}}:t},[t,o,(f=t.virtual)==null?void 0:f.options]);t.virtual&&Object.assign(p,{children:D.createElement(le.Provider,{value:z},D.createElement(Co,{slot:G},p.children))});let i=ce(),F=q(()=>t.mode===U.Multi?t:{...t,isSelected:h},[t,h]);return D.createElement(vo,{enabled:d?$.static||V:!1,ownerDocument:j},D.createElement(le.Provider,{value:F},i({ourProps:ie,theirProps:{...p,children:D.createElement(no,{freeze:X},typeof p.children=="function"?(e=p.children)==null?void 0:e.call(p,G):p.children)},slot:G,defaultTag:yo,features:Fo,visible:V,name:"Combobox.Options"})))}let Ro="div";function wo($,P){var n,f,e;let a=ne("Combobox.Option"),v=pe("Combobox.Option"),R=re(),{id:O=`headlessui-combobox-option-${R}`,value:d,disabled:c=(e=(f=(n=a.virtual)==null?void 0:n.disabled)==null?void 0:f.call(n,d))!=null?e:!1,order:T=null,...p}=$,[s]=I(v,b=>[b.inputElement]),t=Re(s),C=I(v,Y(b=>v.selectors.isActive(b,d,O),[d,O])),m=a.isSelected(d),W=de(null),H=ze({disabled:c,value:d,domRef:W,order:T}),S=Ie(De),y=fe(P,W,S?S.measureElement:null),M=E(()=>{v.actions.setIsTyping(!1),v.actions.onChange(d)});ee(()=>v.actions.registerOption(O,H),[H,O]);let u=I(v,Y(b=>v.selectors.shouldScrollIntoView(b,d,O),[d,O]));ee(()=>{if(u)return uo().requestAnimationFrame(()=>{var b,N;(N=(b=W.current)==null?void 0:b.scrollIntoView)==null||N.call(b,{block:"nearest"})})},[u,W]);let L=E(b=>{b.preventDefault(),b.button===we.Left&&(c||(M(),po()||requestAnimationFrame(()=>t()),a.mode===U.Single&&v.actions.closeCombobox()))}),x=E(()=>{if(c)return v.actions.goToOption({focus:_.Nothing});let b=a.calculateIndex(d);v.actions.goToOption({focus:_.Specific,idx:b})}),A=je(),K=E(b=>A.update(b)),j=E(b=>{if(!A.wasMoved(b)||c||C)return;let N=a.calculateIndex(d);v.actions.goToOption({focus:_.Specific,idx:N},Z.Pointer)}),r=E(b=>{A.wasMoved(b)&&(c||C&&(a.optionsPropsRef.current.hold||v.actions.goToOption({focus:_.Nothing})))}),w=q(()=>({active:C,focus:C,selected:m,disabled:c}),[C,m,c]),V={id:O,ref:y,role:"option",tabIndex:c===!0?void 0:-1,"aria-disabled":c===!0?!0:void 0,"aria-selected":m,disabled:void 0,onMouseDown:L,onFocus:x,onPointerEnter:K,onMouseEnter:K,onPointerMove:j,onMouseMove:j,onPointerLeave:r,onMouseLeave:r};return ce()({ourProps:V,theirProps:p,slot:w,defaultTag:Ro,name:"Combobox.Option"})}let Do=ue(Eo),Mo=ue(So),Ao=ue(Oo),ko=bo,_o=ue(Io),Lo=ue(wo),At=Object.assign(Do,{Input:Ao,Button:Mo,Label:ko,Options:_o,Option:Lo});export{At as Combobox,Mo as ComboboxButton,Ao as ComboboxInput,ko as ComboboxLabel,Lo as ComboboxOption,_o as ComboboxOptions};
|
|
2
|
-
//# sourceMappingURL=combobox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/components/combobox/combobox.js"],"sourcesContent":["\"use client\";import{useFocusRing as ve}from\"@react-aria/focus\";import{useHover as Pe}from\"@react-aria/interactions\";import{useVirtualizer as Le}from\"@tanstack/react-virtual\";import F,{Fragment as Ee,createContext as Oe,useCallback as Z,useContext as he,useMemo as K,useRef as me,useState as xe}from\"react\";import{flushSync as re}from\"react-dom\";import{useActivePress as Ve}from'../../hooks/use-active-press.js';import{useByComparator as we}from'../../hooks/use-by-comparator.js';import{useControllable as Be}from'../../hooks/use-controllable.js';import{useDefaultValue as Ne}from'../../hooks/use-default-value.js';import{useDisposables as ke}from'../../hooks/use-disposables.js';import{useElementSize as Ae}from'../../hooks/use-element-size.js';import{useEvent as O}from'../../hooks/use-event.js';import{useId as le}from'../../hooks/use-id.js';import{useInertOthers as Ue}from'../../hooks/use-inert-others.js';import{useIsoMorphicEffect as ee}from'../../hooks/use-iso-morphic-effect.js';import{useLatestValue as He}from'../../hooks/use-latest-value.js';import{useOnDisappear as Ge}from'../../hooks/use-on-disappear.js';import{useOutsideClick as ze}from'../../hooks/use-outside-click.js';import{useOwnerDocument as ge}from'../../hooks/use-owner.js';import{Action as ie,useQuickRelease as Ke}from'../../hooks/use-quick-release.js';import{useRefocusableInput as Ie}from'../../hooks/use-refocusable-input.js';import{useResolveButtonType as We}from'../../hooks/use-resolve-button-type.js';import{useScrollLock as Xe}from'../../hooks/use-scroll-lock.js';import{useSyncRefs as ce}from'../../hooks/use-sync-refs.js';import{useTrackedPointer as $e}from'../../hooks/use-tracked-pointer.js';import{transitionDataAttributes as Je,useTransition as je}from'../../hooks/use-transition.js';import{useTreeWalker as qe}from'../../hooks/use-tree-walker.js';import{useWatch as Re}from'../../hooks/use-watch.js';import{useDisabled as Qe}from'../../internal/disabled.js';import{FloatingProvider as Ye,useFloatingPanel as Ze,useFloatingPanelProps as eo,useFloatingReference as oo,useResolvedAnchor as to}from'../../internal/floating.js';import{FormFields as no}from'../../internal/form-fields.js';import{Frozen as ro,useFrozenData as De}from'../../internal/frozen.js';import{useProvidedId as ao}from'../../internal/id.js';import{OpenClosedProvider as lo,State as fe,useOpenClosed as io}from'../../internal/open-closed.js';import{stackMachines as so}from'../../machines/stack-machine.js';import{useSlice as D}from'../../react-glue.js';import{history as _e}from'../../utils/active-element-history.js';import{isDisabledReactIssue7711 as uo}from'../../utils/bugs.js';import{Focus as L}from'../../utils/calculate-active-index.js';import{disposables as po}from'../../utils/disposables.js';import*as bo from'../../utils/dom.js';import{match as Te}from'../../utils/match.js';import{isMobile as mo}from'../../utils/platform.js';import{RenderFeatures as Fe,forwardRefWithAs as se,mergeProps as ye,useRender as ue}from'../../utils/render.js';import{useDescribedBy as co}from'../description/description.js';import{Keys as V}from'../keyboard.js';import{Label as fo,useLabelledBy as Ce,useLabels as To}from'../label/label.js';import{MouseButton as Se}from'../mouse.js';import{Portal as xo}from'../portal/portal.js';import{ActionTypes as go,ActivationTrigger as oe,ComboboxState as l,ValueMode as N}from'./combobox-machine.js';import{ComboboxContext as yo,useComboboxMachine as Co,useComboboxMachineContext as pe}from'./combobox-machine-glue.js';let de=Oe(null);de.displayName=\"ComboboxDataContext\";function ae(C){let h=he(de);if(h===null){let e=new Error(`<${C} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,ae),e}return h}let Me=Oe(null);function vo(C){let h=pe(\"VirtualProvider\"),e=ae(\"VirtualProvider\"),{options:o}=e.virtual,A=D(h,a=>a.optionsElement),[R,v]=K(()=>{let a=A;if(!a)return[0,0];let u=window.getComputedStyle(a);return[parseFloat(u.paddingBlockStart||u.paddingTop),parseFloat(u.paddingBlockEnd||u.paddingBottom)]},[A]),T=Le({enabled:o.length!==0,scrollPaddingStart:R,scrollPaddingEnd:v,count:o.length,estimateSize(){return 40},getScrollElement(){return h.state.optionsElement},overscan:12}),[I,m]=xe(0);ee(()=>{m(a=>a+1)},[o]);let g=T.getVirtualItems(),n=D(h,a=>a.activationTrigger===oe.Pointer),f=D(h,h.selectors.activeOptionIndex);return g.length===0?null:F.createElement(Me.Provider,{value:T},F.createElement(\"div\",{style:{position:\"relative\",width:\"100%\",height:`${T.getTotalSize()}px`},ref:a=>{a&&(n||f!==null&&o.length>f&&T.scrollToIndex(f))}},g.map(a=>{var u;return F.createElement(Ee,{key:a.key},F.cloneElement((u=C.children)==null?void 0:u.call(C,{...C.slot,option:o[a.index]}),{key:`${I}-${a.key}`,\"data-index\":a.index,\"aria-setsize\":o.length,\"aria-posinset\":a.index+1,style:{position:\"absolute\",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:\"none\"}}))})))}let Po=Ee;function Eo(C,h){let e=le(),o=Qe(),{value:A,defaultValue:R,onChange:v,form:T,name:I,by:m,invalid:g=!1,disabled:n=o||!1,onClose:f,__demoMode:a=!1,multiple:u=!1,immediate:S=!1,virtual:d=null,nullable:k,...W}=C,y=Ne(R),[x=u?[]:void 0,P]=Be(A,v,y),b=Co({id:e,virtual:d,__demoMode:a}),G=me({static:!1,hold:!1}),_=we(m),z=O(s=>d?m===null?d.options.indexOf(s):d.options.findIndex(c=>_(c,s)):b.state.options.findIndex(c=>_(c.dataRef.current.value,s))),U=Z(s=>Te(r.mode,{[N.Multi]:()=>x.some(c=>_(c,s)),[N.Single]:()=>_(x,s)}),[x]),w=D(b,s=>s.virtual),J=O(()=>f==null?void 0:f()),r=K(()=>({__demoMode:a,immediate:S,optionsPropsRef:G,value:x,defaultValue:y,disabled:n,invalid:g,mode:u?N.Multi:N.Single,virtual:d?w:null,onChange:P,isSelected:U,calculateIndex:z,compare:_,onClose:J}),[x,y,n,g,u,P,U,a,b,d,w,J]);ee(()=>{var s;d&&b.send({type:go.UpdateVirtualConfiguration,options:d.options,disabled:(s=d.disabled)!=null?s:null})},[d,d==null?void 0:d.options,d==null?void 0:d.disabled]),ee(()=>{b.state.dataRef.current=r},[r]);let[M,X,i,H]=D(b,s=>[s.comboboxState,s.buttonElement,s.inputElement,s.optionsElement]),j=so.get(null),q=D(j,Z(s=>j.selectors.isTop(s,e),[j,e]));ze(q,[X,i,H],()=>b.actions.closeCombobox());let Q=D(b,b.selectors.activeOptionIndex),$=D(b,b.selectors.activeOption),be=K(()=>({open:M===l.Open,disabled:n,invalid:g,activeIndex:Q,activeOption:$,value:x}),[r,n,x,g,$,M]),[Y,te]=To(),t=h===null?{}:{ref:h},B=Z(()=>{if(y!==void 0)return P==null?void 0:P(y)},[P,y]),E=ue();return F.createElement(te,{value:Y,props:{htmlFor:i==null?void 0:i.id},slot:{open:M===l.Open,disabled:n}},F.createElement(Ye,null,F.createElement(de.Provider,{value:r},F.createElement(yo.Provider,{value:b},F.createElement(lo,{value:Te(M,{[l.Open]:fe.Open,[l.Closed]:fe.Closed})},I!=null&&F.createElement(no,{disabled:n,data:x!=null?{[I]:x}:{},form:T,onReset:B}),E({ourProps:t,theirProps:W,slot:be,defaultTag:Po,name:\"Combobox\"}))))))}let Oo=\"input\";function ho(C,h){var Y,te;let e=pe(\"Combobox.Input\"),o=ae(\"Combobox.Input\"),A=le(),R=ao(),{id:v=R||`headlessui-combobox-input-${A}`,onChange:T,displayValue:I,disabled:m=o.disabled||!1,autoFocus:g=!1,type:n=\"text\",...f}=C,[a]=D(e,t=>[t.inputElement]),u=me(null),S=ce(u,h,oo(),e.actions.setInputElement),d=ge(a),[k,W]=D(e,t=>[t.comboboxState,t.isTyping]),y=ke(),x=O(()=>{e.actions.onChange(null),e.state.optionsElement&&(e.state.optionsElement.scrollTop=0),e.actions.goToOption({focus:L.Nothing})}),P=K(()=>{var t;return typeof I==\"function\"&&o.value!==void 0?(t=I(o.value))!=null?t:\"\":typeof o.value==\"string\"?o.value:\"\"},[o.value,I]);Re(([t,B],[E,s])=>{if(e.state.isTyping)return;let c=u.current;c&&((s===l.Open&&B===l.Closed||t!==E)&&(c.value=t),requestAnimationFrame(()=>{if(e.state.isTyping||!c||(d==null?void 0:d.activeElement)!==c)return;let{selectionStart:p,selectionEnd:ne}=c;Math.abs((ne!=null?ne:0)-(p!=null?p:0))===0&&p===0&&c.setSelectionRange(c.value.length,c.value.length)}))},[P,k,d,W]),Re(([t],[B])=>{if(t===l.Open&&B===l.Closed){if(e.state.isTyping)return;let E=u.current;if(!E)return;let s=E.value,{selectionStart:c,selectionEnd:p,selectionDirection:ne}=E;E.value=\"\",E.value=s,ne!==null?E.setSelectionRange(c,p,ne):E.setSelectionRange(c,p)}},[k]);let b=me(!1),G=O(()=>{b.current=!0}),_=O(()=>{y.nextFrame(()=>{b.current=!1})}),z=O(t=>{switch(e.actions.setIsTyping(!0),t.key){case V.Enter:if(e.state.comboboxState!==l.Open||b.current)return;if(t.preventDefault(),t.stopPropagation(),e.selectors.activeOptionIndex(e.state)===null){e.actions.closeCombobox();return}e.actions.selectActiveOption(),o.mode===N.Single&&e.actions.closeCombobox();break;case V.ArrowDown:return t.preventDefault(),t.stopPropagation(),Te(e.state.comboboxState,{[l.Open]:()=>e.actions.goToOption({focus:L.Next}),[l.Closed]:()=>e.actions.openCombobox()});case V.ArrowUp:return t.preventDefault(),t.stopPropagation(),Te(e.state.comboboxState,{[l.Open]:()=>e.actions.goToOption({focus:L.Previous}),[l.Closed]:()=>{re(()=>e.actions.openCombobox()),o.value||e.actions.goToOption({focus:L.Last})}});case V.Home:if(t.shiftKey)break;return t.preventDefault(),t.stopPropagation(),e.actions.goToOption({focus:L.First});case V.PageUp:return t.preventDefault(),t.stopPropagation(),e.actions.goToOption({focus:L.First});case V.End:if(t.shiftKey)break;return t.preventDefault(),t.stopPropagation(),e.actions.goToOption({focus:L.Last});case V.PageDown:return t.preventDefault(),t.stopPropagation(),e.actions.goToOption({focus:L.Last});case V.Escape:return e.state.comboboxState!==l.Open?void 0:(t.preventDefault(),e.state.optionsElement&&!o.optionsPropsRef.current.static&&t.stopPropagation(),o.mode===N.Single&&o.value===null&&x(),e.actions.closeCombobox());case V.Tab:if(e.state.comboboxState!==l.Open)return;o.mode===N.Single&&e.state.activationTrigger!==oe.Focus&&e.actions.selectActiveOption(),e.actions.closeCombobox();break}}),U=O(t=>{T==null||T(t),o.mode===N.Single&&t.target.value===\"\"&&x(),e.actions.openCombobox()}),w=O(t=>{var E,s,c;let B=(E=t.relatedTarget)!=null?E:_e.find(p=>p!==t.currentTarget);if(!((s=e.state.optionsElement)!=null&&s.contains(B))&&!((c=e.state.buttonElement)!=null&&c.contains(B))&&e.state.comboboxState===l.Open)return t.preventDefault(),o.mode===N.Single&&o.value===null&&x(),e.actions.closeCombobox()}),J=O(t=>{var E,s,c;let B=(E=t.relatedTarget)!=null?E:_e.find(p=>p!==t.currentTarget);(s=e.state.buttonElement)!=null&&s.contains(B)||(c=e.state.optionsElement)!=null&&c.contains(B)||o.disabled||o.immediate&&e.state.comboboxState!==l.Open&&y.microTask(()=>{re(()=>e.actions.openCombobox()),e.actions.setActivationTrigger(oe.Focus)})}),r=Ce(),M=co(),{isFocused:X,focusProps:i}=ve({autoFocus:g}),{isHovered:H,hoverProps:j}=Pe({isDisabled:m}),q=D(e,t=>t.optionsElement),Q=K(()=>({open:k===l.Open,disabled:m,invalid:o.invalid,hover:H,focus:X,autofocus:g}),[o,H,X,g,m,o.invalid]),$=ye({ref:S,id:v,role:\"combobox\",type:n,\"aria-controls\":q==null?void 0:q.id,\"aria-expanded\":k===l.Open,\"aria-activedescendant\":D(e,e.selectors.activeDescendantId),\"aria-labelledby\":r,\"aria-describedby\":M,\"aria-autocomplete\":\"list\",defaultValue:(te=(Y=C.defaultValue)!=null?Y:o.defaultValue!==void 0?I==null?void 0:I(o.defaultValue):null)!=null?te:o.defaultValue,disabled:m||void 0,autoFocus:g,onCompositionStart:G,onCompositionEnd:_,onKeyDown:z,onChange:U,onFocus:J,onBlur:w},i,j);return ue()({ourProps:$,theirProps:f,slot:Q,defaultTag:Oo,name:\"Combobox.Input\"})}let Ao=\"button\";function Io(C,h){let e=pe(\"Combobox.Button\"),o=ae(\"Combobox.Button\"),[A,R]=xe(null),v=ce(h,R,e.actions.setButtonElement),T=le(),{id:I=`headlessui-combobox-button-${T}`,disabled:m=o.disabled||!1,autoFocus:g=!1,...n}=C,[f,a,u]=D(e,r=>[r.comboboxState,r.inputElement,r.optionsElement]),S=Ie(a),d=f===l.Open;Ke(d,{trigger:A,action:Z(r=>{if(A!=null&&A.contains(r.target))return ie.Ignore;if(a!=null&&a.contains(r.target))return ie.Ignore;let M=r.target.closest('[role=\"option\"]:not([data-disabled])');return bo.isHTMLElement(M)?ie.Select(M):u!=null&&u.contains(r.target)?ie.Ignore:ie.Close},[A,a,u]),close:e.actions.closeCombobox,select:e.actions.selectActiveOption});let k=O(r=>{switch(r.key){case V.Space:case V.Enter:r.preventDefault(),r.stopPropagation(),e.state.comboboxState===l.Closed&&re(()=>e.actions.openCombobox()),S();return;case V.ArrowDown:r.preventDefault(),r.stopPropagation(),e.state.comboboxState===l.Closed&&(re(()=>e.actions.openCombobox()),e.state.dataRef.current.value||e.actions.goToOption({focus:L.First})),S();return;case V.ArrowUp:r.preventDefault(),r.stopPropagation(),e.state.comboboxState===l.Closed&&(re(()=>e.actions.openCombobox()),e.state.dataRef.current.value||e.actions.goToOption({focus:L.Last})),S();return;case V.Escape:if(e.state.comboboxState!==l.Open)return;r.preventDefault(),e.state.optionsElement&&!o.optionsPropsRef.current.static&&r.stopPropagation(),re(()=>e.actions.closeCombobox()),S();return;default:return}}),W=O(r=>{r.preventDefault(),!uo(r.currentTarget)&&(r.button===Se.Left&&(e.state.comboboxState===l.Open?e.actions.closeCombobox():e.actions.openCombobox()),S())}),y=Ce([I]),{isFocusVisible:x,focusProps:P}=ve({autoFocus:g}),{isHovered:b,hoverProps:G}=Pe({isDisabled:m}),{pressed:_,pressProps:z}=Ve({disabled:m}),U=K(()=>({open:f===l.Open,active:_||f===l.Open,disabled:m,invalid:o.invalid,value:o.value,hover:b,focus:x}),[o,b,x,_,m,f]),w=ye({ref:v,id:I,type:We(C,A),tabIndex:-1,\"aria-haspopup\":\"listbox\",\"aria-controls\":u==null?void 0:u.id,\"aria-expanded\":f===l.Open,\"aria-labelledby\":y,disabled:m||void 0,autoFocus:g,onPointerDown:W,onKeyDown:k},P,G,z);return ue()({ourProps:w,theirProps:n,slot:U,defaultTag:Ao,name:\"Combobox.Button\"})}let Ro=\"div\",Do=Fe.RenderStrategy|Fe.Static;function _o(C,h){var E,s,c;let e=le(),{id:o=`headlessui-combobox-options-${e}`,hold:A=!1,anchor:R,portal:v=!1,modal:T=!0,transition:I=!1,...m}=C,g=pe(\"Combobox.Options\"),n=ae(\"Combobox.Options\"),f=to(R);f&&(v=!0);let[a,u]=Ze(f),[S,d]=xe(null),k=eo(),W=ce(h,f?a:null,g.actions.setOptionsElement,d),[y,x,P,b,G]=D(g,p=>[p.comboboxState,p.inputElement,p.buttonElement,p.optionsElement,p.activationTrigger]),_=ge(x||P),z=ge(b),U=io(),[w,J]=je(I,S,U!==null?(U&fe.Open)===fe.Open:y===l.Open);Ge(w,x,g.actions.closeCombobox);let r=n.__demoMode?!1:T&&y===l.Open;Xe(r,z);let M=n.__demoMode?!1:T&&y===l.Open;Ue(M,{allowed:Z(()=>[x,P,b],[x,P,b])}),ee(()=>{var p;n.optionsPropsRef.current.static=(p=C.static)!=null?p:!1},[n.optionsPropsRef,C.static]),ee(()=>{n.optionsPropsRef.current.hold=A},[n.optionsPropsRef,A]),qe(y===l.Open,{container:b,accept(p){return p.getAttribute(\"role\")===\"option\"?NodeFilter.FILTER_REJECT:p.hasAttribute(\"role\")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(p){p.setAttribute(\"role\",\"none\")}});let X=Ce([P==null?void 0:P.id]),i=K(()=>({open:y===l.Open,option:void 0}),[y]),H=O(()=>{g.actions.setActivationTrigger(oe.Pointer)}),j=O(p=>{p.preventDefault(),g.actions.setActivationTrigger(oe.Pointer)}),q=ye(f?k():{},{\"aria-labelledby\":X,role:\"listbox\",\"aria-multiselectable\":n.mode===N.Multi?!0:void 0,id:o,ref:W,style:{...m.style,...u,\"--input-width\":Ae(x,!0).width,\"--button-width\":Ae(P,!0).width},onWheel:G===oe.Pointer?void 0:H,onMouseDown:j,...Je(J)}),Q=w&&y===l.Closed,$=De(Q,(E=n.virtual)==null?void 0:E.options),be=De(Q,n.value),Y=O(p=>n.compare(be,p)),te=K(()=>{if(!n.virtual)return n;if($===void 0)throw new Error(\"Missing `options` in virtual mode\");return $!==n.virtual.options?{...n,virtual:{...n.virtual,options:$}}:n},[n,$,(s=n.virtual)==null?void 0:s.options]);n.virtual&&Object.assign(m,{children:F.createElement(de.Provider,{value:te},F.createElement(vo,{slot:i},m.children))});let t=ue(),B=K(()=>n.mode===N.Multi?n:{...n,isSelected:Y},[n,Y]);return F.createElement(xo,{enabled:v?C.static||w:!1,ownerDocument:_},F.createElement(de.Provider,{value:B},t({ourProps:q,theirProps:{...m,children:F.createElement(ro,{freeze:Q},typeof m.children==\"function\"?(c=m.children)==null?void 0:c.call(m,i):m.children)},slot:i,defaultTag:Ro,features:Do,visible:w,name:\"Combobox.Options\"})))}let Fo=\"div\";function So(C,h){var r,M,X;let e=ae(\"Combobox.Option\"),o=pe(\"Combobox.Option\"),A=le(),{id:R=`headlessui-combobox-option-${A}`,value:v,disabled:T=(X=(M=(r=e.virtual)==null?void 0:r.disabled)==null?void 0:M.call(r,v))!=null?X:!1,order:I=null,...m}=C,[g]=D(o,i=>[i.inputElement]),n=Ie(g),f=D(o,Z(i=>o.selectors.isActive(i,v,R),[v,R])),a=e.isSelected(v),u=me(null),S=He({disabled:T,value:v,domRef:u,order:I}),d=he(Me),k=ce(h,u,d?d.measureElement:null),W=O(()=>{o.actions.setIsTyping(!1),o.actions.onChange(v)});ee(()=>o.actions.registerOption(R,S),[S,R]);let y=D(o,Z(i=>o.selectors.shouldScrollIntoView(i,v,R),[v,R]));ee(()=>{if(y)return po().requestAnimationFrame(()=>{var i,H;(H=(i=u.current)==null?void 0:i.scrollIntoView)==null||H.call(i,{block:\"nearest\"})})},[y,u]);let x=O(i=>{i.preventDefault(),i.button===Se.Left&&(T||(W(),mo()||requestAnimationFrame(()=>n()),e.mode===N.Single&&o.actions.closeCombobox()))}),P=O(()=>{if(T)return o.actions.goToOption({focus:L.Nothing});let i=e.calculateIndex(v);o.actions.goToOption({focus:L.Specific,idx:i})}),b=$e(),G=O(i=>b.update(i)),_=O(i=>{if(!b.wasMoved(i)||T||f)return;let H=e.calculateIndex(v);o.actions.goToOption({focus:L.Specific,idx:H},oe.Pointer)}),z=O(i=>{b.wasMoved(i)&&(T||f&&(e.optionsPropsRef.current.hold||o.actions.goToOption({focus:L.Nothing})))}),U=K(()=>({active:f,focus:f,selected:a,disabled:T}),[f,a,T]),w={id:R,ref:k,role:\"option\",tabIndex:T===!0?void 0:-1,\"aria-disabled\":T===!0?!0:void 0,\"aria-selected\":a,disabled:void 0,onMouseDown:x,onFocus:P,onPointerEnter:G,onMouseEnter:G,onPointerMove:_,onMouseMove:_,onPointerLeave:z,onMouseLeave:z};return ue()({ourProps:w,theirProps:m,slot:U,defaultTag:Fo,name:\"Combobox.Option\"})}let Mo=se(Eo),Lo=se(Io),Vo=se(ho),wo=fo,Bo=se(_o),No=se(So),wt=Object.assign(Mo,{Input:Vo,Button:Lo,Label:wo,Options:Bo,Option:No});export{wt as Combobox,Lo as ComboboxButton,Vo as ComboboxInput,wo as ComboboxLabel,No as ComboboxOption,Bo as ComboboxOptions};\n"],"names":["de","Oe","ae","C","h","he","e","Me","vo","pe","o","A","D","a","R","K","u","T","Le","I","m","xe","ee","g","n","oe","f","F","Ee","Po","le","Qe","S","d","k","W","y","Ne","x","P","Be","b","Co","G","me","_","we","z","O","s","c","U","Z","Te","r","N","w","J","go","M","X","i","H","j","so","q","ze","Q","$","be","l","Y","te","To","t","B","E","ue","Ye","yo","lo","fe","no","Oo","ho","ao","v","ce","oo","ge","ke","L","Re","p","ne","V","re","_e","Ce","co","ve","Pe","ye","Ao","Io","Ie","Ke","ie","bo.isHTMLElement","uo","Se","Ve","We","Ro","Do","Fe","_o","to","Ze","eo","io","je","Ge","Xe","Ue","qe","Ae","Je","De","xo","ro","Fo","So","He","po","mo","$e","Mo","se","Lo","Vo","wo","fo","Bo","No","wt"],"mappings":"s/GAAo7G,IAAIA,GAAGC,GAAG,IAAI,EAAED,GAAG,YAAY,sBAAsB,SAASE,GAAGC,EAAE,CAAC,IAAIC,EAAEC,GAAGL,EAAE,EAAE,GAAGI,IAAI,KAAK,CAAC,IAAIE,EAAE,IAAI,MAAM,IAAIH,CAAC,iDAAiD,EAAE,MAAM,MAAM,mBAAmB,MAAM,kBAAkBG,EAAEJ,EAAE,EAAEI,CAAC,CAAC,OAAOF,CAAC,CAAC,IAAIG,GAAGN,GAAG,IAAI,EAAE,SAASO,GAAGL,EAAE,CAAC,IAAIC,EAAEK,GAAG,iBAAiB,EAAEH,EAAEJ,GAAG,iBAAiB,EAAE,CAAC,QAAQQ,CAAC,EAAEJ,EAAE,QAAQK,EAAEC,EAAER,EAAES,GAAGA,EAAE,cAAc,EAAE,CAACC,EAAE,CAAC,EAAEC,EAAE,IAAI,CAAC,IAAIF,EAAEF,EAAE,GAAG,CAACE,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,IAAIG,EAAE,OAAO,iBAAiBH,CAAC,EAAE,MAAM,CAAC,W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QAAQ,MAAMI,EAAE,QAAQ,WAAW,CAAC,MAAMiF,EAAE,OAAO,CAAC,GAAG,CAAC,EAAExC,EAAEpC,EAAE,KAAK,CAAC,OAAOW,EAAE,MAAMA,EAAE,SAASb,EAAE,SAASI,CAAC,GAAG,CAACS,EAAEb,EAAEI,CAAC,CAAC,EAAEuC,EAAE,CAAC,GAAG1C,EAAE,IAAIoB,EAAE,KAAK,SAAS,SAASjB,IAAI,GAAG,OAAO,GAAG,gBAAgBA,IAAI,GAAG,GAAG,OAAO,gBAAgBJ,EAAE,SAAS,OAAO,YAAYyB,EAAE,QAAQC,EAAE,eAAeI,EAAE,aAAaA,EAAE,cAAcE,EAAE,YAAYA,EAAE,eAAeE,EAAE,aAAaA,CAAC,EAAE,OAAO8B,GAAE,EAAG,CAAC,SAASrB,EAAE,WAAWpC,EAAE,KAAK+B,EAAE,WAAWgF,GAAG,KAAK,iBAAiB,CAAC,CAAC,CAAI,IAACM,GAAGC,GAAG,EAAE,EAAEC,GAAGD,GAAGlC,EAAE,EAAEoC,GAAGF,GAAGtD,EAAE,EAAEyD,GAAGC,GAAGC,GAAGL,GAAGtB,EAAE,EAAE4B,GAAGN,GAAGN,EAAE,EAAEa,GAAG,OAAO,OAAOR,GAAG,CAAC,MAAMG,GAAG,OAAOD,GAAG,MAAME,GAAG,QAAQE,GAAG,OAAOC,EAAE,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useContext as n,createContext as m,useId as D,useMemo as b}from"react";import{useIsoMorphicEffect as h}from"../../hooks/use-iso-morphic-effect.js";import{useSyncRefs as v}from"../../hooks/use-sync-refs.js";import{useDisabled as g}from"../../internal/disabled.js";import{forwardRefWithAs as x,useRender as y}from"../../utils/render.js";let s=m(null);s.displayName="DescriptionContext";function a(){let e=n(s);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,a),r}return e}function I(){var e,r;return(r=(e=n(s))==null?void 0:e.value)!=null?r:void 0}let C="p";function E(e,r){let l=D(),u=g(),{id:o=`headlessui-description-${l}`,...p}=e,t=a(),c=v(r);h(()=>t.register(o),[o,t.register]);let i=u||!1,d=b(()=>({...t.slot,disabled:i}),[t.slot,i]),f={ref:c,...t.props,id:o};return y()({ourProps:f,theirProps:p,slot:d,defaultTag:C,name:t.name||"Description"})}let S=x(E);Object.assign(S,{});export{I as useDescribedBy};
|
|
2
|
-
//# sourceMappingURL=description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"description.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/components/description/description.js"],"sourcesContent":["\"use client\";import m,{createContext as T,useContext as u,useMemo as c,useState as P}from\"react\";import{useEvent as g}from'../../hooks/use-event.js';import{useId as x}from'../../hooks/use-id.js';import{useIsoMorphicEffect as y}from'../../hooks/use-iso-morphic-effect.js';import{useSyncRefs as E}from'../../hooks/use-sync-refs.js';import{useDisabled as v}from'../../internal/disabled.js';import{forwardRefWithAs as R,useRender as I}from'../../utils/render.js';let a=T(null);a.displayName=\"DescriptionContext\";function f(){let r=u(a);if(r===null){let e=new Error(\"You used a <Description /> component, but it is not inside a relevant parent.\");throw Error.captureStackTrace&&Error.captureStackTrace(e,f),e}return r}function U(){var r,e;return(e=(r=u(a))==null?void 0:r.value)!=null?e:void 0}function w(){let[r,e]=P([]);return[r.length>0?r.join(\" \"):void 0,c(()=>function(t){let i=g(n=>(e(s=>[...s,n]),()=>e(s=>{let o=s.slice(),p=o.indexOf(n);return p!==-1&&o.splice(p,1),o}))),l=c(()=>({register:i,slot:t.slot,name:t.name,props:t.props,value:t.value}),[i,t.slot,t.name,t.props,t.value]);return m.createElement(a.Provider,{value:l},t.children)},[e])]}let S=\"p\";function C(r,e){let d=x(),t=v(),{id:i=`headlessui-description-${d}`,...l}=r,n=f(),s=E(e);y(()=>n.register(i),[i,n.register]);let o=t||!1,p=c(()=>({...n.slot,disabled:o}),[n.slot,o]),D={ref:s,...n.props,id:i};return I()({ourProps:D,theirProps:l,slot:p,defaultTag:S,name:n.name||\"Description\"})}let _=R(C),H=Object.assign(_,{});export{H as Description,U as useDescribedBy,w as useDescriptions};\n"],"names":["a","T","f","r","u","e","U","S","C","d","x","t","v","i","l","n","s","E","y","o","p","c","D","I","_","R"],"mappings":"sVAA2c,IAAIA,EAAEC,EAAE,IAAI,EAAED,EAAE,YAAY,qBAAqB,SAASE,GAAG,CAAC,IAAIC,EAAEC,EAAEJ,CAAC,EAAE,GAAGG,IAAI,KAAK,CAAC,IAAIE,EAAE,IAAI,MAAM,+EAA+E,EAAE,MAAM,MAAM,mBAAmB,MAAM,kBAAkBA,EAAEH,CAAC,EAAEG,CAAC,CAAC,OAAOF,CAAC,CAAC,SAASG,GAAG,CAAC,IAAIH,EAAEE,EAAE,OAAOA,GAAGF,EAAEC,EAAEJ,CAAC,IAAI,KAAK,OAAOG,EAAE,QAAQ,KAAKE,EAAE,MAAM,CAAwW,IAAIE,EAAE,IAAI,SAASC,EAAEL,EAAEE,EAAE,CAAC,IAAII,EAAEC,IAAIC,EAAEC,EAAC,EAAG,CAAC,GAAGC,EAAE,0BAA0BJ,CAAC,GAAG,GAAGK,CAAC,EAAEX,EAAEY,EAAEb,EAAC,EAAGc,EAAEC,EAAEZ,CAAC,EAAEa,EAAE,IAAIH,EAAE,SAASF,CAAC,EAAE,CAACA,EAAEE,EAAE,QAAQ,CAAC,EAAE,IAAII,EAAER,GAAG,GAAGS,EAAEC,EAAE,KAAK,CAAC,GAAGN,EAAE,KAAK,SAASI,CAAC,GAAG,CAACJ,EAAE,KAAKI,CAAC,CAAC,EAAEG,EAAE,CAAC,IAAIN,EAAE,GAAGD,EAAE,MAAM,GAAGF,CAAC,EAAE,OAAOU,EAAC,EAAG,CAAC,SAASD,EAAE,WAAWR,EAAE,KAAKM,EAAE,WAAWb,EAAE,KAAKQ,EAAE,MAAM,aAAa,CAAC,CAAC,CAAI,IAACS,EAAEC,EAAEjB,CAAC,EAAI,OAAO,OAAOgB,EAAE,CAAA,CAAE","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var o=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(o||{});export{o as Keys};
|
|
2
|
-
//# sourceMappingURL=keyboard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.js","sources":["../../../../../../node_modules/@headlessui/react/dist/components/keyboard.js"],"sourcesContent":["var o=(r=>(r.Space=\" \",r.Enter=\"Enter\",r.Escape=\"Escape\",r.Backspace=\"Backspace\",r.Delete=\"Delete\",r.ArrowLeft=\"ArrowLeft\",r.ArrowUp=\"ArrowUp\",r.ArrowRight=\"ArrowRight\",r.ArrowDown=\"ArrowDown\",r.Home=\"Home\",r.End=\"End\",r.PageUp=\"PageUp\",r.PageDown=\"PageDown\",r.Tab=\"Tab\",r))(o||{});export{o as Keys};\n"],"names":["r"],"mappings":"AAAG,IAAC,GAAGA,IAAIA,EAAE,MAAM,IAAIA,EAAE,MAAM,QAAQA,EAAE,OAAO,SAASA,EAAE,UAAU,YAAYA,EAAE,OAAO,SAASA,EAAE,UAAU,YAAYA,EAAE,QAAQ,UAAUA,EAAE,WAAW,aAAaA,EAAE,UAAU,YAAYA,EAAE,KAAK,OAAOA,EAAE,IAAI,MAAMA,EAAE,OAAO,SAASA,EAAE,SAAS,WAAWA,EAAE,IAAI,MAAMA,IAAI,GAAG,CAAA,CAAE","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import I,{useContext as E,createContext as F,useState as R,useMemo as h,useId as S}from"react";import{useEvent as y}from"../../hooks/use-event.js";import{useIsoMorphicEffect as j}from"../../hooks/use-iso-morphic-effect.js";import{useSyncRefs as w}from"../../hooks/use-sync-refs.js";import{useDisabled as B}from"../../internal/disabled.js";import{useProvidedId as M}from"../../internal/id.js";import{isInteractiveElement as P,isHTMLLabelElement as L,isHTMLInputElement as A}from"../../utils/dom.js";import{forwardRefWithAs as D,useRender as H}from"../../utils/render.js";let b=F(null);b.displayName="LabelContext";function x(){let l=E(b);if(l===null){let o=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(o,x),o}return l}function N(l){var o,a,i;let e=(a=(o=E(b))==null?void 0:o.value)!=null?a:void 0;return((i=l==null?void 0:l.length)!=null?i:0)>0?[e,...l].filter(Boolean).join(" "):e}function J({inherit:l=!1}={}){let o=N(),[a,i]=R([]),e=l?[o,...a].filter(Boolean):a;return[e.length>0?e.join(" "):void 0,h(()=>function(t){let d=y(p=>(i(c=>[...c,p]),()=>i(c=>{let n=c.slice(),f=n.indexOf(p);return f!==-1&&n.splice(f,1),n}))),u=h(()=>({register:d,slot:t.slot,name:t.name,props:t.props,value:t.value}),[d,t.slot,t.name,t.props,t.value]);return I.createElement(b.Provider,{value:u},t.children)},[i])]}let O="label";function _(l,o){var a;let i=S(),e=x(),t=M(),d=B(),{id:u=`headlessui-label-${i}`,htmlFor:p=t??((a=e.props)==null?void 0:a.htmlFor),passive:c=!1,...n}=l,f=w(o);j(()=>e.register(u),[u,e.register]);let $=y(s=>{let v=s.currentTarget;if(!(s.target!==s.currentTarget&&P(s.target))&&(L(v)&&s.preventDefault(),e.props&&"onClick"in e.props&&typeof e.props.onClick=="function"&&e.props.onClick(s),L(v))){let r=document.getElementById(v.htmlFor);if(r){let k=r.getAttribute("disabled");if(k==="true"||k==="")return;let C=r.getAttribute("aria-disabled");if(C==="true"||C==="")return;(A(r)&&(r.type==="file"||r.type==="radio"||r.type==="checkbox")||r.role==="radio"||r.role==="checkbox"||r.role==="switch")&&r.click(),r.focus({preventScroll:!0})}}}),g=d||!1,T=h(()=>({...e.slot,disabled:g}),[e.slot,g]),m={ref:f,...e.props,id:u,htmlFor:p,onClick:$};return c&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in n&&delete n.onClick),H()({ourProps:m,theirProps:n,slot:T,defaultTag:p?O:"div",name:e.name||"Label"})}let G=D(_),X=Object.assign(G,{});export{X as Label,x as useLabelContext,N as useLabelledBy,J as useLabels};
|
|
2
|
-
//# sourceMappingURL=label.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/components/label/label.js"],"sourcesContent":["\"use client\";import D,{createContext as k,useContext as v,useMemo as T,useState as _}from\"react\";import{useEvent as P}from'../../hooks/use-event.js';import{useId as A}from'../../hooks/use-id.js';import{useIsoMorphicEffect as B}from'../../hooks/use-iso-morphic-effect.js';import{useSyncRefs as F}from'../../hooks/use-sync-refs.js';import{useDisabled as M}from'../../internal/disabled.js';import{useProvidedId as S}from'../../internal/id.js';import*as m from'../../utils/dom.js';import{forwardRefWithAs as I,useRender as H}from'../../utils/render.js';let L=k(null);L.displayName=\"LabelContext\";function C(){let n=v(L);if(n===null){let l=new Error(\"You used a <Label /> component, but it is not inside a relevant parent.\");throw Error.captureStackTrace&&Error.captureStackTrace(l,C),l}return n}function N(n){var a,e,o;let l=(e=(a=v(L))==null?void 0:a.value)!=null?e:void 0;return((o=n==null?void 0:n.length)!=null?o:0)>0?[l,...n].filter(Boolean).join(\" \"):l}function Q({inherit:n=!1}={}){let l=N(),[a,e]=_([]),o=n?[l,...a].filter(Boolean):a;return[o.length>0?o.join(\" \"):void 0,T(()=>function(t){let p=P(i=>(e(u=>[...u,i]),()=>e(u=>{let d=u.slice(),f=d.indexOf(i);return f!==-1&&d.splice(f,1),d}))),b=T(()=>({register:p,slot:t.slot,name:t.name,props:t.props,value:t.value}),[p,t.slot,t.name,t.props,t.value]);return D.createElement(L.Provider,{value:b},t.children)},[e])]}let G=\"label\";function U(n,l){var E;let a=A(),e=C(),o=S(),y=M(),{id:t=`headlessui-label-${a}`,htmlFor:p=o!=null?o:(E=e.props)==null?void 0:E.htmlFor,passive:b=!1,...i}=n,u=F(l);B(()=>e.register(t),[t,e.register]);let d=P(s=>{let g=s.currentTarget;if(!(s.target!==s.currentTarget&&m.isInteractiveElement(s.target))&&(m.isHTMLLabelElement(g)&&s.preventDefault(),e.props&&\"onClick\"in e.props&&typeof e.props.onClick==\"function\"&&e.props.onClick(s),m.isHTMLLabelElement(g))){let r=document.getElementById(g.htmlFor);if(r){let x=r.getAttribute(\"disabled\");if(x===\"true\"||x===\"\")return;let h=r.getAttribute(\"aria-disabled\");if(h===\"true\"||h===\"\")return;(m.isHTMLInputElement(r)&&(r.type===\"file\"||r.type===\"radio\"||r.type===\"checkbox\")||r.role===\"radio\"||r.role===\"checkbox\"||r.role===\"switch\")&&r.click(),r.focus({preventScroll:!0})}}}),f=y||!1,R=T(()=>({...e.slot,disabled:f}),[e.slot,f]),c={ref:u,...e.props,id:t,htmlFor:p,onClick:d};return b&&(\"onClick\"in c&&(delete c.htmlFor,delete c.onClick),\"onClick\"in i&&delete i.onClick),H()({ourProps:c,theirProps:i,slot:R,defaultTag:p?G:\"div\",name:e.name||\"Label\"})}let j=I(U),V=Object.assign(j,{});export{V as Label,C as useLabelContext,N as useLabelledBy,Q as useLabels};\n"],"names":["L","k","C","n","v","l","a","e","o","Q","_","T","p","P","i","u","d","b","D","G","U","E","A","S","y","M","t","F","B","g","m.isInteractiveElement","m.isHTMLLabelElement","x","h","m.isHTMLInputElement","f","R","c","H","j","I","V"],"mappings":"0jBAAqiB,IAAIA,EAAEC,EAAE,IAAI,EAAED,EAAE,YAAY,eAAe,SAASE,GAAG,CAAC,IAAIC,EAAEC,EAAEJ,CAAC,EAAE,GAAGG,IAAI,KAAK,CAAC,IAAIE,EAAE,IAAI,MAAM,yEAAyE,EAAE,MAAM,MAAM,mBAAmB,MAAM,kBAAkBA,EAAEH,CAAC,EAAEG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AG,EAAE,MAAM,GAAGW,EAAE,QAAQ,EAAE,QAAQV,CAAC,EAAE,OAAOC,IAAI,YAAYoB,IAAI,OAAOA,EAAE,QAAQ,OAAOA,EAAE,SAAS,YAAYvB,GAAG,OAAOA,EAAE,SAASwB,IAAI,CAAC,SAASD,EAAE,WAAWvB,EAAE,KAAKsB,EAAE,WAAW,EAAEjB,EAAE,MAAM,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAI,IAACoB,EAAEC,EAAEpB,CAAC,EAAEqB,EAAE,OAAO,OAAOF,EAAE,CAAA,CAAE","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mouse.js","sources":["../../../../../../node_modules/@headlessui/react/dist/components/mouse.js"],"sourcesContent":["var g=(f=>(f[f.Left=0]=\"Left\",f[f.Right=2]=\"Right\",f))(g||{});export{g as MouseButton};\n"],"names":["g","f"],"mappings":"AAAG,IAACA,GAAGC,IAAIA,EAAEA,EAAE,KAAK,CAAC,EAAE,OAAOA,EAAEA,EAAE,MAAM,CAAC,EAAE,QAAQA,IAAID,GAAG,CAAA,CAAE","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import P,{Fragment as g,createContext as b,useRef as O,useState as C,useContext as E,useEffect as v}from"react";import{createPortal as T}from"react-dom";import{useIsoMorphicEffect as h}from"../../hooks/use-iso-morphic-effect.js";import{useOnUnmount as x}from"../../hooks/use-on-unmount.js";import{useOwnerDocument as A}from"../../hooks/use-owner.js";import{useServerHandoffComplete as G}from"../../hooks/use-server-handoff-complete.js";import{useSyncRefs as p,optionalRef as I}from"../../hooks/use-sync-refs.js";import{usePortalRoot as $}from"../../internal/portal-force-root.js";import{isNode as B}from"../../utils/dom.js";import{env as R}from"../../utils/env.js";import{forwardRefWithAs as d,useRender as c}from"../../utils/render.js";function H(e){let n=$(),t=E(w),[l,u]=C(()=>{var a;if(!n&&t!==null)return(a=t.current)!=null?a:null;if(R.isServer)return null;let i=e==null?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(e===null)return null;let f=e.createElement("div");return f.setAttribute("id","headlessui-portal-root"),e.body.appendChild(f)});return v(()=>{l!==null&&(e!=null&&e.body.contains(l)||e==null||e.body.appendChild(l))},[l,e]),v(()=>{n||t!==null&&u(t.current)},[t,u,n]),l}let y=g,M=d(function(e,n){let{ownerDocument:t=null,...l}=e,u=O(null),a=p(I(s=>{u.current=s}),n),i=A(u),f=t??i,o=H(f),[r]=C(()=>{var s;return R.isServer?null:(s=f==null?void 0:f.createElement("div"))!=null?s:null}),m=E(k),D=G();h(()=>{!o||!r||o.contains(r)||(r.setAttribute("data-headlessui-portal",""),o.appendChild(r))},[o,r]),h(()=>{if(r&&m)return m.register(r)},[m,r]),x(()=>{var s;!o||!r||(B(r)&&o.contains(r)&&o.removeChild(r),o.childNodes.length<=0&&((s=o.parentElement)==null||s.removeChild(o)))});let S=c();return D?!o||!r?null:T(S({ourProps:{ref:a},theirProps:l,slot:{},defaultTag:y,name:"Portal"}),r):null});function N(e,n){let t=p(n),{enabled:l=!0,ownerDocument:u,...a}=e,i=c();return l?P.createElement(M,{...a,ownerDocument:u,ref:t}):i({ourProps:{ref:t},theirProps:a,slot:{},defaultTag:y,name:"Portal"})}let _=g,w=b(null);function j(e,n){let{target:t,...l}=e,u={ref:p(n)},a=c();return P.createElement(w.Provider,{value:t},a({ourProps:u,theirProps:l,defaultTag:_,name:"Popover.Group"}))}let k=b(null),q=d(N),F=d(j),ee=Object.assign(q,{Group:F});export{ee as Portal,F as PortalGroup};
|
|
2
|
-
//# sourceMappingURL=portal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"portal.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/components/portal/portal.js"],"sourcesContent":["\"use client\";import T,{Fragment as E,createContext as A,useContext as d,useEffect as G,useMemo as x,useRef as L,useState as c}from\"react\";import{createPortal as h}from\"react-dom\";import{useEvent as _}from'../../hooks/use-event.js';import{useIsoMorphicEffect as C}from'../../hooks/use-iso-morphic-effect.js';import{useOnUnmount as F}from'../../hooks/use-on-unmount.js';import{useOwnerDocument as U}from'../../hooks/use-owner.js';import{useServerHandoffComplete as N}from'../../hooks/use-server-handoff-complete.js';import{optionalRef as S,useSyncRefs as m}from'../../hooks/use-sync-refs.js';import{usePortalRoot as W}from'../../internal/portal-force-root.js';import*as j from'../../utils/dom.js';import{env as v}from'../../utils/env.js';import{forwardRefWithAs as y,useRender as R}from'../../utils/render.js';function I(e){let l=W(),o=d(H),[r,u]=c(()=>{var i;if(!l&&o!==null)return(i=o.current)!=null?i:null;if(v.isServer)return null;let t=e==null?void 0:e.getElementById(\"headlessui-portal-root\");if(t)return t;if(e===null)return null;let a=e.createElement(\"div\");return a.setAttribute(\"id\",\"headlessui-portal-root\"),e.body.appendChild(a)});return G(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),G(()=>{l||o!==null&&u(o.current)},[o,u,l]),r}let M=E,D=y(function(l,o){let{ownerDocument:r=null,...u}=l,t=L(null),a=m(S(s=>{t.current=s}),o),i=U(t),f=r!=null?r:i,p=I(f),[n]=c(()=>{var s;return v.isServer?null:(s=f==null?void 0:f.createElement(\"div\"))!=null?s:null}),P=d(g),O=N();C(()=>{!p||!n||p.contains(n)||(n.setAttribute(\"data-headlessui-portal\",\"\"),p.appendChild(n))},[p,n]),C(()=>{if(n&&P)return P.register(n)},[P,n]),F(()=>{var s;!p||!n||(j.isNode(n)&&p.contains(n)&&p.removeChild(n),p.childNodes.length<=0&&((s=p.parentElement)==null||s.removeChild(p)))});let b=R();return O?!p||!n?null:h(b({ourProps:{ref:a},theirProps:u,slot:{},defaultTag:M,name:\"Portal\"}),n):null});function J(e,l){let o=m(l),{enabled:r=!0,ownerDocument:u,...t}=e,a=R();return r?T.createElement(D,{...t,ownerDocument:u,ref:o}):a({ourProps:{ref:o},theirProps:t,slot:{},defaultTag:M,name:\"Portal\"})}let X=E,H=A(null);function k(e,l){let{target:o,...r}=e,t={ref:m(l)},a=R();return T.createElement(H.Provider,{value:o},a({ourProps:t,theirProps:r,defaultTag:X,name:\"Popover.Group\"}))}let g=A(null);function oe(){let e=d(g),l=L([]),o=_(t=>(l.current.push(t),e&&e.register(t),()=>r(t))),r=_(t=>{let a=l.current.indexOf(t);a!==-1&&l.current.splice(a,1),e&&e.unregister(t)}),u=x(()=>({register:o,unregister:r,portals:l}),[o,r,l]);return[l,x(()=>function({children:a}){return T.createElement(g.Provider,{value:u},a)},[u])]}let B=y(J),q=y(k),ne=Object.assign(B,{Group:q});export{ne as Portal,q as PortalGroup,oe as useNestedPortals};\n"],"names":["I","l","W","o","d","H","r","c","i","v","t","a","G","M","E","D","y","u","L","m","S","U","p","n","s","P","g","O","N","C","F","j.isNode","b","R","h","J","T","X","A","k","B","q","ne"],"mappings":"iuBAAwyB,SAASA,EAAE,EAAE,CAAC,IAAIC,EAAEC,EAAC,EAAGC,EAAEC,EAAEC,CAAC,EAAE,CAACC,EAAE,CAAC,EAAEC,EAAE,IAAI,CAAC,IAAIC,EAAE,GAAG,CAACP,GAAGE,IAAI,KAAK,OAAOK,EAAEL,EAAE,UAAU,KAAKK,EAAE,KAAK,GAAGC,EAAE,SAAS,OAAO,KAAK,IAAIC,EAAE,GAAG,KAAK,OAAO,EAAE,eAAe,wBAAwB,EAAE,GAAGA,EAAE,OAAOA,EAAE,GAAG,IAAI,KAAK,OAAO,KAAK,IAAIC,EAAE,EAAE,cAAc,KAAK,EAAE,OAAOA,EAAE,aAAa,KAAK,wBAAwB,EAAE,EAAE,KAAK,YAAYA,CAAC,CAAC,CAAC,EAAE,OAAOC,EAAE,IAAI,CAACN,IAAI,OAAO,GAAG,MAAM,EAAE,KAAK,SAASA,CAAC,GAAG,GAAG,MAAM,EAAE,KAAK,YAAYA,CAAC,EAAE,EAAE,CAACA,EAAE,CAAC,CAAC,EAAEM,EAAE,IAAI,CAACX,GAAGE,IAAI,MAAM,EAAE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AE,KAAK,QAAQ,CAAC,EAAEU,CAAC,EAAE,IAAI,CAAC,EAAE,SAASY,EAAE,EAAElC,EAAE,CAAC,IAAIE,EAAEgB,EAAElB,CAAC,EAAE,CAAC,QAAQK,EAAE,GAAG,cAAc,EAAE,GAAGI,CAAC,EAAE,EAAEC,EAAEsB,EAAC,EAAG,OAAO3B,EAAE8B,EAAE,cAAcrB,EAAE,CAAC,GAAGL,EAAE,cAAc,EAAE,IAAIP,CAAC,CAAC,EAAEQ,EAAE,CAAC,SAAS,CAAC,IAAIR,CAAC,EAAE,WAAWO,EAAE,KAAK,CAAA,EAAG,WAAWG,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAIwB,EAAEvB,EAAET,EAAEiC,EAAE,IAAI,EAAE,SAASC,EAAE,EAAEtC,EAAE,CAAC,GAAG,CAAC,OAAOE,EAAE,GAAGG,CAAC,EAAE,EAAEI,EAAE,CAAC,IAAIS,EAAElB,CAAC,CAAC,EAAE,EAAEgC,EAAC,EAAG,OAAOG,EAAE,cAAc/B,EAAE,SAAS,CAAC,MAAMF,CAAC,EAAE,EAAE,CAAC,SAASO,EAAE,WAAWJ,EAAE,WAAW+B,EAAE,KAAK,eAAe,CAAC,CAAC,CAAC,CAAC,IAAIX,EAAEY,EAAE,IAAI,EAAsUE,EAAExB,EAAEmB,CAAC,EAAEM,EAAEzB,EAAEuB,CAAC,EAAEG,GAAG,OAAO,OAAOF,EAAE,CAAC,MAAMC,CAAC,CAAC","x_google_ignoreList":[0]}
|
package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function i(){let l;return{before({doc:e}){var d;let t=e.documentElement,n=(d=e.defaultView)!=null?d:window;l=Math.max(0,n.innerWidth-t.clientWidth)},after({doc:e,d}){let t=e.documentElement,n=Math.max(0,t.clientWidth-t.offsetWidth),a=Math.max(0,l-n);d.style(t,"paddingRight",`${a}px`)}}}export{i as adjustScrollbarPadding};
|
|
2
|
-
//# sourceMappingURL=adjust-scrollbar-padding.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adjust-scrollbar-padding.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js"],"sourcesContent":["function d(){let r;return{before({doc:e}){var l;let o=e.documentElement,t=(l=e.defaultView)!=null?l:window;r=Math.max(0,t.innerWidth-o.clientWidth)},after({doc:e,d:o}){let t=e.documentElement,l=Math.max(0,t.clientWidth-t.offsetWidth),n=Math.max(0,r-l);o.style(t,\"paddingRight\",`${n}px`)}}}export{d as adjustScrollbarPadding};\n"],"names":["d","r","l","o","t","n"],"mappings":"AAAA,SAASA,GAAG,CAAC,IAAIC,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAIC,EAAE,IAAIC,EAAE,EAAE,gBAAgBC,GAAGF,EAAE,EAAE,cAAc,KAAKA,EAAE,OAAOD,EAAE,KAAK,IAAI,EAAEG,EAAE,WAAWD,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,IAAI,EAAEA,CAAG,EAAE,CAAC,IAAI,EAAE,EAAE,gBAAgBD,EAAE,KAAK,IAAI,EAAE,EAAE,YAAY,EAAE,WAAW,EAAEG,EAAE,KAAK,IAAI,EAAEJ,EAAEC,CAAC,EAAEC,EAAE,MAAM,EAAE,eAAe,GAAGE,CAAC,IAAI,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{disposables as u}from"../../utils/disposables.js";import{isHTMLorSVGElement as i,hasInlineStyle as m,isHTMLInputElement as p}from"../../utils/dom.js";import{isIOS as h}from"../../utils/platform.js";function E(){return h()?{before({doc:a,d:r,meta:d}){function n(s){return d.containers.flatMap(o=>o()).some(o=>o.contains(s))}r.microTask(()=>{var s;if(window.getComputedStyle(a.documentElement).scrollBehavior!=="auto"){let e=u();e.style(a.documentElement,"scrollBehavior","auto"),r.add(()=>r.microTask(()=>e.dispose()))}let o=(s=window.scrollY)!=null?s:window.pageYOffset,l=null;r.addEventListener(a,"click",e=>{if(i(e.target))try{let t=e.target.closest("a");if(!t)return;let{hash:f}=new URL(t.href),c=a.querySelector(f);i(c)&&!n(c)&&(l=c)}catch{}},!0),r.addEventListener(a,"touchstart",e=>{if(i(e.target)&&m(e.target))if(n(e.target)){let t=e.target;for(;t.parentElement&&n(t.parentElement);)t=t.parentElement;r.style(t,"overscrollBehavior","contain")}else r.style(e.target,"touchAction","none")}),r.addEventListener(a,"touchmove",e=>{if(i(e.target)){if(p(e.target))return;if(n(e.target)){let t=e.target;for(;t.parentElement&&t.dataset.headlessuiPortal!==""&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;t.dataset.headlessuiPortal===""&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),r.add(()=>{var e;let t=(e=window.scrollY)!=null?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}export{E as handleIOSLocking};
|
|
2
|
-
//# sourceMappingURL=handle-ios-locking.js.map
|
package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handle-ios-locking.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js"],"sourcesContent":["import{disposables as u}from'../../utils/disposables.js';import*as o from'../../utils/dom.js';import{isIOS as p}from'../../utils/platform.js';function w(){return p()?{before({doc:n,d:l,meta:f}){function i(a){return f.containers.flatMap(r=>r()).some(r=>r.contains(a))}l.microTask(()=>{var c;if(window.getComputedStyle(n.documentElement).scrollBehavior!==\"auto\"){let t=u();t.style(n.documentElement,\"scrollBehavior\",\"auto\"),l.add(()=>l.microTask(()=>t.dispose()))}let a=(c=window.scrollY)!=null?c:window.pageYOffset,r=null;l.addEventListener(n,\"click\",t=>{if(o.isHTMLorSVGElement(t.target))try{let e=t.target.closest(\"a\");if(!e)return;let{hash:m}=new URL(e.href),s=n.querySelector(m);o.isHTMLorSVGElement(s)&&!i(s)&&(r=s)}catch{}},!0),l.addEventListener(n,\"touchstart\",t=>{if(o.isHTMLorSVGElement(t.target)&&o.hasInlineStyle(t.target))if(i(t.target)){let e=t.target;for(;e.parentElement&&i(e.parentElement);)e=e.parentElement;l.style(e,\"overscrollBehavior\",\"contain\")}else l.style(t.target,\"touchAction\",\"none\")}),l.addEventListener(n,\"touchmove\",t=>{if(o.isHTMLorSVGElement(t.target)){if(o.isHTMLInputElement(t.target))return;if(i(t.target)){let e=t.target;for(;e.parentElement&&e.dataset.headlessuiPortal!==\"\"&&!(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth);)e=e.parentElement;e.dataset.headlessuiPortal===\"\"&&t.preventDefault()}else t.preventDefault()}},{passive:!1}),l.add(()=>{var e;let t=(e=window.scrollY)!=null?e:window.pageYOffset;a!==t&&window.scrollTo(0,a),r&&r.isConnected&&(r.scrollIntoView({block:\"nearest\"}),r=null)})})}}:{}}export{w as handleIOSLocking};\n"],"names":["w","p","n","l","f","i","a","r","c","t","u","o.isHTMLorSVGElement","e","m","s","o.hasInlineStyle","o.isHTMLInputElement"],"mappings":"6MAA8I,SAASA,GAAG,CAAC,OAAOC,EAAC,EAAG,CAAC,OAAO,CAAC,IAAIC,EAAE,EAAEC,EAAE,KAAKC,CAAC,EAAE,CAAC,SAASC,EAAEC,EAAE,CAAC,OAAOF,EAAE,WAAW,QAAQG,GAAGA,EAAC,CAAE,EAAE,KAAKA,GAAGA,EAAE,SAASD,CAAC,CAAC,CAAC,CAACH,EAAE,UAAU,IAAI,CAAC,IAAIK,EAAE,GAAG,OAAO,iBAAiBN,EAAE,eAAe,EAAE,iBAAiB,OAAO,CAAC,IA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,QAAQ,mBAAmB,IAAIH,EAAE,eAAc,CAAE,MAAMA,EAAE,eAAc,CAAE,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAEN,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,EAAE,OAAO,UAAU,KAAK,EAAE,OAAO,YAAYG,IAAI,GAAG,OAAO,SAAS,EAAEA,CAAC,EAAEC,GAAGA,EAAE,cAAcA,EAAE,eAAe,CAAC,MAAM,SAAS,CAAC,EAAEA,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA,CAAE","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{disposables as n}from"../../utils/disposables.js";import{createStore as d}from"../../utils/store.js";import{adjustScrollbarPadding as c}from"./adjust-scrollbar-padding.js";import{handleIOSLocking as i}from"./handle-ios-locking.js";import{preventScroll as f}from"./prevent-scroll.js";function m(e){let o={};for(let t of e)Object.assign(o,t(o));return o}let l=d(()=>new Map,{PUSH(e,o){var t;let r=(t=this.get(e))!=null?t:{doc:e,count:0,d:n(),meta:new Set};return r.count++,r.meta.add(o),this.set(e,r),this},POP(e,o){let t=this.get(e);return t&&(t.count--,t.meta.delete(o)),this},SCROLL_PREVENT({doc:e,d:o,meta:t}){let r={doc:e,d:o,meta:m(t)},a=[i(),c(),f()];a.forEach(({before:s})=>s==null?void 0:s(r)),a.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});l.subscribe(()=>{let e=l.getSnapshot(),o=new Map;for(let[t]of e)o.set(t,t.documentElement.style.overflow);for(let t of e.values()){let r=o.get(t.doc)==="hidden",a=t.count!==0;(a&&!r||!a&&r)&&l.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&l.dispatch("TEARDOWN",t)}});export{l as overflows};
|
|
2
|
-
//# sourceMappingURL=overflow-store.js.map
|
package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overflow-store.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js"],"sourcesContent":["import{disposables as s}from'../../utils/disposables.js';import{createStore as i}from'../../utils/store.js';import{adjustScrollbarPadding as l}from'./adjust-scrollbar-padding.js';import{handleIOSLocking as d}from'./handle-ios-locking.js';import{preventScroll as p}from'./prevent-scroll.js';function m(e){let n={};for(let t of e)Object.assign(n,t(n));return n}let a=i(()=>new Map,{PUSH(e,n){var o;let t=(o=this.get(e))!=null?o:{doc:e,count:0,d:s(),meta:new Set};return t.count++,t.meta.add(n),this.set(e,t),this},POP(e,n){let t=this.get(e);return t&&(t.count--,t.meta.delete(n)),this},SCROLL_PREVENT({doc:e,d:n,meta:t}){let o={doc:e,d:n,meta:m(t)},c=[d(),l(),p()];c.forEach(({before:r})=>r==null?void 0:r(o)),c.forEach(({after:r})=>r==null?void 0:r(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});a.subscribe(()=>{let e=a.getSnapshot(),n=new Map;for(let[t]of e)n.set(t,t.documentElement.style.overflow);for(let t of e.values()){let o=n.get(t.doc)===\"hidden\",c=t.count!==0;(c&&!o||!c&&o)&&a.dispatch(t.count>0?\"SCROLL_PREVENT\":\"SCROLL_ALLOW\",t),t.count===0&&a.dispatch(\"TEARDOWN\",t)}});export{a as overflows};\n"],"names":["n","a","i","o","t","s","c","d","l","p","r"],"mappings":"kSAAkS,SAAS,EAAE,EAAE,CAAC,IAAIA,EAAE,CAAA,EAAG,QAAQ,KAAK,EAAE,OAAO,OAAOA,EAAE,EAAEA,CAAC,CAAC,EAAE,OAAOA,CAAC,CAAI,IAACC,EAAEC,EAAE,IAAI,IAAI,IAAI,CAAC,KAAK,EAAEF,EAAE,CAAC,IAAIG,EAAE,IAAIC,GAAGD,EAAE,KAAK,IAAI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AAW,CAAC,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prevent-scroll.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js"],"sourcesContent":["function r(){return{before({doc:e,d:o}){o.style(e.documentElement,\"overflow\",\"hidden\")}}}export{r as preventScroll};\n"],"names":[],"mappings":"AAAA,SAAS,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,WAAW,QAAQ,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useStore as a}from"../use-store.js";import{useIsoMorphicEffect as c}from"../use-iso-morphic-effect.js";import{overflows as t}from"./overflow-store.js";function p(r,o,f=()=>({containers:[]})){let e=a(t),s=o?e.get(o):void 0,i=s?s.count>0:!1;return c(()=>{if(!(!o||!r))return t.dispatch("PUSH",o,f),()=>t.dispatch("POP",o,f)},[r,o]),i}export{p as useDocumentOverflowLockedEffect};
|
|
2
|
-
//# sourceMappingURL=use-document-overflow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-document-overflow.js","sources":["../../../../../../../node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js"],"sourcesContent":["import{useStore as s}from'../../hooks/use-store.js';import{useIsoMorphicEffect as u}from'../use-iso-morphic-effect.js';import{overflows as t}from'./overflow-store.js';function a(r,e,n=()=>({containers:[]})){let f=s(t),o=e?f.get(e):void 0,i=o?o.count>0:!1;return u(()=>{if(!(!e||!r))return t.dispatch(\"PUSH\",e,n),()=>t.dispatch(\"POP\",e,n)},[r,e]),i}export{a as useDocumentOverflowLockedEffect};\n"],"names":["a","e","n","f","s","t","o","u"],"mappings":"8JAAuK,SAASA,EAAE,EAAEC,EAAEC,EAAE,KAAK,CAAC,WAAW,CAAA,CAAE,GAAG,CAAC,IAAIC,EAAEC,EAAEC,CAAC,EAAEC,EAAEL,EAAEE,EAAE,IAAIF,CAAC,EAAE,OAAO,EAAEK,EAAEA,EAAE,MAAM,EAAE,GAAG,OAAOC,EAAE,IAAI,CAAC,GAAG,EAAE,CAACN,GAAG,CAAC,GAAG,OAAOI,EAAE,SAAS,OAAOJ,EAAEC,CAAC,EAAE,IAAIG,EAAE,SAAS,MAAMJ,EAAEC,CAAC,CAAC,EAAE,CAAC,EAAED,CAAC,CAAC,EAAE,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useRef as a,useState as d}from"react";import{getOwnerDocument as m}from"../utils/owner.js";import{useDisposables as g}from"./use-disposables.js";import{useEvent as u}from"./use-event.js";function h(t){let e=t.width/2,n=t.height/2;return{top:t.clientY-n,right:t.clientX+e,bottom:t.clientY+n,left:t.clientX-e}}function v(t,e){return!(!t||!e||t.right<e.left||t.left>e.right||t.bottom<e.top||t.top>e.bottom)}function D({disabled:t=!1}={}){let e=a(null),[n,i]=d(!1),r=g(),o=u(()=>{e.current=null,i(!1),r.dispose()}),p=u(l=>{if(r.dispose(),e.current===null){e.current=l.currentTarget,i(!0);{let s=m(l.currentTarget);r.addEventListener(s,"pointerup",o,!1),r.addEventListener(s,"pointermove",c=>{if(e.current){let f=h(c);i(v(f,e.current.getBoundingClientRect()))}},!1),r.addEventListener(s,"pointercancel",o,!1)}}});return{pressed:n,pressProps:t?{}:{onPointerDown:p,onPointerUp:o,onClick:o}}}export{D as useActivePress};
|
|
2
|
-
//# sourceMappingURL=use-active-press.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-active-press.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-active-press.js"],"sourcesContent":["import{useRef as a,useState as m}from\"react\";import{getOwnerDocument as d}from'../utils/owner.js';import{useDisposables as g}from'./use-disposables.js';import{useEvent as u}from'./use-event.js';function E(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function P(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function w({disabled:e=!1}={}){let t=a(null),[n,l]=m(!1),r=g(),o=u(()=>{t.current=null,l(!1),r.dispose()}),f=u(s=>{if(r.dispose(),t.current===null){t.current=s.currentTarget,l(!0);{let i=d(s.currentTarget);r.addEventListener(i,\"pointerup\",o,!1),r.addEventListener(i,\"pointermove\",c=>{if(t.current){let p=E(c);l(P(p,t.current.getBoundingClientRect()))}},!1),r.addEventListener(i,\"pointercancel\",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:f,onPointerUp:o,onClick:o}}}export{w as useActivePress};\n"],"names":["E","e","t","P","w","a","l","m","g","o","u","f","s","i","d","p"],"mappings":"kMAAkM,SAASA,EAAEC,EAAE,CAAC,IAAIC,EAAED,EAAE,MAAM,EAAE,EAAEA,EAAE,OAAO,EAAE,MAAM,CAAC,IAAIA,EAAE,QAAQ,EAAE,MAAMA,EAAE,QAAQC,EAAE,OAAOD,EAAE,QAAQ,EAAE,KAAKA,EAAE,QAAQC,CAAC,CAAC,CAAC,SAASC,EAAEF,EAAEC,EAAE,CAAC,MAAM,EAAE,CAACD,GAAG,CAACC,GAAGD,EAAE,MAAMC,EAAE,MAAMD,EAAE,KAAKC,EAAE,OAAOD,EAAE,OAAOC,EAAE,KAAKD,EAAE,IAAIC,EAAE,OAAO,CAAC,SAASE,EAAE,CAAC,SAASH,EAAE,EAAE,EAAE,CAAA,EAAG,CAAC,IAAIC,EAAEG,EAAE,IAAI,EAAE,CAAC,EAAEC,CAAC,EAAEC,EAAE,EAAE,EAAE,EAAEC,EAAC,EAAGC,EAAEC,EAAE,IAAI,CAACR,EAAE,QAAQ,KAAKI,EAAE,EAAE,EAAE,EAAE,QAAO,CAAE,CAAC,EAAEK,EAAED,EAAEE,GAAG,CAAC,GAAG,EAAE,QAAO,EAAGV,EAAE,UAAU,KAAK,CAACA,EAAE,QAAQU,EAAE,cAAcN,EAAE,EAAE,EAAE,CAAC,IAAIO,EAAEC,EAAEF,EAAE,aAAa,EAAE,EAAE,iBAAiBC,EAAE,YAAYJ,EAAE,EAAE,EAAE,EAAE,iBAAiBI,EAAE,cAAc,GAAG,CAAC,GAAGX,EAAE,QAAQ,CAAC,IAAIa,EAAEf,EAAE,CAAC,EAAEM,EAAEH,EAAEY,EAAEb,EAAE,QAAQ,uBAAuB,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,iBAAiBW,EAAE,gBAAgBJ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,QAAQ,EAAE,WAAWR,EAAE,CAAA,EAAG,CAAC,cAAcU,EAAE,YAAYF,EAAE,QAAQA,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useCallback as u}from"react";function l(n,o){return n!==null&&o!==null&&typeof n=="object"&&typeof o=="object"&&"id"in n&&"id"in o?n.id===o.id:n===o}function f(n=l){return u((o,t)=>{if(typeof n=="string"){let i=n;return(o==null?void 0:o[i])===(t==null?void 0:t[i])}return n(o,t)},[n])}export{f as useByComparator};
|
|
2
|
-
//# sourceMappingURL=use-by-comparator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-by-comparator.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-by-comparator.js"],"sourcesContent":["import{useCallback as n}from\"react\";function l(e,r){return e!==null&&r!==null&&typeof e==\"object\"&&typeof r==\"object\"&&\"id\"in e&&\"id\"in r?e.id===r.id:e===r}function u(e=l){return n((r,t)=>{if(typeof e==\"string\"){let o=e;return(r==null?void 0:r[o])===(t==null?void 0:t[o])}return e(r,t)},[e])}export{u as useByComparator};\n"],"names":["e","r","u","n","o"],"mappings":"oCAAoC,SAAS,EAAEA,EAAEC,EAAE,CAAC,OAAOD,IAAI,MAAMC,IAAI,MAAM,OAAOD,GAAG,UAAU,OAAOC,GAAG,UAAU,OAAOD,GAAG,OAAOC,EAAED,EAAE,KAAKC,EAAE,GAAGD,IAAIC,CAAC,CAAC,SAASC,EAAEF,EAAE,EAAE,CAAC,OAAOG,EAAE,CAACF,EAAE,IAAI,CAAC,GAAG,OAAOD,GAAG,SAAS,CAAC,IAAII,EAAEJ,EAAE,OAAOC,GAAG,KAAK,OAAOA,EAAEG,CAAC,MAAM,GAAG,KAAK,OAAO,EAAEA,CAAC,EAAE,CAAC,OAAOJ,EAAEC,EAAE,CAAC,CAAC,EAAE,CAACD,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useState as s,useRef as o}from"react";import{useEvent as h}from"./use-event.js";function p(r,t,a){let[i,d]=s(a),e=r!==void 0,n=o(e),u=o(!1),c=o(!1);return e&&!n.current&&!u.current?(u.current=!0,n.current=e,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!e&&n.current&&!c.current&&(c.current=!0,n.current=e,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[e?r:i,h(l=>(e||d(l),t==null?void 0:t(l)))]}export{p as useControllable};
|
|
2
|
-
//# sourceMappingURL=use-controllable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-controllable.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-controllable.js"],"sourcesContent":["import{useRef as o,useState as f}from\"react\";import{useEvent as a}from'./use-event.js';function T(l,r,c){let[i,s]=f(c),e=l!==void 0,t=o(e),u=o(!1),d=o(!1);return e&&!t.current&&!u.current?(u.current=!0,t.current=e,console.error(\"A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.\")):!e&&t.current&&!d.current&&(d.current=!0,t.current=e,console.error(\"A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.\")),[e?l:i,a(n=>(e||s(n),r==null?void 0:r(n)))]}export{T as useControllable};\n"],"names":["T","l","r","c","s","f","t","o","d","a","n"],"mappings":"uFAAuF,SAASA,EAAEC,EAAEC,EAAEC,EAAE,CAAC,GAAG,CAAC,EAAEC,CAAC,EAAEC,EAAEF,CAAC,EAAE,EAAEF,IAAI,OAAOK,EAAEC,EAAE,CAAC,EAAE,EAAEA,EAAE,EAAE,EAAEC,EAAED,EAAE,EAAE,EAAE,OAAO,GAAG,CAACD,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,GAAGA,EAAE,QAAQ,EAAE,QAAQ,MAAM,+JAA+J,GAAG,CAAC,GAAGA,EAAE,SAAS,CAACE,EAAE,UAAUA,EAAE,QAAQ,GAAGF,EAAE,QAAQ,EAAE,QAAQ,MAAM,+JAA+J,GAAG,CAAC,EAAEL,EAAE,EAAEQ,EAAEC,IAAI,GAAGN,EAAEM,CAAC,EAAER,GAAG,KAAK,OAAOA,EAAEQ,CAAC,EAAE,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-default-value.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-default-value.js"],"sourcesContent":["import{useState as u}from\"react\";function l(e){let[t]=u(e);return t}export{l as useDefaultValue};\n"],"names":["l","e","t","u"],"mappings":"iCAAiC,SAASA,EAAEC,EAAE,CAAC,GAAG,CAACC,CAAC,EAAEC,EAAEF,CAAC,EAAE,OAAOC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-disposables.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-disposables.js"],"sourcesContent":["import{useEffect as s,useState as o}from\"react\";import{disposables as t}from'../utils/disposables.js';function p(){let[e]=o(t);return s(()=>()=>e.dispose(),[e]),e}export{p as useDisposables};\n"],"names":["p","e","o","t","s"],"mappings":"sGAAsG,SAASA,GAAG,CAAC,GAAG,CAACC,CAAC,EAAEC,EAAEC,CAAC,EAAE,OAAOC,EAAE,IAAI,IAAIH,EAAE,QAAO,EAAG,CAACA,CAAC,CAAC,EAAEA,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useEffect as i}from"react";import{useLatestValue as m}from"./use-latest-value.js";function a(r,e,u,t){let o=m(u);i(()=>{if(!r)return;function n(s){o.current(s)}return document.addEventListener(e,n,t),()=>document.removeEventListener(e,n,t)},[r,e,t])}export{a as useDocumentEvent};
|
|
2
|
-
//# sourceMappingURL=use-document-event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-document-event.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-document-event.js"],"sourcesContent":["import{useEffect as c}from\"react\";import{useLatestValue as a}from'./use-latest-value.js';function i(t,e,o,n){let u=a(o);c(()=>{if(!t)return;function r(m){u.current(m)}return document.addEventListener(e,r,n),()=>document.removeEventListener(e,r,n)},[t,e,n])}export{i as useDocumentEvent};\n"],"names":["i","t","o","n","u","a","c","r","m"],"mappings":"yFAAyF,SAASA,EAAEC,EAAE,EAAEC,EAAEC,EAAE,CAAC,IAAIC,EAAEC,EAAEH,CAAC,EAAEI,EAAE,IAAI,CAAC,GAAG,CAACL,EAAE,OAAO,SAASM,EAAEC,EAAE,CAACJ,EAAE,QAAQI,CAAC,CAAC,CAAC,OAAO,SAAS,iBAAiB,EAAED,EAAEJ,CAAC,EAAE,IAAI,SAAS,oBAAoB,EAAEI,EAAEJ,CAAC,CAAC,EAAE,CAACF,EAAE,EAAEE,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useReducer as u,useMemo as o}from"react";import{useIsoMorphicEffect as s}from"./use-iso-morphic-effect.js";function f(e){if(e===null)return{width:0,height:0};let{width:t,height:i}=e.getBoundingClientRect();return{width:t,height:i}}function l(e,t=!1){let[i,h]=u(()=>({}),{}),r=o(()=>f(e),[e,i]);return s(()=>{if(!e)return;let n=new ResizeObserver(h);return n.observe(e),()=>{n.disconnect()}},[e]),t?{width:`${r.width}px`,height:`${r.height}px`}:r}export{l as useElementSize};
|
|
2
|
-
//# sourceMappingURL=use-element-size.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-element-size.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-element-size.js"],"sourcesContent":["import{useMemo as o,useReducer as h}from\"react\";import{useIsoMorphicEffect as s}from'./use-iso-morphic-effect.js';function f(e){if(e===null)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function d(e,t=!1){let[r,u]=h(()=>({}),{}),i=o(()=>f(e),[e,r]);return s(()=>{if(!e)return;let n=new ResizeObserver(u);return n.observe(e),()=>{n.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}export{d as useElementSize};\n"],"names":["r","d","u","h","i","o","s"],"mappings":"kHAAkH,SAAS,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAOA,CAAC,EAAE,EAAE,wBAAwB,MAAM,CAAC,MAAM,EAAE,OAAOA,CAAC,CAAC,CAAC,SAASC,EAAE,EAAE,EAAE,GAAG,CAAC,GAAG,CAACD,EAAEE,CAAC,EAAEC,EAAE,KAAK,CAAA,GAAI,CAAA,CAAE,EAAEC,EAAEC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAEL,CAAC,CAAC,EAAE,OAAOM,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,IAAI,EAAE,IAAI,eAAeJ,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC,EAAE,WAAU,CAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,GAAGE,EAAE,KAAK,KAAK,OAAO,GAAGA,EAAE,MAAM,IAAI,EAAEA,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useEffect as u}from"react";import{useLatestValue as f}from"./use-latest-value.js";function E(e,t,i,r){let n=f(i);u(()=>{e=e??window;function s(o){n.current(o)}return e.addEventListener(t,s,r),()=>e.removeEventListener(t,s,r)},[e,t,r])}export{E as useEventListener};
|
|
2
|
-
//# sourceMappingURL=use-event-listener.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-event-listener.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-event-listener.js"],"sourcesContent":["import{useEffect as d}from\"react\";import{useLatestValue as s}from'./use-latest-value.js';function E(n,e,a,t){let i=s(a);d(()=>{n=n!=null?n:window;function r(o){i.current(o)}return n.addEventListener(e,r,t),()=>n.removeEventListener(e,r,t)},[n,e,t])}export{E as useEventListener};\n"],"names":["n","e","a","t","i","s","d","r"],"mappings":"yFAAyF,SAAS,EAAEA,EAAEC,EAAEC,EAAEC,EAAE,CAAC,IAAIC,EAAEC,EAAEH,CAAC,EAAEI,EAAE,IAAI,CAACN,EAAEA,GAAU,OAAO,SAASO,EAAE,EAAE,CAACH,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAOJ,EAAE,iBAAiBC,EAAEM,EAAEJ,CAAC,EAAE,IAAIH,EAAE,oBAAoBC,EAAEM,EAAEJ,CAAC,CAAC,EAAE,CAACH,EAAEC,EAAEE,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-event.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-event.js"],"sourcesContent":["import a from\"react\";import{useLatestValue as n}from'./use-latest-value.js';let o=function(t){let e=n(t);return a.useCallback((...r)=>e.current(...r),[e])};export{o as useEvent};\n"],"names":["o","n","a"],"mappings":"4EAA+E,IAACA,EAAE,SAAS,EAAE,CAAC,IAAI,EAAEC,EAAE,CAAC,EAAE,OAAOC,EAAE,YAAY,IAAI,IAAI,EAAE,QAAQ,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useState as n,useCallback as t}from"react";function f(s=0){let[e,l]=n(s),F=t(a=>l(a),[e]),o=t(a=>l(g=>g|a),[e]),r=t(a=>(e&a)===a,[e]),u=t(a=>l(g=>g&~a),[l]),m=t(a=>l(g=>g^a),[l]);return{flags:e,setFlag:F,addFlag:o,hasFlag:r,removeFlag:u,toggleFlag:m}}export{f as useFlags};
|
|
2
|
-
//# sourceMappingURL=use-flags.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-flags.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-flags.js"],"sourcesContent":["import{useCallback as r,useState as b}from\"react\";function c(u=0){let[t,l]=b(u),g=r(e=>l(e),[t]),s=r(e=>l(a=>a|e),[t]),m=r(e=>(t&e)===e,[t]),n=r(e=>l(a=>a&~e),[l]),F=r(e=>l(a=>a^e),[l]);return{flags:t,setFlag:g,addFlag:s,hasFlag:m,removeFlag:n,toggleFlag:F}}export{c as useFlags};\n"],"names":["c","u","t","b","g","r","e","s","a","m","n","F"],"mappings":"kDAAkD,SAASA,EAAEC,EAAE,EAAE,CAAC,GAAG,CAACC,EAAE,CAAC,EAAEC,EAAEF,CAAC,EAAEG,EAAEC,EAAEC,GAAG,EAAEA,CAAC,EAAE,CAACJ,CAAC,CAAC,EAAEK,EAAEF,EAAEC,GAAG,EAAEE,GAAGA,EAAEF,CAAC,EAAE,CAACJ,CAAC,CAAC,EAAEO,EAAEJ,EAAEC,IAAIJ,EAAEI,KAAKA,EAAE,CAACJ,CAAC,CAAC,EAAEQ,EAAEL,EAAEC,GAAG,EAAEE,GAAGA,EAAE,CAACF,CAAC,EAAE,CAAC,CAAC,CAAC,EAAEK,EAAEN,EAAEC,GAAG,EAAEE,GAAGA,EAAEF,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,MAAMJ,EAAE,QAAQE,EAAE,QAAQG,EAAE,QAAQE,EAAE,WAAWC,EAAE,WAAWC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{disposables as v}from"../utils/disposables.js";import{getOwnerDocument as g}from"../utils/owner.js";import{useIsTopLayer as w}from"./use-is-top-layer.js";import{useIsoMorphicEffect as A}from"./use-iso-morphic-effect.js";let d=new Map,l=new Map;function h(e){var t;let r=(t=l.get(e))!=null?t:0;return l.set(e,r+1),r!==0?()=>c(e):(d.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>c(e))}function c(e){var t;let r=(t=l.get(e))!=null?t:1;if(r===1?l.delete(e):l.set(e,r-1),r!==1)return;let n=d.get(e);n&&(n["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,d.delete(e))}function O(e,{allowed:t,disallowed:r}={}){let n=w(e,"inert-others");A(()=>{var u,s;if(!n)return;let a=v();for(let i of(u=r==null?void 0:r())!=null?u:[])i&&a.add(h(i));let f=(s=t==null?void 0:t())!=null?s:[];for(let i of f){if(!i)continue;let m=g(i);if(!m)continue;let o=i.parentElement;for(;o&&o!==m.body;){for(let p of o.children)f.some(b=>p.contains(b))||a.add(h(p));o=o.parentElement}}return a.dispose},[n,t,r])}export{O as useInertOthers};
|
|
2
|
-
//# sourceMappingURL=use-inert-others.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-inert-others.js","sources":["../../../../../../node_modules/@headlessui/react/dist/hooks/use-inert-others.js"],"sourcesContent":["import{disposables as M}from'../utils/disposables.js';import{getOwnerDocument as b}from'../utils/owner.js';import{useIsTopLayer as L}from'./use-is-top-layer.js';import{useIsoMorphicEffect as T}from'./use-iso-morphic-effect.js';let f=new Map,u=new Map;function h(t){var e;let r=(e=u.get(t))!=null?e:0;return u.set(t,r+1),r!==0?()=>m(t):(f.set(t,{\"aria-hidden\":t.getAttribute(\"aria-hidden\"),inert:t.inert}),t.setAttribute(\"aria-hidden\",\"true\"),t.inert=!0,()=>m(t))}function m(t){var i;let r=(i=u.get(t))!=null?i:1;if(r===1?u.delete(t):u.set(t,r-1),r!==1)return;let e=f.get(t);e&&(e[\"aria-hidden\"]===null?t.removeAttribute(\"aria-hidden\"):t.setAttribute(\"aria-hidden\",e[\"aria-hidden\"]),t.inert=e.inert,f.delete(t))}function y(t,{allowed:r,disallowed:e}={}){let i=L(t,\"inert-others\");T(()=>{var d,c;if(!i)return;let a=M();for(let n of(d=e==null?void 0:e())!=null?d:[])n&&a.add(h(n));let s=(c=r==null?void 0:r())!=null?c:[];for(let n of s){if(!n)continue;let l=b(n);if(!l)continue;let o=n.parentElement;for(;o&&o!==l.body;){for(let p of o.children)s.some(E=>p.contains(E))||a.add(h(p));o=o.parentElement}}return a.dispose},[i,r,e])}export{y as useInertOthers};\n"],"names":["f","u","t","e","m","i","y","r","L","T","d","c","M","n","s","l","b","E"],"mappings":"mOAAmO,IAAIA,EAAE,IAAI,IAAIC,EAAE,IAAI,IAAI,SAAS,EAAEC,EAAE,CAAC,IAAIC,EAAE,IAAI,GAAGA,EAAEF,EAAE,IAAIC,CAAC,IAAI,KAAKC,EAAE,EAAE,OAAOF,EAAE,IAAIC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAIE,EAAEF,CAAC,GAAGF,EAAE,IAAIE,EAAE,CAAC,cAAcA,EAAE,aAAa,aAAa,EAAE,MAAMA,EAAE,KAAK,CAAC,EAAEA,EAAE,aA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E,EAAEJ,CAAC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useId as c,useCallback as p}from"react";import{stackMachines as u}from"../machines/stack-machine.js";import{useSlice as f}from"../react-glue.js";import{useIsoMorphicEffect as n}from"./use-iso-morphic-effect.js";function k(r,o){let e=c(),s=u.get(o),[i,a]=f(s,p(t=>[s.selectors.isTop(t,e),s.selectors.inStack(t,e)],[s,e]));return n(()=>{if(r)return s.actions.push(e),()=>s.actions.pop(e)},[s,r,e]),r?a?i:!0:!1}export{k as useIsTopLayer};
|
|
2
|
-
//# sourceMappingURL=use-is-top-layer.js.map
|