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