(()=>{var e={};e.id=7555,e.ids=[7555],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},24429:()=>{},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},47776:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>h,routeModule:()=>u,serverHooks:()=>c,workAsyncStorage:()=>l,workUnitAsyncStorage:()=>d});var s={};r.r(s),r.d(s,{GET:()=>p});var a=r(30781),o=r(60554),n=r(31625),i=r(80129);let p=async e=>{let t=(0,i.UL)();if(!t.get("token")?.value)return new Response(JSON.stringify({error:"Unauthorized"}),{status:401});try{let{searchParams:t}=e.nextUrl,r=t.get("labId"),s=`http://localhost:3001/api/lab-tests/lab/${r}`,a=await fetch(s,{method:"GET",headers:{"Content-Type":"application/json",cookie:e.headers.get("cookie")||""}});if(!a.ok)throw Error("Failed to fetch lab tests");let o=await a.json();return new Response(JSON.stringify(o),{status:200})}catch(e){return console.error("Error fetching lab tests:",e),new Response(JSON.stringify({error:"Internal server error"}),{status:500})}},u=new a.AppRouteRouteModule({definition:{kind:o.RouteKind.APP_ROUTE,page:"/api/lab-tests/lab/route",pathname:"/api/lab-tests/lab",filename:"route",bundlePath:"app/api/lab-tests/lab/route"},resolvedPagePath:"/home/kencert/Desktop/Work/consultingsystem/frontend/app/api/lab-tests/lab/route.js",nextConfigOutput:"",userland:s}),{workAsyncStorage:l,workUnitAsyncStorage:d,serverHooks:c}=u;function h(){return(0,n.patchFetch)({workAsyncStorage:l,workUnitAsyncStorage:d})}},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64749:()=>{}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[1625,3197],()=>r(47776));module.exports=s})();