1import{d as y,N as B,i as E,o as I,z as f,ax as g,T as u,ag as r,l as c,x as i,H as p,B as m,h as C,C as $}from"#entry";const S=3,R=120,A=["aria-label","autofocus","placeholder","value"],z=["aria-label"],H=y({__name:"AppSearchBar",props:{searchInput:{},placeholder:{},inputAttrs:{},icon:{default:"search"},autofocus:{type:Boolean},showCloseButton:{type:Boolean}},emits:["update:searchInput","submit","focus","actionButtonClick","keydown.up","keydown.down","keydown.enter","keydown.esc"],setup(t,{expose:b,emit:h}){const d=t,o=h,v=i(null),a=i(null),l=i("");B(()=>d.searchInput,()=>l.value=d.searchInput,{immediate:!0});function w(){a.value&&(l.value=a.value.value,o("update:searchInput",l.value))}function x(){a.value?.focus()}return b({focus:x}),(n,e)=>{const k=$;return I(),E("form",{ref_key:"searchFormElement",ref:v,class:m(("clsx"in n?n.clsx:c(p))("w-full bg-white flex items-center border transition-colors border-text-500 rounded","group/search-bar hover:border-text-700")),onSubmit:e[6]||(e[6]=r(s=>o("submit"),["prevent"]))},[f("input",g({id:"app-search",ref_key:"searchInputElement",ref:a,"aria-label":t.placeholder,autocapitalize:"none",autocomplete:"off",autocorrect:"off",autofocus:t.autofocus,class:("clsx"in n?n.clsx:c(p))("w-full h-14 px-4 outline-none rounded-s z-20 border-r border-text-500 transition-[border-color,box-shadow","group-hover/search-bar:border-text-700"),placeholder:t.placeholder,spellcheck:"false",type:"text",value:c(l)},t.inputAttrs,{onFocus:e[0]||(e[0]=s=>o("focus")),onInput:w,onKeydown:[e[1]||(e[1]=u(r(s=>o("keydown.down"),["prevent"]),["down"])),e[2]||(e[2]=u(r(s=>o("keydown.enter"),["prevent"]),["enter"])),e[3]||(e[3]=u(r(s=>o("keydown.esc"),["prevent"]),["esc"])),e[4]||(e[4]=u(r(s=>o("keydown.up"),["prevent"]),["up"]))]}),null,16,A),f("button",{"aria-label":t.placeholder,class:m(("clsx"in n?n.clsx:c(p))("w-14 h-14 grow px-4 flex items-center rounded-e transition-[background-color,box-shadow]","hover:bg-blue-100 focus:z-20")),type:"submit",onClick:e[5]||(e[5]=s=>o("actionButtonClick"))},[C(k,{class:"text-text-800",icon:t.icon,size:"24px"},null,8,["icon"])],10,z)],34)}}}),F=Object.assign(H,{__name:"AppSearchBar"});export{S,F as _,R as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.