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