2024-09-30

This commit is contained in:
gcch 2024-09-30 18:19:25 +02:00
commit 888b94cbf4
574 changed files with 1489 additions and 1282 deletions

View file

@ -0,0 +1,2 @@
import{x as r}from"./chunk-7BKSRZNG.js";import{z as i,N as a}from"./index.js";import{S as s,A as m}from"./dom.js";import{r as p}from"./dom2.js";import{r as c}from"./utils.js";import"./erreurs.js";import"./exports.js";import"./Either.js";const u=()=>{const e=r(c(s),p),o=new BroadcastChannel("bouton_panier");o.onmessage=n=>{i(n.data).with({donnees:a.select(),type:"maj_panier"},t=>{e.textContent=`cart (${String(t)})`,e.setAttribute(m,String(t>0))}).otherwise(()=>console.debug("lol"))},console.debug("scripts-bouton-panier",e)};document.addEventListener("DOMContentLoaded",()=>{u()});
//# sourceMappingURL=scripts-bouton-panier.js.map