{"version":3,"sources":["node_modules\\react\\lib\\onlyChild.js"],"names":["_prodInvariant","require","ReactElement","invariant","onlyChild","children","isValidElement","process","env","NODE_ENV","module","exports"],"mappings":";;;;;;;;;AASA;;AAEA,GAAIA,gBAAiBC,QAAQ,sBAAR,CAArB;;AAEA,GAAIC,cAAeD,QAAQ,gBAAR,CAAnB;;AAEA,GAAIE,WAAYF,QAAQ,oBAAR,CAAhB;;;;;;;;;;;;;;;;AAgBA,QAASG,UAAT,CAAmBC,QAAnB,CAA6B;AAC3B,CAACH,aAAaI,cAAb,CAA4BD,QAA5B,CAAD,CAAyCE,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAAzB,CAAwCN,UAAU,KAAV,CAAiB,uEAAjB,CAAxC,CAAoIH,eAAe,KAAf,CAA7K,CAAqM,IAAK,EAA1M;AACA,MAAOK,SAAP;AACD;;AAEDK,OAAOC,OAAP,CAAiBP,SAAjB","file":"onlyChild.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'use strict';\n\nvar _prodInvariant = require('./reactProdInvariant');\n\nvar ReactElement = require('./ReactElement');\n\nvar invariant = require('fbjs/lib/invariant');\n\n/**\n * Returns the first child in a collection of children and verifies that there\n * is only one child in the collection.\n *\n * See https://facebook.github.io/react/docs/top-level-api.html#react.children.only\n *\n * The current implementation of this function assumes that a single child gets\n * passed without a wrapper, but the purpose of this helper function is to\n * abstract away the particular structure of children.\n *\n * @param {?object} children Child collection structure.\n * @return {ReactElement} The first and only `ReactElement` contained in the\n * structure.\n */\nfunction onlyChild(children) {\n  !ReactElement.isValidElement(children) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'React.Children.only expected to receive a single React element child.') : _prodInvariant('143') : void 0;\n  return children;\n}\n\nmodule.exports = onlyChild;"]}