import{d as E,v as h,E as B,R as N,c as _,r as T,q as V,J as p,f as $,a as r,e as n,w as e,o as s,g as a,h as j,i,j as d,k as q,m as l,t as D,S as I,y as v,n as z,p as H,s as m,x as J}from"./index-a91efef8.js";import{u as M}from"./usePageTitle-6b86fe3b.js";const P={key:0},L=E({__name:"Artifact",setup(U){const y=h(),b=B("artifactId"),k=N(y.artifacts.getArtifact,[b]),t=_(()=>k.response),c=T(!1),{tab:u,tabs:w}=V([{label:"Artifact"},{label:"Details"},{label:"Raw"}]),x=_(()=>t.value?`${p.info.artifact}: ${t.value.key??$(t.value.type)}`:p.info.artifact);return M(x),(F,o)=>{const g=r("p-divider"),C=r("p-button"),R=r("p-content"),S=r("p-tabs"),A=r("p-layout-well");return s(),n(A,{class:"artifact"},{header:e(()=>[t.value?(s(),n(a(j),{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(),q("section",P,[l(a(D),{artifact:t.value},null,8,["artifact"]),l(g),a(I).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(()=>[z(H(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=>J(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{L as default};
