module.exports=[50640,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"InvariantError",{enumerable:!0,get:function(){return d}});class d extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}},27699,(a,b,c)=>{b.exports=a.x("events",()=>require("events"))},874,(a,b,c)=>{b.exports=a.x("buffer",()=>require("buffer"))},6461,(a,b,c)=>{b.exports=a.x("zlib",()=>require("zlib"))},54799,(a,b,c)=>{b.exports=a.x("crypto",()=>require("crypto"))},63021,(a,b,c)=>{b.exports=a.x("@prisma/client-2c3a283f134fdcb6",()=>require("@prisma/client-2c3a283f134fdcb6"))},4446,(a,b,c)=>{b.exports=a.x("net",()=>require("net"))},99348,(a,b,c)=>{b.exports=a.x("string_decoder",()=>require("string_decoder"))},88947,(a,b,c)=>{b.exports=a.x("stream",()=>require("stream"))},55004,(a,b,c)=>{b.exports=a.x("tls",()=>require("tls"))},46786,(a,b,c)=>{b.exports=a.x("os",()=>require("os"))},22734,(a,b,c)=>{b.exports=a.x("fs",()=>require("fs"))},37936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(11857)},13095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},77382,a=>{"use strict";var b=a.i(37936),c=a.i(1241),d=a.i(45017),e=a.i(18558);async function f(a=!1){return c.prisma.jobPosting.findMany({where:a?{isActive:!0}:{},include:{_count:{select:{applications:!0}}},orderBy:{createdAt:"desc"}})}async function g(a){return c.prisma.jobPosting.findUnique({where:{slug:a}})}async function h(a){let b={title:a.get("title"),slug:a.get("slug"),department:a.get("department"),location:a.get("location")||"Denmark",type:a.get("type")||"Full-time",description:a.get("description"),requirements:a.get("requirements")||void 0,salary:a.get("salary")||void 0,isActive:"true"===a.get("isActive")},f=d.jobPostingSchema.parse(b);await c.prisma.jobPosting.create({data:f}),(0,e.revalidatePath)("/admin/careers"),(0,e.revalidatePath)("/career")}async function i(a,b){let f={title:b.get("title"),slug:b.get("slug"),department:b.get("department"),location:b.get("location")||"Denmark",type:b.get("type")||"Full-time",description:b.get("description"),requirements:b.get("requirements")||void 0,salary:b.get("salary")||void 0,isActive:"true"===b.get("isActive")},g=d.jobPostingSchema.parse(f);await c.prisma.jobPosting.update({where:{id:a},data:g}),(0,e.revalidatePath)("/admin/careers"),(0,e.revalidatePath)("/career")}async function j(a){await c.prisma.jobPosting.delete({where:{id:a}}),(0,e.revalidatePath)("/admin/careers"),(0,e.revalidatePath)("/career")}async function k(a){return c.prisma.jobApplication.findMany({where:a?{jobPostingId:a}:{},include:{jobPosting:{select:{title:!0}}},orderBy:{createdAt:"desc"}})}async function l(a){let b={name:a.get("name"),email:a.get("email"),phone:a.get("phone")||void 0,coverLetter:a.get("coverLetter")||void 0,resumeUrl:a.get("resumeUrl")||void 0,jobPostingId:a.get("jobPostingId")},f=d.jobApplicationSchema.parse(b);await c.prisma.jobApplication.create({data:f}),(0,e.revalidatePath)("/admin/careers")}async function m(a,b){await c.prisma.jobApplication.update({where:{id:a},data:{status:b}}),(0,e.revalidatePath)("/admin/careers")}async function n(a){await c.prisma.jobApplication.delete({where:{id:a}}),(0,e.revalidatePath)("/admin/careers")}(0,a.i(13095).ensureServerEntryExports)([f,g,h,i,j,k,l,m,n]),(0,b.registerServerReference)(f,"40d2a2fe8bd83b25b94da81c42983e7d6f1056af37",null),(0,b.registerServerReference)(g,"4069e2ea8abfe78ef4cbc57e342b68893a824b545a",null),(0,b.registerServerReference)(h,"4026812f31f278392e6f3ae3d5ca4877468fac3281",null),(0,b.registerServerReference)(i,"60803f238bb0aae26f8864c65431ed6d5bc07d47d8",null),(0,b.registerServerReference)(j,"40ffe6360ee52ae184bd765f90e21b0be91b832bd8",null),(0,b.registerServerReference)(k,"403f4ab798d215757add75ab71c54677d4fa995c80",null),(0,b.registerServerReference)(l,"4068ff8554aca3edbb81684d3ab918e8d9e9bc4905",null),(0,b.registerServerReference)(m,"60738f3cc384967a5475943ce9780693a681c34061",null),(0,b.registerServerReference)(n,"40399ade97571e2c9181299c305f762b95aaea00a2",null),a.s(["createJobApplication",0,l,"createJobPosting",0,h,"deleteJobApplication",0,n,"deleteJobPosting",0,j,"getJobApplications",0,k,"getJobPostingBySlug",0,g,"getJobPostings",0,f,"updateApplicationStatus",0,m,"updateJobPosting",0,i])},27084,a=>{"use strict";var b=a.i(77382);a.s([],77473),a.i(77473),a.s(["4026812f31f278392e6f3ae3d5ca4877468fac3281",()=>b.createJobPosting,"40399ade97571e2c9181299c305f762b95aaea00a2",()=>b.deleteJobApplication,"403f4ab798d215757add75ab71c54677d4fa995c80",()=>b.getJobApplications,"4068ff8554aca3edbb81684d3ab918e8d9e9bc4905",()=>b.createJobApplication,"4069e2ea8abfe78ef4cbc57e342b68893a824b545a",()=>b.getJobPostingBySlug,"40d2a2fe8bd83b25b94da81c42983e7d6f1056af37",()=>b.getJobPostings,"40ffe6360ee52ae184bd765f90e21b0be91b832bd8",()=>b.deleteJobPosting,"60738f3cc384967a5475943ce9780693a681c34061",()=>b.updateApplicationStatus,"60803f238bb0aae26f8864c65431ed6d5bc07d47d8",()=>b.updateJobPosting],27084)}];

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