{"version":3,"sources":["node_modules\\react-dom\\lib\\ReactDOMNullInputValuePropHook.js"],"names":["ReactComponentTreeHook","require","warning","didWarnValueNull","handleElement","debugID","element","type","props","value","process","env","NODE_ENV","getStackAddendumByID","ReactDOMNullInputValuePropHook","onBeforeMountComponent","onBeforeUpdateComponent","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,wBAAyBC,QAAQ,kCAAR,CAA7B;;AAEA,GAAIC,SAAUD,QAAQ,kBAAR,CAAd;;AAEA,GAAIE,kBAAmB,KAAvB;;AAEA,QAASC,cAAT,CAAuBC,OAAvB,CAAgCC,OAAhC,CAAyC;AACvC,GAAIA,SAAW,IAAf,CAAqB;AACnB;AACD;AACD,GAAIA,QAAQC,IAAR,GAAiB,OAAjB,EAA4BD,QAAQC,IAAR,GAAiB,UAA7C,EAA2DD,QAAQC,IAAR,GAAiB,QAAhF,CAA0F;AACxF;AACD;AACD,GAAID,QAAQE,KAAR,EAAiB,IAAjB,EAAyBF,QAAQE,KAAR,CAAcC,KAAd,GAAwB,IAAjD,EAAyD,CAACN,gBAA9D,CAAgF;AAC9EO,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAAzB,CAAwCV,QAAQ,KAAR,CAAe,4CAA8C,wEAA9C,CAAyH,gCAAxI,CAA0KI,QAAQC,IAAlL,CAAwLP,uBAAuBa,oBAAvB,CAA4CR,OAA5C,CAAxL,CAAxC,CAAwR,IAAK,EAA7R;;AAEAF,iBAAmB,IAAnB;AACD;AACF;;AAED,GAAIW,gCAAiC;AACnCC,uBAAwB,gCAAUV,OAAV,CAAmBC,OAAnB,CAA4B;AAClDF,cAAcC,OAAd,CAAuBC,OAAvB;AACD,CAHkC;AAInCU,wBAAyB,iCAAUX,OAAV,CAAmBC,OAAnB,CAA4B;AACnDF,cAAcC,OAAd,CAAuBC,OAAvB;AACD,CANkC,CAArC;;;AASAW,OAAOC,OAAP,CAAiBJ,8BAAjB","file":"ReactDOMNullInputValuePropHook.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 ReactComponentTreeHook = require('react/lib/ReactComponentTreeHook');\n\nvar warning = require('fbjs/lib/warning');\n\nvar didWarnValueNull = false;\n\nfunction handleElement(debugID, element) {\n  if (element == null) {\n    return;\n  }\n  if (element.type !== 'input' && element.type !== 'textarea' && element.type !== 'select') {\n    return;\n  }\n  if (element.props != null && element.props.value === null && !didWarnValueNull) {\n    process.env.NODE_ENV !== 'production' ? warning(false, '`value` prop on `%s` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.%s', element.type, ReactComponentTreeHook.getStackAddendumByID(debugID)) : void 0;\n\n    didWarnValueNull = true;\n  }\n}\n\nvar ReactDOMNullInputValuePropHook = {\n  onBeforeMountComponent: function (debugID, element) {\n    handleElement(debugID, element);\n  },\n  onBeforeUpdateComponent: function (debugID, element) {\n    handleElement(debugID, element);\n  }\n};\n\nmodule.exports = ReactDOMNullInputValuePropHook;"]}