module.exports=[63117,(a,b,c)=>{b.exports=a.x("@prisma/client-3492e25bf8f78ee6",()=>require("@prisma/client-3492e25bf8f78ee6"))},83789,a=>{"use strict";var b=a.i(63117);"u">typeof process&&(process.env.UV_THREADPOOL_SIZE="1",process.env.PRISMA_MAX_THREADS="1",process.env.TOKIO_WORKER_THREADS="1");let c=a.g.prisma||new b.PrismaClient({log:["query"]});a.s(["prisma",0,c])},29355,a=>{"use strict";var b=a.i(54078),c=a.i(83789),d=a.i(82844);async function e(a){try{if(!a.nama?.trim()||!a.isi?.trim())return{success:!1,message:"Nama dan komentar tidak boleh kosong."};if(a.nama.length>100)return{success:!1,message:"Nama terlalu panjang."};if(a.isi.length>1e3)return{success:!1,message:"Komentar terlalu panjang (maks 1000 karakter)."};return await c.prisma.komentarBeranda.create({data:{nama:a.nama.trim(),isi:a.isi.trim(),isApproved:!1}}),(0,d.revalidatePath)("/"),{success:!0,message:"Komentar berhasil dikirim! Menunggu moderasi admin."}}catch(a){return{success:!1,message:a.message}}}async function f(){try{return await c.prisma.komentarBeranda.findMany({where:{isApproved:!0},orderBy:{createdAt:"desc"},take:20})}catch{return[]}}(0,a.i(45577).ensureServerEntryExports)([e,f]),(0,b.registerServerReference)(e,"40910d5313b2966b5774b47299cba6a3e81fb06d3d",null),(0,b.registerServerReference)(f,"00640e2a7b9da7c6af793e5d4df2bab1875d0b7b57",null),a.s(["getKomentarPublik",()=>f,"kirimKomentar",()=>e])},89408,a=>{"use strict";var b=a.i(29355);a.s([],83523),a.i(83523),a.s(["00640e2a7b9da7c6af793e5d4df2bab1875d0b7b57",()=>b.getKomentarPublik,"40910d5313b2966b5774b47299cba6a3e81fb06d3d",()=>b.kirimKomentar],89408)}];

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