{"version":3,"sources":["node_modules\\react-dom\\lib\\ReactDOMEmptyComponent.js"],"names":["_assign","require","DOMLazyTree","ReactDOMComponentTree","ReactDOMEmptyComponent","instantiate","_currentElement","_hostNode","_hostParent","_hostContainerInfo","_domID","prototype","mountComponent","transaction","hostParent","hostContainerInfo","context","domID","_idCounter","nodeValue","useCreateElement","ownerDocument","_ownerDocument","node","createComment","precacheNode","renderToStaticMarkup","receiveComponent","getHostNode","getNodeFromInstance","unmountComponent","uncacheNode","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,SAAUC,QAAQ,eAAR,CAAd;;AAEA,GAAIC,aAAcD,QAAQ,eAAR,CAAlB;AACA,GAAIE,uBAAwBF,QAAQ,yBAAR,CAA5B;;AAEA,GAAIG,wBAAyB,QAAzBA,uBAAyB,CAAUC,WAAV,CAAuB;;AAElD,KAAKC,eAAL,CAAuB,IAAvB;;AAEA,KAAKC,SAAL,CAAiB,IAAjB;AACA,KAAKC,WAAL,CAAmB,IAAnB;AACA,KAAKC,kBAAL,CAA0B,IAA1B;AACA,KAAKC,MAAL,CAAc,CAAd;AACD,CARD;AASAV,QAAQI,uBAAuBO,SAA/B,CAA0C;AACxCC,eAAgB,wBAAUC,WAAV,CAAuBC,UAAvB,CAAmCC,iBAAnC,CAAsDC,OAAtD,CAA+D;AAC7E,GAAIC,OAAQF,kBAAkBG,UAAlB,EAAZ;AACA,KAAKR,MAAL,CAAcO,KAAd;AACA,KAAKT,WAAL,CAAmBM,UAAnB;AACA,KAAKL,kBAAL,CAA0BM,iBAA1B;;AAEA,GAAII,WAAY,iBAAmB,KAAKT,MAAxB,CAAiC,GAAjD;AACA,GAAIG,YAAYO,gBAAhB,CAAkC;AAChC,GAAIC,eAAgBN,kBAAkBO,cAAtC;AACA,GAAIC,MAAOF,cAAcG,aAAd,CAA4BL,SAA5B,CAAX;AACAhB,sBAAsBsB,YAAtB,CAAmC,IAAnC,CAAyCF,IAAzC;AACA,MAAOrB,aAAYqB,IAAZ,CAAP;AACD,CALD,IAKO;AACL,GAAIV,YAAYa,oBAAhB,CAAsC;;;;AAIpC,MAAO,EAAP;AACD;AACD,MAAO,OAASP,SAAT,CAAqB,KAA5B;AACD;AACF,CAtBuC;AAuBxCQ,iBAAkB,2BAAY,CAAE,CAvBQ;AAwBxCC,YAAa,sBAAY;AACvB,MAAOzB,uBAAsB0B,mBAAtB,CAA0C,IAA1C,CAAP;AACD,CA1BuC;AA2BxCC,iBAAkB,2BAAY;AAC5B3B,sBAAsB4B,WAAtB,CAAkC,IAAlC;AACD,CA7BuC,CAA1C;;;AAgCAC,OAAOC,OAAP,CAAiB7B,sBAAjB","file":"ReactDOMEmptyComponent.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 _assign = require('object-assign');\n\nvar DOMLazyTree = require('./DOMLazyTree');\nvar ReactDOMComponentTree = require('./ReactDOMComponentTree');\n\nvar ReactDOMEmptyComponent = function (instantiate) {\n  // ReactCompositeComponent uses this:\n  this._currentElement = null;\n  // ReactDOMComponentTree uses these:\n  this._hostNode = null;\n  this._hostParent = null;\n  this._hostContainerInfo = null;\n  this._domID = 0;\n};\n_assign(ReactDOMEmptyComponent.prototype, {\n  mountComponent: function (transaction, hostParent, hostContainerInfo, context) {\n    var domID = hostContainerInfo._idCounter++;\n    this._domID = domID;\n    this._hostParent = hostParent;\n    this._hostContainerInfo = hostContainerInfo;\n\n    var nodeValue = ' react-empty: ' + this._domID + ' ';\n    if (transaction.useCreateElement) {\n      var ownerDocument = hostContainerInfo._ownerDocument;\n      var node = ownerDocument.createComment(nodeValue);\n      ReactDOMComponentTree.precacheNode(this, node);\n      return DOMLazyTree(node);\n    } else {\n      if (transaction.renderToStaticMarkup) {\n        // Normally we'd insert a comment node, but since this is a situation\n        // where React won't take over (static pages), we can simply return\n        // nothing.\n        return '';\n      }\n      return '<!--' + nodeValue + '-->';\n    }\n  },\n  receiveComponent: function () {},\n  getHostNode: function () {\n    return ReactDOMComponentTree.getNodeFromInstance(this);\n  },\n  unmountComponent: function () {\n    ReactDOMComponentTree.uncacheNode(this);\n  }\n});\n\nmodule.exports = ReactDOMEmptyComponent;"]}