module.exports=[70592,a=>{"use strict";var b=a.i(54078),c=a.i(83789),d=a.i(82844);async function e(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 c.prisma.bearrLink.create({data:b}),(0,d.revalidatePath)("/bearr"),(0,d.revalidatePath)("/admin/bearr")}catch(a){return{error:a.message}}}async function f(a,b){let e={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 c.prisma.bearrLink.update({where:{id:a},data:e}),(0,d.revalidatePath)("/bearr"),(0,d.revalidatePath)("/admin/bearr")}catch(a){return{error:a.message}}}async function g(a){try{await c.prisma.bearrLink.delete({where:{id:a}}),(0,d.revalidatePath)("/bearr"),(0,d.revalidatePath)("/admin/bearr")}catch(a){return{error:a.message}}}(0,a.i(45577).ensureServerEntryExports)([e,f,g]),(0,b.registerServerReference)(e,"4027fbe9edabdc3d8763ebabb491643c8f7b9e9ad0",null),(0,b.registerServerReference)(f,"60f38c578a42070de0cc85304af1959992d983be26",null),(0,b.registerServerReference)(g,"40ded39e8cc4547db70c8c7eba5beb0ffad29db98d",null),a.s(["createBearrLink",()=>e,"deleteBearrLink",()=>g,"updateBearrLink",()=>f])},98254,a=>a.a(async(b,c)=>{try{var d=a.i(47721);a.i(70592);var e=b([d]);[d]=e.then?(await e)():e,a.s([]),c()}catch(a){c(a)}},!1),43984,a=>a.a(async(b,c)=>{try{var d=a.i(98254),e=a.i(47721),f=a.i(70592),g=b([d,e]);[d,e]=g.then?(await g)():g,a.s(["4027fbe9edabdc3d8763ebabb491643c8f7b9e9ad0",()=>f.createBearrLink,"402994936ae62c31b9770b685df65dbaca3ad61a05",()=>e.changePassword,"40ded39e8cc4547db70c8c7eba5beb0ffad29db98d",()=>f.deleteBearrLink,"60f38c578a42070de0cc85304af1959992d983be26",()=>f.updateBearrLink]),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__2593bb5e._.js.map