import{d as u,K as m,b as f,t as _,w as y,z as d,J as b,O as g,Q as w,x as i,U as n,q as h}from"./registerWidgets.240bf3ff.js";import{a as x}from"./asyncComputed.e710533c.js";import"./gateway.5b5e16cb.js";import{B as I}from"./build.e24d5400.js";import"./index.11c237cf.js";import{C as v}from"./CrudView.d6bbee89.js";import{K as B,M as D}from"./icons.8dbdad3c.js";import{r as C}from"./console.fd314012.js";import{f as k}from"./index.b048d0fb.js";import"./passwordlessManager.0554ad1a.js";import"./pubsub.83908d54.js";import"./activeRecord.d21ad35a.js";import"./DropdownMenu.2a857e1b.js";import"./Modal.ba42d121.js";import"./LoadingIndicator.8f6b0830.js";import"./lottie.b1d7a5e6.js";import"./index.b8bf5795.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]="88432fe0-5765-4d4c-a4d3-53f8bdfd742f",e._sentryDebugIdIdentifier="sentry-dbid-88432fe0-5765-4d4c-a4d3-53f8bdfd742f")}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=u({__name:"Builds",setup(e){const s=b().params.projectId,{loading:c,result:l}=x(()=>I.list(s)),p=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:()=>C.push({name:"logs",params:{projectId:s},query:{buildId:t.id}})},{icon:D,label:"Download files",onClick:()=>t.download()}]}]})))!=null?r:[]}});return(a,r)=>(f(),_(v,{"entity-name":"build",loading:d(c),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:d(p)},{"empty-description":y(()=>[V]),_:1},8,["loading","table"]))}});const H=h(j,[["__scopeId","data-v-e61ab2b9"]]);export{H as default};
//# sourceMappingURL=Builds.bef10751.js.map
