(()=>{var e={};e.id=638,e.ids=[638],e.modules={846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},9121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},9294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},3033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},3873:e=>{"use strict";e.exports=require("path")},9551:e=>{"use strict";e.exports=require("url")},4675:(e,r,t)=>{"use strict";t.r(r),t.d(r,{GlobalError:()=>i.a,__next_app__:()=>c,pages:()=>p,routeModule:()=>u,tree:()=>l});var s=t(260),a=t(8203),n=t(5155),i=t.n(n),d=t(7292),o={};for(let e in d)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(o[e]=()=>d[e]);t.d(r,o);let l=["",{children:["files",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(t.bind(t,6281)),"/Users/saleeh/codes/appmaker/adb-web/src/app/files/page.tsx"]}]},{metadata:{icon:[async e=>(await Promise.resolve().then(t.bind(t,440))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}]},{layout:[()=>Promise.resolve().then(t.bind(t,1354)),"/Users/saleeh/codes/appmaker/adb-web/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(t.t.bind(t,9937,23)),"next/dist/client/components/not-found-error"],forbidden:[()=>Promise.resolve().then(t.t.bind(t,9116,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(t.t.bind(t,1485,23)),"next/dist/client/components/unauthorized-error"],metadata:{icon:[async e=>(await Promise.resolve().then(t.bind(t,440))).default(e)],apple:[],openGraph:[],twitter:[],manifest:void 0}}],p=["/Users/saleeh/codes/appmaker/adb-web/src/app/files/page.tsx"],c={require:t,loadChunk:()=>Promise.resolve()},u=new s.AppPageRouteModule({definition:{kind:a.RouteKind.APP_PAGE,page:"/files/page",pathname:"/files",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:l}})},8374:(e,r,t)=>{Promise.resolve().then(t.bind(t,6281))},1934:(e,r,t)=>{Promise.resolve().then(t.bind(t,9842))},9842:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>i});var s=t(5512),a=t(8009),n=t(1342);function i(){let[e,r]=(0,a.useState)([]),[t,i]=(0,a.useState)(null),[d,o]=(0,a.useState)(!0),[l,p]=(0,a.useState)(null);return d?(0,s.jsx)("div",{className:"flex items-center justify-center min-h-[400px]",children:(0,s.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-4 border-primary border-t-transparent"})}):l?(0,s.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("span",{className:"text-2xl mr-2",children:"⚠️"}),(0,s.jsxs)("p",{className:"text-red-800 dark:text-red-200",children:["Error: ",l]})]})}):0===e.length?(0,s.jsxs)("div",{className:"bg-gray-50 dark:bg-gray-800 rounded-lg p-8 text-center",children:[(0,s.jsx)("div",{className:"text-4xl mb-4",children:"\uD83D\uDCF1"}),(0,s.jsx)("h3",{className:"text-lg font-medium text-gray-900 dark:text-white mb-2",children:"No Devices Connected"}),(0,s.jsx)("p",{className:"text-gray-500 dark:text-gray-400",children:"Connect an Android device via USB or set up wireless debugging"})]}):(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:"File Explorer"}),(0,s.jsx)("select",{value:t||"",onChange:e=>i(e.target.value),className:"px-4 py-2 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg focus:ring-2 focus:ring-indigo-500",children:e.map(e=>(0,s.jsx)("option",{value:e.id,children:e.model||e.id},e.id))})]}),t&&(0,s.jsx)(n.A,{deviceId:t})]})}},6281:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>s});let s=(0,t(6760).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/saleeh/codes/appmaker/adb-web/src/app/files/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/saleeh/codes/appmaker/adb-web/src/app/files/page.tsx","default")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[994,99,77,131,532],()=>t(4675));module.exports=s})();