"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { SliderProvider } from "./use-slider-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/slider/slider-root-provider.tsx
var splitRootProviderProps = createSplitProps();
var SliderRootProvider = forwardRef((props, ref) => {
	const [{ value: slider }, localProps] = splitRootProviderProps(props, ["value"]);
	const mergedProps = mergeProps(slider.getRootProps(), localProps);
	return /* @__PURE__ */ jsx(SliderProvider, {
		value: slider,
		children: /* @__PURE__ */ jsx(ark.div, {
			...mergedProps,
			ref
		})
	});
});
SliderRootProvider.displayName = "SliderRootProvider";
//#endregion
export { SliderRootProvider };
