import{d as k,eB as B,eA as I,G as w,a as h,b as a,c as d,w as o,eJ as j,f as n,u as e,ev as c,eC as x,aq as g,eD as z,bq as C,ex as A,bg as D,cC as S}from"./outputWidgets.c7d3adb6.js";import{B as $}from"./BaseLayout.4f3efa3f.js";import{a as M}from"./asyncComputed.503b98af.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.6967cf4f.js";import"./authorManager.e16729e9.js";import{a as P}from"./build.89ba9a87.js";import"./index.25051644.js";import{P as R}from"./project.1bf58974.js";import{O as V}from"./organization.7acfedeb.js";import{B as q,a as E,c as L}from"./index.310cc2e2.js";import{A as O}from"./Text.b8f940d0.js";import"./gateway.bdb6eee5.js";import"./WarningFilled.d99917ef.js";import"./log.14d72812.js";import"./ant-design.a9239b18.js";import"./index.8b862542.js";import"./Title.07360565.js";import"./index.f0d86076.js";import"./Link.7cd46e88.js";import"./index.935dd85c.js";import"./TabPane.09eb877a.js";import"./hasIn.2d7f1a4b.js";import"./index.60fbfe14.js";import"./isNumeric.75337b1e.js";import"./icons.04bb36b4.js";import"./index.76fa8d74.js";import"./FormItem.424fcca7.js";import"./index.cf4c23b9.js";import"./record.75c383f2.js";import"./pubsub.83cf89e6.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]="814debbc-1187-41b4-8258-c7e1e8e96c1f",i._sentryDebugIdIdentifier="sentry-dbid-814debbc-1187-41b4-8258-c7e1e8e96c1f")}catch{}})();const T={key:0},F={key:2},ke=k({__name:"Build",setup(i){const s=B(),l=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&&l.push({name:"builds",params:{projectId:t.value.project.id}})}return(r,p)=>{const u=h("router-link");return a(),d($,null,{navbar:o(()=>[n(e(L),{title:"Inspect Build",style:{padding:"5px 25px"},onBack:y},{breadcrumb:o(()=>[f.value?(a(),d(e(q),{key:0},{default:o(()=>[(a(!0),c(C,null,x(f.value,(_,v)=>(a(),d(e(E),{key:v},{default:o(()=>[n(u,{to:_.path},{default:o(()=>[g(z(_.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):A("",!0)]),_:1})]),content:o(()=>[e(b)?(a(),c("div",T,[n(e(D))])):e(t)?(a(),d(N,{key:1,"build-spec":e(t).bs},null,8,["build-spec"])):(a(),c("div",F,[n(e(S),{direction:"vertical"},{default:o(()=>[n(e(O),null,{default:o(()=>[g("Could not find build")]),_:1})]),_:1})]))]),_:1})}}});export{ke as default};
//# sourceMappingURL=Build.db0c4d52.js.map
