1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,29056,(e,s,r)=>{s.exports=e.r(83554)},53501,49969,28129,e=>{"use strict";var s=e.i(85390);function r(){return(0,s.jsx)("header",{className:"border-b border-[rgba(19,19,19,0.08)] px-6 py-4",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("img",{src:"/browserbase-icon.svg",alt:"Browserbase",className:"w-8 h-8 rounded-sm"}),(0,s.jsx)("h1",{className:"text-xl font-semibold",children:"AI Research Agent"})]}),(0,s.jsx)("img",{src:"/Browserbase-Vercel.png",alt:"Browserbase + Vercel",className:"h-8"})]})})}function t({query:e,setQuery:r,isResearching:t,onSearch:a}){return(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("input",{type:"text",value:e,onChange:e=>r(e.target.value),onKeyDown:e=>{"Enter"!==e.key||t||a()},placeholder:"e.g., 'superbowl 2026'",className:"flex-1 px-5 py-4 rounded-md bg-white border border-[#e6e4e2] text-[rgba(16,13,13,1)] placeholder-[#969493] text-base shadow-[0_2px_8px_rgba(0,0,0,0.06)] focus:outline-none focus:border-[#f03603] focus:shadow-[0_2px_8px_rgba(0,0,0,0.06),0_0_0_3px_rgba(240,54,3,0.1)] transition-all duration-300",disabled:t}),(0,s.jsx)("button",{onClick:a,disabled:t||!e.trim(),className:"px-8 py-4 rounded-md bg-[#f03603] text-white border border-[#f03603] font-medium shadow-md hover:bg-white hover:text-[#f03603] hover:-translate-y-0.5 hover:shadow-lg disabled:bg-[#edebeb] disabled:text-[rgba(125,125,125,1)] disabled:border-[#edebeb] disabled:shadow-none disabled:hover:translate-y-0 transition-all duration-300 ease-out flex items-center gap-2 cursor-pointer disabled:cursor-not-allowed focus:outline-none focus:shadow-[0_0_0_3px_rgba(240,54,3,0.1)]",children:t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("svg",{className:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Researching..."]}):"Research"})]})}function a(){return(0,s.jsx)("footer",{className:"border-t border-[rgba(19,19,19,0.08)] px-6 py-4",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-center gap-2 text-sm text-[rgba(125,125,125,1)]",children:[(0,s.jsx)("span",{children:"Powered by"}),(0,s.jsxs)("a",{href:"https://github.com/browserbase/stagehand",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[#1c1917] hover:text-[#f4ba41] transition-colors cursor-pointer",children:[(0,s.jsx)("img",{src:"/stagehand-logo.svg",alt:"Stagehand",className:"w-5 h-5"}),"Stagehand"]}),(0,s.jsx)("span",{children:"on"}),(0,s.jsxs)("a",{href:"https://www.browserbase.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[#1c1917] hover:text-[#f03603] transition-colors cursor-pointer",children:[(0,s.jsx)("img",{src:"/browserbase-logo.svg",alt:"Browserbase",className:"w-5 h-5"}),"Browserbase"]}),(0,s.jsx)("span",{children:"+"}),(0,s.jsxs)("a",{href:"https://nextjs.org",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[#1c1917] hover:opacity-70 transition-opacity cursor-pointer",children:[(0,s.jsx)("img",{src:"/nextjs-icon-light-background.png",alt:"Next.js",className:"w-4 h-4"}),"Next.js"]})]})})}e.s(["default",()=>r],53501),e.s(["default",()=>t],49969),e.s(["default",()=>a],28129)},31713,e=>{"use strict";var s=e.i(85390),r=e.i(29056),t=e.i(10619),a=e.i(53501),l=e.i(49969);let o=["superbowl 2026","new moon mission nasa","gluten-free camping meals"];function n({onSelect:e}){return(0,s.jsxs)("div",{className:"mt-4 flex items-center justify-center gap-3",children:[(0,s.jsx)("span",{className:"text-sm text-[#969493]",children:"Try:"}),o.map(r=>(0,s.jsx)("button",{onClick:()=>e(r),className:"px-4 py-2 text-sm rounded-md bg-white border border-[#e6e4e2] text-[#4a4848] hover:border-[#f03603] hover:text-[#f03603] hover:-translate-y-0.5 hover:shadow-md transition-all duration-300 cursor-pointer focus:outline-none focus:shadow-[0_0_0_3px_rgba(240,54,3,0.1)]",children:r},r))]})}var i=e.i(28129);function c(){let e=(0,r.useRouter)(),{query:o,setQuery:c,isResearching:d,startResearch:x,resetResearch:u}=(0,t.useResearch)(),h=async s=>{(s||o).trim()&&(s&&c(s),u(),e.push("/results"),setTimeout(()=>{x(s)},100))};return(0,s.jsxs)("div",{className:"min-h-screen bg-[#f9f6f4] bb-grid-pattern text-[rgba(16,13,13,1)] font-sans flex flex-col relative overflow-hidden",children:[(0,s.jsxs)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[(0,s.jsx)("div",{className:"absolute top-20 left-10 w-72 h-72 bg-[#f03603]/5 rounded-full blur-3xl"}),(0,s.jsx)("div",{className:"absolute top-40 right-20 w-96 h-96 bg-[#4da9e4]/5 rounded-full blur-3xl"}),(0,s.jsx)("div",{className:"absolute bottom-20 left-1/3 w-80 h-80 bg-[#90c94d]/5 rounded-full blur-3xl"})]}),(0,s.jsx)(a.default,{}),(0,s.jsx)("main",{className:"w-full max-w-7xl mx-auto px-6 flex-1 pt-[20vh] pb-12 relative z-10",children:(0,s.jsxs)("div",{className:"mb-0",children:[(0,s.jsxs)("div",{className:"text-center mb-8",children:[(0,s.jsxs)("h2",{className:"hero-title text-4xl font-bold text-[rgba(16,13,13,1)] mb-3 tracking-tight",children:["Research anything in"," ",(0,s.jsx)("span",{className:"text-[#f03603]",children:"seconds"})]}),(0,s.jsx)("p",{className:"hero-subtitle text-lg text-[#4a4848] mb-6 max-w-xl mx-auto",children:"Watch AI agents browse the web in real-time, gathering insights from multiple sources simultaneously."}),(0,s.jsxs)("div",{className:"hero-badges flex items-center justify-center gap-2 flex-wrap",children:[(0,s.jsxs)("span",{className:"source-badge inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-[#e6e4e2] text-xs font-medium text-[#4a4848] cursor-default",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-[#4da9e4]"}),"Google"]}),(0,s.jsxs)("span",{className:"source-badge inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-[#e6e4e2] text-xs font-medium text-[#4a4848] cursor-default",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-[#90c94d]"}),"Wikipedia"]}),(0,s.jsxs)("span",{className:"source-badge inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-[#e6e4e2] text-xs font-medium text-[#4a4848] cursor-default",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-[#f03603]"}),"YouTube"]}),(0,s.jsxs)("span",{className:"source-badge inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-[#e6e4e2] text-xs font-medium text-[#4a4848] cursor-default",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-[#f4ba41]"}),"Hacker News"]}),(0,s.jsxs)("span",{className:"source-badge inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white border border-[#e6e4e2] text-xs font-medium text-[#4a4848] cursor-default",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-[#969493]"}),"+ more"]})]})]}),(0,s.jsxs)("div",{className:"hero-search",children:[(0,s.jsx)(l.default,{query:o,setQuery:c,isResearching:d,onSearch:()=>h()}),(0,s.jsx)(n,{onSelect:e=>h(e)}),(0,s.jsxs)("div",{className:"mt-4 text-center",children:[(0,s.jsx)("p",{className:"text-sm text-[#969493] mb-3",children:"This demo can be easily deployed to Vercel using the Vercel Marketplace."}),(0,s.jsxs)("a",{href:"https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fbrowserbase%2Fbrowserbase-nextjs-template&stores=%5B%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22other%22%2C%22productSlug%22%3A%22browserbase%22%2C%22integrationSlug%22%3A%22browserbase%22%7D%5D",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-4 py-2 rounded-md bg-white border border-[#e6e4e2] text-sm text-[#4a4848] hover:border-[#000] hover:text-[#000] hover:-translate-y-0.5 hover:shadow-md transition-all duration-300 cursor-pointer focus:outline-none focus:shadow-[0_0_0_3px_rgba(240,54,3,0.1)]",children:[(0,s.jsx)("img",{src:"/vercel-icon.svg",alt:"Vercel",className:"h-3.5 w-3.5"}),(0,s.jsx)("span",{children:"Deploy"})]})]})]})]})}),(0,s.jsx)(i.default,{})]})}e.s(["default",()=>c],31713)}]);
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.