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