PageSourceSearch

https://www.kazidomi.com/_next/static/js/6337.b14b2f8c.js

js kazidomi.com collected 2026-10-03 19:18:19 UTC 91,054 bytes, 35 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6337],{368:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155);s(12115);var l=s(74903),i=s(61665),n=s(65739),r=s(37206),d=s(78512),c=s(48407);let o=(0,r.default)(()=>Promise.resolve().then(s.bind(s,3890)),{loadableGenerated:{webpack:()=>[3890]},ssr:!1}),m=({data:e})=>{let{title:t,standardPrice:s,memberPrice:r,savings:m}=e||{},x=(0,i.useTranslations)("product.membership-price.modal"),[h,u]=(0,l.eY)(),{handleUpdateMembership:p}=(0,c.Ez)();if(!m||m<=0||!r||!s)return null;let g=Math.ceil(4.9/m),b=["h-8","h-10","h-12","h-14","h-16"],f=["opacity-10","opacity-25","opacity-50","opacity-75","opacity-100"],j=Math.max(1,g-2),y=Array.from({length:5},(e,t)=>j+t),v=async()=>{await p(!0)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{title:x("button-title"),onClick:u,className:"z-1 w-5 h-5 rounded-full border-2 border-charcoal transition duration-200 flex-center hover:scale-[1.2]",type:"button",children:(0,a.jsx)("span",{className:"text-body-12 leading-none font-medium",children:"?"})}),h?(0,a.jsxs)(o,{parentClasses:"sm:!p-0 sm:!items-end min-sm:my-8",classes:"!p-0 !max-w-[560px] flex flex-col max-h-[80%] min-sm:max-h-[calc(100svh-32px)] sm:!rounded-b-none",isOpen:h,setIsOpen:u,children:[(0,a.jsxs)("div",{className:"shrink-0 p-4 pt-8 min-sm:p-8 pb-4 bg-sant1 text-white",children:[(0,a.jsx)("span",{className:"block font-faro text-heading-24 min-sm:text-heading-30 pr-5 mb-4",children:x("header-title")}),(0,a.jsx)("span",{className:"block text-body-15 font-light",children:x("header-subtitle")})]}),(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto p-4 !pb-0 min-sm:p-8",children:[(0,a.jsx)("div",{className:"mb-4 pb-4 border-b border-sant4",children:(0,a.jsxs)("div",{className:"bg-sant5 border border-sant4 rounded-xl p-4 justify-between flex items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-body-12",children:x("product-label")}),(0,a.jsxs)("div",{className:"flex gap-2 items-end",children:[(0,a.jsxs)("span",{className:"block font-faro text-heading-30 leading-none text-sant1",children:[r.toFixed(2)," €"]}),(0,a.jsxs)("span",{className:"block line-through text-body-17 leading-none mb-[2px]",children:[s.toFixed(2)," €"]})]})]}),(0,a.jsxs)("div",{className:"rounded-xl bg-white border border-sant4 py-2 px-4 text-center",children:[(0,a.jsxs)("span",{className:"block text-sant1 font-medium",children:["-",m.toFixed(2)," €"]}),(0,a.jsx)("span",{className:"block text-body-12",children:x("savings-label")})]})]})}),(0,a.jsx)("div",{className:"mb-4 pb-4 border-b border-sant4",children:(0,a.jsxs)("div",{className:"flex gap-4",children:[(0,a.jsx)(d.A,{color:"#33a571",name:"PiggyBank",size:25,strokeWidth:1.5,"aria-hidden":!0,className:"shrink-0 hidden min-sm:block"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-body-15",children:x("avg-savings-title")}),(0,a.jsx)("p",{className:"text-body-15 font-light",children:x("avg-savings-text")})]})]})}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex gap-4 pb-4",children:[(0,a.jsx)(d.A,{color:"#33a571",name:"BadgeEuro",size:25,strokeWidth:1.5,"aria-hidden":!0,className:"shrink-0 hidden min-sm:block"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{className:"text-body-15",children:x("breakeven-title",{breakEven:g,title:t??""})}),(0,a.jsx)("div",{className:"relative mb-4 mt-8",children:(0,a.jsx)("ul",{className:"gap-2 my-2 flex items-end",children:y.map((e,t)=>{let s=e===g,l=b[t],i=e<g?f[Math.min(t,f.length-2)]:"opacity-100";return(0,a.jsxs)("li",{className:"w-1/5",children:[s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex gap-1 py-[2px] px-1 rounded-md w-full bg-sant1 items-center mb-2 sm:justify-center",children:[(0,a.jsx)(d.A,{color:"white",name:"Check",size:15,strokeWidth:3,className:"shrink-0 hidden min-sm:block"}),(0,a.jsx)("span",{className:"text-body-10 text-white font-medium",children:x("breakeven-badge")})]}),(0,a.jsx)("span",{className:"block border border-dashed w-full absolute border-grey-light left-0 right-0"})]}),(0,a.jsx)("div",{className:`block rounded-t-lg bg-sant1 w-full ${l} ${i}`}),(0,a.jsx)("span",{className:"text-center block mt-2 text-body-12",children:e>
11?x("bar-label-plural",{count:e}):x("bar-label-singular",{count:e})})]},e)})})}),(0,a.jsx)("span",{className:"text-body-15 font-light block",children:x("breakeven-text",{savings:m.toFixed(2),breakEven:g})})]})]})})]}),(0,a.jsxs)("div",{className:"flex-center flex-col min-sm:border-t border-grey-light p-4 sm:rounded-t-2xl sm:shadow-[0px_0px_24px_rgba(0,0,0,0.24)] min-sm:p-8",children:[(0,a.jsx)(n.Ay,{onClick:v,size:"2xl",className:"w-full font-medium text-base",variant:"membership",children:x("cta")}),(0,a.jsx)("span",{className:"text-body-12 mt-4",children:x("cta-billing")})]})]}):null]})}},1255:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),l=s(12115),i=s(48178),n=s(47784),r=s(29822),d=s.n(r),c=s(63989),o=s(50003);let m=({data:e})=>{let[t,s]=(0,l.useState)(!1),r=(0,l.useRef)(null),m=(0,c.on)(e=>e.setToastBottomOffset),x=["pb-spacing-10","md:pb-[130px]"],h=(0,i.yY)(e?.images[0]?.thumbnail,"mxw_64"),u=(0,l.useCallback)(d()(()=>{let e=document.querySelector("[data-product-primary-buttons]");if(!e)return;let t=(0,i.Dy)(e);(window.scrollY||document.documentElement.scrollTop)>t&&window.innerWidth>900?(s(!0),document.body.classList.add("sticky-product-bar-visible")):(s(!1),document.body.classList.remove("sticky-product-bar-visible")),window.innerWidth<=900&&document.body.classList.add("sticky-product-bar-visible")},100),[]);return(0,l.useEffect)(()=>(window.addEventListener("scroll",u),()=>{window.removeEventListener("scroll",u),u.cancel()}),[u]),(0,l.useEffect)(()=>(r.current&&m(r.current.offsetHeight),()=>m(0)),[]),(0,l.useEffect)(()=>{let e=document.querySelector("footer.footer-root");e&&e.classList.add(...x)},[]),(0,a.jsx)("div",{ref:r,className:`group sticky-product fixed bottom-0 min-product-page:bottom-[-160px] rounded-t-2xl w-full bg-white border-t border-light z-[5] duration-300 shadow-[0px_0px_24px_rgba(0,0,0,0.24)] ${t?"!bottom-0":""}`,children:(0,a.jsxs)("div",{className:"container overflow-visible px-3 py-4 gap-6 flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"items-center hidden min-lg:flex gap-4",children:[h.length>0&&(0,a.jsx)("div",{className:"rounded-lg bg-grey-taupe flex-center p-2 w-[60px] h-[60px] shrink-0",children:(0,a.jsx)("img",{width:64,height:64,className:"object-contain w-full h-full",src:h,alt:e?.title,loading:"lazy"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"sticky-product__infos-top",children:e.brand&&e.brand.link&&(0,a.jsx)(o.default,{href:e.brand.link,className:"text-body-13 font-medium underline sticky-product__brand",title:`Tous les produits ${e.brand.title}`,children:e.brand.title})}),(0,a.jsx)("span",{className:"text-body-21 font-faro leading-tight line-clamp-2 max-w-[560px]",children:e.title})]})]}),(0,a.jsx)(n.default,{sticky:!0,productData:e})]})})}},2304:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),l=s(12115),i=s(98500),n=s.n(i),r=s(61665),d=s(64309);let c=({label:e,alternatives:t,product:s})=>{let[i,c]=(0,l.useState)(t[0]),o=(0,r.useTranslations)();return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-spacing-1",children:(0,a.jsxs)("div",{className:"text-cta-regular text-charcoal line-clamp-1",children:[(0,a.jsx)("span",{className:"font-light",children:o(`product.variant.${e}`)}),": ",(0,a.jsxs)("span",{className:"sm:hidden",children:[" ",i.title]})]})}),(0,a.jsx)("ul",{className:"gap-2 flex-wrap flex-row hidden min-sm:flex",children:t.map((e,l)=>(0,a.jsx)("li",{children:(0,a.jsx)(n(),{href:e.link,title:e.title,onMouseEnter:()=>c(t[l]),onMouseLeave:()=>c(t[0]),className:`p-spacing-1 rounded border border-transparent hover:!border-charcoal transition duration-300 flex-center ${s.id===e.id?"!border-charcoal pointer-events-none":""}`,children:(0,a.jsx)("img",{src:e.images?.[0]?.thumbnail,alt:e.title,width:60,height:60,loading:"lazy",className:"object-contain w-[60px] h-[60px]"})})},e.title))}),(0,a.jsx)(d.xD,{alternatives:t})]})}},4299:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(95155);s(12115);var l=s(61665);let i=({standardPrice:e,wholesalerPrice:t})=>{let s=(0,l.useTranslations)();return(0,a.jsx)("div",{className:"product-prices",children:(0,a.jsxs)("div",{className:"product-prices__wholesaler",children:[(0,a.jsx)("span",{className:"wholesale-price-tag py-spacing-05",children:s("product.price.label.your_price_employee")}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:"product-prices__price",children:[t.toFixed(2)," €"]})," "," ",(0,a.jsxs)("span",{className:"product-prices__normal-price",children:[e.toFixed(2)," €"]})," "," ",(0,a.jsx)("span",{className:"text-body-15 font-medium",children:`-${(e-t).toFixed(2)} €`})]})]})})}},4531:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(95155);s(12115);var l=s(73321);let i=({icon:e,text:t,url:s})=>{let i=s?"button":"div",n=(0,l.useRouter)();return(0,a.jsxs)(i,{...s&&{onClick:()=>{n.push(s)}},className:`flex gap-2 items-center border border-grey-light rounded-lg pr-[11px] py-[3px] pl-[3px] ${"button"===i&&"hover:border-charcoal"}
1`,children:[e?(0,a.jsx)("img",{src:e,alt:t+" icon",width:34,height:34,loading:"lazy"}):null,(0,a.jsx)("span",{className:"text-body-15",children:t})]})}},4868:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155);s(12115);var l=s(61665),i=s(74903),n=s(65739),r=s(72733),d=s(37206),c=s(48178);let o=(0,d.default)(()=>Promise.resolve().then(s.bind(s,3890)),{loadableGenerated:{webpack:()=>[3890]},ssr:!1}),m=()=>{let e=(0,l.useTranslations)(),t=(0,l.useLocale)(),[s,d,m]=(0,i.eY)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"product-criteria-link min-product-page:!-bottom-spacing-6",title:e("product.selection_criteria"),onClick:d,children:[(0,a.jsx)("picture",{className:"product-criteria-link__img",children:(0,a.jsx)("img",{src:(0,c.yY)("/icons/selection-criteria-icon.svg","mxw_48"),alt:e("product.selection_criteria")+" icon",width:48,height:48})}),e("product.selection_criteria")]}),s?(0,a.jsxs)(o,{isOpen:s,setIsOpen:m,classes:"max-w-[764px] min-sm:p-[60px]",title:e("product-page.selection-criteria.title"),children:[(0,a.jsx)("div",{className:"mb-spacing-2 mx-auto max-w-[560px]",children:(0,a.jsx)("p",{className:"text-body-13 text-center",children:e("product-page.selection-criteria.text")})}),(0,a.jsxs)("ul",{className:"mb-spacing-4 pl-spacing-3",children:[(0,a.jsx)("li",{className:"list-disc font-light text-body-15 mb-spacing-2",children:e.rich("product-page.selection-criteria.list.item1",{important:e=>(0,a.jsx)("strong",{className:"font-medium",children:e})})}),(0,a.jsx)("li",{className:"list-disc font-light text-body-15 mb-spacing-2",children:e.rich("product-page.selection-criteria.list.item2",{important:e=>(0,a.jsx)("strong",{className:"font-medium",children:e})})}),(0,a.jsx)("li",{className:"list-disc font-light text-body-15 mb-spacing-2",children:e.rich("product-page.selection-criteria.list.item3",{important:e=>(0,a.jsx)("strong",{className:"font-medium",children:e})})}),(0,a.jsx)("li",{className:"list-disc font-light text-body-15 mb-spacing-2",children:e.rich("product-page.selection-criteria.list.item4",{important:e=>(0,a.jsx)("strong",{className:"font-medium",children:e})})}),(0,a.jsx)("li",{className:"list-disc font-light text-body-15",children:e.rich("product-page.selection-criteria.list.item5",{important:e=>(0,a.jsx)("strong",{className:"font-medium",children:e})})})]}),(0,a.jsx)("div",{className:"flex-center",children:(0,a.jsx)(n.Ay,{className:"text-center leading-none",link:r.Ay.selection_criteria(t),children:e("product-page.selection-criteria.link")})})]}):null]})}},9460:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155);s(12115);var l=s(61665),i=s(48407),n=s(96337),r=s(11646);let d=({data:e})=>{let t=(0,l.useTranslations)(),{isGiftCard:s}=e,{isMember:d,shippingCountry:c}=(0,i.Jd)(),{getPromoDate:o,isDiscounted:m,isShippable:x}=(0,i.Bj)(e),h=d(),u=c(),p=Object.keys(e.country_prices??{})[0],g=e.country_prices?.BE?"BE":p;if(!g||!e.country_prices?.[g])return null;let b=e.country_prices[g].prices,f=b.promo_or_standard,j=b.promo_or_membership,y=b.promo_or_membership.reduction_amount,v=b.promo_or_standard.reduction_amount;void 0!==e.country_prices[u]&&(f=(b=e.country_prices[u].prices).promo_or_standard,j=b.promo_or_membership,y=b.promo_or_membership.reduction_amount,v=b.promo_or_standard.reduction_amount);let N=h?b.promo_or_membership:b.promo_or_standard,w=f.priceInclude-j.priceInclude,_={title:e?.title,memberPrice:j.priceInclude,standardPrice:f.priceInclude,savings:w};return x?(0,a.jsx)(a.Fragment,{children:s?(0,a.jsxs)("span",{className:"text-heading-24 min-md:text-heading-30 font-faro",children:[f.priceInclude.toFixed(2)," €"]}):(0,a.jsx)(a.Fragment,{children:m()?(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsxs)("div",{className:"flex items-center mb-2 gap-2",children:[(0,a.jsx)(r._X,{large:!0,memberDiscount:y,standardDiscount:v}),(0,a.jsx)("span",{className:"block font-medium text-body-12",children:o(h?"membership":"standard")})]}),(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)("div",{className:"items-center gap-1 flex",children:(0,a.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,a.jsx)("span",{className:"leading-none text-heading-24 min-md:text-heading-30 font-faro",children:`${N.priceInclude.toFixed(2)} €`}),(0,a.jsx)("span",{className:"min-md:text-body-21 text-body-17 line-through",children:h||v?`${b.standard.priceInclude.toFixed(2)} €`:`${b.promo_or_membership.priceInclude.toFixed(2)} €`})]})})})]}):(0,a.jsxs)("div",{className:`flex gap-4 items-center justify-start shrink-0 ${h?"flex-row-reverse":""}`,children:[(0,a.jsxs)("span",{itemProp:"price",className:`block shrink-0 ${h&&j.priceInclude<f.priceInclude?"min-md:text-body-21 text-body-17 line-through":"text-heading-24 min-md:text-heading-30 font-faro"}`,children:[f.priceInclude.toFixed(2)," €"]}),!!b?.membership.reduction_amount&&(0,a.jsx)("div",{className:"bg-sant5 px-4 pb-1 pt-2 roun
1ded-xl flex shrink-0 items-center w-fit",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("span",{className:`block font-faro ${h?"text-heading-24 min-md:text-heading-30":"min-md:text-body-21 text-body-17"}`,children:[j.priceInclude.toFixed(2)," €"]}),(0,a.jsx)("img",{src:"/logo/k-plus-logo-green.svg",className:`h-5 ${h?"w-[30px]":"w-6"}`,width:24,height:20,alt:"kazidomi membership logo"}),b.promo_or_membership.reduction_amount?(0,a.jsxs)("span",{className:"px-2 py-1 font-medium rounded-full leading-none text-body-15 bg-alimentation1",children:["-",b.promo_or_membership.reduction_amount,"%"]}):(0,a.jsxs)("span",{className:"px-2 py-1 font-medium rounded-full leading-none text-body-15 text-white bg-sant1",children:["-",b?.membership.reduction_amount,"%"]}),!h&&(0,a.jsx)(n.hz,{data:_})]}),(0,a.jsx)("span",{className:"text-body-13 leading-none",children:t(h?"product.price.you_save":"product.price.save_with_kplus",{amount:w.toFixed(2)})})]})})]})})}):null}},9585:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),l=s(12115),i=s(48407),n=s(61665),r=s(4299),d=s(49205),c=s(9460),o=s(96337);let m=({productData:e})=>{let{isHideMembershipPrice:t,id:s}=e,{isAllowedToAccessWholesalePrice:m,isMember:x,user:h}=(0,i.Jd)();(0,n.useLocale)();let[u,p]=(0,l.useState)(e),g=x(),b=u.prices;return(0,a.jsxs)("div",{className:"flex flex-col min-sm:flex-row gap-4 grow min-lg:shrink-0 items-start min-sm:items-center min-sm:justify-between justify-end min-lg:justify-end",children:[m()?(0,a.jsx)(r.A,{standardPrice:b.prices.promo_or_standard.priceInclude,wholesalerPrice:b.prices.current_applied_price.priceInclude}):t&&!g?(0,a.jsx)(d.A,{standardPrice:b.prices.promo_or_standard.priceInclude}):(0,a.jsx)(c.default,{data:u}),(0,a.jsx)("div",{className:"w-full min-sm:max-w-[256px] min-breakpoint-1000:max-w-[320px] relative h-12 min-sm:h-[60px] min-w-[200px]",children:(0,a.jsx)(o.Rx,{data:u})})]})}},9776:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(37206).default)(()=>Promise.resolve().then(s.bind(s,20632)),{loadableGenerated:{webpack:()=>[20632]}})},11646:(e,t,s)=>{s.d(t,{_X:()=>r,_8:()=>l.default,lh:()=>d.default,Ay:()=>a.default});var a=s(4531),l=s(15661),i=s(95155);s(12115);var n=s(48407);let r=({memberDiscount:e,standardDiscount:t,large:s=!0})=>{let{isMember:a}=(0,n.Jd)();if(!e&&!t)return;let l=()=>t&&!a()?{discount:t,type:"standard"}:{discount:e,type:"member"},r=function(e){if(e?.discount==null)return"";let t=String(e.discount).trim();if(t.endsWith("%"))return`-${t}`;let s=parseFloat(t);return isNaN(s)?"":`-${s}%`}(l());if(0!==l()&&"-0%"!==r)return(0,i.jsx)("span",{className:`bg-alimentation2 inline-block rounded-full px-2 py-1 leading-none ${s?"font-medium text-body-15":"text-body-13"}`,children:r})};var d=s(55663)},14990:(e,t,s)=>{s.d(t,{FN:()=>a.Carousel,Ay:()=>l.default});var a=s(39814),l=s(93988);s(95155),s(12115),s(48178),s(97366)},15661:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155);s(12115);var l=s(61665),i=s(48407);let n=({badge:e,classes:t="",large:s=!1,discountDate:n=""})=>
1{if(!e)return null;let r=(0,l.useTranslations)(),{isMember:d}=(0,i.Jd)(),c=d()||!(n&&!d()),o=["isdeal","promo"].includes(e.toLowerCase())&&c,m=e;return["anti-waste","archived","back-soon","best_user_product","bestseller","crazy","crazy-price","deal","disabled","favorite","fresh","isdeal","new","new-product","not-available","out-of-stock","recently_bought_product","sales","short-date","short-use-date"].includes(e.toLowerCase())&&(m=r(`product.flags.${e}`)),(0,a.jsxs)("div",{className:`uppercase w-fit flex gap-1 px-2 items-center font-medium leading-none rounded-full ${(()=>{switch(!0){case"bestseller"===e:return"bg-bB1";case"new-product"===e:return"bg-boissons1";case"isdeal"===e:return"bg-alimentation2";case"crazy"===e:return"bg-maison1";case"sales"===e:return"bg-alimentation2";case"anti-waste"===e:return"bg-sant2";case"fresh"===e:return"bg-bB2";case"short-use-date"===e:return"bg-grey-light";default:return"bg-white"}})()} ${t} ${s?"text-body-10 min-xs:text-body-12 tracking-[.8px] py-1":"text-[8px] min-xs:text-body-10 py-1 tracking-[.5px]"}`,children:[(0,a.jsx)("span",{children:m}),o?(0,a.jsx)("img",{src:"/logo/k-plus-logo.svg",className:s?"w-4 h-3":"w-3 h-2",width:s?16:12,height:s?12:8,alt:"kazidomi membership logo"}):null]})}},16613:(e,t,s)=>{s.r(t),s.d(t,{default:()=>x});var a=s(95155),l=s(97810),i=s.n(l),n=s(12115),r=s(48178),d=s(37206),c=s(63640),o=s.n(c);let m=(0,d.default)(()=>s.e(1474).then(s.bind(s,71474)),{loadableGenerated:{webpack:()=>[71474]},ssr:!1}),x=({images:e,productName:t,variant:s})=>{if(0===e.length)return null;let[l,d]=(0,n.useState)(0),[c,x]=(0,n.useState)(null),h=(0,r.yY)(e[l].original,"mxw_828");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o(),{children:e.length>0&&(0,a.jsx)("link",{rel:"preload",as:"image",href:(0,r.yY)(e[0].original,"mxw_408"),imageSrcSet:`
2                          ${(0,r.yY)(e[0].original,"mxw_200")} 200w,
3                          ${(0,r.yY)(e[0].original,"mxw_408")} 408w,
4                          ${(0,r.yY)(e[0].original,"mxw_700")} 700w,
5                          ${(0,r.yY)(e[0].original,"mxw_1000")} 1000w
6                        `,imageSizes:"(max-width: 768px) 80vw, 408px",fetchpriority:"high",crossOrigin:""})}),(0,a.jsxs)("div",{className:"min-lg:flex gap-spacing-4",children:[e.length>1?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex-col gap-spacing-1 min-lg:w-[116px] hidden min-lg:flex",children:[(0,a.jsx)("button",{className:"flex-center h-spacing-4 w-full transition duration-300 hover:bg-grey-taupe lg:hidden",type:"button",onClick:()=>{0===l?d(e.length-1):d(e=>e-1)},children:(0,a.jsx)("img",{src:(0,r.yY)("/icons/arrow-up-dropdown.svg","mxw_13"),alt:"Up",width:13,height:7})}),(0,a.jsx)("ul",{className:"flex gap-spacing-1 min-lg:flex-col justify-center",children:e.map((e,s)=>(0,a.jsx)("li",{children:(0,a.jsxs)("button",{className:`min-lg:rounded flex-center overflow-hidden w-spacing-3 min-lg:w-[116px] h-spacing-4 min-lg:h-[116px] transition duration-300 min-lg:border border-transparent flex-center ${l===s?"!border-charcoal":""}`,type:"button",onClick:()=>d(s),title:`${t} image ${s}`,children:[(0,a.jsx)("img",{width:116,height:116,className:"lg:hidden object-contain w-full h-full",src:(0,r.yY)(e.thumbnail,"mxw_128"),srcSet:`
7                                                        ${(0,r.yY)(e.thumbnail,"mxw_64")} 64w,
8                                                        ${(0,r.yY)(e.thumbnail,"mxw_128")} 128w,
9                                                        ${(0,r.yY)(e.thumbnail,"mxw_256")} 256w
10                                                    `,sizes:"116px",alt:`${t} ${s}`,loading:"lazy"}),(0,a.jsx)("span",{className:`min-lg:hidden w-full w-[12px] h-[1px] transition duration-300 block bg-charcoal ${l===s?"!h-[3px]":""}`})]})},`product-thumbs__img-${s}`))}),(0,a.jsx)("button",{className:"flex-center h-spacing-4 w-full transition duration-300 hover:bg-grey-taupe lg:hidden",type:"button",onClick:()=>{l===e.length-1?d(0):d(e=>e+1)},children:(0,a.jsx)("img",{src:(0,r.yY)("/icons/arrow-down.svg","mxw_13"),alt:"Down",width:13,height:7,loading:"eager"})})]})}):null,(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"h-[217px] min-sm:h-[408px] min-header:h-[600px]",children:[i()(s)?null:(0,a.jsx)("img",{className:"w-full h-full object-contain",loading:"eager",width:408,height:408,src:(0,r.yY)(s.img,"mxw_600"),alt:s.title}),e.map((e,s)=>(0,a.jsx)("div",{className:`${0===s?"bg-grey7 py-spacing-2 min-sm:py-spacing-4 rounded-2xl":""} w-full h-full ${s===l?"":"hidden"}`,children:(0,a.jsx)("img",{loading:0===s?"eager":"lazy",width:408,height:408,fetchPriority:0===s?"high":"auto",src:(0,r.yY)(e.original,"mxw_408"),srcSet:`
11                                        ${(0,r.yY)(e.original,"mxw_200")} 200w,
12                                        ${(0,r.yY)(e.original,"mxw_408")} 408w,
13                                        ${(0,r.yY)(e.original,"mxw_700")} 700w,
14                                        ${(0,r.yY)(e.original,"mxw_1000")} 1000w
15                                    `,sizes:"(max-width: 768px) 80vw, 408px",alt:t,onClick:()=>{c?x(null):x(h)},role:"button",className:"w-full h-full object-contain"})},`product-main-image-${s}`))]}),e.length>1?(0,a.jsx)("ul",{className:"flex gap-spacing-1 min-lg:hidden justify-center",children:e.map((e,s)=>(0,a.jsx)("li",{children:(0,a.jsx)("button",{className:`w-spacing-3 h-spacing-4 transition duration-300 border-transparent flex-center ${l===s?"!border-charcoal":""}`,type:"button",onClick:()=>d(s),title:`${t} image ${s}`,children:(0,a.jsx)("span",{className:`min-lg:hidden w-full w-[12px] h-[1px] transition duration-300 block bg-c
15harcoal ${l===s?"!h-[3px]":""}`})})},`product-thumbs__img-${s}`))}):null]})]}),c?(0,a.jsx)(m,{alt:t,active:c,setActive:x}):null]})}},16869:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),l=s(97810),i=s.n(l),n=s(12115),r=s(61665),d=s(87979),c=s(48407),o=s(48178);let m=({productId:e})=>{let t=(0,r.useTranslations)(),{isProductInList:s,addProduct:l,removeProduct:m,wishlists:x,loading:h}=(0,c.iq)(),u=(0,n.useMemo)(()=>x.sort((e,t)=>t.id-e.id),[x]),p=async t=>{s(t,e)?await m(t,e):await l(t,e)};return h&&i()(x)?(0,a.jsx)("div",{className:"flex-center py-spacing-4 w-full",children:(0,a.jsx)(d.Q0,{})}):(0,a.jsx)("ul",{className:"h-full",children:u.map((l,i)=>(0,a.jsxs)("li",{className:`h-[40px] border-grey6 border-b px-spacing-2 w-full flex items-center 
16            justify-between hover:cursor-pointer ${s(l.id,e)&&"bg-tint-24"}`,onClick:()=>p(l.id),children:[(0,a.jsx)("span",{className:"text-body-13 truncate",children:l.name}),s(l.id,e)?(0,a.jsx)("span",{className:"flex-center w-[30px] h-[30px]",children:(0,a.jsx)("img",{src:(0,o.yY)("/icons/checkmark-icon.svg","mxw_18"),alt:t("wishlist.already_in_wishlist"),width:18,height:13,loading:"lazy"})}):(0,a.jsx)("span",{className:"flex-center w-spacing-3 h-spacing-3 rounded-full mr-[3px] hover:bg-generic2",children:(0,a.jsx)("img",{src:(0,o.yY)("/icons/plus.svg","mxw_12"),alt:t("wishlist.add"),width:12,height:12,loading:"lazy"})})]},`${l.name}-${i}`))})}},20713:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155);s(12115);var l=s(11646),i=s(95397),n=s(61665),r=s(9776);let d=({data:e})=>{let t=(0,n.useTranslations)();return(0,a.jsxs)(i.default,{title:t("product.about"),children:[e.nutritional.length>0&&(0,a.jsxs)("ul",{className:"flex flex-wrap gap-spacing-1 mb-spacing-3",children:[e.nutritional.map(e=>(0,a.jsx)("li",{className:"information-tags__tag",children:(0,a.jsx)(l.Ay,{icon:`/icons/pictogram/${e.pictogram}`,text:e.title,url:e.url.replace("pages","preferences")})},e.title)),e.brandBadge&&e.brandBadge.map(e=>(0,a.jsx)("li",{className:"information-tags__tag",children:(0,a.jsx)(l.Ay,{icon:`/icons/pictogram/${e.pictogram}`,text:e.title,url:e.url.replace("pages","preferences")})},e.title))]}),e.shortDescription?(0,a.jsx)("div",{className:"font-light",children:(0,a.jsx)(r.A,{children:e.shortDescription})}):null]})}},22085:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),l=s(12115),i=s(4760),n=s(14606),r=s(97370),d=s(98500),c=s.n(d),o=s(48178);let m=({alternatives:e})=>{let[t,s]=(0,l.useState)(),[d,m]=(0,l.useState)(),{styles:x,attributes:h}=(0,r.E)(t,d,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,0]}}]});return(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsx)(i.AM,{children:({open:t})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.AM.Button,{className:"min-sm:hidden flex w-full border-charcoal border rounded gap-spacing-1 items-center p-spacing-1 pr-[12px] relative z-[1]",ref:s,children:[(0,a.jsx)("img",{src:e[0].images?.[0]?.thumbnail,alt:e[0].title,width:30,height:30,loading:"lazy",className:"object-contain w-[30px] h-[30px] shrink-0"}),(0,a.jsx)("span",{className:"text-cta-regular line-clamp-1",children:e[0].title}),(0,a.jsx)("img",{src:(0,o.yY)("/icons/arrow-down-dropdown.svg","mxw_13"),alt:"open",height:7,width:13,loading:"lazy",className:`${t?"rotate-180":""} transition duration-150 delay-75 shrink-0 ml-auto`})]}),(0,a.jsx)(n.e,{children:(0,a.jsx)(i.AM.Panel,{className:"absolute border border-grey-light rounded w-full overflow-hidden my-[-1px] z-[2]",ref:m,style:x.popper,...h.popper,children:(0,a.jsx)("ul",{children:e.map(e=>(0,a.jsx)("li",{className:"border-grey-light [&:not(:last-child)]:border-b",children:(0,a.jsxs)(c(),{href:e.link,title:e.name,className:"flex w-full gap-spacing-1 items-center p-spacing-1 bg-white",children:[(0,a.jsx)("img",{src:e.images?.[0]?.thumbnail,alt:e.title,width:30,height:30,loading:"lazy",className:"object-contain w-[30px] h-[30px] shrink-0"}),(0,a.jsx)("span",{className:"text-cta-regular line-clamp-1",children:e.title})]})},e.title))})})})]})})})}},24667:(e,t,s)=>{s.d(t,{default:()=>k});var a=s(95155),l=s(97810),i=s.n(l),n=s(50676),r=s.n(n),d=s(87481),c=s.n(d),o=s(12115),m=s(4760),x=s(14606),h=s(48407),u=s(61665),p=s(97370),g=s(16869),b=s(72733),f=s(87979),j=s(73321),y=s(37206),v=s(48178),N=s(15610);let w=(0,y.default)(()=>Promise.all([s.e(9003),s.e(1330)]).then(s.bind(s,61330)),{loadableGenerated:{webpack:()=>[61330]},ssr:!1}),_=(0,y.default)(()=>s.e(9367).then(s.bind(s,19367)),{loadableGenerated:{webpack:()=>[19367]},ssr:!1}),k=({productId:e,buttonStyle:t})=>{let s=(0,u.useLocale)(),l=(0,u.useTranslations)(),n=(0,j.useRouter)(),[d,y]=(0,o.useState)(!1),[k,$]=(0,o.useState)(!1),[A,z]=(0,o.useState)(),[S,I]=(0,o.useState)(),C=(0,N.E)(e=>e.productIdsMap),{wishlists:F,loading:Y}=(0,h.iq)(),{isGuest:P}=(0,h.Jd)(),{styles:T,attributes:D}=(0,p.E)(A,S,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,16]}},{name:"preventOverflow",options:{padding:16}}]}),E=(0,o.useMemo)(()=>r()(C,e=>c()(e)).includes(e.toString()),[C]),L=()=>(0,a.jsx)("img",{src:`/icons/${E?"wishlist-filled.svg":"wishlist.svg"}`,alt:"Coeur",height:24,width:24,loading:"lazy"}),q=()=>(0,a.jsxs)("div",{className:"h-[54px] px-spacing-2 flex items-center justify-between bg-grey8 rounded-b-xl border-t border-grey6 mt-auto",children:[(0,a.jsx)("span",{className:"text-body-17 font-medium",children:l("wishlist.popup.new")}),(0,a.jsx)("button",{"data-testid":"wishlist-create-new",onClick:()=>{y(!0),$(!1)},className:"flex-center w-spacing-3 h-spacing-3 rounded-full mr-[3px] hover:bg-dark-taupe",children:(0,a.jsx)("img",{src:(0,v.yY)("/icons/plus.svg","mxw_12"),alt:l("wishlist.modal.create"),width:12,height:12,loading:"lazy"})})]});return P()?(0,a.jsx)("button",{onClick:()=>{n.push(b.Ay.login(s))}
16,className:t,title:l("login.form.login.title"),children:L()}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button","data-testid":"wishlist-toggle-mobile",className:`${t} min-xs:!hidden`,onClick:()=>$(!0),children:L()}),(0,a.jsx)(m.AM,{className:"xs:!hidden",children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.AM.Button,{"data-testid":"wishlist-toggle",className:t,ref:z,children:L()}),(0,a.jsx)(x.e,{children:(0,a.jsxs)(m.AM.Panel,{className:"absolute z-50 bg-white min-w-[324px] shadow-[4px_0_12px_rgba(0,0,0,.16)] rounded-xl",ref:I,style:T.popper,...D.popper,children:[(0,a.jsxs)("div",{className:"h-[54px] px-spacing-2 flex items-center justify-between bg-grey8 rounded-t-xl border-b border-grey6",children:[(0,a.jsx)("span",{className:"text-body-17 font-medium",children:l("wishlist.popup.title")}),(0,a.jsx)(m.AM.Button,{className:"flex justify-center items-center h-[30px] w-[30px] rounded-full transition-bounce hover:scale-[1.2] bg-tint-48",children:(0,a.jsx)("img",{src:(0,v.yY)("/icons/cross.svg","mxw_11"),alt:"Delete",height:11,width:11,loading:"lazy"})})]}),(0,a.jsx)("div",{className:"overflow-y-scroll max-h-[188px]",children:Y?(0,a.jsx)("div",{className:"py-spacing-4 px-spacing-2 flex-center",children:(0,a.jsx)(f.Q0,{})}):i()(F)?(0,a.jsx)("div",{className:"flex-center h-spacing-9",children:(0,a.jsx)("span",{className:"text-body-15",children:l("wishlist.no_wishlists")})}):(0,a.jsx)(g.default,{productId:e})}),q()]})})]})}),(0,a.jsx)("div",{className:"min-xs:hidden",children:(0,a.jsxs)(_,{title:l("wishlist.popup.title"),isOpen:k,setIsOpen:$,children:[(0,a.jsx)("div",{className:"overflow-y-scroll max-h-[calc(100%-108px)]",children:(0,a.jsx)(g.default,{productId:e})}),q()]})}),d?(0,a.jsx)(w,{setIsOpen:y,isOpen:d,productId:e,wishlists:F}):null]})}},29963:(e,t,s)=>{s.d(t,{I:()=>i}),s(13455);var a=s(82849),l=s(23805);let i=async(e,t,s,i)=>{let n={};return void 0!==a.A.get(l.jh.token)&&(n={"X-Authorization-Token":a.A.get(l.jh.token)}),await fetch(`https://api.kazidomi.com/api/v2/${e}/clear/cache/${t}/${s}`,{method:"POST",headers:n,body:JSON.stringify({keys:i})})}},31176:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),l=s(12115),i=s(61665),n=s(97370),r=s(53206);let d=({children:e})=>{let[t,s]=(0,l.useState)(),[d,c]=(0,l.useState)(),o=(0,i.useTranslations)(),{styles:m,attributes:x}=(0,n.E)(t,d,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,16]}},{name:"preventOverflow",options:{altAxis:!0,padding:16}}]});return(0,a.jsxs)("div",{className:"relative flex-center price-tooltip",children:[(0,a.jsx)("button",{ref:s,children:e}),(0,a.jsxs)("div",{className:"bg-white rounded-[16px] p-spacing-2 shadow-[0px_5px_88px_rgba(0,0,0,.3)] min-w-[284px] z-10 text-left price-tooltip__content",ref:c,style:m.popper,...x.popper,children:[(0,a.jsx)("p",{className:"text-body-13 mb-spacing-1",children:o("product.price_tooltip.text")}),(0,a.jsx)(r.NW,{buttonClasses:"h-[34px] !px-spacing-2"})]})]})}},31990:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(95155);s(12115);var l=s(48407);let i=({data:e})=>{let{getQuantityWithUnit:t,getPriceByUnit:s}=(0,l.Bj)(e),i=s(),n=t();return(0,a.jsx)("div",{children:i||n?(0,a.jsxs)("div",{className:"text-body-15 leading-none font-light",children:[n," ",i&&`| ${i}`]}):null})}},32728:(e,t,s)=>{s.d(t,{default:()=>r});var a=s(95155);s(12115);var l=s(48407),i=s(27866),n=s.n(i);let r=({data:e})=>{let{prices:t}=e,{isMember:s}=(0,l.Jd)(),{isDiscounted:i}=(0,l.Bj)(e),r=s()?t?.prices.promo_or_membership:t?.prices.promo_or_standard;if(i())return(0,a.jsxs)("div",{className:"mt-6",children:[(0,a.jsxs)("div",{className:"inline-block gap-1 mb-1 rounded bg-alimentation2 font-medium items-center px-2 py-1 leading-none text-body-15",children:[`-${r.reduction_amount}%`,s()?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"ml-2 inline-block",children:[(0,a.jsx)("span",{children:"extra"}),(0,a.jsx)("img",{src:"/logo/k-plus-logo.svg",className:"w-4 h-3 inline-block ml-1",width:16,height:12,alt:"kazidomi membership logo"})]})}):null]}),(()=>{let{date_start:e,date_end:t}=r,s=n()(e).format("DD/MM"),l=n()(t).format("DD/MM");return(0,a.jsx)("span",{className:"block font-medium text-body-13",children:`Du ${s} au ${l}`})})()]})}},35976:(e,t,s)=>{s.d(t,{A:()=>h});var a=s(95155),l=s(12115),i=s(65739),n=s(61665),r=s(67479),d=s(48407),c=s(25940),o=s(35799),m=s.n(o),x=s(78512);let h=({sold_by_box_size:e,qtyAddStep:t,quantity:s,legacyId:o,box_size:h,lessDisabled:u=!1,plusDisabled:p=!1,classes:g,inputClasses:b,setIsEditing:f,isEditing:j,iconLabel:y})=>{let v,N=(0,n.useTranslations)(),w=(0,l.useRef)(null),_=(0,l.useRef)(null),k=(0,r.useCartStore)(e=>e.updateQuantities),{incrementQuantity:$,decrementQuantity:A,setQuantity:z,updateStep:S}=(0,d.DT)({legacyId:o,qtyAddStep:t}),I=(0,c.useGlobalStore)(e=>m()(e,["stock",o,"available_stock"],0));return 0!==s||j?(0,a.jsxs)("div",{className:`${b} product-quantity !border-grey-light h-full group-[.product-tile--landscape]:min-xs:!relative`,ref:w,children:[(0,a.jsx)(i.yk,{onClick:A,disabled:u,quantity:s}),t>1?(0,a.jsx)("div",{ref:_,className:"w-[200px] absolute py-[12px] px-spacing-1 mb-spacing-1 rounded bottom-full bg-tint-24 shadow-[0_2px_6px_rgba(0,0,0,.15)] hidden",children:(0,a.jsx)("p",{className:"text-body-13 font-light",children:N.rich("cart.tooltip-quantity",{qty:t})})}):null,(0,a.jsx)("input",{className:"quantity w-full",type:"number",value:s,onInput:e=>{let t;
16return f(!0),void(!isNaN(t=""===e.target.value?0:parseInt(e.target.value))&&k([{productLegacyId:o,quantity:t}]))},onBlur:e=>{f(!1);let t=[{productLegacyId:o,quantity:s}];s<0&&(t[0].quantity=0,k(t),s=0),z(s,_.current)},max:(v=s,I&&(v=s+I),v),min:0}),(0,a.jsx)(i.Ph,{onClick:()=>$(),disabled:p})]}):e&&h>0&&I>h?(0,a.jsxs)("div",{className:"flex gap-4 h-full",children:[(0,a.jsxs)(i.Ay,{"data-testid":"add-to-cart",variant:"secondary",size:"md","aria-label":`Add ${t} to basket`,onClick:()=>{S(t),$(t)},className:"w-full h-full !p-0",children:["Ajouter ",t]}),(0,a.jsxs)(i.Ay,{"aria-label":`Add ${h} to basket`,variant:"primary",size:"md",onClick:()=>{S(h),$(h)},className:"w-full h-full !p-0",children:["Ajouter ",h]})]}):(0,a.jsx)(i.Ay,{"data-testid":"add-to-cart",variant:"primary",size:"md",onClick:()=>$(),className:`${g} h-full`,children:y?(0,a.jsx)(x.A,{name:"ShoppingCart",size:18,strokeWidth:2.5,"aria-label":N("links.add-cart"),color:"white"}):N("links.add-cart")})}},39174:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),l=s(12115),i=s(93988),n=s(61665),r=s(63989),d=s(35799),c=s.n(d),o=s(48178);let m=({products:e})=>{let t=(0,n.useTranslations)(),s=(0,r.Ke)(e=>e.stock),d=(0,l.useMemo)(()=>e.map(e=>({...(0,o.Nt)(e.product),available_sold_by_multiples:!1,available_stock:c()(s,[e.product.legacyId,"quantity"],1)})),[e,s]);return(0,a.jsx)("div",{className:"mb-spacing-4",children:(0,a.jsx)(i.default,{title:t("product-carousel.packed-product"),products:d,headingClasses:"!text-heading-24 !text-left min-product-page:!text-center"})})}},39814:(e,t,s)=>{s.d(t,{Carousel:()=>o});var a=s(95155);s(12115);var l=s(48407),i=s(65739),n=s(97810),r=s.n(n),d=s(78512);let c=({classes:e="",isScrollable:t,handleNavigation:s,previousDisabled:l,nextDisabled:n,buttonClasses:r})=>{let c=`!p-0 h-12 w-12 pointer-events-auto ${r}`;return(0,a.jsx)("div",{className:`h-12 transition-opacity duration-300 w-[112px] gap-4 ml-auto hidden min-sm:flex justify-center pointer-events-none ${e}`,children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Ay,{disabled:l,onClick:()=>s("previous"),className:c,variant:"primary",children:(0,a.jsx)(d.A,{name:"ChevronLeft",color:"white",strokeWidth:2.5,width:20,"aria-label":"previous"})}),(0,a.jsx)(i.Ay,{disabled:n,onClick:()=>s("next"),className:c,variant:"primary",children:(0,a.jsx)(d.A,{name:"ChevronRight",color:"white",strokeWidth:2.5,width:20,"aria-label":"Next"})})]}):null})},o=({title:e,subTitle:t,titleElement:s="h2",titleClasses:i,children:n,expand:d,classes:o,controlsClasses:m="",buttonClasses:x="",controlPosition:h="bottom",headingClasses:u=""})=>{let{handleNavigation:p,handleScroll:g,ref:b,nextDisabled:f,previousDisabled:j,isScrollable:y}=(0,l.gU)();return(0,a.jsxs)("div",{children:[e?(()=>{if(!e||r()(e))return;let l=(0,a.jsxs)("div",{className:"flex-col items-center flex",children:[(0,a.jsx)(s,{className:`font-faro text-heading-24 block ${i}`,children:e}),t&&(0,a.jsx)("p",{className:"text-body-15 font-light text-grey1 mt-2",children:t})]});return(0,a.jsxs)("div",{className:`flex mb-2 items-center ${"top"===h?"justify-between":"justify-center"} ${u}`,children:[l,"top"===h?(0,a.jsx)(c,{buttonClasses:x,classes:m,nextDisabled:f,previousDisabled:j,handleNavigation:p,isScrollable:y}):null]})})():null,(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)("ul",{ref:b,onScroll:e=>g(e),className:`scroll-smooth flex gap-2 overflow-x-auto py-2 scrollbar-none ${o} ${d?"-mx-5 px-5 min-xs:px-8 min-xs:-mx-8 ":""}`,children:n})}),"bottom"===h?(0,a.jsx)(c,{buttonClasses:x,classes:`mt-4 ${m}`,nextDisabled:f,previousDisabled:j,handleNavigation:p,isScrollable:y}):null]})}},44661:(e,t,s)=>{s.d(t,{tX:()=>l,c:()=>i});var a=s(95155);s(12115),s(48178),s(27866);let l=({data:e})=>{let t=e.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.label,item:{"@type":"Thing","@id":"/"===e.url?"https://www.kazidomi.com":e.url}}));return(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"BreadcrumbList",itemListElement:t}]})}})},i=({items:e=[]})=>{if(!e?.length)return null;let t={"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(({question:e,answer:t})=>
16({"@type":"Question",name:e,acceptedAnswer:{"@type":"Answer",text:t}}))};return(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t)}})}},44883:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(95155);s(12115);var l=s(65739),i=s(72733),n=s(35976),r=s(59600),d=s(61665),c=s(48407);let o=({data:e})=>{let t=(0,d.useTranslations)(),s=(0,d.useLocale)(),{isProductInCart:o,isB2bBlocked:m}=(0,c.Bj)(e),{isEditing:x,setIsEditing:h,currentQuantity:u,availableStock:p}=(0,c.DT)({legacyId:e.legacyId,qtyAddStep:e.quantityAddingStep,initialStock:e.available_stock??(e.hasStock?e.quantityAddingStep??1:0),initialAvailableForOrder:e.isAvailable&&e.hasStock&&"not-available"!==e.badge});return!1===e.visible||m?null:(0,a.jsx)(a.Fragment,{children:e.isGiftCard?(0,a.jsx)(l.Ay,{className:"w-full h-full",link:i.Ay.giftcard(s,e.legacyId),title:t("giftcard.add-to-basket"),children:t("giftcard.add-to-basket")}):(0,a.jsx)(a.Fragment,{children:p||o?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(n.A,{isEditing:x,setIsEditing:h,legacyId:e.legacyId,box_size:e.box_size,sold_by_box_size:e.sold_by_box_size,quantity:u,classes:"h-12 w-full text-label",qtyAddStep:e.quantityAddingStep,plusDisabled:p<=0})}):(0,a.jsx)(r.A,{productId:e.productLegacyId,buttonClasses:"h-spacing-6 !border-charcoal !w-full"})})})}},47784:(e,t,s)=>{s.r(t),s.d(t,{default:()=>N});var a=s(95155),l=s(12115),i=s(4299),n=s(49205),r=s(9460),d=s(48407),c=s(82849),o=s(23805),m=s(61665),x=s(65739),h=s(29963),u=s(38434),p=s(74903),g=s(73321),b=s(61378),f=s(48178);let j=e=>{let[t,s]=(0,p.eY)(!1);(0,g.useRouter)();let l=(0,m.useLocale)();if(void 0===c.A.get(o.jh.token))return;let{id:i,legacyId:n,stock_reference:r,stock:d,stock_available:j,stock_on_cart:y,stock_on_order:v,counter_sales:N,counter_sales_6_months:w,is_infinite_stock:_,activated_date:k,activated_time:$,eanPrimary:A,eanSecondary:z,eanBox:S,reference:I,supplier_reference:C,estimated_date_limit_months:F,stock_minimal:Y,to_delete:P,to_delete_reason:T,box_size:D,service_level:E,code_hs:L,quantityAddingStep:q,isMealVoucherCompatible:B,isEcoVoucherCompatible:M,link_to_edit_product:O,link_to_edit_price:R,link_to_clear_cache:G,link_to_manage_alternatives_product:W,link_to_duplicate_product:J,link_to_manage_pack:Q}=e.data,H=async()=>{let e=[],t=await (0,b.u7)(l,i),s=await (0,b.et)(t);e.push(s);let a=await (0,h.I)(l,"product",i,e);a?.status===200&&((0,u.default)("Le produit a bien \xe9t\xe9 mis \xe0 jour"),window.location.reload())};return(0,a.jsx)("section",{className:"bg-tint-12 border-b border-dark-taupe absolute w-full left-0 product-admin bottom-full sm:hidden",children:(0,a.jsxs)("div",{className:"container py-spacing-2 max-w-[1800px] !block",children:[(0,a.jsxs)("div",{className:"flex justify-between gap-spacing-2 flex-wrap w-full",children:[(0,a.jsx)(x.Ay,{size:"sm",variant:"outline",className:"!px-spacing-2 !py-spacing-1 bg-white",rightIcon:{src:"/icons/arrow-down.svg",width:13,height:7,alt:"Open dropdown"},onClick:s,children:"Infos page"}),(0,a.jsxs)("div",{className:"flex gap-spacing-2",children:[(0,a.jsxs)("a",{href:`https://api.kazidomi.com/backoffice/products/${e.data.id}/chart`,target:"_blank",className:"text-[14px] hover:underline flex items-center gap-spacing-05",children:["Voir les ventes",(0,a.jsx)("img",{src:(0,f.yY)("/icons/external-link-icon.svg","mxw_16"),alt:"link",width:16,height:16,loading:"lazy"})]}),(0,a.jsxs)("a",{href:O,target:"_blank",className:"text-[14px] hover:underline flex items-center gap-spacing-05",children:["Editer le produit",(0,a.jsx)("img",{src:(0,f.yY)("/icons/edit-icon.svg","mxw_16"),alt:"link",width:16,height:16,loading:"lazy"})]}),(0,a.jsxs)("a",{href:R,target:"_blank",className:"text-[14px] hover:underline flex items-center gap-spacing-05",children:["Editer le prix du produit",(0,a.jsx)("img",{src:(0,f.yY)("/icons/edit-icon.svg","mxw_16"),alt:"link",width:16,height:16,loading:"lazy"})]}),W&&(0,a.jsxs)("a",{href:W,target:"_blank",className:"text-[14px] hover:underline flex items-center gap-spacing-05",children:["G\xe9rer les alternatives du produit",(0,a.jsx)("img",{src:(0,f.yY)("/icons/edit-icon.svg","mxw_16"),alt:"link",width:16,height:16,loading:"lazy"})]}),J&&(0,a.jsxs)("a",{href:J,target:"_blank",className:"text-[14px] hover:underline flex items-center gap-spacing-05",children:["Dupliquer le produit",(0,a.jsx)("img",{src:(0,f.yY)("/icons/edit-icon.svg","mxw_16"),alt:"link",width:16,height:16,loading:"lazy"})]}),Q&&(0,a.jsxs)("a",{href:Q,target:"_blank",className:"text-[14px] hover:underline flex items-center gap-spacing-05",children:["G\xe9rer le pack",(0,a.jsx)("img",{src:(0,f.yY)("/icons/edit-icon.svg","mxw_16"),alt:"link",width:16,height:16,loading:"lazy"})]}),(0,a.jsxs)("button",{onClick:H,className:"text-[14px] hover:underline flex items-center gap-spacing-05",type:"button",children:["Vider le cache",(0,a.jsx)("img",{src:(0,f.yY)("/icons/refresh-icon.svg","mxw_16"),alt:"link",width:16,height:16,loading:"lazy"})]})]})]}),t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex gap-spacing-2 border-t border-dark-taupe pt-spacing-2 mt-spacing-2 overflow-x-auto",children:[(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Prestashop ID"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:n})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Symfony ID"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:i})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Statut"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:(()=>{switch(!0){case!e.data.active:return"Inactif";case e.data.archived:return"Archiv\xe9";case!e.data.isAvailable:return"Indisponible";default:return"Actif"}})()})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Stock 
16infini"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:_?"oui":"non"})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",title:`Stock r\xe9f\xe9rence : ${r}`,children:"Stock"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:d})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Stock disponible"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:j})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Stock dans les paniers"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:y})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Stock dans les commandes"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:v})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Stock minimal"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:Y})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Step quantit\xe9"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:q})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Cheque eco"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:M?"oui":"non"})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Cheque repas"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:B?"oui":"non"})]})]}),(0,a.jsxs)("div",{className:"flex gap-spacing-2 border-t border-dark-taupe pt-spacing-2 mt-spacing-2 overflow-x-auto",children:[(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Nombre de ventes"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:N})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Nombre de ventes (6 mois)"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:w})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Date d'activation"}),(0,a.jsxs)("span",{className:"text-body-13 block font-light",children:[k," ",$]})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"EAN Primary"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:A})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"EAN Secondary"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:z})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"EAN BOX"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:S})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Date limite estim\xe9e"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:F})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Supprim\xe9 du catalogue (to_delete)"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:P?T?`oui : ${T}`:"oui":"non"})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"R\xe9f\xe9rence"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:I})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"R\xe9f\xe9rence fournisseur"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:C})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Box size"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:D})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Service level"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:E})]}),(0,a.jsxs)("div",{className:"shrink-0",children:[(0,a.jsx)("span",{className:"text-body-13 block font-medium",children:"Code HS"}),(0,a.jsx)("span",{className:"text-body-13 block font-light",children:L})]})]})]}):null]})})};var y=s(90661),v=s(96337);let N=({productData:e,sticky:t=!1})=>{let{isHideMembershipPrice:s,id:x}=e,{isAllowedToAccessWholesalePrice:h,isMember:u,user:p}=(0,d.Jd)(),g=(0,m.useLocale)(),b=(0,m.useTranslations)(),[f,N]=(0,l.useState)(e),w=u(),{isB2bBlocked:_}=(0,d.Bj)(f);
16if((0,l.useEffect)(()=>{p&&p.isAdmin&&(async()=>{let e={withCredentials:!0};c.A.get(o.jh.token)&&(e={"X-Authorization-Token":c.A.get(o.jh.token)}),c.A.get(o.jh.tokenToSwitchByEmail)&&(e={"X-Switch-User":c.A.get(o.jh.tokenToSwitchByEmail),"X-Authorization-Token":c.A.get(o.jh.token)});let t=await fetch(`https://api.kazidomi.com/api/v2/${g}/products/${x}`,{headers:e}),s=await (0,y.l)(t,null,`display-product-prices:${g}:${x}`);s&&N(s)})()},[p?.isAdmin]),!f)return null;if(_)return t?null:(0,a.jsx)("div",{className:"w-full mt-4 py-3 px-4 bg-grey7 rounded-lg",children:(0,a.jsx)("span",{className:"block text-body-15 font-medium",children:b("product.b2b_only_unavailable")})});let k=f.prices;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:`${t?"flex flex-col min-sm:flex-row gap-4 grow min-lg:shrink-0 items-start min-sm:items-center min-sm:justify-between justify-end min-lg:justify-end":"gap-4 mt-4 flex flex-col items-start"}`,children:!(!w&&!t&&!s&&!f.isGiftCard&&k?.prices?.membership?.reduction_amount)||h()?(0,a.jsxs)(a.Fragment,{children:[h()?(0,a.jsx)(i.A,{standardPrice:k.prices.promo_or_standard.priceInclude,wholesalerPrice:k.prices.current_applied_price.priceInclude}):s&&!w?(0,a.jsx)(n.A,{standardPrice:k.prices.promo_or_standard.priceInclude}):(0,a.jsx)(r.default,{data:f}),(0,a.jsx)("div",{className:`${t?"w-full min-sm:max-w-[256px] min-breakpoint-1000:max-w-[320px] relative h-12 min-sm:h-[60px] min-w-[200px]":"w-full relative h-[60px]"}`,children:(0,a.jsx)(v.Rx,{data:f})})]}):(0,a.jsx)(v.aQ,{data:f})}),p?.isAdmin&&t?(0,a.jsx)(j,{data:f}):null]})}},49078:(e,t,s)=>{s(95155),s(12115),s(64309)},49205:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(95155);s(12115);var l=s(61665),i=s(72733),n=s(50003);let r=({standardPrice:e})=>{let t=(0,l.useTranslations)(),s=(0,l.useLocale)();return(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:"font-faro block text-heading-24 leading-tight",children:[e,"€"]}),(0,a.jsx)(n.default,{href:i.Ay.login(s),className:"text-cta-regular underline inline-block max-w-[200px] leading-none",title:t("product.connect_to_see_member_price"),children:t("product.connect_to_see_member_price")})]})}},52095:(e,t,s)=>{s.d(t,{a:()=>d});var a=s(95155),l=s(5772),i=s(61665);let n={bg:"bg-sant5",bgHover:"hover:bg-sant4",translationKey:"my-shop.hit.recommended",icon:"/icons/rank-up.svg"},r={bg:"bg-alimentation5",bgHover:"hover:bg-alimentation4",translationKey:"my-shop.hit.not-recommended",icon:"/icons/rank-down.svg"},d=({confidenceSummary:e,onClick:t})=>{let s=(0,i.useTranslations)();if(!e||0===e.total||e.positive===e.negative)return null;let{bg:d,translationKey:c,icon:o,bgHover:m}=e.positive>e.negative?n:r,x=t?"button":"div";return(0,a.jsxs)(x,{className:`flex justify-between items-center font-medium relative z-[1] rounded-lg ${d} gap-2 p-2 w-fit ${"button"===x&&m}`,onClick:t,..."button"===x&&{type:"button",title:s(c)},children:[(0,a.jsx)("span",{className:"text-body-13",children:s(c)}),(0,a.jsx)(l.default,{src:o,width:18,height:12,alt:"Rank"})]})};s(12115),s(14990),(0,s(37206).default)(()=>Promise.resolve().then(s.bind(s,3890)),{loadableGenerated:{webpack:()=>[3890]},ssr:!1})},55663:(e,t,s)=>{s.d(t,{default:()=>n});var a=s(95155);s(12115);var l=s(11646),i=s(48407);let n=({badges:e,prices:t,id:s,large:n})=>{let{shippingCountry:r}=(0,i.Jd)();if(!e||e?.length===0)return null;let d=t?.[r()]?.prices?.promo_or_standard?.date_end??"";return(0,a.jsx)(a.Fragment,{children:e.map((e,t)=>(0,a.jsx)(l._8,{discountDate:d,large:n,badge:e},`${s}-${e}-${t}`))})}},55824:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(95155);s(12115);var l=s(48407);let i=({data:e})=>{let{getQuantityWithUnit:t}=(0,l.Bj)(e);return(0,a.jsx)("span",{className:"product-details__volume text-body-17",children:t()})}},59600:(e,t,s)=>{s.d(t,{A:()=>p});var a=s(95155),l=s(12115),i=s(65739),n=s(72733),r=s(61665),d=s(48407),c=s(16099),o=s(87979),m=s(38434),x=s(37206),h=s(48178);let u=(0,x.default)(()=>s.e(1509).then(s.bind(s,3890)),{loadableGenerated:{webpack:()=>[3890]},ssr:!1}),p=({productId:e,buttonClasses:t,iconLabel:s=!1})=>{let[x,p]=(0,l.useState)(!1),[g,b]=(0,l.useState)(!1),f=(0,r.useTranslations)(),j=(0,r.useLocale)(),{isGuest:y,user:v}=(0,d.Jd)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Ay,{onClick:()=>p(!0),variant:"outline",className:`bg-white gap-1 flex-center ${t}`,children:s?(0,a.jsx)("img",{src:(0,h.yY)("/icons/notify-icon.svg","mxw_24"),alt:f
16("product.notify-me.title"),width:24,height:24,loading:"lazy"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:(0,h.yY)("/icons/notify-icon.svg","mxw_24"),alt:f("product.notify-me.title"),width:24,height:24,loading:"lazy"}),(0,a.jsx)("span",{className:"group-[.product-grid]:min-product-grid-lg:!flex group-[.product]:flex",children:f("links.notify_me")})]})}),x?(0,a.jsx)(u,{isOpen:x,setIsOpen:p,title:f("product.notify-me.title"),children:(0,a.jsx)("div",{className:"max-w-[500px] mx-auto",children:y()?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-body-17 font-light text-center sm:text-body-15",children:f("product.notify-me.text")}),(0,a.jsxs)("div",{className:"max-w-[320px] mx-auto mt-6",children:[(0,a.jsx)(i.Ay,{size:"xl",className:"w-full",title:f("checkout.form.login"),link:n.Ay.login(j),children:f("checkout.form.login")}),(0,a.jsx)("div",{className:"separator",children:(0,a.jsx)("span",{children:f("checkout.or")})}),(0,a.jsx)(i.Ay,{size:"xl",className:"w-full",title:f("checkout.form.signup"),link:n.Ay.register(j),children:f("checkout.form.signup")})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-body-17 font-light text-center sm:text-body-15",children:f("product.notify-me.text_confirm")}),(0,a.jsx)("div",{className:"max-w-[320px] mx-auto mt-6",children:(0,a.jsx)(i.Ay,{size:"xl",className:"w-full",title:f("product.notify-me.text_confirm"),onClick:()=>{if(y())return;b(!0);let t={id_product:Number(e),email:v.email};(0,c.SN)(t).then(e=>{b(!1),p(!1),(0,m.default)(f("product.notify-me.sign-up.done"))})},children:g?(0,a.jsx)(o.Q0,{}):f("product.notify-me.confirm")})})]})})}):null]})}},59666:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155);s(12115);var l=s(14599),i=s(48407),n=s(7974),r=s(61665);let d=()=>{let e=(0,r.useTranslations)(),{handleUpdateMembership:t}=(0,i.Ez)(),{isIncludeMembership:s,membershipCart:d,cart:c}=(0,i._$)((0,n.k)(e=>({isIncludeMembership:e.isIncludeMembership,membershipCart:e.membershipCart,cart:e.cart})));return(0,a.jsxs)("div",{className:"bg-sant4 rounded-xl p-4 flex gap-4 items-center",children:[(0,a.jsx)("div",{className:"rounded-full bg-white w-[56px] h-[56px] flex-center shrink-0",children:(0,a.jsx)("img",{className:"w-9",fetchPriority:"high",loading:"eager",src:"/logo/k-plus-logo-green.svg",width:36,height:24,alt:"kazidomi membership logo"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-body-15 mb-1 font-medium block",children:"Devenez membre, \xe9conomisez plus"}),(0,a.jsx)("p",{className:"text-body-13",children:"Acc\xe9dez \xe0 des prix exclusifs sur plus de 3 000 produits et r\xe9cup\xe9rez vos frais d'abonnement d\xe8s la 1\xe8re commande."})]}),(0,a.jsx)("div",{children:(0,a.jsx)(l.lM,{isActive:s,name:"isIncludeMembership",labels:{active:e("checkout.membership-cart-item.toggle-active"),inactive:e("checkout.membership-cart-item.toggle-inactive")},onChange:()=>t(!s)})})]})}},61378:(e,t,s)=>{s.d(t,{Ew:()=>d,U:()=>o,UN:()=>n,Y4:()=>i,et:()=>m,ey:()=>r,mG:()=>c,u7:()=>l});let a="https://api.kazidomi.com/api/v2";async function l(e,t){return`${a}/${e}/products/${t}`}async function i(e){return`${a}/${e}/categories`}async function n(e,t){return`${a}/page/${e}/${t.trim()}`}async function r(e){return`${a}/${e}/mega-menu-banner`}async function d(e,t,s){return`${a}/${e}/recipe/${t}/${s.trim()}`}async function c(e,t,s){return`${a}/${e}/blog/${t}/${s.trim()}`}async function o(e){return`${a}/${e}/megamenu`}async function m(e){let t=e.trim().toLowerCase().replace(/[^a-zA-Z0-9]/g,""),s="";return await x("https://www.kazidomi.com_FETCH_REDIS_CONTENT_V6_"+t).then(e=>{s=e}),s}async function x(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}},64309:(e,t,s)=>{s.d(t,{xD:()=>a.default}),s(49078),s(70071),s(2304);var a=s(22085)},64603:(e,t,s)=>{s.d(t,{$W:()=>l});var a=s(95155);s(12115);let l=({score:e,variant:t="default",className:s=""})=>
16{if(null==e||""===e)return null;let l=Math.round(Number(e));if(!Number.isFinite(l)||l<0||l>100)return null;let i="default"===t;return(0,a.jsx)("img",{src:`/yuka-score/${"default"===t?"Default":"Small"}/${l}.png`,alt:"Score Yuka",width:i?168:110,height:i?72:48,loading:"lazy",className:`shrink-0 self-start ${i?"w-[84px] h-[36px]":"h-6 w-auto max-w-full"} ${s}`})};s(46876),s(65739),s(72733)},67672:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155),l=s(61665);s(12115);var i=s(48407),n=s(35799),r=s.n(n),d=s(25940);let c=({data:e,classes:t})=>{let{archived:s,badge:n}=e,{isProductInCart:c}=(0,i.Bj)(e),o=s?"archived":n,m=(0,l.useTranslations)(),x=(0,d.useGlobalStore)(t=>r()(t,["stock",e.legacyId,"available_stock"],0));if("not-available"!==o||!(x||c))return(0,a.jsx)("div",{className:t,children:(0,a.jsx)("span",{className:`leading-none block product-tags__tag product-tags__tag--${o}`,children:m(`product.flags.${o}`)})})}},70071:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),l=s(12115),i=s(90301),n=s(61665),r=s(48407),d=s(98500),c=s.n(d);let o=({item:e,label:t,disabled:s})=>{let{getPriceByUnit:l,getPrices:i}=(0,r.Bj)(e),n=`${i().price}€`;return(0,a.jsxs)(c(),{href:e.link,className:`rounded-md shrink-0 flex flex-col px-3 py-1 border bg-transparent ${s?"border-black pointer-events-none":"border-grey-light"}`,children:[(0,a.jsxs)("div",{className:"text-cta-regular",children:[(0,a.jsx)("span",{className:"font-medium",children:t}),"  -  ",n]}),(0,a.jsx)("div",{className:"text-cta-regular",children:l()})]},e.name||e.title)},m=({product:e,alternatives:t,label:s})=>{let r=(0,n.useTranslations)(),d=e=>e.alternativeFormatName&&""!==e.alternativeFormatName?e.alternativeFormatName:(0,i.I)(e,r),c=e=>{let t=d(e).match(/[\d,.]+/);return t?parseFloat(t[0].replace(",",".")):0},m=(0,l.useMemo)(()=>[...t,e].sort((e,t)=>c(e)-c(t)),[t,e]);return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-spacing-1",children:(0,a.jsxs)("span",{className:"text-cta-regular text-charcoal font-light",children:[r(`product.variant.${s}`)," : "]})}),(0,a.jsx)("ul",{className:"flex gap-2 flex-wrap flex-row",children:m.map((t,s)=>(0,a.jsx)("li",{children:(0,a.jsx)(o,{disabled:t.id===e.id,label:d(t),item:t})},`${t.title}-${s}`))})]})}},79011:(e,t,s)=>{s.d(t,{default:()=>c});var a=s(95155);s(12115);var l=s(98500),i=s.n(l),n=s(48178),r=s(61665),d=s(65739);let c=({data:e})=>{let t=(0,r.useTranslations)();return(0,a.jsxs)("div",{className:"rounded-xl bg-grey-taupe p-4 min-sm:p-8 flex gap-4 min-sm:gap-8",children:[null!=e.brand.logo?(0,a.jsx)(i(),{href:e.brand.link,title:`${t("product.discover")} ${e.brand.title}`,className:"flex-center border border-grey6 rounded-lg aspect-square bg-white h-[80px] w-[80px] min-sm:h-[96px] min-sm:w-[96px]",children:(0,a.jsx)("img",{src:(0,n.yY)(e.brand.logo,"mxw_480"),alt:e.brand.title,loading:"lazy",width:96,height:96,className:"object-contain"})}):null,(0,a.jsxs)("div",{children:[(0,a.jsxs)("h2",{className:"text-body-17 min-sm:text-body-21 font-faro mb-spacing-2",children:[t("product.little-more-brand")," ",e.brand.title]}),(0,a.jsx)(d.Ay,{link:e.brand.link,variant:"outline",className:"!border-charcoal bg-white text-center leading-none",title:`${t("product.discover")} ${e.brand.title}`,children:t("product.discover-brand",{brand:e.brand.title})})]})]})}},80057:(e,t,s)=>{s.d(t,{default:()=>A});var a=s(95155),l=s(97810),i=s.n(l),n=s(35799),r=s.n(n),d=s(12115),c=s(47650),o=s(98500),m=s.n(o),x=s(61665),h=s(35976),u=s(48407),p=s(24667),g=s(59600),b=s(48178),f=s(72733),j=s(65739),y=s(97366),v=s(96337),N=s(11646),w=s(46876),_=s(52095),k=s(36651),$=s(64603);let A=d.memo(({data:e,layout:t,size:s,priority:l,...n})=>{let d=(0,x.useTranslations)(),o=(0,x.useLocale)(),{user:A,shippingCountry:z,isMember:S}=(0,u.Jd)(),{getQuantityWithUnit:I,getPriceByUnit:C,isProductInCart:F,isDiscounted:Y,isB2bBlocked:P}=(0,u.Bj)(e),{name:T,badge:D,image1:E,brand:L,hide_price_membership:q,URL:B,_id:M,id:O,legacyId:R,is_gift_card:G,visible:W,rating:J}=e,{average_rating:Q,num_ratings:H}=J??{},X=e.available_stock??("number"==typeof e.stock?e.stock:void 0)??(!1!==e.active&&"not-available"!==D?e.quantity_adding_step??1:0),{currentQuantity:U,isEditing:K,setIsEditing:V,availableStock:Z}
16=(0,u.DT)({legacyId:e.legacyId,isFresh:e.is_fresh,qtyAddStep:e.quantity_adding_step,initialStock:X,initialAvailableForOrder:!1!==e.active&&"not-available"!==D&&X>0}),ee=e?.badges?.length?e.badges:e?.badge?.length?[e.badge]:[],et=B?B.replace("https://www.kazidomi.com",""):"",es=E||e.image,ea=`${T} ${e?.is_bio?d("bio"):""}`,el=e.country_prices.BE;void 0!==e.country_prices[z()]&&(el=e.country_prices[z()]),r()(e,`country_prices[${z()}].prices.promo_or_standard.date_end`,"");let ei="high"===l,en=Z>0&&"not-available"!==D||F,er=e?.origin_country&&(e?.origin_country==="FR"||e?.origin_country==="BE"),ed=Number(Q)>0&&Number(H)>0,ec=e?._badge_ai??null,eo=e?._badge_ai_translated??null,em=e?._positive_notes??null,ex=e?._negative_notes??null,eh="grid"===t,eu=eh?176:100,ep=(0,b.yY)(es,`mxw_${eh?192:100}`),eg=eh?"(min-width: 1100px) 176px, 100px":"100px",eb=eh?`
17      ${(0,b.yY)(es,"mxw_100")} 100w,
18      ${(0,b.yY)(es,"mxw_192")} 192w,
19      ${(0,b.yY)(es,"mxw_200")} 200w,
20      ${(0,b.yY)(es,"mxw_480")} 480w,
21    `:`
22      ${(0,b.yY)(es,"mxw_100")} 1x,
23      ${(0,b.yY)(es,"mxw_200")} 2x,
24      ${(0,b.yY)(es,"mxw_320")} 3x
25    `;return ei&&es&&!i()(es)&&(0,c.preload)(ep,{as:"image",imageSrcSet:eb,imageSizes:eg,fetchPriority:"high"}),(0,a.jsxs)("article",{"data-testid":"product-tile",className:"group/product-tile border-[0.5px] border-grey-light hover:shadow-md hover:border-grey4 transition duration-200 relative rounded-xl",children:[(0,a.jsx)(k.default,{name:"WishlistToggle",fallback:null,children:(0,a.jsx)(p.default,{productId:M||O,buttonStyle:"border-[0.5px] border-grey-light flex-center absolute top-2 right-2 w-10 h-10 z-[1] rounded-full bg-white border transition duration-200 hover:!border-grey4"})}),(0,a.jsxs)("div",{className:"relative rounded-t-xl bg-grey7 p-4 h-[130px] min-xs:h-[210px] group-[.product-grid]:min-product-grid-lg:h-[176px] flex-center ",children:[(0,a.jsx)(m(),{href:et,className:"h-full",title:ea,prefetch:!0,children:es&&!i()(es)&&(0,a.jsx)("img",{src:ep,srcSet:eb,sizes:eg,alt:ea,width:eu,height:eu,"data-type-tile":`${t}-${s}-image`,loading:ei?"eager":"lazy",fetchPriority:ei?"high":"auto",className:`${!en?"opacity-20":""} w-full h-full object-contain`})}),en?null:(0,a.jsx)("span",{className:"absolute rounded bg-white font-medium px-[6px] py-[3px] uppercase block pointer-events-none",children:d("product.outOfStock")}),en?(0,a.jsx)("div",{className:"absolute top-2 left-2 gap-1 leading-none flex-col flex",children:(0,a.jsx)(N.lh,{large:!1,badges:ee,prices:e?.country_prices,id:T})}):null,(0,a.jsxs)("div",{className:"absolute bottom-2 left-2",children:[ec?(0,a.jsx)(w.A,{button:(0,a.jsx)(_.a,{confidenceSummary:e?._confidence_summary}),content:(0,a.jsxs)("div",{children:[eo&&(0,a.jsx)("div",{className:"pb-3 mb-3 border-b-[.5px]",children:(0,a.jsx)("span",{className:"font-medium leading-none",children:eo})}),em?.length>0&&(0,a.jsx)("ul",{className:"flex flex-col gap-2 mb-3",children:em.map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-2 items-start text-body-13",children:[(0,a.jsx)("span",{className:"text-sant2 shrink-0",children:"✓"}),(0,a.jsx)("span",{children:e.answer})]},t))}),ex?.length>0&&(0,a.jsx)("ul",{className:"flex flex-col gap-2",children:ex.map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-2 items-start text-body-13",children:[(0,a.jsx)("span",{className:"text-alimentation2 shrink-0",children:"⚠"}),(0,a.jsx)("span",{children:e.answer})]},t))})]})}):null,Y()&&S()&&"isdeal"===e.badge?(0,a.jsx)(N._X,{large:!1,memberDiscount:el.memberDiscount,standardDiscount:el.standardDiscount}):null]}),er?(0,a.jsx)("div",{className:"absolute bottom-2 right-2",children:(0,a.jsx)(v.z4,{data:e.origin_country,size:"small"})}):null]}),(0,a.jsxs)("div",{className:"justify-end flex flex-col w-full p-2 min-xs:p-4 bg-white rounded-b-xl",children:[(0,a.jsxs)("div",{className:"group-[.product-grid]:min-product-grid-lg:flex gap-2 items-center mb-2 flex justify-between h-4",children:[L&&L.name&&(0,a.jsx)("span",{className:"text-body-13 font-light leading-none line-clamp-1",children:L.name}),ed&&(0,a.jsx)("div",{className:"ml-auto",children:(0,a.jsx)(y.GW,{average_rating:Q,num_ratings:H})})]}),(0,a.jsxs)("div",{className:"h-[68px] mb-2",children:[(0,a.jsx)(m(),{className:"mb-1 block after:content-[''] after:absolute after:top-0 after:bottom-0 after:right-0 after:left-0 after:z-0",href:et,title:ea,children:(0,a.jsx)("div",{className:"text-body-15 font-medium line-clamp-2 text-wrap",children:e.highLight&&e.highLight.name?(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:`${e.highLight.name} ${e?.is_bio?d("bio"):""}`}}):(0,a.jsx)("span",{children:ea})})}
25),C()||I()||null!==e.yuka_score&&void 0!==e.yuka_score?(0,a.jsxs)("div",{className:"flex justify-between items-center gap-1 h-6",children:[(C()||I())&&(0,a.jsxs)("div",{className:"text-body-10 leading-none",children:[I()," ",!P&&C()&&`| ${C()}`]}),null!==e.yuka_score&&void 0!==e.yuka_score&&(0,a.jsx)($.$W,{score:e?.yuka_score,variant:"small"})]}):null]}),(0,a.jsxs)("div",{className:"flex justify-between flex-col gap-2",children:[n.cta||P?null:(0,a.jsx)("div",{className:"flex items-end flex items-center",children:(0,a.jsx)(y.cQ,{isDiscounted:Y(),prices:e})}),(0,a.jsx)("div",{className:"relative h-9",children:n.cta?n.cta(`${ea} ${I()}`,M):W?P?null:(0,a.jsx)(a.Fragment,{children:G?(0,a.jsx)(j.Ay,{className:"text-center leading-none",size:"md",link:f.Ay.giftcard(o,R),title:d("giftcard.add-to-basket"),children:d("giftcard.add-to-basket")}):(0,a.jsx)(a.Fragment,{children:en?(0,a.jsx)(k.default,{name:"EditQuantity",fallback:null,children:(0,a.jsx)(h.A,{isEditing:K,setIsEditing:V,qtyAddStep:e.quantity_adding_step,classes:`${0!==U||0===U&&K||K||e.sold_by_box_size&&Z>e.box_size?"":"h-9 w-full"}`,box_size:e.box_size,sold_by_box_size:e.sold_by_box_size,legacyId:e.legacyId,quantity:U,plusDisabled:Z<=0})}):(0,a.jsx)(k.default,{name:"NotifyMe",fallback:null,children:(0,a.jsx)(g.A,{productId:R,buttonClasses:"h-9 w-full",iconLabel:!1})})})}):""})]})]}),A&&A.isAdmin?(0,a.jsx)(y.MP,{data:e}):null]})})},84903:(e,t,s)=>{s.d(t,{default:()=>d});var a=s(95155),l=s(12115),i=s(48407);let n=e=>`${e.toFixed(2)} €`,r=(e,t)=>void 0!==e[t]?e[t]:e.prices?.[t]?.priceInclude,d=({prices:e,isDiscounted:t})=>{let{shippingCountry:s}=(0,i.Jd)(),d=s(),c=(0,l.useMemo)(()=>e?.country_prices?.[d]??e?.country_prices?.BE,[e,d]),{memberPrice:o,standardPrice:m,fullPrice:x}=(0,l.useMemo)(()=>c?{memberPrice:r(c,"promo_or_membership"),standardPrice:r(c,"promo_or_standard"),fullPrice:r(c,"standard")}:{memberPrice:void 0,standardPrice:void 0,fullPrice:void 0},[c]);if(!c||void 0===o)return null;let h=m;return t&&(h=x),(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,a.jsx)("span",{className:"text-body-17 font-medium !leading-none",children:n(o)}),(0,a.jsx)("div",{className:"rounded-md bg-sant4 w-8 h-6 flex-center",children:(0,a.jsx)("img",{src:"/logo/k-plus-logo-green.svg",className:"w-4",width:16,height:10,alt:"kazidomi membership logo"})})]}),o!==h&&(0,a.jsx)("span",{className:"text-body-13 font-light !leading-none line-through",children:n(h)})]})}},85983:(e,t,s)=>{s.d(t,{default:()=>x});var a=s(95155),l=s(12115),i=s(65739),n=s(48407),r=s(96337),d=s(61665),c=s(78512);let o="kazi_membership_choice",m=({membership:e=!1,isActive:t})=>{let s=`border-charcoal ${t?"bg-charcoal":"bg-white"}`,l=`border-sant1 ${t?"bg-sant1":"bg-white"}`;return(0,a.jsx)("div",{className:`w-5 h-5 border-2 flex-center rounded-full transition duration-300 ${e?l:s}`,children:t&&(0,a.jsx)(c.A,{name:"Check",strokeWidth:3,size:12,color:"white","aria-hidden":!0})})},x=({data:e})=>{let t=(0,d.useTranslations)(),{shippingCountry:s}=(0,n.Jd)(),{getPromoDate:c}=(0,n.Bj)(e),{handleUpdateMembership:x}=(0,n.Ez)(),[h,u]=(0,l.useState)(!0);(0,l.useEffect)(()=>{try{let e=localStorage.getItem(o);null!==e&&u("true"===e)}catch{}},[]);let p=e=>{try{localStorage.setItem(o,String(e))}catch{}u(e)},{incrementQuantity:g}=(0,n.DT)({legacyId:e?.legacyId,qtyAddStep:e?.quantityAddingStep}),b=s(),f=Object.keys(e.country_prices??{})[0],j=e.country_prices?.BE?"BE":f;if(!j||!e.country_prices?.[j])return null;let y=e.country_prices[j].prices,v=y.promo_or_standard,N=y.promo_or_membership,w=y.promo_or_membership.reduction_amount,_=y.membership.reduction_amount,k=y.promo_or_standard.reduction_amount;void 0!==e.country_prices[b]&&(v=(y=e.country_prices[b].prices).promo_or_standard,N=y.promo_or_membership,w=y.promo_or_membership.reduction_amount,_=y.membership.reduction_amount,k=y.promo_or_standard.reduction_amount);let $=v.priceInclude-N.priceInclude,A={title:e?.title,memberPrice:N.priceInclude,standardPrice:v.priceInclude,savings:$},z=async()=>{await x(!0),g()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex gap-4 mt-4 w-full",children:[(0,a.jsxs)("div",{className:"relative w-3/5",children:[(0,a.jsx)("div",{className:"absolute bottom-4 right-4",children:(0,a.jsx)(r.hz,{data:A})}),(0,a.jsxs)("button",{title:t("product.price.get_member_price_title"),onClick:()=>p(!0),className:`w-full flex-col flex rounded-xl p-4 border-2 transition duration-300 hover:bg-sant5 hover:border-sant1 ${h&&"bg-sant5 border-sant1"}`,children:[(0,a.jsx)("div",{className:"absolute bg-sant1 text-white px-3 py-1 leading-none rounded-full right-4 -top-3",children:(0,a.jsx)("span",{className:"text-body-13",children:t("product.price.save_amount",{amount:$.toFixed(2)})})}),(0,a.jsxs)("div",{className:"flex gap-2 mb-2 items-center",children:[(0,a.jsx)(m,{isActive:h,membership:!0}),(0,a.jsxs)("div",{className:"text-body-15 font-medium h-[30px] flex items-center text-left gap-2",children:[(0,a.jsx)("img",{className:"w-[30px]",fetchPriority:"high",loading:"eager",src:"/logo/k-plus-logo-green.svg",width:30,height:19,alt:"kazidomi membership logo"}),t("product.price.with_membership")]})]}),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-1",children:[(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsxs)("span",{className:"text-heading-30 font-faro shrink-0",children:[N.priceInclude.toFixed(2)," €"]}),(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:w?(0,a.jsxs)("div",{className:"px-2 py-1 font-medium rounded-full leading-none text-body-15 bg-alimentation2",children:["-",w,"%"]}):(0,a.jsxs)("div",{className:"px-2 py-1 font-medium rounded-full leading-none text-body-15 text-white bg-sant1",children:["-",_,"%"]})})]}),(0,a.jsx)("span",{className:"block font-medium text-body-13",children:c("membership")}),(0,a.jsx)("span",{className:"text-body-10 block mt-2",children:t("product.price.membership_billing_detail")})]})]})]}),(0,a.jsxs)("button",{title:t("product.price.buy_at_standard_price"),onClick:()=>p(!1),className:`flex-col flex rounded-xl hover:bg-tint-12 hover:border-charcoal border-2 p-4 transition duration-300 w-2/5 ${!h&&"bg-tint-12 border-charcoal"}`,children:[(0,a.jsxs)("div",{className:"flex gap-2 mb-2 items-center",children:[(0,a.jsx)(m,{isActive:!h}),(0,a.jsx)("span",{className:"text-body-15 font-medium h-[30px] flex items-center text-left",children:t("product.price.without_membership")})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"text-body-21 font-faro block text-start shrink-0",children:[v.priceInclude.toFixed(2)," €"]}),(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:k?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"px-2 py-1 font-medium rounded-full leading-none text-body-15 bg-alimentation2",children:["-",k,"%"]})}):null})]}),(0,a.jsx)("span",{className:"block font-medium text-body-13 text-left mt-1",children:c("standard")})]})]}),h?(0,a.jsx)(i.Ay,{onClick:z,variant:"membership",size:"2xl",className:"text-base font-medium w-full",children:t("product.price.j
25oin_and_add_to_cart",{price:N.priceInclude.toFixed(2)})}):(0,a.jsx)("div",{className:"h-[60px] w-full",children:(0,a.jsx)(r.Rx,{data:e})})]})}},88040:(e,t,s)=>{s.d(t,{default:()=>r});var a=s(95155);s(12115);var l=s(65739),i=s(74903),n=s(48407);let r=({data:e})=>{let[t,s]=(0,i.eY)(!1),{setQuantity:r}=(0,n.DT)({legacyId:e.legacyId,isFresh:e.is_fresh,qtyAddStep:e.quantity_adding_step});return(0,a.jsxs)("div",{className:"mt-spacing-2 sm:hidden",children:[(0,a.jsxs)("ul",{className:"text-body-13",style:{backgroundColor:"#fff9eb",padding:"3px"},children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"SF id: "}),e._id]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"PS id: "}),e.legacyId]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Date activation: "}),e.activated_date]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"To delete: "}),e.to_delete?"Oui ("+e.to_delete_reason+")":"Non"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Nombre de ventes: "}),e.counter_sales]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Nombre de ventes dans les 6 mois: "}),e.counter_sales_6_months]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Nombre de ventes hors b2b: "}),e.counter_sales_without_b2b]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Stock disponible: "}),e.available_stock]})]}),(0,a.jsxs)("ul",{className:"text-body-13",style:{backgroundColor:"#fff5Fb",padding:"3px"},children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Box Size: "}),e.box_size]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Reference: "}),e.reference]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Supplier reference: "}),e.supplier_reference]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"eanPrimary: "}),e.eanPrimary]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"eanSecondary: "}),e.eanSecondary]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"EanBox: "}),e.eanBox]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Date limite estim\xe9e: "}),e.estimated_date_limit_months]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Service Level: "}),e.service_level]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Code HS: "}),e.code_hs]})]}),(0,a.jsxs)("ul",{className:"text-body-13",style:{backgroundColor:"#fff9eb",padding:"3px"},children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"D\xe9j\xe0 achet\xe9: "}),e.already_buy?"Oui":"Non"]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Score: "}),e._score]})]}),(0,a.jsx)(l.Ay,{size:"sm",className:"w-full relative z-[1] mt-spacing-1",onClick:()=>r(e.box_size),children:"Add box size"}),e.highlight?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"text-body-13 my-spacing-05 text-center w-full rounded bg-tint-48 py-spacing-1 px-spacing-05 relative z-[1]",onClick:s,children:[t?"Cacher":"Afficher"," les highlights"]}),t?(0,a.jsx)("ul",{children:Object.keys(e.highLight).map((t,s)=>(0,a.jsx)("li",{className:"mb-spacing-1",children:Object.keys(e.highLight[t]).map(s=>(0,a.jsx)("span",{className:"text-body-15 block product-highlight",dangerouslySetInnerHTML:{__html:`<strong class="block">${t}:</strong> ${e.highLight[t][s].replaceAll(",",", ")}`}},s))},`${s}-highlight`))}):null]}):null]})}},92847:(e,t,s)=>{s.d(t,{default:()=>m});var a=s(95155),l=s(12115),i=s(25940),n=s(3427),r=s(90661),d=s(93988),c=s(22768),o=s(61665);let m=({product:e})=>{let t;t=(0,i.useGlobalStore)(e=>e.addRecentProduct),(0,l.useEffect)(()=>{var s;if(!e?.id)return;t(e);let a=(0,r.j)(localStorage.getItem("recentProducts"),[],"use-track-product-view:recentProducts"),l=[e.id,...a.filter(t=>t!==e.id)].slice(0,n.ON);localStorage.setItem("recentProducts",JSON.stringify(l)),s={ProductName:e.name,ProductID:e.legacyId,ImageURL:e.image,URL:window.location.href,Brand:e.brand?.name},(window._learnq=window._learnq||[]).push(["track","Viewed Product",s])},[e?.id,t]);let s=(0,o.useTranslations)(),{products:m,loading:x}=function(){let e=(0,o.useLocale)(),t=(0,i.useGlobalStore)(e=>e.recentProducts),s=(0,i.useGlobalStore)(e=>e.recentProductsHydrated),a=(0,i.useGlobalStore)(e=>e.hydrateRecentProducts),[d,m]=(0,l.useState)(!s);return(0,l.useEffect)(()=>
25{if(s)return void m(!1);let t=(0,r.j)(localStorage.getItem("recentProducts"),[],"use-recent-products:recentProducts");if(!t.length){a([]),m(!1);return}let l=!1;m(!0);let i={indexes:[`KAZIDOMI2_ai_product_${e}`],related_product_ids:t.join(","),maxResults:n.ON};return(0,c.Z)(e,i).then(e=>{if(l)return;let{hits:t=[]}=e[0];a(t)}).catch(()=>{l||a([])}).finally(()=>{l||m(!1)}),()=>{l=!0}},[s,a]),{products:t,loading:d}}();return x?(0,a.jsx)("div",{className:"max-w-[1800px] container my-10 min-h-[377px] min-sm:min-h-[461px]"}):m.length?(0,a.jsx)("div",{className:"max-w-[1800px] container my-10 min-h-[377px] min-sm:min-h-[461px]",children:(0,a.jsx)(d.default,{titleClasses:"text-left w-full text-heading-30",slideClasses:"min-xl:basis-[calc((100%-5*12px)/6)]",title:s("carousel.product-page.recent-products"),products:m})}):null}},93988:(e,t,s)=>{s.r(t),s.d(t,{default:()=>c});var a=s(95155),l=s(35799),i=s.n(l);s(12115);var n=s(14990),r=s(97366),d=s(36651);let c=({highPriorityImages:e,title:t,products:s,promoTile:l,titleClasses:c,slideClasses:o,headingClasses:m="",variant:x,showMore:h,classes:u,carouselClasses:p,expand:g=!0,keyProps:b,controlPosition:f,subTitle:j,...y})=>s?.length?(0,a.jsx)("div",{className:`product-carousel-root group ${u} ${"section"===x?"cms-bloc-spacing overflow-visible container":null}`,children:(0,a.jsxs)(n.FN,{subTitle:j,controlPosition:f,classes:`min-xs:!gap-3 ${p??""}`,headingClasses:m,title:t,titleClasses:`${"section"===x&&"text-center w-full"} ${c}`,expand:g,children:[l?(0,a.jsx)("li",{className:`shrink-0 w-[190px] min-xs:w-[220px] snap-start ${o}`,children:(0,a.jsx)(r.Yh,{data:l})}):null,s.map((t,s)=>{let l=i()(t,"item.attributes",t);return(0,a.jsx)("li",{className:`shrink-0 w-[190px] min-xs:w-[250px] snap-start ${o}`,"aria-roledescription":"slide",children:(0,a.jsx)(d.default,{name:"ProductTile",fallback:null,children:(0,a.jsx)(r.Ay,{priority:e&&s<=3?"high":"low",data:l,size:"small",...y.cta&&{cta:y.cta}})})},`${t.id}-${s}-${b}`)})]})}):null},95397:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r});var a=s(95155),l=s(12115),i=s(47765),n=s.n(i);let r=({children:e,tabs:t,title:s,openFirst:i})=>{let[r,d]=(0,l.useState)(t?t[0].title:null),[c,o]=(0,l.useState)(i),m=()=>{o(e=>!e)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative  transition-[margin] duration-300",children:[(0,a.jsx)("h2",{className:`text-body-17 pr-spacing-3 py-spacing-2  ${c&&t?"border-transparent":""}`,children:(0,a.jsx)("button",{"aria-controls":n()(s),"aria-expanded":c,type:"button",onClick:m,children:s})}),(0,a.jsx)("button",{"aria-controls":n()(s),"aria-expanded":c,type:"button",onClick:m,className:"absolute top-0 right-0 flex-center w-spacing-3 h-full",children:(0,a.jsx)("img",{src:"/icons/arrow-down.svg",alt:"open",className:`${c?"":"-rotate-90 "} transition`,width:17,height:17,loading:"lazy"})})]}),(0,a.jsx)("div",{id:n()(s),"aria-hidden":!c,className:`${c?"grid-rows-[1fr]":"grid-rows-[0fr]"} grid transition-[grid-template-rows] duration-300`,children:(0,a.jsx)("div",{className:"overflow-hidden border-b border-grey6",children:(0,a.jsxs)("div",{className:"pb-spacing-2",children:[t?(0,a.jsx)("div",{className:"mb-spacing-3 border-b-[.5px] border-charcoal",children:(0,a.jsx)("ul",{className:"overflow-x-scroll w-full whitespace-nowrap flex gap-spacing-1",children:t.map(e=>(0,a.jsx)("li",{className:"product-bloc-content__tab",children:(0,a.jsx)("h3",{children:(0,a.jsx)("button",{onClick:()=>d(e.title),className:`text-body-15 font-medium pb-spacing-1 border-b-[3px] border-transparent
26                                                            ${r===e.title?"!border-generic2":""}`,children:e.title})})},e.title))})}):null,t?(0,a.jsx)(a.Fragment,{children:t.filter(e=>e.title===r).map(e=>(0,a.jsx)("div",{className:"product-bloc-content__content-tab",children:(0,a.jsx)("div",{className:"text-body-15 font-light",children:e.content})},`tab - ${e}`))}):(0,a.jsx)(a.Fragment,{children:e})]})})})]})}},96337:(e,t,s)=>{s.d(t,{z4:()=>n,hz:()=>l.default,aQ:()=>r.default,Rx:()=>i.default});var a=s(95155);s(12115),s(85870),s(50003),s(72733),s(48178),s(20713),s(95397),s(38398),s(16613),s(55824),s(47784),s(4299),s(49205),s(9460),s(1255),s(31176),s(49078),s(4868);var l=s(368);s(39174),s(67672);var i=s(44883);s(31990),s(79011),s(44661);let n=({data:e,size:t})=>{let s=e.slice(0,2).toUpperCase();return(0,a.jsx)("picture",{className:`block rounded-full overflow-hidden ${"small"===t?"w-4 h-4":"w-8 h-8"}`,children:(0,a.jsx)("img",{src:`/flags/${s}-rounded.svg`,alt:e,width:32,height:32})})};s(32728),s(92847);var r=s(85983);s(59666),s(9585)},97366:(e,t,s)=>{s.d(t,{MP:()=>m.default,cQ:()=>r.default,hO:()=>h.default,WK:()=>n,QB:()=>i,Yh:()=>o,GW:()=>x,Ay:()=>a.default});var a=s(80057);s(16869);var l=s(95155);s(12115);let i=({classes:e})=>(0,l.jsx)("div",{className:`skeleton-box h-[297px] min-xs:h-[411px] rounded-xl ${e}`}),n=({hitsCount:e=32,classes:t})=>(0,l.jsx)("ul",{className:`product-grid grid lg:mx-[-24px] md:mx-[-24px] xs:mx-[-16px] ${t}`,children:Array.from(Array(e).keys()).map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(i,{})},`loading-tile-${e}`))});var r=s(84903),d=s(48178),c=s(50003);let o=({data:e})=>{let{label:t,url:s,image:a}=e,i=(0,d.v3)(a?.data?.attributes);return(0,l.jsx)(c.default,{href:s,title:t,className:"relative overflow-hidden rounded-xl w-full h-full block group/hit-banner border-[0.5px] border-transparent hover:shadow-md hover:!border-grey4 transition duration-200",children:(0,l.jsx)("img",{src:(0,d.yY)(i.url),alt:t,width:i.width||156,height:i.height||156,className:"w-full h-full object-cover absolute group-hover/hit-banner:scale-110 transition duration-200"})})};var m=s(88040);let x=({average_rating:e,num_ratings:t})=>{let s=`${Number(e).toFixed(1)}`;return(0,l.jsxs)("div",{className:"flex gap-0.5 items-center",children:[(0,l.jsx)("img",{src:(0,d.yY)("/icons/star-full.svg","mxw_13"),alt:"Reviews.io",width:13,height:13,loading:"lazy"}),(0,l.jsx)("span",{className:"block text-body-12 font-medium",children:s}),(0,l.jsxs)("span",{className:"block text-body-12 font-light",children:["(",t,")"]})]})};var h=s(99869)},99869:(e,t,s)=>{s.d(t,{default:()=>$});var a=s(95155),l=s(97810),i=s.n(l),n=s(35799),r=s.n(n),d=s(12115),c=s(98500),o=s.n(c),m=s(61665),x=s(35976),h=s(48407),u=s(24667),p=s(59600),g=s(48178),b=s(72733),f=s(65739),j=s(97366),y=s(96337),v=s(11646),N=s(46876),w=s(52095),_=s(36651),k=s(64603);let $=d.memo(({data:e,layout:t,size:s,priority:l,...n})=>{let d=(0,m.useTranslations)(),c=(0,m.useLocale)(),{user:$,shippingCountry:A,isMember:z}=(0,h.Jd)(),{getQuantityWithUnit:S,getPriceByUnit:I,isProductInCart:C,isDiscounted:F,isB2bBlocked:Y}=(0,h.Bj)(e),{name:P,badge:T,image1:D,brand:E,hide_price_membership:L,URL:q,_id:B,id:M,legacyId:O,is_gift_card:R,visible:G,rating:W}=e,{average_rating:J,num_ratings:Q}=W??{}
26,H=e.available_stock??("number"==typeof e.stock?e.stock:void 0)??(!1!==e.active&&"not-available"!==T?e.quantity_adding_step??1:0),{currentQuantity:X,isEditing:U,setIsEditing:K,availableStock:V}=(0,h.DT)({legacyId:e.legacyId,isFresh:e.is_fresh,qtyAddStep:e.quantity_adding_step,initialStock:H,initialAvailableForOrder:!1!==e.active&&"not-available"!==T&&H>0}),Z=q?q.replace("https://www.kazidomi.com",""):"",ee=D||e.image,et=`${P} ${e?.is_bio?d("bio"):""}`,es=e.country_prices.BE;void 0!==e.country_prices[A()]&&(es=e.country_prices[A()]);let ea=r()(e,`country_prices[${A()}].prices.promo_or_standard.date_end`,""),el="high"===l,ei=V>0&&"not-available"!==T||C,en=e?.origin_country&&(e?.origin_country==="FR"||e?.origin_country==="BE"),er=Number(J)>0&&Number(Q)>0,ed=e?._badge_ai??null,ec=e?._badge_ai_translated??null,eo=e?._positive_notes??null,em=e?._negative_notes??null,ex="grid"===t,eh=ex?176:100,eu=(0,g.yY)(ee,`mxw_${ex?192:100}`),ep=ex?`
27      ${(0,g.yY)(ee,"mxw_100")} 100w,
28      ${(0,g.yY)(ee,"mxw_192")} 192w,
29      ${(0,g.yY)(ee,"mxw_200")} 200w,
30      ${(0,g.yY)(ee,"mxw_480")} 480w,
31    `:`
32      ${(0,g.yY)(ee,"mxw_100")} 1x,
33      ${(0,g.yY)(ee,"mxw_200")} 2x,
34      ${(0,g.yY)(ee,"mxw_320")} 3x
35    `;return(0,a.jsxs)("article",{className:"group border-[0.5px] border-grey-light flex transition duration-200 hover:shadow-md hover:border-grey4 relative rounded-xl",children:[(0,a.jsx)(_.default,{fallback:null,name:"WishlistLandscape",children:(0,a.jsx)(u.default,{productId:B||M,buttonStyle:"flex-center absolute top-2 right-2 w-8 h-8 z-[1] rounded-full bg-white border transition duration-200 border-transparent hover:!border-grey-light"})}),(0,a.jsxs)("div",{className:"relative rounded-l-xl bg-grey7 p-4 w-[120px] min-sm:w-[150px] min-product-page:w-[120px] min-product-grid-lg:w-[150px] shrink-0 flex-center ",children:[(0,a.jsx)(o(),{href:Z,className:"h-full",title:et,prefetch:!0,children:ee&&!i()(ee)&&(0,a.jsx)("img",{src:eu,srcSet:ep,sizes:ex?"(min-width: 1100px) 176px, 100px":"100px",alt:et,width:eh,height:eh,"data-type-tile":`${t}-${s}-image`,loading:el?"eager":"lazy",fetchPriority:el?"high":"auto",className:`${!ei?"opacity-20":""} w-full max-h-[150px] h-full object-contain`})}),ei?null:(0,a.jsx)("span",{className:"absolute rounded bg-white font-medium px-[6px] py-[3px] uppercase block pointer-events-none text-center",children:d("product.outOfStock")}),ei?(0,a.jsx)("div",{className:"absolute top-2 left-2 gap-1 leading-none flex-col flex",children:(0,a.jsx)(v._8,{classes:"!rounded-full !px-2",badge:e.badge,discountDate:ea})}):null,(0,a.jsxs)("div",{className:"absolute bottom-2 left-2",children:[ed?(0,a.jsx)(N.A,{button:(0,a.jsx)(w.a,{confidenceSummary:e?._confidence_summary}),content:(0,a.jsxs)("div",{children:[ec&&(0,a.jsx)("div",{className:"pb-3 mb-3 border-b-[.5px]",children:(0,a.jsx)("span",{className:"font-medium leading-none",children:ec})}),eo?.length>0&&(0,a.jsx)("ul",{className:"flex flex-col gap-2 mb-3",children:eo.map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-2 items-start text-body-13",children:[(0,a.jsx)("span",{className:"text-sant2 shrink-0",children:"✓"}),(0,a.jsx)("span",{children:e.answer})]},t))}),em?.length>0&&(0,a.jsx)("ul",{className:"flex flex-col gap-2",children:em.map((e,t)=>(0,a.jsxs)("li",{className:"flex gap-2 items-start text-body-13",children:[(0,a.jsx)("span",{className:"text-alimentation2 shrink-0",children:"⚠"}),(0,a.jsx)("span",{children:e.answer})]},t))})]})}):null,F()&&z()&&"isdeal"===e.badge?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(v._X,{large:!1,memberDiscount:es.memberDiscount,standardDiscount:es.standardDiscount})}):null]}),en?(0,a.jsx)("div",{className:"absolute bottom-2 right-2",children:(0,a.jsx)(y.z4,{data:e.origin_country,size:"small"})}):null]}),(0,a.jsxs)("div",{className:"justify-end flex flex-col w-full p-4 bg-white rounded-r-xl",children:[(0,a.jsx)("div",{className:"group-[.product-grid]:min-product-grid-lg:flex gap-2 items-center mb-2 flex justify-between",children:E&&E.name&&(0,a.jsx)("span",{className:"text-body-13 font-light leading-none line-clamp-1",children:E.name})}
35),null!==e.yuka_score&&void 0!==e.yuka_score?(0,a.jsx)("div",{className:"mb-2 relative z-[1]",children:(0,a.jsx)(k.$W,{score:e?.yuka_score,variant:"small"})}):null,(0,a.jsxs)("div",{className:"h-[53px] mb-2",children:[(0,a.jsx)(o(),{className:"mb-1 block after:content-[''] after:absolute after:top-0 after:bottom-0 after:right-0 after:left-0 after:z-0",href:Z,title:et,children:(0,a.jsx)("div",{className:"text-body-15 font-medium line-clamp-2 text-wrap",children:e.highLight&&e.highLight.name?(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:`${e.highLight.name} ${e?.is_bio?d("bio"):""}`}}):(0,a.jsx)("span",{children:et})})}),(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[I()||S()?(0,a.jsxs)("div",{className:"text-body-10 leading-none",children:[S()," ",!Y&&I()&&`| ${I()}`]}):null,er&&(0,a.jsx)("div",{className:"ml-auto",children:(0,a.jsx)(j.GW,{average_rating:J,num_ratings:Q})})]})]}),(0,a.jsxs)("div",{className:"flex justify-between flex-col gap-2",children:[n.cta||Y?null:(0,a.jsx)("div",{className:"flex items-end flex items-center",children:(0,a.jsx)(j.cQ,{isDiscounted:F(),prices:e})}),(0,a.jsx)("div",{className:"relative h-9",children:n.cta?n.cta(`${et} ${S()}`,B):G?Y?null:(0,a.jsx)(a.Fragment,{children:R?(0,a.jsx)(f.Ay,{className:"text-center leading-none",size:"md",link:b.Ay.giftcard(c,O),title:d("giftcard.add-to-basket"),children:d("giftcard.add-to-basket")}):(0,a.jsx)(a.Fragment,{children:ei?(0,a.jsx)(_.default,{name:"EditQuantityLandscape",fallback:null,children:(0,a.jsx)(x.A,{isEditing:U,setIsEditing:K,qtyAddStep:e.quantity_adding_step,classes:`${0!==X||0===X&&U||U||e.sold_by_box_size&&V>e.box_size?"":"h-9 w-full"}`,box_size:e.box_size,sold_by_box_size:e.sold_by_box_size,legacyId:e.legacyId,quantity:X,plusDisabled:V<=0})}):(0,a.jsx)(_.default,{name:"NotifyMeLandscape",fallback:null,children:(0,a.jsx)(p.A,{productId:O,buttonClasses:"h-9 w-full",iconLabel:!1})})})}):""})]})]}),$&&$.isAdmin?(0,a.jsx)(j.MP,{data:e}):null]})})}}]);

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.