Files
WrenchBoardIonic2023/.angular/cache/14.2.0/babel-webpack/f1bb7705d2c013f756f2b19bda23f8ee.json
T
CHIEFSOFT\ameye cea49e295a first commit
2023-05-12 22:30:08 -04:00

1 line
2.4 KiB
JSON

{"ast":null,"code":"import { Subscriber } from '../Subscriber';\nexport function pairwise() {\n return source => source.lift(new PairwiseOperator());\n}\n\nclass PairwiseOperator {\n call(subscriber, source) {\n return source.subscribe(new PairwiseSubscriber(subscriber));\n }\n\n}\n\nclass PairwiseSubscriber extends Subscriber {\n constructor(destination) {\n super(destination);\n this.hasPrev = false;\n }\n\n _next(value) {\n let pair;\n\n if (this.hasPrev) {\n pair = [this.prev, value];\n } else {\n this.hasPrev = true;\n }\n\n this.prev = value;\n\n if (pair) {\n this.destination.next(pair);\n }\n }\n\n}","map":{"version":3,"names":["Subscriber","pairwise","source","lift","PairwiseOperator","call","subscriber","subscribe","PairwiseSubscriber","constructor","destination","hasPrev","_next","value","pair","prev","next"],"sources":["D:/MobileDev/WRB/WrenchBoard2023a/node_modules/rxjs/_esm2015/internal/operators/pairwise.js"],"sourcesContent":["import { Subscriber } from '../Subscriber';\nexport function pairwise() {\n return (source) => source.lift(new PairwiseOperator());\n}\nclass PairwiseOperator {\n call(subscriber, source) {\n return source.subscribe(new PairwiseSubscriber(subscriber));\n }\n}\nclass PairwiseSubscriber extends Subscriber {\n constructor(destination) {\n super(destination);\n this.hasPrev = false;\n }\n _next(value) {\n let pair;\n if (this.hasPrev) {\n pair = [this.prev, value];\n }\n else {\n this.hasPrev = true;\n }\n this.prev = value;\n if (pair) {\n this.destination.next(pair);\n }\n }\n}\n"],"mappings":"AAAA,SAASA,UAAT,QAA2B,eAA3B;AACA,OAAO,SAASC,QAAT,GAAoB;EACvB,OAAQC,MAAD,IAAYA,MAAM,CAACC,IAAP,CAAY,IAAIC,gBAAJ,EAAZ,CAAnB;AACH;;AACD,MAAMA,gBAAN,CAAuB;EACnBC,IAAI,CAACC,UAAD,EAAaJ,MAAb,EAAqB;IACrB,OAAOA,MAAM,CAACK,SAAP,CAAiB,IAAIC,kBAAJ,CAAuBF,UAAvB,CAAjB,CAAP;EACH;;AAHkB;;AAKvB,MAAME,kBAAN,SAAiCR,UAAjC,CAA4C;EACxCS,WAAW,CAACC,WAAD,EAAc;IACrB,MAAMA,WAAN;IACA,KAAKC,OAAL,GAAe,KAAf;EACH;;EACDC,KAAK,CAACC,KAAD,EAAQ;IACT,IAAIC,IAAJ;;IACA,IAAI,KAAKH,OAAT,EAAkB;MACdG,IAAI,GAAG,CAAC,KAAKC,IAAN,EAAYF,KAAZ,CAAP;IACH,CAFD,MAGK;MACD,KAAKF,OAAL,GAAe,IAAf;IACH;;IACD,KAAKI,IAAL,GAAYF,KAAZ;;IACA,IAAIC,IAAJ,EAAU;MACN,KAAKJ,WAAL,CAAiBM,IAAjB,CAAsBF,IAAtB;IACH;EACJ;;AAjBuC"},"metadata":{},"sourceType":"module"}