import{d as A,m as B,E,R as N,c as _,r as T,k as V,e as p,_ as Z,a as r,f as n,w as e,o as s,g as a,Q as $,h as i,i as d,j as D,n as l,y as I,S as P,p as v,q as Q,t as j,s as m,v as q}from"./index-18beffd6.js";import{u as z}from"./usePageTitle-5c97edcb.js";const H={key:0},K=A({__name:"Artifact",setup(U){const y=B(),b=E("artifactId"),k=N(y.artifacts.getArtifact,[b]),t=_(()=>k.response),c=T(!1),{tab:u,tabs:w}=V([{label:"Artifact"},{label:"Details"},{label:"Raw"}]),g=_(()=>t.value?`${p.info.artifact}: ${t.value.key??Z(t.value.type)}`:p.info.artifact);return z(g),(F,o)=>{const x=r("p-divider"),C=r("p-button"),R=r("p-content"),S=r("p-tabs"),h=r("p-layout-well");return s(),n(h,{class:"artifact"},{header:e(()=>[t.value?(s(),n(a($),{key:0,artifact:t.value},null,8,["artifact"])):i("",!0)]),well:e(()=>[t.value?(s(),n(a(d),{key:0,artifact:t.value,alternate:""},null,8,["artifact"])):i("",!0)]),default:e(()=>[t.value?(s(),D("section",H,[l(a(I),{artifact:t.value},null,8,["artifact"]),l(x),a(P).xl?(s(),n(R,{key:0},{default:e(()=>[l(a(v),{artifact:t.value},null,8,["artifact"]),l(C,{class:"artifact__raw-data-button",inset:"",size:"sm",onClick:o[0]||(o[0]=f=>c.value=!c.value)},{default:e(()=>[Q(j(c.value?"Hide":"Show")+" raw data ",1)]),_:1}),c.value?(s(),n(a(m),{key:0,artifact:t.value},null,8,["artifact"])):i("",!0)]),_:1})):(s(),n(S,{key:1,selected:a(u),"onUpdate:selected":o[1]||(o[1]=f=>q(u)?u.value=f:null),tabs:a(w)},{artifact:e(()=>[l(a(v),{artifact:t.value},null,8,["artifact"])]),details:e(()=>[l(a(d),{artifact:t.value},null,8,["artifact"])]),raw:e(()=>[l(a(m),{artifact:t.value},null,8,["artifact"])]),_:1},8,["selected","tabs"]))])):i("",!0)]),_:1})}}});export{K as default};
