"use client";
const require_use_accordion_context = require("./use-accordion-context.cjs");
const require_create_split_props = require("../../utils/create-split-props.cjs");
const require_render_strategy = require("../../utils/render-strategy.cjs");
const require_factory = require("../factory.cjs");
const require_use_accordion = require("./use-accordion.cjs");
let react = require("react");
let _zag_js_react = require("@zag-js/react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/accordion/accordion-root.tsx
var splitRootProps = require_create_split_props.createSplitProps();
var AccordionRoot = (0, react.forwardRef)((props, ref) => {
	const [renderStrategyProps, accordionProps] = require_render_strategy.splitRenderStrategyProps(props);
	const [useAccordionProps, localProps] = splitRootProps(accordionProps, [
		"collapsible",
		"defaultValue",
		"disabled",
		"id",
		"ids",
		"multiple",
		"onFocusChange",
		"onValueChange",
		"orientation",
		"value"
	]);
	const accordion = require_use_accordion.useAccordion(useAccordionProps);
	const mergedProps = (0, _zag_js_react.mergeProps)(accordion.getRootProps(), localProps);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_use_accordion_context.AccordionProvider, {
		value: accordion,
		children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_render_strategy.RenderStrategyPropsProvider, {
			value: renderStrategyProps,
			children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
				...mergedProps,
				ref
			})
		})
	});
});
AccordionRoot.displayName = "AccordionRoot";
//#endregion
exports.AccordionRoot = AccordionRoot;
