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