import{d as k,eB as B,eA as w,G as I,a as h,b as o,c as d,w as a,eG as j,f as i,u as e,eu as c,eC as z,aq as g,eD as x,a_ as C,ew as D,bu as A,cF as S}from"./outputWidgets.84fd06fb.js";import{B as $}from"./BaseLayout.f10be94e.js";import{a as M}from"./asyncComputed.da204aa5.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.876aba82.js";import"./router.a59cab44.js";import{a as P}from"./build.059ecd31.js";import"./index.0bfee40a.js";import{P as R}from"./project.ef664249.js";import{O as V}from"./organization.4a0219c9.js";import{B as E,a as F,c as G}from"./index.85c4f2b4.js";import{c as L}from"./Text.9dbcc31d.js";import"./icons.3869c437.js";import"./index.47ea25aa.js";import"./Base.67ffff63.js";import"./transButton.64565967.js";import"./Title.564982df.js";import"./index.a606b6d8.js";import"./gateway.82cdc40d.js";import"./record.f0008bb4.js";import"./pubsub.8883f68b.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[s]="475a23c3-a4b5-428f-9d16-d3659c6164d0",n._sentryDebugIdIdentifier="sentry-dbid-475a23c3-a4b5-428f-9d16-d3659c6164d0")}catch{}})();const O={key:0},T={key:2},le=k({__name:"Build",setup(n){const s=B(),p=w(),m=s.params.buildId,{result:t,loading:f}=M(async()=>{const r=await P.get(m),u=await R.get(r.projectId),l=await V.get(u.organizationId);return j({bs:r,project:u,organization:l})}),b=I(()=>!f.value&&t.value?[{label:"My organizations",path:"/organizations"},{label:t.value.organization.name,path:`/organizations/${t.value.organization.id}`},{label:`Build ${m.split("-")[0]}`,path:`/projects/${t.value.project.id}/builds`}]:void 0);function y(){var r;(r=t.value)!=null&&r.project.id&&p.push({name:"builds",params:{projectId:t.value.project.id}})}return(r,u)=>{const l=h("router-link");return o(),d($,null,{navbar:a(()=>[i(e(G),{title:"Inspect Build",style:{padding:"5px 10px"},onBack:y},{breadcrumb:a(()=>[b.value?(o(),d(e(E),{key:0},{default:a(()=>[(o(!0),c(C,null,z(b.value,(_,v)=>(o(),d(e(F),{key:v},{default:a(()=>[i(l,{to:_.path},{default:a(()=>[g(x(_.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):D("",!0)]),_:1})]),content:a(()=>[e(f)?(o(),c("div",O,[i(e(A))])):e(t)?(o(),d(N,{key:1,"build-spec":e(t).bs},null,8,["build-spec"])):(o(),c("div",T,[i(e(S),{direction:"vertical"},{default:a(()=>[i(e(L),null,{default:a(()=>[g("Could not find build")]),_:1})]),_:1})]))]),_:1})}}});export{le as default};
//# sourceMappingURL=Build.206189fa.js.map
