{"version":3,"sources":["node_modules\\react-dom\\lib\\ReactHostComponent.js"],"names":["_prodInvariant","require","invariant","genericComponentClass","textComponentClass","ReactHostComponentInjection","injectGenericComponentClass","componentClass","injectTextComponentClass","createInternalComponent","element","process","env","NODE_ENV","type","createInstanceForText","text","isTextComponent","component","ReactHostComponent","injection","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,gBAAiBC,QAAQ,sBAAR,CAArB;;AAEA,GAAIC,WAAYD,QAAQ,oBAAR,CAAhB;;AAEA,GAAIE,uBAAwB,IAA5B;AACA,GAAIC,oBAAqB,IAAzB;;AAEA,GAAIC,6BAA8B;;;AAGhCC,4BAA6B,qCAAUC,cAAV,CAA0B;AACrDJ,sBAAwBI,cAAxB;AACD,CAL+B;;;AAQhCC,yBAA0B,kCAAUD,cAAV,CAA0B;AAClDH,mBAAqBG,cAArB;AACD,CAV+B,CAAlC;;;;;;;;;AAmBA,QAASE,wBAAT,CAAiCC,OAAjC,CAA0C;AACxC,CAACP,qBAAD,CAAyBQ,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAAzB,CAAwCX,UAAU,KAAV,CAAiB,iDAAjB,CAAoEQ,QAAQI,IAA5E,CAAxC,CAA4Hd,eAAe,KAAf,CAAsBU,QAAQI,IAA9B,CAArJ,CAA2L,IAAK,EAAhM;AACA,MAAO,IAAIX,sBAAJ,CAA0BO,OAA1B,CAAP;AACD;;;;;;AAMD,QAASK,sBAAT,CAA+BC,IAA/B,CAAqC;AACnC,MAAO,IAAIZ,mBAAJ,CAAuBY,IAAvB,CAAP;AACD;;;;;;AAMD,QAASC,gBAAT,CAAyBC,SAAzB,CAAoC;AAClC,MAAOA,qBAAqBd,mBAA5B;AACD;;AAED,GAAIe,oBAAqB;AACvBV,wBAAyBA,uBADF;AAEvBM,sBAAuBA,qBAFA;AAGvBE,gBAAiBA,eAHM;AAIvBG,UAAWf,2BAJY,CAAzB;;;AAOAgB,OAAOC,OAAP,CAAiBH,kBAAjB","file":"ReactHostComponent.js","sourceRoot":"d:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2014-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 _prodInvariant = require('./reactProdInvariant');\n\nvar invariant = require('fbjs/lib/invariant');\n\nvar genericComponentClass = null;\nvar textComponentClass = null;\n\nvar ReactHostComponentInjection = {\n  // This accepts a class that receives the tag string. This is a catch all\n  // that can render any kind of tag.\n  injectGenericComponentClass: function (componentClass) {\n    genericComponentClass = componentClass;\n  },\n  // This accepts a text component class that takes the text string to be\n  // rendered as props.\n  injectTextComponentClass: function (componentClass) {\n    textComponentClass = componentClass;\n  }\n};\n\n/**\n * Get a host internal component class for a specific tag.\n *\n * @param {ReactElement} element The element to create.\n * @return {function} The internal class constructor function.\n */\nfunction createInternalComponent(element) {\n  !genericComponentClass ? process.env.NODE_ENV !== 'production' ? invariant(false, 'There is no registered component for the tag %s', element.type) : _prodInvariant('111', element.type) : void 0;\n  return new genericComponentClass(element);\n}\n\n/**\n * @param {ReactText} text\n * @return {ReactComponent}\n */\nfunction createInstanceForText(text) {\n  return new textComponentClass(text);\n}\n\n/**\n * @param {ReactComponent} component\n * @return {boolean}\n */\nfunction isTextComponent(component) {\n  return component instanceof textComponentClass;\n}\n\nvar ReactHostComponent = {\n  createInternalComponent: createInternalComponent,\n  createInstanceForText: createInstanceForText,\n  isTextComponent: isTextComponent,\n  injection: ReactHostComponentInjection\n};\n\nmodule.exports = ReactHostComponent;"]}