"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("uni-search-bar")()}Math;const a={__name:"s-search-block",props:{data:{type:Object,default:()=>({})},elBackground:{type:String,default:""},height:{type:Number,default:36},iconColor:{type:String,default:"#b0b3bf"},fontColor:{type:String,default:"#b0b3bf"},placeholder:{type:String,default:"这是一个搜索框"},radius:{type:Number,default:10},width:{type:String,default:"100%"},navbar:{type:Boolean,default:!0}},emits:["click"],setup(a,{emit:o}){const t=e.reactive({searchVal:""}),i=o,s=a,d=()=>{i("click")};function u(e){e.value&&(r.sheep.$router.go("/pages/goods/list",{keyword:e.value}),setTimeout((()=>{t.searchVal=""}),100))}return(o,i)=>e.e({a:a.navbar},a.navbar?{b:e.s({color:s.iconColor}),c:e.t(a.placeholder),d:e.s({color:a.fontColor,width:a.width})}:{},{e:!a.navbar},a.navbar?{}:{f:e.o(u),g:e.o((e=>t.searchVal=e)),h:e.p({radius:a.data.borderRadius,placeholder:a.data.placeholder,cancelButton:"none",clearButton:"none",modelValue:t.searchVal})},{i:e.f(a.data.hotKeywords,((a,o,t)=>({a:e.t(a),b:e.o((o=>e.unref(r.sheep).$router.go("/pages/goods/list",{keyword:a})),o),c:o}))),j:e.s({color:a.data.textColor}),k:a.data.hotKeywords&&a.data.hotKeywords.length&&a.navbar},a.data.hotKeywords&&a.data.hotKeywords.length&&a.navbar?{l:e.f(a.data.hotKeywords,((r,a,o)=>({a:e.t(r),b:a}))),m:e.s({color:a.data.textColor,marginRight:"10rpx"})}:{},{n:e.o(d),o:e.s({borderRadius:a.radius+"px",background:a.elBackground,height:a.height+"px",width:a.width}),p:e.n({"border-content":a.navbar})})}},o=e._export_sfc(a,[["__scopeId","data-v-69949848"]]);wx.createComponent(o);
