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.e46eca28.js";import{a as I}from"./asyncComputed.15fd30e0.js";import"./gateway.0d210a45.js";import{B as x}from"./build.b89de5c8.js";import"./index.05c509d5.js";import{C as v}from"./CrudView.2fb3f52f.js";import{L as B,N as C}from"./icons.db549bc5.js";import{r as D}from"./console.3031d3ea.js";import{f as k}from"./index.b048d0fb.js";import"./passwordlessManager.f4cc4f94.js";import"./pubsub.8f2ecd1e.js";import"./storage.f303ee10.js";import"./activeRecord.d83b1b14.js";import"./DropdownMenu.dd15f4e3.js";import"./Modal.47e24ea4.js";import"./LoadingIndicator.623149e9.js";import"./lottie.2b81658b.js";import"./index.2ced575c.js";import"./Form.6fcc3ee8.js";import"./Title.6ee361e2.js";import"./transButton.6834f8a3.js";import"./index.32337da8.js";import"./index.aba1cab9.js";import"./index.b04d1068.js";import"./index.6c00fcdd.js";import"./dayjs.860058b8.js";import"./index.3579f3be.js";import"./index.e47b9dbc.js";import"./index.5eb2b06c.js";import"./index.43b1476f.js";import"./index.216a47b9.js";import"./index.00020abd.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]="6612b1ac-6af2-44ab-baaa-866b0846c61b",e._sentryDebugIdIdentifier="sentry-dbid-6612b1ac-6af2-44ab-baaa-866b0846c61b")}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 a=m().params.projectId,{loading:p,result:d}=I(()=>x.list(a)),c=u(()=>{var s,r;return{columns:[{name:"Id"},{name:"Date"},{name:"Status"},{name:"Actions"}],rows:(r=(s=d.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:()=>D.push({name:"logs",params:{projectId:a},query:{buildId:t.id}})},{icon:C,label:"Download files",onClick:()=>t.download()}]}]})))!=null?r:[]}});return(s,r)=>(b(),f(v,{"entity-name":"build",loading:y(p),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 de=h(V,[["__scopeId","data-v-e61ab2b9"]]);export{de as default};
//# sourceMappingURL=Builds.de3b60f4.js.map
