{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.getActiveElement = getActiveElement;\nvar _isDisabled = require(\"../misc/isDisabled\");\nfunction getActiveElement(document) {\n  const activeElement = document.activeElement;\n  if (activeElement != null && activeElement.shadowRoot) {\n    return getActiveElement(activeElement.shadowRoot);\n  } else {\n    // Browser does not yield disabled elements as document.activeElement - jsdom does\n    if ((0, _isDisabled.isDisabled)(activeElement)) {\n      return document.ownerDocument ?\n      // TODO: verify behavior in ShadowRoot\n\n      /* istanbul ignore next */\n      document.ownerDocument.body : document.body;\n    }\n    return activeElement;\n  }\n}","map":{"version":3,"names":["Object","defineProperty","exports","value","getActiveElement","_isDisabled","require","document","activeElement","shadowRoot","isDisabled","ownerDocument","body"],"sources":["C:/Users/user/Desktop/000newport/node_modules/@testing-library/user-event/dist/utils/focus/getActiveElement.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.getActiveElement = getActiveElement;\n\nvar _isDisabled = require(\"../misc/isDisabled\");\n\nfunction getActiveElement(document) {\n  const activeElement = document.activeElement;\n\n  if (activeElement != null && activeElement.shadowRoot) {\n    return getActiveElement(activeElement.shadowRoot);\n  } else {\n    // Browser does not yield disabled elements as document.activeElement - jsdom does\n    if ((0, _isDisabled.isDisabled)(activeElement)) {\n      return document.ownerDocument ? // TODO: verify behavior in ShadowRoot\n\n      /* istanbul ignore next */\n      document.ownerDocument.body : document.body;\n    }\n\n    return activeElement;\n  }\n}"],"mappings":"AAAA,YAAY;;AAEZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAC3CC,KAAK,EAAE;AACT,CAAC,CAAC;AACFD,OAAO,CAACE,gBAAgB,GAAGA,gBAAgB;AAE3C,IAAIC,WAAW,GAAGC,OAAO,CAAC,oBAAoB,CAAC;AAE/C,SAASF,gBAAgBA,CAACG,QAAQ,EAAE;EAClC,MAAMC,aAAa,GAAGD,QAAQ,CAACC,aAAa;EAE5C,IAAIA,aAAa,IAAI,IAAI,IAAIA,aAAa,CAACC,UAAU,EAAE;IACrD,OAAOL,gBAAgB,CAACI,aAAa,CAACC,UAAU,CAAC;EACnD,CAAC,MAAM;IACL;IACA,IAAI,CAAC,CAAC,EAAEJ,WAAW,CAACK,UAAU,EAAEF,aAAa,CAAC,EAAE;MAC9C,OAAOD,QAAQ,CAACI,aAAa;MAAG;;MAEhC;MACAJ,QAAQ,CAACI,aAAa,CAACC,IAAI,GAAGL,QAAQ,CAACK,IAAI;IAC7C;IAEA,OAAOJ,aAAa;EACtB;AACF"},"metadata":{},"sourceType":"script","externalDependencies":[]}