import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.da22cff7.js";import{R as f}from"./tasksController.4f66a62b.js";import{d as _,e4 as b,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.0aa22eb1.js";import"./gateway.2c1f8fd2.js";import{a as x,B as C}from"./build.50869e97.js";import{P as D}from"./project.02773aae.js";import"./columns.e4541305.js";import{a as R}from"./asyncComputed.aa8ef1b1.js";import"./metadata.5b7cd725.js";import"./PhWebhooksLogo.vue.8a33b13c.js";import"./ant-design.77b8866f.js";import"./string.4db7b5b7.js";import"./index.76fbee64.js";import"./dayjs.4d8e9a62.js";import"./linters.1e5b4714.js";import"./scripts.4c2d3e83.js";import"./record.f313467e.js";import"./polling.42fbca45.js";import"./popupNotifcation.f330a36a.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]="397c5a18-3a48-4a40-ae8a-cf5b6a971f98",e._sentryDebugIdIdentifier="sentry-dbid-397c5a18-3a48-4a40-ae8a-cf5b6a971f98")}catch{}})();const U=_({__name:"Tasks",setup(e){const a=b().params.projectId,p=new f(a),{result:o}=R(async()=>{const r=(await x.list(a)).find(d=>d.latest);if(!r)return null;const[u,c]=await Promise.all([C.get(r.id),D.get(a)]);return{buildSpec:u,project:c}}),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(p),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.373795fb.js.map
