'use strict';

var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var React = require('react');
var index = require('../../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.cjs');
var combobox = require('../../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.cjs');
var MAXQOH4L = require('../../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.cjs');
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var dropdownMenuRoot = require('./dropdown-menu-root.cjs');
var dropdownMenu_module = require('./dropdown-menu.module.css.cjs');

const DropdownMenuContent = React.forwardRef(({ className, children, sideOffset = 4, ...props }, ref) => {
    const { autocomplete } = dropdownMenuRoot.useDropdownContext();
    return (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Content, { ref: ref, sideOffset: sideOffset, className: index$1.cx(dropdownMenu_module.default.content, autocomplete && dropdownMenu_module.default.comboboxContainer, className), ...props, children: autocomplete ? (jsxRuntime.jsxRuntimeExports.jsxs(jsxRuntime.jsxRuntimeExports.Fragment, { children: [jsxRuntime.jsxRuntimeExports.jsx(combobox.Combobox, { autoSelect: true, autoFocus: true, placeholder: "Search...", className: dropdownMenu_module.default.comboboxInput, onBlurCapture: event => {
                            event.preventDefault();
                            event.stopPropagation();
                        }, onMouseOver: event => {
                            event.preventDefault();
                            event.stopPropagation();
                        } }), jsxRuntime.jsxRuntimeExports.jsx(MAXQOH4L.ComboboxList, { className: dropdownMenu_module.default.comboboxContent, children: children })] })) : (children) }) }));
});
DropdownMenuContent.displayName = index.Content.displayName;
const DropdownMenuSubMenuContent = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.SubContent, { ref: ref, className: index$1.cx(dropdownMenu_module.default.content, className), ...props }) })));
DropdownMenuSubMenuContent.displayName =
    index.SubContent.displayName;

exports.DropdownMenuContent = DropdownMenuContent;
exports.DropdownMenuSubMenuContent = DropdownMenuSubMenuContent;
//# sourceMappingURL=dropdown-menu-content.cjs.map
