import{d as v,aV as y,aW as V,h as C,t as x,j as i,aX as F,c as _,k as l,l as d,o as n,m as a,D,q as r,n as e,aY as S,aC as B,K as R,y as m,aZ as N,a_ as U,a$ as T,b0 as W,F as j,a as A,B as K,b1 as M,f as q}from"./index-CKtbewUP.js";import{s as E,a as H}from"./index-FFjO9J-8.js";const I={class:"workspace-dashboard__header-actions"},J={class:"workspace-dashboard__subflows-toggle"},O={key:1,class:"workspace-dashboard__grid"},P={class:"workspace-dashboard__side"},$=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:-H},tags:[]}),k=()=>q.map("WorkspaceDashboardFilter",s,"TaskRunsFilter");return(X,o)=>{const w=d("p-toggle"),g=d("p-button"),h=d("p-layout-default");return n(),_(h,{class:"workspace-dashboard"},{header:l(()=>[a(e(R),{crumbs:b,class:"workspace-dashboard__page-heading"},D({_:2},[u.value&&!p.value?{name:"actions",fn:l(()=>[r("div",I,[r("div",J,[a(w,{modelValue:e(s).hideSubflows,"onUpdate:modelValue":o[0]||(o[0]=t=>e(s).hideSubflows=t),append:"Hide subflows"},null,8,["modelValue"])]),a(e(S),{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(j,{key:0},[p.value?(n(),_(e(N),{key:0})):(n(),m("div",O,[a(e(U),{filter:e(s)},null,8,["filter"]),r("div",P,[a(e(T),{filter:k}),a(e(W),{class:"workspace-dashboard__work-pools",filter:e(s)},null,8,["filter"])])]))],64)):A("",!0),a(e(M),{title:"Ready to scale?",subtitle:"Webhooks, role and object-level security, and serverless push work pools on Prefect Cloud"},{actions:l(()=>[a(g,{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(()=>[K(" Upgrade to Cloud ")]),_:1})]),_:1})]),_:1})}}});export{$ as default};
//# sourceMappingURL=Dashboard-B5CvkIu4.js.map
