"use strict";(()=>{var e={};e.id=9264,e.ids=[9264],e.modules={72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},27790:e=>{e.exports=require("assert")},78893:e=>{e.exports=require("buffer")},84770:e=>{e.exports=require("crypto")},17702:e=>{e.exports=require("events")},92048:e=>{e.exports=require("fs")},32615:e=>{e.exports=require("http")},35240:e=>{e.exports=require("https")},19801:e=>{e.exports=require("os")},55315:e=>{e.exports=require("path")},86624:e=>{e.exports=require("querystring")},17360:e=>{e.exports=require("url")},21764:e=>{e.exports=require("util")},71568:e=>{e.exports=require("zlib")},92761:e=>{e.exports=require("node:async_hooks")},17718:e=>{e.exports=require("node:child_process")},6005:e=>{e.exports=require("node:crypto")},15673:e=>{e.exports=require("node:events")},87561:e=>{e.exports=require("node:fs")},93977:e=>{e.exports=require("node:fs/promises")},70612:e=>{e.exports=require("node:os")},49411:e=>{e.exports=require("node:path")},97742:e=>{e.exports=require("node:process")},25997:e=>{e.exports=require("node:tty")},47261:e=>{e.exports=require("node:util")},29733:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>v,patchFetch:()=>w,requestAsyncStorage:()=>h,routeModule:()=>f,serverHooks:()=>g,staticGenerationAsyncStorage:()=>y});var o={};t.r(o),t.d(o,{GET:()=>m,dynamic:()=>x,maxDuration:()=>q});var s=t(49790),i=t(60540),n=t(82273),a=t(19096),p=t(27489),u=t(64451),l=t(92795),d=t(80887),c=t(3086);let x="force-dynamic",q=300;async function m(){let e=await (0,p.getServerSession)(u.L),r=e?.user?.id;if(!r)return a.NextResponse.json({error:"Unauthorized"},{status:401});let t=await l._.profile.findUnique({where:{userId:r}});if(!t)return a.NextResponse.json({error:"No profile"},{status:404});let o={fullName:t?.fullName??"",email:t?.email??"",phone:t?.phone??"",location:t?.location??"",linkedinUrl:t?.linkedinUrl??"",websiteUrl:t?.websiteUrl??"",summary:t?.summary??"",skills:t?.skills??[],experience:t?.experience??[],education:t?.education??[],certifications:t?.certifications??[],projects:t?.projects??[],languages:t?.languages??[]};try{let e=(0,c.D)(o),r=(0,d.B)(o?.fullName||"resume");return new a.NextResponse(e,{headers:{"Content-Type":"application/pdf","Content-Disposition":`inline; filename="${r}_resume.pdf"`}})}catch(e){return a.NextResponse.json({error:e?.message||"PDF failed"},{status:500})}}let f=new s.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/profile/download/route",pathname:"/api/profile/download",filename:"route",bundlePath:"app/api/profile/download/route"},resolvedPagePath:"/Users/andrasgyenes/Desktop/MrQuery 2026/HyreMe/Archive/hyreme-app/app/api/profile/download/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:h,staticGenerationAsyncStorage:y,serverHooks:g}=f,v="/api/profile/download/route";function w(){return(0,n.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:y})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[9085,400,8664,7764,2795,13],()=>t(29733));module.exports=o})();