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