import{d as h,M as B,U as M,f as N,g as p,h as S,I as T,i as _,z as U,c as n,j as e,l as o,o as l,u as t,L as V,a as i,R as d,m as $,n as s,x as z,p as D,X as v,q as L,t as X,y as m,A as j}from"./index-bJiZR03d.js";import{u as q}from"./usePageTitle-wT6f1BZv.js";const E={key:0},G=h({__name:"Artifact",setup(H){const b=B(),w=M("artifactId"),y=N(b.artifacts.getArtifact,[w]),a=p(()=>y.response),c=S(!1),k=[{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 q(x),(O,r)=>{const R=o("p-divider"),g=o("p-button"),A=o("p-content"),C=o("p-tabs"),I=o("p-layout-well");return l(),n(I,{class:"artifact"},{header:e(()=>[a.value?(l(),n(t(V),{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(),$("section",E,[s(t(z),{artifact:a.value},null,8,["artifact"]),s(R),t(D).xl?(l(),n(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=>c.value=!c.value)},{default:e(()=>[L(X(c.value?"Hide":"Show")+" raw data ",1)]),_:1}),c.value?(l(),n(t(m),{key:0,artifact:a.value},null,8,["artifact"])):i("",!0)]),_:1})):(l(),n(C,{key:1,selected:t(u),"onUpdate:selected":r[1]||(r[1]=f=>j(u)?u.value=f:null),tabs:k},{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{G as default};
