{"version":3,"sources":["node_modules\\react-dom\\lib\\CallbackQueue.js"],"names":["_prodInvariant","require","_classCallCheck","instance","Constructor","TypeError","PooledClass","invariant","CallbackQueue","arg","_callbacks","_contexts","_arg","prototype","enqueue","callback","context","push","notifyAll","callbacks","contexts","length","process","env","NODE_ENV","i","call","checkpoint","rollback","len","reset","destructor","module","exports","addPoolingTo"],"mappings":";;;;;;;;;;;AAWA;;AAEA,GAAIA,gBAAiBC,QAAQ,sBAAR,CAArB;;AAEA,QAASC,gBAAT,CAAyBC,QAAzB,CAAmCC,WAAnC,CAAgD,CAAE,GAAI,EAAED,mBAAoBC,YAAtB,CAAJ,CAAwC,CAAE,KAAM,IAAIC,UAAJ,CAAc,mCAAd,CAAN,CAA2D,CAAE;;AAEzJ,GAAIC,aAAcL,QAAQ,eAAR,CAAlB;;AAEA,GAAIM,WAAYN,QAAQ,oBAAR,CAAhB;;;;;;;;;;;;;;AAcA,GAAIO,eAAgB,UAAY;AAC9B,QAASA,cAAT,CAAuBC,GAAvB,CAA4B;AAC1BP,gBAAgB,IAAhB,CAAsBM,aAAtB;;AAEA,KAAKE,UAAL,CAAkB,IAAlB;AACA,KAAKC,SAAL,CAAiB,IAAjB;AACA,KAAKC,IAAL,CAAYH,GAAZ;AACD;;;;;;;;;;;AAWDD,cAAcK,SAAd,CAAwBC,OAAxB,CAAkC,QAASA,QAAT,CAAiBC,QAAjB,CAA2BC,OAA3B,CAAoC;AACpE,KAAKN,UAAL,CAAkB,KAAKA,UAAL,EAAmB,EAArC;AACA,KAAKA,UAAL,CAAgBO,IAAhB,CAAqBF,QAArB;AACA,KAAKJ,SAAL,CAAiB,KAAKA,SAAL,EAAkB,EAAnC;AACA,KAAKA,SAAL,CAAeM,IAAf,CAAoBD,OAApB;AACD,CALD;;;;;;;;;;AAeAR,cAAcK,SAAd,CAAwBK,SAAxB,CAAoC,QAASA,UAAT,EAAqB;AACvD,GAAIC,WAAY,KAAKT,UAArB;AACA,GAAIU,UAAW,KAAKT,S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AAIA,MAAOtB,cAAP;AACD,CAlFmB,EAApB;;AAoFAwB,OAAOC,OAAP,CAAiB3B,YAAY4B,YAAZ,CAAyB1B,aAAzB,CAAjB","file":"CallbackQueue.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\n'use strict';\n\nvar _prodInvariant = require('./reactProdInvariant');\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar PooledClass = require('./PooledClass');\n\nvar invariant = require('fbjs/lib/invariant');\n\n/**\n * A specialized pseudo-event module to help keep track of components waiting to\n * be notified when their DOM representations are available for use.\n *\n * This implements `PooledClass`, so you should never need to instantiate this.\n * Instead, use `CallbackQueue.getPooled()`.\n *\n * @class ReactMountReady\n * @implements PooledClass\n * @internal\n */\n\nvar CallbackQueue = function () {\n  function CallbackQueue(arg) {\n    _classCallCheck(this, CallbackQueue);\n\n    this._callbacks = null;\n    this._contexts = null;\n    this._arg = arg;\n  }\n\n  /**\n   * Enqueues a callback to be invoked when `notifyAll` is invoked.\n   *\n   * @param {function} callback Invoked when `notifyAll` is invoked.\n   * @param {?object} context Context to call `callback` with.\n   * @internal\n   */\n\n\n  CallbackQueue.prototype.enqueue = function enqueue(callback, context) {\n    this._callbacks = this._callbacks || [];\n    this._callbacks.push(callback);\n    this._contexts = this._contexts || [];\n    this._contexts.push(context);\n  };\n\n  /**\n   * Invokes all enqueued callbacks and clears the queue. This is invoked after\n   * the DOM representation of a component has been created or updated.\n   *\n   * @internal\n   */\n\n\n  CallbackQueue.prototype.notifyAll = function notifyAll() {\n    var callbacks = this._callbacks;\n    var contexts = this._contexts;\n    var arg = this._arg;\n    if (callbacks && contexts) {\n      !(callbacks.length === contexts.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Mismatched list of contexts in callback queue') : _prodInvariant('24') : void 0;\n      this._callbacks = null;\n      this._contexts = null;\n      for (var i = 0; i < callbacks.length; i++) {\n        callbacks[i].call(contexts[i], arg);\n      }\n      callbacks.length = 0;\n      contexts.length = 0;\n    }\n  };\n\n  CallbackQueue.prototype.checkpoint = function checkpoint() {\n    return this._callbacks ? this._callbacks.length : 0;\n  };\n\n  CallbackQueue.prototype.rollback = function rollback(len) {\n    if (this._callbacks && this._contexts) {\n      this._callbacks.length = len;\n      this._contexts.length = len;\n    }\n  };\n\n  /**\n   * Resets the internal queue.\n   *\n   * @internal\n   */\n\n\n  CallbackQueue.prototype.reset = function reset() {\n    this._callbacks = null;\n    this._contexts = null;\n  };\n\n  /**\n   * `PooledClass` looks for this.\n   */\n\n\n  CallbackQueue.prototype.destructor = function destructor() {\n    this.reset();\n  };\n\n  return CallbackQueue;\n}();\n\nmodule.exports = PooledClass.addPoolingTo(CallbackQueue);"]}