"use strict";(()=>{var e={};e.id=964,e.ids=[964],e.modules={846:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},4870:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},9294:e=>{e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},3033:e=>{e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},9646:e=>{e.exports=require("child_process")},8354:e=>{e.exports=require("util")},7086:(e,r,t)=>{t.r(r),t.d(r,{patchFetch:()=>h,routeModule:()=>c,serverHooks:()=>l,workAsyncStorage:()=>d,workUnitAsyncStorage:()=>x});var s={};t.r(s),t.d(s,{POST:()=>u});var o=t(2706),n=t(8203),a=t(5994),i=t(9187),p=t(9269);async function u(e){try{let{deviceId:r}=await e.json();if(!r)return i.NextResponse.json({error:"Device ID is required"},{status:400});let t=p.A.getInstance(),s=await t.takeScreenshot(r);return i.NextResponse.json({path:s})}catch(e){return console.error("Error taking screenshot:",e),i.NextResponse.json({error:"Failed to take screenshot"},{status:500})}}let c=new o.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/system/screenshot/route",pathname:"/api/system/screenshot",filename:"route",bundlePath:"app/api/system/screenshot/route"},resolvedPagePath:"/Users/saleeh/codes/appmaker/adb-web/src/app/api/system/screenshot/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:d,workUnitAsyncStorage:x,serverHooks:l}=c;function h(){return(0,a.patchFetch)({workAsyncStorage:d,workUnitAsyncStorage:x})}}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[994,452,577],()=>t(7086));module.exports=s})();