import{d as m,ey as d,H as l,b as c,c as u,u as f,v as _}from"./registerWidgets.2031932d.js";import{a as y}from"./asyncComputed.57cbb10a.js";import"./gateway.5ec242d0.js";import{B as b}from"./build.b3ebfbeb.js";import"./index.f3f00cf3.js";import{L as g,N as w}from"./icons.3cd62928.js";import{r as I}from"./console.a8370896.js";import{_ as x}from"./CrudView.vue_vue_type_script_setup_true_lang.65f898ee.js";import{f as v}from"./index.b048d0fb.js";import"./passwordlessManager.50ecc1b4.js";import"./pubsub.9625b443.js";import"./storage.8b8c0b1c.js";import"./activeRecord.7b173443.js";import"./index.92e22978.js";import"./Form.422a7411.js";import"./FormItem.b791fd49.js";import"./transButton.d9059bcf.js";import"./index.5a7b7c6a.js";import"./index.b4b072a9.js";import"./index.e8af61a6.js";import"./index.88f03b56.js";import"./dayjs.8e62b4eb.js";import"./index.c3ca64f4.js";import"./index.05b91721.js";import"./index.b16d118e.js";import"./index.42d31cac.js";import"./index.52845d1d.js";import"./index.29b38c7d.js";import"./index.40c85257.js";import"./index.bdecc667.js";import"./Title.6d39f4ca.js";import"./Text.f7290fbc.js";import"./Modal.380d5af9.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]="07e03518-da8d-4b64-a78c-7debfece345b",o._sentryDebugIdIdentifier="sentry-dbid-07e03518-da8d-4b64-a78c-7debfece345b")}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.f05c5ef9.js.map
