import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.a5959931.js";import{R as f}from"./tasksController.c812b1d0.js";import{d as b,e4 as _,g,K as y,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.e58852ef.js";import"./gateway.b7d3c19b.js";import{a as x,B as C}from"./build.23be7f75.js";import{a as D}from"./project.10ebb781.js";import"./columns.d5f48803.js";import{a as R}from"./asyncComputed.a1be57e2.js";import"./metadata.b1a13720.js";import"./PhWebhooksLogo.vue.032e2615.js";import"./ant-design.52d06a11.js";import"./string.0ca9260c.js";import"./index.447f8712.js";import"./dayjs.927c2723.js";import"./linters.d966844e.js";import"./scripts.415093c2.js";import"./record.46ea3b16.js";import"./polling.589d3415.js";import"./popupNotifcation.e1a13287.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="24b20404-bce9-4295-ba8c-6b34c94d3749",e._sentryDebugIdIdentifier="sentry-dbid-24b20404-bce9-4295-ba8c-6b34c94d3749")}catch{}})();const U=b({__name:"Tasks",setup(e){const s=_().params.projectId,c=new f(s),{result:o}=R(async()=>{const r=(await x.list(s)).find(d=>d.latest);if(!r)return null;const[p,u]=await Promise.all([C.get(r.id),D.get(s)]);return{buildSpec:p,project:u}}),i=g(()=>!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(),y(v,null,[w(n(j),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(l(),I(m,{key:0,class:"tasks",api:n(c),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.766c7bb3.js.map
