"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_slider_context = require("./use-slider-context.cjs");
const require_use_slider = require("./use-slider.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/slider/slider-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var SliderRoot = (0, react.forwardRef)((props, ref) => {
	const [useSliderProps, localProps] = splitRootProps(props, [
		"aria-label",
		"aria-labelledby",
		"defaultValue",
		"disabled",
		"form",
		"getAriaValueText",
		"id",
		"ids",
		"invalid",
		"max",
		"min",
		"minStepsBetweenThumbs",
		"name",
		"onFocusChange",
		"onValueChange",
		"onValueChangeEnd",
		"orientation",
		"origin",
		"readOnly",
		"step",
		"thumbAlignment",
		"thumbCollisionBehavior",
		"thumbSize",
		"value"
	]);
	const slider = require_use_slider.useSlider(useSliderProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(slider.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_slider_context.SliderProvider, {
		value: slider,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
SliderRoot.displayName = "SliderRoot";
//#endregion
exports.SliderRoot = SliderRoot;
