"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_marquee_context = require("./use-marquee-context.cjs");
const require_use_marquee = require("./use-marquee.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/marquee/marquee-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var MarqueeRoot = (0, react.forwardRef)((props, ref) => {
	const [useMarqueeProps, localProps] = splitRootProps(props, [
		"autoFill",
		"defaultPaused",
		"delay",
		"id",
		"ids",
		"loopCount",
		"onComplete",
		"onLoopComplete",
		"onPauseChange",
		"paused",
		"pauseOnInteraction",
		"reverse",
		"side",
		"spacing",
		"speed",
		"translations"
	]);
	const marqueeApi = require_use_marquee.useMarquee(useMarqueeProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(marqueeApi.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_marquee_context.MarqueeProvider, {
		value: marqueeApi,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
MarqueeRoot.displayName = "MarqueeRoot";
//#endregion
exports.MarqueeRoot = MarqueeRoot;
