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 u,eC as x,aq as g,eD as z,bq as C,ex as A,bg as D,cC as S}from"./outputWidgets.333243b5.js";import{B as $}from"./BaseLayout.82019b78.js";import{a as M}from"./asyncComputed.916d2e38.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.064f9c5c.js";import"./authorManager.afcc9659.js";import{a as P}from"./build.b711f9d9.js";import"./index.cbd7b276.js";import{P as R}from"./project.a2850ce8.js";import{O as V}from"./organization.a1295e5d.js";import{B as q,a as E,c as L}from"./index.f0ba07f5.js";import{A as O}from"./Text.f7432746.js";import"./gateway.d354a11c.js";import"./WarningFilled.d99917ef.js";import"./log.d431b0e1.js";import"./ant-design.d494077f.js";import"./index.e0bce9ea.js";import"./Title.3b7d5185.js";import"./index.f1fc9225.js";import"./Link.0ef9fe9c.js";import"./index.b6f16b4f.js";import"./TabPane.11abb547.js";import"./hasIn.cb198a04.js";import"./index.e33ba097.js";import"./isNumeric.75337b1e.js";import"./icons.ec7238f6.js";import"./index.6b99bb97.js";import"./FormItem.413481bf.js";import"./index.cf4c23b9.js";import"./record.3365b440.js";import"./pubsub.6843f3da.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]="0964f8dc-da44-4f6c-9bee-f981918c8ecf",i._sentryDebugIdIdentifier="sentry-dbid-0964f8dc-da44-4f6c-9bee-f981918c8ecf")}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:f}=M(async()=>{const r=await P.get(m),p=await R.get(r.projectId),c=await V.get(p.organizationId);return j({bs:r,project:p,organization:c})}),b=w(()=>!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&&l.push({name:"builds",params:{projectId:t.value.project.id}})}return(r,p)=>{const c=h("router-link");return o(),d($,null,{navbar:a(()=>[n(e(L),{title:"Inspect Build",style:{padding:"5px 25px"},onBack:y},{breadcrumb:a(()=>[b.value?(o(),d(e(q),{key:0},{default:a(()=>[(o(!0),u(C,null,x(b.value,(_,v)=>(o(),d(e(E),{key:v},{default:a(()=>[n(c,{to:_.path},{default:a(()=>[g(z(_.label),1)]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1})):A("",!0)]),_:1})]),content:a(()=>[e(f)?(o(),u("div",T,[n(e(D))])):e(t)?(o(),d(N,{key:1,"build-spec":e(t).bs},null,8,["build-spec"])):(o(),u("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.913f6d8d.js.map
