import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.bb66d1b2.js";import{R as f}from"./tasksController.59a3734d.js";import{d as _,ea as b,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.3d66ab3f.js";import"./gateway.c90c4cc0.js";import{a as j,B as x}from"./build.b3072273.js";import{a as C}from"./project.aeb94d57.js";import"./tables.00563f55.js";import{a as D}from"./asyncComputed.3e41b686.js";import"./metadata.c758068d.js";import"./PhRobot.vue.532d7e89.js";import"./PhWebhooksLogo.vue.38225a65.js";import"./ant-design.ad3f7270.js";import"./string.4c6457d7.js";import"./dayjs.4287266f.js";import"./index.103fa591.js";import"./scripts.2b967385.js";import"./record.20acbd16.js";import"./linters.705b4c8d.js";import"./polling.e86ace50.js";import"./popupNotifcation.f439583b.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]="d2f6c629-f7c0-4ca6-8815-2dadc357c32b",e._sentryDebugIdIdentifier="sentry-dbid-d2f6c629-f7c0-4ca6-8815-2dadc357c32b")}catch{}})();const U=_({__name:"Tasks",setup(e){const a=b().params.projectId,l=new f(a),{result:o}=D(async()=>{const r=(await j.list(a)).find(u=>u.latest);if(!r)return null;const[d,p]=await Promise.all([x.get(r.id),C.get(a)]);return{buildSpec:d,project:p}}),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.015c82f5.js.map
