{"ast":null,"code":"import _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 _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 { Subscriber } from '../Subscriber';\nexport function skipWhile(predicate) {\n  return function (source) {\n    return source.lift(new SkipWhileOperator(predicate));\n  };\n}\n\nvar SkipWhileOperator = /*#__PURE__*/function () {\n  function SkipWhileOperator(predicate) {\n    _classCallCheck(this, SkipWhileOperator);\n\n    this.predicate = predicate;\n  }\n\n  _createClass(SkipWhileOperator, [{\n    key: \"call\",\n    value: function call(subscriber, source) {\n      return source.subscribe(new SkipWhileSubscriber(subscriber, this.predicate));\n    }\n  }]);\n\n  return SkipWhileOperator;\n}();\n\nvar SkipWhileSubscriber = /*#__PURE__*/function (_Subscriber) {\n  _inherits(SkipWhileSubscriber, _Subscriber);\n\n  var _super = _createSuper(SkipWhileSubscriber);\n\n  function SkipWhileSubscriber(destination, predicate) {\n    var _this;\n\n    _classCallCheck(this, SkipWhileSubscriber);\n\n    _this = _super.call(this, destination);\n    _this.predicate = predicate;\n    _this.skipping = true;\n    _this.index = 0;\n    return _this;\n  }\n\n  _createClass(SkipWhileSubscriber, [{\n    key: \"_next\",\n    value: function _next(value) {\n      var destination = this.destination;\n\n      if (this.skipping) {\n        this.tryCallPredicate(value);\n      }\n\n      if (!this.skipping) {\n        destination.next(value);\n      }\n    }\n  }, {\n    key: \"tryCallPredicate\",\n    value: function tryCallPredicate(value) {\n      try {\n        var result = this.predicate(value, this.index++);\n        this.skipping = Boolean(result);\n      } catch (err) {\n        this.destination.error(err);\n      }\n    }\n  }]);\n\n  return SkipWhileSubscriber;\n}(Subscriber); //# sourceMappingURL=skipWhile.js.map","map":null,"metadata":{},"sourceType":"module"}