(()=>{var e={};e.id=2726,e.ids=[2726],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},22075:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>l,routeModule:()=>p,serverHooks:()=>d,workAsyncStorage:()=>u,workUnitAsyncStorage:()=>c});var o={};r.r(o),r.d(o,{POST:()=>a});var n=r(30781),s=r(60554),i=r(31625);async function a(e){try{let t=await e.json(),r=await fetch("http://localhost:3001/api/appointmentbooking/",{method:"POST",headers:{"Content-Type":"application/json",cookie:e.headers.get("cookie")||""},body:JSON.stringify(t)});if(console.log(t),!r.ok){let e=await r.json();return new Response(JSON.stringify({error:e.error||"Failed to book appointment"}),{status:r.status})}let o=await r.json();return new Response(JSON.stringify(o),{status:200})}catch(e){return console.error("Error booking appointment:",e),new Response(JSON.stringify({error:"Internal server error"}),{status:500})}}let p=new n.AppRouteRouteModule({definition:{kind:s.RouteKind.APP_ROUTE,page:"/api/appointmentbooking/route",pathname:"/api/appointmentbooking",filename:"route",bundlePath:"app/api/appointmentbooking/route"},resolvedPagePath:"/home/kencert/Desktop/Work/consultingsystem/frontend/app/api/appointmentbooking/route.js",nextConfigOutput:"",userland:o}),{workAsyncStorage:u,workUnitAsyncStorage:c,serverHooks:d}=p;function l(){return(0,i.patchFetch)({workAsyncStorage:u,workUnitAsyncStorage:c})}},24429:()=>{},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30781:(e,t,r)=>{"use strict";e.exports=r(44870)},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:()=>{}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),o=t.X(0,[1625],()=>r(22075));module.exports=o})();