"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const accessibleNameAndDescription = require("./accessible-name-and-description.cjs");
const util = require("./util.cjs");
function prohibitsNaming(node) {
  return util.hasAnyConcreteRoles(node, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
}
function computeAccessibleName(root) {
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  if (prohibitsNaming(root)) {
    return "";
  }
  return accessibleNameAndDescription.computeTextAlternative(root, options);
}
exports.computeAccessibleName = computeAccessibleName;
//# sourceMappingURL=accessible-name.cjs.map
