"use client";
import { memoize } from "../../../core/utils/memoize/memoize.mjs";
import { getAllCheckedNodes } from "../get-all-checked-nodes/get-all-checked-nodes.mjs";
//#region packages/@mantine/core/src/components/Tree/is-node-checked/is-node-checked.ts
function isNodeChecked(value, data, checkedState) {
	if (checkedState.length === 0) return false;
	if (checkedState.includes(value)) return true;
	return getAllCheckedNodes(data, checkedState).result.some((node) => node.value === value && node.checked);
}
const memoizedIsNodeChecked = memoize(isNodeChecked);
//#endregion
export { isNodeChecked, memoizedIsNodeChecked };

//# sourceMappingURL=is-node-checked.mjs.map