import { Comment, Fragment, isVNode } from "vue";
//#region components/_utils/vue.ts
function isEmptyNode(node) {
	if (node === null || node === void 0 || typeof node === "boolean") return true;
	if (Array.isArray(node)) return node.every(isEmptyNode);
	if (isVNode(node)) {
		if (node.type === Comment) return true;
		if (node.type === Fragment && Array.isArray(node.children)) return node.children.every((child) => isEmptyNode(child));
	}
	return false;
}
function hasRenderableNode(node) {
	return !isEmptyNode(node);
}
//#endregion
export { hasRenderableNode, isEmptyNode };
