import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.6e5a18ac.js";import{R as f}from"./tasksController.602aa46c.js";import{d as b,e3 as _,g,o as n,K as y,b as w,w as k,u as l,c as I,F as T,aL as v,az as B,d6 as j}from"./index.f15cb536.js";import"./gateway.ee243f16.js";import{a as x,B as C}from"./build.bd70b2c8.js";import{a as D}from"./project.5a2faa42.js";import"./columns.a76809c0.js";import{a as R}from"./asyncComputed.3313bf29.js";import"./metadata.eb597bf1.js";import"./PhWebhooksLogo.vue.64dadcf0.js";import"./ant-design.1677616b.js";import"./string.be4a54d7.js";import"./dayjs.1c2016d1.js";import"./index.c9844082.js";import"./linters.4d879006.js";import"./scripts.82764dc5.js";import"./record.88d9d564.js";import"./polling.5310e9a2.js";import"./popupNotifcation.8270aa41.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]="7b6a1262-d9e0-4334-91f2-bb8105d5fa34",e._sentryDebugIdIdentifier="sentry-dbid-7b6a1262-d9e0-4334-91f2-bb8105d5fa34")}catch{}})();const U=b({__name:"Tasks",setup(e){const a=_().params.projectId,p=new f(a),{result:o}=R(async()=>{const r=(await x.list(a)).find(c=>c.latest);if(!r)return null;const[u,d]=await Promise.all([C.get(r.id),D.get(a)]);return{buildSpec:u,project:d}}),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)=>(n(),y(v,null,[w(l(j),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(n(),I(m,{key:0,class:"tasks",api:l(p),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.8b665a45.js.map
