import{d as N,e as h,W as B,f as R,g as p,ae as S,al as T,c as n,h as e,i as c,D as _,aH as V,o as l,k as t,aI as W,a as i,aJ as d,v as $,j as s,aK as H,aL as U,aM as v,z as j,t as z,aN as m,a6 as E}from"./index-B5elPXvm.js";import{u as J}from"./usePageTitle-c6xxeh_y.js";const K={key:0},q=N({__name:"Artifact",setup(L){const b=h(),k=B("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 J(g),(M,o)=>{const x=c("p-divider"),C=c("p-button"),A=c("p-content"),D=c("p-tabs"),I=c("p-layout-well");return l(),n(I,{class:"artifact"},{header:e(()=>[a.value?(l(),n(t(W),{key:0,artifact:a.value},null,8,["artifact"])):i("",!0)]),well:e(()=>[a.value?(l(),n(t(d),{key:0,artifact:a.value,alternate:""},null,8,["artifact"])):i("",!0)]),default:e(()=>[a.value?(l(),$("section",K,[s(t(H),{artifact:a.value},null,8,["artifact"]),s(x),t(U).xl?(l(),n(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(()=>[j(z(r.value?"Hide":"Show")+" raw data ",1)]),_:1}),r.value?(l(),n(t(m),{key:0,artifact:a.value},null,8,["artifact"])):i("",!0)]),_:1})):(l(),n(D,{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{q as default};
//# sourceMappingURL=Artifact-DAsc5FKA.js.map
