"use strict";(()=>{var e={};e.id=871,e.ids=[871],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")},8621:(e,r,t)=>{t.r(r),t.d(r,{patchFetch:()=>v,routeModule:()=>d,serverHooks:()=>l,workAsyncStorage:()=>c,workUnitAsyncStorage:()=>x});var s={};t.r(s),t.d(s,{POST:()=>u});var o=t(2706),a=t(8203),n=t(5994),i=t(9187),p=t(9269);async function u(e){try{let{deviceId:r,mode:t}=await e.json();if(!r)return i.NextResponse.json({error:"Device ID is required"},{status:400});let s=p.A.getInstance();return await s.rebootDevice(r,t),i.NextResponse.json({success:!0})}catch(e){return console.error("Error rebooting device:",e),i.NextResponse.json({error:"Failed to reboot device"},{status:500})}}let d=new o.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/system/reboot/route",pathname:"/api/system/reboot",filename:"route",bundlePath:"app/api/system/reboot/route"},resolvedPagePath:"/Users/saleeh/codes/appmaker/adb-web/src/app/api/system/reboot/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:c,workUnitAsyncStorage:x,serverHooks:l}=d;function v(){return(0,n.patchFetch)({workAsyncStorage:c,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(8621));module.exports=s})();