import{d as k,eB as B,eA as I,G as w,a as h,b as a,c as p,w as o,eK 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.bf79c6b8.js";import{B as $}from"./BaseLayout.6d45bc41.js";import{a as M}from"./asyncComputed.42c5da60.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.7307fe3d.js";import"./authorManager.09a2317d.js";import{a as P}from"./build.3f7f8e63.js";import"./index.1e489b02.js";import{P as R}from"./project.3cb51038.js";import{O as V}from"./organization.009d0f7f.js";import{B as q,a as E,c as L}from"./index.ee7a1582.js";import{A as O}from"./Text.db5ef3fa.js";import"./gateway.8adee4a2.js";import"./Log.3408ca5b.js";import"./ant-design.c701093a.js";import"./index.6f699e42.js";import"./Title.1751190b.js";import"./StarFilled.fad29e50.js";import"./Timeline.eeb8bbc6.js";import"./WarningFilled.d99917ef.js";import"./Link.464ac6b6.js";import"./index.e5b14e39.js";import"./log.a845acf3.js";import"./TabPane.1bc9539e.js";import"./hasIn.36ac051b.js";import"./index.41603db6.js";import"./isNumeric.75337b1e.js";import"./icons.cf4b109d.js";import"./index.b6fa8ab8.js";import"./FormItem.56138d9e.js";import"./index.cf4c23b9.js";import"./record.fe4e890f.js";import"./pubsub.8fba7f4f.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]="10127eb7-59a3-4347-8d25-0ceeef353122",i._sentryDebugIdIdentifier="sentry-dbid-10127eb7-59a3-4347-8d25-0ceeef353122")}catch{}})();const T={key:0},F={key:2},Ie=k({__name:"Build",setup(i){const s=B(),m=I(),c=s.params.buildId,{result:t,loading:f}=M(async()=>{const r=await P.get(c),d=await R.get(r.projectId),u=await V.get(d.organizationId);return j({bs:r,project:d,organization:u})}),b=w(()=>!f.value&&t.value?[{label:"My organizations",path:"/organizations"},{label:t.value.organization.name,path:`/organizations/${t.value.organization.id}`},{label:`Build ${c.split("-")[0]}`,path:`/projects/${t.value.project.id}/builds`}]:void 0);function y(){var r;(r=t.value)!=null&&r.project.id&&m.push({name:"builds",params:{projectId:t.value.project.id}})}return(r,d)=>{const u=h("router-link");return a(),p($,null,{navbar:o(()=>[n(e(L),{title:"Inspect Build",style:{padding:"5px 25px"},onBack:y},{breadcrumb:o(()=>[b.value?(a(),p(e(q),{key:0},{default:o(()=>[(a(!0),l(C,null,x(b.value,(_,v)=>(a(),p(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(f)?(a(),l("div",T,[n(e(D))])):e(t)?(a(),p(N,{key:1,"build-spec":e(t).bs},null,8,["build-spec"])):(a(),l("div",F,[n(e(S),{direction:"vertical"},{default:o(()=>[n(e(O),null,{default:o(()=>[g("Could not find build")]),_:1})]),_:1})]))]),_:1})}}});export{Ie as default};
//# sourceMappingURL=Build.b409e787.js.map
