Kargi-Sitesi/.angular/cache/18.2.11/babel-webpack/019b16c526d6bfcfe8e46027791e4c2adc2b17dd7bc46157e8b651f962b28caf.json

1 line
3 KiB
JSON
Raw Normal View History

2024-10-31 19:07:58 +00:00
{"ast":null,"code":"import { Subscriber } from '../Subscriber';\nexport function defaultIfEmpty(defaultValue = null) {\n return source => source.lift(new DefaultIfEmptyOperator(defaultValue));\n}\nclass DefaultIfEmptyOperator {\n constructor(defaultValue) {\n this.defaultValue = defaultValue;\n }\n call(subscriber, source) {\n return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n }\n}\nclass DefaultIfEmptySubscriber extends Subscriber {\n constructor(destination, defaultValue) {\n super(destination);\n this.defaultValue = defaultValue;\n this.isEmpty = true;\n }\n _next(value) {\n this.isEmpty = false;\n this.destination.next(value);\n }\n _complete() {\n if (this.isEmpty) {\n this.destination.next(this.defaultValue);\n }\n this.destination.complete();\n }\n}","map":{"version":3,"names":["Subscriber","defaultIfEmpty","defaultValue","source","lift","DefaultIfEmptyOperator","constructor","call","subscriber","subscribe","DefaultIfEmptySubscriber","destination","isEmpty","_next","value","next","_complete","complete"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/operators/defaultIfEmpty.js"],"sourcesContent":["import { Subscriber } from '../Subscriber';\nexport function defaultIfEmpty(defaultValue = null) {\n return (source) => source.lift(new DefaultIfEmptyOperator(defaultValue));\n}\nclass DefaultIfEmptyOperator {\n constructor(defaultValue) {\n this.defaultValue = defaultValue;\n }\n call(subscriber, source) {\n return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n }\n}\nclass DefaultIfEmptySubscriber extends Subscriber {\n constructor(destination, defaultValue) {\n super(destination);\n this.defaultValue = defaultValue;\n this.isEmpty = true;\n }\n _next(value) {\n this.isEmpty = false;\n this.destination.next(value);\n }\n _complete() {\n if (this.isEmpty) {\n this.destination.next(this.defaultValue);\n }\n this.destination.complete();\n }\n}\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,eAAe;AAC1C,OAAO,SAASC,cAAcA,CAACC,YAAY,GAAG,IAAI,EAAE;EAChD,OAAQC,MAAM,IAAKA,MAAM,CAACC,IAAI,CAAC,IAAIC,sBAAsB,CAACH,YAAY,CAAC,CAAC;AAC5E;AACA,MAAMG,sBAAsB,CAAC;EACzBC,WAAWA,CAACJ,YAAY,EAAE;IACtB,IAAI,CAACA,YAAY,GAAGA,YAAY;EACpC;EACAK,IAAIA,CAACC,UAAU,EAAEL,MAAM,EAAE;IACrB,OAAOA,MAAM,CAACM,SAAS,CAAC,IAAIC,wBAAwB,CAACF,UAAU,EAAE,IAAI,CAACN,YAAY,CAAC,CAAC;EACxF;AACJ;AACA,MAAMQ,wBAAwB,SAASV,UAAU,CAAC;EAC9CM,WAAWA,CAACK,WAAW,EAAET,YAAY,EAAE;IACnC,KAAK,CAACS,WAAW,CAAC;IAClB,IAAI,CAACT,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACU,OAAO,GAAG,IAAI;EACvB;EACAC,KAAKA,CAACC,KAAK,EAAE;IACT,IAAI,CAACF,OAAO,GAAG,KAAK;IACpB,IAAI,CAACD,WAAW,CAACI,IAAI,CAACD,KAAK,CAAC;EAChC;EACAE,SAASA,CAAA,EAAG;IACR,IAAI,IAAI,CAACJ,OAAO,EAAE;MACd,IAAI,CAACD,WAAW,CAACI,IAAI,CAAC,IAAI,CAACb,YAAY,CAAC;IAC5C;IACA,IAAI,CAACS,WAAW,CAACM,QAAQ,CAAC,CAAC;EAC/B;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}