import{d,r as m,f as s,x as g,h as c,F as n,y as l,o as t,g as o,V as h,aG as p,bR as f,A as v,_ as y}from"./BxiWQxwE.js";const $={class:"carousel__wrapper"},k={key:0,class:"logos"},b=["src","alt"],x={class:"carousel__content"},C=["src","alt"],I={class:"carousel__selector"},w=500,A=500,B="crop",D=d({__name:"carousel",props:{images:{type:Array,required:!0},logos:{type:Array,required:!0}},setup(a){const i=m(0),u=h();return(E,H)=>(t(),s("div",$,[a.logos.length>0?(t(),s("div",k,[(t(!0),s(n,null,l(a.logos,e=>(t(),s("img",{key:e.image,src:`${o(u).public.files}/${e.image}`,alt:e.description,loading:"lazy"},null,8,b))),128))])):g("",!0),c("div",x,[(t(!0),s(n,null,l(a.images,(e,r)=>(t(),s("div",{key:`image--${e.alt}-${r}`,class:"carousel__content--item"},[p(c("img",{src:`${o(u).public.files}/${e.image}?width=${w}&height=${A}&mode=${B}`,alt:e.alt},null,8,C),[[o(f),[([{isIntersecting:_}])=>_?i.value=r:null,{threshold:.6}]]])]))),128))]),c("div",I,[(t(!0),s(n,null,l(a.images,(e,r)=>(t(),s("span",{key:e.image,class:v([{active:o(i)===r},"dot"])},null,2))),128))])]))}}),q=y(D,[["__scopeId","data-v-1c3582b0"]]);export{q as default};
