import{d as h,v as B,W as R,b as S,e as p,af as T,ao as V,c,g as e,h as n,C as _,aK as $,o as l,k as t,aL as D,a as i,aM as d,p as E,j as s,aN as L,aO as P,aP as v,y as W,t as j,aQ as m,a6 as H}from"./index-Bp1Bhxow.js";import{u as J}from"./usePageTitle-CccNdtFw.js";const K={key:0},Z=h({__name:"Artifact",setup(M){const b=B(),y=R("artifactId"),k=S(b.artifacts.getArtifact,[y]),a=p(()=>k.response),r=T(!1),w=[{label:"Artifact"},{label:"Details"},{label:"Raw"}],u=V("tab","Artifact"),C=p(()=>a.value?`${_.info.artifact}: ${a.value.key??$(a.value.type)}`:_.info.artifact);return J(C),(O,o)=>{const g=n("p-divider"),x=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(D),{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(),E("section",K,[s(t(L),{artifact:a.value},null,8,["artifact"]),s(g),t(P).xl?(l(),c(A,{key:0},{default:e(()=>[s(t(v),{artifact:a.value},null,8,["artifact"]),s(x,{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=>H(u)?u.value=f:null),tabs:w},{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-M8U3QVsM.js.map
