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