"use strict";(()=>{var e={};e.id=2074,e.ids=[2074],e.modules={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")},56681:e=>{e.exports=require("playwright")},96275:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>h,requestAsyncStorage:()=>m,routeModule:()=>d,serverHooks:()=>g,staticGenerationAsyncStorage:()=>u});var s={};r.r(s),r.d(s,{POST:()=>c});var a=r(49303),i=r(88716),l=r(60670),n=r(87070),o=r(56681),p=r.n(o);async function c(e){let t;try{let{url:r,headless:s=!0}=await e.json();if(!r)return n.NextResponse.json({error:"URL is required"},{status:400});t=await p().chromium.launch({headless:s});let a=await t.newPage();await a.route("**/*",e=>{["image","stylesheet","font"].includes(e.request().resourceType())?e.abort():e.continue()}),await a.goto(r,{waitUntil:"domcontentloaded",timeout:3e4});let i=await a.content(),l=Array.from(i.matchAll(/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g),e=>e[0]),o=["privacy","wordpress","sample","example","test","sentry","wizpress","domain","example","website","yoursite","pixel","xxx","sex","porn","mobile","%","cpanel","site"],c=[...new Set(l.filter(e=>!/\.(png|jpe?g|gif|webp|svg|bmp|tiff|heif|heic|ico|cur|psd|cdr|ai|eps|raw|cr2|nef|orf|sr2|rw2|dng|raf|arw|pef|x3f|pbm|pgm|ppm|pnm|hdr|exr|sgi|pic|pict|txt|md|rtf|docx?|odt|pdf|pages|tex|log|ans|wpd|xlsx?|xlsm|ods|csv|tsv|numbers|dbf|qif|qfx|pptx?|odp|key|js|jsx|ts|tsx|py|pyc|java|class|kt|kts|rb|php3?|pl|ps1|sh|bash|c|cpp|h|hpp|cs|go|rs|scala|swift|m|mm|vb|r|lua|groovy|erl|exs?|html?|xhtml|css|scss|sass|less|xml|json|map|ya?ml|mp3|wav|aac|m4a|flac|ogg|oga|opus|wma|aiff|alac|amr|mp4|m4v|mov|avi|mkv|wmv|flv|webm|mpeg|mpg|ts|m2ts|zip|rar|tar|gz|tgz|bz2|xz|z|lz|cab|iso|img|dmg|jar|ttf|otf|woff2?|eot|sql|sqlite3?|db|mdb|accdb|ldf|bak|ini|cfg|conf|env|plist|reg|sys|service|desktop|exe|dll|so|bin|elf|app|deb|rpm|msi|apk|ipa|lock|toml|gradle|pom|war|ear|whl|gem|npmignore|json|yarnrc|dxf|dwg|stl|obj|fbx|blend|gltf|glb|kml|kmz|geojson|shp|shx|gpx|osm|eml|msg|vcf|ics|pem|crt|cer|key|p12|pfx|asc|bib|cls|sty|ipynb|rmd|nb|mnb|trace|out|metrics|perf|tmp|old|swp|part|crdownload|torrent|lnk|ace|zst|pak|cue|md5|sha1|sha256|checksum)$/i.test(e)))].filter(e=>o.every(t=>!e.includes(t))),d=Array.from(i.matchAll(/\+?\d{1,4}?[-.\s]?\(?\d{2,5}\)?[-.\s]?\d{3,4}[-.\s]?\d{4,9}/g),e=>e[0]),m=[...new Set(d.filter(e=>{let t=e.replace(/[^\d+]/g,"");return!(t.length<7||t.length>15||/^\d+$/.test(t)&&(t.length<10||t.length>14))&&!!/^\+?\d{1,4}[-.\s]?\(?\d{2,5}\)?[-.\s]?\d{3,4}[-.\s]?\d{4,9}$/.test(e)}))].map(e=>e.replace(/[\s()\-\+]/g,""))||[],u=[],g=await a.evaluate(()=>Array.from(document.querySelectorAll("a")).map(e=>e.href)),f=g.find(e=>e.includes("facebook.com"))||"",h=g.find(e=>e.includes("twitter.com"))||"",b=g.find(e=>e.includes("instagram.com"))||"",x=g.find(e=>e.includes("youtube.com"))||"",w=g.find(e=>e.includes("telegram.org"))||"",v=g.find(e=>e.includes("reddit.com"))||"",y=g.find(e=>e.includes("linkedin.com"))||"",k=g.find(e=>e.includes("pinterest.com"))||"";u=[{title:"facebook",url:f},{title:"twitter",url:h},{title:"instagram",url:b},{title:"youtube",url:x},{title:"telegram",url:w},{title:"reddit",url:v},{title:"linkedin",url:y},{title:"pinterest",url:k}];let j=[];return(c.length||m.length||g.length)&&j.push({emails:[...new Set(c)],phones:m,socialMediaLinks:u,url:r}),n.NextResponse.json(j)}catch(e){return console.log(e),[]}finally{t&&await t.close()}}let d=new a.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/getWebsitePhone/route",pathname:"/api/getWebsitePhone",filename:"route",bundlePath:"app/api/getWebsitePhone/route"},resolvedPagePath:"C:\\Users\\Design Collection\\OneDrive\\Desktop\\Jitendra Vishwakarma\\Next Dashboard\\web crawler for user dev\\Scrape Genius\\app\\api\\getWebsitePhone\\route.js",nextConfigOutput:"",userland:s}),{requestAsyncStorage:m,staticGenerationAsyncStorage:u,serverHooks:g}=d,f="/api/getWebsitePhone/route";function h(){return(0,l.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:u})}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[8948,5972],()=>r(96275));module.exports=s})();