import{S as B}from"./swiper-core-KMhvhzce.js";import{S as D}from"./scrollbar-Dd9IoCR7.js";import{S as I,a as N}from"./swiper-vue-B4GuJSWe.js";import{_ as x}from"./ButtonChevron.vue_vue_type_script_setup_true_lang-8Ahf7bt1.js";import{g as $,j as T,n as A,i as P}from"./index-BRMV7KFd.js";import j from"./ButtonFavorite-C2GbfENc.js";import{N as V,D as b,I as W,A as F,o as r,e as m,f as a,k as i,l as _,F as L,B as Z,g as l,n as q,C as E,t as c,v,m as u}from"./vendor-CI5NvTnj.js";const H={class:"row mx-0 w-100 mb-0 flex-nowrap flex-grow-1 h-auto no-gutters mb-0 list-unstyled"},K={class:"product-item product-item--secondary relative d-flex flex-col flex-grow-1 p-2 p-sm-3 p-md-4 p-lg-0 relative"},M={class:"px-lg-4 px-xl-7 text-lg-center text-sm"},U={class:"product-item__title mb-0 mb-lg-2 h5 font-weight-medium font-family-base"},G={key:0,class:"mb-2 d-none d-lg-block"},J={class:"form-row mt-auto items-center pt-1 pt-lg-0 line-height-sm text-lg-center text-nowrap justify-center"},O={class:"col-5 col-lg-12 pt-2"},Q={class:"row justify-center"},R={class:"col-12 col-lg-auto"},X={class:"product-item__price h5 mb-0 font-family-base font-bold"},Y={class:"product-item__grammage h5 mb-0 font-family-base font-normal text-muted"},ee={class:"col-12 col-lg-7 pt-2 d-flex flex-col d-lg-block zindex-2"},te={class:"absolute position-top position-right p-1 p-0 mr-lg-3 mt-lg-3"},oe={class:"absolute position-top position-left mt-8 pt-6 pt-xl-8 ml-1 d-none d-lg-block zindex-11"},ae={class:"absolute position-top position-right mt-8 pt-6 pt-xl-8 mr-n3 d-none d-lg-block zindex-11"},ne=V({__name:"Carousel",props:{showAddToCartButton:{type:Boolean,default:!0},detailButtonLabel:{type:String,default:""},slides:{type:Array,default:()=>[]},showDescText:{type:Boolean,default:!0},sliderId:{type:String,default:"favorite-mixes-wrapper"}},setup(n){B.use([D]);const s=n,t=b(0),e=b(),z=()=>{e.value.slidePrev()},y=()=>{e.value.slideNext()},S=()=>{t.value=e.value.activeIndex};return W(()=>{var d;e.value=document.querySelector(`#${s.sliderId}`).swiper,(d=e.value.scrollbar)==null||d.updateSize()}),(d,re)=>{const C=F("router-link");return r(),m("div",null,[a("div",H,[i(u(N),{id:n.sliderId,class:"row w-100 flex-grow-1 h-auto no-gutters mb-0 list-unstyled","slides-per-view":"auto",scrollbar:{draggable:!0,hide:!1},onSlideChange:S},{default:_(()=>[(r(!0),m(L,null,Z(n.slides,o=>(r(),l(u(I),{key:o.id,class:"col-6 col-sm-5 col-md-4 d-flex flex-col pl-2 pl-md-3 pl-lg-4 pl-xl-5 pl-xxl-6 h-auto"},{default:_(()=>{var p,g,f,h,w;return[a("article",K,[a("div",{class:q(["product-item__image embed-responsive mb-4 mb-lg-3",{"no-padding-height":!((p=o.images[0])!=null&&p.has_padding)}])},[o.images?(r(),l($,{key:0,"product-image-data":(g=o.images[0])==null?void 0:g.data,"img-class":`embed-responsive-item relative bg-white ${(f=o.images[0])!=null&&f.has_padding?"image-contain":"image-cover p-0"}`,alt:((h=o.images[0])==null?void 0:h.alt)||((w=o.images[0])==null?void 0:w.label),sizes:"(min-width: 1200px) 25vw, (min-width: 992px) 20vw, (min-width: 600px) 35vw, (min-width: 500px) 50vw, 70vw"},null,8,["product-image-data","img-class","alt"])):(r(),l(T,{key:1,src:o.imageUrl,"img-class":"embed-responsive-item relative image-contain bg-white",alt:o.name},null,8,["src","alt"]))],2),a("div",M,[a("h3",U,[i(C,{to:{name:"productPath",params:{permalink:o.permalink}},class:"no-decoration stretched-link zindex-1"},{default:_(()=>[E(c(o.name),1)]),_:2},1032,["to"])]),n.showDescText?(r(),m("p",G,c(o.description),1)):v("",!0)]),a("div",J,[a("div",O,[a("div",Q,[a("div",R,[a("span",X,c(u(A)(o.price,o.currency)),1),a("span",Y," / "+c(o.weight)+" g ",1)])])]),a("div",ee,[n.showAddToCartButton?(r(),l(P,{key:0,product:o},null,8,["product"])):v("",!0)])]),a("div",te,[i(j,{id:o.id,"btn-class":"p-lg-2 stretched-link bg-white"},null,8,["id"])])])]}),_:2},1024))),128))]),_:1},8,["id"])]),a("div",oe,[i(x,{direction:"l",class:"btn-warning text-primary p-4","aria-label":"Previous slide",onClick:z})]),a("div",ae,[i(x,{direction:"r",class:"btn-warning text-primary p-4","aria-label":"Next slide",onClick:y})])])}}});function k(n){const s=n;s.__i18n=s.__i18n||[],s.__i18n.push({locale:"",resource:{cs:{add_new_to_cart:t=>{const{normalize:e}=t;return e(["PĹ™idat do košĂku"])},to_cart:t=>{const{normalize:e}=t;return e(["Do košĂku"])}},sk:{add_new_to_cart:t=>{const{normalize:e}=t;return e(["PridaĹĄ do košĂka"])},to_cart:t=>{const{normalize:e}=t;return e(["Do košĂka"])}},pl:{add_new_to_cart:t=>{const{normalize:e}=t;return e(["Dodaj do koszyka"])},to_cart:t=>{const{normalize:e}=t;return e(["Do koszyka"])}},hu:{add_new_to_cart:t=>{const{normalize:e}=t;return e(["Hozzáadás a kosárhoz"])},to_cart:t=>{const{normalize:e}=t;return e(["Kosárba"])}},de:{add_new_to_cart:t=>{const{normalize:e}=t;return e(["In den Warenkorb"])},to_cart:t=>{const{normalize:e}=t;return e(["Zum Warenkorb"])}},at:{add_new_to_cart:t=>{const{normalize:e}=t;return e(["In den Warenkorb"])},to_cart:t=>{const{normalize:e}=t;return e(["Zum Warenkorb"])}},ro:{add_new_to_cart:t=>{const{normalize:e}=t;return e(["AdaugÄ Ă®n coČ™"])},to_cart:t=>{const{normalize:e}=t;return e(["ĂŽn coČ™"])}}}})}typeof k=="function"&&k(ne);export{ne as _};