1import{a as u}from"./chunk-YE72NQPE.js";import{a as n}from"./chunk-VYZNAVQ6.js";import{f as g}from"./chunk-ZDLMJVT4.js";var r=n({suggestions:null,query:null}),o=n(!1),a=n(""),c=Promise.resolve(),p="",m=3,f={__resolveType:"resolved",data:null},v=e=>typeof e=="object"&&e!==null&&("products"in e||"searches"in e),d=async(e,{__resolveType:l,...s}=f)=>{if(p===e)try{let t={suggestions:{key:l,props:{query:e,...s}}},{suggestions:i}=await u(t);r.value={suggestions:v(i)?i:null,query:e}}catch(t){console.error(`Something went wrong while fetching suggestions 2`,t)}finally{o.value=!1}},k=e=>{let l=g(s=>{p=s,a.value=s;let t=s.trim();if(t.length>0&&t.length<m){r.value={suggestions:null,query:s},o.value=!1;return}o.value=!0,c=c.then(()=>d(s,e))},[e]);return{loading:o,payload:r,typedQuery:a,setQuery:l}};export{m as a,k as b};
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.