import{d as B,aE as D,W as E,t as I,e as p,ae as R,am as S,c,f as e,g as n,C as _,aJ as T,o as l,i as t,aK as V,a as i,aL as d,q as $,h as s,aM as M,aN as P,aO as v,y as U,n as W,aP as m,a5 as q}from"./index-BOEdKJ1D.js";import{u as G}from"./usePageTitle-BkurcLK2.js";const H={key:0},Q=B({__name:"Artifact",setup(J){const y=D(),b=E("artifactId"),k=I(y.artifacts.getArtifact,[b]),a=p(()=>k.response),r=R(!1),w=[{label:"Artifact"},{label:"Details"},{label:"Raw"}],u=S("tab","Artifact"),x=p(()=>a.value?`${_.info.artifact}: ${a.value.key??T(a.value.type)}`:_.info.artifact);return G(x),(K,o)=>{const g=n("p-divider"),C=n("p-button"),A=n("p-content"),N=n("p-tabs"),h=n("p-layout-well");return l(),c(h,{class:"artifact"},{header:e(()=>[a.value?(l(),c(t(V),{key:0,artifact:a.value},null,8,["artifact"])):i("",!0)]),well:e(()=>[a.value?(l(),c(t(d),{key:0,artifact:a.value,alternate:""},null,8,["artifact"])):i("",!0)]),default:e(()=>[a.value?(l(),$("section",H,[s(t(M),{artifact:a.value},null,8,["artifact"]),s(g),t(P).xl?(l(),c(A,{key:0},{default:e(()=>[s(t(v),{artifact:a.value},null,8,["artifact"]),s(C,{class:"artifact__raw-data-button",small:"",onClick:o[0]||(o[0]=f=>r.value=!r.value)},{default:e(()=>[U(W(r.value?"Hide":"Show")+" raw data ",1)]),_:1}),r.value?(l(),c(t(m),{key:0,artifact:a.value},null,8,["artifact"])):i("",!0)]),_:1})):(l(),c(N,{key:1,selected:t(u),"onUpdate:selected":o[1]||(o[1]=f=>q(u)?u.value=f:null),tabs:w},{artifact:e(()=>[s(t(v),{artifact:a.value},null,8,["artifact"])]),details:e(()=>[s(t(d),{artifact:a.value},null,8,["artifact"])]),raw:e(()=>[s(t(m),{artifact:a.value},null,8,["artifact"])]),_:1},8,["selected"]))])):i("",!0)]),_:1})}}});export{Q as default};
//# sourceMappingURL=Artifact-DvXm7n_T.js.map
