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 c,eC as x,aq as g,eD as z,bq as C,ex as D,bg as A,cC as S}from"./outputWidgets.396f5ce1.js";import{B as $}from"./BaseLayout.16854fe5.js";import{a as M}from"./asyncComputed.95737324.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.37087f68.js";import"./router.898a5ca4.js";import{a as P}from"./build.d93fcc19.js";import"./index.d80eeb49.js";import{P as R}from"./project.e7f48580.js";import{O as V}from"./organization.e739f1ec.js";import{B as q,a as E,c as L}from"./index.f6bad865.js";import{a as O}from"./Text.4e180dc2.js";import"./gateway.a0e7cb55.js";import"./Log.6a7046d7.js";import"./ant-design.e656dd24.js";import"./index.b703167a.js";import"./Modal.c02a2840.js";import"./index.debab272.js";import"./WarningFilled.d99917ef.js";import"./Link.70d4fc5a.js";import"./Base.ee1dde08.js";import"./index.f3919413.js";import"./TabPane.1f8c84b2.js";import"./hasIn.63a13365.js";import"./index.864136d4.js";import"./isNumeric.75337b1e.js";import"./icons.37b6f90f.js";import"./index.c8a6d64d.js";import"./FormItem.a8de7296.js";import"./index.cf4c23b9.js";import"./record.1aff3d29.js";import"./pubsub.06faa612.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]="56bc2098-0b68-4344-9565-a238cda3d68c",i._sentryDebugIdIdentifier="sentry-dbid-56bc2098-0b68-4344-9565-a238cda3d68c")}catch{}})();const T={key:0},F={key:2},Bt=k({__name:"Build",setup(i){const s=B(),l=I(),m=s.params.buildId,{result:e,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&&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&&l.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 10px"},onBack:y},{breadcrumb:a(()=>[f.value?(o(),d(t(q),{key:0},{default:a(()=>[(o(!0),c(C,null,x(f.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})):D("",!0)]),_:1})]),content:a(()=>[t(b)?(o(),c("div",T,[n(t(A))])):t(e)?(o(),d(N,{key:1,"build-spec":t(e).bs},null,8,["build-spec"])):(o(),c("div",F,[n(t(S),{direction:"vertical"},{default:a(()=>[n(t(O),null,{default:a(()=>[g("Could not find build")]),_:1})]),_:1})]))]),_:1})}}});export{Bt as default};
//# sourceMappingURL=Build.d62318be.js.map
