"use strict";const e=require("../../../common/vendor.js"),r=require("../../index.js");if(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"),!Array){(e.resolveComponent("su-tabbar-item")+e.resolveComponent("su-tabbar"))()}Math||((()=>"../../ui/su-tabbar-item/su-tabbar-item.js")+(()=>"../../ui/su-tabbar/su-tabbar.js"))();const t={__name:"s-tabbar",props:{path:String,default:""},setup(t){const i=e.computed((()=>{var e;return null==(e=r.sheep.$store("app").template.basic)?void 0:e.tabbar})),u=e.computed((()=>{const e=i.value.style;return"color"===e.bgType?{background:e.bgColor}:"img"===e.bgType?{background:`url(${r.sheep.$url.cdn(e.bgImg)}) no-repeat top center / 100% auto`}:void 0})),s=r=>2===e.unref(i).mode&&(e.unref(i).items%2>0&&Math.ceil(e.unref(i).items.length/2)===r+1);return(a,o)=>{var n,l,p,d;return e.e({a:(null==(l=null==(n=i.value)?void 0:n.items)?void 0:l.length)>0},(null==(d=null==(p=i.value)?void 0:p.items)?void 0:d.length)>0?{b:e.f(i.value.items,((t,i,u)=>({a:e.unref(r.sheep).$url.cdn(t.activeIconUrl),b:e.unref(r.sheep).$url.cdn(t.iconUrl),c:t.text,d:e.o((i=>e.unref(r.sheep).$router.go(t.url)),t.text),e:"2c28bd42-1-"+u+",2c28bd42-0",f:e.p({text:t.text,name:t.url,isCenter:s(i),centerImage:e.unref(r.sheep).$url.cdn(t.iconUrl)})}))),c:e.p({value:t.path,fixed:!0,placeholder:!0,safeAreaInsetBottom:!0,inactiveColor:i.value.style.color,activeColor:i.value.style.activeColor,midTabBar:2===i.value.mode,customStyle:u.value})}:{})}}};wx.createComponent(t);
