import{_ as m}from"./TasksView.vue_vue_type_script_setup_true_lang.0086487c.js";import{R as f}from"./tasksController.f79a8085.js";import{d as _,ea as y,f as g,o as n,Y as b,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.a6a7b83e.js";import"./gateway.17d3cf08.js";import{a as j,B as x}from"./build.0e99d109.js";import{a as C}from"./project.ec4cd69a.js";import"./tables.1cab6cbf.js";import{a as D}from"./asyncComputed.be98d509.js";import"./metadata.5986973b.js";import"./PhWebhooksLogo.vue.140fa564.js";import"./string.dca533ee.js";import"./ant-design.9ff19ea6.js";import"./dayjs.6d6c1ac4.js";import"./index.8e7db9f8.js";import"./polling.e06ad7b5.js";import"./scripts.9f22aae5.js";import"./record.08a1b386.js";import"./linters.bf8a0dd6.js";import"./popupNotifcation.725f4ac9.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]="c404d355-f5af-4822-839d-57fc7e153e6e",e._sentryDebugIdIdentifier="sentry-dbid-c404d355-f5af-4822-839d-57fc7e153e6e")}catch{}})();const Q=_({__name:"Tasks",setup(e){const a=y().params.projectId,p=new f(a),{result:o}=D(async()=>{const r=(await j.list(a)).find(c=>c.latest);if(!r)return null;const[u,d]=await Promise.all([x.get(r.id),C.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(),b(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.d928948f.js.map
