import{_ as e}from"./page_layout.js?v=1763625242172";import{k as a,r as s,ah as t,R as r,a2 as n,ay as l,a3 as o,U as u,X as i,s as c,ak as f,V as p,aj as v}from"./vue.js?v=1763625242172";import{au as m}from"./naive.js?v=1763625242172";const d=a({__name:"index",props:{value:{default:""},width:{default:240},prefix:{type:Boolean,default:!1}},emits:["search","update:value"],setup(a,{expose:d,emit:x}){const h=a,y=s(null);d({focus:()=>{var e;null==(e=y.value)||e.focus()}});const k=x,_=t(h,"value"),j=()=>{k("search",_.value)};return(a,s)=>{const t=e,d=m;return r(),n(d,c({value:p(_),"onUpdate:value":s[0]||(s[0]=e=>v(_)?_.value=e:null)},a.$attrs,{ref_key:"inputRef",ref:y,class:"bt-search",style:{width:"".concat(a.width,"px")},onKeyup:f(j,["enter"])}),l({_:2},[a.prefix?{name:"prefix",fn:o((()=>[u("div",{class:"flex items-center cursor-pointer",onClick:j},[i(t,{name:"search",size:"16"})])])),key:"0"}:void 0,a.prefix?void 0:{name:"suffix",fn:o((()=>[u("div",{class:"flex items-center cursor-pointer",onClick:j},[i(t,{name:"search",size:"16"})])])),key:"1"}]),1040,["value","style"])}}});export{d as _};
