/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../../_virtual/_rolldown/runtime.cjs");
const require_components_Divider_DividerLabel = require("./DividerLabel.cjs");
const require_components_Divider_DividerLine = require("./DividerLine.cjs");
let react = require("react");
//#region src/components/Divider/utils.ts
function isDividerLineElement(child) {
	return (0, react.isValidElement)(child) && child.type === require_components_Divider_DividerLine.DividerLine;
}
function isDividerLabelElement(child) {
	return (0, react.isValidElement)(child) && child.type === require_components_Divider_DividerLabel.DividerLabel;
}
function hasManualLine(children) {
	return react.Children.toArray(children).some((child) => isDividerLineElement(child));
}
function shouldWrapInLabel(children) {
	return react.Children.toArray(children).every((child) => typeof child === "string" || typeof child === "number");
}
function renderManualChildren(children, variant, vertical) {
	return react.Children.map(children, (child) => {
		if (isDividerLineElement(child)) return (0, react.cloneElement)(child, {
			variant: child.props.variant ?? variant,
			vertical: child.props.vertical ?? vertical
		});
		if (isDividerLabelElement(child)) return (0, react.cloneElement)(child, { variant: child.props.variant ?? variant });
		return child;
	});
}
//#endregion
exports.hasManualLine = hasManualLine;
exports.renderManualChildren = renderManualChildren;
exports.shouldWrapInLabel = shouldWrapInLabel;
