import{d as v,u as g,c,a as h,r as _,o as n,b as o,w as l,e as a,_ as x,f as t,g as F,h as B,i as s,j as C,k as D,l as I,m as P,P as i,n as m,p as f,q as w,F as S,s as N,t as V,v as q,x as z,y as T,z as j}from"./index.a93ec448.js";import{u as A}from"./useRouteParam.ba3137c3.js";const E={class:"flow-run__meta"},J=v({__name:"FlowRun",setup(L){const p=g(),r=A("id"),k=c(()=>{const u=["Logs","Task Runs","Sub Flow Runs","Parameters"];return j.xl||u.push("Details"),u}),y=h(T.getFlowRun,[r],{interval:5e3}),e=c(()=>y.response);function R(){p.push(f.flowRuns())}return(u,W)=>{const d=_("router-link"),b=_("p-tabs"),$=_("p-layout-well");return n(),o($,{class:"flow-run"},{header:l(()=>[a(e)?(n(),o(a(x),{key:0,"flow-run":a(e),onDelete:R},null,8,["flow-run"])):t("",!0)]),well:l(()=>[a(e)?(n(),F(S,{key:0},[B("div",E,[s(a(C),{state:a(e).state},null,8,["state"]),s(a(D),{duration:a(e).duration},null,8,["duration"]),s(a(I),{"flow-id":a(e).flowId},null,8,["flow-id"]),a(e).deploymentId?(n(),o(a(P),{key:0,"deployment-id":a(e).deploymentId},null,8,["deployment-id"])):t("",!0)]),s(a(i)),s(d,{to:a(f).radar(a(r)),class:"flow-run__small-radar-link"},{default:l(()=>[s(a(m),{"flow-run-id":a(r),class:"flow-run__small-radar"},null,8,["flow-run-id"])]),_:1},8,["to"]),s(a(i)),s(a(w),{"flow-run":a(e),alternate:""},null,8,["flow-run"])],64)):t("",!0)]),default:l(()=>[s(b,{tabs:a(k)},{details:l(()=>[s(d,{to:a(f).radar(a(r)),class:"flow-run__small-radar-link"},{default:l(()=>[s(a(m),{"flow-run-id":a(r),class:"flow-run__small-radar"},null,8,["flow-run-id"])]),_:1},8,["to"]),s(a(i)),a(e)?(n(),o(a(w),{key:0,"flow-run":a(e)},null,8,["flow-run"])):t("",!0)]),logs:l(()=>[a(e)?(n(),o(a(N),{key:0,"flow-run":a(e)},null,8,["flow-run"])):t("",!0)]),"task-runs":l(()=>[a(e)?(n(),o(a(V),{key:0,"flow-run-id":a(e).id},null,8,["flow-run-id"])):t("",!0)]),"sub-flow-runs":l(()=>[a(e)?(n(),o(a(q),{key:0,"flow-run-id":a(e).id},null,8,["flow-run-id"])):t("",!0)]),parameters:l(()=>[a(e)?(n(),o(a(z),{key:0,parameters:a(e).parameters},null,8,["parameters"])):t("",!0)]),_:1},8,["tabs"])]),_:1})}}});export{J as default};
