/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../../_virtual/_rolldown/runtime.cjs");
const require_utils_hasDisplayName = require("../../utils/hasDisplayName.cjs");
let react = require("react");
//#region src/components/Banner/utils.ts
/**
* Maps banner variants to button variants following the Figma spec.
* Secondary banner variants map to secondary button variants.
*/
const BANNER_TO_BUTTON_VARIANT = {
	primary: "brand",
	secondary: "brand",
	brand: "brand",
	"brand-secondary": "brand-secondary",
	alert: "alert",
	"alert-secondary": "alert-secondary",
	warning: "warning",
	"warning-secondary": "warning-secondary",
	success: "positive",
	"success-secondary": "positive-secondary",
	info: "info",
	"info-secondary": "info-secondary"
};
/**
* Separates Banner children into content (BannerContent) and action elements.
* Skips falsy children so conditional patterns like {show && <Button />} work.
*/
function separateChildren(children) {
	let content = null;
	const actions = [];
	react.Children.forEach(children, (child) => {
		if (child == null || child === false || child === true || child === "") return;
		if (require_utils_hasDisplayName.hasDisplayName(child, "BannerContent")) content = child;
		else actions.push(child);
	});
	return {
		content,
		actions
	};
}
//#endregion
exports.BANNER_TO_BUTTON_VARIANT = BANNER_TO_BUTTON_VARIANT;
exports.hasDisplayName = require_utils_hasDisplayName.hasDisplayName;
exports.separateChildren = separateChildren;
