import{_ as d}from"./TasksView.vue_vue_type_script_setup_true_lang.4b61b733.js";import{R as f}from"./tasksController.5cf0c7c0.js";import{d as b,e4 as _,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.dac48cf7.js";import"./gateway.c2702d94.js";import{a as x,B as C}from"./build.2fdafb83.js";import{P as D}from"./project.077487da.js";import"./columns.6ff19a2c.js";import{a as R}from"./asyncComputed.b070652a.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.72597d4f.js";import"./PhCopy.vue.af35bf4d.js";import"./metadata.12393afb.js";import"./PhWebhooksLogo.vue.924aafd8.js";import"./ant-design.7bc3937c.js";import"./string.9568178f.js";import"./index.e5a37860.js";import"./dayjs.91740d4f.js";import"./linters.7a08fd6c.js";import"./scripts.250f0db0.js";import"./record.fdd703f6.js";import"./polling.5a0f0c2a.js";import"./popupNotifcation.82314e8e.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]="5eeb314e-10e5-4382-9c16-f5a2e0c4b93a",e._sentryDebugIdIdentifier="sentry-dbid-5eeb314e-10e5-4382-9c16-f5a2e0c4b93a")}catch{}})();const X=b({__name:"Tasks",setup(e){const a=_().params.projectId,p=new f(a),{result:o}=R(async()=>{const r=(await x.list(a)).find(m=>m.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(d,{key:0,class:"tasks",api:n(p),stages:i.value},null,8,["api","stages"])):T("",!0)],64))}});export{X as default};
//# sourceMappingURL=Tasks.900cca10.js.map
