"use strict";(()=>{var e={};e.id=3440,e.ids=[3440,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")},10129:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>g,patchFetch:()=>y,requestAsyncStorage:()=>l,routeModule:()=>d,serverHooks:()=>v,staticGenerationAsyncStorage:()=>m});var a={};t.r(a),t.d(a,{GET:()=>u,dynamic:()=>c});var s=t(49303),o=t(88716),n=t(60670),p=t(87070),i=t(72331);let c="force-dynamic";async function u(){try{let e=await i.default.pterodactylPackage.findMany({where:{isActive:!0},orderBy:{sortOrder:"asc"}});return p.NextResponse.json(e)}catch(e){return p.NextResponse.json({error:"Gagal memuat paket hosting"},{status:500})}}let d=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/pterodactyl/packages/route",pathname:"/api/pterodactyl/packages",filename:"route",bundlePath:"app/api/pterodactyl/packages/route"},resolvedPagePath:"C:\\Users\\akmal\\OneDrive\\Documents\\AmaneNime Topup\\amanenime-topup\\app\\api\\pterodactyl\\packages\\route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:l,staticGenerationAsyncStorage:m,serverHooks:v}=d,g="/api/pterodactyl/packages/route";function y(){return(0,n.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:m})}},72331:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o,prisma:()=>s});var a=t(53524);let s=globalThis.prisma??new a.PrismaClient({datasources:{db:{url:(()=>{if(process.env.DATABASE_URL)return process.env.DATABASE_URL;let e=process.env.DB_USER||"root",r=process.env.DB_PASSWORD||"",t=process.env.DB_HOST||"127.0.0.1",a=process.env.DB_PORT||"3306",s=process.env.DB_NAME||"amanenime_topup";return`mysql://${e}:${r}@${t}:${a}/${s}`})()}},log:["error"]}),o=s}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[8948,5972],()=>t(10129));module.exports=a})();