"use strict";(()=>{var e={};e.id=7773,e.ids=[7773],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")},73292:e=>{e.exports=require("fs/promises")},71017:e=>{e.exports=require("path")},28530:(e,s,r)=>{r.r(s),r.d(s,{originalPathname:()=>j,patchFetch:()=>w,requestAsyncStorage:()=>g,routeModule:()=>f,serverHooks:()=>h,staticGenerationAsyncStorage:()=>m});var t={};r.r(t),r.d(t,{POST:()=>l});var a=r(49303),i=r(88716),n=r(60670),o=r(73292),p=r(71017),u=r.n(p);let d=u().resolve(process.cwd(),".."),c=u().join(d,"data","profile_data","userProfile.json");async function l(e){try{let{email:s}=await e.json();if(!s)return new Response(JSON.stringify({success:!1,message:"Email is required."}),{status:400,headers:{"Content-Type":"application/json"}});(0,p.join)(process.cwd(),"public","assets","js","userProfile.json");let r=await (0,o.readFile)(c,"utf-8"),t=JSON.parse(r).find(e=>e.email===s);if(!t)return new Response(JSON.stringify({success:!1,message:"User not found."}),{status:404,headers:{"Content-Type":"application/json"}});return new Response(JSON.stringify({success:!0,data:t}),{status:200,headers:{"Content-Type":"application/json"}})}catch(e){return new Response(JSON.stringify({success:!1,message:"Failed to read user data."}),{status:500,headers:{"Content-Type":"application/json"}})}}let f=new a.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/api/get_user_profile/route",pathname:"/api/get_user_profile",filename:"route",bundlePath:"app/api/get_user_profile/route"},resolvedPagePath:"C:\\Users\\Design Collection\\OneDrive\\Desktop\\Jitendra Vishwakarma\\Next Dashboard\\web crawler for user dev\\Scrape Genius\\app\\api\\get_user_profile\\route.js",nextConfigOutput:"",userland:t}),{requestAsyncStorage:g,staticGenerationAsyncStorage:m,serverHooks:h}=f,j="/api/get_user_profile/route";function w(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:m})}},49303:(e,s,r)=>{e.exports=r(30517)}};var s=require("../../../webpack-runtime.js");s.C(e);var r=e=>s(s.s=e),t=s.X(0,[8948],()=>r(28530));module.exports=t})();