import { FOCUS_ALLOW } from "./constants.js";
import { contains } from "./utils/DOMutils.js";
import { toArray } from "./utils/array.js";
import { getActiveElement } from "./utils/getActiveElement.js";
var focusIsHidden = function() {
  var activeElement = document && getActiveElement();
  if (!activeElement) {
    return false;
  }
  return toArray(document.querySelectorAll("[".concat(FOCUS_ALLOW, "]"))).some(function(node) {
    return contains(node, activeElement);
  });
};
export {
  focusIsHidden
};
//# sourceMappingURL=focusIsHidden.js.map
