import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.4d6b29c3.js";import{R as f}from"./tasksController.e6b182b0.js";import{d as b,e3 as _,g,o as n,K as y,b as w,w as k,u as l,c as I,F as T,aL as v,az as B,d6 as j}from"./index.56a4aa2e.js";import"./gateway.03a16684.js";import{a as x,B as C}from"./build.93372a1f.js";import{a as D}from"./project.4c812c13.js";import"./columns.1a209a57.js";import{a as R}from"./asyncComputed.9c066391.js";import"./metadata.ed52026a.js";import"./PhWebhooksLogo.vue.f3a45ccc.js";import"./ant-design.495703a7.js";import"./string.c8a67ded.js";import"./dayjs.ba1a5461.js";import"./index.036fb779.js";import"./linters.bbf68979.js";import"./scripts.cb0f8348.js";import"./record.1426f0e6.js";import"./polling.c6b67ee3.js";import"./popupNotifcation.2b90a8f1.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]="6c764984-820a-41d4-b143-cb2a90a69215",e._sentryDebugIdIdentifier="sentry-dbid-6c764984-820a-41d4-b143-cb2a90a69215")}catch{}})();const U=b({__name:"Tasks",setup(e){const a=_().params.projectId,p=new f(a),{result:o}=R(async()=>{const r=(await x.list(a)).find(d=>d.latest);if(!r)return null;const[u,c]=await Promise.all([C.get(r.id),D.get(a)]);return{buildSpec:u,project:c}}),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)=>(n(),y(v,null,[w(l(j),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.d169c2fc.js.map
