1import{_ as h,a as f}from"./DsCch-Lm.js";import{d as g,r as k,l as y,o as a,e as r,a2 as v,b as C,k as d,c as x,F as B,x as V,A as u,U as p}from"./4czN1GdW.js";const z=["src","srcset","alt","fetchpriority","loading","decoding","onClick"],j=["src","srcset","alt","fetchpriority","loading","decoding","onClick"],I=g({__name:"Banner",props:{modelValue:{type:Array,required:!0},swipeable:{type:Boolean,default:!1}},setup(i,{expose:m}){const s=k(i.modelValue?.[0]?._id);m({activeSlide:y(()=>s.value),goToSlide:t=>{s.value=t}});const n=t=>{const l=[];return t.small&&l.push(`${t.small} 550w`),t.medium&&l.push(`${t.medium} 900w`),t.large&&l.push(`${t.large} 1920w`),l.join(", ")},c=t=>{t.link&&window.open(t.link,"_blank")};return(t,l)=>{const w=f,_=h;return a(),r(_,{modelValue:C(s),"onUpdate:modelValue":l[0]||(l[0]=e=>v(s)?s.value=e:null),animated:"",infinite:"",autoplay:"",swipeable:i.swipeable,"transition-prev":"slide-right","transition-next":"slide-left",class:"banner-carousel"},{default:d(()=>[(a(!0),x(B,null,V(i.modelValue,(e,o)=>(a(),r(w,{key:`banner-${e._id}`,name:e._id,class:"tw-p-0"},{default:d(()=>[u("img",{src:e.desktopImage.large,srcset:n(e.desktopImage),sizes:"(max-width: 767px) 0px, 100vw",alt:e.title,class:p([{"tw-cursor-pointer":e.link},"tw-h-full tw-hidden md:tw-block tw-w-full tw-object-cover"]),fetchpriority:o===0?"high":void 0,loading:o===0?void 0:"lazy",decoding:o===0?"sync":"async",width:"1920",height:"822",onClick:()=>c(e)},null,10,z),u("img",{src:e.mobileImage.large,srcset:n(e.mobileImage),sizes:"(min-width: 768px) 0px, 100vw",alt:e.title,class:p([{"tw-cursor-pointer":e.link},"tw-h-full md:tw-hidden tw-w-full tw-object-cover"]),fetchpriority:o===0?"high":void 0,loading:o===0?void 0:"lazy",decoding:o===0?"sync":"async",width:"375",height:"375",onClick:()=>c(e)},null,10,j)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue","swipeable"])}}}),A=Object.assign(I,{__name:"AnimationBanner"});export{A as _}; 2//# sourceMappingURL=BgFz_Wt3.js.map
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.