{"version":3,"sources":["node_modules\\react-dom\\lib\\getVendorPrefixedEventName.js"],"names":["ExecutionEnvironment","require","makePrefixMap","styleProp","eventName","prefixes","toLowerCase","vendorPrefixes","animationend","animationiteration","animationstart","transitionend","prefixedEventNames","style","canUseDOM","document","createElement","window","animation","transition","getVendorPrefixedEventName","prefixMap","hasOwnProperty","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,sBAAuBC,QAAQ,+BAAR,CAA3B;;;;;;;;;AASA,QAASC,cAAT,CAAuBC,SAAvB,CAAkCC,SAAlC,CAA6C;AAC3C,GAAIC,UAAW,EAAf;;AAEAA,SAASF,UAAUG,WAAV,EAAT,EAAoCF,UAAUE,WAAV,EAApC;AACAD,SAAS,SAAWF,SAApB,EAAiC,SAAWC,SAA5C;AACAC,SAAS,MAAQF,SAAjB,EAA8B,MAAQC,SAAtC;AACAC,SAAS,KAAOF,SAAhB,EAA6B,KAAOC,SAApC;AACAC,SAAS,IAAMF,SAAf,EAA4B,IAAMC,UAAUE,WAAV,EAAlC;;AAEA,MAAOD,SAAP;AACD;;;;;AAKD,GAAIE,gBAAiB;AACnBC,aAAcN,cAAc,WAAd,CAA2B,cAA3B,CADK;AAEnBO,mBAAoBP,cAAc,WAAd,CAA2B,oBAA3B,CAFD;AAGnBQ,eAAgBR,cAAc,WAAd,CAA2B,gBAA3B,CAHG;AAInBS,cAAeT,cAAc,YAAd,CAA4B,eAA5B,CAJI,CAArB;;;;;;AAUA,GAAIU,oBAAqB,EAAzB;;;;;AAKA,GAAIC,OAAQ,EAAZ;;;;;AAKA,GAAIb,qBAAqBc,SAAzB,CAAoC;AAClCD,MAAQE,SAASC,aAAT,CAAuB,KAAvB,EAA8BH,KAAtC;;;;;;AAMA,GAAI,EAAE,kBAAoBI,OAAtB,CAAJ,CAAmC;AACjC,MAAOV,gBAAeC,YAAf,CAA4BU,SAAnC;AACA,MAAOX,gBAAeE,kBAAf,CAAkCS,SAAzC;AACA,MAAOX,gBAAeG,cAAf,CAA8BQ,SAArC;AACD;;;AAGD,GAAI,EAAE,mBAAqBD,OAAvB,CAAJ,CAAoC;AAClC,MAAOV,gBAAeI,aAAf,CAA6BQ,UAApC;AACD;AACF;;;;;;;;AAQD,QAASC,2BAAT,CAAoChB,SAApC,CAA+C;AAC7C,GAAIQ,mBAAmBR,SAAnB,CAAJ,CAAmC;AACjC,MAAOQ,oBAAmBR,SAAnB,CAAP;AACD,CAFD,IAEO,IAAI,CAACG,eAAeH,SAAf,CAAL,CAAgC;AACrC,MAAOA,UAAP;AACD;;AAED,GAAIiB,WAAYd,eAAeH,SAAf,CAAhB;;AAEA,IAAK,GAAID,UAAT,GAAsBkB,UAAtB,CAAiC;AAC/B,GAAIA,UAAUC,cAAV,CAAyBnB,SAAzB,GAAuCA,YAAaU,MAAxD,CAA+D;AAC7D,MAAOD,oBAAmBR,SAAnB,EAAgCiB,UAAUlB,SAAV,CAAvC;AACD;AACF;;AAED,MAAO,EAAP;AACD;;AAEDoB,OAAOC,OAAP,CAAiBJ,0BAAjB","file":"getVendorPrefixedEventName.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\n/**\n * Generate a mapping of standard vendor prefixes using the defined style property and event name.\n *\n * @param {string} styleProp\n * @param {string} eventName\n * @returns {object}\n */\nfunction makePrefixMap(styleProp, eventName) {\n  var prefixes = {};\n\n  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n  prefixes['Webkit' + styleProp] = 'webkit' + eventName;\n  prefixes['Moz' + styleProp] = 'moz' + eventName;\n  prefixes['ms' + styleProp] = 'MS' + eventName;\n  prefixes['O' + styleProp] = 'o' + eventName.toLowerCase();\n\n  return prefixes;\n}\n\n/**\n * A list of event names to a configurable list of vendor prefixes.\n */\nvar vendorPrefixes = {\n  animationend: makePrefixMap('Animation', 'AnimationEnd'),\n  animationiteration: makePrefixMap('Animation', 'AnimationIteration'),\n  animationstart: makePrefixMap('Animation', 'AnimationStart'),\n  transitionend: makePrefixMap('Transition', 'TransitionEnd')\n};\n\n/**\n * Event names that have already been detected and prefixed (if applicable).\n */\nvar prefixedEventNames = {};\n\n/**\n * Element to check for prefixes on.\n */\nvar style = {};\n\n/**\n * Bootstrap if a DOM exists.\n */\nif (ExecutionEnvironment.canUseDOM) {\n  style = document.createElement('div').style;\n\n  // On some platforms, in particular some releases of Android 4.x,\n  // the un-prefixed \"animation\" and \"transition\" properties are defined on the\n  // style object but the events that fire will still be prefixed, so we need\n  // to check if the un-prefixed events are usable, and if not remove them from the map.\n  if (!('AnimationEvent' in window)) {\n    delete vendorPrefixes.animationend.animation;\n    delete vendorPrefixes.animationiteration.animation;\n    delete vendorPrefixes.animationstart.animation;\n  }\n\n  // Same as above\n  if (!('TransitionEvent' in window)) {\n    delete vendorPrefixes.transitionend.transition;\n  }\n}\n\n/**\n * Attempts to determine the correct vendor prefixed event name.\n *\n * @param {string} eventName\n * @returns {string}\n */\nfunction getVendorPrefixedEventName(eventName) {\n  if (prefixedEventNames[eventName]) {\n    return prefixedEventNames[eventName];\n  } else if (!vendorPrefixes[eventName]) {\n    return eventName;\n  }\n\n  var prefixMap = vendorPrefixes[eventName];\n\n  for (var styleProp in prefixMap) {\n    if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {\n      return prefixedEventNames[eventName] = prefixMap[styleProp];\n    }\n  }\n\n  return '';\n}\n\nmodule.exports = getVendorPrefixedEventName;"]}