"use strict";(()=>{var e={};e.id=5345,e.ids=[5345],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")},93693:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>_,patchFetch:()=>x,requestAsyncStorage:()=>c,routeModule:()=>p,serverHooks:()=>m,staticGenerationAsyncStorage:()=>d});var a={};r.r(a),r.d(a,{POST:()=>u});var o=r(49303),i=r(88716),n=r(60670),s=r(87070),l=r(56681);async function u(e){try{let{url:t}=await e.json();if(!t)return s.NextResponse.json({error:"URL is required"},{status:400});let r=(await l.chromium.connectOverCDP("http://localhost:9222")).contexts()[0].pages()[0];await r.goto(t,{waitUntil:"domcontentloaded",timeout:12e4}),await r.reload(),await r.waitForSelector(".user_profile");let a=await r.evaluate(()=>{let e=document.querySelector('ul.profile_list img[src*="location"] + span'),t=document.querySelector('ul.profile_list a[href^="tel:"] span'),r=document.querySelector("ul.user_contact li.view")?.innerText||"";return{address:e?e.textContent.trim():"",phone:t?t.textContent.trim():"",views:r}});return s.NextResponse.json({...a,url:t})}catch(e){return console.log(e),s.NextResponse.json(e)}}let p=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/mlm_diary_detail_scraper/route",pathname:"/api/mlm_diary_detail_scraper",filename:"route",bundlePath:"app/api/mlm_diary_detail_scraper/route"},resolvedPagePath:"C:\\Users\\Design Collection\\OneDrive\\Desktop\\Jitendra Vishwakarma\\Next Dashboard\\web crawler for user dev\\Scrape Genius\\app\\api\\mlm_diary_detail_scraper\\route.js",nextConfigOutput:"",userland:a}),{requestAsyncStorage:c,staticGenerationAsyncStorage:d,serverHooks:m}=p,_="/api/mlm_diary_detail_scraper/route";function x(){return(0,n.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:d})}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[8948,5972],()=>r(93693));module.exports=a})();