import{d as p,K as u,L as m,b as f,u as _,x as y,A as b,Q as g,R as w,y as i,V as n,t as h}from"./registerWidgets.a9b9c198.js";import{a as x}from"./asyncComputed.380e0794.js";import"./gateway.ff7b2acd.js";import{B as I}from"./build.930c6282.js";import"./index.6965b89d.js";import{C as v}from"./CrudView.17d5ced2.js";import{J as B,L as D}from"./icons.e4ff78f2.js";import{r as C}from"./console.76b2c3c8.js";import{f as k}from"./index.b048d0fb.js";import"./passwordlessManager.18e9d509.js";import"./pubsub.d6cf90d7.js";import"./activeRecord.ded96690.js";import"./DropdownMenu.cf7e2976.js";import"./Modal.0c783a31.js";import"./LoadingIndicator.32e0b7e2.js";import"./lottie.cb2a87b3.js";import"./index.e0dbf129.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]="120723a4-4eeb-4f01-a371-6751434f6c3d",e._sentryDebugIdIdentifier="sentry-dbid-120723a4-4eeb-4f01-a371-6751434f6c3d")}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)),A=p({__name:"Builds",setup(e){const a=u().params.projectId,{loading:d,result:l}=x(()=>I.list(a)),c=m(()=>{var s,r;return{columns:[{name:"Id"},{name:"Date"},{name:"Status"},{name:"Actions"}],rows:(r=(s=l.value)==null?void 0:s.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:()=>C.push({name:"logs",params:{projectId:a},query:{buildId:t.id}})},{icon:D,label:"Download files",onClick:()=>t.download()}]}]})))!=null?r:[]}});return(s,r)=>(f(),_(v,{"entity-name":"build",loading:b(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":y(()=>[V]),_:1},8,["loading","table"]))}});const O=h(A,[["__scopeId","data-v-e61ab2b9"]]);export{O as default};
//# sourceMappingURL=Builds.512fca67.js.map
