"use strict";(()=>{var e={};e.id=2184,e.ids=[2184],e.modules={53524:e=>{e.exports=require("@prisma/client")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},88890:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>x,patchFetch:()=>v,requestAsyncStorage:()=>l,routeModule:()=>d,serverHooks:()=>m,staticGenerationAsyncStorage:()=>c});var a={};t.r(a),t.d(a,{POST:()=>u});var o=t(49303),s=t(88716),i=t(60670),n=t(87070),p=t(72331);async function u(e){try{let{userId:r,type:t,content:a,dramaId:o,episodeId:s}=await e.json();if(!a||!t)return n.NextResponse.json({error:"Missing required fields"},{status:400});let i=await p._.report.create({data:{userId:r,type:t,content:a,dramaId:o,episodeId:s}});return n.NextResponse.json(i)}catch(e){return n.NextResponse.json({error:"Failed to submit report"},{status:500})}}let d=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/report/create/route",pathname:"/api/report/create",filename:"route",bundlePath:"app/api/report/create/route"},resolvedPagePath:"C:\\Users\\MSI\\Downloads\\film\\app\\api\\report\\create\\route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:l,staticGenerationAsyncStorage:c,serverHooks:m}=d,x="/api/report/create/route";function v(){return(0,i.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:c})}},72331:(e,r,t)=>{t.d(r,{_:()=>o});var a=t(53524);let o=global.prisma||new a.PrismaClient}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[8948,5972],()=>t(88890));module.exports=a})();