"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_timer_context = require("./use-timer-context.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/timer/timer-root-provider.tsx
var splitRootProviderProps = require_create_split_props.createSplitProps();
var TimerRootProvider = (0, react.forwardRef)((props, ref) => {
	const [{ value: timer }, localProps] = splitRootProviderProps(props, ["value"]);
	const mergedProps = (0, _zag_js_react.mergeProps)(timer.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_timer_context.TimerProvider, {
		value: timer,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
TimerRootProvider.displayName = "TimerRootProvider";
//#endregion
exports.TimerRootProvider = TimerRootProvider;
