import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.01b1f3f8.js";import{R as f}from"./tasksController.80608168.js";import{d as _,e4 as g,g as y,K as b,b as w,w as k,u as n,c as I,F as T,aL as v,o as l,az as B,d6 as j}from"./index.aa57db48.js";import"./gateway.14522397.js";import{a as x,B as C}from"./build.cb283cc2.js";import{a as D}from"./project.d598c4b0.js";import"./columns.bd7c55cc.js";import{a as R}from"./asyncComputed.fcda3bbf.js";import"./metadata.bdd70157.js";import"./PhWebhooksLogo.vue.7d3bf500.js";import"./ant-design.f23ad952.js";import"./string.00b6f92a.js";import"./dayjs.a04adb3e.js";import"./index.3ffdc4f9.js";import"./linters.a8a6640d.js";import"./scripts.2786670d.js";import"./record.a1c7fc6a.js";import"./polling.3fa763eb.js";import"./popupNotifcation.985494ff.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]="0cd3ef57-6e56-4016-9ae3-097eef897412",e._sentryDebugIdIdentifier="sentry-dbid-0cd3ef57-6e56-4016-9ae3-097eef897412")}catch{}})();const U=_({__name:"Tasks",setup(e){const s=g().params.projectId,p=new f(s),{result:o}=R(async()=>{const r=(await x.list(s)).find(d=>d.latest);if(!r)return null;const[u,c]=await Promise.all([C.get(r.id),D.get(s)]);return{buildSpec:u,project:c}}),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)=>(l(),b(v,null,[w(n(j),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(l(),I(m,{key:0,class:"tasks",api:n(p),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.fae9730f.js.map
