module.exports=[193695,(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"))},650645,a=>{a.n(a.i(827572))},923576,a=>{a.n(a.i(104858))},517537,a=>{a.n(a.i(903363))},13718,a=>{a.n(a.i(685523))},118198,a=>{a.n(a.i(545518))},262212,a=>{a.n(a.i(866114))},318173,a=>{a.n(a.i(454309))},140625,a=>{a.n(a.i(119285))},479e3,a=>{a.n(a.i(581901))},394931,a=>a.a(async(b,c)=>{try{var d=a.i(766518),e=b([d]);async function f(){return d.prisma.user.findMany({orderBy:{createdAt:"desc"},select:{id:!0,name:!0,email:!0,role:!0,isActive:!0,createdAt:!0}})}async function g(a){return d.prisma.user.findUnique({where:{id:a},select:{id:!0,name:!0,email:!0,role:!0,isActive:!0}})}[d]=e.then?(await e)():e,a.s(["getUserById",()=>g,"getUsers",()=>f]),c()}catch(a){c(a)}},!1),82159,a=>{"use strict";a.s(["EditUserForm",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call EditUserForm() from the server but EditUserForm is 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]/src/app/(admin)/admin/users/[id]/EditUserForm.tsx <module evaluation>","EditUserForm")},240213,a=>{"use strict";a.s(["EditUserForm",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call EditUserForm() from the server but EditUserForm is 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]/src/app/(admin)/admin/users/[id]/EditUserForm.tsx","EditUserForm")},40733,a=>{"use strict";a.i(82159);var b=a.i(240213);a.n(b)},171915,a=>a.a(async(b,c)=>{try{var d=a.i(907997);a.i(570396);var e=a.i(673727),f=a.i(109307),g=a.i(394931),h=a.i(40733),i=b([f,g]);async function j({params:a}){let b=await (0,f.auth)();b?.user&&"SUPER_ADMIN"===b.user.role||(0,e.redirect)("/admin");let{id:c}=await a,i=await (0,g.getUserById)(c);return i||(0,e.notFound)(),(0,d.jsx)(h.EditUserForm,{user:i})}[f,g]=i.then?(await i)():i,a.s(["default",()=>j]),c()}catch(a){c(a)}},!1)];

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