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.38a8ba6d.js";import{B as $}from"./BaseLayout.32fd786f.js";import{a as M}from"./asyncComputed.41d10d8a.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.51a5d439.js";import"./authorManager.b6ced178.js";import{a as P}from"./build.e6008e6a.js";import"./index.56107642.js";import{P as R}from"./project.4956ee0f.js";import{O as V}from"./organization.d77e673f.js";import{B as q,a as E,c as L}from"./index.15b0d850.js";import{A as O}from"./Text.1048f348.js";import"./gateway.77dbab2f.js";import"./WarningFilled.d99917ef.js";import"./log.71d960fe.js";import"./ant-design.16790220.js";import"./index.2785839f.js";import"./Title.ecd0d354.js";import"./index.f764705c.js";import"./Link.a1ff2f16.js";import"./index.8b3fd40e.js";import"./TabPane.6742aa67.js";import"./hasIn.29d88859.js";import"./index.e041a53e.js";import"./isNumeric.75337b1e.js";import"./icons.4ae4a9c5.js";import"./index.97909bdc.js";import"./FormItem.4673de87.js";import"./index.cf4c23b9.js";import"./record.be73334f.js";import"./pubsub.23b14df7.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]="0cf45c0e-8b72-49b9-a1d1-9ff07a3bd06e",i._sentryDebugIdIdentifier="sentry-dbid-0cf45c0e-8b72-49b9-a1d1-9ff07a3bd06e")}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.492f9fa9.js.map
