{"version":3,"sources":["node_modules\\react-dom\\lib\\getHostComponentFromComposite.js"],"names":["ReactNodeTypes","require","getHostComponentFromComposite","inst","type","_renderedNodeType","COMPOSITE","_renderedComponent","HOST","EMPTY","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,gBAAiBC,QAAQ,kBAAR,CAArB;;AAEA,QAASC,8BAAT,CAAuCC,IAAvC,CAA6C;AAC3C,GAAIC,KAAJ;;AAEA,MAAO,CAACA,KAAOD,KAAKE,iBAAb,IAAoCL,eAAeM,SAA1D,CAAqE;AACnEH,KAAOA,KAAKI,kBAAZ;AACD;;AAED,GAAIH,OAASJ,eAAeQ,IAA5B,CAAkC;AAChC,MAAOL,MAAKI,kBAAZ;AACD,CAFD,IAEO,IAAIH,OAASJ,eAAeS,KAA5B,CAAmC;AACxC,MAAO,KAAP;AACD;AACF;;AAEDC,OAAOC,OAAP,CAAiBT,6BAAjB","file":"getHostComponentFromComposite.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 ReactNodeTypes = require('./ReactNodeTypes');\n\nfunction getHostComponentFromComposite(inst) {\n  var type;\n\n  while ((type = inst._renderedNodeType) === ReactNodeTypes.COMPOSITE) {\n    inst = inst._renderedComponent;\n  }\n\n  if (type === ReactNodeTypes.HOST) {\n    return inst._renderedComponent;\n  } else if (type === ReactNodeTypes.EMPTY) {\n    return null;\n  }\n}\n\nmodule.exports = getHostComponentFromComposite;"]}