{"version":3,"sources":["node_modules\\react-dom\\lib\\ReactDOMUnknownPropertyHook.js"],"names":["DOMProperty","require","EventPluginRegistry","ReactComponentTreeHook","warning","process","env","NODE_ENV","reactProps","children","dangerouslySetInnerHTML","key","ref","autoFocus","defaultValue","valueLink","defaultChecked","checkedLink","innerHTML","suppressContentEditableWarning","onFocusIn","onFocusOut","warnedProperties","validateProperty","tagName","name","debugID","properties","hasOwnProperty","isCustomAttribute","registrationNameModules","lowerCasedName","toLowerCase","standardName","getPossibleStandardName","registrationName","possibleRegistrationNames","getStackAddendumByID","warnUnknownProperties","element","unknownProps","props","isValid","type","push","unknownPropString","map","prop","join","length","handleElement","indexOf","is","ReactDOMUnknownPropertyHook","onBeforeMountComponent","onBeforeUpdateComponent","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,aAAcC,QAAQ,eAAR,CAAlB;AACA,GAAIC,qBAAsBD,QAAQ,uBAAR,CAA1B;AACA,GAAIE,wBAAyBF,QAAQ,kCAAR,CAA7B;;AAEA,GAAIG,SAAUH,QAAQ,kBAAR,CAAd;;AAEA,GAAII,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAA7B,CAA2C;AACzC,GAAIC,YAAa;AACfC,SAAU,IADK;AAEfC,wBAAyB,IAFV;AAGfC,IAAK,IAHU;AAIfC,IAAK,IAJU;;AAMfC,UAAW,IANI;AAOfC,aAAc,IAPC;AAQfC,UAAW,IARI;AASfC,eAAgB,IATD;AAUfC,YAAa,IAVE;AAWfC,UAAW,IAXI;AAYfC,+BAAgC,IAZjB;AAafC,UAAW,IAbI;AAcfC,WAAY,IAdG,CAAjB;;AAgBA,GAAIC,kBAAmB,EAAvB;;AAEA,GAAIC,kBAAmB,QAAnBA,iBAAmB,CAAUC,OAAV,CAAmBC,IAAnB,CAAyBC,OAAzB,CAAkC;AACvD,GAAI1B,YAAY2B,UAAZ,CAAuBC,cAAvB,CAAsCH,IAAtC,GAA+CzB,YAAY6B,iBAAZ,CAA8BJ,IA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AACvD;AACD;AACD,GAAIJ,QAAQI,IAAR,CAAaQ,OAAb,CAAqB,GAArB,GAA6B,CAA7B,EAAkCZ,QAAQE,KAAR,CAAcW,EAApD,CAAwD;AACtD;AACD;AACDd,sBAAsBZ,OAAtB,CAA+Ba,OAA/B;AACD;;AAED,GAAIc,6BAA8B;AAChCC,uBAAwB,gCAAU5B,OAAV,CAAmBa,OAAnB,CAA4B;AAClDW,cAAcxB,OAAd,CAAuBa,OAAvB;AACD,CAH+B;AAIhCgB,wBAAyB,iCAAU7B,OAAV,CAAmBa,OAAnB,CAA4B;AACnDW,cAAcxB,OAAd,CAAuBa,OAAvB;AACD,CAN+B,CAAlC;;;AASAiB,OAAOC,OAAP,CAAiBJ,2BAAjB","file":"ReactDOMUnknownPropertyHook.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 DOMProperty = require('./DOMProperty');\nvar EventPluginRegistry = require('./EventPluginRegistry');\nvar ReactComponentTreeHook = require('react/lib/ReactComponentTreeHook');\n\nvar warning = require('fbjs/lib/warning');\n\nif (process.env.NODE_ENV !== 'production') {\n  var reactProps = {\n    children: true,\n    dangerouslySetInnerHTML: true,\n    key: true,\n    ref: true,\n\n    autoFocus: true,\n    defaultValue: true,\n    valueLink: true,\n    defaultChecked: true,\n    checkedLink: true,\n    innerHTML: true,\n    suppressContentEditableWarning: true,\n    onFocusIn: true,\n    onFocusOut: true\n  };\n  var warnedProperties = {};\n\n  var validateProperty = function (tagName, name, debugID) {\n    if (DOMProperty.properties.hasOwnProperty(name) || DOMProperty.isCustomAttribute(name)) {\n      return true;\n    }\n    if (reactProps.hasOwnProperty(name) && reactProps[name] || warnedProperties.hasOwnProperty(name) && warnedProperties[name]) {\n      return true;\n    }\n    if (EventPluginRegistry.registrationNameModules.hasOwnProperty(name)) {\n      return true;\n    }\n    warnedProperties[name] = true;\n    var lowerCasedName = name.toLowerCase();\n\n    // data-* attributes should be lowercase; suggest the lowercase version\n    var standardName = DOMProperty.isCustomAttribute(lowerCasedName) ? lowerCasedName : DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName) ? DOMProperty.getPossibleStandardName[lowerCasedName] : null;\n\n    var registrationName = EventPluginRegistry.possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? EventPluginRegistry.possibleRegistrationNames[lowerCasedName] : null;\n\n    if (standardName != null) {\n      process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown DOM property %s. Did you mean %s?%s', name, standardName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n      return true;\n    } else if (registrationName != null) {\n      process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown event handler property %s. Did you mean `%s`?%s', name, registrationName, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n      return true;\n    } else {\n      // We were unable to guess which prop the user intended.\n      // It is likely that the user was just blindly spreading/forwarding props\n      // Components should be careful to only render valid props/attributes.\n      // Warning will be invoked in warnUnknownProperties to allow grouping.\n      return false;\n    }\n  };\n}\n\nvar warnUnknownProperties = function (debugID, element) {\n  var unknownProps = [];\n  for (var key in element.props) {\n    var isValid = validateProperty(element.type, key, debugID);\n    if (!isValid) {\n      unknownProps.push(key);\n    }\n  }\n\n  var unknownPropString = unknownProps.map(function (prop) {\n    return '`' + prop + '`';\n  }).join(', ');\n\n  if (unknownProps.length === 1) {\n    process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown prop %s on <%s> tag. Remove this prop from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n  } else if (unknownProps.length > 1) {\n    process.env.NODE_ENV !== 'production' ? warning(false, 'Unknown props %s on <%s> tag. Remove these props from the element. ' + 'For details, see https://fb.me/react-unknown-prop%s', unknownPropString, element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n  }\n};\n\nfunction handleElement(debugID, element) {\n  if (element == null || typeof element.type !== 'string') {\n    return;\n  }\n  if (element.type.indexOf('-') >= 0 || element.props.is) {\n    return;\n  }\n  warnUnknownProperties(debugID, element);\n}\n\nvar ReactDOMUnknownPropertyHook = {\n  onBeforeMountComponent: function (debugID, element) {\n    handleElement(debugID, element);\n  },\n  onBeforeUpdateComponent: function (debugID, element) {\n    handleElement(debugID, element);\n  }\n};\n\nmodule.exports = ReactDOMUnknownPropertyHook;"]}