module.exports=[63021,(a,b,c)=>{b.exports=a.x("@prisma/client-2c3a283f134fdcb6",()=>require("@prisma/client-2c3a283f134fdcb6"))},54799,(a,b,c)=>{b.exports=a.x("crypto",()=>require("crypto"))},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"))},50645,a=>{a.n(a.i(27572))},43619,a=>{a.n(a.i(79962))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},62212,a=>{a.n(a.i(66114))},70844,a=>{a.n(a.i(92359))},43254,a=>{"use strict";a.s(["UserForm",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call UserForm() from the server but UserForm 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/components/users/UserForm.tsx <module evaluation>","UserForm")},85498,a=>{"use strict";a.s(["UserForm",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call UserForm() from the server but UserForm 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/components/users/UserForm.tsx","UserForm")},42250,a=>{"use strict";a.i(43254);var b=a.i(85498);a.n(b)},78365,a=>{"use strict";var b=a.i(7997),c=a.i(9307);a.i(70396);var d=a.i(73727),e=a.i(66518),f=a.i(42250);async function g(a){return await e.default.user.findUnique({where:{id:a},select:{id:!0,name:!0,email:!0,role:!0}})}async function h({params:a}){let e=await (0,c.auth)();e||(0,d.redirect)("/login"),e.user?.role!=="ADMIN"&&(0,d.redirect)("/dashboard");let{id:h}=await a,i=await g(h);return i||(0,d.notFound)(),(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-2xl font-bold",children:"Edit User"}),(0,b.jsxs)("p",{className:"text-muted-foreground",children:["Update user information for ",i.name]})]}),(0,b.jsx)(f.UserForm,{user:i})]})}a.s(["default",()=>h])}];

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