"use client";
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_factory = require("../../../core/factory/factory.cjs");
const require_Box = require("../../../core/Box/Box.cjs");
const require_Combobox_module = require("../Combobox.module.cjs");
const require_Combobox_context = require("../Combobox.context.cjs");
let react = require("react");
let _mantine_hooks = require("@mantine/hooks");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Combobox/ComboboxOptions/ComboboxOptions.tsx
const ComboboxOptions = require_factory.factory((_props) => {
	const { classNames, className, style, styles, id, onMouseDown, labelledBy, ...others } = require_use_props.useProps("ComboboxOptions", null, _props);
	const ctx = require_Combobox_context.useComboboxContext();
	const _id = (0, _mantine_hooks.useId)(id);
	(0, react.useEffect)(() => {
		ctx.store.setListId(_id);
	}, [_id]);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
		...ctx.getStyles("options", {
			className,
			style,
			classNames,
			styles
		}),
		...others,
		id: _id,
		role: "listbox",
		"aria-labelledby": labelledBy,
		onMouseDown: (event) => {
			event.preventDefault();
			onMouseDown?.(event);
		}
	});
});
ComboboxOptions.classes = require_Combobox_module.default;
ComboboxOptions.displayName = "@mantine/core/ComboboxOptions";
//#endregion
exports.ComboboxOptions = ComboboxOptions;

//# sourceMappingURL=ComboboxOptions.cjs.map