"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("s-search-block")()}Math;const t={__name:"navbar-item",props:{data:{type:Object,default:()=>({})},width:{type:String,default:"1px"}},setup(t){const i=e.computed((()=>r.sheep.$platform.capsule.height));return(a,s)=>e.e({a:"text"===t.data.type},"text"===t.data.type?{b:e.t(t.data.text),c:e.s({color:t.data.textColor,width:t.width})}:{},{d:"image"===t.data.type},"image"===t.data.type?{e:e.unref(r.sheep).$url.cdn(t.data.src),f:e.s({width:t.width}),g:e.o((i=>e.unref(r.sheep).$router.go(t.data.url)))}:{},{h:"search"==t.data.type},"search"==t.data.type?{i:e.o((t=>e.unref(r.sheep).$router.go("/pages/index/search"))),j:e.p({placeholder:t.data.placeholder||"搜索关键字",radius:t.data.borderRadius,elBackground:"#fff",height:i.value,width:t.width}),k:e.s({width:t.width})}:{})}},i=e._export_sfc(t,[["__scopeId","data-v-89a97bd5"]]);wx.createComponent(i);
