"use strict";(()=>{var e={};e.id=4159,e.ids=[4159],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")},14995:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>v,requestAsyncStorage:()=>c,routeModule:()=>l,serverHooks:()=>x,staticGenerationAsyncStorage:()=>m});var n={};t.r(n),t.d(n,{GET:()=>d,dynamic:()=>u});var a=t(49303),s=t(88716),o=t(60670),i=t(87070),p=t(72331);let u="force-dynamic";async function d(e){try{let{searchParams:r}=new URL(e.url),t=r.get("placement"),n=r.get("type"),a={isActive:!0};t&&(a.placement=t),n&&(a.type=n);let s=await p._.banner.findMany({where:a,orderBy:{order:"asc"}});return i.NextResponse.json(s)}catch(e){return console.error("Banner fetch error:",e),i.NextResponse.json({error:"Failed to fetch banners"},{status:500})}}let l=new a.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/banners/route",pathname:"/api/banners",filename:"route",bundlePath:"app/api/banners/route"},resolvedPagePath:"C:\\Users\\MSI\\Downloads\\film\\app\\api\\banners\\route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:c,staticGenerationAsyncStorage:m,serverHooks:x}=l,h="/api/banners/route";function v(){return(0,o.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:m})}},72331:(e,r,t)=>{t.d(r,{_:()=>a});var n=t(53524);let a=global.prisma||new n.PrismaClient}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[8948,5972],()=>t(14995));module.exports=n})();