import{d as l,ey as m,H as u,b,c as f,w as _,u as y,eB as g,eC as w,e as i,b0 as n,v as h}from"./registerWidgets.d6e66474.js";import{a as I}from"./asyncComputed.5c362931.js";import"./gateway.651c554e.js";import{B as x}from"./build.b1264c10.js";import"./index.0eed7dd2.js";import{C as v}from"./CrudView.62da965d.js";import{L as B,N as C}from"./icons.4be6cb33.js";import{r as D}from"./console.84ff5c8b.js";import{f as k}from"./index.b048d0fb.js";import"./passwordlessManager.a2051844.js";import"./pubsub.9e806cff.js";import"./storage.d7eb729a.js";import"./activeRecord.1009e596.js";import"./DropdownMenu.687dee5a.js";import"./Modal.87772a38.js";import"./LoadingIndicator.d52fa99a.js";import"./lottie.b059da2e.js";import"./index.977cda87.js";import"./Form.fafe4307.js";import"./Title.dd14f24f.js";import"./transButton.63ba82b1.js";import"./index.ba35d345.js";import"./index.4d1ecd17.js";import"./index.02e6dde6.js";import"./index.98b2c61a.js";import"./dayjs.45d100a4.js";import"./index.3aa3e246.js";import"./index.913e59c4.js";import"./index.3e93f088.js";import"./index.4a78a071.js";import"./index.569e50d3.js";import"./index.55d44a5a.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]="8084bbc8-6599-46f0-9db8-2427bb2b6df6",e._sentryDebugIdIdentifier="sentry-dbid-8084bbc8-6599-46f0-9db8-2427bb2b6df6")}catch{}})();const S=e=>(g("data-v-e61ab2b9"),e=e(),w(),e),N=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)),V=l({__name:"Builds",setup(e){const s=m().params.projectId,{loading:d,result:p}=I(()=>x.list(s)),c=u(()=>{var r,a;return{columns:[{name:"Id"},{name:"Date"},{name:"Status"},{name:"Actions"}],rows:(a=(r=p.value)==null?void 0:r.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?a:[]}});return(r,a)=>(b(),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:c.value},{"empty-description":_(()=>[N]),_:1},8,["loading","table"]))}});const pe=h(V,[["__scopeId","data-v-e61ab2b9"]]);export{pe as default};
//# sourceMappingURL=Builds.8a89c5c2.js.map
