//#region src/tree/utils.ts
function e(t) {
	let n = t.nodes;
	n.length && (n.every((e) => e.selected) ? (t.selected = !0, t.indeterminate = !1) : n.some((e) => e.selected) ? t.indeterminate = !0 : n.every((e) => !e.selected) && (t.selected = !1, t.indeterminate = !1)), n.forEach((t) => e(t));
}
//#endregion
export { e as updateNodeSelection };

//# sourceMappingURL=utils.js.map