2024-09-30
This commit is contained in:
parent
ad2981ba77
commit
ff27cdf9a5
48 changed files with 159 additions and 63 deletions
|
|
@ -1,2 +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()});
|
||||
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()});
|
||||
//# sourceMappingURL=scripts-bouton-panier.js.map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue