"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_carousel_context = require("./use-carousel-context.cjs");
const require_use_carousel = require("./use-carousel.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/carousel/carousel-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var CarouselRoot = (0, react.forwardRef)((props, ref) => {
	const [useCarouselProps, localProps] = splitRootProps(props, [
		"allowMouseDrag",
		"autoplay",
		"autoSize",
		"defaultPage",
		"id",
		"ids",
		"inViewThreshold",
		"loop",
		"onAutoplayStatusChange",
		"onDragStatusChange",
		"onPageChange",
		"orientation",
		"padding",
		"page",
		"slideCount",
		"slidesPerMove",
		"slidesPerPage",
		"snapType",
		"spacing",
		"translations"
	]);
	const carousel = require_use_carousel.useCarousel(useCarouselProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(carousel.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_carousel_context.CarouselProvider, {
		value: carousel,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
CarouselRoot.displayName = "CarouselRoot";
//#endregion
exports.CarouselRoot = CarouselRoot;
