"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 t={__name:"s-title-block",props:{data:{type:Object,default(){}},styles:{type:Object,default(){}}},setup(t){const i=e.reactive({typeMap:{left:"ss-row-left",center:"ss-row-center"}}),a=t,o={background:`url(${r.sheep.$url.cdn(a.data.bgImgUrl)}) no-repeat top center / 100% auto`,fontSize:`${a.data.titleSize}px`,fontWeight:`${a.data.titleWeight}px`},s={color:a.data.titleColor,fontSize:`${a.data.titleSize}px`,textAlign:a.data.textAlign},d={color:a.data.descriptionColor,textAlign:a.data.textAlign,fontSize:`${a.data.descriptionSize}px`,fontWeight:`${a.data.descriptionWeight}px`};return(a,p)=>{var n,u;return e.e({a:t.data.title},t.data.title?{b:e.t(t.data.title),c:e.s(s)}:{},{d:t.data.description},t.data.description?{e:e.t(t.data.description),f:e.s(d)}:{},{g:null==(n=t.data.more)?void 0:n.show},(null==(u=t.data.more)?void 0:u.show)?e.e({h:"icon"!==t.data.more.type},"icon"!==t.data.more.type?{i:e.t(t.data.more.text)}:{},{j:"text"!==t.data.more.type},(t.data.more.type,{}),{k:e.o((i=>e.unref(r.sheep).$router.go(t.data.more.url))),l:t.data.descriptionColor}):{},{m:e.n(i.typeMap[t.data.textAlign]),n:e.s(o)})}}},i=e._export_sfc(t,[["__scopeId","data-v-d2ca286c"]]);wx.createComponent(i);
