import{d as m,ey as d,H as l,b as c,c as u,u as f,v as _}from"./registerWidgets.5ceb46ef.js";import{a as y}from"./asyncComputed.fd157db2.js";import"./gateway.fadd845e.js";import{B as b}from"./build.b9edb17e.js";import"./index.e1d2843e.js";import{L as g,N as w}from"./icons.b59fe784.js";import{r as I}from"./console.8043e5b6.js";import{_ as x}from"./CrudView.vue_vue_type_script_setup_true_lang.af549d55.js";import{f as v}from"./index.b048d0fb.js";import"./passwordlessManager.db35a950.js";import"./pubsub.451b7de0.js";import"./storage.4e9cf889.js";import"./activeRecord.693e9703.js";import"./index.dd15e290.js";import"./Form.9c114a17.js";import"./FormItem.0abaafb1.js";import"./Title.d4cb8bc4.js";import"./index.577eba83.js";import"./index.4fdcdf65.js";import"./index.ddacc24d.js";import"./dayjs.a04d1bd5.js";import"./index.9fb57ecd.js";import"./index.fac4722d.js";import"./index.124d01ae.js";import"./index.4c782ec6.js";import"./index.5183e138.js";import"./index.ce292253.js";import"./index.f7704414.js";import"./index.0d24e9b8.js";import"./index.77b675c5.js";import"./index.1a41b32a.js";import"./Modal.4e47c5c5.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]="1c64194f-8eb4-4fae-9ae6-d6622faadd2b",o._sentryDebugIdIdentifier="sentry-dbid-1c64194f-8eb4-4fae-9ae6-d6622faadd2b")}catch{}})();const B=m({__name:"Builds",setup(o){const r=d().params.projectId,{loading:s,result:n}=y(()=>b.list(r)),p=l(()=>{var a,i;return{columns:[{name:"Id"},{name:"Date"},{name:"Status"},{name:"Actions"}],rows:(i=(a=n.value)==null?void 0:a.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?i:[]}});return(a,i)=>(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 et=_(B,[["__scopeId","data-v-03f70823"]]);export{et as default};
//# sourceMappingURL=Builds.9efe1802.js.map
