import{d as D,S as I,v as R,j as h,g as p,ae as B,al as T,I as d,aH as V,h as c,c as n,o as l,i as e,n as $,a as i,k as s,m as t,aI as j,aJ as H,aK as _,D as z,t as E,aL as v,a6 as J,aM as m,aN as K}from"./index-BRrm8IYN.js";import{u as L}from"./usePageTitle-D8ThwtpL.js";const M={key:0},G=D({__name:"Artifact",setup(P){const b=I(),k=R("artifactId"),w=h(b.artifacts.getArtifact,[k]),a=p(()=>w.response),r=B(!1),y=[{label:"Artifact"},{label:"Details"},{label:"Raw"}],u=T("tab","Artifact"),N=p(()=>a.value?`${d.info.artifact}: ${a.value.key??V(a.value.type)}`:d.info.artifact);return L(N),(U,o)=>{const g=c("p-divider"),x=c("p-button"),C=c("p-content"),S=c("p-tabs"),A=c("p-layout-well");return l(),n(A,{class:"artifact"},{header:e(()=>[a.value?(l(),n(t(K),{key:0,artifact:a.value},null,8,["artifact"])):i("",!0)]),well:e(()=>[a.value?(l(),n(t(m),{key:0,artifact:a.value,alternate:""},null,8,["artifact"])):i("",!0)]),default:e(()=>[a.value?(l(),$("section",M,[s(t(j),{artifact:a.value},null,8,["artifact"]),s(g),t(H).xl?(l(),n(C,{key:0},{default:e(()=>[s(t(_),{artifact:a.value},null,8,["artifact"]),s(x,{class:"artifact__raw-data-button",small:"",onClick:o[0]||(o[0]=f=>r.value=!r.value)},{default:e(()=>[z(E(r.value?"Hide":"Show")+" raw data ",1)]),_:1}),r.value?(l(),n(t(v),{key:0,artifact:a.value},null,8,["artifact"])):i("",!0)]),_:1})):(l(),n(S,{key:1,selected:t(u),"onUpdate:selected":o[1]||(o[1]=f=>J(u)?u.value=f:null),tabs:y},{artifact:e(()=>[s(t(_),{artifact:a.value},null,8,["artifact"])]),details:e(()=>[s(t(m),{artifact:a.value},null,8,["artifact"])]),raw:e(()=>[s(t(v),{artifact:a.value},null,8,["artifact"])]),_:1},8,["selected"]))])):i("",!0)]),_:1})}}});export{G as default};
//# sourceMappingURL=Artifact-C_GJ_Wwg.js.map
