import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.43dd2ada.js";import{R as f}from"./tasksController.2c305dde.js";import{d as b,ef as _,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,dd as S}from"./index.a95f3dfe.js";import"./gateway.f96afce5.js";import{a as j,B as x}from"./build.34876f9c.js";import{a as C}from"./project.a2cbcd8a.js";import"./tables.941abe23.js";import{a as D}from"./asyncComputed.cb5b1d6d.js";import"./metadata.d217de12.js";import"./PhRobot.vue.1a24ea75.js";import"./PhWebhooksLogo.vue.3b3d46e9.js";import"./ant-design.3e9e4740.js";import"./string.9fd91434.js";import"./dayjs.dc36af77.js";import"./index.90c73e9a.js";import"./linters.89f3e048.js";import"./scripts.3fece2c3.js";import"./record.1896cfd9.js";import"./polling.bce112d9.js";import"./popupNotifcation.98fdb9df.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]="63ea1b56-dc93-4661-95d6-970324a2610b",e._sentryDebugIdIdentifier="sentry-dbid-63ea1b56-dc93-4661-95d6-970324a2610b")}catch{}})();const U=b({__name:"Tasks",setup(e){const a=_().params.projectId,p=new f(a),{result:o}=D(async()=>{const r=(await j.list(a)).find(c=>c.latest);if(!r)return null;const[u,d]=await Promise.all([x.get(r.id),C.get(a)]);return{buildSpec:u,project:d}}),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(p),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.d790fadd.js.map
