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