import{d as k,eB as B,eA as w,G as I,a as h,b as o,c as u,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.6c6bbcfd.js";import{B as $}from"./BaseLayout.41269b73.js";import{a as M}from"./asyncComputed.77186ed9.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.4b5a1025.js";import"./router.98f12fd8.js";import{a as P}from"./build.aee7e9e7.js";import"./index.fa74f1f3.js";import{P as R}from"./project.680d2460.js";import{O as V}from"./organization.0937221e.js";import{B as E,a as F,c as G}from"./index.eb6d3cc3.js";import{c as L}from"./Text.51d0b007.js";import"./icons.89c226d3.js";import"./index.1e481570.js";import"./Base.d198dcc9.js";import"./transButton.2945a1d9.js";import"./Title.307e6445.js";import"./index.d102918e.js";import"./gateway.3543d1b0.js";import"./record.5aef9f17.js";import"./pubsub.ccb56b51.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]="58902001-6b92-4122-8279-7f4b59f010c5",n._sentryDebugIdIdentifier="sentry-dbid-58902001-6b92-4122-8279-7f4b59f010c5")}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),d=await R.get(r.projectId),l=await V.get(d.organizationId);return j({bs:r,project:d,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,d)=>{const l=h("router-link");return o(),u($,null,{navbar:a(()=>[i(e(G),{title:"Inspect Build",style:{padding:"5px 10px"},onBack:y},{breadcrumb:a(()=>[b.value?(o(),u(e(E),{key:0},{default:a(()=>[(o(!0),c(C,null,z(b.value,(_,v)=>(o(),u(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(),u(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.cac78303.js.map
