import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.eda5aff4.js";import{R as f}from"./tasksController.80a5b00b.js";import{d as b,ea as _,f as y,o as n,Y as g,b as w,w as k,u as l,c as I,S as T,aS as v,aG as B,dd as S}from"./index.3c5f59e1.js";import"./gateway.b673f2c4.js";import{a as j,B as x}from"./build.00af12d8.js";import{a as C}from"./project.5b1de625.js";import"./tables.5e718264.js";import{a as D}from"./asyncComputed.d69215c4.js";import"./metadata.b618e30d.js";import"./PhRobot.vue.78793be0.js";import"./PhWebhooksLogo.vue.f88fca5f.js";import"./ant-design.35124314.js";import"./string.9f0382b6.js";import"./dayjs.ebf12c86.js";import"./index.b7ffbcab.js";import"./linters.974424b0.js";import"./scripts.6d47bcc9.js";import"./record.55956e40.js";import"./polling.539b88d3.js";import"./popupNotifcation.a1adeea8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="466288c0-29eb-4452-bf18-4942cde6b6c0",e._sentryDebugIdIdentifier="sentry-dbid-466288c0-29eb-4452-bf18-4942cde6b6c0")}catch{}})();const U=b({__name:"Tasks",setup(e){const s=_().params.projectId,p=new f(s),{result:o}=D(async()=>{const r=(await j.list(s)).find(d=>d.latest);if(!r)return null;const[c,u]=await Promise.all([x.get(r.id),C.get(s)]);return{buildSpec:c,project:u}}),i=y(()=>!o.value||!o.value.buildSpec?null:o.value.buildSpec.runtimes.map(t=>({id:t.id,stageTitle:t.title,stageType:t.type})));return(t,r)=>(n(),g(v,null,[w(l(S),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(n(),I(m,{key:0,class:"tasks",api:l(p),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.1f157ddf.js.map
