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

@ -1,2 +1,2 @@
import{r as m,z as R,N as o}from"./index.js";import{x as E}from"./chunk-7BKSRZNG.js";import{p as c}from"./index2.js";import{R as S}from"./api2.js";import{S as d,A as _,a as A}from"./dom.js";import{r as I,a as N}from"./dom2.js";import{r as p,D as h,l as v,a as C,b as T,c as P,E as L,d as b}from"./erreurs.js";import{e as g,a as O}from"./gardes.js";import{p as y}from"./reseau.js";import{W as w}from"./cart-remove-item.js";import{W as U}from"./cart.js";import{i as a}from"./erreurs2.js";import{r as B}from"./utils.js";import{M as D,E as W}from"./Either.js";import"./exports.js";const l=_etats,M=E(B(d),I),k=()=>{console.debug(l),M.forEach(r=>{const i=D.fromNullable(r.getAttribute(_));N(r)(A).ifLeft(()=>p(new h(`L'entrée « ${i.orDefault("CLE_PANIER_INEXISTANTE")} » n'a pas de Bouton de suppression.`))).ifRight(n=>{n.addEventListener("click",()=>{const u=i.ifNothing(()=>{r.remove()}).orDefault("CLE_IMPOSSIBLE");n.textContent="removing...",W.encase(()=>c(w,{key:u})).map(f=>{y({corps:JSON.stringify(f),nonce:l.nonce,route:S}).then(async e=>{g(e)&&v("500 Server Error"),E(await e.json(),m(t=>console.debug(t)),t=>R(t).with({body:o.select(),status:400},a,C).with({body:o.select(),status:401},a,T).with({body:o.select(),status:404},a,P).with(o._,s=>c(U,s)).otherwise(s=>E(s,L,b)),m(()=>r.remove()))}).catch(e=>{O(e)?(p(e),console.error(e)):console.error("e n'est pas une Erreur ?!",e)})})})})})};document.addEventListener("DOMContentLoaded",()=>{k()});
import{r as E}from"./chunk-RU7WR4KH.js";import{x as t}from"./chunk-7BKSRZNG.js";import{p}from"./index2.js";import{R as f}from"./api2.js";import{a as l,b as R,c as C}from"./dom.js";import{a as S,b as u}from"./dom2.js";import{r as n,D as T,l as A}from"./erreurs.js";import{e as N,a as _}from"./gardes.js";import{p as I,t as P}from"./reseau.js";import{W as d}from"./cart.js";import{W as L}from"./cart-remove-item.js";import{a as v}from"./utils.js";import{M as h,E as b}from"./Either.js";import"./exports.js";import"./index.js";import"./erreurs2.js";const m=_etats,g=t(v(l),S),O=()=>{console.debug(m),g.forEach(r=>{const s=h.fromNullable(r.getAttribute(R));u(r)(C).ifLeft(()=>t(new T(`L'entrée « ${s.orDefault("CLE_PANIER_INEXISTANTE")} » n'a pas de Bouton de suppression.`),n)).ifRight(a=>{a.addEventListener("click",()=>{const i=s.ifNothing(()=>{r.remove()}).orDefault("CLE_PANIER_INEXISTANTE");a.textContent="C= C= C= C= C=┌(;・ω・)┘",b.encase(()=>p(L,{key:i})).map(c=>{I({corps:JSON.stringify(c),nonce:m.nonce,route:f}).then(async e=>{N(e)&&A("500 Server Error"),t(await e.json(),E(o=>console.debug(o)),o=>P(o,d),E(()=>r.remove()))}).catch(e=>{_(e)?(n(e),console.error(e)):console.error("e n'est pas une Erreur ?!",e)})})})})})};document.addEventListener("DOMContentLoaded",()=>{O()});
//# sourceMappingURL=scripts-page-panier.js.map