module.exports=[79527,a=>{"use strict";var b=a.i(1502),c=a.i(37936),d=a.i(66518),e=a.i(18558);async function f(a){let b=a.get("kode"),c=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 d.prisma.mataKuliah.create({data:{kode:b,nama:c,sks:f,semester_rekomendasi:g,prodi:h,kategori:i||null}}),(0,e.revalidatePath)("/admin/kurikulum"),(0,e.revalidatePath)("/kinetik"),{success:!0}}catch(a){return{error:a.message}}}async function g(a,b){let c=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 d.prisma.mataKuliah.update({where:{id:a},data:{kode:c,nama:f,sks:g,semester_rekomendasi:h,prodi:i,kategori:j||null}}),(0,e.revalidatePath)("/admin/kurikulum"),(0,e.revalidatePath)("/kinetik"),{success:!0}}catch(a){return{error:a.message}}}async function h(a){try{return await d.prisma.mataKuliah.delete({where:{id:a}}),(0,e.revalidatePath)("/admin/kurikulum"),(0,e.revalidatePath)("/kinetik"),{success:!0}}catch(a){return{error:a.message}}}async function i(a){try{if(!a||0===a.length)return{error:"Data kosong"};return await d.prisma.mataKuliah.createMany({data:a}),(0,e.revalidatePath)("/admin/kurikulum"),(0,e.revalidatePath)("/kinetik"),{success:!0,count:a.length}}catch(a){return{error:a.message}}}(0,a.i(13095).ensureServerEntryExports)([f,g,h,i]),(0,c.registerServerReference)(f,"409290b0d16e72efed1396469480c8bdbebedfe7a3",null),(0,c.registerServerReference)(g,"60bee48e73d0843b9578a98e92614fd3e04ff041a8",null),(0,c.registerServerReference)(h,"40227ad852324d003c953d8ceee893303e66776fea",null),(0,c.registerServerReference)(i,"40163d0e77657ed48be6a8c8d0c7b7d36c4a97b2af",null),a.s([],14224),a.i(14224),a.s(["40163d0e77657ed48be6a8c8d0c7b7d36c4a97b2af",()=>i,"40227ad852324d003c953d8ceee893303e66776fea",()=>h,"4075a4f15fdffa67697b6c9e39dcd48c9596b5b506",()=>b.changePassword,"409290b0d16e72efed1396469480c8bdbebedfe7a3",()=>f,"60bee48e73d0843b9578a98e92614fd3e04ff041a8",()=>g],79527)},53666,a=>{a.v(a=>Promise.resolve().then(()=>a(66518)))},67016,a=>{a.v(a=>Promise.resolve().then(()=>a(72849)))}];

//# sourceMappingURL=_910295ce._.js.map