"use strict";(()=>{var e={};e.id=5475,e.ids=[5475],e.modules={2906:(e,t,r)=>{r.r(t),r.d(t,{patchFetch:()=>q,routeModule:()=>x,serverHooks:()=>g,workAsyncStorage:()=>f,workUnitAsyncStorage:()=>w});var a={};r.r(a),r.d(a,{default:()=>c,dynamic:()=>d});var i={};r.r(i),r.d(i,{GET:()=>h,dynamic:()=>d});var n=r(96559),s=r(48088),o=r(37719),p=r(32190),l=r(5069);let u="https://mobilephonecompare.com",d="force-dynamic";async function c(){let e=[{url:u,lastModified:new Date,changeFrequency:"daily",priority:1},{url:`${u}/phone-finder`,lastModified:new Date,changeFrequency:"daily",priority:.9},{url:`${u}/top-10`,lastModified:new Date,changeFrequency:"daily",priority:.8},{url:`${u}/brands`,lastModified:new Date,changeFrequency:"weekly",priority:.7},{url:`${u}/news`,lastModified:new Date,changeFrequency:"daily",priority:.8},{url:`${u}/upcoming`,lastModified:new Date,changeFrequency:"daily",priority:.7},{url:`${u}/compare`,lastModified:new Date,changeFrequency:"monthly",priority:.6}];try{let[t]=await l.A.execute("SELECT gsmarena_url, scraped_at FROM devices ORDER BY scraped_at DESC LIMIT 10000"),r=t.map(e=>{let t=e.gsmarena_url.match(/\/([^/]+)\.php$/),r=t?t[1]:null;return r?{url:`${u}/phone/${r}`,lastModified:e.scraped_at||new Date,changeFrequency:"monthly",priority:.6}:null}).filter(Boolean),[a]=await l.A.execute("SELECT slug, published_at FROM news_articles ORDER BY published_at DESC"),i=a.map(e=>({url:`${u}/news/${e.slug}`,lastModified:e.published_at||new Date,changeFrequency:"weekly",priority:.7})),[n]=await l.A.execute("SELECT name FROM brands ORDER BY name"),s=n.map(e=>({url:`${u}/phone-finder?brand=${encodeURIComponent(e.name)}`,lastModified:new Date,changeFrequency:"weekly",priority:.6}));return[...e,...r,...i,...s]}catch{return e}}var m=r(12127);let y={...a}.default;if("function"!=typeof y)throw Error('Default export is missing in "C:\\Users\\Taukeer19\\Desktop\\Website\\mobile-site\\mobile-insights-hub\\src\\app\\sitemap.ts"');async function h(e,t){let{__metadata_id__:r,...a}=await t.params||{},i=!!r&&r.endsWith(".xml");if(r&&!i)return new p.NextResponse("Not Found",{status:404});let n=r&&i?r.slice(0,-4):void 0,s=await y({id:n}),o=(0,m.resolveRouteData)(s,"sitemap");return new p.NextResponse(o,{headers:{"Content-Type":"application/xml","Cache-Control":"public, max-age=0, must-revalidate"}})}let x=new n.AppRouteRouteModule({definition:{kind:s.RouteKind.APP_ROUTE,page:"/sitemap.xml/route",pathname:"/sitemap.xml",filename:"sitemap",bundlePath:"app/sitemap.xml/route"},resolvedPagePath:"next-metadata-route-loader?filePath=C%3A%5CUsers%5CTaukeer19%5CDesktop%5CWebsite%5Cmobile-site%5Cmobile-insights-hub%5Csrc%5Capp%5Csitemap.ts&isDynamicRouteExtension=1!?__next_metadata_route__",nextConfigOutput:"standalone",userland:i}),{workAsyncStorage:f,workUnitAsyncStorage:w,serverHooks:g}=x;function q(){return(0,o.patchFetch)({workAsyncStorage:f,workUnitAsyncStorage:w})}},3295:e=>{e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3498:e=>{e.exports=require("mysql2/promise")},10846:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},29021:e=>{e.exports=require("fs")},29294:e=>{e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:e=>{e.exports=require("path")},44870:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:e=>{e.exports=require("sql.js")},63033:e=>{e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[4447,580,9107],()=>r(2906));module.exports=a})();