import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.f8455e60.js";import{R as f}from"./tasksController.603d6c5b.js";import{d as b,ea 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,df as S}from"./index.e1ec3e10.js";import"./gateway.ab874197.js";import{a as j,B as x}from"./build.36d6c699.js";import{a as C}from"./project.54e1d92a.js";import"./tables.6ebfa228.js";import{a as D}from"./asyncComputed.63476e9c.js";import"./metadata.19ba303f.js";import"./PhWebhooksLogo.vue.c94412aa.js";import"./string.569a6924.js";import"./ant-design.ac028450.js";import"./dayjs.019c21b1.js";import"./index.3b0dcd0b.js";import"./polling.bef217f7.js";import"./scripts.3bfd9ffe.js";import"./record.e1888f50.js";import"./linters.9304e625.js";import"./popupNotifcation.29a171ed.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]="bb6f5275-69e8-45d5-8164-0be1258509a0",e._sentryDebugIdIdentifier="sentry-dbid-bb6f5275-69e8-45d5-8164-0be1258509a0")}catch{}})();const Q=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{Q as default};
//# sourceMappingURL=Tasks.92865035.js.map
