"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_rating_group_context = require("./use-rating-group-context.cjs");
const require_use_rating_group = require("./use-rating-group.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/rating-group/rating-group-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var RatingGroupRoot = (0, react.forwardRef)((props, ref) => {
	const [useRatingProps, localProps] = splitRootProps(props, [
		"allowHalf",
		"autoFocus",
		"count",
		"defaultValue",
		"disabled",
		"form",
		"id",
		"ids",
		"name",
		"onHoverChange",
		"onValueChange",
		"readOnly",
		"required",
		"translations",
		"value"
	]);
	const ratingGroup = require_use_rating_group.useRatingGroup(useRatingProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(ratingGroup.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_rating_group_context.RatingGroupProvider, {
		value: ratingGroup,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
RatingGroupRoot.displayName = "RatingGroupRoot";
//#endregion
exports.RatingGroupRoot = RatingGroupRoot;
