import{d as z,r as o,N as B,o as t,k as u,w as m,c as l,F as g,B as v,a as s,j as w,ax as x,a0 as F,t as b,R as y,__tla as H}from"./index-abaca7e8.js";import{E as M,a as N,__tla as P}from"./el-carousel-item-d3cd320a.js";import{E as R,__tla as S}from"./el-image-56fee7ab.js";import{__tla as q}from"./el-image-viewer-45c4debe.js";let k,A=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return S}catch{}})(),(()=>{try{return q}catch{}})()]).then(async()=>{let _;_={class:"flex flex-row flex-wrap"},k=z({name:"MenuSwiper",__name:"index",props:{property:{}},setup(C){const a=C,p=o([]),h=o(0),n=o(0),d=o("");return B(()=>a.property,()=>{d.value=1/a.property.column*100+"%",n.value=32+(a.property.layout==="iconText"?62:42),h.value=a.property.row*n.value;const i=a.property.row*a.property.column;p.value=[];let r=[];for(const c of a.property.list)r.length===i&&(r=[]),r.length===0&&p.value.push(r),r.push(c)},{immediate:!0,deep:!0}),(i,r)=>{const c=R,j=M,E=N;return t(),u(E,{height:`${s(h)}px`,autoplay:!1,arrow:"hover","indicator-position":"outside"},{default:m(()=>[(t(!0),l(g,null,v(s(p),(T,U)=>(t(),u(j,{key:U},{default:m(()=>[w("div",_,[(t(!0),l(g,null,v(T,(e,$)=>{var f;return t(),l("div",{key:$,class:"relative flex flex-col items-center justify-center",style:x({width:s(d),height:`${s(n)}px`})},[w("div",{class:F(["relative","h-42px w-42px"])},[(f=e.badge)!=null&&f.show?(t(),l("span",{key:0,class:"absolute right--10px top--10px z-1 h-20px rounded-10px p-x-6px text-center text-12px leading-20px",style:x({color:e.badge.textColor,backgroundColor:e.badge.bgColor})},b(e.badge.text),5)):y("",!0),e.iconUrl?(t(),u(c,{key:1,src:e.iconUrl,class:"h-full w-full"},null,8,["src"])):y("",!0)],2),i.property.layout==="iconText"?(t(),l("span",{key:0,class:"text-12px",style:x({color:e.titleColor,height:"20px",lineHeight:"20px"})},b(e.title),5)):y("",!0)],4)}),128))])]),_:2},1024))),128))]),_:1},8,["height"])}}})});export{A as __tla,k as default};