import{d as f,r as g,o as a,c as r,f as e,B as i,F as v,R as b,A as k,G as n,a as w,D as j,_ as C,__tla as E}from"./index-92ad187a.js";import{E as A,a as B,__tla as D}from"./el-carousel-item-9d77a5cf.js";import{E as F,__tla as G}from"./el-image-ee9e09ec.js";import{__tla as P}from"./el-image-viewer-d472c5a2.js";let c,R=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return P}catch{}})()]).then(async()=>{let s,l,p;s={key:0,class:"h-250px flex items-center justify-center bg-gray-3"},l={key:1,class:"relative"},p={key:0,class:"absolute bottom-10px right-10px rounded-xl bg-black p-x-8px p-y-2px text-10px text-white opacity-40"},c=f({name:"Carousel",__name:"index",props:{property:{}},setup(U){const o=g(0),y=t=>{o.value=t+1};return(t,q)=>{const _=C,u=F,m=A,d=B;return t.property.items.length===0?(a(),r("div",s,[e(_,{icon:"tdesign:image",class:"text-gray-8 text-120px!"})])):(a(),r("div",l,[e(d,{height:"174px",type:t.property.type==="card"?"card":"",autoplay:t.property.autoplay,interval:1e3*t.property.interval,"indicator-position":t.property.indicator==="number"?"none":void 0,onChange:y},{default:i(()=>[(a(!0),r(v,null,b(t.property.items,(x,h)=>(a(),k(m,{key:h},{default:i(()=>[e(u,{class:"h-full w-full",src:x.imgUrl},null,8,["src"])]),_:2},1024))),128))]),_:1},8,["type","autoplay","interval","indicator-position"]),t.property.indicator==="number"?(a(),r("div",p,n(w(o))+" / "+n(t.property.items.length),1)):j("",!0)]))}}})});export{R as __tla,c as default};
