"use strict";(()=>{var e={};e.id=717,e.ids=[717],e.modules={53524:e=>{e.exports=require("@prisma/client")},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")},89084:(e,t,a)=>{a.r(t),a.d(t,{originalPathname:()=>A,patchFetch:()=>M,requestAsyncStorage:()=>w,routeModule:()=>v,serverHooks:()=>q,staticGenerationAsyncStorage:()=>F});var r={};a.r(r),a.d(r,{default:()=>m,dynamic:()=>d});var n={};a.r(n),a.d(n,{GET:()=>f,dynamic:()=>d});var i=a(49303),s=a(88716),o=a(60670),l=a(55661),u=a(53524);let p=globalThis.prisma||new u.PrismaClient;var c=a(98474);let d="force-dynamic";async function m(){let e=(0,c.headers)().get("x-forwarded-host")||process.env.NEXTAUTH_URL?.replace(/^https?:\/\//,"")||"evotrucksales.abacusai.app",t=`https://${e}`,a=[{url:t,lastModified:new Date,changeFrequency:"daily",priority:1},{url:`${t}/inventory`,lastModified:new Date,changeFrequency:"daily",priority:.9},{url:`${t}/about`,lastModified:new Date,changeFrequency:"monthly",priority:.7},{url:`${t}/financing`,lastModified:new Date,changeFrequency:"monthly",priority:.7},{url:`${t}/contact`,lastModified:new Date,changeFrequency:"monthly",priority:.8},{url:`${t}/why-us`,lastModified:new Date,changeFrequency:"monthly",priority:.6}],r=[],n=[];try{r=(await p.vehicle.findMany({where:{status:"AVAILABLE"},select:{slug:!0,updatedAt:!0}})).map(e=>({url:`${t}/inventory/${e.slug}`,lastModified:e.updatedAt,changeFrequency:"weekly",priority:.8})),n=(await p.category.findMany({select:{slug:!0,updatedAt:!0}})).map(e=>({url:`${t}/inventory?category=${e.slug}`,lastModified:e.updatedAt,changeFrequency:"weekly",priority:.7}))}catch(e){console.error("Sitemap generation error:",e)}return[...a,...r,...n]}var y=a(60707);let h={...r},x=h.default,g=h.generateSitemaps;if("function"!=typeof x)throw Error('Default export is missing in "/Users/jarolsanchez/Desktop/evotrucks/nextjs_space/app/sitemap.ts"');async function f(e,t){let a;let{__metadata_id__:r,...n}=t.params||{},i=g?await g():null;if(i&&null==(a=i.find(e=>{let t=e.id.toString();return(t+=".xml")===r})?.id))return new l.NextResponse("Not Found",{status:404});let s=await x({id:a}),o=(0,y.resolveRouteData)(s,"sitemap");return new l.NextResponse(o,{headers:{"Content-Type":"application/xml","Cache-Control":"public, max-age=0, must-revalidate"}})}let v=new i.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/sitemap.xml/route",pathname:"/sitemap.xml",filename:"sitemap",bundlePath:"app/sitemap.xml/route"},resolvedPagePath:"next-metadata-route-loader?page=%2Fsitemap.xml%2Froute&filePath=%2FUsers%2Fjarolsanchez%2FDesktop%2Fevotrucks%2Fnextjs_space%2Fapp%2Fsitemap.ts&isDynamic=1!?__next_metadata_route__",nextConfigOutput:"",userland:n}),{requestAsyncStorage:w,staticGenerationAsyncStorage:F,serverHooks:q}=v,A="/sitemap.xml/route";function M(){return(0,o.patchFetch)({serverHooks:q,staticGenerationAsyncStorage:F})}}};var t=require("../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[948,149],()=>a(89084));module.exports=r})();