"use strict";(()=>{var e={};e.id=746,e.ids=[746],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")},6495:(e,r,t)=>{t.r(r),t.d(r,{patchFetch:()=>m,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),p=t(9187),i=t(9269);async function u(e){try{let{deviceId:r,remotePath:t}=await e.json();if(!r||!t)return p.NextResponse.json({error:"Device ID and remote path are required"},{status:400});let s=i.A.getInstance(),o=await s.stopScreenRecording(r,t);return p.NextResponse.json({path:o})}catch(e){return console.error("Error stopping screen recording:",e),p.NextResponse.json({error:"Failed to stop screen recording"},{status:500})}}let c=new o.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/system/screenrecord/stop/route",pathname:"/api/system/screenrecord/stop",filename:"route",bundlePath:"app/api/system/screenrecord/stop/route"},resolvedPagePath:"/Users/saleeh/codes/appmaker/adb-web/src/app/api/system/screenrecord/stop/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:d,workUnitAsyncStorage:x,serverHooks:l}=c;function m(){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(6495));module.exports=s})();