"use strict";(()=>{var e={};e.id=3784,e.ids=[3784],e.modules={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")},66170:(e,t,r)=>{r.r(t),r.d(t,{patchFetch:()=>g,routeModule:()=>c,serverHooks:()=>w,workAsyncStorage:()=>x,workUnitAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{GET:()=>d,dynamic:()=>p});var a=r(96559),o=r(48088),i=r(37719),n=r(32190),l=r(5069);let p="force-dynamic";async function u(){try{let[e]=await l.A.execute("SELECT value FROM site_settings WHERE key_name='robots_txt'");if(e[0]?.value){let t=e[0].value.split("\n").map(e=>e.trim()).filter(Boolean),r=[],s=null;for(let e of t)e.startsWith("User-agent:")?(s&&r.push(s),s={userAgent:e.replace("User-agent:","").trim(),allow:[],disallow:[]}):e.startsWith("Allow:")&&s?s.allow.push(e.replace("Allow:","").trim()):e.startsWith("Disallow:")&&s&&s.disallow.push(e.replace("Disallow:","").trim());return s&&r.push(s),{rules:r.length?r:[{userAgent:"*",allow:"/"}],sitemap:"https://mobilephonecompare.com/sitemap.xml"}}}catch{}return{rules:[{userAgent:"*",allow:"/",disallow:["/admin/","/api/admin/"]}],sitemap:"https://mobilephonecompare.com/sitemap.xml"}}var m=r(12127);async function d(){let e=await u(),t=(0,m.resolveRouteData)(e,"robots");return new n.NextResponse(t,{headers:{"Content-Type":"text/plain","Cache-Control":"public, max-age=0, must-revalidate"}})}let c=new a.AppRouteRouteModule({definition:{kind:o.RouteKind.APP_ROUTE,page:"/robots.txt/route",pathname:"/robots.txt",filename:"robots",bundlePath:"app/robots.txt/route"},resolvedPagePath:"next-metadata-route-loader?filePath=C%3A%5CUsers%5CTaukeer19%5CDesktop%5CWebsite%5Cmobile-site%5Cmobile-insights-hub%5Csrc%5Capp%5Crobots.ts&isDynamicRouteExtension=1!?__next_metadata_route__",nextConfigOutput:"standalone",userland:s}),{workAsyncStorage:x,workUnitAsyncStorage:h,serverHooks:w}=c;function g(){return(0,i.patchFetch)({workAsyncStorage:x,workUnitAsyncStorage:h})}}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[4447,580,9107],()=>r(66170));module.exports=s})();