module.exports=[34520,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={kategori:a.get("kategori"),judul:a.get("judul"),deskripsi:a.get("deskripsi")||null,url:a.get("url"),tipe_url:a.get("tipe_url"),is_active:"true"===a.get("is_active"),urutan:parseInt(a.get("urutan"))||0};if(!b.kategori||!b.judul||!b.url)return{error:"Kategori, Judul, dan URL wajib diisi."};try{await d.prisma.bearrLink.create({data:b}),(0,e.revalidatePath)("/bearr"),(0,e.revalidatePath)("/admin/bearr")}catch(a){return{error:a.message}}}async function g(a,b){let c={kategori:b.get("kategori"),judul:b.get("judul"),deskripsi:b.get("deskripsi")||null,url:b.get("url"),tipe_url:b.get("tipe_url"),is_active:"true"===b.get("is_active"),urutan:parseInt(b.get("urutan"))||0};try{await d.prisma.bearrLink.update({where:{id:a},data:c}),(0,e.revalidatePath)("/bearr"),(0,e.revalidatePath)("/admin/bearr")}catch(a){return{error:a.message}}}async function h(a){try{await d.prisma.bearrLink.delete({where:{id:a}}),(0,e.revalidatePath)("/bearr"),(0,e.revalidatePath)("/admin/bearr")}catch(a){return{error:a.message}}}(0,a.i(13095).ensureServerEntryExports)([f,g,h]),(0,c.registerServerReference)(f,"40dbdbf267c2bbc949db0f68f1b704f1b816f2512f",null),(0,c.registerServerReference)(g,"60f8c6943578425923ee5b26b0f35aa2ee35fe9e25",null),(0,c.registerServerReference)(h,"400a36a63154f4f3c6ba7e2001799e42a19b254940",null),a.s([],54582),a.i(54582),a.s(["400a36a63154f4f3c6ba7e2001799e42a19b254940",()=>h,"4075a4f15fdffa67697b6c9e39dcd48c9596b5b506",()=>b.changePassword,"40dbdbf267c2bbc949db0f68f1b704f1b816f2512f",()=>f,"60f8c6943578425923ee5b26b0f35aa2ee35fe9e25",()=>g],34520)},53666,a=>{a.v(a=>Promise.resolve().then(()=>a(66518)))},67016,a=>{a.v(a=>Promise.resolve().then(()=>a(72849)))}];

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