import{_ as a,r as e,aa as s,z as l,a6 as t,b as r,g as o,c,f as u,h as n,l as d,w as i,e as p,u as m,j as h,t as f,M as v,i as g,ab as _}from"./index-Cd7oqaqo.js";import{h as x}from"./headImg.D8PzAUux.js";import{l as y}from"./logo.Cf3Z9Qoj.js";import{n as b}from"./navTo.DuPDTCnN.js";const w=a({__name:"navBarSearch",props:{searchWord:{type:String,default:""},type:{type:String,default:""},navName:{type:String,default:"肝胆相照临床病例库"}},emits:["changeWord"],setup(a,{emit:w}){const j=e(""),k=e(""),S=a,W=e("输入疾病名称、标题、作者搜索");s((()=>S.type),(a=>{"doctor"===a?W.value="输入医生姓名":"hospital"===a?W.value="输入医院名称":"video"!==a&&"article"!==a&&"case"!==a||(W.value="搜索疾病、症状、医院")}),{immediate:!0}),s((()=>S.searchWord),(a=>{j.value=a}));const z=w,C=()=>{b({url:"/pages/my/my"})},I=()=>{v({delta:1})};l((()=>{let a=t("userInfo");a&&a.avatar?k.value=a.avatar:k.value=x}));const V=()=>{z("changeWord",j.value)};return(e,s)=>{const l=g,t=r(c("u-icon"),o),v=r(c("up--image"),u),b=_,w=r(c("up-icon"),o);return n(),d(l,{class:"navbox"},{default:i((()=>[p(l,{class:"bg"}),p(l,{class:"namebox"},{default:i((()=>[p(l,{class:"back",onClick:I},{default:i((()=>[p(t,{name:"arrow-left",color:"#000",size:"24"})])),_:1}),p(l,{class:"logo"},{default:i((()=>[p(v,{src:m(y),width:"62rpx",height:"62rpx",radius:"50%"},null,8,["src"])])),_:1}),p(l,{class:"name"},{default:i((()=>[h(f(a.navName),1)])),_:1})])),_:1}),p(l,{class:"search"},{default:i((()=>[p(l,{class:"searchwrap"},{default:i((()=>[p(b,{type:"text",class:"ipt",modelValue:j.value,"onUpdate:modelValue":s[0]||(s[0]=a=>j.value=a),placeholder:W.value},null,8,["modelValue","placeholder"]),p(w,{name:"search",size:"26",color:"#999",onClick:V})])),_:1}),p(v,{src:m(x),onClick:C,mode:"widthFix",width:"62rpx",height:"62rpx",radius:"50%"},null,8,["src"])])),_:1})])),_:1})}}},[["__scopeId","data-v-71dfabf9"]]);export{w as n};
