"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_tags_input_context = require("./use-tags-input-context.cjs");
const require_use_tags_input = require("./use-tags-input.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/tags-input/tags-input-root.tsx
var splitTagsInputProps = require_create_split_props.createSplitProps();
var TagsInputRoot = (0, react.forwardRef)((props, ref) => {
	const [useTagsInputProps, localProps] = splitTagsInputProps(props, [
		"addOnPaste",
		"allowDuplicates",
		"allowOverflow",
		"autoFocus",
		"blurBehavior",
		"defaultInputValue",
		"defaultValue",
		"delimiter",
		"disabled",
		"editable",
		"form",
		"id",
		"ids",
		"inputValue",
		"invalid",
		"max",
		"maxLength",
		"name",
		"onFocusOutside",
		"onHighlightChange",
		"onInputValueChange",
		"onInteractOutside",
		"onPointerDownOutside",
		"onValueChange",
		"onValueInvalid",
		"placeholder",
		"readOnly",
		"required",
		"sanitizeValue",
		"translations",
		"validate",
		"value"
	]);
	const tagsInput = require_use_tags_input.useTagsInput(useTagsInputProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(tagsInput.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_tags_input_context.TagsInputProvider, {
		value: tagsInput,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
TagsInputRoot.displayName = "TagsInputRoot";
//#endregion
exports.TagsInputRoot = TagsInputRoot;
