import{d as p,J as u,K as m,b as f,t as _,w as b,z as y,O as g,Q as w,x as i,U as n,q as h}from"./registerWidgets.7afd6438.js";import{a as x}from"./asyncComputed.b60ddd9a.js";import"./gateway.2390ee89.js";import{B as I}from"./build.e5c3b108.js";import"./index.9e389ffd.js";import{C as v}from"./CrudView.ab882a67.js";import{K as B,M as D}from"./icons.0ae396f2.js";import{r as C}from"./console.b9559618.js";import{f as k}from"./index.b048d0fb.js";import"./passwordlessManager.7da7ab9e.js";import"./pubsub.9805d82b.js";import"./activeRecord.e140ff8e.js";import"./DropdownMenu.90d44aab.js";import"./Modal.94284cfc.js";import"./LoadingIndicator.b2e0f173.js";import"./lottie.36f8e1f2.js";import"./index.60b26bb0.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]="cad1b190-832a-4d90-877c-235f7b78b5f0",e._sentryDebugIdIdentifier="sentry-dbid-cad1b190-832a-4d90-877c-235f7b78b5f0")}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 a=u().params.projectId,{loading:d,result:c}=x(()=>I.list(a)),l=m(()=>{var s,r;return{columns:[{name:"Id"},{name:"Date"},{name:"Status"},{name:"Actions"}],rows:(r=(s=c.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: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:l.value},{"empty-description":b(()=>[V]),_:1},8,["loading","table"]))}});const H=h(j,[["__scopeId","data-v-e61ab2b9"]]);export{H as default};
//# sourceMappingURL=Builds.fc563125.js.map
