import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.b9e0becd.js";import{R as f}from"./tasksController.436c3501.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 c,az as B,d6 as j}from"./index.46377be8.js";import"./gateway.646e2031.js";import{a as x,B as C}from"./build.09d76c0b.js";import{P as D}from"./project.b47aa275.js";import"./columns.27731a38.js";import{a as R}from"./asyncComputed.4c162cf6.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.d08316c0.js";import"./PhCopy.vue.028740eb.js";import"./metadata.36983e80.js";import"./PhWebhooksLogo.vue.01c2bd28.js";import"./ant-design.c0d40dc3.js";import"./string.c8ef8ac4.js";import"./index.253f97ae.js";import"./dayjs.c7019b1d.js";import"./linters.7cec0f30.js";import"./scripts.7cf7a9e8.js";import"./record.4c221458.js";import"./polling.3ea12407.js";import"./popupNotifcation.7b9f946e.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]="73ccf92a-1449-4bdf-be9c-340b22e8e4ce",e._sentryDebugIdIdentifier="sentry-dbid-73ccf92a-1449-4bdf-be9c-340b22e8e4ce")}catch{}})();const X=b({__name:"Tasks",setup(e){const s=_().params.projectId,l=new f(s),{result:o}=R(async()=>{const r=(await x.list(s)).find(d=>d.latest);if(!r)return null;const[p,u]=await Promise.all([C.get(r.id),D.get(s)]);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)=>(c(),y(v,null,[w(n(j),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(c(),I(m,{key:0,class:"tasks",api:n(l),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{X as default};
//# sourceMappingURL=Tasks.8d089b7d.js.map
