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