"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_clipboard_context = require("./use-clipboard-context.cjs");
const require_use_clipboard = require("./use-clipboard.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/clipboard/clipboard-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var ClipboardRoot = (0, react.forwardRef)((props, ref) => {
	const [useClipboardProps, localProps] = splitRootProps(props, [
		"defaultValue",
		"id",
		"ids",
		"onStatusChange",
		"onValueChange",
		"timeout",
		"translations",
		"value"
	]);
	const clipboard = require_use_clipboard.useClipboard(useClipboardProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(clipboard.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_clipboard_context.ClipboardProvider, {
		value: clipboard,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			ref,
			...mergedProps
		})
	});
});
ClipboardRoot.displayName = "ClipboardRoot";
//#endregion
exports.ClipboardRoot = ClipboardRoot;
