import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { forwardRef } from 'react';
import { Portal as $d08ef79370b62062$export$602eac185826482c, Content as $d08ef79370b62062$export$7c6e2c02157bb7d2, SubContent as $d08ef79370b62062$export$6d4de93b380beddf } from '../../node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.0.5_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@1_e7gmnqwdc4f4ybjj7qkfdho6zy/node_modules/@radix-ui/react-dropdown-menu/dist/index.js';
import { Combobox } from '../../node_modules/.pnpm/@ariakit_react-core@0.4.16_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@ariakit/react-core/esm/combobox/combobox.js';
import { ComboboxList } from '../../node_modules/.pnpm/@ariakit_react-core@0.4.16_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@ariakit/react-core/esm/__chunks/MAXQOH4L.js';
import { cx } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import { useDropdownContext } from './dropdown-menu-root.js';
import styles from './dropdown-menu.module.css.js';

const DropdownMenuContent = forwardRef(({ className, children, sideOffset = 4, ...props }, ref) => {
    const { autocomplete } = useDropdownContext();
    return (jsxRuntimeExports.jsx($d08ef79370b62062$export$602eac185826482c, { children: jsxRuntimeExports.jsx($d08ef79370b62062$export$7c6e2c02157bb7d2, { ref: ref, sideOffset: sideOffset, className: cx(styles.content, autocomplete && styles.comboboxContainer, className), ...props, children: autocomplete ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(Combobox, { autoSelect: true, autoFocus: true, placeholder: "Search...", className: styles.comboboxInput, onBlurCapture: event => {
                            event.preventDefault();
                            event.stopPropagation();
                        }, onMouseOver: event => {
                            event.preventDefault();
                            event.stopPropagation();
                        } }), jsxRuntimeExports.jsx(ComboboxList, { className: styles.comboboxContent, children: children })] })) : (children) }) }));
});
DropdownMenuContent.displayName = $d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;
const DropdownMenuSubMenuContent = forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$602eac185826482c, { children: jsxRuntimeExports.jsx($d08ef79370b62062$export$6d4de93b380beddf, { ref: ref, className: cx(styles.content, className), ...props }) })));
DropdownMenuSubMenuContent.displayName =
    $d08ef79370b62062$export$6d4de93b380beddf.displayName;

export { DropdownMenuContent, DropdownMenuSubMenuContent };
//# sourceMappingURL=dropdown-menu-content.js.map
