Kargi-Sitesi/.angular/cache/18.2.11/babel-webpack/74d48a1cea209958930fbdc7123b3fd5c44390839f33e34ef559dc46f095b3ef.json

1 line
2.5 KiB
JSON
Raw Permalink Normal View History

2024-11-04 02:30:09 +00:00
{"ast":null,"code":"import { async } from '../scheduler/async';\nimport { scan } from './scan';\nimport { defer } from '../observable/defer';\nimport { map } from './map';\nexport function timeInterval(scheduler = async) {\n return source => defer(() => {\n return source.pipe(scan(({\n current\n }, value) => ({\n value,\n current: scheduler.now(),\n last: current\n }), {\n current: scheduler.now(),\n value: undefined,\n last: undefined\n }), map(({\n current,\n last,\n value\n }) => new TimeInterval(value, current - last)));\n });\n}\nexport class TimeInterval {\n constructor(value, interval) {\n this.value = value;\n this.interval = interval;\n }\n}","map":{"version":3,"names":["async","scan","defer","map","timeInterval","scheduler","source","pipe","current","value","now","last","undefined","TimeInterval","constructor","interval"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/operators/timeInterval.js"],"sourcesContent":["import { async } from '../scheduler/async';\nimport { scan } from './scan';\nimport { defer } from '../observable/defer';\nimport { map } from './map';\nexport function timeInterval(scheduler = async) {\n return (source) => defer(() => {\n return source.pipe(scan(({ current }, value) => ({ value, current: scheduler.now(), last: current }), { current: scheduler.now(), value: undefined, last: undefined }), map(({ current, last, value }) => new TimeInterval(value, current - last)));\n });\n}\nexport class TimeInterval {\n constructor(value, interval) {\n this.value = value;\n this.interval = interval;\n }\n}\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,KAAK,QAAQ,qBAAqB;AAC3C,SAASC,GAAG,QAAQ,OAAO;AAC3B,OAAO,SAASC,YAAYA,CAACC,SAAS,GAAGL,KAAK,EAAE;EAC5C,OAAQM,MAAM,IAAKJ,KAAK,CAAC,MAAM;IAC3B,OAAOI,MAAM,CAACC,IAAI,CAACN,IAAI,CAAC,CAAC;MAAEO;IAAQ,CAAC,EAAEC,KAAK,MAAM;MAAEA,KAAK;MAAED,OAAO,EAAEH,SAAS,CAACK,GAAG,CAAC,CAAC;MAAEC,IAAI,EAAEH;IAAQ,CAAC,CAAC,EAAE;MAAEA,OAAO,EAAEH,SAAS,CAACK,GAAG,CAAC,CAAC;MAAED,KAAK,EAAEG,SAAS;MAAED,IAAI,EAAEC;IAAU,CAAC,CAAC,EAAET,GAAG,CAAC,CAAC;MAAEK,OAAO;MAAEG,IAAI;MAAEF;IAAM,CAAC,KAAK,IAAII,YAAY,CAACJ,KAAK,EAAED,OAAO,GAAGG,IAAI,CAAC,CAAC,CAAC;EACvP,CAAC,CAAC;AACN;AACA,OAAO,MAAME,YAAY,CAAC;EACtBC,WAAWA,CAACL,KAAK,EAAEM,QAAQ,EAAE;IACzB,IAAI,CAACN,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACM,QAAQ,GAAGA,QAAQ;EAC5B;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}