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