import{d as k,eB as B,eA as I,G as w,a as h,b as o,c as d,w as a,eJ as j,f as n,u as t,ev as l,eC as x,aq as g,eD as z,bq as C,ex as A,bg as D,cC as S}from"./outputWidgets.7bf30641.js";import{B as $}from"./BaseLayout.b24bc90f.js";import{a as M}from"./asyncComputed.cf41ff13.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.93fbb0f8.js";import"./authorManager.2579db6e.js";import{a as P}from"./build.3031745c.js";import"./index.57187a5b.js";import{P as R}from"./project.d20e303d.js";import{O as V}from"./organization.280153d8.js";import{B as q,a as E,c as L}from"./index.6734c8d7.js";import{A as O}from"./Text.85465eb9.js";import"./gateway.c0fbae58.js";import"./WarningFilled.d99917ef.js";import"./log.723d68a0.js";import"./ant-design.a887cdff.js";import"./index.11ada48b.js";import"./Title.c96c9fa7.js";import"./index.953c8217.js";import"./Link.c33ff4f4.js";import"./index.4b554405.js";import"./TabPane.3daa7032.js";import"./hasIn.8de9ce1e.js";import"./index.86aa5627.js";import"./isNumeric.75337b1e.js";import"./icons.0dd46489.js";import"./index.bc5d640f.js";import"./FormItem.e2824bfb.js";import"./index.cf4c23b9.js";import"./record.476a0b13.js";import"./pubsub.a4e44688.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]="1149d607-f036-4e34-ac7b-0a34dd079e77",i._sentryDebugIdIdentifier="sentry-dbid-1149d607-f036-4e34-ac7b-0a34dd079e77")}catch{}})();const T={key:0},F={key:2},kt=k({__name:"Build",setup(i){const s=B(),c=I(),m=s.params.buildId,{result:e,loading:f}=M(async()=>{const r=await P.get(m),p=await R.get(r.projectId),u=await V.get(p.organizationId);return j({bs:r,project:p,organization:u})}),b=w(()=>!f.value&&e.value?[{label:"My organizations",path:"/organizations"},{label:e.value.organization.name,path:`/organizations/${e.value.organization.id}`},{label:`Build ${m.split("-")[0]}`,path:`/projects/${e.value.project.id}/builds`}]:void 0);function y(){var r;(r=e.value)!=null&&r.project.id&&c.push({name:"builds",params:{projectId:e.value.project.id}})}return(r,p)=>{const u=h("router-link");return o(),d($,null,{navbar:a(()=>[n(t(L),{title:"Inspect Build",style:{padding:"5px 25px"},onBack:y},{breadcrumb:a(()=>[b.value?(o(),d(t(q),{key:0},{default:a(()=>[(o(!0),l(C,null,x(b.value,(_,v)=>(o(),d(t(E),{key:v},{default:a(()=>[n(u,{to:_.path},{default:a(()=>[g(z(_.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):A("",!0)]),_:1})]),content:a(()=>[t(f)?(o(),l("div",T,[n(t(D))])):t(e)?(o(),d(N,{key:1,"build-spec":t(e).bs},null,8,["build-spec"])):(o(),l("div",F,[n(t(S),{direction:"vertical"},{default:a(()=>[n(t(O),null,{default:a(()=>[g("Could not find build")]),_:1})]),_:1})]))]),_:1})}}});export{kt as default};
//# sourceMappingURL=Build.89ae9eda.js.map
