import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.b9d04c83.js";import{R as f}from"./tasksController.a7392939.js";import{d as _,ea as b,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,df as S}from"./index.73a38d81.js";import"./gateway.e9e7eb7d.js";import{a as j,B as x}from"./build.3d82ca93.js";import{a as C}from"./project.7324f194.js";import"./tables.61bdfee3.js";import{a as D}from"./asyncComputed.c6319089.js";import"./metadata.cc1c1c9b.js";import"./PhWebhooksLogo.vue.963bdc68.js";import"./string.ead22143.js";import"./ant-design.dfa6c76d.js";import"./dayjs.f09a9114.js";import"./index.17e17239.js";import"./polling.b4e09b79.js";import"./scripts.345756e7.js";import"./record.0e492bf3.js";import"./linters.19a229f9.js";import"./popupNotifcation.3e5ffef1.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]="535faa4c-976c-4e08-a00d-858e23c3ba41",e._sentryDebugIdIdentifier="sentry-dbid-535faa4c-976c-4e08-a00d-858e23c3ba41")}catch{}})();const Q=_({__name:"Tasks",setup(e){const a=b().params.projectId,c=new f(a),{result:o}=D(async()=>{const r=(await j.list(a)).find(d=>d.latest);if(!r)return null;const[p,u]=await Promise.all([x.get(r.id),C.get(a)]);return{buildSpec:p,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(c),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{Q as default};
//# sourceMappingURL=Tasks.c651ebe8.js.map
