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