"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_select_context = require("./use-select-context.cjs");
const require_use_select_item_group_props = require("./use-select-item-group-props.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/select/select-item-group.tsx
var splitItemGroupProps = require_create_split_props.createSplitProps();
var SelectItemGroup = (0, react.forwardRef)((props, ref) => {
	const id = (0, react.useId)();
	const [_itemGroupProps, localProps] = splitItemGroupProps(props, ["id"]);
	const itemGroupProps = {
		id,
		..._itemGroupProps
	};
	const mergedProps = (0, _zag_js_react.mergeProps)(require_use_select_context.useSelectContext().getItemGroupProps(itemGroupProps), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_select_item_group_props.SelectItemGroupPropsProvider, {
		value: itemGroupProps,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
SelectItemGroup.displayName = "SelectItemGroup";
//#endregion
exports.SelectItemGroup = SelectItemGroup;
