Kargi-Sitesi/.angular/cache/18.2.11/babel-webpack/a5b5a8dede1557691bc0bd02df6512a44863262dc1b4f9e7e44ed505594f4d9a.json

1 line
No EOL
7 KiB
JSON

{"ast":null,"code":"import { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function switchMap(project, resultSelector) {\n if (typeof resultSelector === 'function') {\n return source => source.pipe(switchMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii)))));\n }\n return source => source.lift(new SwitchMapOperator(project));\n}\nclass SwitchMapOperator {\n constructor(project) {\n this.project = project;\n }\n call(subscriber, source) {\n return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));\n }\n}\nclass SwitchMapSubscriber extends SimpleOuterSubscriber {\n constructor(destination, project) {\n super(destination);\n this.project = project;\n this.index = 0;\n }\n _next(value) {\n let result;\n const index = this.index++;\n try {\n result = this.project(value, index);\n } catch (error) {\n this.destination.error(error);\n return;\n }\n this._innerSub(result);\n }\n _innerSub(result) {\n const innerSubscription = this.innerSubscription;\n if (innerSubscription) {\n innerSubscription.unsubscribe();\n }\n const innerSubscriber = new SimpleInnerSubscriber(this);\n const destination = this.destination;\n destination.add(innerSubscriber);\n this.innerSubscription = innerSubscribe(result, innerSubscriber);\n if (this.innerSubscription !== innerSubscriber) {\n destination.add(this.innerSubscription);\n }\n }\n _complete() {\n const {\n innerSubscription\n } = this;\n if (!innerSubscription || innerSubscription.closed) {\n super._complete();\n }\n this.unsubscribe();\n }\n _unsubscribe() {\n this.innerSubscription = undefined;\n }\n notifyComplete() {\n this.innerSubscription = undefined;\n if (this.isStopped) {\n super._complete();\n }\n }\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n}","map":{"version":3,"names":["map","from","SimpleOuterSubscriber","SimpleInnerSubscriber","innerSubscribe","switchMap","project","resultSelector","source","pipe","a","i","b","ii","lift","SwitchMapOperator","constructor","call","subscriber","subscribe","SwitchMapSubscriber","destination","index","_next","value","result","error","_innerSub","innerSubscription","unsubscribe","innerSubscriber","add","_complete","closed","_unsubscribe","undefined","notifyComplete","isStopped","notifyNext","innerValue","next"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/operators/switchMap.js"],"sourcesContent":["import { map } from './map';\nimport { from } from '../observable/from';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function switchMap(project, resultSelector) {\n if (typeof resultSelector === 'function') {\n return (source) => source.pipe(switchMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii)))));\n }\n return (source) => source.lift(new SwitchMapOperator(project));\n}\nclass SwitchMapOperator {\n constructor(project) {\n this.project = project;\n }\n call(subscriber, source) {\n return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));\n }\n}\nclass SwitchMapSubscriber extends SimpleOuterSubscriber {\n constructor(destination, project) {\n super(destination);\n this.project = project;\n this.index = 0;\n }\n _next(value) {\n let result;\n const index = this.index++;\n try {\n result = this.project(value, index);\n }\n catch (error) {\n this.destination.error(error);\n return;\n }\n this._innerSub(result);\n }\n _innerSub(result) {\n const innerSubscription = this.innerSubscription;\n if (innerSubscription) {\n innerSubscription.unsubscribe();\n }\n const innerSubscriber = new SimpleInnerSubscriber(this);\n const destination = this.destination;\n destination.add(innerSubscriber);\n this.innerSubscription = innerSubscribe(result, innerSubscriber);\n if (this.innerSubscription !== innerSubscriber) {\n destination.add(this.innerSubscription);\n }\n }\n _complete() {\n const { innerSubscription } = this;\n if (!innerSubscription || innerSubscription.closed) {\n super._complete();\n }\n this.unsubscribe();\n }\n _unsubscribe() {\n this.innerSubscription = undefined;\n }\n notifyComplete() {\n this.innerSubscription = undefined;\n if (this.isStopped) {\n super._complete();\n }\n }\n notifyNext(innerValue) {\n this.destination.next(innerValue);\n }\n}\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,OAAO;AAC3B,SA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AAC;IACvC,CAAC,CACD,OAAOI,KAAK,EAAE;MACV,IAAI,CAACL,WAAW,CAACK,KAAK,CAACA,KAAK,CAAC;MAC7B;IACJ;IACA,IAAI,CAACC,SAAS,CAACF,MAAM,CAAC;EAC1B;EACAE,SAASA,CAACF,MAAM,EAAE;IACd,MAAMG,iBAAiB,GAAG,IAAI,CAACA,iBAAiB;IAChD,IAAIA,iBAAiB,EAAE;MACnBA,iBAAiB,CAACC,WAAW,CAAC,CAAC;IACnC;IACA,MAAMC,eAAe,GAAG,IAAI3B,qBAAqB,CAAC,IAAI,CAAC;IACvD,MAAMkB,WAAW,GAAG,IAAI,CAACA,WAAW;IACpCA,WAAW,CAACU,GAAG,CAACD,eAAe,CAAC;IAChC,IAAI,CAACF,iBAAiB,GAAGxB,cAAc,CAACqB,MAAM,EAAEK,eAAe,CAAC;IAChE,IAAI,IAAI,CAACF,iBAAiB,KAAKE,eAAe,EAAE;MAC5CT,WAAW,CAACU,GAAG,CAAC,IAAI,CAACH,iBAAiB,CAAC;IAC3C;EACJ;EACAI,SAASA,CAAA,EAAG;IACR,MAAM;MAAEJ;IAAkB,CAAC,GAAG,IAAI;IAClC,IAAI,CAACA,iBAAiB,IAAIA,iBAAiB,CAACK,MAAM,EAAE;MAChD,KAAK,CAACD,SAAS,CAAC,CAAC;IACrB;IACA,IAAI,CAACH,WAAW,CAAC,CAAC;EACtB;EACAK,YAAYA,CAAA,EAAG;IACX,IAAI,CAACN,iBAAiB,GAAGO,SAAS;EACtC;EACAC,cAAcA,CAAA,EAAG;IACb,IAAI,CAACR,iBAAiB,GAAGO,SAAS;IAClC,IAAI,IAAI,CAACE,SAAS,EAAE;MAChB,KAAK,CAACL,SAAS,CAAC,CAAC;IACrB;EACJ;EACAM,UAAUA,CAACC,UAAU,EAAE;IACnB,IAAI,CAAClB,WAAW,CAACmB,IAAI,CAACD,UAAU,CAAC;EACrC;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}