import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.861da42f.js";import{R as f}from"./tasksController.b6d547f2.js";import{d as _,ea as b,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.aaa5ea50.js";import"./gateway.ca8f9e95.js";import{a as j,B as x}from"./build.56152b7c.js";import{a as C}from"./project.e481756e.js";import"./tables.d7f10cb2.js";import{a as D}from"./asyncComputed.b796d4e5.js";import"./metadata.9c7505d9.js";import"./PhWebhooksLogo.vue.120619c5.js";import"./string.2dfb3834.js";import"./ant-design.1f542312.js";import"./dayjs.2973bd4c.js";import"./index.c1fd0d5a.js";import"./polling.90790f07.js";import"./scripts.cd172ae2.js";import"./record.3b51fd54.js";import"./linters.a3022b0a.js";import"./popupNotifcation.cee72ce4.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]="de589802-1716-4da3-b82e-f7899d5c2a42",e._sentryDebugIdIdentifier="sentry-dbid-de589802-1716-4da3-b82e-f7899d5c2a42")}catch{}})();const Q=_({__name:"Tasks",setup(e){const a=b().params.projectId,d=new f(a),{result:o}=D(async()=>{const r=(await j.list(a)).find(c=>c.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(l(S),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(n(),I(m,{key:0,class:"tasks",api:l(d),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{Q as default};
//# sourceMappingURL=Tasks.7bdb5398.js.map
