"use strict";
const toHaveFocus$1 = require("../../../../_virtual/to-have-focus.cjs");
require("./utils.cjs");
const utils = require("../../../../_virtual/utils.cjs");
Object.defineProperty(toHaveFocus$1.__exports, "__esModule", {
  value: true
});
toHaveFocus$1.__exports.toHaveFocus = toHaveFocus;
var _utils = utils.__exports;
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");
    }
  };
}
module.exports = toHaveFocus$1.__exports;
//# sourceMappingURL=to-have-focus.cjs.map
