"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-status-bar")+e.resolveComponent("su-fixed"))()}Math||((()=>"../../../ui/su-status-bar/su-status-bar.js")+(()=>"../../../ui/su-fixed/su-fixed.js"))();const t={__name:"navbar",props:{sticky:Boolean,zIndex:{type:Number,default:100},back:{type:Boolean,default:!0},backtext:{type:String,default:""},bg:{type:String,default:"bg-white"},status:{type:String,default:""},alway:{type:Boolean,default:!0},opacity:{type:Boolean,default:!1},opacityBg:{type:Boolean,default:!1},noFixed:{type:Boolean,default:!1},ui:{type:String,default:""},capsule:{type:Boolean,default:!1},stopBack:{type:Boolean,default:!1},placeholder:{type:[Boolean],default:!0},bgStyles:{type:Object,default(){}}},emits:["navback"],setup(t,{emit:a}){const s=e.reactive({statusCur:"",capsuleStyle:{},capsuleBack:{}}),i=r.sheep.$platform.device.statusBarHeight,o=r.sheep.$platform.navbar,u=t;e.onBeforeMount((()=>{p()}));const p=()=>{s.capsuleStyle={width:r.sheep.$platform.capsule.width+"px",height:r.sheep.$platform.capsule.height+"px",margin:"0 "+(r.sheep.$platform.device.windowWidth-r.sheep.$platform.capsule.right)+"px"},s.capsuleBack=s.capsuleStyle};return(r,t)=>({a:e.s(s.capsuleStyle),b:e.n(""==u.status?"text-a":"light"==u.status?"text-white":"text-black"),c:e.s({height:e.unref(o)-e.unref(i)+"px"}),d:e.p({noFixed:u.noFixed,alway:u.alway,bgStyles:u.bgStyles,val:0,index:u.zIndex,noNav:!0,bg:u.bg,ui:u.ui,opacity:u.opacity,placeholder:u.placeholder,sticky:u.sticky})})}},a=e._export_sfc(t,[["__scopeId","data-v-d67fe38d"]]);wx.createComponent(a);
