Kargi-Sitesi/.angular/cache/16.2.16/babel-webpack/c0cd9243da5c9cc184cbdea9168211fe91a36627d666195ac3d19b7ecb5400a9.json

1 line
3.9 KiB
JSON
Raw Normal View History

2024-10-31 19:07:58 +00:00
{"ast":null,"code":"import { EmptyError } from '../util/EmptyError';\nimport { Subscriber } from '../Subscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n return source => {\n return source.lift(new ThrowIfEmptyOperator(errorFactory));\n };\n}\nclass ThrowIfEmptyOperator {\n constructor(errorFactory) {\n this.errorFactory = errorFactory;\n }\n call(subscriber, source) {\n return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory));\n }\n}\nclass ThrowIfEmptySubscriber extends Subscriber {\n constructor(destination, errorFactory) {\n super(destination);\n this.errorFactory = errorFactory;\n this.hasValue = false;\n }\n _next(value) {\n this.hasValue = true;\n this.destination.next(value);\n }\n _complete() {\n if (!this.hasValue) {\n let err;\n try {\n err = this.errorFactory();\n } catch (e) {\n err = e;\n }\n this.destination.error(err);\n } else {\n return this.destination.complete();\n }\n }\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}","map":{"version":3,"names":["EmptyError","Subscriber","throwIfEmpty","errorFactory","defaultErrorFactory","source","lift","ThrowIfEmptyOperator","constructor","call","subscriber","subscribe","ThrowIfEmptySubscriber","destination","hasValue","_next","value","next","_complete","err","e","error","complete"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/operators/throwIfEmpty.js"],"sourcesContent":["import { EmptyError } from '../util/EmptyError';\nimport { Subscriber } from '../Subscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n return (source) => {\n return source.lift(new ThrowIfEmptyOperator(errorFactory));\n };\n}\nclass ThrowIfEmptyOperator {\n constructor(errorFactory) {\n this.errorFactory = errorFactory;\n }\n call(subscriber, source) {\n return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory));\n }\n}\nclass ThrowIfEmptySubscriber extends Subscriber {\n constructor(destination, errorFactory) {\n super(destination);\n this.errorFactory = errorFactory;\n this.hasValue = false;\n }\n _next(value) {\n this.hasValue = true;\n this.destination.next(value);\n }\n _complete() {\n if (!this.hasValue) {\n let err;\n try {\n err = this.errorFactory();\n }\n catch (e) {\n err = e;\n }\n this.destination.error(err);\n }\n else {\n return this.destination.complete();\n }\n }\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,UAAU,QAAQ,eAAe;AAC1C,OAAO,SAASC,YAAYA,CAACC,YAAY,GAAGC,mBAAmB,EAAE;EAC7D,OAAQC,MAAM,IAAK;IACf,OAAOA,MAAM,CAACC,IAAI,CAAC,IAAIC,oBAAoB,CAACJ,YAAY,CAAC,CAAC;EAC9D,CAAC;AACL;AACA,MAAMI,oBAAoB,CAAC;EACvBC,WAAWA,CAACL,YAAY,EAAE;IACtB,IAAI,CAACA,YAAY,GAAGA,YAAY;EACpC;EACAM,IAAIA,CAACC,UAAU,EAAEL,MAAM,EAAE;IACrB,OAAOA,MAAM,CAACM,SAAS,CAAC,IAAIC,sBAAsB,CAACF,UAAU,EAAE,IAAI,CAACP,YAAY,CAAC,CAAC;EACtF;AACJ;AACA,MAAMS,sBAAsB,SAASX,UAAU,CAAC;EAC5CO,WAAWA,CAACK,WAAW,EAAEV,YAAY,EAAE;IACnC,KAAK,CAACU,WAAW,CAAC;IAClB,IAAI,CAACV,YAAY,GAAGA,YAAY;IAChC,IAAI,CAACW,QAAQ,GAAG,KAAK;EACzB;EACAC,KAAKA,CAACC,KAAK,EAAE;IACT,IAAI,CAACF,QAAQ,GAAG,IAAI;IACpB,IAAI,CAACD,WAAW,CAACI,IAAI,CAACD,KAAK,CAAC;EAChC;EACAE,SAASA,CAAA,EAAG;IACR,IAAI,CAAC,IAAI,CAACJ,QAAQ,EAAE;MAChB,IAAIK,GAAG;MACP,IAAI;QACAA,GAAG,G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