"use strict";(()=>{var e={};e.id=6019,e.ids=[6019],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")},82630:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>x,patchFetch:()=>v,requestAsyncStorage:()=>d,routeModule:()=>c,serverHooks:()=>w,staticGenerationAsyncStorage:()=>m});var a={};t.r(a),t.d(a,{POST:()=>l});var i=t(49303),o=t(88716),s=t(60670),n=t(87070),p=t(56681),u=t.n(p);async function l(e){let r;try{let{url:t}=await e.json();if(!t)return n.NextResponse.json({error:"URL is required"},{status:400});r=await u().chromium.launch();let a=await r.newPage();await a.goto(t,{waitUntil:"domcontentloaded",timeout:6e4});let i=await a.evaluate(()=>{let e=document.querySelector("div#sellerName span span")?.innerText||"N/A",r=document.querySelector("div.sBVJqn._8vsVX1")?.innerText||"N/A";return{seller:e,product_info:r}});return await r.close(),n.NextResponse.json({...i,url:t})}catch(e){return console.error("❌ Scraping Error:",e),n.NextResponse.json({error:"Failed to scrape website"},{status:500})}finally{await r.close()}}let c=new i.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/flipkart_detail_scraper/route",pathname:"/api/flipkart_detail_scraper",filename:"route",bundlePath:"app/api/flipkart_detail_scraper/route"},resolvedPagePath:"C:\\Users\\Design Collection\\OneDrive\\Desktop\\Jitendra Vishwakarma\\Next Dashboard\\web crawler for user dev\\Scrape Genius\\app\\api\\flipkart_detail_scraper\\route.js",nextConfigOutput:"",userland:a}),{requestAsyncStorage:d,staticGenerationAsyncStorage:m,serverHooks:w}=c,x="/api/flipkart_detail_scraper/route";function v(){return(0,s.patchFetch)({serverHooks:w,staticGenerationAsyncStorage:m})}}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[8948,5972],()=>t(82630));module.exports=a})();