{"version":3,"sources":["node_modules\\fbjs\\lib\\getActiveElement.js"],"names":["getActiveElement","doc","document","undefined","activeElement","body","e","module","exports"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,QAASA,iBAAT,CAA0BC,GAA1B,CAA8C;AAC5CA,IAAMA,MAAQ,MAAOC,SAAP,GAAoB,WAApB,CAAkCA,QAAlC,CAA6CC,SAArD,CAAN;AACA,GAAI,MAAOF,IAAP,GAAe,WAAnB,CAAgC;AAC9B,MAAO,KAAP;AACD;AACD,GAAI;AACF,MAAOA,KAAIG,aAAJ,EAAqBH,IAAII,IAAhC;AACD,CAAC,MAAOC,CAAP,CAAU;AACV,MAAOL,KAAII,IAAX;AACD;AACF;;AAEDE,OAAOC,OAAP,CAAiBR,gBAAjB","file":"getActiveElement.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["'use strict';\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @typechecks\n */\n\n/* eslint-disable fb-www/typeof-undefined */\n\n/**\n * Same as document.activeElement but wraps in a try-catch block. In IE it is\n * not safe to call document.activeElement if there is nothing focused.\n *\n * The activeElement will be null only if the document or document body is not\n * yet defined.\n *\n * @param {?DOMDocument} doc Defaults to current document.\n * @return {?DOMElement}\n */\nfunction getActiveElement(doc) /*?DOMElement*/{\n  doc = doc || (typeof document !== 'undefined' ? document : undefined);\n  if (typeof doc === 'undefined') {\n    return null;\n  }\n  try {\n    return doc.activeElement || doc.body;\n  } catch (e) {\n    return doc.body;\n  }\n}\n\nmodule.exports = getActiveElement;"]}