"use strict";(()=>{var e={};e.id=26,e.ids=[26],e.modules={20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},30678:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>y,requestAsyncStorage:()=>l,routeModule:()=>c,serverHooks:()=>h,staticGenerationAsyncStorage:()=>d});var a={};r.r(a),r.d(a,{GET:()=>u,dynamic:()=>p});var s=r(49303),o=r(88716),n=r(60670),i=r(87070);let p="force-dynamic";async function u(e){try{let t=new URL(e.url).searchParams.get("q");if(!t)return i.NextResponse.json({suggestions:[]},{status:200});let r=`https://bsky.social/xrpc/app.bsky.actor.searchActorsTypeahead?q=${encodeURIComponent(t)}&limit=5`;console.log("Fetching from API:",r);let a=await fetch(r,{method:"GET",headers:{Accept:"application/json"}});if(!a.ok){let e=await a.text();throw console.error("API response error:",a.status,e),Error(`API request failed: ${a.status} ${a.statusText}`)}let s=(await a.json()).actors.map(e=>({did:e.did,handle:e.handle,displayName:e.displayName,avatar:e.avatar||null}));return i.NextResponse.json({suggestions:s},{status:200})}catch(e){return console.error("User search error:",e),i.NextResponse.json({error:"Search failed",message:e.message},{status:500})}}let c=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/bluesky/search/route",pathname:"/api/bluesky/search",filename:"route",bundlePath:"app/api/bluesky/search/route"},resolvedPagePath:"/Users/dame/Library/Mobile Documents/com~apple~CloudDocs/Software/flushes/app/src/app/api/bluesky/search/route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:l,staticGenerationAsyncStorage:d,serverHooks:h}=c,m="/api/bluesky/search/route";function y(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:d})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[276,972],()=>r(30678));module.exports=a})();