{"version":3,"sources":["../src/components/Dropdown/Listbox/useListbox.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useListbox_unstable } from '@fluentui/react-combobox';\n\nimport type { ListboxProps, ListboxState } from './Listbox.types';\n\n/**\n * Returns the state for a Listbox component, given its props and ref.\n * The returned state can be modified with hooks before being passed to `renderListbox`.\n */\nexport const useListbox = (props: ListboxProps, ref: React.Ref<HTMLElement>): ListboxState => {\n  const state = useListbox_unstable(props, ref);\n\n  // eslint-disable-next-line react-hooks/immutability\n  state.root.popover = 'auto';\n\n  return state;\n};\n"],"names":["useListbox","props","ref","state","useListbox_unstable","root","popover"],"mappings":"AAAA;;;;;+BAWaA;;;eAAAA;;;+BARuB;AAQ7B,MAAMA,aAAa,CAACC,OAAqBC;IAC9C,MAAMC,QAAQC,IAAAA,kCAAmB,EAACH,OAAOC;IAEzC,oDAAoD;IACpDC,MAAME,IAAI,CAACC,OAAO,GAAG;IAErB,OAAOH;AACT"}