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