import{d as m,a as i,E as _,c as o,b as w,e as s,w as n,o as t,h as C,u as a,aB as k,g as h,aC as v,aD as y,F as x,f as F}from"./index-562c8470.js";import{u as b}from"./usePageTitle-ad3dbf10.js";const V=m({__name:"Flows",setup(g){const l=i(),c={interval:3e4},e=_(l.flows.getFlowsCount,[{}],c),r=o(()=>e.response??0),u=o(()=>e.executed&&r.value===0),p=o(()=>e.executed),d=()=>{e.refresh()};return b("Flows"),(B,E)=>{const f=w("p-layout-default");return t(),s(f,{class:"flows"},{header:n(()=>[C(a(k))]),default:n(()=>[p.value?(t(),h(x,{key:0},[u.value?(t(),s(a(v),{key:0})):(t(),s(a(y),{key:1,selectable:"",onDelete:d}))],64)):F("",!0)]),_:1})}}});export{V as default};
