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

1 line
5.3 KiB
JSON

{"ast":null,"code":"import { Subscriber } from '../Subscriber';\nexport function find(predicate, thisArg) {\n if (typeof predicate !== 'function') {\n throw new TypeError('predicate is not a function');\n }\n\n return source => source.lift(new FindValueOperator(predicate, source, false, thisArg));\n}\nexport class FindValueOperator {\n constructor(predicate, source, yieldIndex, thisArg) {\n this.predicate = predicate;\n this.source = source;\n this.yieldIndex = yieldIndex;\n this.thisArg = thisArg;\n }\n\n call(observer, source) {\n return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));\n }\n\n}\nexport class FindValueSubscriber extends Subscriber {\n constructor(destination, predicate, source, yieldIndex, thisArg) {\n super(destination);\n this.predicate = predicate;\n this.source = source;\n this.yieldIndex = yieldIndex;\n this.thisArg = thisArg;\n this.index = 0;\n }\n\n notifyComplete(value) {\n const destination = this.destination;\n destination.next(value);\n destination.complete();\n this.unsubscribe();\n }\n\n _next(value) {\n const {\n predicate,\n thisArg\n } = this;\n const index = this.index++;\n\n try {\n const result = predicate.call(thisArg || this, value, index, this.source);\n\n if (result) {\n this.notifyComplete(this.yieldIndex ? index : value);\n }\n } catch (err) {\n this.destination.error(err);\n }\n }\n\n _complete() {\n this.notifyComplete(this.yieldIndex ? -1 : undefined);\n }\n\n}","map":{"version":3,"names":["Subscriber","find","predicate","thisArg","TypeError","source","lift","FindValueOperator","constructor","yieldIndex","call","observer","subscribe","FindValueSubscriber","destination","index","notifyComplete","value","next","complete","unsubscribe","_next","result","err","error","_complete","undefined"],"sources":["D:/MobileDev/WRB/WrenchBoard2023a/node_modules/rxjs/_esm2015/internal/operators/find.js"],"sourcesContent":["import { Subscriber } from '../Subscriber';\nexport function find(predicate, thisArg) {\n if (typeof predicate !== 'function') {\n throw new TypeError('predicate is not a function');\n }\n return (source) => source.lift(new FindValueOperator(predicate, source, false, thisArg));\n}\nexport class FindValueOperator {\n constructor(predicate, source, yieldIndex, thisArg) {\n this.predicate = predicate;\n this.source = source;\n this.yieldIndex = yieldIndex;\n this.thisArg = thisArg;\n }\n call(observer, source) {\n return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));\n }\n}\nexport class FindValueSubscriber extends Subscriber {\n constructor(destination, predicate, source, yieldIndex, thisArg) {\n super(destination);\n this.predicate = predicate;\n this.source = source;\n this.yieldIndex = yieldIndex;\n this.thisArg = thisArg;\n this.index = 0;\n }\n notifyComplete(value) {\n const destination = this.destination;\n destination.next(value);\n destination.complete();\n this.unsubscribe();\n }\n _next(value) {\n const { predicate, thisArg } = this;\n const index = this.index++;\n try {\n const result = predicate.call(thisArg || this, value, index, this.source);\n if (result) {\n this.notifyComplete(this.yieldIndex ? index : value);\n }\n }\n catch (err) {\n this.destination.error(err);\n }\n }\n _complete() {\n this.notifyComplete(this.yieldIndex ? -1 : undefined);\n }\n}\n"],"mappings":"AAAA,SAASA,UAAT,QAA2B,eAA3B;AACA,OAAO,SAASC,IAAT,CAAcC,SAAd,EAAyBC,OAAzB,EAAkC;EACrC,IAAI,OAAOD,SAAP,KAAqB,UAAzB,EAAqC;IACjC,MAAM,IAAIE,SAAJ,CAAc,6BAAd,CAAN;EACH;;EACD,OAAQC,MAAD,IAAYA,MAAM,CAACC,IAAP,CAAY,IAAIC,iBAAJ,CAAsBL,SAAtB,EAAiCG,MAAjC,EAAyC,KAAzC,EAAgDF,OAAhD,CAAZ,CAAnB;AACH;AACD,OAAO,MAAMI,iBAAN,CAAwB;EAC3BC,WAAW,CAACN,SAAD,EAAYG,MAAZ,EAAoBI,UAApB,EAAgCN,OAAhC,EAAyC;IAChD,KAAKD,SAAL,GAAiBA,SAAjB;IACA,KAAKG,MAAL,GAAcA,MAAd;IACA,KAAKI,UAAL,GAAkBA,UAAlB;IACA,KAAKN,OAAL,GAAeA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