1import{_ as k}from"./Item.vue.9bad2a72.js";import{a as b,S as P}from"./vue-splide.esm.cc2bd309.js";import{h as B,r as p,j as V,o as d,c as m,e as g,d as v,f as h,F as w,p as N,k as _,l as f,n as q,t as M,m as O}from"./entry.0fd59316.js";function u(s){let n,l=s[0],t=1;for(;t<s.length;){const o=s[t],i=s[t+1];if(t+=2,(o==="optionalAccess"||o==="optionalCall")&&l==null)return;o==="access"||o==="optionalAccess"?(n=l,l=i(l)):(o==="call"||o==="optionalCall")&&(l=i((...c)=>l.call(n,...c)),n=void 0)}return l}const D={key:0,class:"container products-container--capsules-text"},T={class:"row"},W={class:"col-md-5"},L=B({__name:"ProductSlider",props:{products:Array,modelValue:{type:Number,required:!1},showDetails:{type:Boolean,default:!0},caseWheel:{type:Boolean,required:!1},showCapsulesText:{type:String,required:!1},areSubcategories:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(s,{emit:n}){const l=s,t=p(null),o=p(!1),i=V({get:()=>l.modelValue,set:r=>n("update:modelValue",r)}),c=p(0),y={perPage:2.7,gap:"3rem",speed:1200,pagination:!0,arrows:!1,easing:"ease",updateOnMove:!0,isNavigation:!0,breakpoints:{768:{perPage:1.2,gap:"0.75rem"},992:{perPage:1.3}}},S={perPage:2.5,gap:"3.5rem",speed:1200,pagination:!0,arrows:!1,easing:"ease",isNavigation:!0,updateOnMove:!0,breakpoints:{768:{perPage:1,gap:"0.75rem"},992:{perPage:1.3},1400:{perPage:2.1}}},x=()=>{u([t,"access",a=>a.value,"optionalAccess",a=>a.splide,"optionalAccess",a=>a.index])>c.value?o.value=!0:o.value=!1,c.value=u([t,"access",a=>a.value,"optionalAccess",a=>a.splide,"optionalAccess",a=>a.index]);const r=t.value.splide.Components.Controller.getEnd()+1;t.value.splide.index===0?i.value=0:i.value=Math.min((t.value.splide.index+1)/r,1)};return(r,a)=>{const A=k;return d(),m(w,null,[g("div",{class:q(["products-container",{"products-container--rotated":f(o),"products-container--subcategory":s.areSubcategories}])},[v(f(P),{ref_key:"splide",ref:t,options:u([s,"access",e=>e.products,"access",e=>e[0],"optionalAccess",e=>e.options,"optionalAccess",e=>e.wide_images])?S:y,"onSplide:move":x},{default:h(()=>[(d(!0),m(w,null,N(s.products,(e,C)=>(d(),_(f(b),{key:`product-${e.id}`},{default:h(()=>
1[v(A,{product:e,"show-details":s.showDetails,"case-wheel":s.caseWheel,"data-speed":.5*C,subcategory:s.areSubcategories},null,8,["product","show-details","case-wheel","data-speed","subcategory"])]),_:2},1024))),128))]),_:1},8,["options"])],2),s.showCapsulesText&&u([s,"access",e=>e.products,"access",e=>e[0],"optionalAccess",e=>e.options,"optionalAccess",e=>e.wide_images])?(d(),m("div",D,[g("div",T,[g("span",W,M(s.showCapsulesText),1)])])):O("",!0)],64)}}});export{L as _};
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.