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