import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.573b3701.js";import{R as f}from"./tasksController.7f537028.js";import{d as b,e4 as _,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.6b1213c6.js";import"./gateway.d1bcadc7.js";import{a as x,B as C}from"./build.1fd7b72a.js";import{a as D}from"./project.b277ffd0.js";import"./columns.5cccb454.js";import{a as R}from"./asyncComputed.fe6ca61b.js";import"./metadata.bd4debbe.js";import"./PhWebhooksLogo.vue.496527e8.js";import"./ant-design.d006a6d7.js";import"./string.8a712bbd.js";import"./index.1783fa94.js";import"./dayjs.80cee39e.js";import"./linters.caf56568.js";import"./scripts.7f0663fc.js";import"./record.9f32285a.js";import"./polling.32ed3bad.js";import"./popupNotifcation.97dc9547.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]="1a1bd05c-d178-41fb-a7fe-bea2ec6245ee",e._sentryDebugIdIdentifier="sentry-dbid-1a1bd05c-d178-41fb-a7fe-bea2ec6245ee")}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)=>(l(),y(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.fa6c12ab.js.map
