import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.4e3c05b0.js";import{R as f}from"./tasksController.f0590bf6.js";import{d as _,e4 as g,g as y,K as b,b as w,w as k,u as n,c as I,F as T,aL as v,o as l,az as B,d6 as j}from"./index.1da01ec4.js";import"./gateway.bca3ba41.js";import{a as x,B as C}from"./build.9897710b.js";import{a as D}from"./project.6bdf193e.js";import"./columns.ace8099c.js";import{a as R}from"./asyncComputed.1e3f7518.js";import"./metadata.20f47b4e.js";import"./PhWebhooksLogo.vue.4fa518ce.js";import"./ant-design.a88e12c2.js";import"./string.4dfa525a.js";import"./index.42427298.js";import"./dayjs.233f6847.js";import"./linters.6876b842.js";import"./scripts.82b43492.js";import"./record.40f9594e.js";import"./polling.8b92e226.js";import"./popupNotifcation.231228f5.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]="379c0032-1dfe-4383-ada5-d4785a0c34f8",e._sentryDebugIdIdentifier="sentry-dbid-379c0032-1dfe-4383-ada5-d4785a0c34f8")}catch{}})();const U=_({__name:"Tasks",setup(e){const a=g().params.projectId,d=new f(a),{result:o}=R(async()=>{const r=(await x.list(a)).find(c=>c.latest);if(!r)return null;const[p,u]=await Promise.all([C.get(r.id),D.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)=>(l(),b(v,null,[w(n(j),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(l(),I(m,{key:0,class:"tasks",api:n(d),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.5e5d2119.js.map
