"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_menu_context = require("./use-menu-context.cjs");
const require_use_menu_item_group_context = require("./use-menu-item-group-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/menu/menu-radio-item-group.tsx
var splitItemGroupProps = require_create_split_props.createSplitProps();
var MenuRadioItemGroup = (0, react.forwardRef)((props, ref) => {
	const [optionalItemGroupProps, localProps] = splitItemGroupProps(props, [
		"id",
		"onValueChange",
		"value"
	]);
	const menu = require_use_menu_context.useMenuContext();
	const itemGroupProps = {
		id: (0, react.useId)(),
		...optionalItemGroupProps
	};
	const mergedProps = (0, _zag_js_react.mergeProps)(menu.getItemGroupProps({ id: itemGroupProps.id }), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_menu_item_group_context.MenuItemGroupProvider, {
		value: itemGroupProps,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
MenuRadioItemGroup.displayName = "MenuRadioItemGroup";
//#endregion
exports.MenuRadioItemGroup = MenuRadioItemGroup;
