"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_date_input = require("./use-date-input.cjs");
const require_use_date_input_context = require("./use-date-input-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/date-input/date-input-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var DateInputRoot = (0, react.forwardRef)((props, ref) => {
	const [useDateInputProps, localProps] = splitRootProps(props, [
		"dir",
		"disabled",
		"getRootNode",
		"id",
		"ids",
		"invalid",
		"locale",
		"max",
		"min",
		"name",
		"form",
		"onFocusChange",
		"onPlaceholderChange",
		"onValueChange",
		"readOnly",
		"required",
		"selectionMode",
		"timeZone",
		"hideTimeZone",
		"translations",
		"value",
		"defaultValue",
		"hourCycle",
		"granularity",
		"shouldForceLeadingZeros",
		"allSegments",
		"formatter",
		"placeholderValue",
		"defaultPlaceholderValue",
		"format",
		"createCalendar",
		"isDateUnavailable"
	]);
	const dateInput = require_use_date_input.useDateInput(useDateInputProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(dateInput.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_date_input_context.DateInputProvider, {
		value: dateInput,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
DateInputRoot.displayName = "DateInputRoot";
//#endregion
exports.DateInputRoot = DateInputRoot;
