fonc(à-propos) termine la page
This commit is contained in:
parent
a565d3bc7b
commit
7276dff1a4
114 changed files with 448 additions and 14475 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -43,6 +43,7 @@
|
||||||
}
|
}
|
||||||
#page-a-propos .storytelling .texte#texte-4 {
|
#page-a-propos .storytelling .texte#texte-4 {
|
||||||
top: 139rem;
|
top: 139rem;
|
||||||
|
left: 11rem;
|
||||||
}
|
}
|
||||||
#page-a-propos .storytelling .texte#texte-5 {
|
#page-a-propos .storytelling .texte#texte-5 {
|
||||||
top: 156rem;
|
top: 156rem;
|
||||||
|
|
@ -59,33 +60,33 @@
|
||||||
right: 46.5%;
|
right: 46.5%;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
#page-a-propos .storytelling .epingle[data-ensemble-epingle-boite-actif] img {
|
|
||||||
filter: drop-shadow(1px 1px 5px var(--couleur-gris-fonce));
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-1 {
|
|
||||||
top: 2%;
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-2 {
|
|
||||||
top: 23%;
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-3 {
|
|
||||||
top: 35%;
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-4 {
|
|
||||||
top: 58%;
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-5 {
|
|
||||||
top: 76%;
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-6 {
|
|
||||||
top: 95.5%;
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .epingle img {
|
#page-a-propos .storytelling .epingle img {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
width: 1.5rem;
|
width: 1.5rem;
|
||||||
filter: drop-shadow(1px 1px 3px var(--couleur-gris-fonce));
|
filter: drop-shadow(1px 1px 3px var(--couleur-gris-fonce));
|
||||||
transition: 0.2s filter;
|
transition: 0.2s filter;
|
||||||
}
|
}
|
||||||
|
#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="1"] {
|
||||||
|
top: 2%;
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="2"] {
|
||||||
|
top: 23%;
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="3"] {
|
||||||
|
top: 35%;
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="4"] {
|
||||||
|
top: 58%;
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="5"] {
|
||||||
|
top: 76%;
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="6"] {
|
||||||
|
top: 95.5%;
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .epingle[data-ensemble-epingle-boite-actif] img {
|
||||||
|
filter: drop-shadow(1px 1px 5px var(--couleur-gris-fonce));
|
||||||
|
}
|
||||||
#page-a-propos .storytelling .boite-texte {
|
#page-a-propos .storytelling .boite-texte {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
@ -102,29 +103,20 @@
|
||||||
border: 1px solid var(--couleur-noir);
|
border: 1px solid var(--couleur-noir);
|
||||||
transition: 0.2s opacity, 0.2s visibility;
|
transition: 0.2s opacity, 0.2s visibility;
|
||||||
}
|
}
|
||||||
#page-a-propos .storytelling .boite-texte[data-ensemble-epingle-boite-actif] {
|
#page-a-propos .storytelling .boite-texte button {
|
||||||
visibility: visible;
|
position: absolute;
|
||||||
opacity: 1;
|
top: 0;
|
||||||
|
right: calc(-1.5rem - var(--espace-m) - var(--espace-xs));
|
||||||
|
align-self: end;
|
||||||
|
padding: var(--espace-xs);
|
||||||
}
|
}
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-2 {
|
#page-a-propos .storytelling .boite-texte button img {
|
||||||
--hauteur-boite: calc(7lh + 1rem + var(--espace-l) * 2);
|
pointer-events: none;
|
||||||
top: calc(23% - var(--hauteur-boite) / 2);
|
aspect-ratio: 1;
|
||||||
|
width: 1.5rem;
|
||||||
}
|
}
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-3 {
|
#page-a-propos .storytelling .boite-texte button:active {
|
||||||
--hauteur-boite: calc(7lh + 1rem + var(--espace-l) * 2);
|
background: var(--couleur-jaune);
|
||||||
top: calc(35% - var(--hauteur-boite) / 2);
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-4 {
|
|
||||||
--hauteur-boite: calc(8lh + 2rem + var(--espace-l) * 2);
|
|
||||||
top: calc(58% - var(--hauteur-boite) / 2);
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-5 {
|
|
||||||
--hauteur-boite: calc(12lh + 2rem + var(--espace-l) * 2);
|
|
||||||
top: calc(76% - var(--hauteur-boite) / 2);
|
|
||||||
}
|
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-6 {
|
|
||||||
--hauteur-boite: calc(7lh + 1rem + var(--espace-l) * 2);
|
|
||||||
top: calc(95.5% - var(--hauteur-boite) / 2);
|
|
||||||
}
|
}
|
||||||
#page-a-propos .storytelling .boite-texte p {
|
#page-a-propos .storytelling .boite-texte p {
|
||||||
max-width: 15rem;
|
max-width: 15rem;
|
||||||
|
|
@ -132,6 +124,30 @@
|
||||||
#page-a-propos .storytelling .boite-texte p + p {
|
#page-a-propos .storytelling .boite-texte p + p {
|
||||||
margin-top: var(--espace-m);
|
margin-top: var(--espace-m);
|
||||||
}
|
}
|
||||||
|
#page-a-propos .storytelling .boite-texte[data-ensemble-epingle-boite-actif] {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="2"] {
|
||||||
|
--hauteur-boite: calc(7lh + 1rem + var(--espace-l) * 2);
|
||||||
|
top: calc(23% - var(--hauteur-boite) / 2);
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="3"] {
|
||||||
|
--hauteur-boite: calc(7lh + 1rem + var(--espace-l) * 2);
|
||||||
|
top: calc(35% - var(--hauteur-boite) / 2);
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="4"] {
|
||||||
|
--hauteur-boite: calc(8lh + 2rem + var(--espace-l) * 2);
|
||||||
|
top: calc(58% - var(--hauteur-boite) / 2);
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="5"] {
|
||||||
|
--hauteur-boite: calc(12lh + 2rem + var(--espace-l) * 2);
|
||||||
|
top: calc(76% - var(--hauteur-boite) / 2);
|
||||||
|
}
|
||||||
|
#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="6"] {
|
||||||
|
--hauteur-boite: calc(7lh + 1rem + var(--espace-l) * 2);
|
||||||
|
top: calc(95.5% - var(--hauteur-boite) / 2);
|
||||||
|
}
|
||||||
@media (width <= 1300px) {
|
@media (width <= 1300px) {
|
||||||
#page-a-propos .storytelling .texte {
|
#page-a-propos .storytelling .texte {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sourceRoot":"","sources":["../../../src/sass/pages/page-a-propos.scss"],"names":[],"mappings":"AAEA;EAEE;EAGA;EACA;EAEA;EACA;EACA;;AAEA;EACE;EACA;;AAEA;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;AACA;EACA;EACA;;AAEA;EACE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;;AAGF;EACE;;AAIJ;EACE;EACA;EACA;;AAGE;EACE;;AAIJ;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;EACA;EACA;EACA;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAGF;EACE;EAEA;;AAGF;EACE;EAEA;;AAGF;EACE;EAEA;;AAGF;EACE;EAEA;;AAGF;EACE;EAEA;;AAGF;EACE;;AAEA;EACE;;AAMR;EAEI;IACE;;EAGF;IACE;;;AAKN;EA1LF;IA2LI","file":"page-a-propos.css"}
|
{"version":3,"sourceRoot":"","sources":["../../../src/sass/pages/page-a-propos.scss"],"names":[],"mappings":"AAEA;EAEE;EAGA;EACA;EAEA;EACA;EACA;;AAEA;EACE;EACA;;AAEA;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;AACA;EACA;EACA;;AAEA;EACE;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;AAGF;EACE;;AAIJ;EACE;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAGF;EACE;;AAIA;EACE;;AAKN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAGF;EACE;;AAIJ;EACE;;AAEA;EACE;;AAIJ;EACE;EACA;;AAGF;EACE;EAEA;;AAGF;EACE;EAEA;;AAGF;EACE;EAEA;;AAGF;EACE;EAEA;;AAGF;EACE;EAEA;;AAKN;EAEI;IACE;;EAGF;IACE;;;AAKN;EA9MF;IA+MI","file":"page-a-propos.css"}
|
||||||
|
|
@ -1,180 +1,2 @@
|
||||||
#page-a-propos {
|
#page-a-propos{--images-longueur-maximale:1300px;--page-marges-bloc-debut:var(--en-tete-hauteur);--images-marges-ligne:var(--espace-xl)*2;margin-top:var(--page-marges-bloc-debut);flex-flow:column;display:flex}#page-a-propos .storytelling{padding:var(--espace-xl)0;color:var(--couleur-gris-fonce)}#page-a-propos .storytelling__conteneur{width:min(var(--images-longueur-maximale),100% - var(--images-marges-ligne));margin:auto;position:relative}#page-a-propos .storytelling img{object-fit:contain;background:0 0;width:max-content;height:auto}#page-a-propos .storytelling .texte{text-wrap:balance;text-wrap:pretty;max-width:22rem;font-style:italic;font-weight:500;position:absolute}#page-a-propos .storytelling .texte#texte-1{top:33rem;right:4rem}#page-a-propos .storytelling .texte#texte-2{top:61.5rem}#page-a-propos .storytelling .texte#texte-3{top:81.5rem;right:4rem}#page-a-propos .storytelling .texte#texte-4{top:139rem;left:11rem}#page-a-propos .storytelling .texte#texte-5{top:156rem;right:4rem}#page-a-propos .storytelling .texte#texte-6{bottom:3rem}#page-a-propos .storytelling .texte p+p{margin-top:var(--espace-m)}#page-a-propos .storytelling .epingle{display:none;position:absolute;right:46.5%}#page-a-propos .storytelling .epingle img{pointer-events:none;filter:drop-shadow(1px 1px 3px var(--couleur-gris-fonce));width:1.5rem;transition:filter .2s}#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="1"]{top:2%}#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="2"]{top:23%}#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="3"]{top:35%}#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="4"]{top:58%}#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="5"]{top:76%}#page-a-propos .storytelling .epingle[data-id-ensemble-epingle-boite="6"]{top:95.5%}#page-a-propos .storytelling .epingle[data-ensemble-epingle-boite-actif] img{filter:drop-shadow(1px 1px 5px var(--couleur-gris-fonce))}#page-a-propos .storytelling .boite-texte{top:0;right:calc(46.5% - (15rem + var(--espace-l))/2);padding:var(--espace-l);color:var(--couleur-noir);visibility:hidden;opacity:0;background:var(--couleur-fond);border:1px solid var(--couleur-noir);flex-flow:column;font-size:.8rem;font-style:italic;transition:opacity .2s,visibility .2s;display:flex;position:absolute}#page-a-propos .storytelling .boite-texte button{top:0;right:calc(-1.5rem - var(--espace-m) - var(--espace-xs));padding:var(--espace-xs);align-self:end;position:absolute}#page-a-propos .storytelling .boite-texte button img{pointer-events:none;aspect-ratio:1;width:1.5rem}#page-a-propos .storytelling .boite-texte button:active{background:var(--couleur-jaune)}#page-a-propos .storytelling .boite-texte p{max-width:15rem}#page-a-propos .storytelling .boite-texte p+p{margin-top:var(--espace-m)}#page-a-propos .storytelling .boite-texte[data-ensemble-epingle-boite-actif]{visibility:visible;opacity:1}#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="2"]{--hauteur-boite:calc(7lh + 1rem + var(--espace-l)*2);top:calc(23% - var(--hauteur-boite)/2)}#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="3"]{--hauteur-boite:calc(7lh + 1rem + var(--espace-l)*2);top:calc(35% - var(--hauteur-boite)/2)}#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="4"]{--hauteur-boite:calc(8lh + 2rem + var(--espace-l)*2);top:calc(58% - var(--hauteur-boite)/2)}#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="5"]{--hauteur-boite:calc(12lh + 2rem + var(--espace-l)*2);top:calc(76% - var(--hauteur-boite)/2)}#page-a-propos .storytelling .boite-texte[data-id-ensemble-epingle-boite="6"]{--hauteur-boite:calc(7lh + 1rem + var(--espace-l)*2);top:calc(95.5% - var(--hauteur-boite)/2)}@media (width<=1300px){#page-a-propos .storytelling .texte{display:none}#page-a-propos .storytelling .epingle{display:initial}}@media (width<=700px){#page-a-propos{--images-marges-ligne:var(--espace-m)}}
|
||||||
--images-longueur-maximale: 1300px;
|
|
||||||
--page-marges-bloc-debut: var(--en-tete-hauteur);
|
|
||||||
--images-marges-ligne: var(--espace-xl) * 2;
|
|
||||||
margin-top: var(--page-marges-bloc-debut);
|
|
||||||
flex-flow: column;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling {
|
|
||||||
padding: var(--espace-xl) 0;
|
|
||||||
color: var(--couleur-gris-fonce);
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling__conteneur {
|
|
||||||
width: min(var(--images-longueur-maximale), 100% - var(--images-marges-ligne));
|
|
||||||
margin: auto;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling img {
|
|
||||||
object-fit: contain;
|
|
||||||
background: none;
|
|
||||||
width: max-content;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .texte {
|
|
||||||
text-wrap: balance;
|
|
||||||
text-wrap: pretty;
|
|
||||||
max-width: 22rem;
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 500;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .texte#texte-1 {
|
|
||||||
top: 33rem;
|
|
||||||
right: 4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .texte#texte-2 {
|
|
||||||
top: 61.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .texte#texte-3 {
|
|
||||||
top: 81.5rem;
|
|
||||||
right: 4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .texte#texte-4 {
|
|
||||||
top: 139rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .texte#texte-5 {
|
|
||||||
top: 156rem;
|
|
||||||
right: 4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .texte#texte-6 {
|
|
||||||
bottom: 3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .texte p + p {
|
|
||||||
margin-top: var(--espace-m);
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle {
|
|
||||||
display: none;
|
|
||||||
position: absolute;
|
|
||||||
right: 46.5%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle[data-ensemble-epingle-boite-actif] img {
|
|
||||||
filter: drop-shadow(1px 1px 5px var(--couleur-gris-fonce));
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-1 {
|
|
||||||
top: 2%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-2 {
|
|
||||||
top: 23%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-3 {
|
|
||||||
top: 35%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-4 {
|
|
||||||
top: 58%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-5 {
|
|
||||||
top: 76%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle#epingle-6 {
|
|
||||||
top: 95.5%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle img {
|
|
||||||
pointer-events: none;
|
|
||||||
filter: drop-shadow(1px 1px 3px var(--couleur-gris-fonce));
|
|
||||||
width: 1.5rem;
|
|
||||||
transition: filter .2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .boite-texte {
|
|
||||||
top: 0;
|
|
||||||
right: calc(46.5% - (15rem + var(--espace-l)) / 2);
|
|
||||||
padding: var(--espace-l);
|
|
||||||
color: var(--couleur-noir);
|
|
||||||
visibility: hidden;
|
|
||||||
opacity: 0;
|
|
||||||
background: var(--couleur-fond);
|
|
||||||
border: 1px solid var(--couleur-noir);
|
|
||||||
flex-flow: column;
|
|
||||||
font-size: .8rem;
|
|
||||||
font-style: italic;
|
|
||||||
transition: opacity .2s, visibility .2s;
|
|
||||||
display: flex;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .boite-texte[data-ensemble-epingle-boite-actif] {
|
|
||||||
visibility: visible;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-2 {
|
|
||||||
--hauteur-boite: calc(7lh + 1rem + var(--espace-l) * 2);
|
|
||||||
top: calc(23% - var(--hauteur-boite) / 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-3 {
|
|
||||||
--hauteur-boite: calc(7lh + 1rem + var(--espace-l) * 2);
|
|
||||||
top: calc(35% - var(--hauteur-boite) / 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-4 {
|
|
||||||
--hauteur-boite: calc(8lh + 2rem + var(--espace-l) * 2);
|
|
||||||
top: calc(58% - var(--hauteur-boite) / 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-5 {
|
|
||||||
--hauteur-boite: calc(12lh + 2rem + var(--espace-l) * 2);
|
|
||||||
top: calc(76% - var(--hauteur-boite) / 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .boite-texte#boite-texte-6 {
|
|
||||||
--hauteur-boite: calc(7lh + 1rem + var(--espace-l) * 2);
|
|
||||||
top: calc(95.5% - var(--hauteur-boite) / 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .boite-texte p {
|
|
||||||
max-width: 15rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .boite-texte p + p {
|
|
||||||
margin-top: var(--espace-m);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (width <= 1300px) {
|
|
||||||
#page-a-propos .storytelling .texte {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-a-propos .storytelling .epingle {
|
|
||||||
display: initial;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (width <= 700px) {
|
|
||||||
#page-a-propos {
|
|
||||||
--images-marges-ligne: var(--espace-m);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*# sourceMappingURL=web/app/themes/haiku-atelier-2024/assets/css/pages/page-a-propos.min.css.map */
|
/*# sourceMappingURL=web/app/themes/haiku-atelier-2024/assets/css/pages/page-a-propos.min.css.map */
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,53 +1,2 @@
|
||||||
#page-accueil {
|
#page-accueil{--hauteur-conteneur:calc(100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur));--page-marges-bloc-debut:var(--en-tete-hauteur);min-height:var(--hauteur-conteneur);max-height:var(--hauteur-conteneur);margin-top:var(--page-marges-bloc-debut);flex-flow:column;display:flex;overflow:hidden}#page-accueil .storytelling{scrollbar-width:none;min-height:inherit;max-height:inherit;place-items:center;overflow-y:scroll}#page-accueil .storytelling__conteneur{min-height:calc(var(--hauteur-conteneur)*10);padding:0 var(--espace-xl);flex-flow:column;display:flex}#page-accueil .storytelling__image{min-height:var(--hauteur-conteneur);max-height:var(--hauteur-conteneur);align-content:center;width:100%;position:sticky;top:0}#page-accueil .storytelling__image[data-cache]{visibility:hidden;opacity:0}#page-accueil .storytelling__image picture{max-height:inherit}#page-accueil .storytelling__image img{max-height:inherit;object-fit:contain;background:0 0;margin:auto;scale:.9}
|
||||||
--hauteur-conteneur: calc(100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur));
|
|
||||||
--page-marges-bloc-debut: var(--en-tete-hauteur);
|
|
||||||
min-height: var(--hauteur-conteneur);
|
|
||||||
max-height: var(--hauteur-conteneur);
|
|
||||||
margin-top: var(--page-marges-bloc-debut);
|
|
||||||
flex-flow: column;
|
|
||||||
display: flex;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-accueil .storytelling {
|
|
||||||
scrollbar-width: none;
|
|
||||||
min-height: inherit;
|
|
||||||
max-height: inherit;
|
|
||||||
place-items: center;
|
|
||||||
overflow-y: scroll;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-accueil .storytelling__conteneur {
|
|
||||||
min-height: calc(var(--hauteur-conteneur) * 10);
|
|
||||||
padding: 0 var(--espace-xl);
|
|
||||||
flex-flow: column;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-accueil .storytelling__image {
|
|
||||||
min-height: var(--hauteur-conteneur);
|
|
||||||
max-height: var(--hauteur-conteneur);
|
|
||||||
align-content: center;
|
|
||||||
width: 100%;
|
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-accueil .storytelling__image[data-cache] {
|
|
||||||
visibility: hidden;
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-accueil .storytelling__image picture {
|
|
||||||
max-height: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-accueil .storytelling__image img {
|
|
||||||
max-height: inherit;
|
|
||||||
object-fit: contain;
|
|
||||||
background: none;
|
|
||||||
margin: auto;
|
|
||||||
scale: .9;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*# sourceMappingURL=web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.min.css.map */
|
/*# sourceMappingURL=web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.min.css.map */
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"mappings":"AAAA;;;;;;;;;;;AAYA;;;;;;;;AAOA;;;;;;;AAMA;;;;;;;;;AAQA;;;;;AAIA;;;;AAGA","sources":["web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css"],"sourcesContent":["#page-accueil {\n /* Dimensions */\n --hauteur-conteneur: calc(100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur));\n /* Marges */\n --page-marges-bloc-debut: var(--en-tete-hauteur);\n overflow: hidden;\n display: flex;\n flex-flow: column nowrap;\n min-height: var(--hauteur-conteneur);\n max-height: var(--hauteur-conteneur);\n margin-top: var(--page-marges-bloc-debut);\n}\n#page-accueil .storytelling {\n scrollbar-width: none;\n overflow-y: scroll;\n place-items: center;\n min-height: inherit;\n max-height: inherit;\n}\n#page-accueil .storytelling__conteneur {\n display: flex;\n flex-flow: column nowrap;\n min-height: calc(var(--hauteur-conteneur) * 10);\n padding: 0 var(--espace-xl);\n}\n#page-accueil .storytelling__image {\n position: sticky;\n top: 0;\n align-content: center;\n width: 100%;\n min-height: var(--hauteur-conteneur);\n max-height: var(--hauteur-conteneur);\n}\n#page-accueil .storytelling__image[data-cache] {\n visibility: hidden;\n opacity: 0;\n}\n#page-accueil .storytelling__image picture {\n max-height: inherit;\n}\n#page-accueil .storytelling__image img {\n scale: 0.9;\n max-height: inherit;\n margin: auto;\n object-fit: contain;\n background: transparent;\n}\n\n/*# sourceMappingURL=page-accueil.css.map */\n"],"names":[]}
|
{"version":3,"mappings":"AAAA,qTAYA,4HAOA,6IAMA,iKAQA,2EAIA,8DAGA","sources":["web/app/themes/haiku-atelier-2024/assets/css/pages/page-accueil.css"],"sourcesContent":["#page-accueil {\n /* Dimensions */\n --hauteur-conteneur: calc(100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur));\n /* Marges */\n --page-marges-bloc-debut: var(--en-tete-hauteur);\n overflow: hidden;\n display: flex;\n flex-flow: column nowrap;\n min-height: var(--hauteur-conteneur);\n max-height: var(--hauteur-conteneur);\n margin-top: var(--page-marges-bloc-debut);\n}\n#page-accueil .storytelling {\n scrollbar-width: none;\n overflow-y: scroll;\n place-items: center;\n min-height: inherit;\n max-height: inherit;\n}\n#page-accueil .storytelling__conteneur {\n display: flex;\n flex-flow: column nowrap;\n min-height: calc(var(--hauteur-conteneur) * 10);\n padding: 0 var(--espace-xl);\n}\n#page-accueil .storytelling__image {\n position: sticky;\n top: 0;\n align-content: center;\n width: 100%;\n min-height: var(--hauteur-conteneur);\n max-height: var(--hauteur-conteneur);\n}\n#page-accueil .storytelling__image[data-cache] {\n visibility: hidden;\n opacity: 0;\n}\n#page-accueil .storytelling__image picture {\n max-height: inherit;\n}\n#page-accueil .storytelling__image img {\n scale: 0.9;\n max-height: inherit;\n margin: auto;\n object-fit: contain;\n background: transparent;\n}\n\n/*# sourceMappingURL=page-accueil.css.map */\n"],"names":[]}
|
||||||
|
|
@ -1,12 +1,2 @@
|
||||||
#page-boutique .actions {
|
#page-boutique .actions{text-align:center;align-content:center;width:100%}#page-boutique .actions button{padding:var(--espace-xl)0;margin:auto}
|
||||||
text-align: center;
|
|
||||||
align-content: center;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-boutique .actions button {
|
|
||||||
padding: var(--espace-xl) 0;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*# sourceMappingURL=web/app/themes/haiku-atelier-2024/assets/css/pages/page-boutique.min.css.map */
|
/*# sourceMappingURL=web/app/themes/haiku-atelier-2024/assets/css/pages/page-boutique.min.css.map */
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"mappings":"AAAA;;;;;;AAKA","sources":["web/app/themes/haiku-atelier-2024/assets/css/pages/page-boutique.css"],"sourcesContent":["#page-boutique .actions {\n align-content: center;\n width: 100%;\n text-align: center;\n}\n#page-boutique .actions button {\n margin: auto;\n padding: var(--espace-xl) 0;\n}\n\n/*# sourceMappingURL=page-boutique.css.map */\n"],"names":[]}
|
{"version":3,"mappings":"AAAA,0EAKA","sources":["web/app/themes/haiku-atelier-2024/assets/css/pages/page-boutique.css"],"sourcesContent":["#page-boutique .actions {\n align-content: center;\n width: 100%;\n text-align: center;\n}\n#page-boutique .actions button {\n margin: auto;\n padding: var(--espace-xl) 0;\n}\n\n/*# sourceMappingURL=page-boutique.css.map */\n"],"names":[]}
|
||||||
|
|
@ -1,60 +1,2 @@
|
||||||
#page-contact {
|
#page-contact{--page-hauteur-minimale:calc(100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur) - var(--espace-xl) - 1px);--page-marges-bloc-debut:var(--en-tete-hauteur);margin-top:var(--page-marges-bloc-debut);margin-bottom:var(--espace-xl);border-bottom:1px solid var(--couleur-noir);flex-flow:column;display:flex}#page-contact .contenu{min-height:var(--page-hauteur-minimale);border:1px solid var(--couleur-noir);border-bottom:initial;flex-flow:column;place-items:center;width:min(50rem,100%);margin:auto;font-style:italic;font-weight:500;display:flex}#page-contact .contenu__en-tete{padding:var(--espace-m)var(--espace-xl);color:var(--couleur-blanc);background:var(--couleur-noir);width:100%}#page-contact .contenu__en-tete h2{text-transform:uppercase;letter-spacing:var(--espacement-inter-lettres-etendu-l);width:fit-content;margin:auto}#page-contact .contenu__textuel{padding:0 var(--espace-xl);text-wrap:pretty;flex-flow:column;flex:1;place-content:center;max-width:34rem;height:100%;display:flex}#page-contact .contenu__textuel p+p{margin-top:var(--espace-m)}@media (width<=50rem){#page-contact .contenu{border-right:initial;border-left:initial}}
|
||||||
--page-hauteur-minimale: calc(100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur) - var(--espace-xl) - 1px);
|
|
||||||
--page-marges-bloc-debut: var(--en-tete-hauteur);
|
|
||||||
margin-top: var(--page-marges-bloc-debut);
|
|
||||||
margin-bottom: var(--espace-xl);
|
|
||||||
border-bottom: 1px solid var(--couleur-noir);
|
|
||||||
flex-flow: column;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-contact .contenu {
|
|
||||||
min-height: var(--page-hauteur-minimale);
|
|
||||||
border: 1px solid var(--couleur-noir);
|
|
||||||
border-bottom: initial;
|
|
||||||
flex-flow: column;
|
|
||||||
place-items: center;
|
|
||||||
width: min(50rem, 100%);
|
|
||||||
margin: auto;
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 500;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-contact .contenu__en-tete {
|
|
||||||
padding: var(--espace-m) var(--espace-xl);
|
|
||||||
color: var(--couleur-blanc);
|
|
||||||
background: var(--couleur-noir);
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-contact .contenu__en-tete h2 {
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: var(--espacement-inter-lettres-etendu-l);
|
|
||||||
width: fit-content;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-contact .contenu__textuel {
|
|
||||||
padding: 0 var(--espace-xl);
|
|
||||||
text-wrap: pretty;
|
|
||||||
flex-flow: column;
|
|
||||||
flex: 1;
|
|
||||||
place-content: center;
|
|
||||||
max-width: 34rem;
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-contact .contenu__textuel p + p {
|
|
||||||
margin-top: var(--espace-m);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (width <= 50rem) {
|
|
||||||
#page-contact .contenu {
|
|
||||||
border-right: initial;
|
|
||||||
border-left: initial;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*# sourceMappingURL=web/app/themes/haiku-atelier-2024/assets/css/pages/page-contact.min.css.map */
|
/*# sourceMappingURL=web/app/themes/haiku-atelier-2024/assets/css/pages/page-contact.min.css.map */
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"mappings":"AAAA;;;;;;;;;;AAaA;;;;;;;;;;;;;AAYA;;;;;;;AAMA;;;;;;;AAMA;;;;;;;;;;;AAUA;;;;AAGA;EACE","sources":["web/app/themes/haiku-atelier-2024/assets/css/pages/page-contact.css"],"sourcesContent":["#page-contact {\n /* Dimensions */\n --page-hauteur-minimale: calc(\n 100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur) - var(--espace-xl) - 1px\n );\n /* Marges */\n --page-marges-bloc-debut: var(--en-tete-hauteur);\n display: flex;\n flex-flow: column nowrap;\n margin-top: var(--page-marges-bloc-debut);\n margin-bottom: var(--espace-xl);\n border-bottom: 1px solid var(--couleur-noir);\n}\n#page-contact .contenu {\n display: flex;\n flex-flow: column nowrap;\n place-items: center;\n width: min(50rem, 100%);\n min-height: var(--page-hauteur-minimale);\n margin: auto;\n font-weight: 500;\n font-style: italic;\n border: 1px solid var(--couleur-noir);\n border-bottom: initial;\n}\n#page-contact .contenu__en-tete {\n width: 100%;\n padding: var(--espace-m) var(--espace-xl);\n color: var(--couleur-blanc);\n background: var(--couleur-noir);\n}\n#page-contact .contenu__en-tete h2 {\n width: fit-content;\n margin: auto;\n text-transform: uppercase;\n letter-spacing: var(--espacement-inter-lettres-etendu-l);\n}\n#page-contact .contenu__textuel {\n display: flex;\n flex: 1;\n flex-flow: column nowrap;\n place-content: center;\n max-width: 34rem;\n height: 100%;\n padding: 0 var(--espace-xl);\n text-wrap: pretty;\n}\n#page-contact .contenu__textuel p + p {\n margin-top: var(--espace-m);\n}\n@media (width <= 50rem) {\n #page-contact .contenu {\n border-right: initial;\n border-left: initial;\n }\n}\n\n/*# sourceMappingURL=page-contact.css.map */\n"],"names":[]}
|
{"version":3,"mappings":"AAAA,qUAaA,+OAYA,6IAMA,kJAMA,kKAUA,+DAGA,sBACE","sources":["web/app/themes/haiku-atelier-2024/assets/css/pages/page-contact.css"],"sourcesContent":["#page-contact {\n /* Dimensions */\n --page-hauteur-minimale: calc(\n 100svh - var(--en-tete-hauteur) - var(--pied-de-page-hauteur) - var(--espace-xl) - 1px\n );\n /* Marges */\n --page-marges-bloc-debut: var(--en-tete-hauteur);\n display: flex;\n flex-flow: column nowrap;\n margin-top: var(--page-marges-bloc-debut);\n margin-bottom: var(--espace-xl);\n border-bottom: 1px solid var(--couleur-noir);\n}\n#page-contact .contenu {\n display: flex;\n flex-flow: column nowrap;\n place-items: center;\n width: min(50rem, 100%);\n min-height: var(--page-hauteur-minimale);\n margin: auto;\n font-weight: 500;\n font-style: italic;\n border: 1px solid var(--couleur-noir);\n border-bottom: initial;\n}\n#page-contact .contenu__en-tete {\n width: 100%;\n padding: var(--espace-m) var(--espace-xl);\n color: var(--couleur-blanc);\n background: var(--couleur-noir);\n}\n#page-contact .contenu__en-tete h2 {\n width: fit-content;\n margin: auto;\n text-transform: uppercase;\n letter-spacing: var(--espacement-inter-lettres-etendu-l);\n}\n#page-contact .contenu__textuel {\n display: flex;\n flex: 1;\n flex-flow: column nowrap;\n place-content: center;\n max-width: 34rem;\n height: 100%;\n padding: 0 var(--espace-xl);\n text-wrap: pretty;\n}\n#page-contact .contenu__textuel p + p {\n margin-top: var(--espace-m);\n}\n@media (width <= 50rem) {\n #page-contact .contenu {\n border-right: initial;\n border-left: initial;\n }\n}\n\n/*# sourceMappingURL=page-contact.css.map */\n"],"names":[]}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon line-color" data-name="Line Color" viewBox="0 0 24 24"><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 19 5 5"/><path fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 5 5 19" data-name="primary"/></svg>
|
||||||
|
After Width: | Height: | Size: 358 B |
|
|
@ -1,88 +1,88 @@
|
||||||
{
|
{
|
||||||
"_Either.wHNxn7Os.js": {
|
"_Either.DDEPhGsy.js": {
|
||||||
"file": "Either.wHNxn7Os.js",
|
"file": "Either.DDEPhGsy.js",
|
||||||
"name": "Either",
|
"name": "Either",
|
||||||
"integrity": "sha512-iA88qYfaqIo+2/H0VzUP5VPULY8gMF4bgybyguKQQj/k1/LKHmurwKDvKCIPz3/kdz+2jUjG9/vlqu9+i6/klg=="
|
"integrity": "sha512-w98l1X29rZRAb9QNAPGv+72ZO6IMIYToA4BLgfV9IkGMqhZaQSB0BblHRHACpCCHcy9cUrXxSyEBHWrqsULetQ=="
|
||||||
},
|
},
|
||||||
"_MaybeAsync.AE1jnxuc.js": {
|
"_MaybeAsync.BkJailCK.js": {
|
||||||
"file": "MaybeAsync.AE1jnxuc.js",
|
"file": "MaybeAsync.BkJailCK.js",
|
||||||
"name": "MaybeAsync",
|
"name": "MaybeAsync",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_Either.wHNxn7Os.js"
|
"_Either.DDEPhGsy.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-zBecrvIRiJOu6YYRpnc0k8S2hhntD+UpPtg3zhLd4KQSyWdXQTt6ubhfDTOhBtMYi/W1LLcZX89krSQqxkWfGA=="
|
"integrity": "sha512-hUxlQJ+hln2CyZl20Z9Q68G4yg0zvtlhNrV11IropaegfCZgub24HSC6YlUKwzBPhkxB0qriMMVdg1A7tttxXg=="
|
||||||
},
|
},
|
||||||
"_belt_Option-91f3b350.BEnQsSyX.js": {
|
"_belt_Option-91f3b350.aHdMVyeC.js": {
|
||||||
"file": "belt_Option-91f3b350.BEnQsSyX.js",
|
"file": "belt_Option-91f3b350.aHdMVyeC.js",
|
||||||
"name": "belt_Option-91f3b350",
|
"name": "belt_Option-91f3b350",
|
||||||
"imports": [
|
"imports": [
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts"
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-gD4FM0FjVEKvuMqyyIFHC5KmLSroOnMSYRVGofVTfveXikdru921+CaJObSD8sOxCvpYjH5rVZinsboKghYZSw=="
|
"integrity": "sha512-3LbXWzK8Xsm5qxQW/88rzWh6LywWtKEXVoei30+DIGyu8q1O89eaveXnVmSKejELYhdXfwiSQZyj6zvmSoxRdA=="
|
||||||
},
|
},
|
||||||
"_exports.BuUzFliQ.js": {
|
"_exports.LfjCCHHP.js": {
|
||||||
"file": "exports.BuUzFliQ.js",
|
"file": "exports.LfjCCHHP.js",
|
||||||
"name": "exports",
|
"name": "exports",
|
||||||
"integrity": "sha512-NnL7sWHucQtUmMgMvhJTrk64JiN/8br3JXx2s/9r3713TBEdhn3QyHu4zO0a8GteZitjxC5mzMGP7aBWDvjaTw=="
|
"integrity": "sha512-DsfN71fgSoO6GdE+Eumzku3UOFwwyMyadWAOh+g6kmNMi45+o/ZURP1H47DnekBGtf7PMcBZ9u+UGrgUkNLOxg=="
|
||||||
},
|
},
|
||||||
"_index-0eef19ec.C9-H3LKa.js": {
|
"_index-0eef19ec._7_ubBTi.js": {
|
||||||
"file": "index-0eef19ec.C9-H3LKa.js",
|
"file": "index-0eef19ec._7_ubBTi.js",
|
||||||
"name": "index-0eef19ec",
|
"name": "index-0eef19ec",
|
||||||
"imports": [
|
"imports": [
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
||||||
"_belt_Option-91f3b350.BEnQsSyX.js"
|
"_belt_Option-91f3b350.aHdMVyeC.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-2NBuKSnK8a1P+2fco6ILNsEMozr9DG7QDitwWWkHqdt5jNsnuyh1+s6Wm1gkCyNkdyWpqyn5aoTpNly5TElu9Q=="
|
"integrity": "sha512-Z16c5dWf1hqF1RIGq0pMZVqH3+p7Bf+/RnVMXCVXbv3CIGU6J4QZU5THTIjkv9VbqxYwD7aTrePRBRkKaVMBPA=="
|
||||||
},
|
},
|
||||||
"_index.CeK6pfoJ.js": {
|
"_index.CuMLbxmh.js": {
|
||||||
"file": "index.CeK6pfoJ.js",
|
"file": "index.CuMLbxmh.js",
|
||||||
"name": "index",
|
"name": "index",
|
||||||
"integrity": "sha512-cxTw0sKKut2H95JwMgiKgEVLyZ0QswK/HydKTapcqcs3w6xHIHNUpYBLdRzEYdeRfHKUsA0kvPNBXBk/QeazjQ=="
|
"integrity": "sha512-gvLu0BtlbbPQH30/Zt1Bvg/14/gzPmVWToWFm4rZlrsy3ulnwQWWXZcUFHJga2+e2kzoBXIQxewWbZcYCIcoZA=="
|
||||||
},
|
},
|
||||||
"_index.Dco04HYW.js": {
|
"_index.DFL3aKZD.js": {
|
||||||
"file": "index.Dco04HYW.js",
|
"file": "index.DFL3aKZD.js",
|
||||||
"name": "index",
|
"name": "index",
|
||||||
"integrity": "sha512-eybi0WqCrBufjD4IUzXQeU8pVe1XVigrzJuuS6dlMjE3rJn6GxFnr/GsslJzwI5hyDTmqKY/8V7/lZ65OUu31g=="
|
"integrity": "sha512-2CTEKyYUq+eiCwLC40iyCcX1P3k4Esdfi3XAAFPs5MTprh7Yje5NBGU+ZvL/ljT5WBRoVEtZxuMaSaOaWrhUjw=="
|
||||||
},
|
},
|
||||||
"_pipe.XPB0wEfw.js": {
|
"_pipe.CtTFdEz3.js": {
|
||||||
"file": "pipe.XPB0wEfw.js",
|
"file": "pipe.CtTFdEz3.js",
|
||||||
"name": "pipe",
|
"name": "pipe",
|
||||||
"integrity": "sha512-Vfe5GFzEZCPJPKzllIKkmHF2DLq2ms/+z596y+VkJFmXAlMir4sTPTGy//ZCYiTowX/c3Sox2Xfg3tQ2JOU8gw=="
|
"integrity": "sha512-Z5Wz+dQgEhhqbRH+zxYkfsG97VK+vC2Jn3JpydX0duR5yNyXLWGkwZcJXCt5KhTU5owHBgQEjUhQwq+fMGSw+Q=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts": {
|
||||||
"file": "api.js",
|
"file": "api.js",
|
||||||
"name": "api",
|
"name": "api",
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"integrity": "sha512-coYcNhIjbmu/QOGRv9/RAgENLAd7J71CrMUBBddgJzsmfb3PPg40UOjj/2Joy2WDNfQnSe4jXG8QRnWoDM5e5Q=="
|
"integrity": "sha512-3K3GbKr/DpqxdPFHd9ChxV3DaT8LrGtxok1IPdiAkEQt8cS1QwLQhP6aogngI0o4UwV7leS4wSEmyPfQHw90gw=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts": {
|
||||||
"file": "cart2.js",
|
"file": "cart2.js",
|
||||||
"name": "cart",
|
"name": "cart",
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"integrity": "sha512-NOtuYRf+7+U2vbBC21gMrPFm7NXjW2YXVtCGLo9MsX9o1aEIanUZP5/MqH/Ln/+KbkXq9hQEpOkBJgWBnn4ZIw=="
|
"integrity": "sha512-we8xcgV6QRrptnmHGqILN4WJtSSKSPMjejDoTnHOsDF6+PdXPuuXrrw9wMe1ZjNWW2vLSGQMXS/rlkek2Dt0CQ=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts": {
|
||||||
"file": "dom.js",
|
"file": "dom.js",
|
||||||
"name": "dom",
|
"name": "dom",
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"integrity": "sha512-LBVfgadTY91tQL0vqr2MY1V4S+SnNDW/VgaRtfI0lYYOyj5k6lrKJ2+cvalY5YHaKEfBBVfIK1F3vjmx6Zy6Pw=="
|
"integrity": "sha512-D9nUPzFOExQ0lRcleoMEXvD4+CTpaX8I2XNBw2FtZvUymMD1W3to8ZWNR0m90V/It9/sxw43DiBANFV43fuuxg=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts": {
|
||||||
"file": "messages3.js",
|
"file": "messages3.js",
|
||||||
"name": "messages",
|
"name": "messages",
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"integrity": "sha512-M8me/iGRLfItVHaEf+BhA3xdEIxEwdyNuN+H87daJ1jl1oOENbROB7ub6RPP47NdFsQUChTRphEhQglT+qc6RA=="
|
"integrity": "sha512-UTgE1qTfOcV93/yBcHbdmfrJaFq39JGe2IeYu+8f91Hj4aXw5/S4ViRUsfU/sWbNmMzo1Nx2tXwj/Wd1DNjFJA=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts": {
|
||||||
"file": "products4.js",
|
"file": "products4.js",
|
||||||
"name": "products",
|
"name": "products",
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"integrity": "sha512-U8DHMg59QWLOS6mloe75F3bO1HUVfujp49DZ2sbFQ1DIpHd9kQ5XDc83lV9krmkyM0y4ZdJq+J53+TOnDCWKyg=="
|
"integrity": "sha512-0YDHl/gLOMxEE3k95d5UzyP197P09IRCI/kaPx7Pk7OQxxjEOwfodbmnpRGWdL+9EFrzyxX50v+ujjPvkdlw8Q=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/gaffe.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/gaffe.ts": {
|
||||||
"file": "gaffe.js",
|
"file": "gaffe.js",
|
||||||
|
|
@ -91,10 +91,10 @@
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
||||||
"_exports.BuUzFliQ.js",
|
"_exports.LfjCCHHP.js",
|
||||||
"_pipe.XPB0wEfw.js"
|
"_pipe.CtTFdEz3.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-+mtyQ0j6HVL9AifJ0YphTMeGEqak4huIgbfydQo1nZKda1gyL+dExo7kfCTnvCMXVVp63ciBoc4GKrFxHvq2RA=="
|
"integrity": "sha512-TDzrpq3GgNHsgf4/VHZFxHY8paGpHu6/l2MWHxLkewTD7TBcLNOw+gnV+AyGZH+b+4iZ8zu95qJjsfIB4l0yuA=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts": {
|
||||||
"file": "dom2.js",
|
"file": "dom2.js",
|
||||||
|
|
@ -103,11 +103,11 @@
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"_Either.wHNxn7Os.js",
|
"_Either.DDEPhGsy.js",
|
||||||
"_exports.BuUzFliQ.js"
|
"_exports.LfjCCHHP.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-TApiAWN65ACKzOmdZcj2lQbc3ddSjuT1kANS5h4aaRBqqtSwB2peFnWihjLlxenyHSoYxedS8sqiOOGFehq7AA=="
|
"integrity": "sha512-gOto9eSmhHDa5brNH9hE4Ab7+qcw+i9uc8sZgnJX88yuHIg35/7U4xEYb8iHFpkz1izocqYXO32pOxOcKQUx6A=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts": {
|
||||||
"file": "erreurs.js",
|
"file": "erreurs.js",
|
||||||
|
|
@ -115,16 +115,16 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_exports.BuUzFliQ.js"
|
"_exports.LfjCCHHP.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-zuxEltujuranArO/lLu2dknRNa39fnI6pwBhzS6LyQRhtVE3Xp5JFcrrwdKfnP6EBoNhsvDQ8/EJSVKjF735bw=="
|
"integrity": "sha512-Gej1w1nSmhY8mZiHglb0SUQC4SbmJINRGCDrEvlXpsUeHLMXnh+HADmLb9izZux0aAew2i4ss/bYBEgPoXfNMQ=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/gardes.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/gardes.ts": {
|
||||||
"file": "gardes.js",
|
"file": "gardes.js",
|
||||||
"name": "gardes",
|
"name": "gardes",
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/gardes.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/gardes.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"integrity": "sha512-5Xn9Qd8ESFywu/sjlNFb9fHQ9UqbdxsmuQbukcxQNsRy1ct7fzexad9qz9BMIHHkqFNw0z/euYydcFEdXzXYnQ=="
|
"integrity": "sha512-JCnqKP5kaxEdphx6EHA3rmhF21cokF+ah1ApI+ce9JSXlLCidvVTPOsO/d7V2FMU+dVhRbCE/Mf39KZI3bzeAg=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/gestion-panier.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/gestion-panier.ts": {
|
||||||
"file": "gestion-panier.js",
|
"file": "gestion-panier.js",
|
||||||
|
|
@ -133,10 +133,10 @@
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
||||||
"_MaybeAsync.AE1jnxuc.js",
|
"_MaybeAsync.BkJailCK.js",
|
||||||
"_Either.wHNxn7Os.js"
|
"_Either.DDEPhGsy.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-M3+PZpbcjFOK9zatBR9R8U2C4w6g6SWksuJq7qYetyJpZhpyGJS1KVg3AqUTtVzIjGXy9Vr3sVX2FKjy//H4JQ=="
|
"integrity": "sha512-G3aGZ2e+fpsk894w6bc4ik+kq3mU1AvJmd5QDTFc6TvlvG513e09DsQe2FFHZy7pLdn1Sk56u8piKMlMq/XczA=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/messages.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/messages.ts": {
|
||||||
"file": "messages.js",
|
"file": "messages.js",
|
||||||
|
|
@ -144,25 +144,25 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/messages.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/messages.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
||||||
"_Either.wHNxn7Os.js",
|
"_Either.DDEPhGsy.js",
|
||||||
"_exports.BuUzFliQ.js",
|
"_exports.LfjCCHHP.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts"
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-Icg9uEiksxzqI7nUwJ7guk5xRJH72xXutI2z3AYf9z7mrpo0atZraGcFNBGt3mpGVJL0dPF/ggK/uE3GbmTGxA=="
|
"integrity": "sha512-lp9vwOudxcGF25fYds2zfR2G5XzPpEyq+w5sP+da6rd8L1po9Y9+j/E2QEL9923FAO9xvKVpHvi/vtHgvZM4Yg=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/nombres.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/nombres.ts": {
|
||||||
"file": "nombres.js",
|
"file": "nombres.js",
|
||||||
"name": "nombres",
|
"name": "nombres",
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/nombres.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/nombres.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"integrity": "sha512-3FI/eGnQR8WaEoNLUMe9krKJAe4RR7Gnro7ep7HlMLFi1oH5ncmpMGcja99iAkxFFJLhb+qa8nGPLfWr6V4F5g=="
|
"integrity": "sha512-Ogga9n03sbiOcHz+iugVrbFTC4HxxnkIRRRJ7UHiv7AH2g3Gfv1nvfR6ie/UGVgHFiPk/O4uiNftY3sADt1IEA=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/reseau.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/reseau.ts": {
|
||||||
"file": "reseau.js",
|
"file": "reseau.js",
|
||||||
|
|
@ -170,15 +170,15 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/reseau.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/reseau.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.CeK6pfoJ.js",
|
"_index.CuMLbxmh.js",
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"_exports.BuUzFliQ.js"
|
"_exports.LfjCCHHP.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-AUVEmm2tKPIRnnXS8W3colxCsiRS6bbI+HFsBsb2WxiZaRqCc2ifL9OwKeGbqD+snxoMQ3OWPl6Zhx1oGEHKYw=="
|
"integrity": "sha512-SrBXw3MOieDQzeakeysB0MvZ+4DnhbDE4q4NKIJC/Sx5vzY6N7jlVgzvNynCRM3p4HQyxkJo61SvJZDatbIWnQ=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts": {
|
||||||
"file": "adresses.js",
|
"file": "adresses.js",
|
||||||
|
|
@ -186,9 +186,9 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js"
|
"_index.DFL3aKZD.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-QfGG/oqYPAt8viKa+jD5SQaym5WJu7z7F16wmFjFClb5c4D43ZNEGc1HEr/O7foHjUPEHYg8EOesrt6ZyenLiw=="
|
"integrity": "sha512-AtlcTNkhY3CAqmzJVBL3m8gBoX68OWsP8rzC0ztlwA7itonMhJxVEakWoazYbrvzrVbeURWyIo1lLXqv+iA5yg=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-add-item.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-add-item.ts": {
|
||||||
"file": "cart-add-item.js",
|
"file": "cart-add-item.js",
|
||||||
|
|
@ -196,9 +196,9 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-add-item.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-add-item.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js"
|
"_index.DFL3aKZD.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-2z3jL9gK5/Kdva9L/mX7U9A14St8rdup1jW7LDOxzhheNDZ+aWpqHVIFhBLmn0QzGHQ2y1SJRBeUP9SoHDMHGA=="
|
"integrity": "sha512-rt4gfTMQZhn43S3REAMtM/Sh/Bju2hJLksgJJuXBcxjkR92lYhA+0uT/xf0YXjkUKN6wjkoAmd34CBYjNi5/fQ=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-remove-item.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-remove-item.ts": {
|
||||||
"file": "cart-remove-item.js",
|
"file": "cart-remove-item.js",
|
||||||
|
|
@ -206,9 +206,9 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-remove-item.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-remove-item.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js"
|
"_index.DFL3aKZD.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-2ucZffT/2xNMKZia5HYZhgUmJl/nlcmshtGJcExnMkPwSnniVROmFZ5uNvbtiS35Qqv66qVRPm7BAgyrRCy0Lg=="
|
"integrity": "sha512-vjjTE7L5TA/cSXPuAXMcPiyLnCROo4XyJg9hpg8kmu/PvjgNHyN8R33ApfCjEx2Shubkx7HeDwC0zp+loGlW4Q=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-customer.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-customer.ts": {
|
||||||
"file": "cart-update-customer.js",
|
"file": "cart-update-customer.js",
|
||||||
|
|
@ -216,10 +216,10 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-customer.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-customer.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts"
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-9uPBPzQeKWpgYS2YWcnIqJoCim/rG6GioN+i/+cy8/0305gI2ZTKZ2ThXl1RuYUBQEcx3TpBxK83rfJ8HoQcKA=="
|
"integrity": "sha512-hiKf/nX2DY4BH9doKDr/FQHTJJpU03NMsD234xBQyrAWrBUv+hxUG/+L9ywLDCri7g9k9V0FfCv9VdM/9MS7OQ=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-item.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-item.ts": {
|
||||||
"file": "cart-update-item.js",
|
"file": "cart-update-item.js",
|
||||||
|
|
@ -227,9 +227,9 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-item.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-item.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js"
|
"_index.DFL3aKZD.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-IOp1JFawfJOwWKRuZ5HkZwWZFfD5eRYgNVT9i4B+QcHMc73gobjlHYydopXtfJSPQDJu3crl3lo3dKHPZGHtpg=="
|
"integrity": "sha512-aVm3JO/3We6KEJ1hacJ/hF9BYpkFb4lJX7Xn6jJeFRUvWNr7+B3bAZTt3vg9k4fq1ZvoMPyBSl75WvU4Kq/SlQ=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts": {
|
||||||
"file": "cart.js",
|
"file": "cart.js",
|
||||||
|
|
@ -237,12 +237,12 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts"
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-e31vkzqM7PSmdNMHt9f6IQtPCMUtuceKCcwjUTxTV0jFCTMCP0xqpJoinQF9o6/iVm1DkvOX042UjnU4CMB22A=="
|
"integrity": "sha512-aCkX28q55eLIoh6Mj890oV2zyNe2X3Dm/D/0jUZmAm4PVCUeq++mi1OxrGTmtTFpQp8rPzWgaRvnHiQiru42gg=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts": {
|
||||||
"file": "couts-livraison.js",
|
"file": "couts-livraison.js",
|
||||||
|
|
@ -250,10 +250,10 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts"
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-vNzPfENPde1ww+tM4S3CtyG/41ysaeKB54a2YvaZ08UEZ/S1uviaKVEjThkVDbQrTgdAvQ+Lw/nFugrei7d9Vg=="
|
"integrity": "sha512-LbK8cY10AoL1FAjB7UO+ueFKlOHGAXggFSqhokj3n6vCa3ce/wNQXfWurAOYRWOVKCPark4WjuMx0TOvIEEyJA=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts": {
|
||||||
"file": "erreurs2.js",
|
"file": "erreurs2.js",
|
||||||
|
|
@ -261,9 +261,9 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js"
|
"_index.DFL3aKZD.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-wlTqxVmB147yCLChJXl7FOe/2VwNMFWcnSME/GmGy7f3nQchYXt9NNjLcqA4W+V+YFiEGHiiffK2KL9hUnnmwA=="
|
"integrity": "sha512-d5BqLjOVxD16IC9giX23B3vd7JRTV6cMSqr76obIAuqa0Va45U7AwLmKJeQ9yJZfW2DRl7oqYy0fGKUNVMm6/w=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/products.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/products.ts": {
|
||||||
"file": "products2.js",
|
"file": "products2.js",
|
||||||
|
|
@ -271,10 +271,10 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/products.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/products.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts"
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-9cx2b7vukAmKKB5Crgwpn8mArGuvLbxbszsqPqG8Jpi2pxXaN/cI1JiyJTWRPdywhysWAaWu3rh+kfWnhqVzNQ=="
|
"integrity": "sha512-92BUtYpsKuujQK/Sc7Eus2kNhCWGUH43ZYZGxeBkNEH/WQaJODpcIP6X0XVvjhDTG9hAYYPU7F77bM28dMCNXQ=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/v3/products.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/v3/products.ts": {
|
||||||
"file": "products3.js",
|
"file": "products3.js",
|
||||||
|
|
@ -282,10 +282,10 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/v3/products.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/v3/products.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts"
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-oX9FWpBwQs7f+P6KpTS/BX8Z2dgAwNlsrBKzO+Q0Fts/Tc9l3T0MrStyT0PZWSTTUWCsXb2kQ9g1aHsNx1E+HA=="
|
"integrity": "sha512-iUM4XNwUpvOGkupsMoUOgEb3Gr1cHQ5z2icK7wtuhXdBosHNNbuaQl5U3z52wl3aT6tdx25y3+uOnl6T1z4tUg=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts": {
|
||||||
"file": "messages2.js",
|
"file": "messages2.js",
|
||||||
|
|
@ -293,21 +293,21 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts"
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-S8817QozJr+l2l59z7m0nvdOb8yKhYc+ryuh35jb4/yogoK98QYfPEPUoSdVD7uCNNebwAiz2Fx/JR42t0CsCA=="
|
"integrity": "sha512-oW1sZ7JXf6FMAbx+8VH524x9bmyNj/9RH2nW4F6pQdeuw5B1wxd3clkJRCTWeTbJWzldj1EM5qAnhwHwVoLRIA=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/types/api/v3/products.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/types/api/v3/products.ts": {
|
||||||
"file": "products.js",
|
"file": "products.js",
|
||||||
"name": "products",
|
"name": "products",
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/types/api/v3/products.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/lib/types/api/v3/products.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"integrity": "sha512-OSPX3aq7AKaoKCUIDwny1bY5X7MYTPcXYqlgMFfmRPItVuucxugZdbEwxCtKfi6sK9KUnGqiiBSM+I98ikDwqA=="
|
"integrity": "sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts": {
|
||||||
"file": "utils.js",
|
"file": "utils.js",
|
||||||
|
|
@ -317,11 +317,11 @@
|
||||||
"imports": [
|
"imports": [
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"_Either.wHNxn7Os.js",
|
"_Either.DDEPhGsy.js",
|
||||||
"_exports.BuUzFliQ.js"
|
"_exports.LfjCCHHP.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-aaOA8OrH6CI280xd785AkGzpwQWgWFef5j3orpGla9G+CTbHd2FM3SypVVSso88EJnSO8OMDQ2IfZ7Pe5CBvHQ=="
|
"integrity": "sha512-pJySf/P7Raw+1MgKRSl7pMqbFV0yyXmoR5rxvzz4SWADl5FPmie6L73vH2ArBACqYVwUGQg5fac1ITdMSQaBVg=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-bouton-panier.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-bouton-panier.ts": {
|
||||||
"file": "scripts-bouton-panier.js",
|
"file": "scripts-bouton-panier.js",
|
||||||
|
|
@ -334,18 +334,18 @@
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/messages.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/messages.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
||||||
"_exports.BuUzFliQ.js",
|
"_exports.LfjCCHHP.js",
|
||||||
"_Either.wHNxn7Os.js",
|
"_Either.DDEPhGsy.js",
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts"
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-iahVbAqIwurcXCMx/sGklGT3hCIwZaM51NOcGjTZpVJuK28EVOzK6EEfhSCf7IhTJlwH1hLntdpfLcJoZcF83Q=="
|
"integrity": "sha512-QU9b5IP0rm2WWy1h+gggBYx0l6q4NPKoPNhMd5Se4vrjHfe3IEi8Cw75hmKwCWRakPvl6xvuYDu11AKpS/o2xw=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-menu-mobile.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-menu-mobile.ts": {
|
||||||
"file": "scripts-menu-mobile.js",
|
"file": "scripts-menu-mobile.js",
|
||||||
|
|
@ -357,11 +357,11 @@
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
||||||
"_exports.BuUzFliQ.js",
|
"_exports.LfjCCHHP.js",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"_Either.wHNxn7Os.js"
|
"_Either.DDEPhGsy.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-HLY61VTmZ296Y9acLq7HubLxScSHkCMOQ8cgZapmHMmvZTgB6gMp+B+uA023J4k2joVa2lcXZq7aU6oEGbGbMA=="
|
"integrity": "sha512-/1LaQbGZHgCrb86l0RQkkS3663OlWIdOeKYde4Lzgwh0HXFLz3to1ENBBMwQoYIfUriWooPZcjczr+W2YbNpLA=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-a-propos.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-a-propos.ts": {
|
||||||
"file": "scripts-page-a-propos.js",
|
"file": "scripts-page-a-propos.js",
|
||||||
|
|
@ -372,13 +372,13 @@
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"_belt_Option-91f3b350.BEnQsSyX.js",
|
"_belt_Option-91f3b350.aHdMVyeC.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
||||||
"_exports.BuUzFliQ.js",
|
"_exports.LfjCCHHP.js",
|
||||||
"_Either.wHNxn7Os.js"
|
"_Either.DDEPhGsy.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-KTjOqAlSk6EcfIoLk9Y9nJZFWvUh1gUJxbd3Ze0lfrsAegs5GHvEQYbWrj4TAxJWMFCk3gW21H2v+uCPrB8hlA=="
|
"integrity": "sha512-hR54Kp7rizL/InCpaPWxm+P3DwPUQDIqrDABIyaTvFHCBYH4PMwtriSRZAy2yWypZ6agz14FGx56HauDHUFNLw=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-accueil.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-accueil.ts": {
|
||||||
"file": "scripts-page-accueil.js",
|
"file": "scripts-page-accueil.js",
|
||||||
|
|
@ -391,11 +391,11 @@
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/erreurs.ts",
|
||||||
"_exports.BuUzFliQ.js",
|
"_exports.LfjCCHHP.js",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"_Either.wHNxn7Os.js"
|
"_Either.DDEPhGsy.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-lQ/DdLeMrGJf+r/iSG/Z6056RN5byCB/0f0+csJHKwXOPl52XRIDO/tYMrkhsOgnFFMM1UAzblJguh+WktkKlQ=="
|
"integrity": "sha512-J+INKlDIccPmGMVq0R+nFMZrTFT647cZVU0N6+5JtHuo/wtqYuvpYsgCrQBZrE7CGF5Etq8fixXGOijuqG2HFg=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-boutique.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-boutique.ts": {
|
||||||
"file": "scripts-page-boutique.js",
|
"file": "scripts-page-boutique.js",
|
||||||
|
|
@ -403,8 +403,8 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-boutique.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-boutique.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.CeK6pfoJ.js",
|
"_index.CuMLbxmh.js",
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
||||||
|
|
@ -413,16 +413,16 @@
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/reseau.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/reseau.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/v3/products.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/v3/products.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
||||||
"_MaybeAsync.AE1jnxuc.js",
|
"_MaybeAsync.BkJailCK.js",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"_index-0eef19ec.C9-H3LKa.js",
|
"_index-0eef19ec._7_ubBTi.js",
|
||||||
"_Either.wHNxn7Os.js",
|
"_Either.DDEPhGsy.js",
|
||||||
"_exports.BuUzFliQ.js",
|
"_exports.LfjCCHHP.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/products.ts",
|
||||||
"_belt_Option-91f3b350.BEnQsSyX.js"
|
"_belt_Option-91f3b350.aHdMVyeC.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-CF4pfzQdTdzZPLBVzkfjBFCtnO1VFHf364VstcPBadNiUYOYUBCGujk8ObfcVjP/a4V+C4j1/Uu1+5dayzNZwg=="
|
"integrity": "sha512-BhTjhuJaGZejuUtew3Zifu8NKTa8xUpBZDft36tKfQ37Yc/lWop71wMqM1CMJeu1/EFwsAZpgHQebk4A4JaunA=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-panier.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-panier.ts": {
|
||||||
"file": "scripts-page-panier.js",
|
"file": "scripts-page-panier.js",
|
||||||
|
|
@ -430,8 +430,8 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-panier.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-panier.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.CeK6pfoJ.js",
|
"_index.CuMLbxmh.js",
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
||||||
|
|
@ -445,18 +445,18 @@
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-customer.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-customer.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-item.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-update-item.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"_index-0eef19ec.C9-H3LKa.js",
|
"_index-0eef19ec._7_ubBTi.js",
|
||||||
"_Either.wHNxn7Os.js",
|
"_Either.DDEPhGsy.js",
|
||||||
"_exports.BuUzFliQ.js",
|
"_exports.LfjCCHHP.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts",
|
||||||
"_belt_Option-91f3b350.BEnQsSyX.js"
|
"_belt_Option-91f3b350.aHdMVyeC.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-LZJh8icM/jzRmIkU3RJbpu8mRunx3QEUyiZWl0rZ8JEgWr1GDtoYiEiPNpUDadsEUUm+8lWOA8Y+931/mq+95w=="
|
"integrity": "sha512-u64NcRmOZPr3uCce057LVUR0MlBciARF1ARN8CTsA5XsIt5vorXC2nsWBjwhqWSn4TnqakX5ALq/+Ktp2ogf4w=="
|
||||||
},
|
},
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-produit.ts": {
|
"web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-produit.ts": {
|
||||||
"file": "scripts-page-produit.js",
|
"file": "scripts-page-produit.js",
|
||||||
|
|
@ -464,8 +464,8 @@
|
||||||
"src": "web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-produit.ts",
|
"src": "web/app/themes/haiku-atelier-2024/src/scripts/scripts-page-produit.ts",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index.CeK6pfoJ.js",
|
"_index.CuMLbxmh.js",
|
||||||
"_index.Dco04HYW.js",
|
"_index.DFL3aKZD.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/api.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/dom.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/dom.ts",
|
||||||
|
|
@ -476,17 +476,17 @@
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-add-item.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/cart-add-item.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/erreurs.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/utils.ts",
|
||||||
"_pipe.XPB0wEfw.js",
|
"_pipe.CtTFdEz3.js",
|
||||||
"_index-0eef19ec.C9-H3LKa.js",
|
"_index-0eef19ec._7_ubBTi.js",
|
||||||
"_Either.wHNxn7Os.js",
|
"_Either.DDEPhGsy.js",
|
||||||
"_exports.BuUzFliQ.js",
|
"_exports.LfjCCHHP.js",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/messages.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/messages.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/constantes/cart.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/adresses.ts",
|
||||||
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts",
|
"web/app/themes/haiku-atelier-2024/src/scripts/lib/schemas/api/couts-livraison.ts",
|
||||||
"_belt_Option-91f3b350.BEnQsSyX.js"
|
"_belt_Option-91f3b350.aHdMVyeC.js"
|
||||||
],
|
],
|
||||||
"integrity": "sha512-EePoQpmfXZAmPCs38rLSG4/FhrmzK4rmrYv8NLGMRX9CB/oqbvzS663FeAHiQyeY2lv4OwWGl0ARK63zefapyA=="
|
"integrity": "sha512-VX82xhJ+v4GjFTw5CxblTa1MMc/umGiQ8x6snIDNRQfpI0WzbjAgNJ+e8/W7lRaRX3cs8Z8PH+O+0kIeq/yy7Q=="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,528 +0,0 @@
|
||||||
const Maybe = {
|
|
||||||
of(value) {
|
|
||||||
return just(value);
|
|
||||||
},
|
|
||||||
empty() {
|
|
||||||
return nothing;
|
|
||||||
},
|
|
||||||
zero() {
|
|
||||||
return nothing;
|
|
||||||
},
|
|
||||||
fromNullable(value) {
|
|
||||||
return value == null ? nothing : just(value);
|
|
||||||
},
|
|
||||||
fromFalsy(value) {
|
|
||||||
return value ? just(value) : nothing;
|
|
||||||
},
|
|
||||||
fromPredicate(pred, value) {
|
|
||||||
switch (arguments.length) {
|
|
||||||
case 1:
|
|
||||||
return (value2) => Maybe.fromPredicate(pred, value2);
|
|
||||||
default:
|
|
||||||
return pred(value) ? just(value) : nothing;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mapMaybe(f, list) {
|
|
||||||
switch (arguments.length) {
|
|
||||||
case 1:
|
|
||||||
return (list2) => Maybe.mapMaybe(f, list2);
|
|
||||||
default:
|
|
||||||
return Maybe.catMaybes(list.map(f));
|
|
||||||
}
|
|
||||||
},
|
|
||||||
catMaybes(list) {
|
|
||||||
let res = [];
|
|
||||||
for (const e of list) {
|
|
||||||
if (e.isJust()) {
|
|
||||||
res.push(e.extract());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
},
|
|
||||||
encase(thunk) {
|
|
||||||
try {
|
|
||||||
return just(thunk());
|
|
||||||
} catch {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
isMaybe(x) {
|
|
||||||
return x instanceof Just || x instanceof Nothing;
|
|
||||||
},
|
|
||||||
sequence(maybes) {
|
|
||||||
let res = [];
|
|
||||||
for (const m of maybes) {
|
|
||||||
if (m.isJust()) {
|
|
||||||
res.push(m.extract());
|
|
||||||
} else {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return just(res);
|
|
||||||
},
|
|
||||||
"fantasy-land/of"(value) {
|
|
||||||
return this.of(value);
|
|
||||||
},
|
|
||||||
"fantasy-land/empty"() {
|
|
||||||
return this.empty();
|
|
||||||
},
|
|
||||||
"fantasy-land/zero"() {
|
|
||||||
return this.zero();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
class Just {
|
|
||||||
constructor(__value) {
|
|
||||||
this.__value = __value;
|
|
||||||
this["fantasy-land/equals"] = this.equals;
|
|
||||||
this["fantasy-land/map"] = this.map;
|
|
||||||
this["fantasy-land/ap"] = this.ap;
|
|
||||||
this["fantasy-land/alt"] = this.alt;
|
|
||||||
this["fantasy-land/chain"] = this.chain;
|
|
||||||
this["fantasy-land/reduce"] = this.reduce;
|
|
||||||
this["fantasy-land/extend"] = this.extend;
|
|
||||||
this["fantasy-land/filter"] = this.filter;
|
|
||||||
}
|
|
||||||
isJust() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
isNothing() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
inspect() {
|
|
||||||
return `Just(${this.__value})`;
|
|
||||||
}
|
|
||||||
toString() {
|
|
||||||
return this.inspect();
|
|
||||||
}
|
|
||||||
toJSON() {
|
|
||||||
const value = this.__value;
|
|
||||||
return value instanceof Date ? value.toJSON() : value;
|
|
||||||
}
|
|
||||||
equals(other) {
|
|
||||||
return this.extract() === other.extract();
|
|
||||||
}
|
|
||||||
map(f) {
|
|
||||||
return just(f(this.__value));
|
|
||||||
}
|
|
||||||
ap(maybeF) {
|
|
||||||
return maybeF.isJust() ? this.map(maybeF.extract()) : nothing;
|
|
||||||
}
|
|
||||||
alt(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
altLazy(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
chain(f) {
|
|
||||||
return f(this.__value);
|
|
||||||
}
|
|
||||||
chainNullable(f) {
|
|
||||||
return Maybe.fromNullable(f(this.__value));
|
|
||||||
}
|
|
||||||
join() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
reduce(reducer, initialValue) {
|
|
||||||
return reducer(initialValue, this.__value);
|
|
||||||
}
|
|
||||||
extend(f) {
|
|
||||||
return just(f(this));
|
|
||||||
}
|
|
||||||
unsafeCoerce() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
caseOf(patterns) {
|
|
||||||
return "_" in patterns ? patterns._() : patterns.Just(this.__value);
|
|
||||||
}
|
|
||||||
orDefault(_) {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
orDefaultLazy(_) {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
toList() {
|
|
||||||
return [this.__value];
|
|
||||||
}
|
|
||||||
mapOrDefault(f, _) {
|
|
||||||
return f(this.__value);
|
|
||||||
}
|
|
||||||
extract() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
extractNullable() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
toEither(_) {
|
|
||||||
return right(this.__value);
|
|
||||||
}
|
|
||||||
ifJust(effect) {
|
|
||||||
return effect(this.__value), this;
|
|
||||||
}
|
|
||||||
ifNothing(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
filter(pred) {
|
|
||||||
return pred(this.__value) ? just(this.__value) : nothing;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Just.prototype.constructor = Maybe;
|
|
||||||
class Nothing {
|
|
||||||
constructor() {
|
|
||||||
this["fantasy-land/equals"] = this.equals;
|
|
||||||
this["fantasy-land/map"] = this.map;
|
|
||||||
this["fantasy-land/ap"] = this.ap;
|
|
||||||
this["fantasy-land/alt"] = this.alt;
|
|
||||||
this["fantasy-land/chain"] = this.chain;
|
|
||||||
this["fantasy-land/reduce"] = this.reduce;
|
|
||||||
this["fantasy-land/extend"] = this.extend;
|
|
||||||
this["fantasy-land/filter"] = this.filter;
|
|
||||||
}
|
|
||||||
isJust() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
isNothing() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
inspect() {
|
|
||||||
return "Nothing";
|
|
||||||
}
|
|
||||||
toString() {
|
|
||||||
return this.inspect();
|
|
||||||
}
|
|
||||||
toJSON() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
equals(other) {
|
|
||||||
return this.extract() === other.extract();
|
|
||||||
}
|
|
||||||
map(_) {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
ap(_) {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
alt(other) {
|
|
||||||
return other;
|
|
||||||
}
|
|
||||||
altLazy(other) {
|
|
||||||
return other();
|
|
||||||
}
|
|
||||||
chain(_) {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
chainNullable(_) {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
join() {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
reduce(_, initialValue) {
|
|
||||||
return initialValue;
|
|
||||||
}
|
|
||||||
extend(_) {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
unsafeCoerce() {
|
|
||||||
throw new Error("Maybe#unsafeCoerce was ran on a Nothing");
|
|
||||||
}
|
|
||||||
caseOf(patterns) {
|
|
||||||
return "_" in patterns ? patterns._() : patterns.Nothing();
|
|
||||||
}
|
|
||||||
orDefault(defaultValue) {
|
|
||||||
return defaultValue;
|
|
||||||
}
|
|
||||||
orDefaultLazy(getDefaultValue) {
|
|
||||||
return getDefaultValue();
|
|
||||||
}
|
|
||||||
toList() {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
mapOrDefault(_, defaultValue) {
|
|
||||||
return defaultValue;
|
|
||||||
}
|
|
||||||
extract() {
|
|
||||||
return void 0;
|
|
||||||
}
|
|
||||||
extractNullable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
toEither(left$1) {
|
|
||||||
return left(left$1);
|
|
||||||
}
|
|
||||||
ifJust(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
ifNothing(effect) {
|
|
||||||
return effect(), this;
|
|
||||||
}
|
|
||||||
filter(_) {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Nothing.prototype.constructor = Maybe;
|
|
||||||
const just = (value) => new Just(value);
|
|
||||||
const nothing = new Nothing();
|
|
||||||
const Either = {
|
|
||||||
of(value) {
|
|
||||||
return right(value);
|
|
||||||
},
|
|
||||||
lefts(list) {
|
|
||||||
let result = [];
|
|
||||||
for (const x of list) {
|
|
||||||
if (x.isLeft()) {
|
|
||||||
result.push(x.extract());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
rights(list) {
|
|
||||||
let result = [];
|
|
||||||
for (const x of list) {
|
|
||||||
if (x.isRight()) {
|
|
||||||
result.push(x.extract());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
encase(throwsF) {
|
|
||||||
try {
|
|
||||||
return right(throwsF());
|
|
||||||
} catch (e) {
|
|
||||||
return left(e);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
sequence(eithers) {
|
|
||||||
let res = [];
|
|
||||||
for (const e of eithers) {
|
|
||||||
if (e.isLeft()) {
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
res.push(e.extract());
|
|
||||||
}
|
|
||||||
return right(res);
|
|
||||||
},
|
|
||||||
isEither(x) {
|
|
||||||
return x instanceof Left || x instanceof Right;
|
|
||||||
},
|
|
||||||
"fantasy-land/of"(value) {
|
|
||||||
return Either.of(value);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
class Right {
|
|
||||||
constructor(__value) {
|
|
||||||
this.__value = __value;
|
|
||||||
this._ = "R";
|
|
||||||
this["fantasy-land/bimap"] = this.bimap;
|
|
||||||
this["fantasy-land/map"] = this.map;
|
|
||||||
this["fantasy-land/ap"] = this.ap;
|
|
||||||
this["fantasy-land/equals"] = this.equals;
|
|
||||||
this["fantasy-land/chain"] = this.chain;
|
|
||||||
this["fantasy-land/alt"] = this.alt;
|
|
||||||
this["fantasy-land/reduce"] = this.reduce;
|
|
||||||
this["fantasy-land/extend"] = this.extend;
|
|
||||||
}
|
|
||||||
isLeft() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
isRight() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
toJSON() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
inspect() {
|
|
||||||
return `Right(${this.__value})`;
|
|
||||||
}
|
|
||||||
toString() {
|
|
||||||
return this.inspect();
|
|
||||||
}
|
|
||||||
bimap(_, g) {
|
|
||||||
return right(g(this.__value));
|
|
||||||
}
|
|
||||||
map(f) {
|
|
||||||
return right(f(this.__value));
|
|
||||||
}
|
|
||||||
mapLeft(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
ap(other) {
|
|
||||||
return other.isRight() ? this.map(other.extract()) : other;
|
|
||||||
}
|
|
||||||
equals(other) {
|
|
||||||
return other.isRight() ? this.__value === other.extract() : false;
|
|
||||||
}
|
|
||||||
chain(f) {
|
|
||||||
return f(this.__value);
|
|
||||||
}
|
|
||||||
chainLeft(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
join() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
alt(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
altLazy(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
reduce(reducer, initialValue) {
|
|
||||||
return reducer(initialValue, this.__value);
|
|
||||||
}
|
|
||||||
extend(f) {
|
|
||||||
return right(f(this));
|
|
||||||
}
|
|
||||||
unsafeCoerce() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
caseOf(patterns) {
|
|
||||||
return "_" in patterns ? patterns._() : patterns.Right(this.__value);
|
|
||||||
}
|
|
||||||
leftOrDefault(defaultValue) {
|
|
||||||
return defaultValue;
|
|
||||||
}
|
|
||||||
orDefault(_) {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
orDefaultLazy(_) {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
leftOrDefaultLazy(getDefaultValue) {
|
|
||||||
return getDefaultValue();
|
|
||||||
}
|
|
||||||
ifLeft(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
ifRight(effect) {
|
|
||||||
return effect(this.__value), this;
|
|
||||||
}
|
|
||||||
toMaybe() {
|
|
||||||
return just(this.__value);
|
|
||||||
}
|
|
||||||
leftToMaybe() {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
extract() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
swap() {
|
|
||||||
return left(this.__value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Right.prototype.constructor = Either;
|
|
||||||
class Left {
|
|
||||||
constructor(__value) {
|
|
||||||
this.__value = __value;
|
|
||||||
this._ = "L";
|
|
||||||
this["fantasy-land/bimap"] = this.bimap;
|
|
||||||
this["fantasy-land/map"] = this.map;
|
|
||||||
this["fantasy-land/ap"] = this.ap;
|
|
||||||
this["fantasy-land/equals"] = this.equals;
|
|
||||||
this["fantasy-land/chain"] = this.chain;
|
|
||||||
this["fantasy-land/alt"] = this.alt;
|
|
||||||
this["fantasy-land/reduce"] = this.reduce;
|
|
||||||
this["fantasy-land/extend"] = this.extend;
|
|
||||||
}
|
|
||||||
isLeft() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
isRight() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
toJSON() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
inspect() {
|
|
||||||
return `Left(${JSON.stringify(this.__value)})`;
|
|
||||||
}
|
|
||||||
toString() {
|
|
||||||
return this.inspect();
|
|
||||||
}
|
|
||||||
bimap(f, _) {
|
|
||||||
return left(f(this.__value));
|
|
||||||
}
|
|
||||||
map(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
mapLeft(f) {
|
|
||||||
return left(f(this.__value));
|
|
||||||
}
|
|
||||||
ap(other) {
|
|
||||||
return other.isLeft() ? other : this;
|
|
||||||
}
|
|
||||||
equals(other) {
|
|
||||||
return other.isLeft() ? other.extract() === this.__value : false;
|
|
||||||
}
|
|
||||||
chain(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
chainLeft(f) {
|
|
||||||
return f(this.__value);
|
|
||||||
}
|
|
||||||
join() {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
alt(other) {
|
|
||||||
return other;
|
|
||||||
}
|
|
||||||
altLazy(other) {
|
|
||||||
return other();
|
|
||||||
}
|
|
||||||
reduce(_, initialValue) {
|
|
||||||
return initialValue;
|
|
||||||
}
|
|
||||||
extend(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
unsafeCoerce() {
|
|
||||||
if (this.__value instanceof Error) {
|
|
||||||
throw this.__value;
|
|
||||||
}
|
|
||||||
throw new Error("Either#unsafeCoerce was ran on a Left");
|
|
||||||
}
|
|
||||||
caseOf(patterns) {
|
|
||||||
return "_" in patterns ? patterns._() : patterns.Left(this.__value);
|
|
||||||
}
|
|
||||||
leftOrDefault(_) {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
orDefault(defaultValue) {
|
|
||||||
return defaultValue;
|
|
||||||
}
|
|
||||||
orDefaultLazy(getDefaultValue) {
|
|
||||||
return getDefaultValue();
|
|
||||||
}
|
|
||||||
leftOrDefaultLazy(_) {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
ifLeft(effect) {
|
|
||||||
return effect(this.__value), this;
|
|
||||||
}
|
|
||||||
ifRight(_) {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
toMaybe() {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
leftToMaybe() {
|
|
||||||
return just(this.__value);
|
|
||||||
}
|
|
||||||
extract() {
|
|
||||||
return this.__value;
|
|
||||||
}
|
|
||||||
swap() {
|
|
||||||
return right(this.__value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Left.prototype.constructor = Either;
|
|
||||||
const left = (value) => new Left(value);
|
|
||||||
const right = (value) => new Right(value);
|
|
||||||
export {
|
|
||||||
Either as E,
|
|
||||||
Maybe as M,
|
|
||||||
just as j,
|
|
||||||
left as l,
|
|
||||||
nothing as n,
|
|
||||||
right as r
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=Either.wHNxn7Os.js.map
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,314 +0,0 @@
|
||||||
import { E as Either, r as right, l as left, M as Maybe, n as nothing, j as just } from "./Either.wHNxn7Os.js";
|
|
||||||
var _a$1;
|
|
||||||
const helpers$1 = {
|
|
||||||
liftEither(either) {
|
|
||||||
if (either.isRight()) {
|
|
||||||
return Promise.resolve(either.extract());
|
|
||||||
}
|
|
||||||
throw either.extract();
|
|
||||||
},
|
|
||||||
fromPromise(promise) {
|
|
||||||
return promise.then(helpers$1.liftEither);
|
|
||||||
},
|
|
||||||
throwE(error) {
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
class EitherAsyncImpl {
|
|
||||||
constructor(runPromise) {
|
|
||||||
this.runPromise = runPromise;
|
|
||||||
this[_a$1] = "EitherAsync";
|
|
||||||
this["fantasy-land/chain"] = this.chain;
|
|
||||||
this["fantasy-land/alt"] = this.alt;
|
|
||||||
this.then = (onfulfilled, onrejected) => {
|
|
||||||
return this.run().then(onfulfilled, onrejected);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
leftOrDefault(defaultValue) {
|
|
||||||
return this.run().then((x) => x.leftOrDefault(defaultValue));
|
|
||||||
}
|
|
||||||
orDefault(defaultValue) {
|
|
||||||
return this.run().then((x) => x.orDefault(defaultValue));
|
|
||||||
}
|
|
||||||
join() {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
const either = await this;
|
|
||||||
if (either.isRight()) {
|
|
||||||
const nestedEither = await either.extract();
|
|
||||||
return helpers2.liftEither(nestedEither);
|
|
||||||
}
|
|
||||||
return helpers2.liftEither(either);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ap(eitherF) {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
const otherValue = await eitherF;
|
|
||||||
if (otherValue.isRight()) {
|
|
||||||
const thisValue = await this.run();
|
|
||||||
if (thisValue.isRight()) {
|
|
||||||
return otherValue.extract()(thisValue.extract());
|
|
||||||
} else {
|
|
||||||
return helpers2.liftEither(thisValue);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return helpers2.liftEither(otherValue);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
alt(other) {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
const thisValue = await this.run();
|
|
||||||
if (thisValue.isRight()) {
|
|
||||||
return thisValue.extract();
|
|
||||||
} else {
|
|
||||||
const otherValue = await other;
|
|
||||||
return helpers2.liftEither(otherValue);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
extend(f) {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
const either = await this.run();
|
|
||||||
if (either.isRight()) {
|
|
||||||
const v = EitherAsync.liftEither(either);
|
|
||||||
return helpers2.liftEither(right(f(v)));
|
|
||||||
}
|
|
||||||
return helpers2.liftEither(either);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
async run() {
|
|
||||||
try {
|
|
||||||
return right(await this.runPromise(helpers$1));
|
|
||||||
} catch (e) {
|
|
||||||
return left(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
bimap(f, g) {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
const either = await this.run();
|
|
||||||
try {
|
|
||||||
return await helpers2.liftEither(either.bimap(f, g));
|
|
||||||
} catch (e) {
|
|
||||||
throw await e;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
map(f) {
|
|
||||||
return EitherAsync((helpers2) => this.runPromise(helpers2).then(f));
|
|
||||||
}
|
|
||||||
mapLeft(f) {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
try {
|
|
||||||
return await this.runPromise(helpers2);
|
|
||||||
} catch (e) {
|
|
||||||
throw await f(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
chain(f) {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
const value = await this.runPromise(helpers2);
|
|
||||||
return helpers2.fromPromise(f(value));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
chainLeft(f) {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
try {
|
|
||||||
return await this.runPromise(helpers2);
|
|
||||||
} catch (e) {
|
|
||||||
return helpers2.fromPromise(f(e));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
toMaybeAsync() {
|
|
||||||
return MaybeAsync(async ({ liftMaybe }) => {
|
|
||||||
const either = await this.run();
|
|
||||||
return liftMaybe(either.toMaybe());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
swap() {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
const either = await this.run();
|
|
||||||
if (either.isRight())
|
|
||||||
helpers2.throwE(either.extract());
|
|
||||||
return helpers2.liftEither(right(either.extract()));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ifLeft(effect) {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
const either = await this.run();
|
|
||||||
either.ifLeft(effect);
|
|
||||||
return helpers2.liftEither(either);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ifRight(effect) {
|
|
||||||
return EitherAsync(async (helpers2) => {
|
|
||||||
const either = await this.run();
|
|
||||||
either.ifRight(effect);
|
|
||||||
return helpers2.liftEither(either);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
void() {
|
|
||||||
return this.map((_) => {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
caseOf(patterns) {
|
|
||||||
return this.run().then((x) => x.caseOf(patterns));
|
|
||||||
}
|
|
||||||
finally(effect) {
|
|
||||||
return EitherAsync(({ fromPromise }) => fromPromise(this.run().finally(effect)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_a$1 = Symbol.toStringTag;
|
|
||||||
const EitherAsync = Object.assign((runPromise) => new EitherAsyncImpl(runPromise), {
|
|
||||||
fromPromise: (f) => EitherAsync(({ fromPromise: fP }) => fP(f())),
|
|
||||||
liftEither: (either) => EitherAsync(({ liftEither }) => liftEither(either)),
|
|
||||||
lefts: (list) => Promise.all(list.map((x) => x.run())).then(Either.lefts),
|
|
||||||
rights: (list) => Promise.all(list.map((x) => x.run())).then(Either.rights),
|
|
||||||
sequence: (eas) => EitherAsync(async (helpers2) => {
|
|
||||||
let res = [];
|
|
||||||
for await (const e of eas) {
|
|
||||||
if (e.isLeft()) {
|
|
||||||
return helpers2.liftEither(e);
|
|
||||||
}
|
|
||||||
res.push(e.extract());
|
|
||||||
}
|
|
||||||
return helpers2.liftEither(right(res));
|
|
||||||
}),
|
|
||||||
all: (eas) => EitherAsync.fromPromise(async () => Promise.all(eas).then(Either.sequence))
|
|
||||||
});
|
|
||||||
EitherAsyncImpl.prototype.constructor = EitherAsync;
|
|
||||||
var _a;
|
|
||||||
const helpers = {
|
|
||||||
liftMaybe(maybe) {
|
|
||||||
if (maybe.isJust()) {
|
|
||||||
return Promise.resolve(maybe.extract());
|
|
||||||
}
|
|
||||||
throw nothing;
|
|
||||||
},
|
|
||||||
fromPromise(promise) {
|
|
||||||
return promise.then(helpers.liftMaybe);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
class MaybeAsyncImpl {
|
|
||||||
constructor(runPromise) {
|
|
||||||
this.runPromise = runPromise;
|
|
||||||
this[_a] = "MaybeAsync";
|
|
||||||
this["fantasy-land/chain"] = this.chain;
|
|
||||||
this["fantasy-land/filter"] = this.filter;
|
|
||||||
this["fantasy-land/alt"] = this.alt;
|
|
||||||
}
|
|
||||||
orDefault(defaultValue) {
|
|
||||||
return this.run().then((x) => x.orDefault(defaultValue));
|
|
||||||
}
|
|
||||||
join() {
|
|
||||||
return MaybeAsync(async (helpers2) => {
|
|
||||||
const maybe = await this.run();
|
|
||||||
if (maybe.isJust()) {
|
|
||||||
const nestedMaybe = await maybe.extract();
|
|
||||||
return helpers2.liftMaybe(nestedMaybe);
|
|
||||||
}
|
|
||||||
return helpers2.liftMaybe(nothing);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ap(maybeF) {
|
|
||||||
return MaybeAsync(async (helpers2) => {
|
|
||||||
const otherValue = await maybeF;
|
|
||||||
if (otherValue.isJust()) {
|
|
||||||
const thisValue = await this.run();
|
|
||||||
if (thisValue.isJust()) {
|
|
||||||
return otherValue.extract()(thisValue.extract());
|
|
||||||
} else {
|
|
||||||
return helpers2.liftMaybe(nothing);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return helpers2.liftMaybe(nothing);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
alt(other) {
|
|
||||||
return MaybeAsync(async (helpers2) => {
|
|
||||||
const thisValue = await this.run();
|
|
||||||
if (thisValue.isJust()) {
|
|
||||||
return thisValue.extract();
|
|
||||||
} else {
|
|
||||||
const otherValue = await other;
|
|
||||||
return helpers2.liftMaybe(otherValue);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
extend(f) {
|
|
||||||
return MaybeAsync(async (helpers2) => {
|
|
||||||
const maybe = await this.run();
|
|
||||||
if (maybe.isJust()) {
|
|
||||||
const v = MaybeAsync.liftMaybe(maybe);
|
|
||||||
return helpers2.liftMaybe(just(f(v)));
|
|
||||||
}
|
|
||||||
return helpers2.liftMaybe(nothing);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
filter(pred) {
|
|
||||||
return MaybeAsync(async (helpers2) => {
|
|
||||||
const value = await this.run();
|
|
||||||
return helpers2.liftMaybe(value.filter(pred));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
async run() {
|
|
||||||
try {
|
|
||||||
return just(await this.runPromise(helpers));
|
|
||||||
} catch {
|
|
||||||
return nothing;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
map(f) {
|
|
||||||
return MaybeAsync((helpers2) => this.runPromise(helpers2).then(f));
|
|
||||||
}
|
|
||||||
chain(f) {
|
|
||||||
return MaybeAsync(async (helpers2) => {
|
|
||||||
const value = await this.runPromise(helpers2);
|
|
||||||
return helpers2.fromPromise(f(value));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
toEitherAsync(error) {
|
|
||||||
return EitherAsync(async ({ liftEither }) => {
|
|
||||||
const maybe = await this.run();
|
|
||||||
return liftEither(maybe.toEither(error));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ifJust(effect) {
|
|
||||||
return MaybeAsync(async (helpers2) => {
|
|
||||||
const maybe = await this.run();
|
|
||||||
maybe.ifJust(effect);
|
|
||||||
return helpers2.liftMaybe(maybe);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ifNothing(effect) {
|
|
||||||
return MaybeAsync(async (helpers2) => {
|
|
||||||
const maybe = await this.run();
|
|
||||||
maybe.ifNothing(effect);
|
|
||||||
return helpers2.liftMaybe(maybe);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
void() {
|
|
||||||
return this.map((_) => {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
caseOf(patterns) {
|
|
||||||
return this.run().then((x) => x.caseOf(patterns));
|
|
||||||
}
|
|
||||||
finally(effect) {
|
|
||||||
return MaybeAsync(({ fromPromise }) => fromPromise(this.run().finally(effect)));
|
|
||||||
}
|
|
||||||
then(onfulfilled, onrejected) {
|
|
||||||
return this.run().then(onfulfilled, onrejected);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_a = Symbol.toStringTag;
|
|
||||||
const MaybeAsync = Object.assign((runPromise) => new MaybeAsyncImpl(runPromise), {
|
|
||||||
catMaybes: (list) => Promise.all(list).then(Maybe.catMaybes),
|
|
||||||
fromPromise: (f) => MaybeAsync(({ fromPromise: fP }) => fP(f())),
|
|
||||||
liftMaybe: (maybe) => MaybeAsync(({ liftMaybe }) => liftMaybe(maybe))
|
|
||||||
});
|
|
||||||
MaybeAsyncImpl.prototype.constructor = MaybeAsync;
|
|
||||||
export {
|
|
||||||
EitherAsync as E
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=MaybeAsync.AE1jnxuc.js.map
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
||||||
|
import{E as o,r as h,l as P,M,n as u,j as c}from"./Either.DDEPhGsy.js";var f;const l={liftEither(i){if(i.isRight())return Promise.resolve(i.extract());throw i.extract()},fromPromise(i){return i.then(l.liftEither)},throwE(i){throw i}};class y{constructor(t){this.runPromise=t,this[f]="EitherAsync",this["fantasy-land/chain"]=this.chain,this["fantasy-land/alt"]=this.alt,this.then=(r,e)=>this.run().then(r,e)}leftOrDefault(t){return this.run().then(r=>r.leftOrDefault(t))}orDefault(t){return this.run().then(r=>r.orDefault(t))}join(){return n(async t=>{const r=await this;if(r.isRight()){const e=await r.extract();return t.liftEither(e)}return t.liftEither(r)})}ap(t){return n(async r=>{const e=await t;if(e.isRight()){const a=await this.run();return a.isRight()?e.extract()(a.extract()):r.liftEither(a)}return r.liftEither(e)})}alt(t){return n(async r=>{const e=await this.run();if(e.isRight())return e.extract();{const a=await t;return r.liftEither(a)}})}extend(t){return n(async r=>{const e=await this.run();if(e.isRight()){const a=n.liftEither(e);return r.liftEither(h(t(a)))}return r.liftEither(e)})}async run(){try{return h(await this.runPromise(l))}catch(t){return P(t)}}bimap(t,r){return n(async e=>{const a=await this.run();try{return await e.liftEither(a.bimap(t,r))}catch(E){throw await E}})}map(t){return n(r=>this.runPromise(r).then(t))}mapLeft(t){return n(async r=>{try{return await this.runPromise(r)}catch(e){throw await t(e)}})}chain(t){return n(async r=>{const e=await this.runPromise(r);return r.fromPromise(t(e))})}chainLeft(t){return n(async r=>{try{return await this.runPromise(r)}catch(e){return r.fromPromise(t(e))}})}toMaybeAsync(){return s(async({liftMaybe:t})=>{const r=await this.run();return t(r.toMaybe())})}swap(){return n(async t=>{const r=await this.run();return r.isRight()&&t.throwE(r.extract()),t.liftEither(h(r.extract()))})}ifLeft(t){return n(async r=>{const e=await this.run();return e.ifLeft(t),r.liftEither(e)})}ifRight(t){return n(async r=>{const e=await this.run();return e.ifRight(t),r.liftEither(e)})}void(){return this.map(t=>{})}caseOf(t){return this.run().then(r=>r.caseOf(t))}finally(t){return n(({fromPromise:r})=>r(this.run().finally(t)))}}f=Symbol.toStringTag;const n=Object.assign(i=>new y(i),{fromPromise:i=>n(({fromPromise:t})=>t(i())),liftEither:i=>n(({liftEither:t})=>t(i)),lefts:i=>Promise.all(i.map(t=>t.run())).then(o.lefts),rights:i=>Promise.all(i.map(t=>t.run())).then(o.rights),sequence:i=>n(async t=>{let r=[];for await(const e of i){if(e.isLeft())return t.liftEither(e);r.push(e.extract())}return t.liftEither(h(r))}),all:i=>n.fromPromise(async()=>Promise.all(i).then(o.sequence))});y.prototype.constructor=n;var m;const w={liftMaybe(i){if(i.isJust())return Promise.resolve(i.extract());throw u},fromPromise(i){return i.then(w.liftMaybe)}};class b{constructor(t){this.runPromise=t,this[m]="MaybeAsync",this["fantasy-land/chain"]=this.chain,this["fantasy-land/filter"]=this.filter,this["fantasy-land/alt"]=this.alt}orDefault(t){return this.run().then(r=>r.orDefault(t))}join(){return s(async t=>{const r=await this.run();if(r.isJust()){const e=await r.extract();return t.liftMaybe(e)}return t.liftMaybe(u)})}ap(t){return s(async r=>{const e=await t;if(e.isJust()){const a=await this.run();return a.isJust()?e.extract()(a.extract()):r.liftMaybe(u)}return r.liftMaybe(u)})}alt(t){return s(async r=>{const e=await this.run();if(e.isJust())return e.extract();{const a=await t;return r.liftMaybe(a)}})}extend(t){return s(async r=>{const e=await this.run();if(e.isJust()){const a=s.liftMaybe(e);return r.liftMaybe(c(t(a)))}return r.liftMaybe(u)})}filter(t){return s(async r=>{const e=await this.run();return r.liftMaybe(e.filter(t))})}async run(){try{return c(await this.runPromise(w))}catch{return u}}map(t){return s(r=>this.runPromise(r).then(t))}chain(t){return s(async r=>{const e=await this.runPromise(r);return r.fromPromise(t(e))})}toEitherAsync(t){return n(async({liftEither:r})=>{const e=await this.run();return r(e.toEither(t))})}ifJust(t){return s(async r=>{const e=await this.run();return e.ifJust(t),r.liftMaybe(e)})}ifNothing(t){return s(async r=>{const e=await this.run();return e.ifNothing(t),r.liftMaybe(e)})}void(){return this.map(t=>{})}caseOf(t){return this.run().then(r=>r.caseOf(t))}finally(t){return s(({fromPromise:r})=>r(this.run().finally(t)))}then(t,r){return this.run().then(t,r)}}m=Symbol.toStringTag;const s=Object.assign(i=>new b(i),{catMaybes:i=>Promise.all(i).then(M.catMaybes),fromPromise:i=>s(({fromPromise:t})=>t(i())),liftMaybe:i=>s(({liftMaybe:t})=>t(i))});b.prototype.constructor=s;export{n as E};
|
||||||
|
|
@ -1,32 +1 @@
|
||||||
import { o as object, s as string } from "./index.Dco04HYW.js";
|
import{o as e,s}from"./index.DFL3aKZD.js";const t=e({address_1:s(),address_2:s(),city:s(),company:s(),country:s(),email:s(),first_name:s(),last_name:s(),phone:s(),postcode:s(),state:s()}),o=e({address_1:s(),address_2:s(),city:s(),company:s(),country:s(),first_name:s(),last_name:s(),phone:s(),postcode:s(),state:s()});export{t as W,o as a};
|
||||||
const WCStoreBillingAddressSchema = object({
|
|
||||||
address_1: string(),
|
|
||||||
address_2: string(),
|
|
||||||
city: string(),
|
|
||||||
company: string(),
|
|
||||||
country: string(),
|
|
||||||
// email: v.optional(v.pipe(v.string(), v.email())),
|
|
||||||
email: string(),
|
|
||||||
first_name: string(),
|
|
||||||
last_name: string(),
|
|
||||||
phone: string(),
|
|
||||||
postcode: string(),
|
|
||||||
state: string()
|
|
||||||
});
|
|
||||||
const WCStoreShippingAddressSchema = object({
|
|
||||||
address_1: string(),
|
|
||||||
address_2: string(),
|
|
||||||
city: string(),
|
|
||||||
company: string(),
|
|
||||||
country: string(),
|
|
||||||
first_name: string(),
|
|
||||||
last_name: string(),
|
|
||||||
phone: string(),
|
|
||||||
postcode: string(),
|
|
||||||
state: string()
|
|
||||||
});
|
|
||||||
export {
|
|
||||||
WCStoreBillingAddressSchema as W,
|
|
||||||
WCStoreShippingAddressSchema as a
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=adresses.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"adresses.js","sources":["../../src/scripts/lib/schemas/api/adresses.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nexport const WCStoreBillingAddressSchema = v.object({\n address_1: v.string(),\n address_2: v.string(),\n city: v.string(),\n company: v.string(),\n country: v.string(),\n // email: v.optional(v.pipe(v.string(), v.email())),\n email: v.string(),\n first_name: v.string(),\n last_name: v.string(),\n phone: v.string(),\n postcode: v.string(),\n state: v.string(),\n});\n\nexport const WCStoreShippingAddressSchema = v.object({\n address_1: v.string(),\n address_2: v.string(),\n city: v.string(),\n company: v.string(),\n country: v.string(),\n first_name: v.string(),\n last_name: v.string(),\n phone: v.string(),\n postcode: v.string(),\n state: v.string(),\n});\n"],"names":["v.object","v.string"],"mappings":";AAEa,MAAA,8BAA8BA,OAAS;AAAA,EAClD,WAAWC,OAAS;AAAA,EACpB,WAAWA,OAAS;AAAA,EACpB,MAAMA,OAAS;AAAA,EACf,SAASA,OAAS;AAAA,EAClB,SAASA,OAAS;AAAA;AAAA,EAElB,OAAOA,OAAS;AAAA,EAChB,YAAYA,OAAS;AAAA,EACrB,WAAWA,OAAS;AAAA,EACpB,OAAOA,OAAS;AAAA,EAChB,UAAUA,OAAS;AAAA,EACnB,OAAOA,OAAS;AAClB,CAAC;AAEY,MAAA,+BAA+BD,OAAS;AAAA,EACnD,WAAWC,OAAS;AAAA,EACpB,WAAWA,OAAS;AAAA,EACpB,MAAMA,OAAS;AAAA,EACf,SAASA,OAAS;AAAA,EAClB,SAASA,OAAS;AAAA,EAClB,YAAYA,OAAS;AAAA,EACrB,WAAWA,OAAS;AAAA,EACpB,OAAOA,OAAS;AAAA,EAChB,UAAUA,OAAS;AAAA,EACnB,OAAOA,OAAS;AAClB,CAAC;"}
|
|
||||||
|
|
@ -1,22 +1 @@
|
||||||
const CHEMIN_API_REST = "wp-json";
|
const E="wp-json",t=`/${E}/wc/store/cart`,_=`/${E}/wc/store/cart/add-item`,s=`/${E}/wc/store/cart/remove-item`,T=`/${E}/wc/store/cart/update-item`,c=`/${E}/wc/store/cart/update-customer`,I=`/${E}/wc/v3/products`,R="Nonce",o="retry-after",a="x-sentry-rate-limits";export{R as E,I as R,s as a,T as b,c,_ as d,t as e,a as f,o as g};
|
||||||
const ROUTE_API_PANIER = `/${CHEMIN_API_REST}/wc/store/cart`;
|
|
||||||
const ROUTE_API_AJOUTE_ARTICLE_PANIER = `/${CHEMIN_API_REST}/wc/store/cart/add-item`;
|
|
||||||
const ROUTE_API_RETIRE_ARTICLE_PANIER = `/${CHEMIN_API_REST}/wc/store/cart/remove-item`;
|
|
||||||
const ROUTE_API_MAJ_ARTICLE_PANIER = `/${CHEMIN_API_REST}/wc/store/cart/update-item`;
|
|
||||||
const ROUTE_API_MAJ_CLIENT = `/${CHEMIN_API_REST}/wc/store/cart/update-customer`;
|
|
||||||
const ROUTE_API_NOUVELLE_PRODUCTS = `/${CHEMIN_API_REST}/wc/v3/products`;
|
|
||||||
const ENTETE_WC_NONCE = "Nonce";
|
|
||||||
const ENTETE_GLITCHTIP_RETRY_AFTER = "retry-after";
|
|
||||||
const ENTETE_GLITCHTIP_RATE_LIMITS = "x-sentry-rate-limits";
|
|
||||||
export {
|
|
||||||
ENTETE_WC_NONCE as E,
|
|
||||||
ROUTE_API_NOUVELLE_PRODUCTS as R,
|
|
||||||
ROUTE_API_RETIRE_ARTICLE_PANIER as a,
|
|
||||||
ROUTE_API_MAJ_ARTICLE_PANIER as b,
|
|
||||||
ROUTE_API_MAJ_CLIENT as c,
|
|
||||||
ROUTE_API_AJOUTE_ARTICLE_PANIER as d,
|
|
||||||
ROUTE_API_PANIER as e,
|
|
||||||
ENTETE_GLITCHTIP_RATE_LIMITS as f,
|
|
||||||
ENTETE_GLITCHTIP_RETRY_AFTER as g
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=api.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"api.js","sources":["../../src/scripts/constantes/api.ts"],"sourcesContent":["// Chemins et Routes pour l'API WordPress\nexport const CHEMIN_API_REST = \"wp-json\";\nexport const ROUTE_API_PANIER = `/${CHEMIN_API_REST}/wc/store/cart`;\nexport const ROUTE_API_AJOUTE_ARTICLE_PANIER = `/${CHEMIN_API_REST}/wc/store/cart/add-item`;\nexport const ROUTE_API_RETIRE_ARTICLE_PANIER = `/${CHEMIN_API_REST}/wc/store/cart/remove-item`;\nexport const ROUTE_API_MAJ_ARTICLE_PANIER = `/${CHEMIN_API_REST}/wc/store/cart/update-item`;\nexport const ROUTE_API_MAJ_CLIENT = `/${CHEMIN_API_REST}/wc/store/cart/update-customer`;\nexport const ROUTE_API_PRODUITS = `/${CHEMIN_API_REST}/wc/store/products`;\nexport const ROUTE_API_NOUVELLE_PRODUCTS = `/${CHEMIN_API_REST}/wc/v3/products`;\n\n// En-têtes\nexport const ENTETE_WC_NONCE = \"Nonce\";\nexport const ENTETE_GLITCHTIP_RETRY_AFTER = \"retry-after\";\nexport const ENTETE_GLITCHTIP_RATE_LIMITS = \"x-sentry-rate-limits\";\n"],"names":[],"mappings":"AACO,MAAM,kBAAkB;AAClB,MAAA,mBAAmB,IAAI,eAAe;AACtC,MAAA,kCAAkC,IAAI,eAAe;AACrD,MAAA,kCAAkC,IAAI,eAAe;AACrD,MAAA,+BAA+B,IAAI,eAAe;AAClD,MAAA,uBAAuB,IAAI,eAAe;AAE1C,MAAA,8BAA8B,IAAI,eAAe;AAGvD,MAAM,kBAAkB;AACxB,MAAM,+BAA+B;AACrC,MAAM,+BAA+B;"}
|
|
||||||
|
|
@ -1,149 +0,0 @@
|
||||||
import { v as valFromOption, f as some } from "./dom2.js";
|
|
||||||
function sub(n2, r, t) {
|
|
||||||
var e = new Array(t);
|
|
||||||
var u = 0;
|
|
||||||
var a = r;
|
|
||||||
while (u < t) {
|
|
||||||
e[u] = n2[a];
|
|
||||||
u = u + 1 | 0;
|
|
||||||
a = a + 1 | 0;
|
|
||||||
}
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
function app(n2, r) {
|
|
||||||
while (1) {
|
|
||||||
var t = r;
|
|
||||||
var e = n2;
|
|
||||||
var u = e.length;
|
|
||||||
var a = 0 === u ? 1 : u;
|
|
||||||
var c = a - t.length | 0;
|
|
||||||
if (0 === c) {
|
|
||||||
return e.apply(null, t);
|
|
||||||
}
|
|
||||||
if (c >= 0) {
|
|
||||||
return /* @__PURE__ */ function(n3, r2) {
|
|
||||||
return function(t2) {
|
|
||||||
return app(n3, r2.concat([t2]));
|
|
||||||
};
|
|
||||||
}(e, t);
|
|
||||||
}
|
|
||||||
r = sub(t, a, 0 | -c);
|
|
||||||
n2 = e.apply(null, sub(t, 0, a));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function _1(n2, r) {
|
|
||||||
var t = n2.length;
|
|
||||||
if (1 === t) {
|
|
||||||
return n2(r);
|
|
||||||
} else {
|
|
||||||
switch (t) {
|
|
||||||
case 1:
|
|
||||||
return n2(r);
|
|
||||||
case 2:
|
|
||||||
return function(t2) {
|
|
||||||
return n2(r, t2);
|
|
||||||
};
|
|
||||||
case 3:
|
|
||||||
return function(t2, e) {
|
|
||||||
return n2(r, t2, e);
|
|
||||||
};
|
|
||||||
case 4:
|
|
||||||
return function(t2, e, u) {
|
|
||||||
return n2(r, t2, e, u);
|
|
||||||
};
|
|
||||||
case 5:
|
|
||||||
return function(t2, e, u, a) {
|
|
||||||
return n2(r, t2, e, u, a);
|
|
||||||
};
|
|
||||||
case 6:
|
|
||||||
return function(t2, e, u, a, c) {
|
|
||||||
return n2(r, t2, e, u, a, c);
|
|
||||||
};
|
|
||||||
case 7:
|
|
||||||
return function(t2, e, u, a, c, i) {
|
|
||||||
return n2(r, t2, e, u, a, c, i);
|
|
||||||
};
|
|
||||||
default:
|
|
||||||
return app(n2, [r]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function __1(n2) {
|
|
||||||
if (1 === n2.length) {
|
|
||||||
return n2;
|
|
||||||
} else {
|
|
||||||
return function(r) {
|
|
||||||
return _1(n2, r);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var n = {
|
|
||||||
contents: 0
|
|
||||||
};
|
|
||||||
function create(r) {
|
|
||||||
n.contents = n.contents + 1 | 0;
|
|
||||||
return r + "/" + n.contents;
|
|
||||||
}
|
|
||||||
function is_extension(n2) {
|
|
||||||
if (null == n2) {
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return "string" == typeof n2.RE_EXN_ID;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function getExn(t) {
|
|
||||||
if (void 0 !== t) {
|
|
||||||
return valFromOption(t);
|
|
||||||
}
|
|
||||||
throw {
|
|
||||||
RE_EXN_ID: "Not_found",
|
|
||||||
Error: new Error()
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function mapWithDefaultU(t, i, a) {
|
|
||||||
if (void 0 !== t) {
|
|
||||||
return a(valFromOption(t));
|
|
||||||
} else {
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function mapU(t, a) {
|
|
||||||
if (void 0 !== t) {
|
|
||||||
return some(a(valFromOption(t)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function flatMapU(t, i) {
|
|
||||||
if (void 0 !== t) {
|
|
||||||
return i(valFromOption(t));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function flatMap(n2, i) {
|
|
||||||
return flatMapU(n2, __1(i));
|
|
||||||
}
|
|
||||||
function getWithDefault(t, i) {
|
|
||||||
if (void 0 !== t) {
|
|
||||||
return valFromOption(t);
|
|
||||||
} else {
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function isSome(t) {
|
|
||||||
return void 0 !== t;
|
|
||||||
}
|
|
||||||
function isNone(t) {
|
|
||||||
return void 0 === t;
|
|
||||||
}
|
|
||||||
export {
|
|
||||||
_1 as _,
|
|
||||||
isSome as a,
|
|
||||||
getWithDefault as b,
|
|
||||||
create as c,
|
|
||||||
isNone as d,
|
|
||||||
mapU as e,
|
|
||||||
flatMap as f,
|
|
||||||
getExn as g,
|
|
||||||
flatMapU as h,
|
|
||||||
is_extension as i,
|
|
||||||
mapWithDefaultU as m
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=belt_Option-91f3b350.BEnQsSyX.js.map
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
||||||
|
import{v as f,f as h}from"./dom2.js";function l(n,r,i){for(var t=new Array(i),e=0,u=r;e<i;)t[e]=n[u],e=e+1|0,u=u+1|0;return t}function v(n,r){for(;;){var i=r,t=n,e=t.length,u=e===0?1:e,o=u-i.length|0;if(o===0)return t.apply(null,i);if(o>=0)return function(a,c){return function(p){return v(a,c.concat([p]))}}(t,i);r=l(i,u,0|-o),n=t.apply(null,l(i,0,u))}}function d(n,r){var i=n.length;if(i===1)return n(r);switch(i){case 1:return n(r);case 2:return function(t){return n(r,t)};case 3:return function(t,e){return n(r,t,e)};case 4:return function(t,e,u){return n(r,t,e,u)};case 5:return function(t,e,u,o){return n(r,t,e,u,o)};case 6:return function(t,e,u,o,a){return n(r,t,e,u,o,a)};case 7:return function(t,e,u,o,a,c){return n(r,t,e,u,o,a,c)};default:return v(n,[r])}}function _(n){return n.length===1?n:function(r){return d(n,r)}}var s={contents:0};function E(n){return s.contents=s.contents+1|0,n+"/"+s.contents}function w(n){return n==null?!1:typeof n.RE_EXN_ID=="string"}function y(n){if(n!==void 0)return f(n);throw{RE_EXN_ID:"Not_found",Error:new Error}}function D(n,r,i){return n!==void 0?i(f(n)):r}function N(n,r){if(n!==void 0)return h(r(f(n)))}function g(n,r){if(n!==void 0)return r(f(n))}function x(n,r){return g(n,_(r))}function U(n,r){return n!==void 0?f(n):r}function b(n){return n!==void 0}function I(n){return n===void 0}export{d as _,b as a,U as b,E as c,I as d,N as e,x as f,y as g,g as h,w as i,D as m};
|
||||||
|
|
@ -1,20 +1 @@
|
||||||
import { o as object, c as optional, n as number, b as array, p as parse, s as string } from "./index.Dco04HYW.js";
|
import{o as s,c as t,n as a,b as o,p as m,s as r}from"./index.DFL3aKZD.js";const n=s({attribute:r(),value:r()}),i=s({id:t(a()),quantity:t(a()),variation:t(o(n))}),d=e=>m(i,e);export{d as p};
|
||||||
const WCStoreCartAddItemArgsItemsSchema = object({
|
|
||||||
/** Variation attribute name. */
|
|
||||||
attribute: string(),
|
|
||||||
/** Variation attribute value. */
|
|
||||||
value: string()
|
|
||||||
});
|
|
||||||
const WCStoreCartAddItemArgsSchema = object({
|
|
||||||
/** The basket item product or variation ID. */
|
|
||||||
id: optional(number()),
|
|
||||||
/** Quantity of this item to add to the basket. */
|
|
||||||
quantity: optional(number()),
|
|
||||||
/** Chosen attributes (for variations). */
|
|
||||||
variation: optional(array(WCStoreCartAddItemArgsItemsSchema))
|
|
||||||
});
|
|
||||||
const parseWCStoreCartAddItemArgs = (args) => parse(WCStoreCartAddItemArgsSchema, args);
|
|
||||||
export {
|
|
||||||
parseWCStoreCartAddItemArgs as p
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=cart-add-item.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"cart-add-item.js","sources":["../../src/scripts/lib/schemas/api/cart-add-item.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nimport type { WCStoreCartAddItemArgs } from \"../../types/api/cart-add-item\";\n\nexport const WCStoreCartAddItemArgsItemsSchema = v.object({\n /** Variation attribute name. */\n attribute: v.string(),\n /** Variation attribute value. */\n value: v.string(),\n});\n\nexport const WCStoreCartAddItemArgsSchema = v.object({\n /** The basket item product or variation ID. */\n id: v.optional(v.number()),\n /** Quantity of this item to add to the basket. */\n quantity: v.optional(v.number()),\n /** Chosen attributes (for variations). */\n variation: v.optional(v.array(WCStoreCartAddItemArgsItemsSchema)),\n});\n\nexport const parseWCStoreCartAddItemArgs: (args: unknown) => WCStoreCartAddItemArgs = args =>\n v.parse(WCStoreCartAddItemArgsSchema, args);\n"],"names":["v.object","v.string","v.optional","v.number","v.array","v.parse"],"mappings":";AAIa,MAAA,oCAAoCA,OAAS;AAAA;AAAA,EAExD,WAAWC,OAAS;AAAA;AAAA,EAEpB,OAAOA,OAAS;AAClB,CAAC;AAEY,MAAA,+BAA+BD,OAAS;AAAA;AAAA,EAEnD,IAAIE,SAAWC,QAAU;AAAA;AAAA,EAEzB,UAAUD,SAAWC,QAAU;AAAA;AAAA,EAE/B,WAAWD,SAAWE,MAAQ,iCAAiC,CAAC;AAClE,CAAC;AAEM,MAAM,8BAAyE,CAAA,SACpFC,MAAQ,8BAA8B,IAAI;"}
|
|
||||||
|
|
@ -1,9 +1 @@
|
||||||
import { o as object, s as string } from "./index.Dco04HYW.js";
|
import{o as e,s as o}from"./index.DFL3aKZD.js";const r=e({key:o()});export{r as W};
|
||||||
const WCStoreCartRemoveItemArgsSchema = object({
|
|
||||||
/** Unique identifier (key) for the basket item. */
|
|
||||||
key: string()
|
|
||||||
});
|
|
||||||
export {
|
|
||||||
WCStoreCartRemoveItemArgsSchema as W
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=cart-remove-item.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"cart-remove-item.js","sources":["../../src/scripts/lib/schemas/api/cart-remove-item.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nimport type { WCStoreCartRemoveItemArgs } from \"../../types/api/cart-remove-item\";\n\nexport const WCStoreCartRemoveItemArgsSchema = v.object({\n /** Unique identifier (key) for the basket item. */\n key: v.string(),\n});\n\nexport const parseWCStoreCartRemoveItemArgs = (args: WCStoreCartRemoveItemArgs): WCStoreCartRemoveItemArgs =>\n v.parse(WCStoreCartRemoveItemArgsSchema, args);\n"],"names":["v.object","v.string"],"mappings":";AAIa,MAAA,kCAAkCA,OAAS;AAAA;AAAA,EAEtD,KAAKC,OAAS;AAChB,CAAC;"}
|
|
||||||
|
|
@ -1,10 +1 @@
|
||||||
import { o as object, c as optional } from "./index.Dco04HYW.js";
|
import{o as r,c as s}from"./index.DFL3aKZD.js";import{W as a,a as e}from"./adresses.js";const i=r({billing_address:s(a),shipping_address:s(e)});export{i as W};
|
||||||
import { W as WCStoreBillingAddressSchema, a as WCStoreShippingAddressSchema } from "./adresses.js";
|
|
||||||
const WCStoreCartUpdateCustomerArgsSchema = object({
|
|
||||||
billing_address: optional(WCStoreBillingAddressSchema),
|
|
||||||
shipping_address: optional(WCStoreShippingAddressSchema)
|
|
||||||
});
|
|
||||||
export {
|
|
||||||
WCStoreCartUpdateCustomerArgsSchema as W
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=cart-update-customer.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"cart-update-customer.js","sources":["../../src/scripts/lib/schemas/api/cart-update-customer.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nimport { WCStoreBillingAddressSchema, WCStoreShippingAddressSchema } from \"./adresses.ts\";\n\nexport const WCStoreCartUpdateCustomerArgsSchema = v.object({\n billing_address: v.optional(WCStoreBillingAddressSchema),\n shipping_address: v.optional(WCStoreShippingAddressSchema),\n});\n"],"names":["v.object","v.optional"],"mappings":";;AAIa,MAAA,sCAAsCA,OAAS;AAAA,EAC1D,iBAAiBC,SAAW,2BAA2B;AAAA,EACvD,kBAAkBA,SAAW,4BAA4B;AAC3D,CAAC;"}
|
|
||||||
|
|
@ -1,11 +1 @@
|
||||||
import { o as object, s as string, a as pipe, m as minValue, n as number } from "./index.Dco04HYW.js";
|
import{o as a,s as t,a as e,m as s,n as r}from"./index.DFL3aKZD.js";const o=a({key:t(),quantity:e(r(),s(1))});export{o as W};
|
||||||
const WCStoreCartUpdateItemArgsSchema = object({
|
|
||||||
/** Unique identifier (key) for the basket item to update. */
|
|
||||||
key: string(),
|
|
||||||
/** New quantity of the item in the basket. */
|
|
||||||
quantity: pipe(number(), minValue(1))
|
|
||||||
});
|
|
||||||
export {
|
|
||||||
WCStoreCartUpdateItemArgsSchema as W
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=cart-update-item.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"cart-update-item.js","sources":["../../src/scripts/lib/schemas/api/cart-update-item.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nexport const WCStoreCartUpdateItemArgsSchema = v.object({\n /** Unique identifier (key) for the basket item to update. */\n key: v.string(),\n /** New quantity of the item in the basket. */\n quantity: v.pipe(v.number(), v.minValue(1)),\n});\n"],"names":["v.object","v.string","v.pipe","v.number","v.minValue"],"mappings":";AAEa,MAAA,kCAAkCA,OAAS;AAAA;AAAA,EAEtD,KAAKC,OAAS;AAAA;AAAA,EAEd,UAAUC,KAAOC,UAAYC,SAAW,CAAC,CAAC;AAC5C,CAAC;"}
|
|
||||||
|
|
@ -1,84 +1 @@
|
||||||
import { o as object, d as boolean, e as enum_, s as string, u as unknown, n as number, b as array, f as union, a as pipe, g as null_, h as url, i as integer } from "./index.Dco04HYW.js";
|
import{o as i,d as a,e as l,s as t,u as e,n as r,b as s,f as o,a as n,g as _,h as m,i as c}from"./index.DFL3aKZD.js";import{C as p}from"./cart2.js";import{W as u,a as d}from"./adresses.js";import{W as y}from"./couts-livraison.js";const h=i({currency_code:t(),currency_decimal_separator:t(),currency_minor_unit:r(),currency_prefix:t(),currency_suffix:t(),currency_symbol:t(),currency_thousand_separator:t(),line_subtotal:t(),line_subtotal_tax:t(),line_total:t(),line_total_tax:t()}),g=i({backorders_allowed:a(),catalog_visibility:l(p),description:t(),extensions:e(),id:r(),images:s(e()),item_data:s(e()),key:t(),low_stock_remaining:o([_()]),name:t(),permalink:n(t(),m()),prices:e(),quantity:r(),quantity_limits:e(),short_description:t(),show_backorder_badge:a(),sku:t(),sold_individually:a(),totals:h,type:t(),variation:s(e())}),S=i({currency_code:t(),currency_decimal_separator:t(),currency_minor_unit:r(),currency_prefix:t(),currency_suffix:t(),currency_symbol:t(),currency_thousand_separator:t(),tax_lines:s(e()),total_discount:t(),total_discount_tax:t(),total_fees:t(),total_fees_tax:t(),total_items:t(),total_items_tax:t(),total_price:t(),total_shipping:o([t(),_()]),total_shipping_tax:o([t(),_()]),total_tax:t()}),W=i({billing_address:u,coupons:e(),cross_sells:e(),errors:e(),extensions:e(),fees:e(),has_calculated_shipping:a(),items:s(g),items_count:n(r(),c()),items_weight:n(r(),c()),needs_payment:a(),needs_shipping:a(),payment_methods:e(),payment_requirements:e(),shipping_address:d,shipping_rates:s(y),totals:S});export{W,g as a};
|
||||||
import { C as CATALOG_VISIBILITIES } from "./cart2.js";
|
|
||||||
import { W as WCStoreBillingAddressSchema, a as WCStoreShippingAddressSchema } from "./adresses.js";
|
|
||||||
import { W as WCStoreShippingRateSchema } from "./couts-livraison.js";
|
|
||||||
const WCStoreCartItemTotalsSchema = object({
|
|
||||||
currency_code: string(),
|
|
||||||
currency_decimal_separator: string(),
|
|
||||||
currency_minor_unit: number(),
|
|
||||||
currency_prefix: string(),
|
|
||||||
currency_suffix: string(),
|
|
||||||
currency_symbol: string(),
|
|
||||||
currency_thousand_separator: string(),
|
|
||||||
line_subtotal: string(),
|
|
||||||
line_subtotal_tax: string(),
|
|
||||||
line_total: string(),
|
|
||||||
line_total_tax: string()
|
|
||||||
});
|
|
||||||
const WCStoreCartItemSchema = object({
|
|
||||||
backorders_allowed: boolean(),
|
|
||||||
catalog_visibility: enum_(CATALOG_VISIBILITIES),
|
|
||||||
description: string(),
|
|
||||||
extensions: unknown(),
|
|
||||||
id: number(),
|
|
||||||
images: array(unknown()),
|
|
||||||
item_data: array(unknown()),
|
|
||||||
key: string(),
|
|
||||||
low_stock_remaining: union([null_()]),
|
|
||||||
name: string(),
|
|
||||||
permalink: pipe(string(), url()),
|
|
||||||
prices: unknown(),
|
|
||||||
quantity: number(),
|
|
||||||
quantity_limits: unknown(),
|
|
||||||
short_description: string(),
|
|
||||||
show_backorder_badge: boolean(),
|
|
||||||
sku: string(),
|
|
||||||
sold_individually: boolean(),
|
|
||||||
totals: WCStoreCartItemTotalsSchema,
|
|
||||||
type: string(),
|
|
||||||
variation: array(unknown())
|
|
||||||
});
|
|
||||||
const WCStoreCartTotalsSchema = object({
|
|
||||||
currency_code: string(),
|
|
||||||
currency_decimal_separator: string(),
|
|
||||||
currency_minor_unit: number(),
|
|
||||||
currency_prefix: string(),
|
|
||||||
currency_suffix: string(),
|
|
||||||
currency_symbol: string(),
|
|
||||||
currency_thousand_separator: string(),
|
|
||||||
tax_lines: array(unknown()),
|
|
||||||
total_discount: string(),
|
|
||||||
total_discount_tax: string(),
|
|
||||||
total_fees: string(),
|
|
||||||
total_fees_tax: string(),
|
|
||||||
total_items: string(),
|
|
||||||
total_items_tax: string(),
|
|
||||||
total_price: string(),
|
|
||||||
total_shipping: union([string(), null_()]),
|
|
||||||
total_shipping_tax: union([string(), null_()]),
|
|
||||||
total_tax: string()
|
|
||||||
});
|
|
||||||
const WCStoreCartSchema = object({
|
|
||||||
billing_address: WCStoreBillingAddressSchema,
|
|
||||||
coupons: unknown(),
|
|
||||||
cross_sells: unknown(),
|
|
||||||
errors: unknown(),
|
|
||||||
extensions: unknown(),
|
|
||||||
fees: unknown(),
|
|
||||||
has_calculated_shipping: boolean(),
|
|
||||||
items: array(WCStoreCartItemSchema),
|
|
||||||
items_count: pipe(number(), integer()),
|
|
||||||
items_weight: pipe(number(), integer()),
|
|
||||||
needs_payment: boolean(),
|
|
||||||
needs_shipping: boolean(),
|
|
||||||
payment_methods: unknown(),
|
|
||||||
payment_requirements: unknown(),
|
|
||||||
shipping_address: WCStoreShippingAddressSchema,
|
|
||||||
shipping_rates: array(WCStoreShippingRateSchema),
|
|
||||||
totals: WCStoreCartTotalsSchema
|
|
||||||
});
|
|
||||||
export {
|
|
||||||
WCStoreCartSchema as W,
|
|
||||||
WCStoreCartItemSchema as a
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=cart.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"cart.js","sources":["../../src/scripts/lib/schemas/api/cart.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nimport { CATALOG_VISIBILITIES } from \"../../../constantes/cart.ts\";\nimport { WCStoreBillingAddressSchema, WCStoreShippingAddressSchema } from \"./adresses.ts\";\nimport { WCStoreShippingRateSchema } from \"./couts-livraison.ts\";\n\nexport const WCStoreCartItemTotalsSchema = v.object({\n currency_code: v.string(),\n currency_decimal_separator: v.string(),\n currency_minor_unit: v.number(),\n currency_prefix: v.string(),\n currency_suffix: v.string(),\n currency_symbol: v.string(),\n currency_thousand_separator: v.string(),\n line_subtotal: v.string(),\n line_subtotal_tax: v.string(),\n line_total: v.string(),\n line_total_tax: v.string(),\n});\n\nexport const WCStoreCartItemSchema = v.object({\n backorders_allowed: v.boolean(),\n catalog_visibility: v.enum(CATALOG_VISIBILITIES),\n description: v.string(),\n extensions: v.unknown(),\n id: v.number(),\n images: v.array(v.unknown()),\n item_data: v.array(v.unknown()),\n key: v.string(),\n low_stock_remaining: v.union([v.null()]),\n name: v.string(),\n permalink: v.pipe(v.string(), v.url()),\n prices: v.unknown(),\n quantity: v.number(),\n quantity_limits: v.unknown(),\n short_description: v.string(),\n show_backorder_badge: v.boolean(),\n sku: v.string(),\n sold_individually: v.boolean(),\n totals: WCStoreCartItemTotalsSchema,\n type: v.string(),\n variation: v.array(v.unknown()),\n});\n\nexport const WCStoreCartTotalsSchema = v.object({\n currency_code: v.string(),\n currency_decimal_separator: v.string(),\n currency_minor_unit: v.number(),\n currency_prefix: v.string(),\n currency_suffix: v.string(),\n currency_symbol: v.string(),\n currency_thousand_separator: v.string(),\n tax_lines: v.array(v.unknown()),\n total_discount: v.string(),\n total_discount_tax: v.string(),\n total_fees: v.string(),\n total_fees_tax: v.string(),\n total_items: v.string(),\n total_items_tax: v.string(),\n total_price: v.string(),\n total_shipping: v.union([v.string(), v.null()]),\n total_shipping_tax: v.union([v.string(), v.null()]),\n total_tax: v.string(),\n});\n\nexport const WCStoreCartSchema = v.object({\n billing_address: WCStoreBillingAddressSchema,\n coupons: v.unknown(),\n cross_sells: v.unknown(),\n errors: v.unknown(),\n extensions: v.unknown(),\n fees: v.unknown(),\n has_calculated_shipping: v.boolean(),\n items: v.array(WCStoreCartItemSchema),\n items_count: v.pipe(v.number(), v.integer()),\n items_weight: v.pipe(v.number(), v.integer()),\n needs_payment: v.boolean(),\n needs_shipping: v.boolean(),\n payment_methods: v.unknown(),\n payment_requirements: v.unknown(),\n shipping_address: WCStoreShippingAddressSchema,\n shipping_rates: v.array(WCStoreShippingRateSchema),\n totals: WCStoreCartTotalsSchema,\n});\n"],"names":["v.object","v.string","v.number","v.boolean","v.enum","v.unknown","v.array","v.union","v.null","v.pipe","v.url","v.integer"],"mappings":";;;;AAMa,MAAA,8BAA8BA,OAAS;AAAA,EAClD,eAAeC,OAAS;AAAA,EACxB,4BAA4BA,OAAS;AAAA,EACrC,qBAAqBC,OAAS;AAAA,EAC9B,iBAAiBD,OAAS;AAAA,EAC1B,iBAAiBA,OAAS;AAAA,EAC1B,iBAAiBA,OAAS;AAAA,EAC1B,6BAA6BA,OAAS;AAAA,EACtC,eAAeA,OAAS;AAAA,EACxB,mBAAmBA,OAAS;AAAA,EAC5B,YAAYA,OAAS;AAAA,EACrB,gBAAgBA,OAAS;AAC3B,CAAC;AAEY,MAAA,wBAAwBD,OAAS;AAAA,EAC5C,oBAAoBG,QAAU;AAAA,EAC9B,oBAAoBC,MAAO,oBAAoB;AAAA,EAC/C,aAAaH,OAAS;AAAA,EACtB,YAAYI,QAAU;AAAA,EACtB,IAAIH,OAAS;AAAA,EACb,QAAQI,MAAQD,SAAW;AAAA,EAC3B,WAAWC,MAAQD,SAAW;AAAA,EAC9B,KAAKJ,OAAS;AAAA,EACd,qBAAqBM,MAAQ,CAACC,MAAE,CAAM,CAAC;AAAA,EACvC,MAAMP,OAAS;AAAA,EACf,WAAWQ,KAAOR,OAAY,GAAAS,KAAO;AAAA,EACrC,QAAQL,QAAU;AAAA,EAClB,UAAUH,OAAS;AAAA,EACnB,iBAAiBG,QAAU;AAAA,EAC3B,mBAAmBJ,OAAS;AAAA,EAC5B,sBAAsBE,QAAU;AAAA,EAChC,KAAKF,OAAS;AAAA,EACd,mBAAmBE,QAAU;AAAA,EAC7B,QAAQ;AAAA,EACR,MAAMF,OAAS;AAAA,EACf,WAAWK,MAAQD,QAAW,CAAA;AAChC,CAAC;AAEY,MAAA,0BAA0BL,OAAS;AAAA,EAC9C,eAAeC,OAAS;AAAA,EACxB,4BAA4BA,OAAS;AAAA,EACrC,qBAAqBC,OAAS;AAAA,EAC9B,iBAAiBD,OAAS;AAAA,EAC1B,iBAAiBA,OAAS;AAAA,EAC1B,iBAAiBA,OAAS;AAAA,EAC1B,6BAA6BA,OAAS;AAAA,EACtC,WAAWK,MAAQD,SAAW;AAAA,EAC9B,gBAAgBJ,OAAS;AAAA,EACzB,oBAAoBA,OAAS;AAAA,EAC7B,YAAYA,OAAS;AAAA,EACrB,gBAAgBA,OAAS;AAAA,EACzB,aAAaA,OAAS;AAAA,EACtB,iBAAiBA,OAAS;AAAA,EAC1B,aAAaA,OAAS;AAAA,EACtB,gBAAgBM,MAAQ,CAACN,UAAYO,MAAQ,CAAA,CAAC;AAAA,EAC9C,oBAAoBD,MAAQ,CAACN,UAAYO,MAAQ,CAAA,CAAC;AAAA,EAClD,WAAWP,OAAS;AACtB,CAAC;AAEY,MAAA,oBAAoBD,OAAS;AAAA,EACxC,iBAAiB;AAAA,EACjB,SAASK,QAAU;AAAA,EACnB,aAAaA,QAAU;AAAA,EACvB,QAAQA,QAAU;AAAA,EAClB,YAAYA,QAAU;AAAA,EACtB,MAAMA,QAAU;AAAA,EAChB,yBAAyBF,QAAU;AAAA,EACnC,OAAOG,MAAQ,qBAAqB;AAAA,EACpC,aAAaG,KAAOP,OAAY,GAAAS,SAAW;AAAA,EAC3C,cAAcF,KAAOP,OAAY,GAAAS,SAAW;AAAA,EAC5C,eAAeR,QAAU;AAAA,EACzB,gBAAgBA,QAAU;AAAA,EAC1B,iBAAiBE,QAAU;AAAA,EAC3B,sBAAsBA,QAAU;AAAA,EAChC,kBAAkB;AAAA,EAClB,gBAAgBC,MAAQ,yBAAyB;AAAA,EACjD,QAAQ;AACV,CAAC;"}
|
|
||||||
|
|
@ -1,8 +1 @@
|
||||||
const CATALOG_VISIBILITIES = {
|
const I={INVISIBLE:"invisible",VISIBLE:"visible"};export{I as C};
|
||||||
INVISIBLE: "invisible",
|
|
||||||
VISIBLE: "visible"
|
|
||||||
};
|
|
||||||
export {
|
|
||||||
CATALOG_VISIBILITIES as C
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=cart2.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"cart2.js","sources":["../../src/scripts/constantes/cart.ts"],"sourcesContent":["export const CATALOG_VISIBILITIES = {\n INVISIBLE: \"invisible\",\n VISIBLE: \"visible\",\n} as const;\n"],"names":[],"mappings":"AAAO,MAAM,uBAAuB;AAAA,EAClC,WAAW;AAAA,EACX,SAAS;AACX;"}
|
|
||||||
|
|
@ -1,37 +1 @@
|
||||||
import { o as object, j as omit, b as array, s as string, n as number, u as unknown, d as boolean } from "./index.Dco04HYW.js";
|
import{o as n,j as t,b as r,s as e,n as a,u as i,d as s}from"./index.DFL3aKZD.js";import{a as c}from"./adresses.js";const o=n({key:e(),name:e(),quantity:a()}),m=n({currency_code:e(),currency_decimal_separator:e(),currency_minor_unit:a(),currency_prefix:e(),currency_suffix:e(),currency_symbol:e(),currency_thousand_separator:e(),delivery_time:e(),description:e(),instance_id:a(),meta_data:r(i()),method_id:e(),name:e(),price:e(),rate_id:e(),selected:s(),taxes:e()}),d=n({destination:t(c,["company","first_name","last_name","phone"]),items:r(o),name:e(),package_id:a(),shipping_rates:r(m)});export{d as W};
|
||||||
import { a as WCStoreShippingAddressSchema } from "./adresses.js";
|
|
||||||
const WCStoreShippingRateItemSchema = object({
|
|
||||||
key: string(),
|
|
||||||
name: string(),
|
|
||||||
quantity: number()
|
|
||||||
});
|
|
||||||
const WCStoreShippingRateShippingRateSchema = object({
|
|
||||||
currency_code: string(),
|
|
||||||
currency_decimal_separator: string(),
|
|
||||||
currency_minor_unit: number(),
|
|
||||||
currency_prefix: string(),
|
|
||||||
currency_suffix: string(),
|
|
||||||
currency_symbol: string(),
|
|
||||||
currency_thousand_separator: string(),
|
|
||||||
delivery_time: string(),
|
|
||||||
description: string(),
|
|
||||||
instance_id: number(),
|
|
||||||
meta_data: array(unknown()),
|
|
||||||
method_id: string(),
|
|
||||||
name: string(),
|
|
||||||
price: string(),
|
|
||||||
rate_id: string(),
|
|
||||||
selected: boolean(),
|
|
||||||
taxes: string()
|
|
||||||
});
|
|
||||||
const WCStoreShippingRateSchema = object({
|
|
||||||
destination: omit(WCStoreShippingAddressSchema, ["company", "first_name", "last_name", "phone"]),
|
|
||||||
items: array(WCStoreShippingRateItemSchema),
|
|
||||||
name: string(),
|
|
||||||
package_id: number(),
|
|
||||||
shipping_rates: array(WCStoreShippingRateShippingRateSchema)
|
|
||||||
});
|
|
||||||
export {
|
|
||||||
WCStoreShippingRateSchema as W
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=couts-livraison.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"couts-livraison.js","sources":["../../src/scripts/lib/schemas/api/couts-livraison.ts"],"sourcesContent":["// Coûts de livraison (\"shipping rates\")\n\nimport * as v from \"valibot\";\n\nimport { WCStoreShippingAddressSchema } from \"./adresses.ts\";\n\nexport const WCStoreShippingRateItemSchema = v.object({\n key: v.string(),\n name: v.string(),\n quantity: v.number(),\n});\n\nexport const WCStoreShippingRateShippingRateSchema = v.object({\n currency_code: v.string(),\n currency_decimal_separator: v.string(),\n currency_minor_unit: v.number(),\n currency_prefix: v.string(),\n currency_suffix: v.string(),\n currency_symbol: v.string(),\n currency_thousand_separator: v.string(),\n delivery_time: v.string(),\n description: v.string(),\n instance_id: v.number(),\n meta_data: v.array(v.unknown()),\n method_id: v.string(),\n name: v.string(),\n price: v.string(),\n rate_id: v.string(),\n selected: v.boolean(),\n taxes: v.string(),\n});\n\nexport const WCStoreShippingRateSchema = v.object({\n destination: v.omit(WCStoreShippingAddressSchema, [\"company\", \"first_name\", \"last_name\", \"phone\"]),\n items: v.array(WCStoreShippingRateItemSchema),\n name: v.string(),\n package_id: v.number(),\n shipping_rates: v.array(WCStoreShippingRateShippingRateSchema),\n});\n"],"names":["v.object","v.string","v.number","v.array","v.unknown","v.boolean","v.omit"],"mappings":";;AAMa,MAAA,gCAAgCA,OAAS;AAAA,EACpD,KAAKC,OAAS;AAAA,EACd,MAAMA,OAAS;AAAA,EACf,UAAUC,OAAS;AACrB,CAAC;AAEY,MAAA,wCAAwCF,OAAS;AAAA,EAC5D,eAAeC,OAAS;AAAA,EACxB,4BAA4BA,OAAS;AAAA,EACrC,qBAAqBC,OAAS;AAAA,EAC9B,iBAAiBD,OAAS;AAAA,EAC1B,iBAAiBA,OAAS;AAAA,EAC1B,iBAAiBA,OAAS;AAAA,EAC1B,6BAA6BA,OAAS;AAAA,EACtC,eAAeA,OAAS;AAAA,EACxB,aAAaA,OAAS;AAAA,EACtB,aAAaC,OAAS;AAAA,EACtB,WAAWC,MAAQC,SAAW;AAAA,EAC9B,WAAWH,OAAS;AAAA,EACpB,MAAMA,OAAS;AAAA,EACf,OAAOA,OAAS;AAAA,EAChB,SAASA,OAAS;AAAA,EAClB,UAAUI,QAAU;AAAA,EACpB,OAAOJ,OAAS;AAClB,CAAC;AAEY,MAAA,4BAA4BD,OAAS;AAAA,EAChD,aAAaM,KAAO,8BAA8B,CAAC,WAAW,cAAc,aAAa,OAAO,CAAC;AAAA,EACjG,OAAOH,MAAQ,6BAA6B;AAAA,EAC5C,MAAMF,OAAS;AAAA,EACf,YAAYC,OAAS;AAAA,EACrB,gBAAgBC,MAAQ,qCAAqC;AAC/D,CAAC;"}
|
|
||||||
|
|
@ -1,87 +1 @@
|
||||||
const ATTRIBUT_ARIA_HIDDEN = "aria-hidden";
|
const T="aria-hidden",t="aria-selected",_="data-cache",s="data-cle-panier",n="data-contient-articles",o="disabled",e="hidden",R="data-index",i="data-menu-mobile-active",I="data-page",U="data-id-categorie-produits",S="data-id-ensemble-epingle-boite",c="data-ensemble-epingle-boite-actif",L="#bouton-menu-mobile",O=".compte-panier a[rel='cart']",A="#menu-mobile",N="#page-panier",C="#selecteur-variation",r="#bouton-ajout-panier",p="a[role='tab']",u="section[role='tabpanel']",l="article",d="button.detail-produit__actions__suppression",B="button.detail-produit__actions__soustraction",P="button.detail-produit__actions__addition",b="input",g=".detail-produit__nom-prix span",m="#panneau-panier #sous-total-produits strong",D="#panneau-panier #sous-total-livraison strong",G="#panneau-panier #sous-total-livraison span",M="#panneau-panier .panneau__pied-de-page p span",f="#separation-adresses",F="#panneau-informations-client form",x="#panneau-informations-client .panneau__formulaires__facturation",v="#panneau-informations-client .panneau__pied-de-page button",H=".storytelling",Q=".storytelling__image",X="#page-boutique .grille-produits",h="#page-boutique #bouton-plus-de-produits",y=".storytelling__conteneur",E="epingle",V=`.${E}`,a="boite-texte",q=`.${a}`,Y="boite-texte__bouton-fermeture";export{n as A,o as B,r as C,C as D,p as E,u as F,t as G,L as H,A as I,i as J,S as K,c as L,Y as M,E as N,y as O,V as P,q as Q,O as S,H as a,Q as b,R as c,_ as d,T as e,X as f,h as g,U as h,I as i,e as j,l as k,N as l,m,D as n,G as o,M as p,f as q,F as r,x as s,v as t,s as u,B as v,b as w,P as x,d as y,g as z};
|
||||||
const ATTRIBUT_ARIA_SELECTED = "aria-selected";
|
|
||||||
const ATTRIBUT_CACHE = "data-cache";
|
|
||||||
const ATTRIBUT_CLE_PANIER = "data-cle-panier";
|
|
||||||
const ATTRIBUT_CONTIENT_ARTICLES = "data-contient-articles";
|
|
||||||
const ATTRIBUT_DESACTIVE = "disabled";
|
|
||||||
const ATTRIBUT_HIDDEN = "hidden";
|
|
||||||
const ATTRIBUT_INDEX = "data-index";
|
|
||||||
const ATTRIBUT_MENU_MOBILE_ACTIVE = "data-menu-mobile-active";
|
|
||||||
const ATTRIBUT_PAGE = "data-page";
|
|
||||||
const ATTRIBUT_ID_CATEGORIE_PRODUITS = "data-id-categorie-produits";
|
|
||||||
const ATTRIBUT_ID_ENSEMBLE_EPINGLE_BOITE = "data-id-ensemble-epingle-boite";
|
|
||||||
const ATTRIBUT_ENSEMBLE_EPINGLE_BOITE_ACTIF = "data-ensemble-epingle-boite-actif";
|
|
||||||
const SELECTEUR_BOUTON_MENU_MOBILE = "#bouton-menu-mobile";
|
|
||||||
const SELECTEUR_BOUTON_PANIER = ".compte-panier a[rel='cart']";
|
|
||||||
const SELECTEUR_MENU_MOBILE = "#menu-mobile";
|
|
||||||
const SELECTEUR_CONTENEUR_PANIER = "#page-panier";
|
|
||||||
const SELECTEUR_SELECTEUR_QUANTITE = "#selecteur-variation";
|
|
||||||
const SELECTEUR_BOUTON_AJOUT_PANIER = "#bouton-ajout-panier";
|
|
||||||
const SELECTEUR_LIENS_ONGLETS = "a[role='tab']";
|
|
||||||
const SELECTEUR_SECTIONS_CONTENUS = "section[role='tabpanel']";
|
|
||||||
const SELECTEUR_ENTREES_PANIER = "article";
|
|
||||||
const SELECTEUR_BOUTON_SUPPRESSION_PANIER = "button.detail-produit__actions__suppression";
|
|
||||||
const SELECTEUR_BOUTON_SOUSTRACTION_QUANTITE = "button.detail-produit__actions__soustraction";
|
|
||||||
const SELECTEUR_BOUTON_ADDITION_QUANTITE = "button.detail-produit__actions__addition";
|
|
||||||
const SELECTEUR_CHAMP_QUANTITE_LIGNE_PANIER = "input";
|
|
||||||
const SELECTEUR_PRIX_LIGNE_PANIER = ".detail-produit__nom-prix span";
|
|
||||||
const SELECTEUR_SOUS_TOTAL_PRODUITS = "#panneau-panier #sous-total-produits strong";
|
|
||||||
const SELECTEUR_SOUS_TOTAL_LIVRAISON_COUT = "#panneau-panier #sous-total-livraison strong";
|
|
||||||
const SELECTEUR_SOUS_TOTAL_LIVRAISON_PRESTATAIRE = "#panneau-panier #sous-total-livraison span";
|
|
||||||
const SELECTEUR_TOTAL_PANIER = "#panneau-panier .panneau__pied-de-page p span";
|
|
||||||
const SELECTEUR_BOUTON_SEPARATION_ADRESSES = "#separation-adresses";
|
|
||||||
const SELECTEUR_FORMULAIRE_PANIER = "#panneau-informations-client form";
|
|
||||||
const SELECTEUR_FORMULAIRE_FACTURATION = "#panneau-informations-client .panneau__formulaires__facturation";
|
|
||||||
const SELECTEUR_BOUTON_ACTIONS_FORMULAIRE = "#panneau-informations-client .panneau__pied-de-page button";
|
|
||||||
const SELECTEUR_CONTENEUR_STORYTELLING = ".storytelling";
|
|
||||||
const SELECTEUR_IMAGES_STORYTELLING = ".storytelling__image";
|
|
||||||
const SELECTEUR_GRILLE_PRODUITS = "#page-boutique .grille-produits";
|
|
||||||
const SELECTEUR_BOUTON_PLUS_PRODUITS = "#page-boutique #bouton-plus-de-produits";
|
|
||||||
const SELECTEUR_CONTENEUR_STORYTELLING_A_PROPOS = ".storytelling__conteneur";
|
|
||||||
const SELECTEUR_EPINGLE = ".epingle";
|
|
||||||
const SELECTEUR_BOITE_TEXTE = ".boite-texte";
|
|
||||||
export {
|
|
||||||
ATTRIBUT_CONTIENT_ARTICLES as A,
|
|
||||||
ATTRIBUT_DESACTIVE as B,
|
|
||||||
SELECTEUR_BOUTON_AJOUT_PANIER as C,
|
|
||||||
SELECTEUR_SELECTEUR_QUANTITE as D,
|
|
||||||
SELECTEUR_LIENS_ONGLETS as E,
|
|
||||||
SELECTEUR_SECTIONS_CONTENUS as F,
|
|
||||||
ATTRIBUT_ARIA_SELECTED as G,
|
|
||||||
SELECTEUR_BOUTON_MENU_MOBILE as H,
|
|
||||||
SELECTEUR_MENU_MOBILE as I,
|
|
||||||
ATTRIBUT_MENU_MOBILE_ACTIVE as J,
|
|
||||||
ATTRIBUT_ID_ENSEMBLE_EPINGLE_BOITE as K,
|
|
||||||
ATTRIBUT_ENSEMBLE_EPINGLE_BOITE_ACTIF as L,
|
|
||||||
SELECTEUR_CONTENEUR_STORYTELLING_A_PROPOS as M,
|
|
||||||
SELECTEUR_EPINGLE as N,
|
|
||||||
SELECTEUR_BOITE_TEXTE as O,
|
|
||||||
SELECTEUR_BOUTON_PANIER as S,
|
|
||||||
SELECTEUR_CONTENEUR_STORYTELLING as a,
|
|
||||||
SELECTEUR_IMAGES_STORYTELLING as b,
|
|
||||||
ATTRIBUT_INDEX as c,
|
|
||||||
ATTRIBUT_CACHE as d,
|
|
||||||
ATTRIBUT_ARIA_HIDDEN as e,
|
|
||||||
SELECTEUR_GRILLE_PRODUITS as f,
|
|
||||||
SELECTEUR_BOUTON_PLUS_PRODUITS as g,
|
|
||||||
ATTRIBUT_ID_CATEGORIE_PRODUITS as h,
|
|
||||||
ATTRIBUT_PAGE as i,
|
|
||||||
ATTRIBUT_HIDDEN as j,
|
|
||||||
SELECTEUR_ENTREES_PANIER as k,
|
|
||||||
SELECTEUR_CONTENEUR_PANIER as l,
|
|
||||||
SELECTEUR_SOUS_TOTAL_PRODUITS as m,
|
|
||||||
SELECTEUR_SOUS_TOTAL_LIVRAISON_COUT as n,
|
|
||||||
SELECTEUR_SOUS_TOTAL_LIVRAISON_PRESTATAIRE as o,
|
|
||||||
SELECTEUR_TOTAL_PANIER as p,
|
|
||||||
SELECTEUR_BOUTON_SEPARATION_ADRESSES as q,
|
|
||||||
SELECTEUR_FORMULAIRE_PANIER as r,
|
|
||||||
SELECTEUR_FORMULAIRE_FACTURATION as s,
|
|
||||||
SELECTEUR_BOUTON_ACTIONS_FORMULAIRE as t,
|
|
||||||
ATTRIBUT_CLE_PANIER as u,
|
|
||||||
SELECTEUR_BOUTON_SOUSTRACTION_QUANTITE as v,
|
|
||||||
SELECTEUR_CHAMP_QUANTITE_LIGNE_PANIER as w,
|
|
||||||
SELECTEUR_BOUTON_ADDITION_QUANTITE as x,
|
|
||||||
SELECTEUR_BOUTON_SUPPRESSION_PANIER as y,
|
|
||||||
SELECTEUR_PRIX_LIGNE_PANIER as z
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=dom.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"dom.js","sources":["../../src/scripts/constantes/dom.ts"],"sourcesContent":["/** Constantes de valeurs pour la manipulation du DOM : sélecteurs et attributs. */\n\nexport const ATTRIBUT_ARIA_HIDDEN = \"aria-hidden\";\nexport const ATTRIBUT_ARIA_SELECTED = \"aria-selected\";\nexport const ATTRIBUT_CACHE = \"data-cache\";\nexport const ATTRIBUT_CLE_PANIER = \"data-cle-panier\";\nexport const ATTRIBUT_CONTIENT_ARTICLES = \"data-contient-articles\";\nexport const ATTRIBUT_DESACTIVE = \"disabled\";\nexport const ATTRIBUT_HIDDEN = \"hidden\";\nexport const ATTRIBUT_INDEX = \"data-index\";\nexport const ATTRIBUT_MENU_MOBILE_ACTIVE = \"data-menu-mobile-active\";\nexport const ATTRIBUT_PAGE = \"data-page\";\nexport const ATTRIBUT_ID_CATEGORIE_PRODUITS = \"data-id-categorie-produits\";\nexport const ATTRIBUT_ID_ENSEMBLE_EPINGLE_BOITE = \"data-id-ensemble-epingle-boite\";\nexport const ATTRIBUT_ENSEMBLE_EPINGLE_BOITE_ACTIF = \"data-ensemble-epingle-boite-actif\";\n\n// En-tête\nexport const SELECTEUR_BOUTON_MENU_MOBILE = \"#bouton-menu-mobile\";\nexport const SELECTEUR_BOUTON_PANIER = \".compte-panier a[rel='cart']\";\nexport const SELECTEUR_MENU_MOBILE = \"#menu-mobile\";\n\n// ???\nexport const SELECTEUR_CONTENEUR_PANIER = \"#page-panier\";\nexport const SELECTEUR_SELECTEUR_QUANTITE = \"#selecteur-variation\";\nexport const SELECTEUR_BOUTON_AJOUT_PANIER = \"#bouton-ajout-panier\";\nexport const SELECTEUR_LIENS_ONGLETS = \"a[role='tab']\";\nexport const SELECTEUR_SECTIONS_CONTENUS = \"section[role='tabpanel']\";\n\n// Panier\nexport const SELECTEUR_ENTREES_PANIER = \"article\";\nexport const SELECTEUR_BOUTON_SUPPRESSION_PANIER = \"button.detail-produit__actions__suppression\";\nexport const SELECTEUR_BOUTON_SOUSTRACTION_QUANTITE = \"button.detail-produit__actions__soustraction\";\nexport const SELECTEUR_BOUTON_ADDITION_QUANTITE = \"button.detail-produit__actions__addition\";\nexport const SELECTEUR_CHAMP_QUANTITE_LIGNE_PANIER = \"input\";\nexport const SELECTEUR_PRIX_LIGNE_PANIER = \".detail-produit__nom-prix span\";\nexport const SELECTEUR_SOUS_TOTAL_PRODUITS = \"#panneau-panier #sous-total-produits strong\";\nexport const SELECTEUR_SOUS_TOTAL_LIVRAISON_COUT = \"#panneau-panier #sous-total-livraison strong\";\nexport const SELECTEUR_SOUS_TOTAL_LIVRAISON_PRESTATAIRE = \"#panneau-panier #sous-total-livraison span\";\nexport const SELECTEUR_TOTAL_PANIER = \"#panneau-panier .panneau__pied-de-page p span\";\nexport const SELECTEUR_BOUTON_SEPARATION_ADRESSES = \"#separation-adresses\";\nexport const SELECTEUR_FORMULAIRE_PANIER = \"#panneau-informations-client form\";\nexport const SELECTEUR_FORMULAIRE_LIVRAISON = \"#panneau-informations-client .panneau__formulaires__livraison\";\nexport const SELECTEUR_FORMULAIRE_FACTURATION = \"#panneau-informations-client .panneau__formulaires__facturation\";\nexport const SELECTEUR_BOUTON_ACTIONS_FORMULAIRE = \"#panneau-informations-client .panneau__pied-de-page button\";\n\n// Accueil\nexport const SELECTEUR_CONTENEUR_STORYTELLING = \".storytelling\";\nexport const SELECTEUR_IMAGES_STORYTELLING = \".storytelling__image\";\n\n// Boutique\nexport const SELECTEUR_GRILLE_PRODUITS = \"#page-boutique .grille-produits\";\nexport const SELECTEUR_BOUTON_PLUS_PRODUITS = \"#page-boutique #bouton-plus-de-produits\";\n\n// À propos\nexport const SELECTEUR_CONTENEUR_STORYTELLING_A_PROPOS = \".storytelling__conteneur\";\nexport const SELECTEUR_EPINGLE = \".epingle\";\nexport const SELECTEUR_BOITE_TEXTE = \".boite-texte\";\n"],"names":[],"mappings":"AAEO,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,iBAAiB;AACvB,MAAM,sBAAsB;AAC5B,MAAM,6BAA6B;AACnC,MAAM,qBAAqB;AAC3B,MAAM,kBAAkB;AACxB,MAAM,iBAAiB;AACvB,MAAM,8BAA8B;AACpC,MAAM,gBAAgB;AACtB,MAAM,iCAAiC;AACvC,MAAM,qCAAqC;AAC3C,MAAM,wCAAwC;AAG9C,MAAM,+BAA+B;AACrC,MAAM,0BAA0B;AAChC,MAAM,wBAAwB;AAG9B,MAAM,6BAA6B;AACnC,MAAM,+BAA+B;AACrC,MAAM,gCAAgC;AACtC,MAAM,0BAA0B;AAChC,MAAM,8BAA8B;AAGpC,MAAM,2BAA2B;AACjC,MAAM,sCAAsC;AAC5C,MAAM,yCAAyC;AAC/C,MAAM,qCAAqC;AAC3C,MAAM,wCAAwC;AAC9C,MAAM,8BAA8B;AACpC,MAAM,gCAAgC;AACtC,MAAM,sCAAsC;AAC5C,MAAM,6CAA6C;AACnD,MAAM,yBAAyB;AAC/B,MAAM,uCAAuC;AAC7C,MAAM,8BAA8B;AAEpC,MAAM,mCAAmC;AACzC,MAAM,sCAAsC;AAG5C,MAAM,mCAAmC;AACzC,MAAM,gCAAgC;AAGtC,MAAM,4BAA4B;AAClC,MAAM,iCAAiC;AAGvC,MAAM,4CAA4C;AAClD,MAAM,oBAAoB;AAC1B,MAAM,wBAAwB;"}
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,79 +1 @@
|
||||||
import { c as captureException } from "./exports.BuUzFliQ.js";
|
import{c as o}from"./exports.LfjCCHHP.js";const d=r=>`Le selecteur "${r}" est invalide`,i=r=>`La requête "${r}" n'a retourné aucun Élément.`,l=r=>new SyntaxError(r);class s extends Error{constructor(e="400 BadRequestError"){super(e),this.name="BadRequestError"}}class t extends Error{constructor(e="401 UnauthorizedError"){super(e),this.name="UnauthorizedError"}}class n extends Error{constructor(e="404 NotFoundError"){super(e),this.name="NotFoundError"}}class E extends Error{constructor(e="500 ServerError"){super(e),this.name="ServerError"}}class a extends Error{constructor(e){super(JSON.stringify(e)),this.name="UnknownError"}}class h extends Error{constructor(e){super(JSON.stringify(e)),this.name="CleNonTrouveError"}}const w=r=>new a(r),v=r=>{throw r},m=r=>{throw new s(`(${r.code}) ${r.message}`)},p=r=>{throw new t(`(${r.code}) ${r.message}`)},N=r=>{throw new n(`(${r.code}) ${r.message}`)},R=r=>{throw new E(r)},c=r=>(console.error(r),o(r)),S=r=>{throw c(r),r};export{h as C,w as E,m as a,p as b,N as c,v as d,l as e,S as f,d as g,i as h,R as l,c as r};
|
||||||
const ERREUR_SYNTAXE_INVALIDE = (selecteur) => `Le selecteur "${selecteur}" est invalide`;
|
|
||||||
const ERREUR_SELECTEUR_INEXISTANT = (selecteur) => `La requête "${selecteur}" n'a retourné aucun Élément.`;
|
|
||||||
const creeSyntaxError = (message) => new SyntaxError(message);
|
|
||||||
class BadRequestError extends Error {
|
|
||||||
constructor(message = "400 BadRequestError") {
|
|
||||||
super(message);
|
|
||||||
this.name = "BadRequestError";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
class UnauthorizedError extends Error {
|
|
||||||
constructor(message = "401 UnauthorizedError") {
|
|
||||||
super(message);
|
|
||||||
this.name = "UnauthorizedError";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
class NotFoundError extends Error {
|
|
||||||
constructor(message = "404 NotFoundError") {
|
|
||||||
super(message);
|
|
||||||
this.name = "NotFoundError";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
class ServerError extends Error {
|
|
||||||
constructor(message = "500 ServerError") {
|
|
||||||
super(message);
|
|
||||||
this.name = "ServerError";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
class UnknownError extends Error {
|
|
||||||
constructor(message) {
|
|
||||||
super(JSON.stringify(message));
|
|
||||||
this.name = "UnknownError";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
class CleNonTrouveError extends Error {
|
|
||||||
constructor(message) {
|
|
||||||
super(JSON.stringify(message));
|
|
||||||
this.name = "CleNonTrouveError";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const ErreurInconnue = (erreur) => new UnknownError(erreur);
|
|
||||||
const leveErreur = (erreur) => {
|
|
||||||
throw erreur;
|
|
||||||
};
|
|
||||||
const leveBadRequestError = (erreur) => {
|
|
||||||
throw new BadRequestError(`(${erreur.code}) ${erreur.message}`);
|
|
||||||
};
|
|
||||||
const leveUnauthorizedError = (erreur) => {
|
|
||||||
throw new UnauthorizedError(`(${erreur.code}) ${erreur.message}`);
|
|
||||||
};
|
|
||||||
const leveNotFoundError = (erreur) => {
|
|
||||||
throw new NotFoundError(`(${erreur.code}) ${erreur.message}`);
|
|
||||||
};
|
|
||||||
const leveServerError = (message) => {
|
|
||||||
throw new ServerError(message);
|
|
||||||
};
|
|
||||||
const reporteErreur = (erreur) => {
|
|
||||||
console.error(erreur);
|
|
||||||
return captureException(erreur);
|
|
||||||
};
|
|
||||||
const reporteEtLeveErreur = (erreur) => {
|
|
||||||
reporteErreur(erreur);
|
|
||||||
throw erreur;
|
|
||||||
};
|
|
||||||
export {
|
|
||||||
CleNonTrouveError as C,
|
|
||||||
ErreurInconnue as E,
|
|
||||||
leveBadRequestError as a,
|
|
||||||
leveUnauthorizedError as b,
|
|
||||||
leveNotFoundError as c,
|
|
||||||
leveErreur as d,
|
|
||||||
creeSyntaxError as e,
|
|
||||||
reporteEtLeveErreur as f,
|
|
||||||
ERREUR_SYNTAXE_INVALIDE as g,
|
|
||||||
ERREUR_SELECTEUR_INEXISTANT as h,
|
|
||||||
leveServerError as l,
|
|
||||||
reporteErreur as r
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=erreurs.js.map
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,17 +1 @@
|
||||||
import { k as is, o as object, n as number, s as string } from "./index.Dco04HYW.js";
|
import{k as a,o as s,n as r,s as o}from"./index.DFL3aKZD.js";const e=s({code:o(),data:s({status:r()}),message:o()}),c=s({body:e,status:r()}),n=t=>a(c,t);export{n as e};
|
||||||
const WCErrorBodySchema = object({
|
|
||||||
code: string(),
|
|
||||||
data: object({
|
|
||||||
status: number()
|
|
||||||
}),
|
|
||||||
message: string()
|
|
||||||
});
|
|
||||||
const WCErrorSchema = object({
|
|
||||||
body: WCErrorBodySchema,
|
|
||||||
status: number()
|
|
||||||
});
|
|
||||||
const estWCError = (donnees) => is(WCErrorSchema, donnees);
|
|
||||||
export {
|
|
||||||
estWCError as e
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=erreurs2.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"erreurs2.js","sources":["../../src/scripts/lib/schemas/api/erreurs.ts"],"sourcesContent":["import * as v from \"valibot\";\n\nimport type { WCError } from \"../../types/api/erreurs\";\n\nexport const WCErrorBodySchema = v.object({\n code: v.string(),\n data: v.object({\n status: v.number(),\n }),\n message: v.string(),\n});\n\nexport const WCErrorSchema = v.object({\n body: WCErrorBodySchema,\n status: v.number(),\n});\n\nexport const estWCError = (donnees: unknown): donnees is WCError => v.is(WCErrorSchema, donnees);\n"],"names":["v.object","v.string","v.number","v.is"],"mappings":";AAIa,MAAA,oBAAoBA,OAAS;AAAA,EACxC,MAAMC,OAAS;AAAA,EACf,MAAMD,OAAS;AAAA,IACb,QAAQE,OAAS;AAAA,EAAA,CAClB;AAAA,EACD,SAASD,OAAS;AACpB,CAAC;AAEY,MAAA,gBAAgBD,OAAS;AAAA,EACpC,MAAM;AAAA,EACN,QAAQE,OAAS;AACnB,CAAC;AAEM,MAAM,aAAa,CAAC,YAAyCC,GAAK,eAAe,OAAO;"}
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,10 +1 @@
|
||||||
const estElement = (typeElement) => (element) => element instanceof typeElement;
|
const s=e=>t=>t instanceof e,n=s(HTMLSelectElement),o=e=>e instanceof Error,c=e=>e.status===500;export{o as a,n as b,c as e};
|
||||||
const estHTMLSelectElement = estElement(HTMLSelectElement);
|
|
||||||
const estError = (erreur) => erreur instanceof Error;
|
|
||||||
const estReponse500 = (reponse) => reponse.status === 500;
|
|
||||||
export {
|
|
||||||
estError as a,
|
|
||||||
estHTMLSelectElement as b,
|
|
||||||
estReponse500 as e
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=gardes.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"gardes.js","sources":["../../src/scripts/lib/gardes.ts"],"sourcesContent":["import type { Constructor } from \"./types/classes\";\n\nconst estElement = <T extends HTMLElement>(typeElement: Constructor<T>) => (element: unknown): element is T =>\n element instanceof typeElement;\n\nexport const estHTMLSelectElement = estElement<HTMLSelectElement>(HTMLSelectElement);\n\nexport const estError = (erreur: unknown): erreur is Error => erreur instanceof Error;\n\nexport const estReponse500 = (reponse: Response): boolean => reponse.status === 500;\n"],"names":[],"mappings":"AAEA,MAAM,aAAa,CAAwB,gBAAgC,CAAC,YAC1E,mBAAmB;AAER,MAAA,uBAAuB,WAA8B,iBAAiB;AAEtE,MAAA,WAAW,CAAC,WAAqC,kBAAkB;AAEzE,MAAM,gBAAgB,CAAC,YAA+B,QAAQ,WAAW;"}
|
|
||||||
|
|
@ -1,22 +1 @@
|
||||||
import { e as ROUTE_API_PANIER, E as ENTETE_WC_NONCE } from "./api.js";
|
import{e as o,E as t}from"./api.js";import{E as r}from"./MaybeAsync.BkJailCK.js";import{r as i,l as n}from"./Either.DDEPhGsy.js";const a=_etats,s=()=>fetch(o,{credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json",[t]:a.nonce},method:"GET",mode:"same-origin",signal:AbortSignal.timeout(5e3)}).then(i).catch(n);r.fromPromise(s).map(e=>e.json()).ifLeft(e=>{console.error(e)});
|
||||||
import { E as EitherAsync } from "./MaybeAsync.AE1jnxuc.js";
|
|
||||||
import { r as right, l as left } from "./Either.wHNxn7Os.js";
|
|
||||||
const ETATS = _etats;
|
|
||||||
const requeteRecuperePanier = () => fetch(
|
|
||||||
ROUTE_API_PANIER,
|
|
||||||
{
|
|
||||||
credentials: "same-origin",
|
|
||||||
headers: {
|
|
||||||
Accept: "application/json",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
[ENTETE_WC_NONCE]: ETATS.nonce
|
|
||||||
},
|
|
||||||
method: "GET",
|
|
||||||
mode: "same-origin",
|
|
||||||
signal: AbortSignal.timeout(5e3)
|
|
||||||
}
|
|
||||||
).then(right).catch(left);
|
|
||||||
EitherAsync.fromPromise(requeteRecuperePanier).map((a) => a.json()).ifLeft((e) => {
|
|
||||||
console.error(e);
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=gestion-panier.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"gestion-panier.js","sources":["../../src/scripts/lib/gestion-panier.ts"],"sourcesContent":["/**\n * Fonctions liées à la gestion du Panier.\n */\n\nimport { type Either, EitherAsync, Left, Right } from \"purify-ts\";\n\nimport { ENTETE_WC_NONCE, ROUTE_API_PANIER } from \"../constantes/api.ts\";\n\n/** États utiles pour les scripts. */\ninterface Etats {\n /** Un nonce pour l'authentification de requêtes API */\n nonce: string;\n}\n\n// @ts-expect-error -- États injectés par le modèle PHP\n// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- États injectés par le modèle PHP\nconst ETATS: Etats = _etats;\n\nconst requeteRecuperePanier = (): Promise<Either<Error, Response>> =>\n fetch(\n ROUTE_API_PANIER,\n {\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n [ENTETE_WC_NONCE]: ETATS.nonce,\n },\n method: \"GET\",\n mode: \"same-origin\",\n signal: AbortSignal.timeout(5000),\n },\n )\n .then(Right)\n .catch(Left);\n\nexport const recuperePanier = EitherAsync\n .fromPromise(requeteRecuperePanier)\n .map(a => a.json())\n .ifLeft(e => {\n console.error(e);\n });\n"],"names":["Right","Left"],"mappings":";;;AAgBA,MAAM,QAAe;AAErB,MAAM,wBAAwB,MAC5B;AAAA,EACE;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,SAAS;AAAA,MACP,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,CAAC,eAAe,GAAG,MAAM;AAAA,IAC3B;AAAA,IACA,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,QAAQ,YAAY,QAAQ,GAAI;AAAA,EAAA;AAEpC,EACG,KAAKA,KAAK,EACV,MAAMC,IAAI;AAEe,YAC3B,YAAY,qBAAqB,EACjC,IAAI,CAAK,MAAA,EAAE,KAAM,CAAA,EACjB,OAAO,CAAK,MAAA;AACX,UAAQ,MAAM,CAAC;AACjB,CAAC;"}
|
|
||||||
|
|
@ -1,583 +0,0 @@
|
||||||
import { e as equal, d as everyU, s as someU, f as some, v as valFromOption } from "./dom2.js";
|
|
||||||
import { i as is_extension, a as isSome, m as mapWithDefaultU } from "./belt_Option-91f3b350.BEnQsSyX.js";
|
|
||||||
function internalToOCamlException(e) {
|
|
||||||
if (is_extension(e)) {
|
|
||||||
return e;
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
RE_EXN_ID: "JsError",
|
|
||||||
_1: e
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function treeHeight(n) {
|
|
||||||
if (void 0 !== n) {
|
|
||||||
return n.h;
|
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function create(n, t, e, r) {
|
|
||||||
var o = treeHeight(n);
|
|
||||||
var u = treeHeight(r);
|
|
||||||
return {
|
|
||||||
k: t,
|
|
||||||
v: e,
|
|
||||||
h: o >= u ? o + 1 | 0 : u + 1 | 0,
|
|
||||||
l: n,
|
|
||||||
r
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function bal(n, t, e, r) {
|
|
||||||
var o = void 0 !== n ? n.h : 0;
|
|
||||||
var u = void 0 !== r ? r.h : 0;
|
|
||||||
if (o > (u + 2 | 0)) {
|
|
||||||
var i = n.l;
|
|
||||||
var c = n.r;
|
|
||||||
if (treeHeight(i) >= treeHeight(c)) {
|
|
||||||
return create(i, n.k, n.v, create(c, t, e, r));
|
|
||||||
} else {
|
|
||||||
return create(create(i, n.k, n.v, c.l), c.k, c.v, create(c.r, t, e, r));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (u <= (o + 2 | 0)) {
|
|
||||||
return {
|
|
||||||
k: t,
|
|
||||||
v: e,
|
|
||||||
h: o >= u ? o + 1 | 0 : u + 1 | 0,
|
|
||||||
l: n,
|
|
||||||
r
|
|
||||||
};
|
|
||||||
}
|
|
||||||
var a2 = r.l;
|
|
||||||
var s2 = r.r;
|
|
||||||
if (treeHeight(s2) >= treeHeight(a2)) {
|
|
||||||
return create(create(n, t, e, a2), r.k, r.v, s2);
|
|
||||||
} else {
|
|
||||||
return create(create(n, t, e, a2.l), a2.k, a2.v, create(a2.r, r.k, r.v, s2));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function set(n, t, e) {
|
|
||||||
if (void 0 === n) {
|
|
||||||
return /* @__PURE__ */ function singleton(n2, t2) {
|
|
||||||
return {
|
|
||||||
k: n2,
|
|
||||||
v: t2,
|
|
||||||
h: 1,
|
|
||||||
l: void 0,
|
|
||||||
r: void 0
|
|
||||||
};
|
|
||||||
}(t, e);
|
|
||||||
}
|
|
||||||
var r = n.k;
|
|
||||||
if (t === r) {
|
|
||||||
return function updateValue(n2, t2) {
|
|
||||||
if (n2.v === t2) {
|
|
||||||
return n2;
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
k: n2.k,
|
|
||||||
v: t2,
|
|
||||||
h: n2.h,
|
|
||||||
l: n2.l,
|
|
||||||
r: n2.r
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}(n, e);
|
|
||||||
}
|
|
||||||
var o = n.v;
|
|
||||||
if (t < r) {
|
|
||||||
return bal(set(n.l, t, e), r, o, n.r);
|
|
||||||
} else {
|
|
||||||
return bal(n.l, r, o, set(n.r, t, e));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var a = function get$1(n, t) {
|
|
||||||
while (1) {
|
|
||||||
var e = n;
|
|
||||||
if (void 0 === e) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var r = e.k;
|
|
||||||
if (t === r) {
|
|
||||||
return some(e.v);
|
|
||||||
}
|
|
||||||
n = t < r ? e.l : e.r;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
function placeholder(n) {
|
|
||||||
}
|
|
||||||
function identity(n) {
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
var s = equal;
|
|
||||||
function equals() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return s(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return s(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _both(n, t, e) {
|
|
||||||
if (t(n)) {
|
|
||||||
return e(n);
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function both() {
|
|
||||||
if (2 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _both(t, n[0], n[1]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _both(arguments[0], arguments[1], arguments[2]);
|
|
||||||
}
|
|
||||||
function _either(n, t, e) {
|
|
||||||
if (t(n)) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return e(n);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function either() {
|
|
||||||
if (2 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _either(t, n[0], n[1]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _either(arguments[0], arguments[1], arguments[2]);
|
|
||||||
}
|
|
||||||
function always(n) {
|
|
||||||
return function() {
|
|
||||||
return n;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function _defaultTo(n, t) {
|
|
||||||
if (null == n) {
|
|
||||||
return t;
|
|
||||||
} else {
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function defaultTo() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _defaultTo(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _defaultTo(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function falsy() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
function truthy() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
function _ifElse(n, t, e, r) {
|
|
||||||
if (t(n)) {
|
|
||||||
return e(n);
|
|
||||||
} else {
|
|
||||||
return r(n);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function ifElse() {
|
|
||||||
if (3 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _ifElse(t, n[0], n[1], n[2]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _ifElse(arguments[0], arguments[1], arguments[2], arguments[3]);
|
|
||||||
}
|
|
||||||
function ignore(n) {
|
|
||||||
}
|
|
||||||
function _unless(n, t, e) {
|
|
||||||
if (t(n)) {
|
|
||||||
return n;
|
|
||||||
} else {
|
|
||||||
return e(n);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function unless() {
|
|
||||||
if (2 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _unless(t, n[0], n[1]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _unless(arguments[0], arguments[1], arguments[2]);
|
|
||||||
}
|
|
||||||
function _when_(n, t, e) {
|
|
||||||
if (t(n)) {
|
|
||||||
return e(n);
|
|
||||||
} else {
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function when() {
|
|
||||||
if (2 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _when_(t, n[0], n[1]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _when_(arguments[0], arguments[1], arguments[2]);
|
|
||||||
}
|
|
||||||
function _allPass(n, e) {
|
|
||||||
return everyU(e, function(t) {
|
|
||||||
return t(n);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function allPass() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _allPass(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _allPass(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _anyPass(n, t) {
|
|
||||||
return someU(t, function(t2) {
|
|
||||||
return t2(n);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function anyPass() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _anyPass(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _anyPass(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _tap(n, t) {
|
|
||||||
t(n);
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
function tap() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _tap(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _tap(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _makeControlledThrottle(n, t) {
|
|
||||||
var e = {
|
|
||||||
contents: false
|
|
||||||
};
|
|
||||||
var o = {
|
|
||||||
contents: void 0
|
|
||||||
};
|
|
||||||
var cancel = function(n2) {
|
|
||||||
mapWithDefaultU(o.contents, void 0, function(n3) {
|
|
||||||
clearTimeout(n3);
|
|
||||||
});
|
|
||||||
o.contents = void 0;
|
|
||||||
};
|
|
||||||
var i = {
|
|
||||||
contents: t.leading
|
|
||||||
};
|
|
||||||
return {
|
|
||||||
cancel,
|
|
||||||
invoke: function(...t2) {
|
|
||||||
cancel();
|
|
||||||
n(...t2);
|
|
||||||
},
|
|
||||||
isScheduled: function(n2) {
|
|
||||||
return e.contents;
|
|
||||||
},
|
|
||||||
schedule: function(...r) {
|
|
||||||
if (i.contents) {
|
|
||||||
i.contents = false;
|
|
||||||
return n(...r);
|
|
||||||
} else {
|
|
||||||
if (e.contents) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
cancel();
|
|
||||||
e.contents = true;
|
|
||||||
n(...r);
|
|
||||||
var c = setTimeout(function(n2) {
|
|
||||||
e.contents = false;
|
|
||||||
o.contents = void 0;
|
|
||||||
}, t.delay);
|
|
||||||
o.contents = some(c);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function makeControlledThrottle() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _makeControlledThrottle(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _makeControlledThrottle(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _throttle(n, t) {
|
|
||||||
return makeControlledThrottle(n, {
|
|
||||||
delay: t,
|
|
||||||
leading: false
|
|
||||||
}).schedule;
|
|
||||||
}
|
|
||||||
function throttle() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _throttle(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _throttle(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _makeControlledDebounce(n, t) {
|
|
||||||
var e = {
|
|
||||||
contents: void 0
|
|
||||||
};
|
|
||||||
var cancel = function(n2) {
|
|
||||||
mapWithDefaultU(e.contents, void 0, function(n3) {
|
|
||||||
clearTimeout(n3);
|
|
||||||
});
|
|
||||||
e.contents = void 0;
|
|
||||||
};
|
|
||||||
var i = {
|
|
||||||
contents: t.leading
|
|
||||||
};
|
|
||||||
return {
|
|
||||||
cancel,
|
|
||||||
invoke: function(...t2) {
|
|
||||||
cancel();
|
|
||||||
n(...t2);
|
|
||||||
},
|
|
||||||
isScheduled: function(n2) {
|
|
||||||
return isSome(e.contents);
|
|
||||||
},
|
|
||||||
schedule: function(...r) {
|
|
||||||
if (i.contents) {
|
|
||||||
i.contents = false;
|
|
||||||
return n(...r);
|
|
||||||
} else {
|
|
||||||
cancel();
|
|
||||||
var o = setTimeout(function(t2) {
|
|
||||||
n(...r);
|
|
||||||
e.contents = void 0;
|
|
||||||
}, t.delay);
|
|
||||||
e.contents = some(o);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function makeControlledDebounce() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _makeControlledDebounce(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _makeControlledDebounce(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _debounce(n, t) {
|
|
||||||
return makeControlledDebounce(n, {
|
|
||||||
delay: t,
|
|
||||||
leading: false
|
|
||||||
}).schedule;
|
|
||||||
}
|
|
||||||
function debounce() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _debounce(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _debounce(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _tryCatch(n, t) {
|
|
||||||
try {
|
|
||||||
return {
|
|
||||||
TAG: 0,
|
|
||||||
_0: t(n)
|
|
||||||
};
|
|
||||||
} catch (n2) {
|
|
||||||
var e = internalToOCamlException(n2);
|
|
||||||
if ("JsError" === e.RE_EXN_ID) {
|
|
||||||
return {
|
|
||||||
TAG: 1,
|
|
||||||
_0: e._1
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
TAG: 1,
|
|
||||||
_0: e
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function tryCatch() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _tryCatch(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _tryCatch(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _before(n, t) {
|
|
||||||
var e = {
|
|
||||||
contents: 0
|
|
||||||
};
|
|
||||||
var r = {
|
|
||||||
contents: void 0
|
|
||||||
};
|
|
||||||
return function(...o) {
|
|
||||||
var c = r.contents;
|
|
||||||
if (void 0 !== c) {
|
|
||||||
if (e.contents >= n) {
|
|
||||||
return valFromOption(c);
|
|
||||||
}
|
|
||||||
var a2 = t(...o);
|
|
||||||
r.contents = some(a2);
|
|
||||||
e.contents = e.contents + 1 | 0;
|
|
||||||
return a2;
|
|
||||||
}
|
|
||||||
var s2 = t(...o);
|
|
||||||
r.contents = some(s2);
|
|
||||||
e.contents = e.contents + 1 | 0;
|
|
||||||
return s2;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function before() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _before(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _before(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _after(n, t) {
|
|
||||||
var e = {
|
|
||||||
contents: 0
|
|
||||||
};
|
|
||||||
return function(...r) {
|
|
||||||
if (e.contents < n) {
|
|
||||||
e.contents = e.contents + 1 | 0;
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
return some(t(...r));
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function after() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _after(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _after(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function once(n) {
|
|
||||||
var t = {
|
|
||||||
contents: void 0
|
|
||||||
};
|
|
||||||
return function(...e) {
|
|
||||||
var r = t.contents;
|
|
||||||
if (void 0 !== r) {
|
|
||||||
return valFromOption(r);
|
|
||||||
}
|
|
||||||
var o = n(...e);
|
|
||||||
t.contents = some(o);
|
|
||||||
return o;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
var f = once;
|
|
||||||
function _memoizeWithKey(n, t) {
|
|
||||||
var e = {
|
|
||||||
contents: void 0
|
|
||||||
};
|
|
||||||
return function(...r) {
|
|
||||||
var o = n(...r);
|
|
||||||
var u = a(e.contents, o);
|
|
||||||
if (void 0 !== u) {
|
|
||||||
return valFromOption(u);
|
|
||||||
}
|
|
||||||
var c = t(...r);
|
|
||||||
e.contents = set(e.contents, o, c);
|
|
||||||
return c;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function memoizeWithKey() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _memoizeWithKey(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _memoizeWithKey(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function toMutable(n) {
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
function coerce(n) {
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
function _andThen(n, t) {
|
|
||||||
return t(n);
|
|
||||||
}
|
|
||||||
function andThen() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t) {
|
|
||||||
return _andThen(t, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _andThen(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
var l = {
|
|
||||||
__proto__: null,
|
|
||||||
placeholder,
|
|
||||||
identity,
|
|
||||||
equals,
|
|
||||||
both,
|
|
||||||
either,
|
|
||||||
always,
|
|
||||||
defaultTo,
|
|
||||||
falsy,
|
|
||||||
truthy,
|
|
||||||
ifElse,
|
|
||||||
ignore,
|
|
||||||
unless,
|
|
||||||
when,
|
|
||||||
allPass,
|
|
||||||
anyPass,
|
|
||||||
tap,
|
|
||||||
makeControlledThrottle,
|
|
||||||
throttle,
|
|
||||||
makeControlledDebounce,
|
|
||||||
debounce,
|
|
||||||
tryCatch,
|
|
||||||
before,
|
|
||||||
after,
|
|
||||||
once,
|
|
||||||
memoize: f,
|
|
||||||
memoizeWithKey,
|
|
||||||
toMutable,
|
|
||||||
coerce,
|
|
||||||
andThen
|
|
||||||
};
|
|
||||||
export {
|
|
||||||
l,
|
|
||||||
tap as t
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=index-0eef19ec.C9-H3LKa.js.map
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,243 +0,0 @@
|
||||||
const t = Symbol.for("@ts-pattern/matcher"), e = Symbol.for("@ts-pattern/isVariadic"), n = "@ts-pattern/anonymous-select-key", r = (t2) => Boolean(t2 && "object" == typeof t2), i = (e2) => e2 && !!e2[t], s = (n2, o2, c2) => {
|
|
||||||
if (i(n2)) {
|
|
||||||
const e2 = n2[t](), { matched: r2, selections: i2 } = e2.match(o2);
|
|
||||||
return r2 && i2 && Object.keys(i2).forEach((t2) => c2(t2, i2[t2])), r2;
|
|
||||||
}
|
|
||||||
if (r(n2)) {
|
|
||||||
if (!r(o2)) return false;
|
|
||||||
if (Array.isArray(n2)) {
|
|
||||||
if (!Array.isArray(o2)) return false;
|
|
||||||
let t2 = [], r2 = [], a2 = [];
|
|
||||||
for (const s2 of n2.keys()) {
|
|
||||||
const o3 = n2[s2];
|
|
||||||
i(o3) && o3[e] ? a2.push(o3) : a2.length ? r2.push(o3) : t2.push(o3);
|
|
||||||
}
|
|
||||||
if (a2.length) {
|
|
||||||
if (a2.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
||||||
if (o2.length < t2.length + r2.length) return false;
|
|
||||||
const e2 = o2.slice(0, t2.length), n3 = 0 === r2.length ? [] : o2.slice(-r2.length), i2 = o2.slice(t2.length, 0 === r2.length ? Infinity : -r2.length);
|
|
||||||
return t2.every((t3, n4) => s(t3, e2[n4], c2)) && r2.every((t3, e3) => s(t3, n3[e3], c2)) && (0 === a2.length || s(a2[0], i2, c2));
|
|
||||||
}
|
|
||||||
return n2.length === o2.length && n2.every((t3, e2) => s(t3, o2[e2], c2));
|
|
||||||
}
|
|
||||||
return Reflect.ownKeys(n2).every((e2) => {
|
|
||||||
const r2 = n2[e2];
|
|
||||||
return (e2 in o2 || i(a2 = r2) && "optional" === a2[t]().matcherType) && s(r2, o2[e2], c2);
|
|
||||||
var a2;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return Object.is(o2, n2);
|
|
||||||
}, o = (e2) => {
|
|
||||||
var n2, s2, a2;
|
|
||||||
return r(e2) ? i(e2) ? null != (n2 = null == (s2 = (a2 = e2[t]()).getSelectionKeys) ? void 0 : s2.call(a2)) ? n2 : [] : Array.isArray(e2) ? c(e2, o) : c(Object.values(e2), o) : [];
|
|
||||||
}, c = (t2, e2) => t2.reduce((t3, n2) => t3.concat(e2(n2)), []);
|
|
||||||
function a(...t2) {
|
|
||||||
if (1 === t2.length) {
|
|
||||||
const [e2] = t2;
|
|
||||||
return (t3) => s(e2, t3, () => {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (2 === t2.length) {
|
|
||||||
const [e2, n2] = t2;
|
|
||||||
return s(e2, n2, () => {
|
|
||||||
});
|
|
||||||
}
|
|
||||||
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t2.length}.`);
|
|
||||||
}
|
|
||||||
function u(t2) {
|
|
||||||
return Object.assign(t2, { optional: () => h(t2), and: (e2) => m(t2, e2), or: (e2) => d(t2, e2), select: (e2) => void 0 === e2 ? y(t2) : y(e2, t2) });
|
|
||||||
}
|
|
||||||
function l(t2) {
|
|
||||||
return Object.assign(((t3) => Object.assign(t3, { [Symbol.iterator]() {
|
|
||||||
let n2 = 0;
|
|
||||||
const r2 = [{ value: Object.assign(t3, { [e]: true }), done: false }, { done: true, value: void 0 }];
|
|
||||||
return { next: () => {
|
|
||||||
var t4;
|
|
||||||
return null != (t4 = r2[n2++]) ? t4 : r2.at(-1);
|
|
||||||
} };
|
|
||||||
} }))(t2), { optional: () => l(h(t2)), select: (e2) => l(void 0 === e2 ? y(t2) : y(e2, t2)) });
|
|
||||||
}
|
|
||||||
function h(e2) {
|
|
||||||
return u({ [t]: () => ({ match: (t2) => {
|
|
||||||
let n2 = {};
|
|
||||||
const r2 = (t3, e3) => {
|
|
||||||
n2[t3] = e3;
|
|
||||||
};
|
|
||||||
return void 0 === t2 ? (o(e2).forEach((t3) => r2(t3, void 0)), { matched: true, selections: n2 }) : { matched: s(e2, t2, r2), selections: n2 };
|
|
||||||
}, getSelectionKeys: () => o(e2), matcherType: "optional" }) });
|
|
||||||
}
|
|
||||||
const f = (t2, e2) => {
|
|
||||||
for (const n2 of t2) if (!e2(n2)) return false;
|
|
||||||
return true;
|
|
||||||
}, g = (t2, e2) => {
|
|
||||||
for (const [n2, r2] of t2.entries()) if (!e2(r2, n2)) return false;
|
|
||||||
return true;
|
|
||||||
};
|
|
||||||
function m(...e2) {
|
|
||||||
return u({ [t]: () => ({ match: (t2) => {
|
|
||||||
let n2 = {};
|
|
||||||
const r2 = (t3, e3) => {
|
|
||||||
n2[t3] = e3;
|
|
||||||
};
|
|
||||||
return { matched: e2.every((e3) => s(e3, t2, r2)), selections: n2 };
|
|
||||||
}, getSelectionKeys: () => c(e2, o), matcherType: "and" }) });
|
|
||||||
}
|
|
||||||
function d(...e2) {
|
|
||||||
return u({ [t]: () => ({ match: (t2) => {
|
|
||||||
let n2 = {};
|
|
||||||
const r2 = (t3, e3) => {
|
|
||||||
n2[t3] = e3;
|
|
||||||
};
|
|
||||||
return c(e2, o).forEach((t3) => r2(t3, void 0)), { matched: e2.some((e3) => s(e3, t2, r2)), selections: n2 };
|
|
||||||
}, getSelectionKeys: () => c(e2, o), matcherType: "or" }) });
|
|
||||||
}
|
|
||||||
function p(e2) {
|
|
||||||
return { [t]: () => ({ match: (t2) => ({ matched: Boolean(e2(t2)) }) }) };
|
|
||||||
}
|
|
||||||
function y(...e2) {
|
|
||||||
const r2 = "string" == typeof e2[0] ? e2[0] : void 0, i2 = 2 === e2.length ? e2[1] : "string" == typeof e2[0] ? void 0 : e2[0];
|
|
||||||
return u({ [t]: () => ({ match: (t2) => {
|
|
||||||
let e3 = { [null != r2 ? r2 : n]: t2 };
|
|
||||||
return { matched: void 0 === i2 || s(i2, t2, (t3, n2) => {
|
|
||||||
e3[t3] = n2;
|
|
||||||
}), selections: e3 };
|
|
||||||
}, getSelectionKeys: () => [null != r2 ? r2 : n].concat(void 0 === i2 ? [] : o(i2)) }) });
|
|
||||||
}
|
|
||||||
function v(t2) {
|
|
||||||
return "number" == typeof t2;
|
|
||||||
}
|
|
||||||
function b(t2) {
|
|
||||||
return "string" == typeof t2;
|
|
||||||
}
|
|
||||||
function w(t2) {
|
|
||||||
return "bigint" == typeof t2;
|
|
||||||
}
|
|
||||||
const S = u(p(function(t2) {
|
|
||||||
return true;
|
|
||||||
})), O = S, j = (t2) => Object.assign(u(t2), { startsWith: (e2) => {
|
|
||||||
return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.startsWith(n2)))));
|
|
||||||
var n2;
|
|
||||||
}, endsWith: (e2) => {
|
|
||||||
return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.endsWith(n2)))));
|
|
||||||
var n2;
|
|
||||||
}, minLength: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length >= t3))(e2))), length: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length === t3))(e2))), maxLength: (e2) => j(m(t2, ((t3) => p((e3) => b(e3) && e3.length <= t3))(e2))), includes: (e2) => {
|
|
||||||
return j(m(t2, (n2 = e2, p((t3) => b(t3) && t3.includes(n2)))));
|
|
||||||
var n2;
|
|
||||||
}, regex: (e2) => {
|
|
||||||
return j(m(t2, (n2 = e2, p((t3) => b(t3) && Boolean(t3.match(n2))))));
|
|
||||||
var n2;
|
|
||||||
} }), K = j(p(b)), x = (t2) => Object.assign(u(t2), { between: (e2, n2) => x(m(t2, ((t3, e3) => p((n3) => v(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 < t3))(e2))), gt: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 > t3))(e2))), lte: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 <= t3))(e2))), gte: (e2) => x(m(t2, ((t3) => p((e3) => v(e3) && e3 >= t3))(e2))), int: () => x(m(t2, p((t3) => v(t3) && Number.isInteger(t3)))), finite: () => x(m(t2, p((t3) => v(t3) && Number.isFinite(t3)))), positive: () => x(m(t2, p((t3) => v(t3) && t3 > 0))), negative: () => x(m(t2, p((t3) => v(t3) && t3 < 0))) }), E = x(p(v)), A = (t2) => Object.assign(u(t2), { between: (e2, n2) => A(m(t2, ((t3, e3) => p((n3) => w(n3) && t3 <= n3 && e3 >= n3))(e2, n2))), lt: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 < t3))(e2))), gt: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 > t3))(e2))), lte: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 <= t3))(e2))), gte: (e2) => A(m(t2, ((t3) => p((e3) => w(e3) && e3 >= t3))(e2))), positive: () => A(m(t2, p((t3) => w(t3) && t3 > 0))), negative: () => A(m(t2, p((t3) => w(t3) && t3 < 0))) }), P = A(p(w)), T = u(p(function(t2) {
|
|
||||||
return "boolean" == typeof t2;
|
|
||||||
})), B = u(p(function(t2) {
|
|
||||||
return "symbol" == typeof t2;
|
|
||||||
})), _ = u(p(function(t2) {
|
|
||||||
return null == t2;
|
|
||||||
})), k = u(p(function(t2) {
|
|
||||||
return null != t2;
|
|
||||||
}));
|
|
||||||
var N = { __proto__: null, matcher: t, optional: h, array: function(...e2) {
|
|
||||||
return l({ [t]: () => ({ match: (t2) => {
|
|
||||||
if (!Array.isArray(t2)) return { matched: false };
|
|
||||||
if (0 === e2.length) return { matched: true };
|
|
||||||
const n2 = e2[0];
|
|
||||||
let r2 = {};
|
|
||||||
if (0 === t2.length) return o(n2).forEach((t3) => {
|
|
||||||
r2[t3] = [];
|
|
||||||
}), { matched: true, selections: r2 };
|
|
||||||
const i2 = (t3, e3) => {
|
|
||||||
r2[t3] = (r2[t3] || []).concat([e3]);
|
|
||||||
};
|
|
||||||
return { matched: t2.every((t3) => s(n2, t3, i2)), selections: r2 };
|
|
||||||
}, getSelectionKeys: () => 0 === e2.length ? [] : o(e2[0]) }) });
|
|
||||||
}, set: function(...e2) {
|
|
||||||
return u({ [t]: () => ({ match: (t2) => {
|
|
||||||
if (!(t2 instanceof Set)) return { matched: false };
|
|
||||||
let n2 = {};
|
|
||||||
if (0 === t2.size) return { matched: true, selections: n2 };
|
|
||||||
if (0 === e2.length) return { matched: true };
|
|
||||||
const r2 = (t3, e3) => {
|
|
||||||
n2[t3] = (n2[t3] || []).concat([e3]);
|
|
||||||
}, i2 = e2[0];
|
|
||||||
return { matched: f(t2, (t3) => s(i2, t3, r2)), selections: n2 };
|
|
||||||
}, getSelectionKeys: () => 0 === e2.length ? [] : o(e2[0]) }) });
|
|
||||||
}, map: function(...e2) {
|
|
||||||
return u({ [t]: () => ({ match: (t2) => {
|
|
||||||
if (!(t2 instanceof Map)) return { matched: false };
|
|
||||||
let n2 = {};
|
|
||||||
if (0 === t2.size) return { matched: true, selections: n2 };
|
|
||||||
const r2 = (t3, e3) => {
|
|
||||||
n2[t3] = (n2[t3] || []).concat([e3]);
|
|
||||||
};
|
|
||||||
if (0 === e2.length) return { matched: true };
|
|
||||||
var i2;
|
|
||||||
if (1 === e2.length) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${null == (i2 = e2[0]) ? void 0 : i2.toString()}`);
|
|
||||||
const [o2, c2] = e2;
|
|
||||||
return { matched: g(t2, (t3, e3) => {
|
|
||||||
const n3 = s(o2, e3, r2), i3 = s(c2, t3, r2);
|
|
||||||
return n3 && i3;
|
|
||||||
}), selections: n2 };
|
|
||||||
}, getSelectionKeys: () => 0 === e2.length ? [] : [...o(e2[0]), ...o(e2[1])] }) });
|
|
||||||
}, intersection: m, union: d, not: function(e2) {
|
|
||||||
return u({ [t]: () => ({ match: (t2) => ({ matched: !s(e2, t2, () => {
|
|
||||||
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
||||||
}, when: p, select: y, any: S, _: O, string: K, number: E, bigint: P, boolean: T, symbol: B, nullish: _, nonNullable: k, instanceOf: function(t2) {
|
|
||||||
return u(p(/* @__PURE__ */ function(t3) {
|
|
||||||
return (e2) => e2 instanceof t3;
|
|
||||||
}(t2)));
|
|
||||||
}, shape: function(t2) {
|
|
||||||
return u(p(a(t2)));
|
|
||||||
} };
|
|
||||||
class W extends Error {
|
|
||||||
constructor(t2) {
|
|
||||||
let e2;
|
|
||||||
try {
|
|
||||||
e2 = JSON.stringify(t2);
|
|
||||||
} catch (n2) {
|
|
||||||
e2 = t2;
|
|
||||||
}
|
|
||||||
super(`Pattern matching error: no pattern matches value ${e2}`), this.input = void 0, this.input = t2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const $ = { matched: false, value: void 0 };
|
|
||||||
function z(t2) {
|
|
||||||
return new I(t2, $);
|
|
||||||
}
|
|
||||||
class I {
|
|
||||||
constructor(t2, e2) {
|
|
||||||
this.input = void 0, this.state = void 0, this.input = t2, this.state = e2;
|
|
||||||
}
|
|
||||||
with(...t2) {
|
|
||||||
if (this.state.matched) return this;
|
|
||||||
const e2 = t2[t2.length - 1], r2 = [t2[0]];
|
|
||||||
let i2;
|
|
||||||
3 === t2.length && "function" == typeof t2[1] ? i2 = t2[1] : t2.length > 2 && r2.push(...t2.slice(1, t2.length - 1));
|
|
||||||
let o2 = false, c2 = {};
|
|
||||||
const a2 = (t3, e3) => {
|
|
||||||
o2 = true, c2[t3] = e3;
|
|
||||||
}, u2 = !r2.some((t3) => s(t3, this.input, a2)) || i2 && !Boolean(i2(this.input)) ? $ : { matched: true, value: e2(o2 ? n in c2 ? c2[n] : c2 : this.input, this.input) };
|
|
||||||
return new I(this.input, u2);
|
|
||||||
}
|
|
||||||
when(t2, e2) {
|
|
||||||
if (this.state.matched) return this;
|
|
||||||
const n2 = Boolean(t2(this.input));
|
|
||||||
return new I(this.input, n2 ? { matched: true, value: e2(this.input, this.input) } : $);
|
|
||||||
}
|
|
||||||
otherwise(t2) {
|
|
||||||
return this.state.matched ? this.state.value : t2(this.input);
|
|
||||||
}
|
|
||||||
exhaustive() {
|
|
||||||
if (this.state.matched) return this.state.value;
|
|
||||||
throw new W(this.input);
|
|
||||||
}
|
|
||||||
run() {
|
|
||||||
return this.exhaustive();
|
|
||||||
}
|
|
||||||
returnType() {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
export {
|
|
||||||
N,
|
|
||||||
z
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=index.CeK6pfoJ.js.map
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,604 +0,0 @@
|
||||||
var __defProp = Object.defineProperty;
|
|
||||||
var __defNormalProp = (obj, key, value2) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key] = value2;
|
|
||||||
var __publicField = (obj, key, value2) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value2);
|
|
||||||
var store;
|
|
||||||
function getGlobalConfig(config2) {
|
|
||||||
return {
|
|
||||||
lang: config2?.lang ?? store?.lang,
|
|
||||||
message: config2?.message,
|
|
||||||
abortEarly: config2?.abortEarly ?? store?.abortEarly,
|
|
||||||
abortPipeEarly: config2?.abortPipeEarly ?? store?.abortPipeEarly
|
|
||||||
};
|
|
||||||
}
|
|
||||||
var store2;
|
|
||||||
function getGlobalMessage(lang) {
|
|
||||||
return store2?.get(lang);
|
|
||||||
}
|
|
||||||
var store3;
|
|
||||||
function getSchemaMessage(lang) {
|
|
||||||
return store3?.get(lang);
|
|
||||||
}
|
|
||||||
var store4;
|
|
||||||
function getSpecificMessage(reference, lang) {
|
|
||||||
return store4?.get(reference)?.get(lang);
|
|
||||||
}
|
|
||||||
function _stringify(input) {
|
|
||||||
const type = typeof input;
|
|
||||||
if (type === "string") {
|
|
||||||
return `"${input}"`;
|
|
||||||
}
|
|
||||||
if (type === "number" || type === "bigint" || type === "boolean") {
|
|
||||||
return `${input}`;
|
|
||||||
}
|
|
||||||
if (type === "object" || type === "function") {
|
|
||||||
return (input && Object.getPrototypeOf(input)?.constructor?.name) ?? "null";
|
|
||||||
}
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
function _addIssue(context, label, dataset, config2, other) {
|
|
||||||
const input = other && "input" in other ? other.input : dataset.value;
|
|
||||||
const expected = other?.expected ?? context.expects ?? null;
|
|
||||||
const received = other?.received ?? _stringify(input);
|
|
||||||
const issue = {
|
|
||||||
kind: context.kind,
|
|
||||||
type: context.type,
|
|
||||||
input,
|
|
||||||
expected,
|
|
||||||
received,
|
|
||||||
message: `Invalid ${label}: ${expected ? `Expected ${expected} but r` : "R"}eceived ${received}`,
|
|
||||||
requirement: context.requirement,
|
|
||||||
path: other?.path,
|
|
||||||
issues: other?.issues,
|
|
||||||
lang: config2.lang,
|
|
||||||
abortEarly: config2.abortEarly,
|
|
||||||
abortPipeEarly: config2.abortPipeEarly
|
|
||||||
};
|
|
||||||
const isSchema = context.kind === "schema";
|
|
||||||
const message = other?.message ?? context.message ?? getSpecificMessage(context.reference, issue.lang) ?? (isSchema ? getSchemaMessage(issue.lang) : null) ?? config2.message ?? getGlobalMessage(issue.lang);
|
|
||||||
if (message) {
|
|
||||||
issue.message = typeof message === "function" ? (
|
|
||||||
// @ts-expect-error
|
|
||||||
message(issue)
|
|
||||||
) : message;
|
|
||||||
}
|
|
||||||
if (isSchema) {
|
|
||||||
dataset.typed = false;
|
|
||||||
}
|
|
||||||
if (dataset.issues) {
|
|
||||||
dataset.issues.push(issue);
|
|
||||||
} else {
|
|
||||||
dataset.issues = [issue];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function _joinExpects(values, separator) {
|
|
||||||
const list = [...new Set(values)];
|
|
||||||
if (list.length > 1) {
|
|
||||||
return `(${list.join(` ${separator} `)})`;
|
|
||||||
}
|
|
||||||
return list[0] ?? "never";
|
|
||||||
}
|
|
||||||
var ValiError = class extends Error {
|
|
||||||
/**
|
|
||||||
* Creates a Valibot error with useful information.
|
|
||||||
*
|
|
||||||
* @param issues The error issues.
|
|
||||||
*/
|
|
||||||
constructor(issues) {
|
|
||||||
super(issues[0].message);
|
|
||||||
/**
|
|
||||||
* The error issues.
|
|
||||||
*/
|
|
||||||
__publicField(this, "issues");
|
|
||||||
this.name = "ValiError";
|
|
||||||
this.issues = issues;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
function integer(message) {
|
|
||||||
return {
|
|
||||||
kind: "validation",
|
|
||||||
type: "integer",
|
|
||||||
reference: integer,
|
|
||||||
async: false,
|
|
||||||
expects: null,
|
|
||||||
requirement: Number.isInteger,
|
|
||||||
message,
|
|
||||||
"~validate"(dataset, config2) {
|
|
||||||
if (dataset.typed && !this.requirement(dataset.value)) {
|
|
||||||
_addIssue(this, "integer", dataset, config2);
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function maxValue(requirement, message) {
|
|
||||||
return {
|
|
||||||
kind: "validation",
|
|
||||||
type: "max_value",
|
|
||||||
reference: maxValue,
|
|
||||||
async: false,
|
|
||||||
expects: `<=${requirement instanceof Date ? requirement.toJSON() : _stringify(requirement)}`,
|
|
||||||
requirement,
|
|
||||||
message,
|
|
||||||
"~validate"(dataset, config2) {
|
|
||||||
if (dataset.typed && dataset.value > this.requirement) {
|
|
||||||
_addIssue(this, "value", dataset, config2, {
|
|
||||||
received: dataset.value instanceof Date ? dataset.value.toJSON() : _stringify(dataset.value)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function minValue(requirement, message) {
|
|
||||||
return {
|
|
||||||
kind: "validation",
|
|
||||||
type: "min_value",
|
|
||||||
reference: minValue,
|
|
||||||
async: false,
|
|
||||||
expects: `>=${requirement instanceof Date ? requirement.toJSON() : _stringify(requirement)}`,
|
|
||||||
requirement,
|
|
||||||
message,
|
|
||||||
"~validate"(dataset, config2) {
|
|
||||||
if (dataset.typed && dataset.value < this.requirement) {
|
|
||||||
_addIssue(this, "value", dataset, config2, {
|
|
||||||
received: dataset.value instanceof Date ? dataset.value.toJSON() : _stringify(dataset.value)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function url(message) {
|
|
||||||
return {
|
|
||||||
kind: "validation",
|
|
||||||
type: "url",
|
|
||||||
reference: url,
|
|
||||||
async: false,
|
|
||||||
expects: null,
|
|
||||||
requirement(input) {
|
|
||||||
try {
|
|
||||||
new URL(input);
|
|
||||||
return true;
|
|
||||||
} catch {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
message,
|
|
||||||
"~validate"(dataset, config2) {
|
|
||||||
if (dataset.typed && !this.requirement(dataset.value)) {
|
|
||||||
_addIssue(this, "URL", dataset, config2);
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function value(requirement, message) {
|
|
||||||
return {
|
|
||||||
kind: "validation",
|
|
||||||
type: "value",
|
|
||||||
reference: value,
|
|
||||||
async: false,
|
|
||||||
expects: requirement instanceof Date ? requirement.toJSON() : _stringify(requirement),
|
|
||||||
requirement,
|
|
||||||
message,
|
|
||||||
"~validate"(dataset, config2) {
|
|
||||||
if (dataset.typed && !(this.requirement <= dataset.value && this.requirement >= dataset.value)) {
|
|
||||||
_addIssue(this, "value", dataset, config2, {
|
|
||||||
received: dataset.value instanceof Date ? dataset.value.toJSON() : _stringify(dataset.value)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function getDefault(schema, dataset, config2) {
|
|
||||||
return typeof schema.default === "function" ? (
|
|
||||||
// @ts-expect-error
|
|
||||||
schema.default(dataset, config2)
|
|
||||||
) : (
|
|
||||||
// @ts-expect-error
|
|
||||||
schema.default
|
|
||||||
);
|
|
||||||
}
|
|
||||||
function is(schema, input) {
|
|
||||||
return !schema["~validate"]({ value: input }, { abortEarly: true }).issues;
|
|
||||||
}
|
|
||||||
function array(item, message) {
|
|
||||||
return {
|
|
||||||
kind: "schema",
|
|
||||||
type: "array",
|
|
||||||
reference: array,
|
|
||||||
expects: "Array",
|
|
||||||
async: false,
|
|
||||||
item,
|
|
||||||
message,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
const input = dataset.value;
|
|
||||||
if (Array.isArray(input)) {
|
|
||||||
dataset.typed = true;
|
|
||||||
dataset.value = [];
|
|
||||||
for (let key = 0; key < input.length; key++) {
|
|
||||||
const value2 = input[key];
|
|
||||||
const itemDataset = this.item["~validate"]({ value: value2 }, config2);
|
|
||||||
if (itemDataset.issues) {
|
|
||||||
const pathItem = {
|
|
||||||
type: "array",
|
|
||||||
origin: "value",
|
|
||||||
input,
|
|
||||||
key,
|
|
||||||
value: value2
|
|
||||||
};
|
|
||||||
for (const issue of itemDataset.issues) {
|
|
||||||
if (issue.path) {
|
|
||||||
issue.path.unshift(pathItem);
|
|
||||||
} else {
|
|
||||||
issue.path = [pathItem];
|
|
||||||
}
|
|
||||||
dataset.issues?.push(issue);
|
|
||||||
}
|
|
||||||
if (!dataset.issues) {
|
|
||||||
dataset.issues = itemDataset.issues;
|
|
||||||
}
|
|
||||||
if (config2.abortEarly) {
|
|
||||||
dataset.typed = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!itemDataset.typed) {
|
|
||||||
dataset.typed = false;
|
|
||||||
}
|
|
||||||
dataset.value.push(itemDataset.value);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
_addIssue(this, "type", dataset, config2);
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function boolean(message) {
|
|
||||||
return {
|
|
||||||
kind: "schema",
|
|
||||||
type: "boolean",
|
|
||||||
reference: boolean,
|
|
||||||
expects: "boolean",
|
|
||||||
async: false,
|
|
||||||
message,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
if (typeof dataset.value === "boolean") {
|
|
||||||
dataset.typed = true;
|
|
||||||
} else {
|
|
||||||
_addIssue(this, "type", dataset, config2);
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function enum_(enum__, message) {
|
|
||||||
const options = Object.entries(enum__).filter(([key]) => isNaN(+key)).map(([, value2]) => value2);
|
|
||||||
return {
|
|
||||||
kind: "schema",
|
|
||||||
type: "enum",
|
|
||||||
reference: enum_,
|
|
||||||
expects: _joinExpects(options.map(_stringify), "|"),
|
|
||||||
async: false,
|
|
||||||
enum: enum__,
|
|
||||||
options,
|
|
||||||
message,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
if (this.options.includes(dataset.value)) {
|
|
||||||
dataset.typed = true;
|
|
||||||
} else {
|
|
||||||
_addIssue(this, "type", dataset, config2);
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function null_(message) {
|
|
||||||
return {
|
|
||||||
kind: "schema",
|
|
||||||
type: "null",
|
|
||||||
reference: null_,
|
|
||||||
expects: "null",
|
|
||||||
async: false,
|
|
||||||
message,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
if (dataset.value === null) {
|
|
||||||
dataset.typed = true;
|
|
||||||
} else {
|
|
||||||
_addIssue(this, "type", dataset, config2);
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function number(message) {
|
|
||||||
return {
|
|
||||||
kind: "schema",
|
|
||||||
type: "number",
|
|
||||||
reference: number,
|
|
||||||
expects: "number",
|
|
||||||
async: false,
|
|
||||||
message,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
if (typeof dataset.value === "number" && !isNaN(dataset.value)) {
|
|
||||||
dataset.typed = true;
|
|
||||||
} else {
|
|
||||||
_addIssue(this, "type", dataset, config2);
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function object(entries, message) {
|
|
||||||
return {
|
|
||||||
kind: "schema",
|
|
||||||
type: "object",
|
|
||||||
reference: object,
|
|
||||||
expects: "Object",
|
|
||||||
async: false,
|
|
||||||
entries,
|
|
||||||
message,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
const input = dataset.value;
|
|
||||||
if (input && typeof input === "object") {
|
|
||||||
dataset.typed = true;
|
|
||||||
dataset.value = {};
|
|
||||||
for (const key in this.entries) {
|
|
||||||
const value2 = input[key];
|
|
||||||
const valueDataset = this.entries[key]["~validate"](
|
|
||||||
{ value: value2 },
|
|
||||||
config2
|
|
||||||
);
|
|
||||||
if (valueDataset.issues) {
|
|
||||||
const pathItem = {
|
|
||||||
type: "object",
|
|
||||||
origin: "value",
|
|
||||||
input,
|
|
||||||
key,
|
|
||||||
value: value2
|
|
||||||
};
|
|
||||||
for (const issue of valueDataset.issues) {
|
|
||||||
if (issue.path) {
|
|
||||||
issue.path.unshift(pathItem);
|
|
||||||
} else {
|
|
||||||
issue.path = [pathItem];
|
|
||||||
}
|
|
||||||
dataset.issues?.push(issue);
|
|
||||||
}
|
|
||||||
if (!dataset.issues) {
|
|
||||||
dataset.issues = valueDataset.issues;
|
|
||||||
}
|
|
||||||
if (config2.abortEarly) {
|
|
||||||
dataset.typed = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!valueDataset.typed) {
|
|
||||||
dataset.typed = false;
|
|
||||||
}
|
|
||||||
if (valueDataset.value !== void 0 || key in input) {
|
|
||||||
dataset.value[key] = valueDataset.value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
_addIssue(this, "type", dataset, config2);
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function optional(wrapped, ...args) {
|
|
||||||
const schema = {
|
|
||||||
kind: "schema",
|
|
||||||
type: "optional",
|
|
||||||
reference: optional,
|
|
||||||
expects: `(${wrapped.expects} | undefined)`,
|
|
||||||
async: false,
|
|
||||||
wrapped,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
if (dataset.value === void 0) {
|
|
||||||
if ("default" in this) {
|
|
||||||
dataset.value = getDefault(this, dataset, config2);
|
|
||||||
}
|
|
||||||
if (dataset.value === void 0) {
|
|
||||||
dataset.typed = true;
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this.wrapped["~validate"](dataset, config2);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
if (0 in args) {
|
|
||||||
schema.default = args[0];
|
|
||||||
}
|
|
||||||
return schema;
|
|
||||||
}
|
|
||||||
function string(message) {
|
|
||||||
return {
|
|
||||||
kind: "schema",
|
|
||||||
type: "string",
|
|
||||||
reference: string,
|
|
||||||
expects: "string",
|
|
||||||
async: false,
|
|
||||||
message,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
if (typeof dataset.value === "string") {
|
|
||||||
dataset.typed = true;
|
|
||||||
} else {
|
|
||||||
_addIssue(this, "type", dataset, config2);
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function _subIssues(datasets) {
|
|
||||||
let issues;
|
|
||||||
if (datasets) {
|
|
||||||
for (const dataset of datasets) {
|
|
||||||
if (issues) {
|
|
||||||
issues.push(...dataset.issues);
|
|
||||||
} else {
|
|
||||||
issues = dataset.issues;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return issues;
|
|
||||||
}
|
|
||||||
function union(options, message) {
|
|
||||||
return {
|
|
||||||
kind: "schema",
|
|
||||||
type: "union",
|
|
||||||
reference: union,
|
|
||||||
expects: _joinExpects(
|
|
||||||
options.map((option) => option.expects),
|
|
||||||
"|"
|
|
||||||
),
|
|
||||||
async: false,
|
|
||||||
options,
|
|
||||||
message,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
let validDataset;
|
|
||||||
let typedDatasets;
|
|
||||||
let untypedDatasets;
|
|
||||||
for (const schema of this.options) {
|
|
||||||
const optionDataset = schema["~validate"](
|
|
||||||
{ value: dataset.value },
|
|
||||||
config2
|
|
||||||
);
|
|
||||||
if (optionDataset.typed) {
|
|
||||||
if (optionDataset.issues) {
|
|
||||||
if (typedDatasets) {
|
|
||||||
typedDatasets.push(optionDataset);
|
|
||||||
} else {
|
|
||||||
typedDatasets = [optionDataset];
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
validDataset = optionDataset;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (untypedDatasets) {
|
|
||||||
untypedDatasets.push(optionDataset);
|
|
||||||
} else {
|
|
||||||
untypedDatasets = [optionDataset];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (validDataset) {
|
|
||||||
return validDataset;
|
|
||||||
}
|
|
||||||
if (typedDatasets) {
|
|
||||||
if (typedDatasets.length === 1) {
|
|
||||||
return typedDatasets[0];
|
|
||||||
}
|
|
||||||
_addIssue(this, "type", dataset, config2, {
|
|
||||||
issues: _subIssues(typedDatasets)
|
|
||||||
});
|
|
||||||
dataset.typed = true;
|
|
||||||
} else if (untypedDatasets?.length === 1) {
|
|
||||||
return untypedDatasets[0];
|
|
||||||
} else {
|
|
||||||
_addIssue(this, "type", dataset, config2, {
|
|
||||||
issues: _subIssues(untypedDatasets)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function unknown() {
|
|
||||||
return {
|
|
||||||
kind: "schema",
|
|
||||||
type: "unknown",
|
|
||||||
reference: unknown,
|
|
||||||
expects: "unknown",
|
|
||||||
async: false,
|
|
||||||
"~standard": 1,
|
|
||||||
"~vendor": "valibot",
|
|
||||||
"~validate"(dataset) {
|
|
||||||
dataset.typed = true;
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function omit(schema, keys) {
|
|
||||||
const entries = {
|
|
||||||
...schema.entries
|
|
||||||
};
|
|
||||||
for (const key of keys) {
|
|
||||||
delete entries[key];
|
|
||||||
}
|
|
||||||
return { ...schema, entries };
|
|
||||||
}
|
|
||||||
function parse(schema, input, config2) {
|
|
||||||
const dataset = schema["~validate"](
|
|
||||||
{ value: input },
|
|
||||||
getGlobalConfig(config2)
|
|
||||||
);
|
|
||||||
if (dataset.issues) {
|
|
||||||
throw new ValiError(dataset.issues);
|
|
||||||
}
|
|
||||||
return dataset.value;
|
|
||||||
}
|
|
||||||
function pipe(...pipe2) {
|
|
||||||
return {
|
|
||||||
...pipe2[0],
|
|
||||||
pipe: pipe2,
|
|
||||||
"~validate"(dataset, config2 = getGlobalConfig()) {
|
|
||||||
for (const item of pipe2) {
|
|
||||||
if (item.kind !== "metadata") {
|
|
||||||
if (dataset.issues && (item.kind === "schema" || item.kind === "transformation")) {
|
|
||||||
dataset.typed = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (!dataset.issues || !config2.abortEarly && !config2.abortPipeEarly) {
|
|
||||||
dataset = item["~validate"](dataset, config2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return dataset;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
export {
|
|
||||||
pipe as a,
|
|
||||||
array as b,
|
|
||||||
optional as c,
|
|
||||||
boolean as d,
|
|
||||||
enum_ as e,
|
|
||||||
union as f,
|
|
||||||
null_ as g,
|
|
||||||
url as h,
|
|
||||||
integer as i,
|
|
||||||
omit as j,
|
|
||||||
is as k,
|
|
||||||
maxValue as l,
|
|
||||||
minValue as m,
|
|
||||||
number as n,
|
|
||||||
object as o,
|
|
||||||
parse as p,
|
|
||||||
string as s,
|
|
||||||
unknown as u,
|
|
||||||
value as v
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=index.Dco04HYW.js.map
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,45 +1 @@
|
||||||
import { p as parse } from "./index.Dco04HYW.js";
|
import{p as o}from"./index.DFL3aKZD.js";import{N as r,T as t,a as i}from"./messages3.js";import{r as s}from"./erreurs.js";import{M as p,a as M}from"./messages2.js";import{E as n}from"./Either.DDEPhGsy.js";import"./exports.LfjCCHHP.js";import"./cart.js";import"./cart2.js";import"./adresses.js";import"./couts-livraison.js";const j=a=>{const e=new BroadcastChannel(r);e.postMessage({donnees:{quantiteProduits:a.quantiteProduits},type:t.MajBoutonPanier}),e.close()},A=a=>{const e=new BroadcastChannel(i);e.postMessage({donnees:{produits:a.produits,sousTotalPanier:a.sousTotalPanier,totalPanier:a.totalPanier},type:t.MajContenuPanier}),e.close()},B=a=>n.of(o(p,a.data)).ifLeft(e=>s(e)),_=a=>n.of(o(M,a.data)).ifLeft(e=>s(e));export{A as a,_ as b,j as e,B as v};
|
||||||
import { N as NOM_CANAL_BOUTON_PANIER, T as TYPES_MESSAGES, a as NOM_CANAL_CONTENU_PANIER } from "./messages3.js";
|
|
||||||
import { r as reporteErreur } from "./erreurs.js";
|
|
||||||
import { M as MessageMajBoutonPanierSchema, a as MessageMajContenuPanierSchema } from "./messages2.js";
|
|
||||||
import { E as Either } from "./Either.wHNxn7Os.js";
|
|
||||||
import "./exports.BuUzFliQ.js";
|
|
||||||
import "./cart.js";
|
|
||||||
import "./cart2.js";
|
|
||||||
import "./adresses.js";
|
|
||||||
import "./couts-livraison.js";
|
|
||||||
const emetMessageMajBoutonPanier = (args) => {
|
|
||||||
const canal = new BroadcastChannel(NOM_CANAL_BOUTON_PANIER);
|
|
||||||
canal.postMessage({
|
|
||||||
donnees: {
|
|
||||||
quantiteProduits: args.quantiteProduits
|
|
||||||
},
|
|
||||||
type: TYPES_MESSAGES.MajBoutonPanier
|
|
||||||
});
|
|
||||||
canal.close();
|
|
||||||
};
|
|
||||||
const emetMessageMajContenuPanier = (args) => {
|
|
||||||
const canal = new BroadcastChannel(NOM_CANAL_CONTENU_PANIER);
|
|
||||||
canal.postMessage({
|
|
||||||
donnees: {
|
|
||||||
produits: args.produits,
|
|
||||||
sousTotalPanier: args.sousTotalPanier,
|
|
||||||
totalPanier: args.totalPanier
|
|
||||||
},
|
|
||||||
type: TYPES_MESSAGES.MajContenuPanier
|
|
||||||
});
|
|
||||||
canal.close();
|
|
||||||
};
|
|
||||||
const valideMessageMajBoutonPanier = (evenementMessage) => Either.of(
|
|
||||||
parse(MessageMajBoutonPanierSchema, evenementMessage.data)
|
|
||||||
).ifLeft((erreur) => reporteErreur(erreur));
|
|
||||||
const valideMessageMajContenuPanier = (evenementMessage) => Either.of(
|
|
||||||
parse(MessageMajContenuPanierSchema, evenementMessage.data)
|
|
||||||
).ifLeft((erreur) => reporteErreur(erreur));
|
|
||||||
export {
|
|
||||||
emetMessageMajContenuPanier as a,
|
|
||||||
valideMessageMajContenuPanier as b,
|
|
||||||
emetMessageMajBoutonPanier as e,
|
|
||||||
valideMessageMajBoutonPanier as v
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=messages.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"messages.js","sources":["../../src/scripts/lib/messages.ts"],"sourcesContent":["import { Either } from \"purify-ts\";\nimport { parse, type ValiError } from \"valibot\";\n\nimport type {\n MessageMajBoutonPanier,\n MessageMajBoutonPanierDonnees,\n MessageMajContenuPanier,\n MessageMajContenuPanierDonnees,\n} from \"./types/messages\";\n\nimport { NOM_CANAL_BOUTON_PANIER, NOM_CANAL_CONTENU_PANIER, TYPES_MESSAGES } from \"../constantes/messages.ts\";\nimport { reporteErreur } from \"./erreurs.ts\";\nimport { MessageMajBoutonPanierSchema, MessageMajContenuPanierSchema } from \"./schemas/messages.ts\";\n\n// Émissions\nexport const emetMessageMajBoutonPanier = (args: MessageMajBoutonPanierDonnees): void => {\n const canal = new BroadcastChannel(NOM_CANAL_BOUTON_PANIER);\n canal.postMessage({\n donnees: {\n quantiteProduits: args.quantiteProduits,\n },\n type: TYPES_MESSAGES.MajBoutonPanier,\n } as MessageMajBoutonPanier);\n canal.close();\n};\n\nexport const emetMessageMajContenuPanier = (args: MessageMajContenuPanierDonnees): void => {\n const canal = new BroadcastChannel(NOM_CANAL_CONTENU_PANIER);\n canal.postMessage({\n donnees: {\n produits: args.produits,\n sousTotalPanier: args.sousTotalPanier,\n totalPanier: args.totalPanier,\n },\n type: TYPES_MESSAGES.MajContenuPanier,\n } as MessageMajContenuPanier);\n canal.close();\n};\n\n// Validations\nexport const valideMessageMajBoutonPanier = (\n evenementMessage: MessageEvent<unknown>,\n): Either<ValiError<typeof MessageMajBoutonPanierSchema>, MessageMajBoutonPanier> =>\n Either\n .of<ValiError<typeof MessageMajBoutonPanierSchema>, MessageMajBoutonPanier>(\n parse(MessageMajBoutonPanierSchema, evenementMessage.data),\n )\n .ifLeft(erreur => reporteErreur(erreur));\n\nexport const valideMessageMajContenuPanier = (\n evenementMessage: MessageEvent<unknown>,\n): Either<ValiError<typeof MessageMajContenuPanierSchema>, MessageMajContenuPanier> =>\n Either\n .of<ValiError<typeof MessageMajContenuPanierSchema>, MessageMajContenuPanier>(\n parse(MessageMajContenuPanierSchema, evenementMessage.data),\n )\n .ifLeft(erreur => reporteErreur(erreur));\n"],"names":[],"mappings":";;;;;;;;;;AAea,MAAA,6BAA6B,CAAC,SAA8C;AACjF,QAAA,QAAQ,IAAI,iBAAiB,uBAAuB;AAC1D,QAAM,YAAY;AAAA,IAChB,SAAS;AAAA,MACP,kBAAkB,KAAK;AAAA,IACzB;AAAA,IACA,MAAM,eAAe;AAAA,EAAA,CACI;AAC3B,QAAM,MAAM;AACd;AAEa,MAAA,8BAA8B,CAAC,SAA+C;AACnF,QAAA,QAAQ,IAAI,iBAAiB,wBAAwB;AAC3D,QAAM,YAAY;AAAA,IAChB,SAAS;AAAA,MACP,UAAU,KAAK;AAAA,MACf,iBAAiB,KAAK;AAAA,MACtB,aAAa,KAAK;AAAA,IACpB;AAAA,IACA,MAAM,eAAe;AAAA,EAAA,CACK;AAC5B,QAAM,MAAM;AACd;AAGa,MAAA,+BAA+B,CAC1C,qBAEA,OACG;AAAA,EACC,MAAM,8BAA8B,iBAAiB,IAAI;AAC3D,EACC,OAAO,CAAA,WAAU,cAAc,MAAM,CAAC;AAE9B,MAAA,gCAAgC,CAC3C,qBAEA,OACG;AAAA,EACC,MAAM,+BAA+B,iBAAiB,IAAI;AAC5D,EACC,OAAO,CAAA,WAAU,cAAc,MAAM,CAAC;"}
|
|
||||||
|
|
@ -1,28 +1 @@
|
||||||
import { e as enum_, o as object, a as pipe, v as value, s as string, n as number, b as array } from "./index.Dco04HYW.js";
|
import{e as r,o as a,a as n,v as s,s as t,n as e,b as i}from"./index.DFL3aKZD.js";import{T as o}from"./messages3.js";import{a as m}from"./cart.js";import"./cart2.js";import"./adresses.js";import"./couts-livraison.js";r(o);const u=a({quantiteProduits:e()}),h=a({donnees:u,type:n(t(),s(o.MajBoutonPanier))}),p=a({produits:i(m),sousTotalPanier:e(),totalPanier:e()}),C=a({donnees:p,type:n(t(),s(o.MajContenuPanier))});export{h as M,C as a};
|
||||||
import { T as TYPES_MESSAGES } from "./messages3.js";
|
|
||||||
import { a as WCStoreCartItemSchema } from "./cart.js";
|
|
||||||
import "./cart2.js";
|
|
||||||
import "./adresses.js";
|
|
||||||
import "./couts-livraison.js";
|
|
||||||
enum_(TYPES_MESSAGES);
|
|
||||||
const MessageMajBoutonPanierDonneesSchema = object({
|
|
||||||
quantiteProduits: number()
|
|
||||||
});
|
|
||||||
const MessageMajBoutonPanierSchema = object({
|
|
||||||
donnees: MessageMajBoutonPanierDonneesSchema,
|
|
||||||
type: pipe(string(), value(TYPES_MESSAGES.MajBoutonPanier))
|
|
||||||
});
|
|
||||||
const MessageMajContenuPanierDonneesSchema = object({
|
|
||||||
produits: array(WCStoreCartItemSchema),
|
|
||||||
sousTotalPanier: number(),
|
|
||||||
totalPanier: number()
|
|
||||||
});
|
|
||||||
const MessageMajContenuPanierSchema = object({
|
|
||||||
donnees: MessageMajContenuPanierDonneesSchema,
|
|
||||||
type: pipe(string(), value(TYPES_MESSAGES.MajContenuPanier))
|
|
||||||
});
|
|
||||||
export {
|
|
||||||
MessageMajBoutonPanierSchema as M,
|
|
||||||
MessageMajContenuPanierSchema as a
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=messages2.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"messages2.js","sources":["../../src/scripts/lib/schemas/messages.ts"],"sourcesContent":["/**\n * Schémas des Messages passés avec BroadcastChannel.\n */\n\nimport * as v from \"valibot\";\n\nimport { TYPES_MESSAGES } from \"../../constantes/messages.ts\";\nimport { WCStoreCartItemSchema } from \"./api/cart.ts\";\n\nexport const TypesMessagesSchema = v.enum(TYPES_MESSAGES);\n\nexport const MessageMajBoutonPanierDonneesSchema = v.object({\n quantiteProduits: v.number(),\n});\n\nexport const MessageMajBoutonPanierSchema = v.object({\n donnees: MessageMajBoutonPanierDonneesSchema,\n type: v.pipe(v.string(), v.value(TYPES_MESSAGES.MajBoutonPanier)),\n});\n\nexport const MessageMajContenuPanierDonneesSchema = v.object({\n produits: v.array(WCStoreCartItemSchema),\n sousTotalPanier: v.number(),\n totalPanier: v.number(),\n});\n\nexport const MessageMajContenuPanierSchema = v.object({\n donnees: MessageMajContenuPanierDonneesSchema,\n type: v.pipe(v.string(), v.value(TYPES_MESSAGES.MajContenuPanier)),\n});\n"],"names":["v.enum","v.object","v.number","v.pipe","v.string","v.value","v.array"],"mappings":";;;;;;AASmCA,MAAO,cAAc;AAE3C,MAAA,sCAAsCC,OAAS;AAAA,EAC1D,kBAAkBC,OAAS;AAC7B,CAAC;AAEY,MAAA,+BAA+BD,OAAS;AAAA,EACnD,SAAS;AAAA,EACT,MAAME,KAAOC,OAAE,GAAUC,MAAQ,eAAe,eAAe,CAAC;AAClE,CAAC;AAEY,MAAA,uCAAuCJ,OAAS;AAAA,EAC3D,UAAUK,MAAQ,qBAAqB;AAAA,EACvC,iBAAiBJ,OAAS;AAAA,EAC1B,aAAaA,OAAS;AACxB,CAAC;AAEY,MAAA,gCAAgCD,OAAS;AAAA,EACpD,SAAS;AAAA,EACT,MAAME,KAAOC,OAAE,GAAUC,MAAQ,eAAe,gBAAgB,CAAC;AACnE,CAAC;"}
|
|
||||||
|
|
@ -1,12 +1 @@
|
||||||
const NOM_CANAL_BOUTON_PANIER = "bouton_panier";
|
const n="bouton_panier",a="contenu_panier",o={MajBoutonPanier:"maj_bouton_panier",MajContenuPanier:"maj_contenu_panier"};export{n as N,o as T,a};
|
||||||
const NOM_CANAL_CONTENU_PANIER = "contenu_panier";
|
|
||||||
const TYPES_MESSAGES = {
|
|
||||||
MajBoutonPanier: "maj_bouton_panier",
|
|
||||||
MajContenuPanier: "maj_contenu_panier"
|
|
||||||
};
|
|
||||||
export {
|
|
||||||
NOM_CANAL_BOUTON_PANIER as N,
|
|
||||||
TYPES_MESSAGES as T,
|
|
||||||
NOM_CANAL_CONTENU_PANIER as a
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=messages3.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"messages3.js","sources":["../../src/scripts/constantes/messages.ts"],"sourcesContent":["/**\n * Constantes liées aux Messages passés par BroadcastChannel.\n */\n\nexport const NOM_CANAL_BOUTON_PANIER = \"bouton_panier\";\nexport const NOM_CANAL_CONTENU_PANIER = \"contenu_panier\";\n\nexport const TYPES_MESSAGES = {\n MajBoutonPanier: \"maj_bouton_panier\",\n MajContenuPanier: \"maj_contenu_panier\",\n} as const;\n"],"names":[],"mappings":"AAIO,MAAM,0BAA0B;AAChC,MAAM,2BAA2B;AAEjC,MAAM,iBAAiB;AAAA,EAC5B,iBAAiB;AAAA,EACjB,kBAAkB;AACpB;"}
|
|
||||||
|
|
@ -1,169 +1 @@
|
||||||
function mod_(t2, n2) {
|
function d(n,t){if(t===0)throw{RE_EXN_ID:"Division_by_zero",Error:new Error};return n%t}function h(n){}function p(n){return n-1|0}function v(n){return n+1|0}function u(n,t){return n+t}function E(){if(arguments.length===1){const n=arguments;return function(r){return u(r,n[0])}}return u(arguments[0],arguments[1])}function e(n,t){return n-t}function M(){if(arguments.length===1){const n=arguments;return function(r){return e(r,n[0])}}return e(arguments[0],arguments[1])}function i(n,t){return n*t}function b(){if(arguments.length===1){const n=arguments;return function(r){return i(r,n[0])}}return i(arguments[0],arguments[1])}function o(n,t){return n/t}function x(){if(arguments.length===1){const n=arguments;return function(r){return o(r,n[0])}}return o(arguments[0],arguments[1])}var s=d;function y(){if(arguments.length===1){const n=arguments;return function(r){return s(r,n[0])}}return s(arguments[0],arguments[1])}function g(n,t){return[n/t,d(0|n,0|t)]}function D(){if(arguments.length===1){const n=arguments;return function(r){return g(r,n[0])}}return g(arguments[0],arguments[1])}function f(n,t){return n>t}function w(){if(arguments.length===1){const n=arguments;return function(r){return f(r,n[0])}}return f(arguments[0],arguments[1])}function a(n,t){return n>=t}function N(){if(arguments.length===1){const n=arguments;return function(r){return a(r,n[0])}}return a(arguments[0],arguments[1])}function c(n,t){return n<t}function W(){if(arguments.length===1){const n=arguments;return function(r){return c(r,n[0])}}return c(arguments[0],arguments[1])}function m(n,t){return n<=t}function z(){if(arguments.length===1){const n=arguments;return function(r){return m(r,n[0])}}return m(arguments[0],arguments[1])}function l(n,t,r){return Math.min(Math.max(n,t),r)}function I(){if(arguments.length===2){const n=arguments;return function(r){return l(r,n[0],n[1])}}return l(arguments[0],arguments[1],arguments[2])}var _={__proto__:null,placeholder:h,pred:p,succ:v,add:E,subtract:M,multiply:b,divide:x,modulo:y,divideWithModulo:D,gt:w,gte:N,lt:W,lte:z,clamp:I};const R=(n,t,r)=>_.gte(n,t)&&_.lt(n,r);export{R as e};
|
||||||
if (0 === n2) {
|
|
||||||
throw {
|
|
||||||
RE_EXN_ID: "Division_by_zero",
|
|
||||||
Error: new Error()
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return t2 % n2;
|
|
||||||
}
|
|
||||||
function placeholder(t2) {
|
|
||||||
}
|
|
||||||
function pred(t2) {
|
|
||||||
return t2 - 1 | 0;
|
|
||||||
}
|
|
||||||
function succ(t2) {
|
|
||||||
return t2 + 1 | 0;
|
|
||||||
}
|
|
||||||
function _add(t2, n2) {
|
|
||||||
return t2 + n2;
|
|
||||||
}
|
|
||||||
function add() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _add(n2, t2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _add(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _subtract(t2, n2) {
|
|
||||||
return t2 - n2;
|
|
||||||
}
|
|
||||||
function subtract() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _subtract(n2, t2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _subtract(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _multiply(t2, n2) {
|
|
||||||
return t2 * n2;
|
|
||||||
}
|
|
||||||
function multiply() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _multiply(n2, t2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _multiply(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _divide(t2, n2) {
|
|
||||||
return t2 / n2;
|
|
||||||
}
|
|
||||||
function divide() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _divide(n2, t2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _divide(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
var t = mod_;
|
|
||||||
function modulo() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n2 = arguments;
|
|
||||||
return function fn(r) {
|
|
||||||
return t(r, n2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return t(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _divideWithModulo(t2, n2) {
|
|
||||||
return [t2 / n2, mod_(0 | t2, 0 | n2)];
|
|
||||||
}
|
|
||||||
function divideWithModulo() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _divideWithModulo(n2, t2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _divideWithModulo(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _gt(t2, n2) {
|
|
||||||
return t2 > n2;
|
|
||||||
}
|
|
||||||
function gt() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _gt(n2, t2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _gt(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _gte(t2, n2) {
|
|
||||||
return t2 >= n2;
|
|
||||||
}
|
|
||||||
function gte() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _gte(n2, t2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _gte(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _lt(t2, n2) {
|
|
||||||
return t2 < n2;
|
|
||||||
}
|
|
||||||
function lt() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _lt(n2, t2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _lt(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _lte(t2, n2) {
|
|
||||||
return t2 <= n2;
|
|
||||||
}
|
|
||||||
function lte() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _lte(n2, t2[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _lte(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _clamp(t2, n2, r) {
|
|
||||||
return Math.min(Math.max(t2, n2), r);
|
|
||||||
}
|
|
||||||
function clamp() {
|
|
||||||
if (2 === arguments.length) {
|
|
||||||
const t2 = arguments;
|
|
||||||
return function fn(n2) {
|
|
||||||
return _clamp(n2, t2[0], t2[1]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _clamp(arguments[0], arguments[1], arguments[2]);
|
|
||||||
}
|
|
||||||
var n = {
|
|
||||||
__proto__: null,
|
|
||||||
placeholder,
|
|
||||||
pred,
|
|
||||||
succ,
|
|
||||||
add,
|
|
||||||
subtract,
|
|
||||||
multiply,
|
|
||||||
divide,
|
|
||||||
modulo,
|
|
||||||
divideWithModulo,
|
|
||||||
gt,
|
|
||||||
gte,
|
|
||||||
lt,
|
|
||||||
lte,
|
|
||||||
clamp
|
|
||||||
};
|
|
||||||
const estEntreDeuxNombres = (nombre, min, max) => n.gte(nombre, min) && n.lt(nombre, max);
|
|
||||||
export {
|
|
||||||
estEntreDeuxNombres as e
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=nombres.js.map
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
||||||
|
function r(){let e=arguments[0];for(let t=1,n=arguments.length;t<n;t++)e=arguments[t](e);return e}export{r as p};
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
function pipe() {
|
|
||||||
let e = arguments[0];
|
|
||||||
for (let t = 1, p = arguments.length; t < p; t++) {
|
|
||||||
e = arguments[t](e);
|
|
||||||
}
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
export {
|
|
||||||
pipe as p
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=pipe.XPB0wEfw.js.map
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"pipe.XPB0wEfw.js","sources":["../../../../../../node_modules/.pnpm/@mobily+ts-belt@4.0.0-rc.5/node_modules/@mobily/ts-belt/dist/pipe.mjs"],"sourcesContent":["function pipe() {\n let e = arguments[0];\n for (let t = 1, p = arguments.length; t < p; t++) {\n e = arguments[t](e);\n }\n return e;\n}\n\nexport { pipe };\n"],"names":[],"mappings":"AAAA,SAAS,OAAO;AACd,MAAI,IAAI,UAAU,CAAC;AACnB,WAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,IAAI,GAAG,KAAK;AAChD,QAAI,UAAU,CAAC,EAAE,CAAC;AAAA,EACtB;AACE,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
|
|
||||||
//# sourceMappingURL=products.js.map
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"products.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
||||||
|
|
@ -1,105 +1 @@
|
||||||
import { o as object, c as optional, s as string, e as enum_, a as pipe, m as minValue, n as number, l as maxValue, b as array, u as unknown, d as boolean, f as union, g as null_, i as integer } from "./index.Dco04HYW.js";
|
import{o as t,c as e,s as a,e as i,a as o,m as u,n as r,l,b as s,u as _,d as n,f as p,g as m,i as c}from"./index.DFL3aKZD.js";import{A as d,C as g,a as T,P as S,D as b,O as y,b as E,R as A,S as O,T as R,c as f}from"./products4.js";t({after:e(e(a())),attribute_relation:e(i(d)),attributes:e(s(_())),before:e(a()),catalog_visibility:e(i(g)),category:e(a()),category_operator:e(i(T)),context:e(i(S)),date_column:e(i(b)),exclude:e(s(o(r(),c()))),featured:e(n()),include:e(s(o(r(),c()))),max_price:e(a()),min_price:e(a()),offset:e(r()),on_sale:e(n()),order:e(i(y)),orderby:e(i(E)),page:e(o(r(),u(1))),parent:e(s(o(r(),c()))),parent_exclude:e(s(o(r(),c()))),per_page:e(o(r(),u(0),l(100))),rating:e(s(i(A))),search:e(a()),sku:e(a()),slug:e(a()),stock_status:e(s(i(O))),tag:e(a()),tag_operator:e(i(R)),type:e(i(f))});t({add_to_cart:t({description:a(),maximum:r(),minimum:r(),multiple_of:r(),text:a(),url:a()}),attributes:s(_()),average_rating:a(),categories:s(t({id:r(),link:a(),name:a(),slug:a()})),description:a(),extensions:_(),has_options:n(),id:r(),images:s(t({alt:a(),id:r(),name:a(),sizes:a(),src:a(),srcset:a(),thumbnail:a()})),is_in_stock:n(),is_on_backorder:n(),is_purchasable:n(),low_stock_remaining:p([a(),m()]),name:a(),on_sale:n(),parent:r(),permalink:a(),price_html:a(),prices:t({currency_code:a(),currency_decimal_separator:a(),currency_minor_unit:r(),currency_prefix:a(),currency_suffix:a(),currency_symbol:a(),currency_thousand_separator:a(),price:a(),price_range:e(_()),regular_price:a(),sale_price:a()}),review_count:r(),short_description:a(),sku:a(),slug:a(),sold_individually:n(),tags:s(a()),type:a(),variation:_(),variations:s(t({attributes:s(t({name:a(),value:a()})),id:r()}))});
|
||||||
import { A as ATTRIBUTES_RELATIONS, C as CATALOG_VISIBILITIES, a as CATEGORY_OPERATORS, P as PRODUCTS_CONTEXTES, D as DATE_COLUMN_VALUES, O as ORDER_VALUES, b as ORDERBY_VALUES, R as RATINGS, S as STOCK_STATUSES, T as TAG_OPERATORS, c as PRODUCT_TYPES } from "./products4.js";
|
|
||||||
object({
|
|
||||||
// Date ISO8601
|
|
||||||
after: optional(optional(string())),
|
|
||||||
attribute_relation: optional(enum_(ATTRIBUTES_RELATIONS)),
|
|
||||||
attributes: optional(array(unknown())),
|
|
||||||
// Date ISO8601
|
|
||||||
before: optional(string()),
|
|
||||||
catalog_visibility: optional(enum_(CATALOG_VISIBILITIES)),
|
|
||||||
category: optional(string()),
|
|
||||||
category_operator: optional(enum_(CATEGORY_OPERATORS)),
|
|
||||||
context: optional(enum_(PRODUCTS_CONTEXTES)),
|
|
||||||
date_column: optional(enum_(DATE_COLUMN_VALUES)),
|
|
||||||
exclude: optional(array(pipe(number(), integer()))),
|
|
||||||
featured: optional(boolean()),
|
|
||||||
include: optional(array(pipe(number(), integer()))),
|
|
||||||
max_price: optional(string()),
|
|
||||||
min_price: optional(string()),
|
|
||||||
offset: optional(number()),
|
|
||||||
on_sale: optional(boolean()),
|
|
||||||
order: optional(enum_(ORDER_VALUES)),
|
|
||||||
orderby: optional(enum_(ORDERBY_VALUES)),
|
|
||||||
page: optional(pipe(number(), minValue(1))),
|
|
||||||
parent: optional(array(pipe(number(), integer()))),
|
|
||||||
parent_exclude: optional(array(pipe(number(), integer()))),
|
|
||||||
per_page: optional(pipe(number(), minValue(0), maxValue(100))),
|
|
||||||
rating: optional(array(enum_(RATINGS))),
|
|
||||||
search: optional(string()),
|
|
||||||
sku: optional(string()),
|
|
||||||
slug: optional(string()),
|
|
||||||
stock_status: optional(array(enum_(STOCK_STATUSES))),
|
|
||||||
tag: optional(string()),
|
|
||||||
tag_operator: optional(enum_(TAG_OPERATORS)),
|
|
||||||
type: optional(enum_(PRODUCT_TYPES))
|
|
||||||
});
|
|
||||||
object({
|
|
||||||
add_to_cart: object({
|
|
||||||
description: string(),
|
|
||||||
maximum: number(),
|
|
||||||
minimum: number(),
|
|
||||||
multiple_of: number(),
|
|
||||||
text: string(),
|
|
||||||
url: string()
|
|
||||||
}),
|
|
||||||
attributes: array(unknown()),
|
|
||||||
average_rating: string(),
|
|
||||||
categories: array(object({
|
|
||||||
id: number(),
|
|
||||||
link: string(),
|
|
||||||
name: string(),
|
|
||||||
slug: string()
|
|
||||||
})),
|
|
||||||
description: string(),
|
|
||||||
extensions: unknown(),
|
|
||||||
has_options: boolean(),
|
|
||||||
id: number(),
|
|
||||||
images: array(object({
|
|
||||||
alt: string(),
|
|
||||||
id: number(),
|
|
||||||
name: string(),
|
|
||||||
sizes: string(),
|
|
||||||
src: string(),
|
|
||||||
srcset: string(),
|
|
||||||
thumbnail: string()
|
|
||||||
})),
|
|
||||||
is_in_stock: boolean(),
|
|
||||||
is_on_backorder: boolean(),
|
|
||||||
is_purchasable: boolean(),
|
|
||||||
low_stock_remaining: union([string(), null_()]),
|
|
||||||
name: string(),
|
|
||||||
on_sale: boolean(),
|
|
||||||
parent: number(),
|
|
||||||
permalink: string(),
|
|
||||||
price_html: string(),
|
|
||||||
prices: object({
|
|
||||||
currency_code: string(),
|
|
||||||
currency_decimal_separator: string(),
|
|
||||||
currency_minor_unit: number(),
|
|
||||||
currency_prefix: string(),
|
|
||||||
currency_suffix: string(),
|
|
||||||
currency_symbol: string(),
|
|
||||||
currency_thousand_separator: string(),
|
|
||||||
price: string(),
|
|
||||||
price_range: optional(unknown()),
|
|
||||||
regular_price: string(),
|
|
||||||
sale_price: string()
|
|
||||||
}),
|
|
||||||
review_count: number(),
|
|
||||||
short_description: string(),
|
|
||||||
sku: string(),
|
|
||||||
slug: string(),
|
|
||||||
sold_individually: boolean(),
|
|
||||||
tags: array(string()),
|
|
||||||
type: string(),
|
|
||||||
variation: unknown(),
|
|
||||||
variations: array(object({
|
|
||||||
attributes: array(object({
|
|
||||||
name: string(),
|
|
||||||
value: string()
|
|
||||||
})),
|
|
||||||
id: number()
|
|
||||||
}))
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=products2.js.map
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,178 +1 @@
|
||||||
import { o as object, c as optional, e as enum_, a as pipe, m as minValue, n as number, l as maxValue, b as array, s as string, d as boolean, f as union, i as integer, g as null_, h as url, u as unknown } from "./index.Dco04HYW.js";
|
import{o as d,c as e,e as _,a as s,m as l,n as t,l as T,b as o,s as a,d as r,f as n,i,g as c,h,u}from"./index.DFL3aKZD.js";import{A as b,C as m,a as f,P as A,D as C,O as E,b as P,R,d as p,S as g,T as O,c as S,B as V,e as k}from"./products4.js";const N=d({after:e(a()),attribute:e(a()),attribute_relation:e(_(b)),attribute_term:e(a()),attributes:e(o(u())),before:e(a()),catalog_visibility:e(_(m)),category:e(a()),category_operator:e(_(f)),context:e(_(A)),date_column:e(_(C)),dates_are_gmt:e(r()),exclude:e(o(s(t(),i()))),exclude_meta:e(o(a())),featured:e(r()),include:e(o(s(t(),i()))),include_meta:e(o(a())),max_price:e(a()),min_price:e(a()),modified_after:e(a()),modified_before:e(a()),offset:e(s(t(),i())),on_sale:e(r()),order:e(_(E)),orderby:e(_(P)),page:e(s(t(),l(1))),parent:e(o(s(t(),i()))),parent_exclude:e(o(s(t(),i()))),per_page:e(s(t(),l(0),T(100))),rating:e(o(_(R))),search:e(a()),search_sku:e(a()),shipping_class:e(a()),sku:e(a()),slug:e(a()),status:e(_(p)),stock_status:e(o(_(g))),tag:e(a()),tag_operator:e(_(O)),type:e(_(S))}),w=d({file:a(),id:a(),name:a()}),x=d({height:a(),length:a(),width:a()}),y=d({id:s(t(),i()),name:a(),slug:a()}),D=d({id:s(t(),i()),name:a(),slug:a()}),W=d({alt:a(),date_created:a(),date_created_gmt:a(),date_modified:a(),date_modified_gmt:a(),id:s(t(),i()),name:a(),src:a(),tag:a()}),U=d({id:s(t(),i()),name:a(),options:o(a()),position:s(t(),i()),variation:r(),visible:r()}),v=d({id:s(t(),i()),name:a(),option:a()}),I=d({id:s(t(),i()),key:a(),option:u()}),L=d({attributes:o(U),average_rating:a(),backordered:r(),backorders:_(V),backorders_allowed:r(),button_text:a(),catalog_visibility:_(m),categories:o(y),cross_sell_ids:o(s(t(),i())),date_created:a(),date_created_gmt:a(),date_modified:a(),date_modified_gmt:a(),date_on_sale_from:n([a(),c()]),date_on_sale_from_gmt:n([a(),c()]),date_on_sale_to:n([a(),c()]),date_on_sale_to_gmt:n([a(),c()]),default_attributes:o(v),description:a(),dimensions:x,download_expiry:t(),download_limit:t(),downloadable:r(),downloads:o(w),external_url:a(),featured:r(),generated_slug:e(a()),global_unique_id:a(),grouped_products:o(s(t(),i())),has_options:r(),id:s(t(),i()),image_survol:n([a(),c()]),images:o(W),low_stock_amount:n([t(),c()]),manage_stock:r(),menu_order:s(t(),i()),meta_data:o(I),name:a(),on_sale:r(),parent_id:s(t(),i()),permalink:s(a(),h()),permalink_template:e(a()),post_password:a(),price:a(),price_html:a(),purchasable:r(),purchase_note:a(),rating_count:s(t(),i()),regular_price:a(),related_ids:o(s(t(),i())),reviews_allowed:r(),sale_price:a(),shipping_class:a(),shipping_class_id:s(t(),i()),shipping_required:r(),shipping_taxable:r(),short_description:a(),sku:a(),slug:a(),sold_individually:r(),status:_(p),stock_quantity:n([t(),c()]),stock_status:_(g),tags:o(D),tax_class:a(),tax_status:_(k),total_sales:s(t(),i()),type:_(S),upsell_ids:o(s(t(),i())),variations:o(s(t(),i())),virtual:r(),weight:a()}),q=o(L);export{N as W,q as a};
|
||||||
import { A as ATTRIBUTES_RELATIONS, C as CATALOG_VISIBILITIES, a as CATEGORY_OPERATORS, P as PRODUCTS_CONTEXTES, D as DATE_COLUMN_VALUES, O as ORDER_VALUES, b as ORDERBY_VALUES, R as RATINGS, d as PRODUCT_STATUTES, S as STOCK_STATUSES, T as TAG_OPERATORS, c as PRODUCT_TYPES, B as BACKORDERS_SETTINGS, e as TAX_STATUTES } from "./products4.js";
|
|
||||||
const WCV3ProductsArgsSchema = object({
|
|
||||||
// Date ISO8601
|
|
||||||
after: optional(string()),
|
|
||||||
attribute: optional(string()),
|
|
||||||
attribute_relation: optional(enum_(ATTRIBUTES_RELATIONS)),
|
|
||||||
attribute_term: optional(string()),
|
|
||||||
attributes: optional(array(unknown())),
|
|
||||||
// Date ISO8601
|
|
||||||
before: optional(string()),
|
|
||||||
catalog_visibility: optional(enum_(CATALOG_VISIBILITIES)),
|
|
||||||
category: optional(string()),
|
|
||||||
category_operator: optional(enum_(CATEGORY_OPERATORS)),
|
|
||||||
context: optional(enum_(PRODUCTS_CONTEXTES)),
|
|
||||||
date_column: optional(enum_(DATE_COLUMN_VALUES)),
|
|
||||||
dates_are_gmt: optional(boolean()),
|
|
||||||
exclude: optional(array(pipe(number(), integer()))),
|
|
||||||
exclude_meta: optional(array(string())),
|
|
||||||
featured: optional(boolean()),
|
|
||||||
include: optional(array(pipe(number(), integer()))),
|
|
||||||
include_meta: optional(array(string())),
|
|
||||||
max_price: optional(string()),
|
|
||||||
min_price: optional(string()),
|
|
||||||
// Date ISO8601
|
|
||||||
modified_after: optional(string()),
|
|
||||||
// Date ISO8601
|
|
||||||
modified_before: optional(string()),
|
|
||||||
offset: optional(pipe(number(), integer())),
|
|
||||||
on_sale: optional(boolean()),
|
|
||||||
order: optional(enum_(ORDER_VALUES)),
|
|
||||||
orderby: optional(enum_(ORDERBY_VALUES)),
|
|
||||||
page: optional(pipe(number(), minValue(1))),
|
|
||||||
parent: optional(array(pipe(number(), integer()))),
|
|
||||||
parent_exclude: optional(array(pipe(number(), integer()))),
|
|
||||||
per_page: optional(pipe(number(), minValue(0), maxValue(100))),
|
|
||||||
rating: optional(array(enum_(RATINGS))),
|
|
||||||
search: optional(string()),
|
|
||||||
search_sku: optional(string()),
|
|
||||||
shipping_class: optional(string()),
|
|
||||||
sku: optional(string()),
|
|
||||||
slug: optional(string()),
|
|
||||||
status: optional(enum_(PRODUCT_STATUTES)),
|
|
||||||
stock_status: optional(array(enum_(STOCK_STATUSES))),
|
|
||||||
tag: optional(string()),
|
|
||||||
tag_operator: optional(enum_(TAG_OPERATORS)),
|
|
||||||
type: optional(enum_(PRODUCT_TYPES))
|
|
||||||
});
|
|
||||||
const WCV3ProductDownloadsSchema = object({
|
|
||||||
file: string(),
|
|
||||||
id: string(),
|
|
||||||
name: string()
|
|
||||||
});
|
|
||||||
const WCV3ProductDimensionsSchema = object({
|
|
||||||
height: string(),
|
|
||||||
length: string(),
|
|
||||||
width: string()
|
|
||||||
});
|
|
||||||
const WCV3ProductCategorySchema = object({
|
|
||||||
id: pipe(number(), integer()),
|
|
||||||
name: string(),
|
|
||||||
slug: string()
|
|
||||||
});
|
|
||||||
const WCV3ProductTagSchema = object({
|
|
||||||
id: pipe(number(), integer()),
|
|
||||||
name: string(),
|
|
||||||
slug: string()
|
|
||||||
});
|
|
||||||
const WCV3ProductImageSchema = object({
|
|
||||||
alt: string(),
|
|
||||||
date_created: string(),
|
|
||||||
date_created_gmt: string(),
|
|
||||||
date_modified: string(),
|
|
||||||
date_modified_gmt: string(),
|
|
||||||
id: pipe(number(), integer()),
|
|
||||||
name: string(),
|
|
||||||
src: string(),
|
|
||||||
tag: string()
|
|
||||||
});
|
|
||||||
const WCV3ProductAttributeSchema = object({
|
|
||||||
id: pipe(number(), integer()),
|
|
||||||
name: string(),
|
|
||||||
options: array(string()),
|
|
||||||
position: pipe(number(), integer()),
|
|
||||||
variation: boolean(),
|
|
||||||
visible: boolean()
|
|
||||||
});
|
|
||||||
const WCV3ProductDefaultAttributeSchema = object({
|
|
||||||
id: pipe(number(), integer()),
|
|
||||||
name: string(),
|
|
||||||
option: string()
|
|
||||||
});
|
|
||||||
const WCV3ProductMetaDataSchema = object({
|
|
||||||
id: pipe(number(), integer()),
|
|
||||||
key: string(),
|
|
||||||
option: unknown()
|
|
||||||
});
|
|
||||||
const WCV3ProductSchema = object({
|
|
||||||
attributes: array(WCV3ProductAttributeSchema),
|
|
||||||
average_rating: string(),
|
|
||||||
backordered: boolean(),
|
|
||||||
backorders: enum_(BACKORDERS_SETTINGS),
|
|
||||||
backorders_allowed: boolean(),
|
|
||||||
button_text: string(),
|
|
||||||
catalog_visibility: enum_(CATALOG_VISIBILITIES),
|
|
||||||
categories: array(WCV3ProductCategorySchema),
|
|
||||||
cross_sell_ids: array(pipe(number(), integer())),
|
|
||||||
date_created: string(),
|
|
||||||
date_created_gmt: string(),
|
|
||||||
date_modified: string(),
|
|
||||||
date_modified_gmt: string(),
|
|
||||||
date_on_sale_from: union([string(), null_()]),
|
|
||||||
date_on_sale_from_gmt: union([string(), null_()]),
|
|
||||||
date_on_sale_to: union([string(), null_()]),
|
|
||||||
date_on_sale_to_gmt: union([string(), null_()]),
|
|
||||||
default_attributes: array(WCV3ProductDefaultAttributeSchema),
|
|
||||||
description: string(),
|
|
||||||
dimensions: WCV3ProductDimensionsSchema,
|
|
||||||
download_expiry: number(),
|
|
||||||
download_limit: number(),
|
|
||||||
downloadable: boolean(),
|
|
||||||
downloads: array(WCV3ProductDownloadsSchema),
|
|
||||||
external_url: string(),
|
|
||||||
featured: boolean(),
|
|
||||||
generated_slug: optional(string()),
|
|
||||||
global_unique_id: string(),
|
|
||||||
grouped_products: array(pipe(number(), integer())),
|
|
||||||
has_options: boolean(),
|
|
||||||
id: pipe(number(), integer()),
|
|
||||||
// NOTE: Ajouté par mes soins
|
|
||||||
image_survol: union([string(), null_()]),
|
|
||||||
images: array(WCV3ProductImageSchema),
|
|
||||||
low_stock_amount: union([number(), null_()]),
|
|
||||||
manage_stock: boolean(),
|
|
||||||
menu_order: pipe(number(), integer()),
|
|
||||||
meta_data: array(WCV3ProductMetaDataSchema),
|
|
||||||
name: string(),
|
|
||||||
on_sale: boolean(),
|
|
||||||
parent_id: pipe(number(), integer()),
|
|
||||||
permalink: pipe(string(), url()),
|
|
||||||
permalink_template: optional(string()),
|
|
||||||
post_password: string(),
|
|
||||||
price: string(),
|
|
||||||
price_html: string(),
|
|
||||||
purchasable: boolean(),
|
|
||||||
purchase_note: string(),
|
|
||||||
rating_count: pipe(number(), integer()),
|
|
||||||
regular_price: string(),
|
|
||||||
related_ids: array(pipe(number(), integer())),
|
|
||||||
reviews_allowed: boolean(),
|
|
||||||
sale_price: string(),
|
|
||||||
shipping_class: string(),
|
|
||||||
shipping_class_id: pipe(number(), integer()),
|
|
||||||
shipping_required: boolean(),
|
|
||||||
shipping_taxable: boolean(),
|
|
||||||
short_description: string(),
|
|
||||||
sku: string(),
|
|
||||||
slug: string(),
|
|
||||||
sold_individually: boolean(),
|
|
||||||
status: enum_(PRODUCT_STATUTES),
|
|
||||||
stock_quantity: union([number(), null_()]),
|
|
||||||
stock_status: enum_(STOCK_STATUSES),
|
|
||||||
tags: array(WCV3ProductTagSchema),
|
|
||||||
tax_class: string(),
|
|
||||||
tax_status: enum_(TAX_STATUTES),
|
|
||||||
total_sales: pipe(number(), integer()),
|
|
||||||
type: enum_(PRODUCT_TYPES),
|
|
||||||
upsell_ids: array(pipe(number(), integer())),
|
|
||||||
variations: array(pipe(number(), integer())),
|
|
||||||
virtual: boolean(),
|
|
||||||
weight: string()
|
|
||||||
});
|
|
||||||
const WCV3ProductsSchema = array(WCV3ProductSchema);
|
|
||||||
export {
|
|
||||||
WCV3ProductsArgsSchema as W,
|
|
||||||
WCV3ProductsSchema as a
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=products3.js.map
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,102 +1 @@
|
||||||
const PRODUCTS_CONTEXTES = {
|
const T={EDIT:"edit",VIEW:"view"},E={DATE:"date",DATE_GMT:"date_gmt",MODIFIED:"modified",MODIFIED_GMT:"modified_gmt"},n={ASC:"asc",DESC:"desc"},A={COMMENT_COUNT:"comment_count",DATE:"date",ID:"id",INCLUDE:"include",MENU_ORDER:"menu_order",MODIFIED:"modified",POPULARITY:"popularity",PRICE:"price",RATING:"rating",SLUG:"slug",TITLE:"title"},s={EXTERNAL:"external",GROUPED:"grouped",SIMPLE:"simple",VARIABLE:"variable"},t={AND:"and",IN:"in",NOT_IN:"not_in"},I={AND:"and",IN:"in",NOT_IN:"not_in"},a={IN_STOCK:"instock",ON_BACK_ORDER:"onbackorder",OUT_OF_STOCK:"outofstock"},O={AND:"and",IN:"in"},S={ANY:"any",CATALOG:"catalog",HIDDEN:"hidden",SEARCH:"search",VISIBLE:"visible"},o={1:1,2:2,3:3,4:4,5:5},N={ANY:"any",DRAFT:"draft",FUTURE:"future",PENDING:"pending",PRIVATE:"private",PUBLISH:"publish",TRASH:"trash"},R={NONE:"none",SHIPPING:"shipping",TAXABLE:"taxable"},e={NO:"no",NOTIFY:"notify",YES:"yes"};export{O as A,e as B,S as C,E as D,n as O,T as P,o as R,a as S,I as T,t as a,A as b,s as c,N as d,R as e};
|
||||||
EDIT: "edit",
|
|
||||||
VIEW: "view"
|
|
||||||
};
|
|
||||||
const DATE_COLUMN_VALUES = {
|
|
||||||
DATE: "date",
|
|
||||||
DATE_GMT: "date_gmt",
|
|
||||||
MODIFIED: "modified",
|
|
||||||
MODIFIED_GMT: "modified_gmt"
|
|
||||||
};
|
|
||||||
const ORDER_VALUES = {
|
|
||||||
ASC: "asc",
|
|
||||||
DESC: "desc"
|
|
||||||
};
|
|
||||||
const ORDERBY_VALUES = {
|
|
||||||
COMMENT_COUNT: "comment_count",
|
|
||||||
DATE: "date",
|
|
||||||
ID: "id",
|
|
||||||
INCLUDE: "include",
|
|
||||||
MENU_ORDER: "menu_order",
|
|
||||||
MODIFIED: "modified",
|
|
||||||
POPULARITY: "popularity",
|
|
||||||
PRICE: "price",
|
|
||||||
RATING: "rating",
|
|
||||||
SLUG: "slug",
|
|
||||||
TITLE: "title"
|
|
||||||
};
|
|
||||||
const PRODUCT_TYPES = {
|
|
||||||
EXTERNAL: "external",
|
|
||||||
GROUPED: "grouped",
|
|
||||||
SIMPLE: "simple",
|
|
||||||
VARIABLE: "variable"
|
|
||||||
};
|
|
||||||
const CATEGORY_OPERATORS = {
|
|
||||||
AND: "and",
|
|
||||||
IN: "in",
|
|
||||||
NOT_IN: "not_in"
|
|
||||||
};
|
|
||||||
const TAG_OPERATORS = {
|
|
||||||
AND: "and",
|
|
||||||
IN: "in",
|
|
||||||
NOT_IN: "not_in"
|
|
||||||
};
|
|
||||||
const STOCK_STATUSES = {
|
|
||||||
IN_STOCK: "instock",
|
|
||||||
ON_BACK_ORDER: "onbackorder",
|
|
||||||
OUT_OF_STOCK: "outofstock"
|
|
||||||
};
|
|
||||||
const ATTRIBUTES_RELATIONS = {
|
|
||||||
AND: "and",
|
|
||||||
IN: "in"
|
|
||||||
};
|
|
||||||
const CATALOG_VISIBILITIES = {
|
|
||||||
ANY: "any",
|
|
||||||
CATALOG: "catalog",
|
|
||||||
HIDDEN: "hidden",
|
|
||||||
SEARCH: "search",
|
|
||||||
VISIBLE: "visible"
|
|
||||||
};
|
|
||||||
const RATINGS = {
|
|
||||||
1: 1,
|
|
||||||
2: 2,
|
|
||||||
3: 3,
|
|
||||||
4: 4,
|
|
||||||
5: 5
|
|
||||||
};
|
|
||||||
const PRODUCT_STATUTES = {
|
|
||||||
ANY: "any",
|
|
||||||
DRAFT: "draft",
|
|
||||||
FUTURE: "future",
|
|
||||||
PENDING: "pending",
|
|
||||||
PRIVATE: "private",
|
|
||||||
PUBLISH: "publish",
|
|
||||||
TRASH: "trash"
|
|
||||||
};
|
|
||||||
const TAX_STATUTES = {
|
|
||||||
NONE: "none",
|
|
||||||
SHIPPING: "shipping",
|
|
||||||
TAXABLE: "taxable"
|
|
||||||
};
|
|
||||||
const BACKORDERS_SETTINGS = {
|
|
||||||
NO: "no",
|
|
||||||
NOTIFY: "notify",
|
|
||||||
YES: "yes"
|
|
||||||
};
|
|
||||||
export {
|
|
||||||
ATTRIBUTES_RELATIONS as A,
|
|
||||||
BACKORDERS_SETTINGS as B,
|
|
||||||
CATALOG_VISIBILITIES as C,
|
|
||||||
DATE_COLUMN_VALUES as D,
|
|
||||||
ORDER_VALUES as O,
|
|
||||||
PRODUCTS_CONTEXTES as P,
|
|
||||||
RATINGS as R,
|
|
||||||
STOCK_STATUSES as S,
|
|
||||||
TAG_OPERATORS as T,
|
|
||||||
CATEGORY_OPERATORS as a,
|
|
||||||
ORDERBY_VALUES as b,
|
|
||||||
PRODUCT_TYPES as c,
|
|
||||||
PRODUCT_STATUTES as d,
|
|
||||||
TAX_STATUTES as e
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=products4.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"products4.js","sources":["../../src/scripts/constantes/products.ts"],"sourcesContent":["export const PRODUCTS_CONTEXTES = {\n EDIT: \"edit\",\n VIEW: \"view\",\n} as const;\n\nexport const DATE_COLUMN_VALUES = {\n DATE: \"date\",\n DATE_GMT: \"date_gmt\",\n MODIFIED: \"modified\",\n MODIFIED_GMT: \"modified_gmt\",\n} as const;\n\nexport const ORDER_VALUES = {\n ASC: \"asc\",\n DESC: \"desc\",\n} as const;\n\nexport const ORDERBY_VALUES = {\n COMMENT_COUNT: \"comment_count\",\n DATE: \"date\",\n ID: \"id\",\n INCLUDE: \"include\",\n MENU_ORDER: \"menu_order\",\n MODIFIED: \"modified\",\n POPULARITY: \"popularity\",\n PRICE: \"price\",\n RATING: \"rating\",\n SLUG: \"slug\",\n TITLE: \"title\",\n} as const;\n\nexport const PRODUCT_TYPES = {\n EXTERNAL: \"external\",\n GROUPED: \"grouped\",\n SIMPLE: \"simple\",\n VARIABLE: \"variable\",\n} as const;\n\nexport const CATEGORY_OPERATORS = {\n AND: \"and\",\n IN: \"in\",\n NOT_IN: \"not_in\",\n} as const;\n\nexport const TAG_OPERATORS = {\n AND: \"and\",\n IN: \"in\",\n NOT_IN: \"not_in\",\n} as const;\n\nexport const STOCK_STATUSES = {\n IN_STOCK: \"instock\",\n ON_BACK_ORDER: \"onbackorder\",\n OUT_OF_STOCK: \"outofstock\",\n} as const;\n\nexport const ATTRIBUTES_RELATIONS = {\n AND: \"and\",\n IN: \"in\",\n} as const;\n\nexport const CATALOG_VISIBILITIES = {\n ANY: \"any\",\n CATALOG: \"catalog\",\n HIDDEN: \"hidden\",\n SEARCH: \"search\",\n VISIBLE: \"visible\",\n} as const;\n\nexport const RATINGS = {\n 1: 1,\n 2: 2,\n 3: 3,\n 4: 4,\n 5: 5,\n} as const;\n\nexport const PRODUCT_STATUTES = {\n ANY: \"any\",\n DRAFT: \"draft\",\n FUTURE: \"future\",\n PENDING: \"pending\",\n PRIVATE: \"private\",\n PUBLISH: \"publish\",\n TRASH: \"trash\",\n} as const;\n\nexport const TAX_STATUTES = {\n NONE: \"none\",\n SHIPPING: \"shipping\",\n TAXABLE: \"taxable\",\n} as const;\n\nexport const BACKORDERS_SETTINGS = {\n NO: \"no\",\n NOTIFY: \"notify\",\n YES: \"yes\",\n} as const;\n"],"names":[],"mappings":"AAAO,MAAM,qBAAqB;AAAA,EAChC,MAAM;AAAA,EACN,MAAM;AACR;AAEO,MAAM,qBAAqB;AAAA,EAChC,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AAAA,EACV,cAAc;AAChB;AAEO,MAAM,eAAe;AAAA,EAC1B,KAAK;AAAA,EACL,MAAM;AACR;AAEO,MAAM,iBAAiB;AAAA,EAC5B,eAAe;AAAA,EACf,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AACT;AAEO,MAAM,gBAAgB;AAAA,EAC3B,UAAU;AAAA,EACV,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AACZ;AAEO,MAAM,qBAAqB;AAAA,EAChC,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,QAAQ;AACV;AAEO,MAAM,gBAAgB;AAAA,EAC3B,KAAK;AAAA,EACL,IAAI;AAAA,EACJ,QAAQ;AACV;AAEO,MAAM,iBAAiB;AAAA,EAC5B,UAAU;AAAA,EACV,eAAe;AAAA,EACf,cAAc;AAChB;AAEO,MAAM,uBAAuB;AAAA,EAClC,KAAK;AAAA,EACL,IAAI;AACN;AAEO,MAAM,uBAAuB;AAAA,EAClC,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AACX;AAEO,MAAM,UAAU;AAAA,EACrB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEO,MAAM,mBAAmB;AAAA,EAC9B,KAAK;AAAA,EACL,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACT;AAEO,MAAM,eAAe;AAAA,EAC1B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,SAAS;AACX;AAEO,MAAM,sBAAsB;AAAA,EACjC,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,KAAK;AACP;"}
|
|
||||||
|
|
@ -1,45 +1 @@
|
||||||
import { z, N } from "./index.CeK6pfoJ.js";
|
import{z as s,N as t}from"./index.CuMLbxmh.js";import{p as n}from"./index.DFL3aKZD.js";import{E as a}from"./api.js";import{a as p,b as c,c as m,E as d,d as l}from"./erreurs.js";import{e as r}from"./erreurs2.js";import{p as h}from"./pipe.CtTFdEz3.js";import"./exports.LfjCCHHP.js";const y=e=>fetch(`${e.route}?${e.searchParams}`,{credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json",[a]:e.nonce,...e.authString&&{Authorization:`Basic ${e.authString}`}},method:"GET",mode:"same-origin",signal:AbortSignal.timeout(5e3)}),S=e=>fetch(e.route,{body:e.corps,credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json",[a]:e.nonce},method:"POST",mode:"same-origin",signal:AbortSignal.timeout(5e3)}),w=(e,i)=>s(e).with({body:t.select(),status:400},r,p).with({body:t.select(),status:401},r,c).with({body:t.select(),status:404},r,m).with(t._,o=>n(i,o)).otherwise(o=>h(o,d,l));export{y as g,S as p,w as t};
|
||||||
import { p as parse } from "./index.Dco04HYW.js";
|
|
||||||
import { E as ENTETE_WC_NONCE } from "./api.js";
|
|
||||||
import { a as leveBadRequestError, b as leveUnauthorizedError, c as leveNotFoundError, E as ErreurInconnue, d as leveErreur } from "./erreurs.js";
|
|
||||||
import { e as estWCError } from "./erreurs2.js";
|
|
||||||
import { p as pipe } from "./pipe.XPB0wEfw.js";
|
|
||||||
import "./exports.BuUzFliQ.js";
|
|
||||||
const getBackend = (args) => fetch(
|
|
||||||
`${args.route}?${args.searchParams}`,
|
|
||||||
{
|
|
||||||
credentials: "same-origin",
|
|
||||||
headers: {
|
|
||||||
Accept: "application/json",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
[ENTETE_WC_NONCE]: args.nonce,
|
|
||||||
// Ajoute conditionnellement l'en-tête « Authorization »
|
|
||||||
...args.authString && { Authorization: `Basic ${args.authString}` }
|
|
||||||
},
|
|
||||||
method: "GET",
|
|
||||||
mode: "same-origin",
|
|
||||||
signal: AbortSignal.timeout(5e3)
|
|
||||||
}
|
|
||||||
);
|
|
||||||
const postBackend = (args) => fetch(
|
|
||||||
args.route,
|
|
||||||
{
|
|
||||||
body: args.corps,
|
|
||||||
credentials: "same-origin",
|
|
||||||
headers: {
|
|
||||||
Accept: "application/json",
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
[ENTETE_WC_NONCE]: args.nonce
|
|
||||||
},
|
|
||||||
method: "POST",
|
|
||||||
mode: "same-origin",
|
|
||||||
signal: AbortSignal.timeout(5e3)
|
|
||||||
}
|
|
||||||
);
|
|
||||||
const traiteReponseBackendWCSelonCodesHTTP = (corpsReponse, schemaReponse) => z(corpsReponse).with({ body: N.select(), status: 400 }, estWCError, leveBadRequestError).with({ body: N.select(), status: 401 }, estWCError, leveUnauthorizedError).with({ body: N.select(), status: 404 }, estWCError, leveNotFoundError).with(N._, (corpsOkInconnu) => parse(schemaReponse, corpsOkInconnu)).otherwise((e) => pipe(e, ErreurInconnue, leveErreur));
|
|
||||||
export {
|
|
||||||
getBackend as g,
|
|
||||||
postBackend as p,
|
|
||||||
traiteReponseBackendWCSelonCodesHTTP as t
|
|
||||||
};
|
|
||||||
//# sourceMappingURL=reseau.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"reseau.js","sources":["../../src/scripts/lib/reseau.ts"],"sourcesContent":["import { pipe } from \"@mobily/ts-belt\";\nimport { match, P } from \"ts-pattern\";\nimport { type GenericSchema, parse } from \"valibot\";\n\nimport { ENTETE_WC_NONCE } from \"../constantes/api.ts\";\nimport {\n ErreurInconnue,\n leveBadRequestError,\n leveErreur,\n leveNotFoundError,\n leveUnauthorizedError,\n type UnknownError,\n} from \"./erreurs.ts\";\nimport { estWCError } from \"./schemas/api/erreurs.ts\";\n\ntype ArgumentsGetBackendWC = {\n authString?: string;\n /** Une chaîne de caractères généré par le backend et à joindre à chaque requête pour l'authentifier. */\n nonce: string;\n /** La route, ou chemin, de l'API à demander au backend. */\n route: string;\n /** Paramètres de recherche (« query args ») à injecter dans l'URL de la requête. */\n searchParams: string;\n};\n\ntype ArgumentsPostBackendWC = {\n /** Le corps de la requête (ses arguments). */\n corps: BodyInit;\n /** Une chaîne de caractères généré par le backend et à joindre à chaque requête pour l'authentifier. */\n nonce: string;\n /** La route, ou chemin, de l'API à demander au backend. */\n route: string;\n};\n\nexport const getBackend = (args: ArgumentsGetBackendWC) =>\n fetch(\n `${args.route}?${args.searchParams}`,\n {\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n [ENTETE_WC_NONCE]: args.nonce,\n // Ajoute conditionnellement l'en-tête « Authorization »\n ...(args.authString && { Authorization: `Basic ${args.authString}` }),\n },\n method: \"GET\",\n mode: \"same-origin\",\n signal: AbortSignal.timeout(5000),\n },\n );\n\nexport const postBackend = (args: ArgumentsPostBackendWC) =>\n fetch(\n args.route,\n {\n body: args.corps,\n credentials: \"same-origin\",\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n [ENTETE_WC_NONCE]: args.nonce,\n },\n method: \"POST\",\n mode: \"same-origin\",\n signal: AbortSignal.timeout(5000),\n },\n );\n\nexport const traiteReponseBackendWCSelonCodesHTTP = <R, S extends GenericSchema<R>>(\n corpsReponse: unknown,\n schemaReponse: S,\n): R =>\n match(corpsReponse)\n // Réponses problématiques\n .with({ body: P.select(), status: 400 }, estWCError, leveBadRequestError)\n .with({ body: P.select(), status: 401 }, estWCError, leveUnauthorizedError)\n .with({ body: P.select(), status: 404 }, estWCError, leveNotFoundError)\n // Réponse OK (201)\n .with(P._, corpsOkInconnu => parse<S>(schemaReponse, corpsOkInconnu))\n // Réponses inconnues\n .otherwise(e => pipe(e, ErreurInconnue, leveErreur<UnknownError>));\n"],"names":["match","P"],"mappings":";;;;;;;AAkCa,MAAA,aAAa,CAAC,SACzB;AAAA,EACE,GAAG,KAAK,KAAK,IAAI,KAAK,YAAY;AAAA,EAClC;AAAA,IACE,aAAa;AAAA,IACb,SAAS;AAAA,MACP,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,CAAC,eAAe,GAAG,KAAK;AAAA;AAAA,MAExB,GAAI,KAAK,cAAc,EAAE,eAAe,SAAS,KAAK,UAAU,GAAG;AAAA,IACrE;AAAA,IACA,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,QAAQ,YAAY,QAAQ,GAAI;AAAA,EAAA;AAEpC;AAEW,MAAA,cAAc,CAAC,SAC1B;AAAA,EACE,KAAK;AAAA,EACL;AAAA,IACE,MAAM,KAAK;AAAA,IACX,aAAa;AAAA,IACb,SAAS;AAAA,MACP,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,CAAC,eAAe,GAAG,KAAK;AAAA,IAC1B;AAAA,IACA,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,QAAQ,YAAY,QAAQ,GAAI;AAAA,EAAA;AAEpC;AAEW,MAAA,uCAAuC,CAClD,cACA,kBAEAA,EAAM,YAAY,EAEf,KAAK,EAAE,MAAMC,EAAE,OAAO,GAAG,QAAQ,IAAO,GAAA,YAAY,mBAAmB,EACvE,KAAK,EAAE,MAAMA,EAAE,UAAU,QAAQ,IAAA,GAAO,YAAY,qBAAqB,EACzE,KAAK,EAAE,MAAMA,EAAE,OAAA,GAAU,QAAQ,IAAI,GAAG,YAAY,iBAAiB,EAErE,KAAKA,EAAE,GAAG,CAAkB,mBAAA,MAAS,eAAe,cAAc,CAAC,EAEnE,UAAU,CAAA,MAAK,KAAK,GAAG,gBAAgB,UAAwB,CAAC;"}
|
|
||||||
|
|
@ -1,35 +1 @@
|
||||||
import { S as SELECTEUR_BOUTON_PANIER, A as ATTRIBUT_CONTIENT_ARTICLES } from "./dom.js";
|
import{S as r,A as n}from"./dom.js";import{N as m}from"./messages3.js";import{r as a}from"./dom2.js";import{v as s}from"./messages.js";import{r as p}from"./utils.js";import{p as d}from"./pipe.CtTFdEz3.js";import"./erreurs.js";import"./exports.LfjCCHHP.js";import"./Either.DDEPhGsy.js";import"./index.DFL3aKZD.js";import"./messages2.js";import"./cart.js";import"./cart2.js";import"./adresses.js";import"./couts-livraison.js";const E=()=>{const t=d(p(r),a),e=new BroadcastChannel(m);e.onmessage=i=>{s(i).ifRight(o=>{t.textContent=`cart (${String(o.donnees.quantiteProduits)})`,t.setAttribute(n,String(o.donnees.quantiteProduits>0))})},document.addEventListener("visibilitychange",()=>{e.close()})};document.addEventListener("DOMContentLoaded",()=>{E()});
|
||||||
import { N as NOM_CANAL_BOUTON_PANIER } from "./messages3.js";
|
|
||||||
import { r as recupereElementOuLeve } from "./dom2.js";
|
|
||||||
import { v as valideMessageMajBoutonPanier } from "./messages.js";
|
|
||||||
import { r as recupereElementDocumentEither } from "./utils.js";
|
|
||||||
import { p as pipe } from "./pipe.XPB0wEfw.js";
|
|
||||||
import "./erreurs.js";
|
|
||||||
import "./exports.BuUzFliQ.js";
|
|
||||||
import "./Either.wHNxn7Os.js";
|
|
||||||
import "./index.Dco04HYW.js";
|
|
||||||
import "./messages2.js";
|
|
||||||
import "./cart.js";
|
|
||||||
import "./cart2.js";
|
|
||||||
import "./adresses.js";
|
|
||||||
import "./couts-livraison.js";
|
|
||||||
const initialiseBoutonPanier = () => {
|
|
||||||
const BOUTON_PANIER = pipe(
|
|
||||||
recupereElementDocumentEither(SELECTEUR_BOUTON_PANIER),
|
|
||||||
recupereElementOuLeve
|
|
||||||
);
|
|
||||||
const CANAL_BOUTON_PANIER = new BroadcastChannel(NOM_CANAL_BOUTON_PANIER);
|
|
||||||
CANAL_BOUTON_PANIER.onmessage = (evenementMessage) => {
|
|
||||||
valideMessageMajBoutonPanier(evenementMessage).ifRight((message) => {
|
|
||||||
BOUTON_PANIER.textContent = `cart (${String(message.donnees.quantiteProduits)})`;
|
|
||||||
BOUTON_PANIER.setAttribute(ATTRIBUT_CONTIENT_ARTICLES, String(message.donnees.quantiteProduits > 0));
|
|
||||||
});
|
|
||||||
};
|
|
||||||
document.addEventListener("visibilitychange", () => {
|
|
||||||
CANAL_BOUTON_PANIER.close();
|
|
||||||
});
|
|
||||||
};
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
|
||||||
initialiseBoutonPanier();
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=scripts-bouton-panier.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"scripts-bouton-panier.js","sources":["../../src/scripts/scripts-bouton-panier.ts"],"sourcesContent":["/**\n * Scripts pour la mise à jour trans-fenêtres/trans-onglets du Bouton du Panier.\n */\n\nimport { pipe } from \"@mobily/ts-belt\";\n\nimport type { MessageMajBoutonPanier } from \"./lib/types/messages\";\n\nimport { ATTRIBUT_CONTIENT_ARTICLES, SELECTEUR_BOUTON_PANIER } from \"./constantes/dom.ts\";\nimport { NOM_CANAL_BOUTON_PANIER } from \"./constantes/messages.ts\";\nimport { recupereElementOuLeve } from \"./lib/dom.ts\";\nimport { valideMessageMajBoutonPanier } from \"./lib/messages.ts\";\nimport { recupereElementDocumentEither } from \"./lib/utils.ts\";\n\nconst initialiseBoutonPanier = (): void => {\n /** Le « Bouton » vers le Panier dont le texte est un indicateur du nombre de Produits dedans. */\n const BOUTON_PANIER: HTMLAnchorElement = pipe(\n recupereElementDocumentEither<HTMLAnchorElement>(SELECTEUR_BOUTON_PANIER),\n recupereElementOuLeve,\n );\n const CANAL_BOUTON_PANIER: BroadcastChannel = new BroadcastChannel(NOM_CANAL_BOUTON_PANIER);\n\n CANAL_BOUTON_PANIER.onmessage = (evenementMessage: MessageEvent<unknown>): void => {\n valideMessageMajBoutonPanier(evenementMessage)\n // Met à jour le Bouton du Panier\n .ifRight((message: MessageMajBoutonPanier) => {\n BOUTON_PANIER.textContent = `cart (${String(message.donnees.quantiteProduits)})`;\n BOUTON_PANIER.setAttribute(ATTRIBUT_CONTIENT_ARTICLES, String(message.donnees.quantiteProduits > 0));\n });\n };\n\n // Ferme le BroadcastChannel à la fermeture de la page\n document.addEventListener(\"visibilitychange\", (): void => {\n CANAL_BOUTON_PANIER.close();\n });\n};\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n initialiseBoutonPanier();\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAcA,MAAM,yBAAyB,MAAY;AAEzC,QAAM,gBAAmC;AAAA,IACvC,8BAAiD,uBAAuB;AAAA,IACxE;AAAA,EACF;AACM,QAAA,sBAAwC,IAAI,iBAAiB,uBAAuB;AAEtE,sBAAA,YAAY,CAAC,qBAAkD;AACjF,iCAA6B,gBAAgB,EAE1C,QAAQ,CAAC,YAAoC;AAC5C,oBAAc,cAAc,SAAS,OAAO,QAAQ,QAAQ,gBAAgB,CAAC;AAC7E,oBAAc,aAAa,4BAA4B,OAAO,QAAQ,QAAQ,mBAAmB,CAAC,CAAC;AAAA,IAAA,CACpG;AAAA,EACL;AAGS,WAAA,iBAAiB,oBAAoB,MAAY;AACxD,wBAAoB,MAAM;AAAA,EAAA,CAC3B;AACH;AAEA,SAAS,iBAAiB,oBAAoB,MAAM;AAC3B,yBAAA;AACzB,CAAC;"}
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,346 +1 @@
|
||||||
import { K as ATTRIBUT_ID_ENSEMBLE_EPINGLE_BOITE, L as ATTRIBUT_ENSEMBLE_EPINGLE_BOITE_ACTIF, M as SELECTEUR_CONTENEUR_STORYTELLING_A_PROPOS, N as SELECTEUR_EPINGLE, O as SELECTEUR_BOITE_TEXTE } from "./dom.js";
|
import{K as c,L as f,M as U,N as M,O as B,P as D,Q as G}from"./dom.js";import{a as C,b as P}from"./utils.js";import{f as o,l as W,o as x,v as u,e as z,p as X,R as s}from"./dom2.js";import{p as i}from"./pipe.CtTFdEz3.js";import{_ as F,i as $,c as k,g as y,b as l,d as Y,a as q,f as w,e as J,h as g,m as R}from"./belt_Option-91f3b350.aHdMVyeC.js";import"./erreurs.js";import"./exports.LfjCCHHP.js";import"./Either.DDEPhGsy.js";var K=k("Promise.JsError");function Q(n,r){return n.catch(function(t){return F(r,$(t)?t:{RE_EXN_ID:K,_1:t})})}function j(n){}function H(n){return o(n)}function V(n){}function Z(n){if(n!=null)return o(n)}function nn(n){if(n)return n}function E(n,r){return w(n==null?void 0:o(n),function(t){if(r(t))return o(t)})}function tn(){if(arguments.length===1){const n=arguments;return function(t){return E(t,n[0])}}return E(arguments[0],arguments[1])}function rn(n){try{return o(n(void 0))}catch{return}}function en(n){return Q(n.then(function(r){return o(r)}),function(r){return Promise.resolve(void 0)})}var _=J;function un(){if(arguments.length===1){const n=arguments;return function(t){return _(t,n[0])}}return _(arguments[0],arguments[1])}var p=g;function an(){if(arguments.length===1){const n=arguments;return function(t){return p(t,n[0])}}return p(arguments[0],arguments[1])}var d=R;function on(){if(arguments.length===2){const n=arguments;return function(t){return d(t,n[0],n[1])}}return d(arguments[0],arguments[1],arguments[2])}function v(n,r){if(n!==void 0)return x(r(u(n)))}function sn(){if(arguments.length===1){const n=arguments;return function(t){return v(t,n[0])}}return v(arguments[0],arguments[1])}function h(n,r){return g(n,function(t){if(r(t))return o(t)})}function fn(){if(arguments.length===1){const n=arguments;return function(t){return h(t,n[0])}}return h(arguments[0],arguments[1])}var T=l;function mn(){if(arguments.length===1){const n=arguments;return function(t){return T(t,n[0])}}return T(arguments[0],arguments[1])}var cn=y;function ln(n){return l(n,null)}function gn(n){return l(n,void 0)}function N(n,r){return n!==void 0?{TAG:0,_0:u(n)}:{TAG:1,_0:r}}function En(){if(arguments.length===1){const n=arguments;return function(t){return N(t,n[0])}}return N(arguments[0],arguments[1])}function L(n,r,t){return n!==void 0?r(u(n)):t(void 0)}function _n(){if(arguments.length===2){const n=arguments;return function(t){return L(t,n[0],n[1])}}return L(arguments[0],arguments[1],arguments[2])}var pn=Y,dn=q;function S(n,r){return n!==void 0&&r(u(n)),n}function vn(){if(arguments.length===1){const n=arguments;return function(t){return S(t,n[0])}}return S(arguments[0],arguments[1])}function b(n,r){return R(n,!1,function(t){return z(t,r)})}function hn(){if(arguments.length===1){const n=arguments;return function(t){return b(t,n[0])}}return b(arguments[0],arguments[1])}function I(n,r){if(n!==void 0&&r!==void 0)return[u(n),u(r)]}function Tn(){if(arguments.length===1){const n=arguments;return function(t){return I(t,n[0])}}return I(arguments[0],arguments[1])}function O(n,r,t){if(n!==void 0&&r!==void 0)return o(t(u(n),u(r)))}function Nn(){if(arguments.length===2){const n=arguments;return function(t){return O(t,n[0],n[1])}}return O(arguments[0],arguments[1],arguments[2])}function A(n,r,t){return n!==void 0?r(u(n)):t(void 0)}function Ln(){if(arguments.length===2){const n=arguments;return function(t){return A(t,n[0],n[1])}}return A(arguments[0],arguments[1],arguments[2])}function Sn(n){return W(n,[],function(r,t){return g(r,function(a){if(t!==void 0)return X(a,[u(t)])})})}const bn=n=>n;var e={__proto__:null,Some:bn,None:void 0,placeholder:j,makeSome:H,makeNone:V,fromNullable:Z,fromFalsy:nn,fromPredicate:tn,fromExecution:rn,fromPromise:en,map:un,flatMap:an,mapWithDefault:on,mapNullable:sn,filter:fn,getWithDefault:mn,getExn:cn,toNullable:ln,toUndefined:gn,toResult:En,match:_n,isNone:pn,isSome:dn,tap:vn,contains:hn,zip:Tn,zipWith:Nn,fold:Ln,all:Sn};const In=C(B),On=P(D),An=P(G),m=new Map;s.forEachWithIndex(On,(n,r)=>{i(r,e.flatMap(t=>t.getAttribute(c)),e.tap(t=>{m.set(t,[r,An[n]])}))});document.addEventListener("DOMContentLoaded",()=>{In.addEventListener("click",n=>{console.time();const r=n.target;i(r,e.fromPredicate(t=>t.className===U),e.mapNullable(t=>t.parentElement),e.flatMap(t=>t.getAttribute(c)),e.tap(t=>{i(e.fromNullable(m.get(t)),e.tap(s.forEach(a=>a.removeAttribute(f))))})),i(r,e.fromPredicate(t=>t.className===M),e.flatMap(t=>t.getAttribute(c)),e.tap(t=>{if(r.hasAttribute(f)){i(e.fromNullable(m.get(t)),e.tap(s.forEach(a=>a.removeAttribute(f))));return}i(Array.from(m.values()),s.flat,s.forEach(a=>a.removeAttribute(f))),i(e.fromNullable(m.get(t)),e.tap(s.forEach(a=>a.toggleAttribute(f))))})),console.timeEnd()})});
|
||||||
import { a as recupereElementDansDocumentOuLeve, b as recupereElementsDansDocumentOuLeve } from "./utils.js";
|
|
||||||
import { f as some, l as reduceU, o as nullable_to_opt, v as valFromOption, e as equal, p as concat, R as Ra } from "./dom2.js";
|
|
||||||
import { p as pipe } from "./pipe.XPB0wEfw.js";
|
|
||||||
import { _ as _1, i as is_extension, c as create, g as getExn, b as getWithDefault$1, d as isNone, a as isSome, f as flatMap$1, e as mapU, h as flatMapU, m as mapWithDefaultU } from "./belt_Option-91f3b350.BEnQsSyX.js";
|
|
||||||
import "./erreurs.js";
|
|
||||||
import "./exports.BuUzFliQ.js";
|
|
||||||
import "./Either.wHNxn7Os.js";
|
|
||||||
var t = create("Promise.JsError");
|
|
||||||
function $$catch(r, s) {
|
|
||||||
return r.catch(function(r2) {
|
|
||||||
return _1(s, is_extension(r2) ? r2 : {
|
|
||||||
RE_EXN_ID: t,
|
|
||||||
_1: r2
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function placeholder(n) {
|
|
||||||
}
|
|
||||||
function makeSome(n) {
|
|
||||||
return some(n);
|
|
||||||
}
|
|
||||||
function makeNone(n) {
|
|
||||||
}
|
|
||||||
function fromNullable(n) {
|
|
||||||
if (null == n) {
|
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
return some(n);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function fromFalsy(n) {
|
|
||||||
if (n) {
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function _fromPredicate(n, t2) {
|
|
||||||
return flatMap$1(null == n ? void 0 : some(n), function(n2) {
|
|
||||||
if (t2(n2)) {
|
|
||||||
return some(n2);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function fromPredicate() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _fromPredicate(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _fromPredicate(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function fromExecution(n) {
|
|
||||||
try {
|
|
||||||
return some(n(void 0));
|
|
||||||
} catch (n2) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function fromPromise(t2) {
|
|
||||||
return $$catch(t2.then(function(n) {
|
|
||||||
return some(n);
|
|
||||||
}), function(n) {
|
|
||||||
return Promise.resolve(void 0);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
var h = mapU;
|
|
||||||
function map() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return h(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return h(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
var _ = flatMapU;
|
|
||||||
function flatMap() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
var v = mapWithDefaultU;
|
|
||||||
function mapWithDefault() {
|
|
||||||
if (2 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return v(t2, n[0], n[1]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return v(arguments[0], arguments[1], arguments[2]);
|
|
||||||
}
|
|
||||||
function _mapNullable(n, t2) {
|
|
||||||
if (void 0 !== n) {
|
|
||||||
return nullable_to_opt(t2(valFromOption(n)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function mapNullable() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _mapNullable(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _mapNullable(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _filter(n, t2) {
|
|
||||||
return flatMapU(n, function(n2) {
|
|
||||||
if (t2(n2)) {
|
|
||||||
return some(n2);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function filter() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _filter(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _filter(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
var g = getWithDefault$1;
|
|
||||||
function getWithDefault() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return g(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return g(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
var N = getExn;
|
|
||||||
function toNullable(n) {
|
|
||||||
return getWithDefault$1(n, null);
|
|
||||||
}
|
|
||||||
function toUndefined(n) {
|
|
||||||
return getWithDefault$1(n, void 0);
|
|
||||||
}
|
|
||||||
function _toResult(n, t2) {
|
|
||||||
if (void 0 !== n) {
|
|
||||||
return {
|
|
||||||
TAG: 0,
|
|
||||||
_0: valFromOption(n)
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
return {
|
|
||||||
TAG: 1,
|
|
||||||
_0: t2
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function toResult() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _toResult(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _toResult(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _match(n, t2, r) {
|
|
||||||
if (void 0 !== n) {
|
|
||||||
return t2(valFromOption(n));
|
|
||||||
} else {
|
|
||||||
return r(void 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function match() {
|
|
||||||
if (2 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _match(t2, n[0], n[1]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _match(arguments[0], arguments[1], arguments[2]);
|
|
||||||
}
|
|
||||||
var b = isNone;
|
|
||||||
var z = isSome;
|
|
||||||
function _tap(n, t2) {
|
|
||||||
if (void 0 !== n) {
|
|
||||||
t2(valFromOption(n));
|
|
||||||
return n;
|
|
||||||
} else {
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function tap() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _tap(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _tap(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _contains(n, r) {
|
|
||||||
return mapWithDefaultU(n, false, function(n2) {
|
|
||||||
return equal(n2, r);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function contains() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _contains(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _contains(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _zip(n, t2) {
|
|
||||||
if (void 0 !== n && void 0 !== t2) {
|
|
||||||
return [valFromOption(n), valFromOption(t2)];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function zip() {
|
|
||||||
if (1 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _zip(t2, n[0]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _zip(arguments[0], arguments[1]);
|
|
||||||
}
|
|
||||||
function _zipWith(n, t2, r) {
|
|
||||||
if (void 0 !== n && void 0 !== t2) {
|
|
||||||
return some(r(valFromOption(n), valFromOption(t2)));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function zipWith() {
|
|
||||||
if (2 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _zipWith(t2, n[0], n[1]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _zipWith(arguments[0], arguments[1], arguments[2]);
|
|
||||||
}
|
|
||||||
function _fold(n, t2, r) {
|
|
||||||
if (void 0 !== n) {
|
|
||||||
return t2(valFromOption(n));
|
|
||||||
} else {
|
|
||||||
return r(void 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function fold() {
|
|
||||||
if (2 === arguments.length) {
|
|
||||||
const n = arguments;
|
|
||||||
return function fn(t2) {
|
|
||||||
return _fold(t2, n[0], n[1]);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return _fold(arguments[0], arguments[1], arguments[2]);
|
|
||||||
}
|
|
||||||
function all(n) {
|
|
||||||
return reduceU(n, [], function(n2, t2) {
|
|
||||||
return flatMapU(n2, function(n3) {
|
|
||||||
if (void 0 !== t2) {
|
|
||||||
return concat(n3, [valFromOption(t2)]);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
const Some = (n) => n;
|
|
||||||
var P = {
|
|
||||||
__proto__: null,
|
|
||||||
Some,
|
|
||||||
None: void 0,
|
|
||||||
placeholder,
|
|
||||||
makeSome,
|
|
||||||
makeNone,
|
|
||||||
fromNullable,
|
|
||||||
fromFalsy,
|
|
||||||
fromPredicate,
|
|
||||||
fromExecution,
|
|
||||||
fromPromise,
|
|
||||||
map,
|
|
||||||
flatMap,
|
|
||||||
mapWithDefault,
|
|
||||||
mapNullable,
|
|
||||||
filter,
|
|
||||||
getWithDefault,
|
|
||||||
getExn: N,
|
|
||||||
toNullable,
|
|
||||||
toUndefined,
|
|
||||||
toResult,
|
|
||||||
match,
|
|
||||||
isNone: b,
|
|
||||||
isSome: z,
|
|
||||||
tap,
|
|
||||||
contains,
|
|
||||||
zip,
|
|
||||||
zipWith,
|
|
||||||
fold,
|
|
||||||
all
|
|
||||||
};
|
|
||||||
const CONTENEUR_STORYTELLING = recupereElementDansDocumentOuLeve(
|
|
||||||
SELECTEUR_CONTENEUR_STORYTELLING_A_PROPOS
|
|
||||||
);
|
|
||||||
const EPINGLES = recupereElementsDansDocumentOuLeve(SELECTEUR_EPINGLE);
|
|
||||||
const BOITES_TEXTE = recupereElementsDansDocumentOuLeve(SELECTEUR_BOITE_TEXTE);
|
|
||||||
const ENSEMBLES_EPINGLES_BOITES_TEXTE = /* @__PURE__ */ new Map();
|
|
||||||
Ra.forEachWithIndex(EPINGLES, (index, epingle) => {
|
|
||||||
pipe(
|
|
||||||
epingle,
|
|
||||||
P.flatMap((bouton) => bouton.getAttribute(ATTRIBUT_ID_ENSEMBLE_EPINGLE_BOITE)),
|
|
||||||
P.tap((id) => {
|
|
||||||
ENSEMBLES_EPINGLES_BOITES_TEXTE.set(id, [epingle, BOITES_TEXTE[index]]);
|
|
||||||
})
|
|
||||||
);
|
|
||||||
});
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
|
||||||
CONTENEUR_STORYTELLING.addEventListener("click", (evenement) => {
|
|
||||||
console.time();
|
|
||||||
const cible = evenement.target;
|
|
||||||
pipe(
|
|
||||||
cible,
|
|
||||||
P.fromPredicate((element) => element.tagName === "BUTTON"),
|
|
||||||
P.flatMap((bouton) => bouton.getAttribute(ATTRIBUT_ID_ENSEMBLE_EPINGLE_BOITE)),
|
|
||||||
P.tap((id) => {
|
|
||||||
if (cible.hasAttribute(ATTRIBUT_ENSEMBLE_EPINGLE_BOITE_ACTIF)) {
|
|
||||||
pipe(
|
|
||||||
P.fromNullable(ENSEMBLES_EPINGLES_BOITES_TEXTE.get(id)),
|
|
||||||
P.tap(Ra.forEach((element) => element.removeAttribute(ATTRIBUT_ENSEMBLE_EPINGLE_BOITE_ACTIF)))
|
|
||||||
);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
pipe(
|
|
||||||
Array.from(ENSEMBLES_EPINGLES_BOITES_TEXTE.values()),
|
|
||||||
Ra.flat,
|
|
||||||
Ra.forEach((element) => element.removeAttribute(ATTRIBUT_ENSEMBLE_EPINGLE_BOITE_ACTIF))
|
|
||||||
);
|
|
||||||
pipe(
|
|
||||||
P.fromNullable(ENSEMBLES_EPINGLES_BOITES_TEXTE.get(id)),
|
|
||||||
P.tap(Ra.forEach((element) => element.toggleAttribute(ATTRIBUT_ENSEMBLE_EPINGLE_BOITE_ACTIF)))
|
|
||||||
);
|
|
||||||
})
|
|
||||||
);
|
|
||||||
console.timeEnd();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=scripts-page-a-propos.js.map
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,40 +1 @@
|
||||||
import { a as SELECTEUR_CONTENEUR_STORYTELLING, b as SELECTEUR_IMAGES_STORYTELLING, c as ATTRIBUT_INDEX, d as ATTRIBUT_CACHE, e as ATTRIBUT_ARIA_HIDDEN } from "./dom.js";
|
import{a as u,b as T,c as l,d as I,e as L}from"./dom.js";import{e as R}from"./nombres.js";import{a as d,b as g}from"./utils.js";import"./dom2.js";import"./erreurs.js";import"./exports.LfjCCHHP.js";import"./pipe.CtTFdEz3.js";import"./Either.DDEPhGsy.js";const p=()=>{const n=d(u),m=g(T);let r=0,o=!1;const s=()=>{o||(window.requestAnimationFrame(()=>{const i=(e,t)=>{e.toggleAttribute(I,t),e.toggleAttribute(L,t)};r=n.scrollTop,m.forEach(e=>{const t=Number(e.getAttribute(l)),a=e.getBoundingClientRect().height,E=a*(t-1),c=a*t;R(r,E,c)?i(e,!1):i(e,!0)}),o=!1}),o=!0)};new ResizeObserver(()=>s()).observe(n),n.addEventListener("scroll",()=>s())};document.addEventListener("DOMContentLoaded",()=>{p()});
|
||||||
import { e as estEntreDeuxNombres } from "./nombres.js";
|
|
||||||
import { a as recupereElementDansDocumentOuLeve, b as recupereElementsDansDocumentOuLeve } from "./utils.js";
|
|
||||||
import "./dom2.js";
|
|
||||||
import "./erreurs.js";
|
|
||||||
import "./exports.BuUzFliQ.js";
|
|
||||||
import "./pipe.XPB0wEfw.js";
|
|
||||||
import "./Either.wHNxn7Os.js";
|
|
||||||
const initialiseScrollStorytelling = () => {
|
|
||||||
const CONTENEUR_STORYTELLING = recupereElementDansDocumentOuLeve(SELECTEUR_CONTENEUR_STORYTELLING);
|
|
||||||
const IMAGES_STORYTELLING = recupereElementsDansDocumentOuLeve(SELECTEUR_IMAGES_STORYTELLING);
|
|
||||||
let positionDefilementConteneur = 0;
|
|
||||||
let aucunRafraichissement = false;
|
|
||||||
const majImages = () => {
|
|
||||||
if (!aucunRafraichissement) {
|
|
||||||
window.requestAnimationFrame(() => {
|
|
||||||
const changeVisibiliteImage = (image, visible) => {
|
|
||||||
image.toggleAttribute(ATTRIBUT_CACHE, visible);
|
|
||||||
image.toggleAttribute(ATTRIBUT_ARIA_HIDDEN, visible);
|
|
||||||
};
|
|
||||||
positionDefilementConteneur = CONTENEUR_STORYTELLING.scrollTop;
|
|
||||||
IMAGES_STORYTELLING.forEach((image) => {
|
|
||||||
const indexImage = Number(image.getAttribute(ATTRIBUT_INDEX));
|
|
||||||
const hauteurImage = image.getBoundingClientRect().height;
|
|
||||||
const debutYImage = hauteurImage * (indexImage - 1);
|
|
||||||
const finYImage = hauteurImage * indexImage;
|
|
||||||
estEntreDeuxNombres(positionDefilementConteneur, debutYImage, finYImage) ? changeVisibiliteImage(image, false) : changeVisibiliteImage(image, true);
|
|
||||||
});
|
|
||||||
aucunRafraichissement = false;
|
|
||||||
});
|
|
||||||
aucunRafraichissement = true;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
new ResizeObserver(() => majImages()).observe(CONTENEUR_STORYTELLING);
|
|
||||||
CONTENEUR_STORYTELLING.addEventListener("scroll", () => majImages());
|
|
||||||
};
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
|
||||||
initialiseScrollStorytelling();
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=scripts-page-accueil.js.map
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"scripts-page-accueil.js","sources":["../../src/scripts/scripts-page-accueil.ts"],"sourcesContent":["// Scripts pour la Page d'accueil\n\nimport {\n ATTRIBUT_ARIA_HIDDEN,\n ATTRIBUT_CACHE,\n ATTRIBUT_INDEX,\n SELECTEUR_CONTENEUR_STORYTELLING,\n SELECTEUR_IMAGES_STORYTELLING,\n} from \"./constantes/dom.ts\";\nimport { estEntreDeuxNombres } from \"./lib/nombres.ts\";\nimport { recupereElementDansDocumentOuLeve, recupereElementsDansDocumentOuLeve } from \"./lib/utils.ts\";\n\nconst initialiseScrollStorytelling = (): void => {\n /** Le Conteneur des images du storytelling. */\n const CONTENEUR_STORYTELLING = recupereElementDansDocumentOuLeve<HTMLElement>(SELECTEUR_CONTENEUR_STORYTELLING);\n /** Les Images du storytelling. */\n const IMAGES_STORYTELLING = recupereElementsDansDocumentOuLeve<HTMLDivElement>(SELECTEUR_IMAGES_STORYTELLING);\n\n // Variables mutables\n /** La position du défilement (en pixels) du Conteneur des images du storytelling. */\n let positionDefilementConteneur = 0;\n /** Booléen permettant de limiter le rafraîchissement des images du storytelling. */\n let aucunRafraichissement = false;\n\n const majImages = (): void => {\n // Limite le rafraîchissement des images\n if (!aucunRafraichissement) {\n window.requestAnimationFrame((): void => {\n const changeVisibiliteImage = (image: HTMLDivElement, visible: boolean) => {\n image.toggleAttribute(ATTRIBUT_CACHE, visible);\n image.toggleAttribute(ATTRIBUT_ARIA_HIDDEN, visible);\n };\n\n // Met à jour la position du défilement dans le Conteneur\n positionDefilementConteneur = CONTENEUR_STORYTELLING.scrollTop;\n\n // Met à jour l'attribut de visibilité des images en fonction du défilement\n IMAGES_STORYTELLING.forEach((image: HTMLDivElement): void => {\n const indexImage = Number(image.getAttribute(ATTRIBUT_INDEX));\n const hauteurImage = image.getBoundingClientRect().height;\n const debutYImage = hauteurImage * (indexImage - 1);\n const finYImage = hauteurImage * indexImage;\n\n estEntreDeuxNombres(positionDefilementConteneur, debutYImage, finYImage)\n ? changeVisibiliteImage(image, false)\n : changeVisibiliteImage(image, true);\n });\n\n aucunRafraichissement = false;\n });\n aucunRafraichissement = true;\n }\n };\n\n // Initialise l'Observateur de Redimensionnement (ResizeObserver)\n new ResizeObserver((): void => majImages()).observe(CONTENEUR_STORYTELLING);\n // Initialise la mise à jour des images au défilement sur le Conteneur\n CONTENEUR_STORYTELLING.addEventListener(\"scroll\", (): void => majImages());\n};\n\ndocument.addEventListener(\"DOMContentLoaded\", (): void => {\n initialiseScrollStorytelling();\n});\n"],"names":[],"mappings":";;;;;;;;AAYA,MAAM,+BAA+B,MAAY;AAEzC,QAAA,yBAAyB,kCAA+C,gCAAgC;AAExG,QAAA,sBAAsB,mCAAmD,6BAA6B;AAI5G,MAAI,8BAA8B;AAElC,MAAI,wBAAwB;AAE5B,QAAM,YAAY,MAAY;AAE5B,QAAI,CAAC,uBAAuB;AAC1B,aAAO,sBAAsB,MAAY;AACjC,cAAA,wBAAwB,CAAC,OAAuB,YAAqB;AACnE,gBAAA,gBAAgB,gBAAgB,OAAO;AACvC,gBAAA,gBAAgB,sBAAsB,OAAO;AAAA,QACrD;AAGA,sCAA8B,uBAAuB;AAGjC,4BAAA,QAAQ,CAAC,UAAgC;AAC3D,gBAAM,aAAa,OAAO,MAAM,aAAa,cAAc,CAAC;AACtD,gBAAA,eAAe,MAAM,sBAAA,EAAwB;AAC7C,gBAAA,cAAc,gBAAgB,aAAa;AACjD,gBAAM,YAAY,eAAe;AAEb,8BAAA,6BAA6B,aAAa,SAAS,IACnE,sBAAsB,OAAO,KAAK,IAClC,sBAAsB,OAAO,IAAI;AAAA,QAAA,CACtC;AAEuB,gCAAA;AAAA,MAAA,CACzB;AACuB,8BAAA;AAAA,IAAA;AAAA,EAE5B;AAGA,MAAI,eAAe,MAAY,UAAW,CAAA,EAAE,QAAQ,sBAAsB;AAE1E,yBAAuB,iBAAiB,UAAU,MAAY,UAAA,CAAW;AAC3E;AAEA,SAAS,iBAAiB,oBAAoB,MAAY;AAC3B,+BAAA;AAC/B,CAAC;"}
|
|
||||||
|
|
@ -1,102 +1,24 @@
|
||||||
import { z, N } from "./index.CeK6pfoJ.js";
|
import{z as _,N as g}from"./index.CuMLbxmh.js";import{p as d}from"./index.DFL3aKZD.js";import{R as f}from"./api.js";import{f as E,g as T,h,i as s,j as S}from"./dom.js";import{h as R}from"./dom2.js";import{l as P}from"./erreurs.js";import{e as U}from"./gardes.js";import{g as L,t as A}from"./reseau.js";import{W as O,a as D}from"./products3.js";import{a as m}from"./utils.js";import{E as I}from"./MaybeAsync.BkJailCK.js";import{p as C}from"./pipe.CtTFdEz3.js";import{t as v}from"./index-0eef19ec._7_ubBTi.js";import{E as b}from"./Either.DDEPhGsy.js";import"./exports.LfjCCHHP.js";import"./erreurs2.js";import"./products4.js";import"./belt_Option-91f3b350.aHdMVyeC.js";const p=_etats,i=m(E),n=m(T),B=()=>{const o=i.getAttribute(h);n.addEventListener("click",()=>{const a=Number(i.getAttribute(s))+1,c={page:a,per_page:13,...o&&{category:o}};b.encase(()=>d(O,c)).map(async u=>{await I(()=>L({authString:p.authString,nonce:p.nonce,route:f,searchParams:new URLSearchParams(u).toString()})).map(t=>(console.debug("réponse",t),U(t)&&P("500 Server Error"),t.json())).map(t=>A(t,D)).ifRight(t=>{t.length<12&&n.toggleAttribute(S);const r=document.createDocumentFragment();console.debug(t);for(const e of t.slice(0,12))C(R`
|
||||||
import { p as parse } from "./index.Dco04HYW.js";
|
|
||||||
import { R as ROUTE_API_NOUVELLE_PRODUCTS } from "./api.js";
|
|
||||||
import { f as SELECTEUR_GRILLE_PRODUITS, g as SELECTEUR_BOUTON_PLUS_PRODUITS, h as ATTRIBUT_ID_CATEGORIE_PRODUITS, i as ATTRIBUT_PAGE, j as ATTRIBUT_HIDDEN } from "./dom.js";
|
|
||||||
import { h as html } from "./dom2.js";
|
|
||||||
import { l as leveServerError } from "./erreurs.js";
|
|
||||||
import { e as estReponse500 } from "./gardes.js";
|
|
||||||
import { g as getBackend, t as traiteReponseBackendWCSelonCodesHTTP } from "./reseau.js";
|
|
||||||
import { W as WCV3ProductsArgsSchema, a as WCV3ProductsSchema } from "./products3.js";
|
|
||||||
import { a as recupereElementDansDocumentOuLeve } from "./utils.js";
|
|
||||||
import { E as EitherAsync } from "./MaybeAsync.AE1jnxuc.js";
|
|
||||||
import { p as pipe } from "./pipe.XPB0wEfw.js";
|
|
||||||
import { t as tap } from "./index-0eef19ec.C9-H3LKa.js";
|
|
||||||
import { E as Either } from "./Either.wHNxn7Os.js";
|
|
||||||
import "./exports.BuUzFliQ.js";
|
|
||||||
import "./erreurs2.js";
|
|
||||||
import "./products4.js";
|
|
||||||
import "./belt_Option-91f3b350.BEnQsSyX.js";
|
|
||||||
const ETATS_PAGE = _etats;
|
|
||||||
const GRILLE_PRODUITS = recupereElementDansDocumentOuLeve(SELECTEUR_GRILLE_PRODUITS);
|
|
||||||
const BOUTON_PLUS_DE_PRODUITS = recupereElementDansDocumentOuLeve(SELECTEUR_BOUTON_PLUS_PRODUITS);
|
|
||||||
const initialisePageBoutique = () => {
|
|
||||||
const idCategorieProduits = GRILLE_PRODUITS.getAttribute(ATTRIBUT_ID_CATEGORIE_PRODUITS);
|
|
||||||
BOUTON_PLUS_DE_PRODUITS.addEventListener("click", () => {
|
|
||||||
const nouvellePage = Number(GRILLE_PRODUITS.getAttribute(ATTRIBUT_PAGE)) + 1;
|
|
||||||
const args = {
|
|
||||||
page: nouvellePage,
|
|
||||||
per_page: 13,
|
|
||||||
// Ajoute conditionnellement la Catégorie de Produits
|
|
||||||
...idCategorieProduits && { category: idCategorieProduits }
|
|
||||||
};
|
|
||||||
Either.encase(() => parse(WCV3ProductsArgsSchema, args)).map(
|
|
||||||
async (args2) => {
|
|
||||||
await EitherAsync(
|
|
||||||
() => getBackend({
|
|
||||||
authString: ETATS_PAGE.authString,
|
|
||||||
nonce: ETATS_PAGE.nonce,
|
|
||||||
route: ROUTE_API_NOUVELLE_PRODUCTS,
|
|
||||||
searchParams: new URLSearchParams(args2).toString()
|
|
||||||
})
|
|
||||||
).map((reponse) => {
|
|
||||||
console.debug("réponse", reponse);
|
|
||||||
if (estReponse500(reponse)) leveServerError("500 Server Error");
|
|
||||||
return reponse.json();
|
|
||||||
}).map(
|
|
||||||
(corpsReponse) => (
|
|
||||||
// Traite tous les codes HTTPs possibles
|
|
||||||
traiteReponseBackendWCSelonCodesHTTP(
|
|
||||||
corpsReponse,
|
|
||||||
WCV3ProductsSchema
|
|
||||||
)
|
|
||||||
)
|
|
||||||
).ifRight((donnees) => {
|
|
||||||
if (donnees.length < 12) {
|
|
||||||
BOUTON_PLUS_DE_PRODUITS.toggleAttribute(ATTRIBUT_HIDDEN);
|
|
||||||
}
|
|
||||||
const fragment = document.createDocumentFragment();
|
|
||||||
console.debug(donnees);
|
|
||||||
for (const produit of donnees.slice(0, 12)) {
|
|
||||||
pipe(
|
|
||||||
html`
|
|
||||||
<article class="produit">
|
<article class="produit">
|
||||||
<figure>
|
<figure>
|
||||||
<a href="https://haikuatelier.fr.ddev.site/product/${produit.slug}">
|
<a href="https://haikuatelier.fr.ddev.site/product/${e.slug}">
|
||||||
<picture class="produit__illustration produit__illustration__principale">
|
<picture class="produit__illustration produit__illustration__principale">
|
||||||
${produit.images[0]?.tag}
|
${e.images[0]?.tag}
|
||||||
</picture>
|
</picture>
|
||||||
|
|
||||||
<picture class="produit__illustration produit__illustration__survol">
|
<picture class="produit__illustration produit__illustration__survol">
|
||||||
${produit.image_survol ?? ""}
|
${e.image_survol??""}
|
||||||
</picture>
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<figcaption class="produit__textuel">
|
<figcaption class="produit__textuel">
|
||||||
<h3 class="produit__textuel__titre">
|
<h3 class="produit__textuel__titre">
|
||||||
<a href="${produit.permalink}">${produit.name}</a>
|
<a href="${e.permalink}">${e.name}</a>
|
||||||
</h3>
|
</h3>
|
||||||
<p class="produit__textuel__prix">
|
<p class="produit__textuel__prix">
|
||||||
${Number(produit.price)}€
|
${Number(e.price)}€
|
||||||
</p>
|
</p>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
</article>
|
</article>
|
||||||
`,
|
`,v(l=>{r.appendChild(l)}));i.appendChild(r),i.setAttribute(s,String(a))}).ifLeft(t=>{_(t).with({issues:g.select(),name:"ValiError"},r=>console.error("ValiError",r)).otherwise(r=>console.error("Autre",r.name,r))}).void()})})};document.addEventListener("DOMContentLoaded",()=>{B()});
|
||||||
tap((article) => {
|
|
||||||
fragment.appendChild(article);
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
GRILLE_PRODUITS.appendChild(fragment);
|
|
||||||
GRILLE_PRODUITS.setAttribute(ATTRIBUT_PAGE, String(nouvellePage));
|
|
||||||
}).ifLeft((e) => {
|
|
||||||
z(e).with({ issues: N.select(), name: "ValiError" }, (problemes) => console.error("ValiError", problemes)).otherwise((e2) => console.error("Autre", e2.name, e2));
|
|
||||||
}).void();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
|
||||||
initialisePageBoutique();
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=scripts-page-boutique.js.map
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue