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>
13 lines
No EOL
646 B
Text
13 lines
No EOL
646 B
Text
import { concat } from '../observable/concat';
|
|
import { take } from './take';
|
|
import { ignoreElements } from './ignoreElements';
|
|
import { mapTo } from './mapTo';
|
|
import { mergeMap } from './mergeMap';
|
|
import { innerFrom } from '../observable/innerFrom';
|
|
export function delayWhen(delayDurationSelector, subscriptionDelay) {
|
|
if (subscriptionDelay) {
|
|
return (source) => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));
|
|
}
|
|
return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));
|
|
}
|
|
//# sourceMappingURL=delayWhen.js.map |