import{d as h,M as H,b as J,Y as N,e as p,f as R,g as S,h as _,V as T,c as n,i as e,j as c,o as l,u as t,k as $,a as i,t as d,l as D,m as s,J as I,n as M,p as v,q as Y,x as j,H as m,z as q}from"./index-bD6G21oH.js";import{u as z}from"./usePageTitle-27XdpEbQ.js";const E={key:0},K=h({__name:"Artifact",setup(F){const b=H(),k=J("artifactId"),w=N(b.artifacts.getArtifact,[k]),a=p(()=>w.response),o=R(!1),y=[{label:"Artifact"},{label:"Details"},{label:"Raw"}],u=S("tab","Artifact"),x=p(()=>a.value?`${_.info.artifact}: ${a.value.key??T(a.value.type)}`:_.info.artifact);return z(x),(P,r)=>{const g=c("p-divider"),C=c("p-button"),V=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($),{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(),D("section",E,[s(t(I),{artifact:a.value},null,8,["artifact"]),s(g),t(M).xl?(l(),n(V,{key:0},{default:e(()=>[s(t(v),{artifact:a.value},null,8,["artifact"]),s(C,{class:"artifact__raw-data-button",small:"",onClick:r[0]||(r[0]=f=>o.value=!o.value)},{default:e(()=>[Y(j(o.value?"Hide":"Show")+" raw data ",1)]),_:1}),o.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":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{K as default};
