Kargi-Sitesi/.angular/cache/16.2.16/babel-webpack/957e2b0c3daf00c69c0f15d6b2ce80c47082f5208a1e6a948e894ced73d1870a.json

1 line
2.7 KiB
JSON
Raw Normal View History

2024-10-31 19:07:58 +00:00
{"ast":null,"code":"import { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { isNumeric } from '../util/isNumeric';\nexport function interval(period = 0, scheduler = async) {\n if (!isNumeric(period) || period < 0) {\n period = 0;\n }\n if (!scheduler || typeof scheduler.schedule !== 'function') {\n scheduler = async;\n }\n return new Observable(subscriber => {\n subscriber.add(scheduler.schedule(dispatch, period, {\n subscriber,\n counter: 0,\n period\n }));\n return subscriber;\n });\n}\nfunction dispatch(state) {\n const {\n subscriber,\n counter,\n period\n } = state;\n subscriber.next(counter);\n this.schedule({\n subscriber,\n counter: counter + 1,\n period\n }, period);\n}","map":{"version":3,"names":["Observable","async","isNumeric","interval","period","scheduler","schedule","subscriber","add","dispatch","counter","state","next"],"sources":["/home/arctichawk1/Desktop/Projects/Public/Kargi-Sitesi/node_modules/rxjs/_esm2015/internal/observable/interval.js"],"sourcesContent":["import { Observable } from '../Observable';\nimport { async } from '../scheduler/async';\nimport { isNumeric } from '../util/isNumeric';\nexport function interval(period = 0, scheduler = async) {\n if (!isNumeric(period) || period < 0) {\n period = 0;\n }\n if (!scheduler || typeof scheduler.schedule !== 'function') {\n scheduler = async;\n }\n return new Observable(subscriber => {\n subscriber.add(scheduler.schedule(dispatch, period, { subscriber, counter: 0, period }));\n return subscriber;\n });\n}\nfunction dispatch(state) {\n const { subscriber, counter, period } = state;\n subscriber.next(counter);\n this.schedule({ subscriber, counter: counter + 1, period }, period);\n}\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,eAAe;AAC1C,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,SAAS,QAAQ,mBAAmB;AAC7C,OAAO,SAASC,QAAQA,CAACC,MAAM,GAAG,CAAC,EAAEC,SAAS,GAAGJ,KAAK,EAAE;EACpD,IAAI,CAACC,SAAS,CAACE,MAAM,CAAC,IAAIA,MAAM,GAAG,CAAC,EAAE;IAClCA,MAAM,GAAG,CAAC;EACd;EACA,IAAI,CAACC,SAAS,IAAI,OAAOA,SAAS,CAACC,QAAQ,KAAK,UAAU,EAAE;IACxDD,SAAS,GAAGJ,KAAK;EACrB;EACA,OAAO,IAAID,UAAU,CAACO,UAAU,IAAI;IAChCA,UAAU,CAACC,GAAG,CAACH,SAAS,CAACC,QAAQ,CAACG,QAAQ,EAAEL,MAAM,EAAE;MAAEG,UAAU;MAAEG,OAAO,EAAE,CAAC;MAAEN;IAAO,CAAC,CAAC,CAAC;IACxF,OAAOG,UAAU;EACrB,CAAC,CAAC;AACN;AACA,SAASE,QAAQA,CAACE,KAAK,EAAE;EACrB,MAAM;IAAEJ,UAAU;IAAEG,OAAO;IAAEN;EAAO,CAAC,GAAGO,KAAK;EAC7CJ,UAAU,CAACK,IAAI,CAACF,OAAO,CAAC;EACxB,IAAI,CAACJ,QAAQ,CAAC;IAAEC,UAAU;IAAEG,OAAO,EAAEA,OAAO,GAAG,CAAC;IAAEN;EAAO,CAAC,EAAEA,MAAM,CAAC;AACvE","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}