import{_ as f}from"./TasksView.vue_vue_type_script_setup_true_lang.709ff8be.js";import{R as m}from"./tasksController.7f345d18.js";import{d as _,e3 as g,g as y,o as n,K as b,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.ca490e8a.js";import"./gateway.2bc2f160.js";import{a as x,B as C}from"./build.368ac381.js";import{a as D}from"./project.62e4359c.js";import"./columns.b20e9538.js";import{a as R}from"./asyncComputed.dbc4f759.js";import"./metadata.10e0cc73.js";import"./PhWebhooksLogo.vue.26672f6f.js";import"./ant-design.6033f47a.js";import"./string.30fb8f91.js";import"./dayjs.36e370cf.js";import"./index.4d01f880.js";import"./linters.6bc8f63e.js";import"./scripts.ca17ef35.js";import"./record.594fdb6c.js";import"./polling.8c6c7ac6.js";import"./popupNotifcation.3f540cbb.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]="21e9f66f-f1e2-4e96-97ff-79919a5141f1",e._sentryDebugIdIdentifier="sentry-dbid-21e9f66f-f1e2-4e96-97ff-79919a5141f1")}catch{}})();const U=_({__name:"Tasks",setup(e){const s=g().params.projectId,p=new m(s),{result:o}=R(async()=>{const r=(await x.list(s)).find(d=>d.latest);if(!r)return null;const[u,c]=await Promise.all([C.get(r.id),D.get(s)]);return{buildSpec:u,project:c}}),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(),b(v,null,[w(l(j),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(n(),I(f,{key:0,class:"tasks",api:l(p),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{U as default};
//# sourceMappingURL=Tasks.a3bfa40c.js.map
