1import{r as e}from"./markdown-CLqt0F8k.js";import{t as o}from"./index-Cpg_ZFX4.js";function h(n){const{placeholder:t,fallback:s,keepQueryOnUnmount:f}=n,{setTaskHeaderState:u,pageSearchOpen:p}=o(),[r,a]=e.useState(""),c=e.useRef(r);return c.current=r,e.useEffect(()=>{u({pageSearch:{placeholder:t,query:c.current,setQuery:a,fallback:s}})},[t,s?.label]),e.useEffect(()=>()=>{u({pageSearch:null,pageSearchOpen:!1})},[]),e.useEffect(()=>{u({pageSearch:{placeholder:t,query:r,setQuery:a,fallback:s}})},[r]),e.useEffect(()=>()=>{f||a("")},[]),{query:r,setQuery:a,isOpen:p}}export{h as u};
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.