"use strict";(()=>{var e={};e.id=1291,e.ids=[1291],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")},30741:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>j,patchFetch:()=>v,requestAsyncStorage:()=>h,routeModule:()=>y,serverHooks:()=>g,staticGenerationAsyncStorage:()=>m});var o={};t.r(o),t.d(o,{GET:()=>f,dynamic:()=>l,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),c=t(43957);let l="force-dynamic",q=120;async function f(e,{params:r}){let t=await (0,a.getServerSession)(u.L),o=t?.user?.id;if(!o)return p.NextResponse.json({error:"Unauthorized"},{status:401});let s=await d._.jobListing.findFirst({where:{id:r?.id,userId:o}});if(!s?.fitAnalysis)return p.NextResponse.json({error:"No fit report found."},{status:404});let i=(0,x.B)(s.title||"job_fit"),n=(0,c.u)({reportTitle:"ATS Fit Report",score:s.fitScore??null,intro:"ATS-focused fit analysis with strengths, gaps, keywords, and tailoring recommendations.",accentHex:"#4c3dc2",reportText:s.fitAnalysis});return new p.NextResponse(n,{headers:{"Content-Type":"application/pdf","Content-Disposition":`inline; filename="${i}_fit_report.pdf"`}})}let y=new s.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/job/[id]/report-pdf/route",pathname:"/api/job/[id]/report-pdf",filename:"route",bundlePath:"app/api/job/[id]/report-pdf/route"},resolvedPagePath:"/Users/andrasgyenes/Desktop/MrQuery 2026/HyreMe/Archive/hyreme-app/app/api/job/[id]/report-pdf/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:h,staticGenerationAsyncStorage:m,serverHooks:g}=y,j="/api/job/[id]/report-pdf/route";function v(){return(0,n.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:m})}}};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(30741));module.exports=o})();