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 i,bh as d,t as h}from"./registerWidgets.b2d74d6b.js";import{a as I}from"./asyncComputed.000dd401.js";import"./gateway.eade7a58.js";import{B as x}from"./build.71f74f3d.js";import"./index.0621dc6f.js";import{C as v}from"./CrudView.9c7a617f.js";import{K as B,M as C}from"./icons.9c4c14c4.js";import{r as D}from"./console.28ac5c35.js";import{f as k}from"./index.b048d0fb.js";import"./passwordlessManager.1e9ad5f4.js";import"./pubsub.de7b160f.js";import"./storage.4c5a0e4a.js";import"./activeRecord.ad458e5f.js";import"./DropdownMenu.76f3715b.js";import"./Modal.6edff823.js";import"./LoadingIndicator.77ebb26b.js";import"./lottie.c84c89e3.js";import"./index.8bd8f7a7.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]="effd5888-42d1-4962-a13b-d9cc0c8548e0",e._sentryDebugIdIdentifier="sentry-dbid-effd5888-42d1-4962-a13b-d9cc0c8548e0")}catch{}})();const S=e=>(g("data-v-e61ab2b9"),e=e(),w(),e),V=S(()=>i("div",{class:"instructions"},[d(" Get started with the local editor in seconds: "),i("pre",null,`    $ pip install abstra --upgrade
    $ abstra serve ./your-project-directory
    `),d(" 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.70b41a13.js.map
