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