"use strict";(()=>{var e={};e.id=326,e.ids=[326],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")},8201:(e,r,t)=>{t.r(r),t.d(r,{patchFetch:()=>g,routeModule:()=>c,serverHooks:()=>l,workAsyncStorage:()=>d,workUnitAsyncStorage:()=>x});var s={};t.r(s),t.d(s,{POST:()=>u});var n=t(2706),o=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.startScreenRecording(r);return i.NextResponse.json({path:s})}catch(e){return console.error("Error starting screen recording:",e),i.NextResponse.json({error:"Failed to start screen recording"},{status:500})}}let c=new n.AppRouteRouteModule({definition:{kind:o.RouteKind.APP_ROUTE,page:"/api/system/screenrecord/start/route",pathname:"/api/system/screenrecord/start",filename:"route",bundlePath:"app/api/system/screenrecord/start/route"},resolvedPagePath:"/Users/saleeh/codes/appmaker/adb-web/src/app/api/system/screenrecord/start/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:d,workUnitAsyncStorage:x,serverHooks:l}=c;function g(){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(8201));module.exports=s})();