ng-implementation/implem/.angular/cache/20.1.4/babel-webpack/8ca723a6cb9e84af0123351abe0e7860.json

1 line
2.4 KiB
JSON
Raw Normal View History

2025-08-19 10:58:54 +02:00
{"ast":null,"code":"import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n var hasDefaultValue = arguments.length >= 2;\n return function (source) {\n return source.pipe(predicate ? filter(function (v, i) {\n return predicate(v, i, source);\n }) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () {\n return new EmptyError();\n }));\n };\n}\n//# sourceMappingURL=first.js.map","map":{"version":3,"names":["EmptyError","filter","take","defaultIfEmpty","throwIfEmpty","identity","first","predicate","defaultValue","hasDefaultValue","arguments","length","source","pipe","v","i"],"sources":["/home/poule/encrypted/stockage-syncable/www/development/html/ng-implementation/implem/node_modules/rxjs/dist/esm5/internal/operators/first.js"],"sourcesContent":["import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n var hasDefaultValue = arguments.length >= 2;\n return function (source) {\n return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); }));\n };\n}\n//# sourceMappingURL=first.js.map"],"mappings":"AAAA,SAASA,UAAU,QAAQ,oBAAoB;AAC/C,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,QAAQ,QAAQ,kBAAkB;AAC3C,OAAO,SAASC,KAAKA,CAACC,SAAS,EAAEC,YAAY,EAAE;EAC3C,IAAIC,eAAe,GAAGC,SAAS,CAACC,MAAM,IAAI,CAAC;EAC3C,OAAO,UAAUC,MAAM,EAAE;IACrB,OAAOA,MAAM,CAACC,IAAI,CAACN,SAAS,GAAGN,MAAM,CAAC,UAAUa,CAAC,EAAEC,CAAC,EAAE;MAAE,OAAOR,SAAS,CAACO,CAAC,EAAEC,CAAC,EAAEH,MAAM,CAAC;IAAE,CAAC,CAAC,GAAGP,QAAQ,EAAEH,IAAI,CAAC,CAAC,CAAC,EAAEO,eAAe,GAAGN,cAAc,CAACK,YAAY,CAAC,GAAGJ,YAAY,CAAC,YAAY;MAAE,OAAO,IAAIJ,UAAU,CAAC,CAAC;IAAE,CAAC,CAAC,CAAC;EAC5N,CAAC;AACL;AACA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}