"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const isElement = require("../../../core/utils/is-element/is-element.cjs");
require("react");
require("clsx");
const useProps = require("../../../core/MantineProvider/use-props/use-props.cjs");
const factory = require("../../../core/factory/factory.cjs");
const Popover = require("../../Popover/Popover.cjs");
const Combobox_context = require("../Combobox.context.cjs");
const defaultProps = {
  refProp: "ref"
};
const ComboboxDropdownTarget = factory.factory((props, ref) => {
  const { children, refProp } = useProps.useProps("ComboboxDropdownTarget", defaultProps, props);
  Combobox_context.useComboboxContext();
  if (!isElement.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__ */ jsxRuntime.jsx(Popover.Popover.Target, { ref, refProp, children });
});
ComboboxDropdownTarget.displayName = "@mantine/core/ComboboxDropdownTarget";
exports.ComboboxDropdownTarget = ComboboxDropdownTarget;
