module.exports=[37936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(11857)},13095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},55820,a=>{"use strict";var b=a.i(37936),c=a.i(66518);async function d(a,b){if(!a)return{success:!1,error:"NISN harus diisi"};try{let d=await c.prisma.siswa.findUnique({where:{nisn:a},include:{nilaiSKL:!0,rombel:!0,jurusan:!0}});if(!d)return{success:!1,error:"Data siswa tidak ditemukan"};if(!d.nilaiSKL)return{success:!1,error:"Data kelulusan belum tersedia untuk siswa ini"};if(b&&d.tanggalLahir?.toISOString().split("T")[0]!==b)return{success:!1,error:"Kombinasi NISN dan Tanggal Lahir tidak cocok"};return{success:!0,data:{id:d.id,nama:d.nama,nisn:d.nisn,nis:d.nis,kelas:d.rombel?.namaRombel||"-",jurusan:d.jurusan?.namaJurusan||"-",status:d.nilaiSKL.status,nomorSurat:d.nilaiSKL.nomorSurat,nilaiRataRata:d.nilaiSKL.rataRata}}}catch(a){return console.error("Error checking SKL:",a),{success:!1,error:"Terjadi kesalahan sistem"}}}(0,a.i(13095).ensureServerEntryExports)([d]),(0,b.registerServerReference)(d,"602db8945a6aba422c19fd4ef2928264ea01043427",null),a.s([],53512),a.i(53512),a.s(["602db8945a6aba422c19fd4ef2928264ea01043427",()=>d],55820)}];

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