import{d as v,aS as y,aT as V,e as C,f as x,g as i,aU as F,c as _,h as l,i as d,o as n,j as a,B as R,n as r,k as e,aV as U,az as B,Z as D,v as m,aW as S,aX as N,aY as T,aZ as z,F as W,a as Z,z as j,a_ as A,b as H}from"./index-B5elPXvm.js";import{s as E,a as I}from"./index-0yGGjo7r.js";const M={class:"workspace-dashboard__header-actions"},P={class:"workspace-dashboard__subflows-toggle"},X={key:1,class:"workspace-dashboard__grid"},Y={class:"workspace-dashboard__side"},L=v({__name:"Dashboard",setup(q){y(V,{interval:E(30)});const f=C(),c=x(f.flowRuns.getFlowRunsCount,[{}]),u=i(()=>c.executed),p=i(()=>c.response===0),b=[{text:"Dashboard"}],s=F({range:{type:"span",seconds:-I},tags:[]}),g=()=>H.map("WorkspaceDashboardFilter",s,"TaskRunsFilter");return(G,o)=>{const k=d("p-toggle"),w=d("p-button"),h=d("p-layout-default");return n(),_(h,{class:"workspace-dashboard"},{header:l(()=>[a(e(D),{crumbs:b,class:"workspace-dashboard__page-heading"},R({_:2},[u.value&&!p.value?{name:"actions",fn:l(()=>[r("div",M,[r("div",P,[a(k,{modelValue:e(s).hideSubflows,"onUpdate:modelValue":o[0]||(o[0]=t=>e(s).hideSubflows=t),append:"Hide subflows"},null,8,["modelValue"])]),a(e(U),{selected:e(s).tags,"onUpdate:selected":o[1]||(o[1]=t=>e(s).tags=t),"empty-message":"All tags"},null,8,["selected"]),a(e(B),{modelValue:e(s).range,"onUpdate:modelValue":o[2]||(o[2]=t=>e(s).range=t),class:"workspace-dashboard__date-select"},null,8,["modelValue"])])]),key:"0"}:void 0]),1024)]),default:l(()=>[u.value?(n(),m(W,{key:0},[p.value?(n(),_(e(S),{key:0})):(n(),m("div",X,[a(e(N),{filter:e(s)},null,8,["filter"]),r("div",Y,[a(e(T),{filter:g}),a(e(z),{class:"workspace-dashboard__work-pools",filter:e(s)},null,8,["filter"])])]))],64)):Z("",!0),a(e(A),{title:"Ready to scale?",subtitle:"Webhooks, role and object-level security, and serverless push work pools on Prefect Cloud"},{actions:l(()=>[a(w,{to:"https://www.prefect.io/cloud-vs-oss?utm_source=oss&utm_medium=oss&utm_campaign=oss&utm_term=none&utm_content=none",target:"_blank",primary:""},{default:l(()=>o[3]||(o[3]=[j(" Upgrade to Cloud ")])),_:1})]),_:1})]),_:1})}}});export{L as default};
//# sourceMappingURL=Dashboard-oIRgqQzJ.js.map
