import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.4f1e47d1.js";import{R as f}from"./tasksController.8cf447bf.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.9f6b07f8.js";import"./gateway.278d63bb.js";import{a as j,B as x}from"./build.2b7ec232.js";import{a as C}from"./project.60eaf61b.js";import"./tables.d4a3005e.js";import{a as D}from"./asyncComputed.b7a00680.js";import"./metadata.e338a600.js";import"./PhWebhooksLogo.vue.e526c012.js";import"./string.5d4ff2a8.js";import"./ant-design.a2a142ac.js";import"./dayjs.5a0d9232.js";import"./index.72530e51.js";import"./polling.b2dd3650.js";import"./scripts.0edcd729.js";import"./record.57192485.js";import"./linters.2304cd61.js";import"./popupNotifcation.0fed36dd.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]="c4202fa4-6abd-46bd-981c-0dafe3afb924",e._sentryDebugIdIdentifier="sentry-dbid-c4202fa4-6abd-46bd-981c-0dafe3afb924")}catch{}})();const Q=b({__name:"Tasks",setup(e){const a=_().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.59526a17.js.map
