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))},160639,a=>a.a(async(b,c)=>{try{var d=a.i(766518),e=b([d]);async function f(){return d.prisma.allowedEmployee.findMany({orderBy:{createdAt:"desc"}})}[d]=e.then?(await e)():e,a.s(["getAllowedEmployees",()=>f]),c()}catch(a){c(a)}},!1),414603,a=>{"use strict";var b=a.i(907997),c=a.i(139138);function d({title:a,description:d,action:e,className:f}){return(0,b.jsxs)("div",{className:(0,c.cn)("flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",f),children:[(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:a}),d&&(0,b.jsx)("p",{className:"text-sm text-muted-foreground",children:d})]}),e&&(0,b.jsx)("div",{className:"flex shrink-0 items-center gap-2 pt-1 sm:pt-0",children:e})]})}a.s(["PageHeader",()=>d])},904786,a=>{"use strict";a.s(["EmployeesClient",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call EmployeesClient() from the server but EmployeesClient 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/employees/_components/EmployeesClient.tsx <module evaluation>","EmployeesClient")},547497,a=>{"use strict";a.s(["EmployeesClient",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call EmployeesClient() from the server but EmployeesClient 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/employees/_components/EmployeesClient.tsx","EmployeesClient")},460974,a=>{"use strict";a.i(904786);var b=a.i(547497);a.n(b)},575158,a=>{"use strict";a.s(["EmployeeForm",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call EmployeeForm() from the server but EmployeeForm 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/employees/_components/EmployeeForm.tsx <module evaluation>","EmployeeForm")},705454,a=>{"use strict";a.s(["EmployeeForm",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call EmployeeForm() from the server but EmployeeForm 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/employees/_components/EmployeeForm.tsx","EmployeeForm")},231530,a=>{"use strict";a.i(575158);var b=a.i(705454);a.n(b)},89564,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(160639),h=a.i(414603),i=a.i(460974),j=a.i(231530),k=b([f,g]);async function l(){let a=await (0,f.auth)();a?.user&&"SUPER_ADMIN"===a.user.role||(0,e.redirect)("/admin");let b=await (0,g.getAllowedEmployees)();return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsx)(h.PageHeader,{title:"SA Tools Access",description:"Manage employees who can access SA Tools with their company email.",action:(0,d.jsx)(j.EmployeeForm,{})}),(0,d.jsx)(i.EmployeesClient,{employees:b})]})}[f,g]=k.then?(await k)():k,a.s(["default",()=>l]),c()}catch(a){c(a)}},!1)];

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