"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_pagination_context = require("./use-pagination-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/pagination/pagination-root-provider.tsx
var splitRootProviderProps = require_create_split_props.createSplitProps();
var PaginationRootProvider = (0, react.forwardRef)((props, ref) => {
	const [{ value: pagination }, localProps] = splitRootProviderProps(props, ["value"]);
	const mergedProps = (0, _zag_js_react.mergeProps)(pagination.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_pagination_context.PaginationProvider, {
		value: pagination,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.nav, {
			...mergedProps,
			ref
		})
	});
});
PaginationRootProvider.displayName = "PaginationRootProvider";
//#endregion
exports.PaginationRootProvider = PaginationRootProvider;
