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 e,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.5d603989.js";import{B as $}from"./BaseLayout.4e2dd8a4.js";import{a as M}from"./asyncComputed.58ba4f93.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.d05a211d.js";import"./authorManager.c2511e61.js";import{a as P}from"./build.b3a940fb.js";import"./index.31469fdb.js";import{P as R}from"./project.f67ef173.js";import{O as V}from"./organization.97a0a8b2.js";import{B as q,a as E,c as L}from"./index.28990dc7.js";import{A as O}from"./Text.09cd31d9.js";import"./gateway.4795e7dc.js";import"./WarningFilled.d99917ef.js";import"./log.d86bc301.js";import"./ant-design.a23d89b2.js";import"./index.8a8ca7a1.js";import"./Title.ff9a3ba8.js";import"./index.4ad0eacc.js";import"./Link.75fc88c9.js";import"./index.7ab57155.js";import"./TabPane.90e6b085.js";import"./hasIn.fd9b99bd.js";import"./index.fd3c59e5.js";import"./isNumeric.75337b1e.js";import"./icons.bd111c16.js";import"./index.f66f89e7.js";import"./FormItem.908927d2.js";import"./index.cf4c23b9.js";import"./record.d917866d.js";import"./pubsub.6c84e9b3.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]="a84ec3ab-08ed-404b-88ec-d017d807e386",i._sentryDebugIdIdentifier="sentry-dbid-a84ec3ab-08ed-404b-88ec-d017d807e386")}catch{}})();const T={key:0},F={key:2},ke=k({__name:"Build",setup(i){const s=B(),c=I(),m=s.params.buildId,{result:t,loading:b}=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})}),f=w(()=>!b.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,p)=>{const u=h("router-link");return o(),d($,null,{navbar:a(()=>[n(e(L),{title:"Inspect Build",style:{padding:"5px 25px"},onBack:y},{breadcrumb:a(()=>[f.value?(o(),d(e(q),{key:0},{default:a(()=>[(o(!0),l(C,null,x(f.value,(_,v)=>(o(),d(e(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(()=>[e(b)?(o(),l("div",T,[n(e(D))])):e(t)?(o(),d(N,{key:1,"build-spec":e(t).bs},null,8,["build-spec"])):(o(),l("div",F,[n(e(S),{direction:"vertical"},{default:a(()=>[n(e(O),null,{default:a(()=>[g("Could not find build")]),_:1})]),_:1})]))]),_:1})}}});export{ke as default};
//# sourceMappingURL=Build.455b4527.js.map
