import { __exports as toHaveFocus$1 } from "../../../../_virtual/to-have-focus.js";
import "./utils.js";
import { __exports as utils } from "../../../../_virtual/utils.js";
Object.defineProperty(toHaveFocus$1, "__esModule", {
  value: true
});
toHaveFocus$1.toHaveFocus = toHaveFocus;
var _utils = utils;
function toHaveFocus(element) {
  (0, _utils.checkHtmlElement)(element, toHaveFocus, this);
  return {
    pass: element.ownerDocument.activeElement === element,
    message: () => {
      return [this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveFocus`, "element", ""), "", ...this.isNot ? ["Received element is focused:", `  ${this.utils.printReceived(element)}`] : ["Expected element with focus:", `  ${this.utils.printExpected(element)}`, "Received element with focus:", `  ${this.utils.printReceived(element.ownerDocument.activeElement)}`]].join("\n");
    }
  };
}
export {
  toHaveFocus$1 as default
};
//# sourceMappingURL=to-have-focus.js.map
