{"version":3,"sources":["node_modules\\react-dom\\lib\\isEventSupported.js"],"names":["ExecutionEnvironment","require","useHasFeature","canUseDOM","document","implementation","hasFeature","isEventSupported","eventNameSuffix","capture","eventName","isSupported","element","createElement","setAttribute","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,sBAAuBC,QAAQ,+BAAR,CAA3B;;AAEA,GAAIC,cAAJ;AACA,GAAIF,qBAAqBG,SAAzB,CAAoC;AAClCD,cAAgBE,SAASC,cAAT,EAA2BD,SAASC,cAAT,CAAwBC,UAAnD;;;AAGhBF,SAASC,cAAT,CAAwBC,UAAxB,CAAmC,EAAnC,CAAuC,EAAvC,IAA+C,IAH/C;AAID;;AAED;;;;;;;;;;;;;;AAcA,QAASC,iBAAT,CAA0BC,eAA1B,CAA2CC,OAA3C,CAAoD;AAClD,GAAI,CAACT,qBAAqBG,SAAtB,EAAmCM,SAAW,EAAE,oBAAsBL,SAAxB,CAAlD,CAAqF;AACnF,MAAO,MAAP;AACD;;AAED,GAAIM,WAAY,KAAOF,eAAvB;AACA,GAAIG,aAAcD,YAAaN,SAA/B;;AAEA,GAAI,CAACO,WAAL,CAAkB;AAChB,GAAIC,SAAUR,SAASS,aAAT,CAAuB,KAAvB,CAAd;AACAD,QAAQE,YAAR,CAAqBJ,SAArB,CAAgC,SAAhC;AACAC,YAAc,MAAOC,SAAQF,SAAR,CAAP,GAA8B,UAA5C;AACD;;AAED,GAAI,CAACC,WAAD,EAAgBT,aAAhB,EAAiCM,kBAAoB,OAAzD,CAAkE;;AAEhEG,YAAcP,SAASC,cAAT,CAAwBC,UAAxB,CAAmC,cAAnC,CAAmD,KAAnD,CAAd;AACD;;AAED,MAAOK,YAAP;AACD;;AAEDI,OAAOC,OAAP,CAAiBT,gBAAjB","file":"isEventSupported.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 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 */\n\n'use strict';\n\nvar ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment');\n\nvar useHasFeature;\nif (ExecutionEnvironment.canUseDOM) {\n  useHasFeature = document.implementation && document.implementation.hasFeature &&\n  // always returns true in newer browsers as per the standard.\n  // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature\n  document.implementation.hasFeature('', '') !== true;\n}\n\n/**\n * Checks if an event is supported in the current execution environment.\n *\n * NOTE: This will not work correctly for non-generic events such as `change`,\n * `reset`, `load`, `error`, and `select`.\n *\n * Borrows from Modernizr.\n *\n * @param {string} eventNameSuffix Event name, e.g. \"click\".\n * @param {?boolean} capture Check if the capture phase is supported.\n * @return {boolean} True if the event is supported.\n * @internal\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nfunction isEventSupported(eventNameSuffix, capture) {\n  if (!ExecutionEnvironment.canUseDOM || capture && !('addEventListener' in document)) {\n    return false;\n  }\n\n  var eventName = 'on' + eventNameSuffix;\n  var isSupported = eventName in document;\n\n  if (!isSupported) {\n    var element = document.createElement('div');\n    element.setAttribute(eventName, 'return;');\n    isSupported = typeof element[eventName] === 'function';\n  }\n\n  if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {\n    // This is the only way to test support for the `wheel` event in IE9+.\n    isSupported = document.implementation.hasFeature('Events.wheel', '3.0');\n  }\n\n  return isSupported;\n}\n\nmodule.exports = isEventSupported;"]}