"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("react");
require("react/jsx-runtime");
const memoize = require("../../../core/utils/memoize/memoize.cjs");
require("clsx");
const getAllCheckedNodes = require("../get-all-checked-nodes/get-all-checked-nodes.cjs");
function isNodeChecked(value, data, checkedState) {
  if (checkedState.length === 0) {
    return false;
  }
  if (checkedState.includes(value)) {
    return true;
  }
  const checkedNodes = getAllCheckedNodes.getAllCheckedNodes(data, checkedState).result;
  return checkedNodes.some((node) => node.value === value && node.checked);
}
const memoizedIsNodeChecked = memoize.memoize(isNodeChecked);
exports.isNodeChecked = isNodeChecked;
exports.memoizedIsNodeChecked = memoizedIsNodeChecked;
