"use strict";const e=require("../../../common/vendor.js"),r=require("../../index.js"),t=require("../../hooks/useModal.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("../../helper/throttle.js"),require("../../platform/pay.js"),require("../../helper/index.js"),require("../../helper/test.js"),require("../../helper/digit.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"),require("../../api/member/signin.js"),Math||(o+a)();const a=()=>"./components/navbar.js",o=()=>"./components/navbar-item.js",i={__name:"s-custom-navbar",props:{data:{type:Object,default:()=>({})},showLeftButton:{type:Boolean,default:!1}},setup(a){const o=a,i=r.sheep.$router.hasHistory(),s=e.computed((()=>("inner"!=o.data.mode||!o.data.alway)&&("normal"!=o.data.mode&&void 0))),u=e.computed((()=>o.data.list?o.data.list.mp:[])),d=r.sheep.$platform.device.windowWidth,n=e.computed((()=>{if(e.unref(u).length){let t=(d-90)/8;return t=(d-80-e.unref(r.sheep.$platform.capsule).width)/6,t}})),p=e=>({width:e.width*n.value+10*(e.width-1)+"px",left:e.left*n.value+10*(e.left+1)+"px","border-radius":e.borderRadius+"px"}),l=e.computed((()=>"inner"!==o.data.mode||Boolean(o.data.alwaysShow))),c=e.computed((()=>"normal"!==o.data.mode&&(!o.showLeftButton&&"inner"===o.data.mode))),m=e.computed((()=>"normal"===o.data.mode)),j=e.computed((()=>{if(o.data.type)return{background:"color"==o.data.type?o.data.color:`url(${r.sheep.$url.cdn(o.data.src)}) no-repeat top center / 100% 100%`}}));function q(){i?r.sheep.$router.back():r.sheep.$router.go("/pages/index/index")}function h(){t.showMenuTools()}return(r,t)=>e.e({a:a.showLeftButton},a.showLeftButton?e.e({b:e.unref(i)},(e.unref(i),{}),{c:e.o(q),d:e.o(h),e:"inner"==a.data.mode?1:""}):{},{f:e.f(u.value,((r,t,a)=>({a:"13c6e57d-1-"+a+",13c6e57d-0",b:e.p({data:r,width:p(r).width}),c:t,d:e.s(p(r)),e:e.n({"ss-flex ss-col-center ss-row-center":"search"!==r.type})}))),g:e.p({alway:l.value,back:!1,bg:"",placeholder:m.value,bgStyles:j.value,opacity:c.value,sticky:s.value})})}},s=e._export_sfc(i,[["__scopeId","data-v-13c6e57d"]]);wx.createComponent(s);
