import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.50767774.js";import{R as f}from"./tasksController.9ed9ba5f.js";import{d as _,e4 as b,g,K as y,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.6d326114.js";import"./gateway.021cd409.js";import{a as x,B as C}from"./build.7a35e2d2.js";import{a as D}from"./project.8e1db5e7.js";import"./columns.14425d51.js";import{a as R}from"./asyncComputed.ac08d7c2.js";import"./metadata.6ff498e4.js";import"./PhWebhooksLogo.vue.01c73189.js";import"./ant-design.258a2496.js";import"./string.25635cc7.js";import"./index.f8e5f83a.js";import"./dayjs.2ab83328.js";import"./linters.993e3ea4.js";import"./scripts.bb71e014.js";import"./record.4f4568da.js";import"./polling.9a0b0237.js";import"./popupNotifcation.a72e377f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="7761320d-1273-4a9a-b9e2-d23c4d1e9066",e._sentryDebugIdIdentifier="sentry-dbid-7761320d-1273-4a9a-b9e2-d23c4d1e9066")}catch{}})();const U=_({__name:"Tasks",setup(e){const a=b().params.projectId,d=new f(a),{result:o}=R(async()=>{const r=(await x.list(a)).find(c=>c.latest);if(!r)return null;const[p,u]=await Promise.all([C.get(r.id),D.get(a)]);return{buildSpec:p,project:u}}),i=g(()=>!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(),y(v,null,[w(n(j),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(l(),I(m,{key:0,class:"tasks",api:n(d),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.307f5ad1.js.map
