"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_scroll_area_context = require("./use-scroll-area-context.cjs");
const require_use_scroll_area = require("./use-scroll-area.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/scroll-area/scroll-area-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var ScrollAreaRoot = (0, react.forwardRef)((props, ref) => {
	const [useScrollAreaProps, localProps] = splitRootProps(props, ["id", "ids"]);
	const scrollArea = require_use_scroll_area.useScrollArea(useScrollAreaProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(scrollArea.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_scroll_area_context.ScrollAreaProvider, {
		value: scrollArea,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
ScrollAreaRoot.displayName = "ScrollAreaRoot";
//#endregion
exports.ScrollAreaRoot = ScrollAreaRoot;
