"use strict";(()=>{var e={};e.id=169,e.ids=[169],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")},90089:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>h,patchFetch:()=>_,requestAsyncStorage:()=>d,routeModule:()=>c,serverHooks:()=>m,staticGenerationAsyncStorage:()=>l});var a={};r.r(a),r.d(a,{POST:()=>p});var o=r(49303),s=r(88716),i=r(60670),n=r(87070),u=r(56681);async function p(e){let t;try{let{url:r,headless:a}=await e.json();if(!r)return n.NextResponse.json({error:"URL is required"},{status:400});let o=(t=await u.chromium.connectOverCDP("http://localhost:9222")).contexts()[0].pages()[0];await o.goto(r,{waitUntil:"domcontentloaded",timeout:6e4}),await o.waitForTimeout(5e3);let s=await o.evaluate(()=>{let e=document.querySelector("span.sc-eDvSVe.dpdDrR.ShopCardstyled__ShopName-sc-du9pku-6.bdcHGu.ShopCardstyled__ShopName-sc-du9pku-6.bdcHGu")?.innerText||"N/A",t=document.querySelector("div.sc-iBYQkv.iVRyfE.ProductDescription__DetailsCardStyled-sc-1l1jg0i-0.eFKyvM.ProductDescription__DetailsCardStyled-sc-1l1jg0i-0.eFKyvM")?.innerText||"N/A";return{seller:e,about_bullets:"",product_info:t}});return await t.close(),n.NextResponse.json({...s,url:r})}catch(e){return console.error("❌ Scraping Error:",e),n.NextResponse.json({error:"Failed to scrape website"},{status:500})}finally{await t.close()}}let c=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/meesho_detail_scraper/route",pathname:"/api/meesho_detail_scraper",filename:"route",bundlePath:"app/api/meesho_detail_scraper/route"},resolvedPagePath:"C:\\Users\\Design Collection\\OneDrive\\Desktop\\Jitendra Vishwakarma\\Next Dashboard\\web crawler for user dev\\Scrape Genius\\app\\api\\meesho_detail_scraper\\route.js",nextConfigOutput:"",userland:a}),{requestAsyncStorage:d,staticGenerationAsyncStorage:l,serverHooks:m}=c,h="/api/meesho_detail_scraper/route";function _(){return(0,i.patchFetch)({serverHooks:m,staticGenerationAsyncStorage:l})}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[8948,5972],()=>r(90089));module.exports=a})();