{"version":3,"sources":["node_modules\\react-dom\\lib\\setTextContent.js"],"names":["ExecutionEnvironment","require","escapeTextContentForBrowser","setInnerHTML","setTextContent","node","text","firstChild","lastChild","nodeType","nodeValue","textContent","canUseDOM","document","documentElement","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,sBAAuBC,QAAQ,+BAAR,CAA3B;AACA,GAAIC,6BAA8BD,QAAQ,+BAAR,CAAlC;AACA,GAAIE,cAAeF,QAAQ,gBAAR,CAAnB;;;;;;;;;;;;AAYA,GAAIG,gBAAiB,wBAAUC,IAAV,CAAgBC,IAAhB,CAAsB;AACzC,GAAIA,IAAJ,CAAU;AACR,GAAIC,YAAaF,KAAKE,UAAtB;;AAEA,GAAIA,YAAcA,aAAeF,KAAKG,SAAlC,EAA+CD,WAAWE,QAAX,GAAwB,CAA3E,CAA8E;AAC5EF,WAAWG,SAAX,CAAuBJ,IAAvB;AACA;AACD;AACF;AACDD,KAAKM,WAAL,CAAmBL,IAAnB;AACD,CAVD;;AAYA,GAAIN,qBAAqBY,SAAzB,CAAoC;AAClC,GAAI,EAAE,eAAiBC,UAASC,eAA5B,CAAJ,CAAkD;AAChDV,eAAiB,wBAAUC,IAAV,CAAgBC,IAAhB,CAAsB;AACrC,GAAID,KAAKI,QAAL,GAAkB,CAAtB,CAAyB;AACvBJ,KAAKK,SAAL,CAAiBJ,IAAjB;AACA;AACD;AACDH,aAAaE,IAAb,CAAmBH,4BAA4BI,IAA5B,CAAnB;AACD,CAND;AAOD;AACF;;AAEDS,OAAOC,OAAP,CAAiBZ,cAAjB","file":"setTextContent.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 ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment');\nvar escapeTextContentForBrowser = require('./escapeTextContentForBrowser');\nvar setInnerHTML = require('./setInnerHTML');\n\n/**\n * Set the textContent property of a node, ensuring that whitespace is preserved\n * even in IE8. innerText is a poor substitute for textContent and, among many\n * issues, inserts <br> instead of the literal newline chars. innerHTML behaves\n * as it should.\n *\n * @param {DOMElement} node\n * @param {string} text\n * @internal\n */\nvar setTextContent = function (node, text) {\n  if (text) {\n    var firstChild = node.firstChild;\n\n    if (firstChild && firstChild === node.lastChild && firstChild.nodeType === 3) {\n      firstChild.nodeValue = text;\n      return;\n    }\n  }\n  node.textContent = text;\n};\n\nif (ExecutionEnvironment.canUseDOM) {\n  if (!('textContent' in document.documentElement)) {\n    setTextContent = function (node, text) {\n      if (node.nodeType === 3) {\n        node.nodeValue = text;\n        return;\n      }\n      setInnerHTML(node, escapeTextContentForBrowser(text));\n    };\n  }\n}\n\nmodule.exports = setTextContent;"]}