"use strict";(()=>{var e={};e.id=1793,e.ids=[1793],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")},11255:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>h,patchFetch:()=>v,requestAsyncStorage:()=>c,routeModule:()=>p,serverHooks:()=>m,staticGenerationAsyncStorage:()=>l});var a={};t.r(a),t.d(a,{DELETE:()=>d});var i=t(49303),o=t(88716),s=t(60670),n=t(87070),u=t(72331);async function d(e,{params:r}){try{return await u._.voucher.delete({where:{id:r.id}}),n.NextResponse.json({success:!0})}catch(e){return n.NextResponse.json({error:"Failed to delete voucher"},{status:500})}}let p=new i.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/admin/vouchers/[id]/route",pathname:"/api/admin/vouchers/[id]",filename:"route",bundlePath:"app/api/admin/vouchers/[id]/route"},resolvedPagePath:"C:\\Users\\MSI\\Downloads\\film\\app\\api\\admin\\vouchers\\[id]\\route.ts",nextConfigOutput:"standalone",userland:a}),{requestAsyncStorage:c,staticGenerationAsyncStorage:l,serverHooks:m}=p,h="/api/admin/vouchers/[id]/route";function v(){return(0,s.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:l})}},72331:(e,r,t)=>{t.d(r,{_:()=>i});var a=t(53524);let i=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(11255));module.exports=a})();