Kargi-Sitesi/.angular/cache/16.2.16/babel-webpack/06ac14ab485d39e72e6b9aac3bbb70b1d89976a6156ac07c9faa9c951029fcaa.json

1 line
No EOL
2.8 KiB
JSON

{"ast":null,"code":"import { Subject } from './Subject';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nexport class BehaviorSubject extends Subject {\n constructor(_value) {\n super();\n this._value = _value;\n }\n get value() {\n return this.getValue();\n }\n _subscribe(subscriber) {\n const subscription = super._subscribe(subscriber);\n if (subscription && !subscription.closed) {\n subscriber.next(this._value);\n }\n return subscription;\n }\n 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 next(value) {\n super.next(this._value = value);\n }\n}","map":{"version":3,"names":["Subject","ObjectUnsubscribedError","BehaviorSubject","constructor","_value","value","getValue","_subscribe","subscriber","subscription","closed","next","hasError","thrownError"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/BehaviorSubject.js"],"sourcesContent":["import { Subject } from './Subject';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nexport class BehaviorSubject extends Subject {\n constructor(_value) {\n super();\n this._value = _value;\n }\n get value() {\n return this.getValue();\n }\n _subscribe(subscriber) {\n const subscription = super._subscribe(subscriber);\n if (subscription && !subscription.closed) {\n subscriber.next(this._value);\n }\n return subscription;\n }\n getValue() {\n if (this.hasError) {\n throw this.thrownError;\n }\n else if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n else {\n return this._value;\n }\n }\n next(value) {\n super.next(this._value = value);\n }\n}\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,WAAW;AACnC,SAASC,uBAAuB,QAAQ,gCAAgC;AACxE,OAAO,MAAMC,eAAe,SAASF,OAAO,CAAC;EACzCG,WAAWA,CAACC,MAAM,EAAE;IAChB,KAAK,CAAC,CAAC;IACP,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;EACA,IAAIC,KAAKA,CAAA,EAAG;IACR,OAAO,IAAI,CAACC,QAAQ,CAAC,CAAC;EAC1B;EACAC,UAAUA,CAACC,UAAU,EAAE;IACnB,MAAMC,YAAY,GAAG,KAAK,CAACF,UAAU,CAACC,UAAU,CAAC;IACjD,IAAIC,YAAY,IAAI,CAACA,YAAY,CAACC,MAAM,EAAE;MACtCF,UAAU,CAACG,IAAI,CAAC,IAAI,CAACP,MAAM,CAAC;IAChC;IACA,OAAOK,YAAY;EACvB;EACAH,QAAQA,CAAA,EAAG;IACP,IAAI,IAAI,CAACM,QAAQ,EAAE;MACf,MAAM,IAAI,CAACC,WAAW;IAC1B,CAAC,MACI,IAAI,IAAI,CAACH,MAAM,EAAE;MAClB,MAAM,IAAIT,uBAAuB,CAAC,CAAC;IACvC,CAAC,MACI;MACD,OAAO,IAAI,CAACG,MAAM;IACtB;EACJ;EACAO,IAAIA,CAACN,KAAK,EAAE;IACR,KAAK,CAACM,IAAI,CAAC,IAAI,CAACP,MAAM,GAAGC,KAAK,CAAC;EACnC;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}