import{d as p,ey as u,F as m,b as f,u as b,eq as _,bu as y,eB as g,eC as w,er as i,bh as n,t as h}from"./registerWidgets.eb5d1044.js";import{a as I}from"./asyncComputed.8007047f.js";import"./gateway.f04b471b.js";import{B as x}from"./build.d7d3bdec.js";import"./index.cbadd24c.js";import{C as v}from"./CrudView.9068924c.js";import{K as B,M as C}from"./icons.f9be01a3.js";import{r as D}from"./console.c66915a3.js";import{f as k}from"./index.b048d0fb.js";import"./passwordlessManager.5b579a25.js";import"./pubsub.8f4c78dc.js";import"./storage.0943951e.js";import"./activeRecord.e38b436c.js";import"./DropdownMenu.cfd0b972.js";import"./Modal.b3432d4d.js";import"./LoadingIndicator.a6ffda8c.js";import"./lottie.083b517e.js";import"./index.9e50376a.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]="2891a555-2e94-4bcb-8276-1704b314ff77",e._sentryDebugIdIdentifier="sentry-dbid-2891a555-2e94-4bcb-8276-1704b314ff77")}catch{}})();const S=e=>(g("data-v-e61ab2b9"),e=e(),w(),e),V=S(()=>i("div",{class:"instructions"},[n(" Get started with the local editor in seconds: "),i("pre",null,`    $ pip install abstra --upgrade
    $ abstra serve ./your-project-directory
    `),n(" 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:d,result:l}=I(()=>x.list(s)),c=m(()=>{var a,r;return{columns:[{name:"Id"},{name:"Date"},{name:"Status"},{name:"Actions"}],rows:(r=(a=l.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(),b(v,{"entity-name":"build",loading:y(d),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:c.value},{"empty-description":_(()=>[V]),_:1},8,["loading","table"]))}});const Q=h(j,[["__scopeId","data-v-e61ab2b9"]]);export{Q as default};
//# sourceMappingURL=Builds.91b62d3b.js.map
