import{d as m,ey as d,H as l,b as c,c as u,u as f,v as _}from"./registerWidgets.aa99a257.js";import{a as y}from"./asyncComputed.0fe9c7ca.js";import"./gateway.f016ddd8.js";import{B as b}from"./build.4af8751a.js";import"./index.736fba6e.js";import{L as g,N as w}from"./icons.28b8a025.js";import{r as I}from"./console.5fd8db12.js";import{_ as x}from"./CrudView.vue_vue_type_script_setup_true_lang.28754d4f.js";import{f as v}from"./index.b048d0fb.js";import"./passwordlessManager.16d17276.js";import"./pubsub.1c962ca1.js";import"./storage.140ce577.js";import"./activeRecord.a0fab812.js";import"./index.237f2f09.js";import"./Form.edded16b.js";import"./Title.6e572405.js";import"./index.3dca4144.js";import"./index.782ff7c7.js";import"./index.f4e5f381.js";import"./dayjs.89a27922.js";import"./index.c751bb41.js";import"./index.39c01bd2.js";import"./index.4c73616e.js";import"./index.f667b34b.js";import"./index.a431d18c.js";import"./index.7dfbdbc1.js";import"./index.20a4b8db.js";import"./index.4fae01ae.js";import"./index.c8404bf8.js";import"./index.a2da19dd.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="f6e6bd7f-3bec-427f-92be-7290c74eef11",t._sentryDebugIdIdentifier="sentry-dbid-f6e6bd7f-3bec-427f-92be-7290c74eef11")}catch{}})();const B=m({__name:"Builds",setup(t){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(e=>({key:e.id,cells:[{text:e.id.slice(0,8)},{text:v(e.createdAt,Date.now(),{addSuffix:!0})},{text:e.status+(e.log?": "+e.log:"")},{text:"",actions:[{icon:g,label:"View logs",onClick:()=>I.push({name:"logs",params:{projectId:r},query:{buildId:e.id}})},{icon:w,label:"Download files",onClick:()=>e.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 ee=_(B,[["__scopeId","data-v-03f70823"]]);export{ee as default};
//# sourceMappingURL=Builds.6c9bae23.js.map
