import{S as a,b as s}from"./vendor-BJZ6tUoe.js";import{a as t}from"./souav-BTAG2baT.js";import{ag as n,a4 as l,a3 as e,aN as o,ad as r,bH as i,K as d,b1 as p,a2 as u,a5 as c,aL as m,aW as b}from"./vendor-BXdGExd0.js";const f=["onClick"],g={class:"absolute bottom-2 left-1/2 -translate-x-1/2 flex gap-x-2.5"},x=n({__name:"AdBanner",props:{bannerList:{},marginTop:{default:15}},setup:n=>(x,v)=>{const y=s,w=a;return n.bannerList&&n.bannerList.length>0?(b(),l("div",{key:0,class:"ad-banner-container",style:o({marginTop:`${n.marginTop}px`})},[r(w,{autoplay:3e3,class:"w-full aspect-[360/90] rounded-lg overflow-hidden"},{indicator:i(({active:a,total:s})=>[c("div",g,[(b(!0),l(d,null,p(s,s=>(b(),l("div",{key:s,class:m(["h-[5px] bg-white opacity-80 rounded-[2.5px] transition-all duration-300 ease-in-out",a===s-1?"w-[15px] bg-primary opacity-100":"w-[5px]"])},null,2))),128))])]),default:i(()=>[(b(!0),l(d,null,p(n.bannerList,a=>(b(),u(y,{key:a.contentId},{default:i(()=>[c("div",{class:"w-full h-full cursor-pointer px-4",onClick:a=>{}},[r(t,{src:a.img,alt:a.title,class:"rounded-lg"},null,8,["src","alt"])],8,f)]),_:2},1024))),128))]),_:1})],4)):e("",!0)}});export{x as _};
