import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.5e7c4b22.js";import{R as f}from"./tasksController.98768fc1.js";import{d as b,ea as _,f as y,o as n,Y as g,b as w,w as k,u as l,c as I,S as T,aS as v,aG as B,dd as S}from"./index.fa78dbc3.js";import"./gateway.ae4a1089.js";import{a as j,B as x}from"./build.01a4992e.js";import{a as C}from"./project.41657932.js";import"./tables.b8cdb7fe.js";import{a as D}from"./asyncComputed.12aeb11c.js";import"./metadata.21663df1.js";import"./PhWebhooksLogo.vue.dfa44b93.js";import"./ant-design.a6589efa.js";import"./string.2d4a8451.js";import"./dayjs.1f93ec0c.js";import"./index.83e500e3.js";import"./polling.3a62e36e.js";import"./scripts.13e9cfed.js";import"./record.0f0973ec.js";import"./linters.21252bcf.js";import"./popupNotifcation.42d265d2.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]="757842b1-91ca-4096-9047-4e636bdf4c2a",e._sentryDebugIdIdentifier="sentry-dbid-757842b1-91ca-4096-9047-4e636bdf4c2a")}catch{}})();const Q=b({__name:"Tasks",setup(e){const a=_().params.projectId,p=new f(a),{result:o}=D(async()=>{const r=(await j.list(a)).find(d=>d.latest);if(!r)return null;const[u,c]=await Promise.all([x.get(r.id),C.get(a)]);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(),g(v,null,[w(l(S),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{Q as default};
//# sourceMappingURL=Tasks.35018874.js.map
