Kargi-Sitesi/.angular/cache/18.2.11/babel-webpack/1d2604f3511a26017abf187ad4bdaf0812d60c4042bf9c9e48a9f9777c53c3f9.json

1 line
2.8 KiB
JSON
Raw Normal View History

2024-10-31 19:07:58 +00:00
{"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":[]}