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 n,u as e,eu as p,eC as z,aq as g,eD as x,a_ as C,ew as D,bu as A,cE as S}from"./outputWidgets.91878a00.js";import{B as $}from"./BaseLayout.7377c126.js";import{a as E}from"./asyncComputed.6ced1d7b.js";import{_ as M}from"./component.vue_vue_type_script_setup_true_lang.2f55b11d.js";import"./router.77bfbaae.js";import{a as N}from"./build.1bbcf2d7.js";import"./index.8262a422.js";import{P}from"./project.e6aa2cb4.js";import{O as R}from"./organization.7073a119.js";import{B as V,a as G,c as L}from"./index.2b74a3c8.js";import{c as O}from"./Text.24e27494.js";import"./gateway.6c51aaca.js";import"./Log.8da4e300.js";import"./ant-design.815cb8e3.js";import"./transButton.c9ea1045.js";import"./index.69c1a832.js";import"./WarningFilled.d99917ef.js";import"./index.571df689.js";import"./index.784fc438.js";import"./isNumeric.75337b1e.js";import"./TabPane.f305365a.js";import"./Base.80d71c98.js";import"./icons.842bb077.js";import"./index.d299f198.js";import"./Title.cb0c3b9b.js";import"./record.8ded570d.js";import"./pubsub.862a9619.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[s]="1a7301f9-6a30-4d73-8524-dec7f58702d3",i._sentryDebugIdIdentifier="sentry-dbid-1a7301f9-6a30-4d73-8524-dec7f58702d3")}catch{}})();const T={key:0},q={key:2},ge=k({__name:"Build",setup(i){const s=B(),c=w(),m=s.params.buildId,{result:t,loading:f}=E(async()=>{const r=await N.get(m),u=await P.get(r.projectId),l=await R.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&&c.push({name:"builds",params:{projectId:t.value.project.id}})}return(r,u)=>{const l=h("router-link");return o(),d($,null,{navbar:a(()=>[n(e(L),{title:"Inspect Build",style:{padding:"5px 10px"},onBack:y},{breadcrumb:a(()=>[b.value?(o(),d(e(V),{key:0},{default:a(()=>[(o(!0),p(C,null,z(b.value,(_,v)=>(o(),d(e(G),{key:v},{default:a(()=>[n(l,{to:_.path},{default:a(()=>[g(x(_.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):D("",!0)]),_:1})]),content:a(()=>[e(f)?(o(),p("div",T,[n(e(A))])):e(t)?(o(),d(M,{key:1,"build-spec":e(t).bs},null,8,["build-spec"])):(o(),p("div",q,[n(e(S),{direction:"vertical"},{default:a(()=>[n(e(O),null,{default:a(()=>[g("Could not find build")]),_:1})]),_:1})]))]),_:1})}}});export{ge as default};
//# sourceMappingURL=Build.0fea74eb.js.map
