{"ast":null,"code":"import _classCallCheck from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport _get from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/get\";\nimport _getPrototypeOf from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/getPrototypeOf\";\nimport _inherits from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/createSuper\";\nimport { AsyncAction } from './AsyncAction';\nexport var QueueAction = /*#__PURE__*/function (_AsyncAction) {\n  _inherits(QueueAction, _AsyncAction);\n\n  var _super = _createSuper(QueueAction);\n\n  function QueueAction(scheduler, work) {\n    var _this;\n\n    _classCallCheck(this, QueueAction);\n\n    _this = _super.call(this, scheduler, work);\n    _this.scheduler = scheduler;\n    _this.work = work;\n    return _this;\n  }\n\n  _createClass(QueueAction, [{\n    key: \"schedule\",\n    value: function schedule(state) {\n      var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n      if (delay > 0) {\n        return _get(_getPrototypeOf(QueueAction.prototype), \"schedule\", this).call(this, state, delay);\n      }\n\n      this.delay = delay;\n      this.state = state;\n      this.scheduler.flush(this);\n      return this;\n    }\n  }, {\n    key: \"execute\",\n    value: function execute(state, delay) {\n      return delay > 0 || this.closed ? _get(_getPrototypeOf(QueueAction.prototype), \"execute\", this).call(this, state, delay) : this._execute(state, delay);\n    }\n  }, {\n    key: \"requestAsyncId\",\n    value: function requestAsyncId(scheduler, id) {\n      var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n\n      if (delay !== null && delay > 0 || delay === null && this.delay > 0) {\n        return _get(_getPrototypeOf(QueueAction.prototype), \"requestAsyncId\", this).call(this, scheduler, id, delay);\n      }\n\n      return scheduler.flush(this);\n    }\n  }]);\n\n  return QueueAction;\n}(AsyncAction); //# sourceMappingURL=QueueAction.js.map","map":null,"metadata":{},"sourceType":"module"}