"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-block",props:{styles:{type:Object,default(){}}},setup(i){const s=i,t=e.computed((()=>{if(s.styles){if("color"===s.styles.bgType)return{background:s.styles.bgColor};if("img"===s.styles.bgType)return{background:`url(${r.sheep.$url.cdn(s.styles.bgImage)}) no-repeat top center / 100% auto`}}})),o=e.computed((()=>{if(s.styles)return{marginTop:`${s.styles.marginTop||0}px`,marginBottom:`${s.styles.marginBottom||0}px`,marginLeft:`${s.styles.marginLeft||0}px`,marginRight:`${s.styles.marginRight||0}px`,paddingTop:`${s.styles.paddingTop||0}px`,paddingRight:`${s.styles.paddingRight||0}px`,paddingBottom:`${s.styles.paddingBottom||0}px`,paddingLeft:`${s.styles.paddingLeft||0}px`,borderTopLeftRadius:`${s.styles.borderTopLeftRadius||0}px`,borderTopRightRadius:`${s.styles.borderTopRightRadius||0}px`,borderBottomRightRadius:`${s.styles.borderBottomRightRadius||0}px`,borderBottomLeftRadius:`${s.styles.borderBottomLeftRadius||0}px`,overflow:"hidden"}}));return(r,i)=>({a:e.s(o.value),b:e.s(t.value)})}};wx.createComponent(i);
