import{d as m,ey as d,H as l,b as c,c as u,u as f,v as _}from"./registerWidgets.faf49e08.js";import{a as y}from"./asyncComputed.70c50dd2.js";import"./gateway.ac5d4b11.js";import{B as b}from"./build.0be71bdb.js";import"./index.72bdd39f.js";import{L as g,N as w}from"./icons.18b78fe3.js";import{r as I}from"./console.05330b40.js";import{_ as x}from"./CrudView.vue_vue_type_script_setup_true_lang.974c7bb1.js";import{f as v}from"./index.b048d0fb.js";import"./passwordlessManager.c54f57c4.js";import"./pubsub.04fb37b2.js";import"./storage.0aff2700.js";import"./activeRecord.a639288f.js";import"./index.b0babef5.js";import"./Form.4d822450.js";import"./FormItem.b7aa4c27.js";import"./transButton.4230aac2.js";import"./index.d5a89d63.js";import"./index.e6dcb33c.js";import"./index.4ce6f079.js";import"./index.2657d65c.js";import"./dayjs.f2318b0b.js";import"./index.2d98cc0f.js";import"./index.2c85525a.js";import"./index.65170895.js";import"./index.37078e59.js";import"./index.92a90235.js";import"./index.fcf76a3b.js";import"./index.239c99d0.js";import"./index.cf144f25.js";import"./Title.a7f9a7d9.js";import"./Text.b5970504.js";import"./Modal.f708ef7e.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="d96d26b3-fc9a-4098-a9c0-678482fb2813",o._sentryDebugIdIdentifier="sentry-dbid-d96d26b3-fc9a-4098-a9c0-678482fb2813")}catch{}})();const B=m({__name:"Builds",setup(o){const r=d().params.projectId,{loading:s,result:n}=y(()=>b.list(r)),p=l(()=>{var i,a;return{columns:[{name:"Id"},{name:"Date"},{name:"Status"},{name:"Actions"}],rows:(a=(i=n.value)==null?void 0:i.map(t=>({key:t.id,cells:[{text:t.id.slice(0,8)},{text:v(t.createdAt,Date.now(),{addSuffix:!0})},{text:t.status+(t.log?": "+t.log:"")},{text:"",actions:[{icon:g,label:"View logs",onClick:()=>I.push({name:"logs",params:{projectId:r},query:{buildId:t.id}})},{icon:w,label:"Download files",onClick:()=>t.download()}]}]})))!=null?a:[]}});return(i,a)=>(c(),u(x,{"entity-name":"build",loading:f(s),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:p.value},null,8,["loading","table"]))}});const rt=_(B,[["__scopeId","data-v-03f70823"]]);export{rt as default};
//# sourceMappingURL=Builds.2b7a1b9a.js.map
