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.c7c3593b.js";import{B as $}from"./BaseLayout.f0c6220f.js";import{a as M}from"./asyncComputed.87d89e82.js";import{_ as N}from"./component.vue_vue_type_script_setup_true_lang.5b4b5b6c.js";import"./authorManager.33208873.js";import{a as P}from"./build.b0660454.js";import"./index.640c3418.js";import{P as R}from"./project.95833ddb.js";import{O as V}from"./organization.1981f198.js";import{B as q,a as E,c as L}from"./index.ec294f58.js";import{A as O}from"./Text.1c53905c.js";import"./gateway.94d6767e.js";import"./WarningFilled.d99917ef.js";import"./log.a7bab13f.js";import"./ant-design.41fde510.js";import"./index.27c03e11.js";import"./Title.47031f69.js";import"./index.4cafd7ec.js";import"./Link.48382ddc.js";import"./index.50d90398.js";import"./TabPane.8334841d.js";import"./hasIn.f4bb54d3.js";import"./index.e1ffda91.js";import"./isNumeric.75337b1e.js";import"./icons.e912a40c.js";import"./index.bd7719ac.js";import"./FormItem.9941e947.js";import"./index.cf4c23b9.js";import"./record.b6e0d210.js";import"./pubsub.a1271b13.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]="7b884e71-ab81-4174-84cb-41500501ddc8",i._sentryDebugIdIdentifier="sentry-dbid-7b884e71-ab81-4174-84cb-41500501ddc8")}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: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&&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(()=>[f.value?(o(),d(t(q),{key:0},{default:a(()=>[(o(!0),l(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})):A("",!0)]),_:1})]),content:a(()=>[t(b)?(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.c95c544f.js.map
