"use strict";(()=>{var e={};e.id=320,e.ids=[320],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")},4975:(e,t,r)=>{r.r(t),r.d(t,{patchFetch:()=>g,routeModule:()=>u,serverHooks:()=>l,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>x});var a={};r.r(a),r.d(a,{POST:()=>d});var s=r(2706),i=r(8203),o=r(5994),n=r(9187),p=r(9269),c=r(2021);async function d(e,{params:t}){try{let{activityName:r}=await e.json();if(!r)return n.NextResponse.json({error:"Activity name is required"},{status:400});let a=p.A.getInstance(),s=(0,c.y)(t.deviceId);return await a.startActivity(s,t.packageName,r),n.NextResponse.json({success:!0})}catch(e){return console.error("Error starting activity:",e),n.NextResponse.json({error:"Failed to start activity"},{status:500})}}let u=new s.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/device/[deviceId]/apps/[packageName]/activities/start/route",pathname:"/api/device/[deviceId]/apps/[packageName]/activities/start",filename:"route",bundlePath:"app/api/device/[deviceId]/apps/[packageName]/activities/start/route"},resolvedPagePath:"/Users/saleeh/codes/appmaker/adb-web/src/app/api/device/[deviceId]/apps/[packageName]/activities/start/route.ts",nextConfigOutput:"",userland:a}),{workAsyncStorage:v,workUnitAsyncStorage:x,serverHooks:l}=u;function g(){return(0,o.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:x})}},2021:(e,t,r)=>{r.d(t,{y:()=>a});function a(e){return Buffer.from(e,"base64").toString()}}};var t=require("../../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[994,452,577],()=>r(4975));module.exports=a})();