2024-10-02

This commit is contained in:
gcch 2024-10-02 15:44:13 +02:00
commit 59a236f0fa
45 changed files with 230 additions and 106 deletions

View file

@ -1,2 +1,2 @@
import{r as s}from"./chunk-RU7WR4KH.js";import{p as a}from"./chunk-VROY5Y5B.js";import{x as r}from"./chunk-7BKSRZNG.js";import{s as p}from"./index.js";import{S as u,A as c}from"./dom.js";import{r as f}from"./dom2.js";import{M as E}from"./messages.js";import{r as d}from"./utils.js";import"./erreurs.js";import"./exports.js";import"./Either.js";import"./messages2.js";function T(...t){return t.length===2?(n,...o)=>m(n,...t,...o):m(...t)}var m=(t,n,o,...e)=>n(t,...e)?typeof o=="function"?o(t,...e):o.onTrue(t,...e):typeof o=="function"?t:o.onFalse(t,...e);const l=()=>{const t=r(d(u),f),n=new BroadcastChannel("bouton_panier");n.onmessage=o=>{r(p(E,o.data),T(e=>e.success,e=>r(a(e,"output"),s(i=>{t.textContent=`cart (${String(i.donnees)})`,t.setAttribute(c,String(i.donnees>0))}))))}};document.addEventListener("DOMContentLoaded",()=>{l()});
import{x as n}from"./chunk-7BKSRZNG.js";import{S as i,A as m}from"./dom.js";import{N as a}from"./messages3.js";import{r as s}from"./dom2.js";import{v as N}from"./messages.js";import{r as p}from"./utils.js";import"./erreurs.js";import"./exports.js";import"./Either.js";import"./index.js";import"./messages2.js";const E=()=>{const t=n(p(i),s),r=new BroadcastChannel(a);r.onmessage=o=>{N(o).ifRight(e=>{t.textContent=`cart (${String(e.donnees)})`,t.setAttribute(m,String(e.donnees>0))})}};document.addEventListener("DOMContentLoaded",()=>{E()});
//# sourceMappingURL=scripts-bouton-panier.js.map