(()=>{var e={};e.id=949,e.ids=[949],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")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64749:()=>{},66638:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>c,routeModule:()=>u,serverHooks:()=>l,workAsyncStorage:()=>p,workUnitAsyncStorage:()=>d});var s={};r.r(s),r.d(s,{PUT:()=>i});var a=r(30781),o=r(60554),n=r(31625);r(80129);let i=async e=>{try{let t=e.headers.get("cookie")||"",r=await e.formData(),s=r.get("testId");if(!s)return new Response(JSON.stringify({error:"Missing testId"}),{status:400});let a=`http://localhost:3001/api/lab-tests/update/${s}`,o=await fetch(a,{method:"PUT",headers:{cookie:t},body:r});if(!o.ok){let e=await o.json();return new Response(JSON.stringify({error:e.message||"Failed to update test"}),{status:o.status})}let n=await o.json();return new Response(JSON.stringify(n),{status:200})}catch(e){return console.error("Error submitting lab test:",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/update/route",pathname:"/api/lab-tests/update",filename:"route",bundlePath:"app/api/lab-tests/update/route"},resolvedPagePath:"/home/kencert/Desktop/Work/consultingsystem/frontend/app/api/lab-tests/update/route.js",nextConfigOutput:"",userland:s}),{workAsyncStorage:p,workUnitAsyncStorage:d,serverHooks:l}=u;function c(){return(0,n.patchFetch)({workAsyncStorage:p,workUnitAsyncStorage:d})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[1625,3197],()=>r(66638));module.exports=s})();