"use strict";const e=require("../../../common/vendor.js"),r=require("../../index.js");require("../../url/index.js"),require("../../store/index.js"),require("../../store/app.js"),require("../../api/promotion/diy.js"),require("../../request/index.js"),require("../../config/index.js"),require("../../platform/index.js"),require("../../platform/provider/wechat/index.js"),require("../../platform/provider/wechat/miniProgram.js"),require("../../api/member/auth.js"),require("../../api/member/social.js"),require("../../api/member/user.js"),require("../../platform/provider/apple/index.js"),require("../../platform/share.js"),require("../../router/index.js"),require("../../hooks/useModal.js"),require("../../helper/index.js"),require("../../helper/test.js"),require("../../helper/digit.js"),require("../../api/member/signin.js"),require("../../helper/throttle.js"),require("../../platform/pay.js"),require("../../api/pay/order.js"),require("../../store/user.js"),require("../../store/cart.js"),require("../../api/trade/cart.js"),require("../../api/pay/wallet.js"),require("../../api/trade/order.js"),require("../../api/promotion/coupon.js"),require("../../store/sys.js"),require("../../store/modal.js"),require("../../config/zIndex.js");const i={__name:"s-image-cube",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(i){const t=i,a=r.sheep.$platform.device.windowWidth,s=e.computed((()=>(a-((t.styles.marginLeft||0)+(t.styles.marginRight||0)+2*(t.styles.padding||0)))/4)),o=e.computed((()=>{var e,r,i,o;let u=t.data.list.reduce(((e,r)=>e.includes(r.height+r.top)?e:[...e,r.height+r.top]),[]);return{height:Math.max(...u)*s.value+"px",width:a-2*((null==(r=null==(e=t.data)?void 0:e.style)?void 0:r.marginLeft)+(null==(o=null==(i=t.data)?void 0:i.style)?void 0:o.marginRight)+2*t.styles.padding)+"px"}})),u=e=>({width:e.width*s.value-t.data.space+"px",height:e.height*s.value-t.data.space+"px",left:e.left*s.value+"px",top:e.top*s.value+"px","border-top-left-radius":t.data.borderRadiusTop+"px","border-top-right-radius":t.data.borderRadiusTop+"px","border-bottom-left-radius":t.data.borderRadiusBottom+"px","border-bottom-right-radius":t.data.borderRadiusBottom+"px"});return(t,a)=>({a:e.f(i.data.list,((i,t,a)=>({a:e.unref(r.sheep).$url.cdn(i.imgUrl),b:e.s(u(i)),c:e.o((t=>e.unref(r.sheep).$router.go(i.url)),t),d:t}))),b:e.s({margin:i.data.space+"px"}),c:e.s(o.value)})}},t=e._export_sfc(i,[["__scopeId","data-v-1ee0eac9"]]);wx.createComponent(t);
