module.exports=[63861,a=>{"use strict";var b=a.i(54078),c=a.i(83789),d=a.i(82844);async function e(a){let b=a.get("kode"),e=a.get("nama"),f=Number(a.get("sks")),g=Number(a.get("semester_rekomendasi")),h=a.get("prodi"),i=a.get("kategori");try{return await c.prisma.mataKuliah.create({data:{kode:b,nama:e,sks:f,semester_rekomendasi:g,prodi:h,kategori:i||null}}),(0,d.revalidatePath)("/admin/kurikulum"),(0,d.revalidatePath)("/kinetik"),{success:!0}}catch(a){return{error:a.message}}}async function f(a,b){let e=b.get("kode"),f=b.get("nama"),g=Number(b.get("sks")),h=Number(b.get("semester_rekomendasi")),i=b.get("prodi"),j=b.get("kategori");try{return await c.prisma.mataKuliah.update({where:{id:a},data:{kode:e,nama:f,sks:g,semester_rekomendasi:h,prodi:i,kategori:j||null}}),(0,d.revalidatePath)("/admin/kurikulum"),(0,d.revalidatePath)("/kinetik"),{success:!0}}catch(a){return{error:a.message}}}async function g(a){try{return await c.prisma.mataKuliah.delete({where:{id:a}}),(0,d.revalidatePath)("/admin/kurikulum"),(0,d.revalidatePath)("/kinetik"),{success:!0}}catch(a){return{error:a.message}}}async function h(a){try{if(!a||0===a.length)return{error:"Data kosong"};return await c.prisma.mataKuliah.createMany({data:a}),(0,d.revalidatePath)("/admin/kurikulum"),(0,d.revalidatePath)("/kinetik"),{success:!0,count:a.length}}catch(a){return{error:a.message}}}(0,a.i(45577).ensureServerEntryExports)([e,f,g,h]),(0,b.registerServerReference)(e,"404fb956e6736ac9674f485c272a18f04ab7a3e741",null),(0,b.registerServerReference)(f,"60abd6793a17a050dbdc88d881f3a92fa0b1e5d8f6",null),(0,b.registerServerReference)(g,"4011ed04dbe3c0a0a783dffcb62f1ebd29d2fd45c8",null),(0,b.registerServerReference)(h,"40a2bf076b4eeda98c72af5c4791cd4bb94a5e0a3f",null),a.s(["createMatkul",()=>e,"deleteMatkul",()=>g,"importBulkMatkul",()=>h,"updateMatkul",()=>f])},25929,a=>a.a(async(b,c)=>{try{var d=a.i(47721);a.i(63861);var e=b([d]);[d]=e.then?(await e)():e,a.s([]),c()}catch(a){c(a)}},!1),58799,a=>a.a(async(b,c)=>{try{var d=a.i(25929),e=a.i(47721),f=a.i(63861),g=b([d,e]);[d,e]=g.then?(await g)():g,a.s(["4011ed04dbe3c0a0a783dffcb62f1ebd29d2fd45c8",()=>f.deleteMatkul,"4037ba609e87f0ba0d2996fdaf855b1eb89c70dd2a",()=>e.changePassword,"404fb956e6736ac9674f485c272a18f04ab7a3e741",()=>f.createMatkul,"40a2bf076b4eeda98c72af5c4791cd4bb94a5e0a3f",()=>f.importBulkMatkul,"60abd6793a17a050dbdc88d881f3a92fa0b1e5d8f6",()=>f.updateMatkul]),c()}catch(a){c(a)}},!1),56308,a=>{a.v(a=>Promise.resolve().then(()=>a(83789)))},53875,a=>{a.v(a=>Promise.resolve().then(()=>a(84282)))}];

//# sourceMappingURL=%5Broot-of-the-server%5D__8658aa3f._.js.map