import{_ as f}from"./TasksView.vue_vue_type_script_setup_true_lang.658000fb.js";import{R as m}from"./tasksController.01f120b3.js";import{d as _,ea as b,f as y,o as n,Y as g,b as w,w as k,u as d,c as I,S as T,aS as v,aG as B,df as S}from"./index.1e25aa14.js";import"./gateway.08783a74.js";import{a as j,B as x}from"./build.9e2556f4.js";import{a as C}from"./project.adb70c05.js";import"./tables.1e63ac2e.js";import{a as D}from"./asyncComputed.4e1b5fc1.js";import"./metadata.f8413357.js";import"./PhWebhooksLogo.vue.2f3df1e6.js";import"./string.96ede149.js";import"./ant-design.6834cd99.js";import"./dayjs.7e420d92.js";import"./index.1d3a163f.js";import"./polling.d49a4a24.js";import"./scripts.7c47732a.js";import"./record.4d0a2999.js";import"./linters.64dc24d3.js";import"./popupNotifcation.0e8059c7.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]="a2f7de2a-38ed-42f6-ad5e-f10d7ff82cfb",e._sentryDebugIdIdentifier="sentry-dbid-a2f7de2a-38ed-42f6-ad5e-f10d7ff82cfb")}catch{}})();const Q=_({__name:"Tasks",setup(e){const a=b().params.projectId,l=new m(a),{result:o}=D(async()=>{const r=(await j.list(a)).find(c=>c.latest);if(!r)return null;const[p,u]=await Promise.all([x.get(r.id),C.get(a)]);return{buildSpec:p,project:u}}),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(d(S),null,{default:k(()=>[B("Tasks")]),_:1}),i.value?(n(),I(f,{key:0,class:"tasks",api:d(l),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{Q as default};
//# sourceMappingURL=Tasks.1efb45f0.js.map
