import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.ede0b6bf.js";import{R as f}from"./tasksController.9d537405.js";import{d as b,ea as _,f as y,o as n,Y as g,b as w,w as k,u as c,c as I,S as T,aS as v,aG as B,dd as S}from"./index.5572dd7e.js";import"./gateway.eaf0365c.js";import{a as j,B as x}from"./build.e2aaa79f.js";import{a as C}from"./project.06c82573.js";import"./tables.d5a7b0ab.js";import{a as D}from"./asyncComputed.ec375dc7.js";import"./metadata.630b4d92.js";import"./PhRobot.vue.b6d33908.js";import"./PhWebhooksLogo.vue.7feade71.js";import"./ant-design.0882cf6b.js";import"./string.21e44731.js";import"./dayjs.a8863b4f.js";import"./index.edf0c178.js";import"./linters.5d4f4193.js";import"./scripts.d04c162f.js";import"./record.b39e4f7d.js";import"./polling.2c36bf65.js";import"./popupNotifcation.0dd61396.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]="cc020a78-1aac-4f83-b1b6-e9946cb2f592",e._sentryDebugIdIdentifier="sentry-dbid-cc020a78-1aac-4f83-b1b6-e9946cb2f592")}catch{}})();const U=b({__name:"Tasks",setup(e){const a=_().params.projectId,l=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(c(S),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(n(),I(m,{key:0,class:"tasks",api:c(l),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.8b87986f.js.map
