1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21357,e=>{"use strict";let t=(0,e.i(56420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],21357)},99159,e=>{"use strict";var t=e.i(43476),s=e.i(71645),i=e.i(22016),a=e.i(57688),l=e.i(89664),n=e.i(63676),r=e.i(63448),o=e.i(68877),c=e.i(20437),d=e.i(47793),m=e.i(10607),u=e.i(54885),x=e.i(18387),h=e.i(76535);let b=Array.from({length:d.MAX_QUANTITY},(e,t)=>t+1),p=b.filter(e=>e>=6);e.s(["default",0,function({item:e,lang:f,className:g,children:v,quantitySelector:j=!1,cureSelector:w=!1,daysPerUnit:N=31,afterButton:k,quantity:y}){let[C,E]=(0,s.useState)(!1),[T,S]=(0,s.useState)(1),$=y??T,[I,L]=(0,s.useState)(!1),P="en"===f,R=P?{added:"Your item has been added to the cart",close:"Close",cont:"Continue shopping",view:"View cart",aria:"Item added to cart",quantity:"Quantity",cureTitle:"Choose your course",month:"month",months:"months",unit:"item",units:"items",perDay:"per day",bestValue:"Best value",freeShipping:"Free shipping",otherQty:"Another quantity",pick:"Choose a quantity"}:{added:"Votre article a été ajouté au panier",close:"Fermer",cont:"Continuer mes achats",view:"Voir le panier",aria:"Article ajouté au panier",quantity:"Quantité",cureTitle:"Choisissez votre cure",month:"mois",months:"mois",unit:"produit",units:"produits",perDay:"par jour",bestValue:"Meilleure offre",freeShipping:"Livraison offerte",otherQty:"Autre quantité",pick:"Choisir une quantité"},A=w||j;(0,s.useEffect)(()=>{A&&(0,d.emitCureChange)({handle:e.handle,qty:$})},[A,e.handle,$]);let _=e.currency||"EUR",U=e=>new Intl.NumberFormat(P?"en-IE":"fr-FR",{style:"currency",currency:_}).format(e),V=U((0,d.lineTotal)(e.price,$));return(0,t.jsxs)(t.Fragment,{children:[w&&(0,t.jsxs)("fieldset",{className:"mb-4",children:[(0,t.jsx)("legend",{className:"text-xs font-bold uppercase tracking-[0.18em] text-black/50 mb-2.5",children:R.cureTitle}),(0,t.jsx)("div",{className:"space-y-2",role:"radiogroup","aria-label":R.cureTitle,children:d.CURE_QUANTITIES.map(s=>{let i=(0,d.lineTotal)(e.price,s),a=(0,d.lineSubtotal)(e.price,s),l=(0,d.discountPercent)(s),n=$===s;return(0,t.jsxs)("button",{type:"button",role:"radio","aria-checked":n,onClick:()=>S(s),className:`w-full flex items-center gap-3 rounded-2xl px-4 py-2.5 text-left transition-colors ${n?"bg-bien-cream ring-2 ring-bien-forest":"bg-card ring-1 ring-border hover:bg-bien-cream/50"}`,children:[(0,t.jsx)("span",{className:`shrink-0 grid place-items-center h-4 w-4 rounded-full ring-1 ${n?"ring-bien-forest":"ring-border"}`,children:n&&(0,t.jsx)("span",{className:"h-2 w-2 rounded-full bg-bien-forest"})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{className:"text-sm font-bold text-black",children:[s," ",s>1?R.months:R.month]}),l>0&&(0,t.jsxs)("span",{className:"rounded-full bg-bien-leaf/15 text-bien-leaf text-[11px] font-bold px-2 py-0.5",children:["-",l,"%"]}),s===d.BEST_VALUE_QUANTITY&&(0,t.jsx)("span",{className:"rounded-full bg-bien-forest text-bien-cream text-[10px] font-bold uppercase tracking-wider px-2 py-0.5",children:R.bestValue})]}),(0,t.jsxs)("span",{className:"block text-[11px] text-black/55 mt-0.5",children:[s," ",s>1?R.units:R.unit," · ",U(i/(s*N))," ",R.perDay,i>=m.FREE_SHIPPING_THRESHOLD&&(0,t.jsxs)(t.Fragment,{children:[" · ",(0,t.jsx)("span",{className:"text-bien-leaf font-semibold",children:R.freeShipping})]})]})]}),(0,t.jsxs)("span",{className:"shrink-0 text-right",children:[(0,t.jsx)("span",{className:"block text-sm font-bold text-black",children:U(i)}),l>0&&(0,t.jsx)("span",{className:"block text-[11px] text-black/45 line-through",children:U(a)})]})]},s)})}),(0,t.jsxs)("label",{className:"mt-4 flex items-center gap-2.5 text-xs text-black/55",children:[R.otherQty,(0,t.jsx)("select",{value:$,onChange:e=>S(Number(e.target.value)),"aria-label":R.pick,className:"rounded-full ring-1 ring-border bg-card px-3 py-1.5 text-sm font-semibold text-black",children:b.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]})]}),(0,t.jsxs)("div",{className:j?"flex flex-wrap items-end gap-3":"contents",children:[j&&(0,t.jsxs)("div",{className:"shrink-0",children:[(0,t.jsx)("p",{className:"mb-1.5 text-xs font-bold uppercase tracking-[0.18em] text-black/50",children:R.quantity}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("div",{className:"inline-flex items-center rounded-full ring-1 ring-border bg-card p-1",role:"group","aria-label":R.quantity,children:[[1,2,3,4,5].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{S(e),L(!1)},"aria-pressed":$===e&&!I,className:`h-9 w-9 rounded-full text-sm font-bold transition ${$===e&&!I?"bg-bien-forest text-bien-cream":"text-black/70 hover:bg-bien-cream"}`,children:e},e)),(0,t.jsx)("button",{type:"button",onClick:()=>{L(!0),S(6)},"aria-pressed":I,className:`h-9 px-3 rounded-full text-sm font-bold transition ${I?"bg-bien-forest text-bien-cream":"text-black/70 hover:bg-bien-cream"}`,children:"6+"})]}),I&&(0,t.jsx)("select",{value:$,onChange:e=>S(Number(e.target.value)),"aria-label":R.pick,className:"h-9 rounded-full ring-1 ring-border bg-card px-3 text-sm font-semibold text-black",children:p.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]})]}),(0,t.jsx)("button",{type:"button",onClick:function(){(0,c.addToCart)(e,$),(0,u.trackMeta)("AddToCart",{content_ids:[e.handle],content_name:e.title,content_type:"product",value:(0,d.lineTotal)(e.price,$),currency:_}),(0,x.trackGa)("add_to_cart",{currency:_,value:(0,d.lineTotal)(e.price,$),items:[{item_id:e.handle,item_name:e.title,price:e.price,quantity:$}]});let t=(0,c.getCart)(),s=`${window.location.origin}/${f}/products/${e.handle}`;(0,h.trackKlaviyo)("Added to Cart",{$value:(0,c.cartTotal)(t),AddedItemProductName:e.title,AddedItemProductID:e.handle,AddedItemSKU:e.handle,AddedItemImageURL:e.image??void 0,AddedItemURL:s,AddedItemPrice:e.price,AddedItemQuantity:$,ItemNames:t.map(e=>e.title),CheckoutURL:(0,c.checkoutUrl)(t),Items:t.map(e=>({ProductID:e.handle,SKU:e.handle,ProductName:e.title,Quantity:e.qty,ItemPrice:e.price,RowTotal:(0,d.lineTotal)(e.price,e.qty),ProductURL:`${window.location.origin}/${f}/products/${e.handle}`,ImageURL:e.image??void 0}))}),E(!0)},className:g,children:v})]}),k,C&&(0,t.jsxs)("div",{className:"fixed inset-0 z-[110] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":R.aria,children:[(0,t.jsx)("button",{"aria-label":R.close,onClick:()=>E(!1),className:"absolute inset-0 bg-bien-forest/45 backdrop-blur-sm"}),(0,t.jsxs)("div",{className:"relative w-full max-w-md rounded-[1.75rem] bg-white ring-1 ring-border bien-shadow p-6 sm:p-8 animate-[bien-fade-up_0.3s_ease]",children:[(0,t.jsx)("button",{onClick:()=>E(!1),"aria-label":R.close,className:"absolute top-4 right-4 grid place-items-center h-8 w-8 rounded-full text-black/60 hover:bg-bien-cream transition-colors",children:(0,t.jsx)(n.X,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-bien-leaf font-semibold",children:[(0,t.jsx)("span",{className:"grid place-items-center h-7 w-7 rounded-full bg-bien-leaf text-bien-cream",children:(0,t.jsx)(l.Check,{className:"h-4 w-4"})}),R.added]}),(0,t.jsxs)("div",{className:"mt-5 flex items-center gap-4 roun
1ded-2xl bg-bien-cream/60 ring-1 ring-border p-3",children:[(0,t.jsx)("div",{className:"relative h-16 w-16 shrink-0 rounded-xl overflow-hidden bg-white",children:e.image?(0,t.jsx)(a.default,{src:e.image,alt:e.title,fill:!0,sizes:"64px",className:"object-cover"}):(0,t.jsx)("span",{className:"grid place-items-center h-full w-full text-black/40",children:(0,t.jsx)(r.ShoppingBag,{className:"h-6 w-6"})})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"font-display text-black leading-tight truncate",children:e.title}),(0,t.jsxs)("p",{className:"text-sm text-black/60",children:[$>1&&(0,t.jsxs)("span",{className:"font-semibold text-black",children:["Ã",$," · "]}),V]})]})]}),(0,t.jsxs)("div",{className:"mt-6 grid sm:grid-cols-2 gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>E(!1),className:"inline-flex items-center justify-center gap-2 rounded-full ring-1 ring-bien-forest/25 text-black px-5 py-3 text-sm font-semibold hover:bg-bien-cream transition-colors",children:R.cont}),(0,t.jsxs)(i.default,{href:`/${f}/cart`,className:"inline-flex items-center justify-center gap-2 rounded-full bg-bien-forest text-bien-cream px-5 py-3 text-sm font-semibold hover:bg-bien-leaf transition-colors",children:[R.view," ",(0,t.jsx)(o.ArrowRight,{className:"h-4 w-4"})]})]})]})]})]})}])},15767,e=>{"use strict";var t=e.i(43476),s=e.i(71645);function i(e,t){let s=new Date(e),i=t;for(;i>0;){s.setDate(s.getDate()+1);let e=s.getDay();0!==e&&6!==e&&i--}return s}e.s(["default",0,function({lang:e,inStock:a}){let[l,n]=(0,s.useState)(null),r="en"===e;return((0,s.useEffect)(()=>{let e=new Date,t=i(e,2),s=i(e,5),a=r?"en-GB":"fr-FR",l=e=>e.toLocaleDateString(a,{day:"numeric"}),o=e=>e.toLocaleDateString(a,{day:"numeric",month:"long"});n(t.getMonth()===s.getMonth()?`${r?l(t):`${l(t)}`} ${r?"and":"et le"} ${o(s)}`:`${o(t)} ${r?"and":"et le"} ${o(s)}`)},[r]),l)?(0,t.jsxs)("p",{className:"mt-3 flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-sm text-black/75",children:[(0,t.jsx)("span",{className:`h-2 w-2 rounded-full ${a?"bg-bien-leaf":"bg-bien-gold"}`}),(0,t.jsx)("span",{className:"font-semibold text-black",children:a?r?"In stock":"En stock":r?"Pre-order":"Précommande"}),(0,t.jsx)("span",{className:"text-black/40",children:"·"}),r?`Delivered between ${l}`:`Livr\xe9 chez vous entre le ${l}`]}):null}])},24953,e=>{"use strict";var t=e.i(43476),s=e.i(71645),i=e.i(47793);e.s(["default",0,function({handle:e,price:a,compareAtPrice:l,currency:n,lang:r,className:o=""}){let[c,d]=(0,s.useState)(1);(0,s.useEffect)(()=>{let t=t=>{let s=t.detail;s&&s.handle===e&&d(s.qty)};return window.addEventListener(i.CURE_EVENT,t),()=>window.removeEventListener(i.CURE_EVENT,t)},[e]);let m=e=>new Intl.NumberFormat("en"===r?"en-IE":"fr-FR",{style:"currency",currency:n||"EUR",minimumFractionDigits:2*!Number.isInteger(e)}).format(e),u=(0,i.lineTotal)(a,c),x=Math.round((l??a)*c*100)/100,h=(0,i.discountPercent)(c);return(0,t.jsxs)("div",{className:`flex items-baseline gap-3 flex-wrap ${o}`,children:[(0,t.jsx)("span",{className:"text-base font-bold text-black",children:m(u)}),x>u&&(0,t.jsx)("span",{className:"text-sm text-black/45 line-through",children:m(x)}),h>0&&(0,t.jsxs)("span",{className:"rounded-full bg-bien-leaf/15 text-bien-leaf text-[11px] font-bold px-2 py-0.5",children:["-",h,"%"]})]})}])},92818,e=>{"use strict";var t=e.i(71645),s=e.i(54885),i=e.i(18387),a=e.i(41872),l=e.i(76535);e.s(["default",0,function({handle:e,title:n,price:r,currency:o="EUR",productId:c,image:d}){return(0,t.useEffect)(()=>{(0,s.trackMeta)("ViewContent",{content_ids:[e],content_name:n,content_type:"product",value:r,currency:o}),(0,i.trackGa)("view_item",{currency:o,value:r,items:[{item_id:e,item_name:n,price:r,quantity:1}]})},[e,n,r,o]),(0,t.useEffect)(()=>{let t=()=>(0,l.trackKlaviyo)("Viewed Product",{ProductName:n,ProductID:c??e,SKU:e,ImageURL:d??void 0,URL:window.location.origin+window.location.pathname,Brand:"BIEN health",Price:r});if(t())return;let s=()=>{t()&&window.removeEventListener(a.CONSENT_EVENT,s)};return window.addEventListener(a.CONSENT_EVENT,s),()=>window.removeEventListener(a.CONSENT_EVENT,s)},[e,n,r,c,d]),null}])},53682,e=>{"use strict";var t=e.i(43476),s=e.i(57688),i=e.i(71645),a=e.i(24071),l=e.i(67927);let n=(0,e.i(56420).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var r=e.i(16327);e.s(["default",0,function({images:e,title:o,autoPlayMs:c=4e3,bestSeller:d=!1}){let[m,u]=(0,i.useState)(0),[x,h]=(0,i.useState)(!1),b=e.length,p=(0,i.useRef)(null);if((0,i.useEffect)(()=>
1{if(b<=1||x||c<=0)return;let e=window.setInterval(()=>u(e=>(e+1)%b),c);return()=>window.clearInterval(e)},[b,x,c]),(0,i.useEffect)(()=>{let e=p.current,t=e?.children[m];if(!e||!t)return;let s=e.getBoundingClientRect(),i=t.getBoundingClientRect().top-s.top-(e.clientHeight-t.clientHeight)/2;e.scrollBy({top:i,behavior:"smooth"})},[m]),0===b)return null;let f=e=>u(t=>(t+e+b)%b),g=e=>{let t=p.current;t&&t.scrollBy({top:e*t.clientHeight*.8,behavior:"smooth"})},v=b>1;return(0,t.jsxs)("div",{className:`relative ${v?"pl-[4.75rem] sm:pl-24":""}`,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[v&&(0,t.jsxs)("div",{className:"absolute top-0 bottom-5 left-0 w-16 sm:w-20 flex flex-col gap-2",children:[b>4&&(0,t.jsx)("button",{onClick:()=>g(-1),"aria-label":"Miniatures précédentes",className:"shrink-0 grid place-items-center h-7 rounded-lg bg-card text-black ring-1 ring-border hover:bg-bien-cream transition",children:(0,t.jsx)(n,{className:"h-4 w-4"})}),(0,t.jsx)("div",{ref:p,className:"flex-1 min-h-0 flex flex-col gap-2 overflow-y-auto scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.map((e,i)=>(0,t.jsx)("button",{onClick:()=>u(i),"aria-label":`Voir l'image ${i+1}`,className:`relative shrink-0 aspect-square rounded-xl overflow-hidden bg-bien-cream ring-2 transition ${i===m?"ring-bien-gold":"ring-border hover:ring-bien-leaf/50"}`,children:(0,t.jsx)(s.default,{src:e.url,alt:e.altText??o,fill:!0,sizes:"80px",className:"object-cover"})},e.url+i))}),b>4&&(0,t.jsx)("button",{onClick:()=>g(1),"aria-label":"Miniatures suivantes",className:"shrink-0 grid place-items-center h-7 rounded-lg bg-card text-black ring-1 ring-border hover:bg-bien-cream transition",children:(0,t.jsx)(r.ChevronDown,{className:"h-4 w-4"})})]}),(0,t.jsxs)("div",{className:"group relative aspect-square rounded-3xl overflow-hidden bg-bien-cream ring-1 ring-border",children:[d&&0===m&&(0,t.jsx)("span",{className:"pointer-events-none absolute top-5 -right-11 z-20 rotate-45 bg-bien-gold text-black text-[11px] font-bold uppercase tracking-wider px-12 py-1 bien-shadow-sm",children:"Best seller"}),e.map((e,i)=>(0,t.jsx)(s.default,{src:e.url,alt:e.altText??o,fill:!0,fetchPriority:0===i?"high":"auto",loading:0===i?"eager":"lazy",sizes:"(max-width:1024px) 100vw, 45vw",className:`object-cover transition-opacity duration-500 ${i===m?"opacity-100":"opacity-0"}`},e.url+i)),b>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>f(-1),"aria-label":"Image précédente",className:"absolute left-3 top-1/2 -translate-y-1/2 grid place-items-center h-10 w-10 rounded-full bg-card/85 text-black ring-1 ring-border bien-shadow lg:opacity-0 lg:group-hover:opacity-100 hover:bg-bien-gold transition",children:(0,t.jsx)(a.ChevronLeft,{className:"h-5 w-5"})}),(0,t.jsx)("button",{onClick:()=>f(1),"aria-label":"Image suivante",className:"absolute right-3 top-1/2 -translate-y-1/2 grid place-items-center h-10 w-10 rounded-full bg-card/85 text-black ring-1 ring-border bien-shadow lg:opacity-0 lg:group-hover:opacity-100 hover:bg-bien-gold transition",children:(0,t.jsx)(l.ChevronRight,{className:"h-5 w-5"})})]})]}),b>1&&(0,t.jsx)("div",{className:"mt-3 flex justify-center gap-1.5",children:e.map((e,s)=>(0,t.jsx)("button",{onClick:()=>u(s),"aria-label":`Voir l'image ${s+1}`,className:`h-2 rounded-full transition-all ${s===m?"w-5 bg-bien-forest":"w-2 bg-bien-forest/30 hover:bg-bien-forest/60"}`},s))})]})}],53682)},22989,e=>{"use strict";var t=e.i(43476),s=e.i(71645),i=e.i(63448),a=e.i(99159),l=e.i(47793);e.s(["default",0,function({title:e,price:n,available:r,item:o,lang:c,ctaLabel:d="Ajouter au panier",anchorId:m="reviews-start",cure:u=!0}){let x,[h,b]=(0,s.useState)(!1),[p,f]=(0,s.useState)(1);return(0,s.useEffect)(()=>{let e=e=>{let t=e.detail;t&&t.handle===o.handle&&f(t.qty)};return window.addEventListener(l.CURE_EVENT,e),()=>window.removeEventListener(l.CURE_EVENT,e)},[o.handle]),(0,s.useEffect)(()=>{let e=()=>{let e=document.getElementById(m);e?b(e.getBoundingClientRect().top<=window.innerHeight):b(!1)};return e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[m]),(0,t.jsx)("div",{className:`fixed bottom-0 inset-x-0 z-50 transition-transform duration-300 ${h?"translate-y-0":"translate-y-full"}`,"aria-hidden":!h,children:(0,t.jsx)("div",{className:"bg-bien-forest text-bien-cream border-t border-bien-cream/10 bien-shadow",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[1600px] px-4 sm:px-6 lg:px-12 xl:px-16 py-3 flex items-center justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"font-display text-bien-cream leading-tight truncate",children:e}),(0,t.jsxs)("p",{className:"text-sm text-bien-cream/70",children:[p>1&&(0,t.jsxs)("span",{className:"font-semibold text-bien-cream",children:[u?`${p} ${"en"===c?"months":"mois"}`:`\xd7${p}`," ·"," "]}),p>1?(x=(0,l.lineTotal)(o.price,p),new Intl.NumberFormat("en"===c?"en-IE":"fr-FR",{style:"currency",currency:o.currency||"EUR"}).format(x)):n]})]}
1),r?(0,t.jsxs)(a.default,{item:o,lang:c,quantity:p,className:"shrink-0 inline-flex items-center justify-center gap-2 rounded-full bg-bien-gold text-bien-forest px-6 sm:px-9 py-3 font-bold hover:brightness-105 transition bien-shadow-sm",children:[(0,t.jsx)(i.ShoppingBag,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:d})]}):(0,t.jsxs)("button",{type:"button",disabled:!0,className:"shrink-0 inline-flex items-center justify-center gap-2 rounded-full bg-bien-gold text-bien-forest px-6 sm:px-9 py-3 font-bold opacity-50 cursor-not-allowed",children:[(0,t.jsx)(i.ShoppingBag,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"en"===c?"Back soon":"Bientôt de retour"}),(0,t.jsx)("span",{className:"sm:hidden",children:"en"===c?"Soon":"Bientôt"})]})]})})})}])},54513,e=>{"use strict";var t=e.i(43476),s=e.i(71645),i=e.i(21357);e.s(["default",0,function({src:e,at:a,playLabel:l,className:n=""}){let r=(0,s.useRef)(null),[o,c]=(0,s.useState)(!1);return(0,t.jsxs)("div",{className:`relative overflow-hidden rounded-2xl bg-bien-cream ring-1 ring-border ${n}`,children:[(0,t.jsx)("video",{ref:r,src:`${e}#t=${a}`,playsInline:!0,preload:"metadata",controls:o,className:"absolute inset-0 h-full w-full object-cover"}),!o&&(0,t.jsx)("button",{type:"button",onClick:function(){let e=r.current;e&&(c(!0),e.currentTime=0,e.muted=!1,e.webkitEnterFullscreen?e.webkitEnterFullscreen():e.requestFullscreen?.().catch(()=>{}),e.play())},"aria-label":l,className:"group absolute inset-0 grid place-items-center",children:(0,t.jsx)("span",{className:"grid place-items-center h-11 w-11 rounded-full bg-white/90 text-black bien-shadow transition group-hover:bg-white group-hover:scale-105",children:(0,t.jsx)(i.Play,{className:"h-5 w-5 translate-x-px fill-current"})})})]})}])},50741,e=>{"use strict";var t=e.i(43476),s=e.i(71645),i=e.i(24071),a=e.i(67927);e.s(["default",0,function({children:e,prevLabel:l,nextLabel:n,className:r=""}){let o=(0,s.useRef)(null),[c,d]=(0,s.useState)(0),[m,u]=(0,s.useState)(1),x=(0,s.useCallback)(()=>{let e=o.current;e&&0!==e.clientWidth&&(u(Math.max(1,Math.round(e.scrollWidth/e.clientWidth))),d(Math.round(e.scrollLeft/e.clientWidth)))},[]);(0,s.useEffect)(()=>{x();let e=o.current;if(!e)return;let t=new ResizeObserver(x);return t.observe(e),()=>t.disconnect()},[x]);let h=(0,s.useCallback)(e=>{let t=o.current;if(!t)return;let s=(c+e+m)%m;t.scrollTo({left:s*t.clientWidth,behavior:"smooth"})},[c,m]);(0,s.useEffect)(()=>{if(m<2||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=setTimeout(()=>h(1),4e3);return()=>clearTimeout(e)},[h,c,m]);let b="sm:hidden shrink-0 grid place-items-center h-8 w-8 rounded-full bg-card text-black/70 ring-1 ring-border bien-shadow-sm hover:ring-bien-gold/60 transition";return(0,t.jsxs)("div",{className:`flex items-center gap-2 sm:block ${r}`,children:[(0,t.jsx)("button",{type:"button",onClick:()=>h(-1),"aria-label":l,className:b,children:(0,t.jsx)(i.ChevronLeft,{className:"h-4 w-4"})}),(0,t.jsx)("div",{ref:o,onScroll:x,className:"flex-1 min-w-0 flex overflow-x-auto snap-x snap-mandatory scroll-smooth [scrollbar-width:none] [&::-webkit-scrollbar]:hidden sm:grid sm:grid-cols-3 sm:gap-3 sm:overflow-visible",children:e}),(0,t.jsx)("button",{type:"button",onClick:()=>h(1),"aria-label":n,className:b,children:(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4"})})]})}])},36213,e=>{"use strict";var t=e.i(43476),s=e.i(71645),i=e.i(86563),a=e.i(63676),l=e.i(89664),n=e.i(11241),r=e.i(21357);let o={fr:{ratingLabels:["","Je déteste","Bof","Correct","J'aime bien","J'adore !"],writeReview:"Ãcrire un avis",close:"Fermer",thanksTitle:"Merci pour votre avis !",thanksText:"Votre avis a bien été reçu. Il sera publié après validation par notre équipe.",step1Title:"Comment décririez-vous cet article ?",hate:"Je déteste",love:"J'adore !",step2Title:"Montrez-Le",step2Sub:"Nous serions ravis de le voir !",offer15:"Obtenez 15% offerts sur votre prochain achat",photoAdded:"Photo ajoutée â",addPhotos:"Ajouter des photos",offer20:"Obtenez 20% offerts sur votre prochain achat",videoAdded:"Vidéo ajoutée â",addVideo:"Ajouter une vidéo",step3Title:"Nous en dire plus !",textPlaceholder:"Partagez votre expérience avec ce produitâ¦",step4Title:"à propos de vous",firstName:"Prénom",lastName:"Nom de famille",email:"Email",consent:"Par la présente, j'accepte les Conditions générales d'utilisation et la Politique de Confidentialité ainsi que l'affichage et le partage en ligne de mon avis.",back:"Retour",next:"Suivant",skip:"Passer",sending:"Envoiâ¦",submit:"C'est fait",star:e=>`${e} \xe9toile${e>1?"s":""}`},en:{ratingLabels:["","I hate it","Meh","It's okay","I like it","I love it!"],writeReview:"Write a review",close:"Close",thanksTitle:"Thank y
1ou for your review!",thanksText:"Your review has been received. It will be published once approved by our team.",step1Title:"How would you describe this item?",hate:"I hate it",love:"I love it!",step2Title:"Show it off",step2Sub:"We'd love to see it!",offer15:"Get 15% off your next purchase",photoAdded:"Photo added â",addPhotos:"Add photos",offer20:"Get 20% off your next purchase",videoAdded:"Video added â",addVideo:"Add a video",step3Title:"Tell us more!",textPlaceholder:"Share your experience with this productâ¦",step4Title:"about you",firstName:"First name",lastName:"Last name",email:"Email",consent:"I hereby accept the Terms of Use and the Privacy Policy, as well as the online display and sharing of my review.",back:"Back",next:"Next",skip:"Skip",sending:"Sendingâ¦",submit:"Done",star:e=>`${e} star${e>1?"s":""}`}};function c({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:e,fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"3"}),(0,t.jsx)("circle",{cx:"9",cy:"9",r:"2"}),(0,t.jsx)("path",{d:"m21 15-4.5-4.5L5 22"})]})}e.s(["default",0,function({productHandle:e,productTitle:d,lang:m="fr"}
1){let u=o["en"===m?"en":"fr"],[x,h]=(0,s.useState)(!1),[b,p]=(0,s.useState)(0),[f,g]=(0,s.useState)(0),[v,j]=(0,s.useState)(0),[w,N]=(0,s.useState)(""),[k,y]=(0,s.useState)(""),[C,E]=(0,s.useState)(""),[T,S]=(0,s.useState)(""),[$,I]=(0,s.useState)(null),[L,P]=(0,s.useState)(null),[R,A]=(0,s.useState)("idle"),_=(0,s.useRef)(null),U=(0,s.useRef)(null);function V(){p(0),g(0),j(0),N(""),y(""),E(""),S(""),I(null),P(null),A("idle")}function z(){h(!1),window.setTimeout(V,220)}async function q(){if("sending"===R||0===f||!k.trim()||!T.trim())return;A("sending");let t=new FormData;t.append("productHandle",e),t.append("productTitle",d),t.append("rating",String(f)),t.append("name",`${k.trim()} ${C.trim()}`.trim()),t.append("email",T),t.append("text",w),$&&t.append("photo",$),L&&t.append("video",L);try{await fetch("/api/reviews",{method:"POST",body:t})}catch{}A("done")}let F=v||f;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>h(!0),className:"inline-flex items-center gap-2 rounded-full ring-1 ring-bien-forest/25 text-black px-5 py-2.5 text-sm font-semibold hover:bg-bien-forest hover:text-bien-cream transition-colors",children:u.writeReview}),x&&(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 sm:p-6",role:"dialog","aria-modal":"true","aria-label":u.writeReview,children:[(0,t.jsx)("button",{"aria-label":u.close,onClick:z,className:"absolute inset-0 bg-bien-forest/45 backdrop-blur-sm"}),(0,t.jsxs)("div",{className:"relative w-full max-w-xl rounded-[1.75rem] bg-white ring-1 ring-border bien-shadow flex flex-col min-h-[30rem] max-h-[92vh] animate-[bien-fade-up_0.3s_ease] overflow-hidden",children:[(0,t.jsx)("button",{onClick:z,"aria-label":u.close,className:"absolute top-4 left-4 grid place-items-center h-8 w-8 rounded-full text-black/70 hover:bg-bien-cream transition-colors z-10",children:(0,t.jsx)(a.X,{className:"h-5 w-5"})}),"done"===R?(0,t.jsx)("div",{className:"flex-1 grid place-items-center text-center px-8 py-12",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"mx-auto grid place-items-center h-16 w-16 rounded-full bg-bien-leaf text-bien-cream",children:(0,t.jsx)(l.Check,{className:"h-8 w-8"})}),(0,t.jsx)("h2",{className:"mt-5 font-display tracking-tight text-2xl text-black",children:u.thanksTitle}),(0,t.jsx)("p",{className:"mt-2 text-sm text-black/65 leading-relaxed max-w-xs mx-auto",children:u.thanksText}),(0,t.jsx)("button",{onClick:z,className:"mt-7 inline-flex items-center gap-2 rounded-full bg-bien-forest text-bien-cream px-7 py-3 text-sm font-semibold hover:bg-bien-leaf transition-colors",children:u.close})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto px-6 sm:px-10 pt-16 pb-6 flex flex-col justify-center",children:[0===b&&(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h2",{className:"font-display tracking-tight text-2xl sm:text-3xl text-black",children:u.step1Title}),(0,t.jsx)("div",{className:"mt-8 flex items-center justify-center gap-3 sm:gap-4",onMouseLeave:()=>j(0),children:[1,2,3,4,5].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{g(e),window.setTimeout(()=>p(1),150)},onMouseEnter:()=>j(e),"aria-label":u.star(e),children:(0,t.jsx)(i.Star,{className:`h-11 w-11 sm:h-12 sm:w-12 transition-colors ${e<=F?"fill-bien-star text-bien-star":"fill-transparent text-black/25"}`})},e))}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between px-1 text-sm",children:[(0,t.jsx)("span",{className:"text-black/55",children:u.hate}),(0,t.jsx)("span",{className:"font-semibold text-black",children:F?u.ratingLabels[F]:""}),(0,t.jsx)("span",{className:"text-black/55",children:u.love})]})]}),1===b&&(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h2",{className:"font-display tracking-tight text-2xl sm:text-3xl text-black",children:u.step2Title}),(0,t.jsx)("p",{className:"mt-1.5 text-black/60",children:u.step2Sub}),(0,t.jsxs)("div",{className:"mt-7 rounded-2xl ring-1 ring-border p-4",children:[(0,t.jsx)("p",{className:"font-display text-lg text-black",children:u.offer15}),(0,t.jsxs)("button",{type:"button",onClick:()=>_.current?.click(),className:"mt-3 w-full inline-flex items-center justify-center gap-2 rounded-xl bg-bien-forest text-bien-cream px-5 py-3.5 text-sm font-semibold hover:bg-bien-leaf transition-colors",children:[(0,t.jsx)(c,{className:"h-5 w-5"})," ",$?u.photoAdded:u.addPhotos]}),(0,t.jsx)("input",{ref:_,type:"file",accept:"image/*",className:"hidden",onChange:e=>I(e.target.files?.[0]??null)})]}),(0,t.jsxs)("div",{className:"mt-4 rounded-2xl ring-1 ring-border p-4",children:[(0,t.jsx)("p",{className:"font-display text-lg text-black",children:u.offer20}),(0,t.jsxs)("button",{type:"button",onClick:()=>U.current?.click(),className:"mt-3 w-full inline-flex items-center justify-center gap-2 rounded-xl bg-bien-forest text-bien-cream px-5 py-3.5 text-sm font-semibold hover:bg-bien-leaf transition-colors",children:[(0,t.jsx)(r.Play,{className:"h-5 w-5"})," ",L?u.videoAdded:u.addVideo]}),(0,t.jsx)("input",{ref:U,type:"file",accept:"video/*",className:"hidden",onChange:e=>P(e.target.files?.[0]??null)})]})]}),2===b&&(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h2",{className:"font-display tracking-tight text-2xl sm:text-3xl text-black",children:u.step3Title}),(0,t.jsx)("textarea",{value:w,onChange:e=>N(e.target.value),rows:6,autoFocus:!0,placeholder:u.textPlaceholder,className:"mt-6 w-full rounded-2xl bg-white ring-1 ring-border px-4 py-3.5 text-[15px] text-black placeholder:text-black/40 focu
1s:outline-none focus:ring-2 focus:ring-bien-gold transition resize-none text-left"})]}),3===b&&(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h2",{className:"font-display tracking-tight text-2xl sm:text-3xl text-black",children:u.step4Title}),(0,t.jsxs)("div",{className:"mt-7 grid sm:grid-cols-2 gap-4 text-left",children:[(0,t.jsxs)("label",{className:"block",children:[(0,t.jsxs)("span",{className:"text-sm font-semibold text-black",children:[u.firstName," ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{required:!0,value:k,onChange:e=>y(e.target.value),className:"mt-1.5 w-full rounded-xl bg-white ring-1 ring-border px-4 py-2.5 text-sm text-black focus:outline-none focus:ring-2 focus:ring-bien-gold transition"})]}),(0,t.jsxs)("label",{className:"block",children:[(0,t.jsxs)("span",{className:"text-sm font-semibold text-black",children:[u.lastName," ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{value:C,onChange:e=>E(e.target.value),className:"mt-1.5 w-full rounded-xl bg-white ring-1 ring-border px-4 py-2.5 text-sm text-black focus:outline-none focus:ring-2 focus:ring-bien-gold transition"})]})]}),(0,t.jsxs)("label",{className:"block text-left mt-4",children:[(0,t.jsxs)("span",{className:"text-sm font-semibold text-black",children:[u.email," ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{required:!0,type:"email",autoComplete:"email",value:T,onChange:e=>S(e.target.value),className:"mt-1.5 w-full rounded-xl bg-white ring-1 ring-border px-4 py-2.5 text-sm text-black focus:outline-none focus:ring-2 focus:ring-bien-gold transition"})]}),(0,t.jsx)("p",{className:"mt-5 text-xs text-black/55 leading-relaxed",children:u.consent})]})]}),b>0&&(0,t.jsxs)("div",{className:"border-t border-border px-6 sm:px-8 py-4 flex items-center gap-4",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>p(e=>e-1),className:"inline-flex items-center gap-1.5 text-sm font-semibold text-black hover:text-bien-leaf transition-colors",children:[(0,t.jsx)(n.ArrowLeft,{className:"h-4 w-4"})," ",u.back]}),(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center gap-1.5",children:Array.from({length:4}).map((e,s)=>(0,t.jsx)("span",{className:`h-1.5 w-10 rounded-full transition-colors ${s<=b?"bg-black":"bg-black/15"}`},s))}),1===b&&(0,t.jsx)("button",{type:"button",onClick:()=>p(2),className:"text-sm font-semibold text-black hover:text-bien-leaf transition-colors",children:$||L?u.next:u.skip}),2===b&&(0,t.jsx)("button",{type:"button",onClick:()=>p(3),disabled:!w.trim(),className:"rounded-full bg-black text-white px-6 py-2.5 text-sm font-semibold hover:bg-bien-forest transition-colors disabled:opacity-40",children:u.next}),3===b&&(0,t.jsx)("button",{type:"button",onClick:q,disabled:!k.trim()||!T.trim()||"sending"===R,className:"rounded-full bg-black text-white px-6 py-2.5 text-sm font-semibold hover:bg-bien-forest transition-colors disabled:opacity-40",children:"sending"===R?u.sending:u.submit})]})]})]})]})]})}])},48020,e=>{"use strict";var t=e.i(43476),s=e.i(71645),i=e.i(86563),a=e.i(89664),l=e.i(16327),n=e.i(63676);function r({className:e="h-3.5 w-3.5"}){return(0,t.jsx)("span",{className:"inline-flex text-bien-star",children:[0,1,2,3,4].map(s=>(0,t.jsx)(i.Star,{className:`${e} fill-bien-star`},s))})}function o({r:e,verifiedLabel:s}){return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"font-display text-black",children:e.name}),e.verified&&(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] font-semibold text-bien-leaf shrink-0",children:[(0,t.jsx)(a.Check,{className:"h-3.5 w-3.5"})," ",s]})]})}e.s(["default",0,function({reviews:e,lang:a="fr"}){let[c,d]=(0,s.useState)(!1),[m,u]=(0,s.useState)(null),x="en"===a,h=x?{verified:"Verified",withPhoto:"Review with photo",seeLess:"See less",seeAll:e=>`See all ${e} reviews`,close:"Close",reviewOf:e=>`Review by ${e}`,photoOf:e=>`Photo from ${e}'s review`}:{verified:"Vérifié",withPhoto:"Avis avec photo",seeLess:"Voir moins",seeAll:e=>`Voir les ${e} avis`,close:"Fermer",reviewOf:e=>`Avis de ${e}`,photoOf:e=>`Photo de l'avis de ${e}`},b=e=>x&&e.textEn?e.textEn:e.text,p=e.filter(e=>e.photo),f=e.filter(e=>!e.photo),g=c?f:f.slice(0,6),v=f.length>6;return(0,t.jsxs)("div",{children:[p.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>u(e),className:"group text-left mb-6 w-full lg:max-w-[42rem] grid grid-cols-[1fr_9rem] sm:grid-cols-[1fr_12rem] overflow-hidden bg-card rounded-3xl r
1ing-1 ring-border bien-shadow-sm hover:bien-shadow transition-all",children:[(0,t.jsxs)("div",{className:"p-6 sm:p-7 flex flex-col",children:[(0,t.jsx)(o,{r:e,verifiedLabel:h.verified}),(0,t.jsxs)("div",{className:"mt-1.5 flex items-center gap-2",children:[(0,t.jsx)(r,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-xs text-black/45",children:e.date})]}),(0,t.jsx)("p",{className:"mt-3 text-sm sm:text-[15px] text-black/80 leading-relaxed whitespace-pre-line",children:b(e)}),(0,t.jsxs)("span",{className:"mt-4 inline-flex items-center gap-1.5 text-xs font-semibold text-bien-leaf",children:[(0,t.jsx)(i.Star,{className:"h-3.5 w-3.5 fill-bien-leaf"})," ",h.withPhoto]})]}),(0,t.jsx)("div",{className:"relative overflow-hidden",children:(0,t.jsx)("img",{src:e.photo,alt:h.photoOf(e.name),loading:"lazy",className:"absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"})})]},e.name+e.date)),(0,t.jsx)("div",{className:"columns-1 sm:columns-2 lg:columns-3 gap-5 sm:gap-6",children:g.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>u(e),className:"w-full text-left mb-5 sm:mb-6 break-inside-avoid bg-card rounded-2xl ring-1 ring-border bien-shadow-sm p-5 hover:ring-bien-leaf/50 hover:bien-shadow transition-all cursor-pointer",children:[(0,t.jsx)(o,{r:e,verifiedLabel:h.verified}),(0,t.jsxs)("div",{className:"mt-1.5 flex items-center gap-2",children:[(0,t.jsx)(r,{}),(0,t.jsx)("span",{className:"text-xs text-black/45",children:e.date})]}),(0,t.jsx)("p",{className:"mt-3 text-sm text-black/80 leading-relaxed whitespace-pre-line line-clamp-5",children:b(e)})]},e.name+e.date))}),v&&(0,t.jsx)("div",{className:"mt-4 flex justify-center",children:(0,t.jsxs)("button",{onClick:()=>d(e=>!e),className:"inline-flex items-center gap-2 rounded-full bg-bien-forest text-bien-cream px-7 py-3.5 text-sm font-semibold hover:bg-bien-leaf transition-colors",children:[c?h.seeLess:h.seeAll(e.length),(0,t.jsx)(l.ChevronDown,{className:`h-4 w-4 transition-transform ${c?"rotate-180":""}`})]})}),m&&(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 sm:p-6",role:"dialog","aria-modal":"true","aria-label":h.reviewOf(m.name),children:[(0,t.jsx)("button",{"aria-label":h.close,onClick:()=>u(null),className:"absolute inset-0 bg-bien-forest/50 backdrop-blur-sm"}),(0,t.jsxs)("div",{className:`relative bg-white rounded-[1.5rem] ring-1 ring-border bien-shadow overflow-hidden animate-[bien-fade-up_0.3s_ease] max-h-[92vh] w-full ${m.photo?"max-w-3xl grid sm:grid-cols-2":"max-w-lg"}`,children:[(0,t.jsx)("button",{onClick:()=>u(null),"aria-label":h.close,className:"absolute top-3 right-3 z-10 grid place-items-center h-9 w-9 rounded-full bg-white/90 text-black ring-1 ring-border hover:bg-bien-cream transition-colors",children:(0,t.jsx)(n.X,{className:"h-5 w-5"})}),m.photo&&(0,t.jsx)("img",{src:m.photo,alt:h.photoOf(m.name),className:"w-full h-56 sm:h-full object-cover"}),(0,t.jsxs)("div",{className:"p-6 sm:p-8 overflow-y-auto",children:[(0,t.jsx)(o,{r:m,verifiedLabel:h.verified}),(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,t.jsx)(r,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"text-xs text-black/45",children:m.date})]}),(0,t.jsx)("p",{className:"mt-4 text-[15px] text-black/85 leading-relaxed whitespace-pre-line",children:b(m)})]})]})]})]})}])},27198,e=>{"use strict";var t=e.i(43476),s=e.i(71645);function i({productId:e}){return(0,s.useEffect)(()=>{let e=document.querySelector("script[data-loox-loader]");e?(window.LOOX?.renderReviews?.(),window.LOOX?.init?.()):((e=document.createElement("script")).src="https://loox.io/widget/I2aPPJvqTz/loox.js",e.defer=!0,e.setAttribute("data-loox-loader","1"),document.body.appendChild(e))},[e]),(0,t.jsx)("div",{id:"looxReviews","data-product-id":e,"data-write-btn":"true","data-header":"true","data-paging":"true"})}e.s(["default",0,function({productId:e,children:a}){let[l,n]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=window.location.hostname;("1"===new URLSearchParams(window.location.search).get("loox")||"bien.health"===e||e.endsWith(".bien.health"))&&n(!0)},[]),(0,t.jsx)("div",{id:"reviews-start",className:"scroll-mt-24",children:l?(0,t.jsx)("section",{className:"mt-16 sm:mt-24 border-t border-border pt-12 sm:pt-16",children:(0,t.jsx)(i,{productId:e})}):a})}],27198)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.