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