"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_combobox_context = require("./use-combobox-context.cjs");
const require_use_combobox_item_context = require("./use-combobox-item-context.cjs");
const require_use_combobox_item_props_context = require("./use-combobox-item-props-context.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/combobox/combobox-item.tsx
var splitItemProps = require_create_split_props.createSplitProps();
var ComboboxItem = (0, react.forwardRef)((props, ref) => {
	const [itemProps, localProps] = splitItemProps(props, ["item", "persistFocus"]);
	const combobox = require_use_combobox_context.useComboboxContext();
	const mergedProps = (0, _zag_js_react.mergeProps)(combobox.getItemProps(itemProps), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_combobox_item_props_context.ComboboxItemPropsProvider, {
		value: itemProps,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_combobox_item_context.ComboboxItemProvider, {
			value: combobox.getItemState(itemProps),
			children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
				...mergedProps,
				ref
			})
		})
	});
});
ComboboxItem.displayName = "ComboboxItem";
//#endregion
exports.ComboboxItem = ComboboxItem;
