Rocky_Mountain_Vending/.pnpm-store/v10/files/2b/910a602a91887edcd1dc474c2c97b6d3a740affa8ccf9d894cf64d7f703c70c01bd2acaf21fee1667bd31ba2c6f39df22f5b05618cb51cd2cbf1ee2d38b83e
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

39 lines
No EOL
1.7 KiB
Text

import { __extends } from "tslib";
import { Observable } from '../Observable';
import { Subscription } from '../Subscription';
import { SubscriptionLoggable } from './SubscriptionLoggable';
import { applyMixins } from '../util/applyMixins';
import { observeNotification } from '../Notification';
var ColdObservable = (function (_super) {
__extends(ColdObservable, _super);
function ColdObservable(messages, scheduler) {
var _this = _super.call(this, function (subscriber) {
var observable = this;
var index = observable.logSubscribedFrame();
var subscription = new Subscription();
subscription.add(new Subscription(function () {
observable.logUnsubscribedFrame(index);
}));
observable.scheduleMessages(subscriber);
return subscription;
}) || this;
_this.messages = messages;
_this.subscriptions = [];
_this.scheduler = scheduler;
return _this;
}
ColdObservable.prototype.scheduleMessages = function (subscriber) {
var messagesLength = this.messages.length;
for (var i = 0; i < messagesLength; i++) {
var message = this.messages[i];
subscriber.add(this.scheduler.schedule(function (state) {
var _a = state, notification = _a.message.notification, destination = _a.subscriber;
observeNotification(notification, destination);
}, message.frame, { message: message, subscriber: subscriber }));
}
};
return ColdObservable;
}(Observable));
export { ColdObservable };
applyMixins(ColdObservable, [SubscriptionLoggable]);
//# sourceMappingURL=ColdObservable.js.map