"use client";
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_factory = require("../factory.cjs");
const require_use_date_input_context = require("./use-date-input-context.cjs");
const require_use_date_input_segment_group_props_context = require("./use-date-input-segment-group-props-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-segment-group.tsx
var splitSegmentGroupProps = require_create_split_props.createSplitProps();
var DateInputSegmentGroup = (0, react.forwardRef)((props, ref) => {
	const [segmentGroupProps, localProps] = splitSegmentGroupProps(props, ["index"]);
	const mergedProps = (0, _zag_js_react.mergeProps)(require_use_date_input_context.useDateInputContext().getSegmentGroupProps(segmentGroupProps), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_date_input_segment_group_props_context.DateInputSegmentGroupPropsProvider, {
		value: segmentGroupProps,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
			...mergedProps,
			ref
		})
	});
});
DateInputSegmentGroup.displayName = "DateInputSegmentGroup";
//#endregion
exports.DateInputSegmentGroup = DateInputSegmentGroup;
