1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["chunks/globalsearch-ogyvjduw9.js","chunks/rolldown-runtime-ln9q81idz.js","index.js","chunks/context-he0y8lyzw.js","chunks/jsx-runtime-msxpyqc77.js","chunks/classnames-bsusz7cy3.js","chunks/queryclientprovider-ol1eqcm47.js","chunks/usebasequery-hmiyfbpkx.js","chunks/infinitequerybehavior-niuut0fqq.js","chunks/slug-m4vr7aruy.js","chunks/focusscope-j36q6pd0r.js","chunks/usecollection-k2bcaejkg.js","chunks/label-ed40pa76x.js","chunks/useformvalidation-evrutghuf.js","chunks/button-l63rkrerv.js","chunks/usepersistedinmemoryglobalstate-hi8va9knn.js","chunks/index.module-m9udg25ct.js","chunks/schemas-o9237cn3e.js"])))=>i.map(i=>d[i]); 2import{o as e}from"./rolldown-runtime-ln9q81idz.js";import{a as t,t as n}from"../index.js";import{r}from"./context-he0y8lyzw.js";import{t as i}from"./jsx-runtime-msxpyqc77.js";import{t as a}from"./modal-emtggo7mi.js";import{t as o}from"./tailwind-theme-e2j64875m.js";import{t as s}from"./usepersistedinmemoryglobalstate-hi8va9knn.js";var c=e(t(),1),l=i();function u(e){(0,c.useEffect)(()=>{let t=t=>{let n=t.target;!t.defaultPrevented&&n instanceof HTMLElement&&(n.tagName===`INPUT`||n.tagName===`TEXTAREA`||n.isContentEditable)||e(t)};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[e])}function d(e){let{modal:t,openModal:i}=a(),{trackEvent:u}=(0,c.use)(r),d=()=>window.matchMedia(`(min-width: ${o.theme.screens.md})`).matches;return{openGlobalSearch:async(t,r)=>{if(d()){t.preventDefault();let{default:a}=await n(async()=>{let{default:e}=await import(`./globalsearch-ogyvjduw9.js`).then(e=>e.t);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]));i((0,l.jsx)(a,{categories:r,popularResources:e}),{className:`mt-24 rounded-b-xl p-10 w-200 shadow-lg border-t-3 border-t-sapphire-500 backdrop:bg-black/50`}),u(`Search - Quick search open`,{})}else r&&s({q:``,category:r,product:[]},`global-full-search-params`)},preinitGlobalSearch:()=>{d()&&n(()=>import(`./globalsearch-ogyvjduw9.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))},modal:t}}function f(e){return(0,l.jsx)(`a`,{href:`/search`,"aria-label":`Search`,...e})}var p=`global-search-button`;function m({categories:e,popularResources:t}){let{openGlobalSearch:n,preinitGlobalSearch:r,modal:i}=d(t);return u(t=>{let r=t.key===`k`&&(t.metaKey||t.ctrlKey),i=t.key===`/`;(r||i)&&n(t,e)}),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f,{className:`NavAction BlogSearch sr-only lg:not-sr-only text-inherit no-underline fa fa-search cursor-pointer peer`,onClick:t=>n(t,e),onPointerOver:r,id:p}),i]})}function h({children:e,categories:t,popularResources:n}){let{openGlobalSearch:r,preinitGlobalSearch:i,modal:a}=d(n);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(f,{href:`/search`,className:`px-7 py-4 rounded-full flex items-center gap-2.5 border border-gray-300 no-underline no-animated-line`,onClick:e=>r(e,t),onPointerOver:i,children:[(0,l.jsx)(`span`,{className:`fa fa-search text-sapphire-500 flex-none`}),(0,l.jsx)(`span`,{className:`grow text-left text-dark-800 line-clamp-1`,children:e})]}),a]})}var g={GlobalSearchDummyInputClient:h,default:m};export{g as export_d4f4e0041a88};
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.