Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
No EOL
806 B
Text
22 lines
No EOL
806 B
Text
import { createOperatorSubscriber } from './OperatorSubscriber';
|
|
export function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
|
|
return (source, subscriber) => {
|
|
let hasState = hasSeed;
|
|
let state = seed;
|
|
let index = 0;
|
|
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
|
const i = index++;
|
|
state = hasState
|
|
?
|
|
accumulator(state, value, i)
|
|
:
|
|
((hasState = true), value);
|
|
emitOnNext && subscriber.next(state);
|
|
}, emitBeforeComplete &&
|
|
(() => {
|
|
hasState && subscriber.next(state);
|
|
subscriber.complete();
|
|
})));
|
|
};
|
|
}
|
|
//# sourceMappingURL=scanInternals.js.map |