{"ast":null,"code":"import _classCallCheck from \"C:/Users/lucas.hsilva/Desktop/Nome_do_projeto/thf2/node_modules/@babel/runtime/helpers/esm/classCallCheck.js\";\nimport _createClass from \"C:/Users/lucas.hsilva/Desktop/Nome_do_projeto/thf2/node_modules/@babel/runtime/helpers/esm/createClass.js\";\nimport _get from \"C:/Users/lucas.hsilva/Desktop/Nome_do_projeto/thf2/node_modules/@babel/runtime/helpers/esm/get.js\";\nimport _getPrototypeOf from \"C:/Users/lucas.hsilva/Desktop/Nome_do_projeto/thf2/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js\";\nimport _inherits from \"C:/Users/lucas.hsilva/Desktop/Nome_do_projeto/thf2/node_modules/@babel/runtime/helpers/esm/inherits.js\";\nimport _createSuper from \"C:/Users/lucas.hsilva/Desktop/Nome_do_projeto/thf2/node_modules/@babel/runtime/helpers/esm/createSuper.js\";\nimport { AsyncAction } from './AsyncAction';\nimport { immediateProvider } from './immediateProvider';\nexport var AsapAction = /*#__PURE__*/function (_AsyncAction) {\n  _inherits(AsapAction, _AsyncAction);\n  var _super = _createSuper(AsapAction);\n  function AsapAction(scheduler, work) {\n    var _this;\n    _classCallCheck(this, AsapAction);\n    _this = _super.call(this, scheduler, work);\n    _this.scheduler = scheduler;\n    _this.work = work;\n    return _this;\n  }\n  _createClass(AsapAction, [{\n    key: \"requestAsyncId\",\n    value: function requestAsyncId(scheduler, id) {\n      var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n      if (delay !== null && delay > 0) {\n        return _get(_getPrototypeOf(AsapAction.prototype), \"requestAsyncId\", this).call(this, scheduler, id, delay);\n      }\n      scheduler.actions.push(this);\n      return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));\n    }\n  }, {\n    key: \"recycleAsyncId\",\n    value: function recycleAsyncId(scheduler, id) {\n      var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n      var _a;\n      if (delay != null ? delay > 0 : this.delay > 0) {\n        return _get(_getPrototypeOf(AsapAction.prototype), \"recycleAsyncId\", this).call(this, scheduler, id, delay);\n      }\n      var actions = scheduler.actions;\n      if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {\n        immediateProvider.clearImmediate(id);\n        scheduler._scheduled = undefined;\n      }\n      return undefined;\n    }\n  }]);\n  return AsapAction;\n}(AsyncAction);\n//# sourceMappingURL=AsapAction.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}