import{d as f,b as g,o as s,c as o,F as b,k as R,ar as a,i as c,w as v,g as u,a as w,v as $,_ as B,__tla as T}from"./index-2c56227b.js";import{E,__tla as M}from"./el-image-cae97e2e.js";import{__tla as j}from"./el-image-viewer-da1b6008.js";let n,k=Promise.all([(()=>{try{return T}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return j}catch{}})()]).then(async()=>{let p,r,i;p={class:"image-slot"},r=93.75,i=f({name:"MagicCube",__name:"index",props:{property:{type:Object,required:!0}},setup(m){const l=m,y=g(()=>{let t=0;return l.property.list.length>0&&(t=Math.max(...l.property.list.map(d=>d.bottom))),t+1});return(t,d)=>{const h=$,_=E;return s(),o("div",{class:"relative",style:a({height:w(y)*r+"px",width:"375px"})},[(s(!0),o(b,null,R(t.property.list,(e,x)=>(s(),o("div",{key:x,class:"absolute",style:a({width:e.width*r-2*t.property.space+"px",height:e.height*r-2*t.property.space+"px",margin:`${t.property.space}px`,top:e.top*r+"px",left:e.left*r+"px"})},[c(_,{class:"h-full w-full",fit:"cover",src:e.imgUrl,style:a({borderTopLeftRadius:`${t.property.borderRadiusTop}px`,borderTopRightRadius:`${t.property.borderRadiusTop}px`,borderBottomLeftRadius:`${t.property.borderRadiusBottom}px`,borderBottomRightRadius:`${t.property.borderRadiusBottom}px`})},{error:v(()=>[u("div",p,[u("div",{class:"flex items-center justify-center",style:a({width:e.width*r+"px",height:e.height*r+"px"})},[c(h,{icon:"ep-picture",color:"gray",size:r})],4)])]),_:2},1032,["src","style"])],4))),128))],4)}}}),n=B(i,[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/components/DiyEditor/components/mobile/MagicCube/index.vue"]])});export{k as __tla,n as default};
