{"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 { Subject } from './Subject';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nexport var BehaviorSubject = /*#__PURE__*/function (_Subject) {\n  _inherits(BehaviorSubject, _Subject);\n\n  var _super = _createSuper(BehaviorSubject);\n\n  function BehaviorSubject(_value) {\n    var _this;\n\n    _classCallCheck(this, BehaviorSubject);\n\n    _this = _super.call(this);\n    _this._value = _value;\n    return _this;\n  }\n\n  _createClass(BehaviorSubject, [{\n    key: \"value\",\n    get: function get() {\n      return this.getValue();\n    }\n  }, {\n    key: \"_subscribe\",\n    value: function _subscribe(subscriber) {\n      var subscription = _get(_getPrototypeOf(BehaviorSubject.prototype), \"_subscribe\", this).call(this, subscriber);\n\n      if (subscription && !subscription.closed) {\n        subscriber.next(this._value);\n      }\n\n      return subscription;\n    }\n  }, {\n    key: \"getValue\",\n    value: function getValue() {\n      if (this.hasError) {\n        throw this.thrownError;\n      } else if (this.closed) {\n        throw new ObjectUnsubscribedError();\n      } else {\n        return this._value;\n      }\n    }\n  }, {\n    key: \"next\",\n    value: function next(value) {\n      _get(_getPrototypeOf(BehaviorSubject.prototype), \"next\", this).call(this, this._value = value);\n    }\n  }]);\n\n  return BehaviorSubject;\n}(Subject); //# sourceMappingURL=BehaviorSubject.js.map","map":null,"metadata":{},"sourceType":"module"}