"use client";
const require_is_element = require("../../../core/utils/is-element/is-element.cjs");
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_factory = require("../../../core/factory/factory.cjs");
const require_Popover = require("../../Popover/Popover.cjs");
const require_Combobox_context = require("../Combobox.context.cjs");
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.tsx
const defaultProps = { refProp: "ref" };
const ComboboxDropdownTarget = require_factory.factory((props) => {
	const { children, refProp, ref } = require_use_props.useProps("ComboboxDropdownTarget", defaultProps, props);
	require_Combobox_context.useComboboxContext();
	if (!require_is_element.isElement(children)) throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Popover.Popover.Target, {
		ref,
		refProp,
		children
	});
});
ComboboxDropdownTarget.displayName = "@mantine/core/ComboboxDropdownTarget";
//#endregion
exports.ComboboxDropdownTarget = ComboboxDropdownTarget;

//# sourceMappingURL=ComboboxDropdownTarget.cjs.map