1 line
No EOL
6.7 KiB
JSON
1 line
No EOL
6.7 KiB
JSON
{"ast":null,"code":"import { Subscriber } from './Subscriber';\nimport { Observable } from './Observable';\nimport { subscribeTo } from './util/subscribeTo';\nexport class SimpleInnerSubscriber extends Subscriber {\n constructor(parent) {\n super();\n this.parent = parent;\n }\n _next(value) {\n this.parent.notifyNext(value);\n }\n _error(error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete();\n this.unsubscribe();\n }\n}\nexport class ComplexInnerSubscriber extends Subscriber {\n constructor(parent, outerValue, outerIndex) {\n super();\n this.parent = parent;\n this.outerValue = outerValue;\n this.outerIndex = outerIndex;\n }\n _next(value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this);\n }\n _error(error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n }\n}\nexport class SimpleOuterSubscriber extends Subscriber {\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n notifyError(err) {\n this.destination.error(err);\n }\n notifyComplete() {\n this.destination.complete();\n }\n}\nexport class ComplexOuterSubscriber extends Subscriber {\n notifyNext(_outerValue, innerValue, _outerIndex, _innerSub) {\n this.destination.next(innerValue);\n }\n notifyError(error) {\n this.destination.error(error);\n }\n notifyComplete(_innerSub) {\n this.destination.complete();\n }\n}\nexport function innerSubscribe(result, innerSubscriber) {\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n let subscription;\n try {\n subscription = subscribeTo(result)(innerSubscriber);\n } catch (error) {\n innerSubscriber.error(error);\n }\n return subscription;\n}","map":{"version":3,"names":["Subscriber","Observable","subscribeTo","SimpleInnerSubscriber","constructor","parent","_next","value","notifyNext","_error","error","notifyError","unsubscribe","_complete","notifyComplete","ComplexInnerSubscriber","outerValue","outerIndex","SimpleOuterSubscriber","innerValue","destination","next","err","complete","ComplexOuterSubscriber","_outerValue","_outerIndex","_innerSub","innerSubscribe","result","innerSubscriber","closed","undefined","subscribe","subscription"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/innerSubscribe.js"],"sourcesContent":["import { Subscriber } from './Subscriber';\nimport { Observable } from './Observable';\nimport { subscribeTo } from './util/subscribeTo';\nexport class SimpleInnerSubscriber extends Subscriber {\n constructor(parent) {\n super();\n this.parent = parent;\n }\n _next(value) {\n this.parent.notifyNext(value);\n }\n _error(error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete();\n this.unsubscribe();\n }\n}\nexport class ComplexInnerSubscriber extends Subscriber {\n constructor(parent, outerValue, outerIndex) {\n super();\n this.parent = parent;\n this.outerValue = outerValue;\n this.outerIndex = outerIndex;\n }\n _next(value) {\n this.parent.notifyNext(this.outerValue, value, this.outerIndex, this);\n }\n _error(error) {\n this.parent.notifyError(error);\n this.unsubscribe();\n }\n _complete() {\n this.parent.notifyComplete(this);\n this.unsubscribe();\n }\n}\nexport class SimpleOuterSubscriber extends Subscriber {\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n notifyError(err) {\n this.destination.error(err);\n }\n notifyComplete() {\n this.destination.complete();\n }\n}\nexport class ComplexOuterSubscriber extends Subscriber {\n notifyNext(_outerValue, innerValue, _outerIndex, _innerSub) {\n this.destination.next(innerValue);\n }\n notifyError(error) {\n this.destination.error(error);\n }\n notifyComplete(_innerSub) {\n this.destination.complete();\n }\n}\nexport function innerSubscribe(result, innerSubscriber) {\n if (innerSubscriber.closed) {\n return undefined;\n }\n if (result instanceof Observable) {\n return result.subscribe(innerSubscriber);\n }\n let subscription;\n try {\n subscription = subscribeTo(result)(innerSubscriber);\n }\n catch (error) {\n innerSubscriber.error(error);\n }\n return subscription;\n}\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,WAAW,QAAQ,oBA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ACC,WAAW,CAACC,IAAI,CAACF,UAAU,CAAC;EACrC;EACAR,WAAWA,CAACW,GAAG,EAAE;IACb,IAAI,CAACF,WAAW,CAACV,KAAK,CAACY,GAAG,CAAC;EAC/B;EACAR,cAAcA,CAAA,EAAG;IACb,IAAI,CAACM,WAAW,CAACG,QAAQ,CAAC,CAAC;EAC/B;AACJ;AACA,OAAO,MAAMC,sBAAsB,SAASxB,UAAU,CAAC;EACnDQ,UAAUA,CAACiB,WAAW,EAAEN,UAAU,EAAEO,WAAW,EAAEC,SAAS,EAAE;IACxD,IAAI,CAACP,WAAW,CAACC,IAAI,CAACF,UAAU,CAAC;EACrC;EACAR,WAAWA,CAACD,KAAK,EAAE;IACf,IAAI,CAACU,WAAW,CAACV,KAAK,CAACA,KAAK,CAAC;EACjC;EACAI,cAAcA,CAACa,SAAS,EAAE;IACtB,IAAI,CAACP,WAAW,CAACG,QAAQ,CAAC,CAAC;EAC/B;AACJ;AACA,OAAO,SAASK,cAAcA,CAACC,MAAM,EAAEC,eAAe,EAAE;EACpD,IAAIA,eAAe,CAACC,MAAM,EAAE;IACxB,OAAOC,SAAS;EACpB;EACA,IAAIH,MAAM,YAAY5B,UAAU,EAAE;IAC9B,OAAO4B,MAAM,CAACI,SAAS,CAACH,eAAe,CAAC;EAC5C;EACA,IAAII,YAAY;EAChB,IAAI;IACAA,YAAY,GAAGhC,WAAW,CAAC2B,MAAM,CAAC,CAACC,eAAe,CAAC;EACvD,CAAC,CACD,OAAOpB,KAAK,EAAE;IACVoB,eAAe,CAACpB,KAAK,CAACA,KAAK,CAAC;EAChC;EACA,OAAOwB,YAAY;AACvB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |