Rocky_Mountain_Vending/.pnpm-store/v10/files/38/8503f0e46babfc61c8dde6e069788768866f206f37723e1c51bc09069f9beaff4bacf1dfbf0b3815ddd2d67d33e04968cbfcc3eaf79db8ee2c104157c5eb49
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

25 lines
No EOL
681 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = setRafTimeout;
function safeRequestAnimationFrame(callback) {
if (typeof requestAnimationFrame !== 'undefined') requestAnimationFrame(callback);
}
function setRafTimeout(callback) {
var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var currTime = -1;
var shouldUpdate = function shouldUpdate(now) {
if (currTime < 0) {
currTime = now;
}
if (now - currTime > timeout) {
callback(now);
currTime = -1;
} else {
safeRequestAnimationFrame(shouldUpdate);
}
};
requestAnimationFrame(shouldUpdate);
}