import { Children as e, isValidElement as t } from "react";
//#region lib/ui/hooks/useSlots.ts
function n(n, r = []) {
	let i = { children: [] };
	return e.map(n, (e) => {
		if (t(e)) {
			let t = e.props;
			if (t["data-slot"]) {
				let n = t["data-slot"];
				if (!r.length || r.length && r.includes(n)) {
					i[n] || (i[n] = []), i[n].push(e);
					return;
				}
			}
		}
		i.children.push(e);
	}), i;
}
//#endregion
export { n as useSlots };

//# sourceMappingURL=useSlots.js.map