"use client";
const require_memoize = require("../../../core/utils/memoize/memoize.cjs");
const require_get_all_checked_nodes = require("../get-all-checked-nodes/get-all-checked-nodes.cjs");
//#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 require_get_all_checked_nodes.getAllCheckedNodes(data, checkedState).result.some((node) => node.value === value && node.checked);
}
const memoizedIsNodeChecked = require_memoize.memoize(isNodeChecked);
//#endregion
exports.isNodeChecked = isNodeChecked;
exports.memoizedIsNodeChecked = memoizedIsNodeChecked;

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