import{d as h,h as I,W as R,t as S,j as p,af as T,ao as V,c,k as e,l as n,G as _,aK as $,o as l,n as t,aL as D,a as i,aM as d,y as K,m as s,aN as M,aO as P,aP as v,B as Q,v as W,aQ as m,a6 as j}from"./index-CKtbewUP.js";import{u as E}from"./usePageTitle-BJBko9bD.js";const F={key:0},U=h({__name:"Artifact",setup(G){const y=I(),b=R("artifactId"),k=S(y.artifacts.getArtifact,[b]),a=p(()=>k.response),r=T(!1),w=[{label:"Artifact"},{label:"Details"},{label:"Raw"}],u=V("tab","Artifact"),x=p(()=>a.value?`${_.info.artifact}: ${a.value.key??$(a.value.type)}`:_.info.artifact);return E(x),(H,o)=>{const C=n("p-divider"),N=n("p-button"),g=n("p-content"),A=n("p-tabs"),B=n("p-layout-well");return l(),c(B,{class:"artifact"},{header:e(()=>[a.value?(l(),c(t(D),{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(),K("section",F,[s(t(M),{artifact:a.value},null,8,["artifact"]),s(C),t(P).xl?(l(),c(g,{key:0},{default:e(()=>[s(t(v),{artifact:a.value},null,8,["artifact"]),s(N,{class:"artifact__raw-data-button",small:"",onClick:o[0]||(o[0]=f=>r.value=!r.value)},{default:e(()=>[Q(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(A,{key:1,selected:t(u),"onUpdate:selected":o[1]||(o[1]=f=>j(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{U as default};
//# sourceMappingURL=Artifact-DeoBxQtg.js.map
