import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.55aea088.js";import{R as f}from"./tasksController.62d84b3f.js";import{d as _,e4 as g,g as y,K as b,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.79dc3613.js";import"./gateway.2413dea4.js";import{a as x,B as C}from"./build.165718c2.js";import{a as D}from"./project.1ec033d9.js";import"./columns.339e7d1c.js";import{a as R}from"./asyncComputed.3aa6bfc4.js";import"./metadata.f9b15aa3.js";import"./PhWebhooksLogo.vue.3b2d5a30.js";import"./ant-design.ac026d59.js";import"./string.5e94f9fd.js";import"./dayjs.f10fe365.js";import"./index.989018db.js";import"./linters.a2a3c525.js";import"./scripts.d3d21022.js";import"./record.fadf5b09.js";import"./polling.29f699a6.js";import"./popupNotifcation.31410171.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]="ca5fe988-f618-4050-9f68-4cac0d5ff32c",e._sentryDebugIdIdentifier="sentry-dbid-ca5fe988-f618-4050-9f68-4cac0d5ff32c")}catch{}})();const U=_({__name:"Tasks",setup(e){const a=g().params.projectId,l=new f(a),{result:o}=R(async()=>{const r=(await x.list(a)).find(d=>d.latest);if(!r)return null;const[p,u]=await Promise.all([C.get(r.id),D.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)=>(c(),b(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{U as default};
//# sourceMappingURL=Tasks.82d0472b.js.map
