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