module.exports=[70406,(e,t,a)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},44950,e=>e.a(async(t,a)=>{try{let t=await e.y("bcryptjs-ee66c2bdc904f2cf");e.n(t),a()}catch(e){a(e)}},!0),78042,(e,t,a)=>{t.exports=e.x("next-auth-c77c3a03231bb629",()=>require("next-auth-c77c3a03231bb629"))},9632,(e,t,a)=>{t.exports=e.x("next-auth-c77c3a03231bb629/providers/credentials",()=>require("next-auth-c77c3a03231bb629/providers/credentials"))},36304,e=>e.a(async(t,a)=>{try{var r=e.i(78042),i=e.i(9632),n=e.i(44950),s=e.i(24977),l=t([n]);[n]=l.then?(await l)():l;let o=(0,r.default)({secret:process.env.NEXTAUTH_SECRET,session:{strategy:"jwt"},pages:{signIn:"/login"},providers:[(0,i.default)({name:"Credentials",credentials:{email:{label:"E-posta",type:"text"},password:{label:"Şifre",type:"password"}},async authorize(e){let t=String(e?.email||"").trim(),a=String(e?.password||"");if(!t||!a)return null;let r=await s.default.user.findFirst({where:{name:t}});return r&&await n.default.compare(a,r.pass)?{id:String(r.id),name:r.name,role:r.role}:null}})],callbacks:{jwt:async({token:e,user:t})=>(t&&(e.uid=t.id,e.role=t.role,e.name=t.name),e),session:async({session:e,token:t})=>(e?.user&&(e.user.id=t.uid,e.user.role=t.role,e.user.name=t.name),e)}});e.s(["default",0,o]),a()}catch(e){a(e)}},!1),22178,e=>e.a(async(t,a)=>{try{var r=e.i(26747),i=e.i(90406),n=e.i(44898),s=e.i(62950),l=e.i(36304),o=e.i(7031),u=e.i(81927),d=e.i(46432),p=t([l]);[l]=p.then?(await p)():p;let h=(0,s.hoist)(l,"default"),m=(0,s.hoist)(l,"config"),x=new n.PagesAPIRouteModule({definition:{kind:i.RouteKind.PAGES_API,page:"/api/auth/[...nextauth]",pathname:"/api/auth/[...nextauth]",bundlePath:"",filename:""},userland:l,distDir:".next",relativeProjectDir:""});async function c(e,t,a){x.isDev&&(0,d.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let i="/api/auth/[...nextauth]";i=i.replace(/\/index$/,"")||"/";let n=await x.prepare(e,t,{srcPage:i});if(!n){t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve());return}let{query:s,params:l,prerenderManifest:p,routerServerContext:c}=n;try{let a=e.method||"GET",r=(0,o.getTracer)(),n=r.getActiveScopeSpan(),d=x.instrumentationOnRequestError.bind(x),h=async n=>x.render(e,t,{query:{...s,...l},params:l,allowedRevalidateHeaderKeys:[],multiZoneDraftMode:!1,trustHostHeader:!1,previewProps:p.preview,propagateError:!1,dev:x.isDev,page:"/api/auth/[...nextauth]",internalRevalidate:null==c?void 0:c.revalidate,onError:(...t)=>d(e,...t)}).finally(()=>{if(!n)return;n.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let e=r.getRootSpanAttributes();if(!e)return;if(e.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${e.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=e.get("next.route");if(s){let e=`${a} ${s}`;n.setAttributes({"next.route":s,"http.route":s,"next.span_name":e}),n.updateName(e)}else n.updateName(`${a} ${i}`)});n?await h(n):await r.withPropagatedContext(e.headers,()=>r.trace(u.BaseServerSpan.handleRequest,{spanName:`${a} ${i}`,kind:o.SpanKind.SERVER,attributes:{"http.method":a,"http.target":e.url}},h))}catch(e){if(x.isDev)throw e;(0,r.sendError)(t,500,"Internal Server Error")}finally{null==a.waitUntil||a.waitUntil.call(a,Promise.resolve())}}e.s(["config",0,m,"default",0,h,"handler",()=>c]),a()}catch(e){a(e)}},!1)];

//# sourceMappingURL=%5Broot-of-the-server%5D__366c5154._.js.map