"use strict";(()=>{var e={};e.id=8860,e.ids=[8860,2331],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")},99798:(e,r,a)=>{a.r(r),a.d(r,{originalPathname:()=>g,patchFetch:()=>h,requestAsyncStorage:()=>p,routeModule:()=>c,serverHooks:()=>m,staticGenerationAsyncStorage:()=>d});var t={};a.r(t),a.d(t,{GET:()=>l});var s=a(49303),o=a(88716),u=a(60670),n=a(87070),i=a(72331);async function l(){try{let e=await i.prisma.club.findMany({where:{isActive:!0},include:{league:{select:{name:!0,code:!0}}},orderBy:{league:{displayOrder:"asc"}}});return n.NextResponse.json({success:!0,data:e.map(e=>({id:e.id,name:e.name,code:e.code,league:e.league.name,league_code:e.league.code,logo_url:e.logoUrl}))})}catch(e){return console.error("Error fetching clubs:",e),n.NextResponse.json({success:!1,message:"Gagal memuat data klub"},{status:500})}}let c=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/clubs/route",pathname:"/api/clubs",filename:"route",bundlePath:"app/api/clubs/route"},resolvedPagePath:"C:\\xampp\\htdocs\\Bolafest\\app\\api\\clubs\\route.ts",nextConfigOutput:"standalone",userland:t}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:m}=c,g="/api/clubs/route";function h(){return(0,u.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:d})}},72331:(e,r,a)=>{a.d(r,{prisma:()=>s});var t=a(53524);let s=globalThis.prisma??new t.PrismaClient({log:["error"]})}};var r=require("../../../webpack-runtime.js");r.C(e);var a=e=>r(r.s=e),t=r.X(0,[9276,5972],()=>a(99798));module.exports=t})();