feat(reservation): Ajoute le panier et sélection de date globale

Ajoute un composant de panier accessible depuis toutes les pages de réservation et un sélecteur de date global.
```
This commit is contained in:
Serreau Jovann
2026-01-30 15:59:19 +01:00
parent 05a53e9efe
commit a6fc8fdf3b
3 changed files with 86 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ import { UtmEvent, UtmAccount } from "./tools/UtmEvent.js";
import { CookieBanner } from "./tools/CookieBanner.js";
import { FlowReserve } from "./tools/FlowReserve.js";
import { FlowDatePicker } from "./tools/FlowDatePicker.js";
import { FlowAddToCart } from "./tools/FlowAddToCart.js";
import * as Turbo from "@hotwired/turbo";
import { onLCP, onINP, onCLS } from 'web-vitals';
import AOS from 'aos';
@@ -259,6 +260,9 @@ const registerComponents = () => {
if(!customElements.get('flow-datepicker'))
customElements.define('flow-datepicker',FlowDatePicker)
if(!customElements.get('flow-add-to-cart'))
customElements.define('flow-add-to-cart',FlowAddToCart)
};
document.addEventListener('DOMContentLoaded', () => {