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>
27 lines
No EOL
874 B
Text
27 lines
No EOL
874 B
Text
// Copyright 2022 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
import * as Helpers from '../helpers/helpers.js';
|
|
import * as Types from '../types/types.js';
|
|
const animations = [];
|
|
const animationsSyntheticEvents = [];
|
|
export function reset() {
|
|
animations.length = 0;
|
|
animationsSyntheticEvents.length = 0;
|
|
}
|
|
export function handleEvent(event) {
|
|
if (Types.Events.isAnimation(event)) {
|
|
animations.push(event);
|
|
return;
|
|
}
|
|
}
|
|
export async function finalize() {
|
|
const syntheticEvents = Helpers.Trace.createMatchedSortedSyntheticEvents(animations);
|
|
animationsSyntheticEvents.push(...syntheticEvents);
|
|
}
|
|
export function data() {
|
|
return {
|
|
animations: animationsSyntheticEvents,
|
|
};
|
|
}
|
|
//# sourceMappingURL=AnimationHandler.js.map |