"use strict";const e=require("../../../common/vendor.js"),r=require("../../index.js"),t=require("../../hooks/useModal.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("../../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"),!Array){(e.resolveComponent("su-status-bar")+e.resolveComponent("su-fixed"))()}Math||((()=>"../su-status-bar/su-status-bar.js")+(()=>"../su-fixed/su-fixed.js"))();const a={__name:"su-inner-navbar",props:{zIndex:{type:Number,default:100},title:{type:String,default:""},bg:{type:String,default:"bg-white"},alway:{type:Boolean,default:!0},opacity:{type:Boolean,default:!0},noFixed:{type:Boolean,default:!0},ui:{type:String,default:""},capsule:{type:Boolean,default:!1},stopBack:{type:Boolean,default:!1},placeholder:{type:[Boolean],default:!1},bgStyles:{type:Object,default(){}}},emits:["navback","clickLeft"],setup(a,{emit:s}){const i=e.reactive({statusCur:"",capsuleStyle:{},capsuleBack:{},isDark:!0}),o=r.sheep.$platform.device.statusBarHeight,u=r.sheep.$platform.navbar,p=a,l=s,n=r.sheep.$router.hasHistory();function d(){n?r.sheep.$router.back():r.sheep.$router.go("/pages/index/index"),l("clickLeft")}function c(){t.showMenuTools()}e.onBeforeMount((()=>{f()})),e.onPageScroll((e=>{let t=e.scrollTop;i.isDark=t<r.sheep.$platform.navbar}));const f=()=>{i.capsuleStyle={width:r.sheep.$platform.capsule.width+"px",height:r.sheep.$platform.capsule.height+"px"},i.capsuleBack=i.capsuleStyle};return(r,t)=>e.e({a:e.unref(n)},(e.unref(n),{}),{b:e.o(d),c:e.o(c),d:e.t(a.title),e:e.s(i.capsuleStyle),f:e.n(i.isDark?"text-white":"text-black"),g:e.s({height:e.unref(u)-e.unref(o)+"px"}),h:e.p({noFixed:p.noFixed,alway:p.alway,bgStyles:p.bgStyles,val:0,index:p.zIndex,noNav:!0,bg:p.bg,ui:p.ui,opacity:p.opacity,placeholder:p.placeholder})})}},s=e._export_sfc(a,[["__scopeId","data-v-d3c3f5b6"]]);wx.createComponent(s);
