import{d as p,ey as u,F as m,b as f,u as _,eq as b,bu as y,eB as g,eC as w,er as d,bh as i,t as h}from"./registerWidgets.f16d9611.js";import{a as I}from"./asyncComputed.5a3fb141.js";import"./gateway.a32a48c2.js";import{B as x}from"./build.0ff9e7b8.js";import"./index.6bb4a320.js";import{C as v}from"./CrudView.10c4d004.js";import{K as B,M as C}from"./icons.3c1b43b5.js";import{r as D}from"./console.8528b596.js";import{f as k}from"./index.b048d0fb.js";import"./passwordlessManager.7fb318b8.js";import"./pubsub.1eec455f.js";import"./storage.9f674036.js";import"./activeRecord.5c8dc9b3.js";import"./DropdownMenu.c1d2d206.js";import"./Modal.4a31ff16.js";import"./LoadingIndicator.83a6b2d1.js";import"./lottie.eab5e6f1.js";import"./index.6ce32df2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="598d9ceb-962e-4512-8666-58d7bfd32dc2",e._sentryDebugIdIdentifier="sentry-dbid-598d9ceb-962e-4512-8666-58d7bfd32dc2")}catch{}})();const S=e=>(g("data-v-e61ab2b9"),e=e(),w(),e),V=S(()=>d("div",{class:"instructions"},[i(" Get started with the local editor in seconds: "),d("pre",null,`    $ pip install abstra --upgrade
    $ abstra serve ./your-project-directory
    `),i(" And you're done! Explore the local editor and start building apps. ")],-1)),j=p({__name:"Builds",setup(e){const s=u().params.projectId,{loading:n,result:c}=I(()=>x.list(s)),l=m(()=>{var a,r;return{columns:[{name:"Id"},{name:"Date"},{name:"Status"},{name:"Actions"}],rows:(r=(a=c.value)==null?void 0:a.map(t=>({key:t.id,cells:[{text:t.id.slice(0,8),classes:["centered"]},{text:k(t.createdAt,Date.now(),{addSuffix:!0}),classes:[]},{text:t.status+(t.log?": "+t.log:""),classes:[]},{text:"",classes:["centered"],actions:[{icon:B,label:"View logs",onClick:()=>D.push({name:"logs",params:{projectId:s},query:{buildId:t.id}})},{icon:C,label:"Download files",onClick:()=>t.download()}]}]})))!=null?r:[]}});return(a,r)=>(f(),_(v,{"entity-name":"build",loading:y(n),title:"Builds",description:"Each build is a version of your app. You can create a new build by deploying your app from the local editor.","empty-title":"No builds here yet",table:l.value},{"empty-description":b(()=>[V]),_:1},8,["loading","table"]))}});const Q=h(j,[["__scopeId","data-v-e61ab2b9"]]);export{Q as default};
//# sourceMappingURL=Builds.670fc41d.js.map
