'use strict';

var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var reactIcons_esm = require('../../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs');
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var index = require('../../node_modules/.pnpm/cmdk@0.2.0_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/cmdk/dist/index.cjs');
var React = require('react');
var dialog = require('../dialog/dialog.cjs');
var flex = require('../flex/flex.cjs');
var command_module = require('./command.module.css.cjs');

const command = index$1.cva(command_module.default.command);
const CommandRoot = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Command, { ref: ref, className: command({ className }), ...props })));
CommandRoot.displayName = index.Command.displayName;
const CommandDialog = ({ children, ...props }) => {
    return (jsxRuntime.jsxRuntimeExports.jsx(dialog.Dialog, { ...props, children: jsxRuntime.jsxRuntimeExports.jsx(dialog.Dialog.Content, { style: { overflow: "hidden", padding: "0" }, children: jsxRuntime.jsxRuntimeExports.jsx(Command, { className: command_module.default.dialogcommand, children: children }) }) }));
};
const input = index$1.cva(command_module.default.input);
const CommandInput = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsxs(flex.Flex, { align: "center", gap: "small", "cmdk-input-wrapper": "", className: command_module.default.inputWrapper, children: [jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.MagnifyingGlassIcon, { className: command_module.default.inputIcon, width: 16, height: 16 }), jsxRuntime.jsxRuntimeExports.jsx(index.Command.Input, { ref: ref, className: input({ className }), ...props })] })));
CommandInput.displayName = index.Command.Input.displayName;
const list = index$1.cva(command_module.default.list);
const CommandList = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Command.List, { ref: ref, className: list({ className }), ...props })));
CommandList.displayName = index.Command.List.displayName;
const CommandEmpty = React.forwardRef((props, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Command.Empty, { ref: ref, className: command_module.default.empty, ...props })));
CommandEmpty.displayName = index.Command.Empty.displayName;
const group = index$1.cva(command_module.default.group);
const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Command.Group, { ref: ref, className: group({ className }), ...props })));
CommandGroup.displayName = index.Command.Group.displayName;
const separator = index$1.cva(command_module.default.separator);
const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Command.Separator, { ref: ref, className: separator({ className }), ...props })));
CommandSeparator.displayName = index.Command.Separator.displayName;
const item = index$1.cva(command_module.default.item);
const CommandItem = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Command.Item, { ref: ref, className: item({ className }), ...props })));
CommandItem.displayName = index.Command.Item.displayName;
const shortcut = index$1.cva(command_module.default.shortcut);
const CommandShortcut = ({ className, ...props }) => {
    return jsxRuntime.jsxRuntimeExports.jsx("span", { className: shortcut({ className }), ...props });
};
CommandShortcut.displayName = "CommandShortcut";
const Command = Object.assign(CommandRoot, {
    Dialog: CommandDialog,
    Input: CommandInput,
    List: CommandList,
    Empty: CommandEmpty,
    Group: CommandGroup,
    Item: CommandItem,
    Shortcut: CommandShortcut,
    Separator: CommandSeparator,
});

exports.Command = Command;
//# sourceMappingURL=command.cjs.map
