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