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