"use strict";(()=>{var e={};e.id=1738,e.ids=[1738],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")},70746:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>v,patchFetch:()=>j,requestAsyncStorage:()=>y,routeModule:()=>m,serverHooks:()=>g,staticGenerationAsyncStorage:()=>h});var o={};t.r(o),t.d(o,{GET:()=>f,dynamic:()=>c,maxDuration:()=>q});var s=t(49790),i=t(60540),n=t(82273),p=t(19096),a=t(27489),u=t(64451),d=t(92795),x=t(80887),l=t(43957);let c="force-dynamic",q=120;async function f(){let e=await (0,a.getServerSession)(u.L),r=e?.user?.id;if(!r)return p.NextResponse.json({error:"Unauthorized"},{status:401});let t=await d._.profile.findUnique({where:{userId:r}});if(!t?.lastAnalysis)return p.NextResponse.json({error:"No optimization report found."},{status:404});let o=(0,l.u)({reportTitle:"Resume Optimization Report",score:t.atsScore??null,intro:"Structured resume optimization review covering strengths, gaps, missing keywords, and concrete next steps.",accentHex:"#4f46e5",reportText:t.lastAnalysis}),s=(0,x.B)(t.fullName||"resume");return new p.NextResponse(o,{headers:{"Content-Type":"application/pdf","Content-Disposition":`inline; filename="${s}_resume_optimization_report.pdf"`}})}let m=new s.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/profile/report-pdf/route",pathname:"/api/profile/report-pdf",filename:"route",bundlePath:"app/api/profile/report-pdf/route"},resolvedPagePath:"/Users/andrasgyenes/Desktop/MrQuery 2026/HyreMe/Archive/hyreme-app/app/api/profile/report-pdf/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:y,staticGenerationAsyncStorage:h,serverHooks:g}=m,v="/api/profile/report-pdf/route";function j(){return(0,n.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:h})}}};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,5950],()=>t(70746));module.exports=o})();