PageSourceSearch

https://www.elgato.com/_next/static/chunks/pages/search-1e00644d531f19b3.js

js elgato.com collected 2026-10-01 08:44:01 UTC 4,237 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9603],{35243:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return r(12051)}])},12051:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return f}});var a=r(85893),s=r(10941),l=r(97585),n=r(7337),o=r(65649),c=r(93967),i=r.n(c),d=r(79841),p=r(67294),x=r(29614),u=r.n(x);let h="search-page";function m(){let{t:e}=(0,d.$G)(),[t,r]=(0,p.useState)(""),[s,c]=(0,p.useState)(!1),x=(0,p.useRef)(null),[m,b]=(0,p.useState)(),[f,g]=(0,p.useState)({products:[],marketplace:[],explorer:[]}),[w,v]=(0,p.useState)(),y=(0,p.useRef)(null);function j(e){let t="".concat(h,"-").concat(e),r=document.getElementById(t);if(r&&y.current){let t=y.current.offsetHeight,a=r.getBoundingClientRect().top+window.pageYOffset-t;window.scrollTo({top:a,behavior:"smooth"}),b(e)}}(0,p.useEffect)(()=>{x.current&&x.current.focus()},[]),(0,p.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("query")||e.get("q");t&&r(t)},[]);let N=(0,p.useCallback)((e,t)=>{g(e),v(t),t&&(0,o.V$)({query:t})},[]),{products:k,marketplace:_,explorer:C}=f,S=k.length+_.length+C.length;return(0,a.jsx)("div",{className:"pb-24px md:pb-40px px-16px flex justify-center items-center h-full relative",children:(0,a.jsxs)("div",{className:"max-w-[1190px] w-full flex flex-col h-full ",children:[(0,a.jsxs)("div",{ref:y,className:i()("w-full sticky top-0 z-10"),children:[(0,a.jsxs)("div",{className:"bg-white pt-24px md:pt-40px",children:[(0,a.jsxs)("div",{className:"relative w-full mb-16px border border-content-blue rounded-xxxl bg-primitive-gray-10  !cursor-text overflow-hidden",children:[(0,a.jsx)("input",{type:"text",ref:x,placeholder:"Search",className:i()("pl-24px pr-64px py-12px w-full text-black transition-all bg-transparent !border-none !outline-none"),value:t,onChange:e=>{r(e.target.value.replaceAll(".",""))},"aria-label":e("ada|Search"),role:"searchbox"}),s&&(0,a.jsxs)("div",{className:"absolute left-24px top-1/2 transform -translate-y-1/2 flex items-center justify-center bg-transparent pointer-events-none",style:{maxWidth:"calc(100% - 64px)"},children:[(0,a.jsx)("div",{className:"invisible whitespace-pre mr-12px ",children:t}),(0,a.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-2 border-b-black border-t-transparent border-r-transparent border-l-transparent"})]}),t&&(0,a.jsx)("button",{className:"absolute right-24px top-1/2 transform -translate-y-1/2 text-black",onClick:()=>r(""),"aria-label":e("ada|Clear search"),children:(0,a.jsx)(n.Z,{className:"size-[20px]"})})]}),S>0&&(0,a.jsxs)("div",{className:"pt-24px md:pt-40px bg-white relative z-10",children:[(0,a.jsxs)("p",{className:"text-body-copy",children:[S," items found for"]}),(0,a.jsxs)("div",{className:"flex flex-col gap-12px md:flex-row md:justify-between md:items-center",children:[(0,a.jsx)("h2",{className:"text-h1-md-max flex-1",children:'"'.concat(null==w?void 0:w.toUpperCase(),'"')}),(0,a.jsxs)("div",{className:"flex gap-4 overflow-x-auto md:overflow-visible md:gap-0 md:justify-between md:items-center",style:{WebkitOverflowScrolling:"touch"},children:[(0,a.jsxs)("button",{onClick:()=>j("products"),className:i()("text-body-copy-md-max px-[20px] py-12px shrink-0",{"border-b-2 border-content-blue":"products"===m}),children:["Products (",k.length,")"]}),(0,a.jsxs)("button",{onClick:()=>j("marketplace"),className:i()("text-body-copy-md-max px-[20px] py-12px shrink-0",{"border-b-2 border-content-blue":"marketplace"===m}),children:["Marketplace (",_.length,")"]}),(0,a.jsxs)("button",{onClick:()=>j("explorer"),className:i()("text-body-copy-md-max px-[20px] py-12px shrink-0",{"border-b-2 border-content-blue":"explorer"===m}),children:["Explorer (",C.length,")"]})]})]})]})]}),(0,a.jsx)("div",{className:u()["search-page-topbar-gradient"]})]}),(0,a.jsx)(l.s,{searchTerm:t,loading:s,setLoading:c,maxResults:void 0,id:h,onResultsChanged:N,hideShowMore:!0,showGrid:!0})]})})}function b(){return(0,a.jsx)(m,{})}m.Layout=s.Z,b.Layout=s.Z;var f=b},29614:function(e){e.exports={"search-page-topbar-gradient":"SearchPage_search-page-topbar-gradient__LS_Z9"}}},function(e){e.O(0,[9709,9350,7729,557,2888,9774,179],function(){return e(e.s=35243)}),_N_E=e.O()}]);

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.