"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_progress_context = require("./use-progress-context.cjs");
const require_use_progress = require("./use-progress.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/progress/progress-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var ProgressRoot = (0, react.forwardRef)((props, ref) => {
	const [progressProps, localProps] = splitRootProps(props, [
		"defaultValue",
		"formatOptions",
		"id",
		"ids",
		"locale",
		"max",
		"min",
		"onValueChange",
		"orientation",
		"translations",
		"value"
	]);
	const progress = require_use_progress.useProgress(progressProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(progress.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_progress_context.ProgressProvider, {
		value: progress,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
ProgressRoot.displayName = "ProgressRoot";
//#endregion
exports.ProgressRoot = ProgressRoot;
