module.exports=[23457,a=>{"use strict";var b=a.i(83789);async function c(){try{let a=await b.prisma.kabinet.findFirst({where:{isAktif:!0},orderBy:{createdAt:"desc"}});if(!a)return null;let c=await b.prisma.programUnggulan.findMany({orderBy:{createdAt:"asc"}});return{...a,ProgramUnggulan:c}}catch{return null}}async function d(a){try{return await b.prisma.programKerja.findMany({where:{bidang:a}})}catch{return[]}}async function e(a){try{return await b.prisma.pengurus.findMany({where:{divisi:a},orderBy:{jabatan:"asc"}})}catch{return[]}}async function f(){try{return await b.prisma.pengurus.findMany({orderBy:[{angkatan:"asc"},{divisi:"desc"}]})}catch{return null}}async function g(){try{return await b.prisma.bidangLembaga.findMany({orderBy:{name:"asc"}})}catch{return[]}}async function h(a){try{return await b.prisma.bidangLembaga.findUnique({where:{slug:a}})}catch{return null}}async function i(){try{return await b.prisma.shortLink.findMany({orderBy:{createdAt:"desc"}})}catch{return[]}}async function j(a){try{return await b.prisma.shortLink.findMany({where:{userId:a},orderBy:{createdAt:"desc"}})}catch{return[]}}async function k(){try{return await b.prisma.user.findMany({orderBy:{name:"asc"}})}catch{return[]}}async function l(){try{return await b.prisma.profil.findFirst({where:{isAktif:!0}})}catch{return null}}async function m(){try{return await b.prisma.mataKuliah.findMany({orderBy:[{semester_rekomendasi:"asc"},{nama:"asc"}]})}catch(a){return console.error("CATCH: Gagal menarik data matkul:",a.message),[]}}async function n(a=!0){try{let c={orderBy:[{urutan:"asc"},{created_at:"asc"}]};return a&&(c.where={is_active:!0}),await b.prisma.bearrLink.findMany(c)}catch(a){return console.error("CATCH: Gagal menarik data BEARR:",a.message),[]}}async function o(){try{return await b.prisma.anggotaParlemen.findMany({orderBy:[{angkatan:"asc"},{komisi:"asc"}]})}catch{return[]}}async function p(){try{return await b.prisma.produkMumas.findMany({orderBy:{createdAt:"desc"}})}catch{return[]}}async function q(){try{if(b.prisma.acara&&"function"==typeof b.prisma.acara.findMany)return await b.prisma.acara.findMany({where:{status:"AKTIF"},orderBy:{createdAt:"desc"}});return await b.prisma.$queryRaw`SELECT * FROM Acara WHERE status = 'AKTIF' ORDER BY createdAt DESC`}catch{return[]}}a.s(["getAcaraAktif",()=>q,"getAllBearrLinks",()=>n,"getAllBidang",()=>g,"getAllMataKuliah",()=>m,"getAllPengurus",()=>f,"getAllShortLinks",()=>i,"getAllUsers",()=>k,"getBidangBySlug",()=>h,"getKabinetAktif",()=>c,"getPengurusByDivisi",()=>e,"getProfilAktif",()=>l,"getProkerByBidang",()=>d,"getSemuaAnggotaParlemen",()=>o,"getSemuaProdukMumas",()=>p,"getShortLinksByUserId",()=>j])},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},46372,a=>{a.n(a.i(84189))},17367,a=>{a.n(a.i(69389))},88562,a=>{a.n(a.i(79785))},90339,a=>{a.n(a.i(56665))},91770,a=>{a.n(a.i(747))},40657,a=>{a.n(a.i(61394))},96013,a=>{a.n(a.i(36601))},53555,a=>{a.n(a.i(80034))},88134,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(84218).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/.gemini/antigravity/scratch/HMF FPMIPA UPI/src/components/admin/profil-form.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/.gemini/antigravity/scratch/HMF FPMIPA UPI/src/components/admin/profil-form.tsx <module evaluation>","default")},23756,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(84218).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/.gemini/antigravity/scratch/HMF FPMIPA UPI/src/components/admin/profil-form.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/.gemini/antigravity/scratch/HMF FPMIPA UPI/src/components/admin/profil-form.tsx","default")},2776,a=>{"use strict";a.i(88134);var b=a.i(23756);a.n(b)},60768,a=>{"use strict";var b=a.i(9916),c=a.i(23457),d=a.i(2776);async function e(){let a=await (0,c.getProfilAktif)();return(0,b.jsxs)("div",{className:"space-y-6 animate-in fade-in duration-500",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-3xl font-bold tracking-tight",children:"Profil Himpunan"}),(0,b.jsx)("p",{className:"text-muted-foreground",children:"Kelola informasi sejarah, penjelasan lambang, hingga teks mars dan hymne."})]}),(0,b.jsx)(d.default,{initialData:a})]})}a.s(["default",()=>e,"dynamic",0,"force-dynamic"])}];

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