import{_ as e,a as t,b as n,h as r,i,s as a,v as o}from"./i18n-DfIivedY.js";import{I as s}from"./app-BUWZBqJJ.js";import{t as c}from"./admin-D4Sm8Rbg.js";import{t as l}from"./queue-health-card-DhgCF6kr.js";var u=e(),d=n(o(),1),f=t();function p(e){let t=(0,u.c)(38),{health:n}=e,{t:r}=i(),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],t[0]=o):o=t[0],(0,d.useEffect)(m,o);let p;t[1]===r?p=t[2]:(p=r(`Dashboard`),t[1]=r,t[2]=p);let h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=c(),t[3]=h):h=t[3];let g;t[4]===p?g=t[5]:(g={title:p,href:h},t[4]=p,t[5]=g);let _;t[6]===r?_=t[7]:(_=r(`Queue health`),t[6]=r,t[7]=_);let v;t[8]===_?v=t[9]:(v={title:_,href:`/admin/queue-health`},t[8]=_,t[9]=v);let y;t[10]!==g||t[11]!==v?(y=[g,v],t[10]=g,t[11]=v,t[12]=y):y=t[12];let b;t[13]===r?b=t[14]:(b=r(`Queue health`),t[13]=r,t[14]=b);let x;t[15]===b?x=t[16]:(x=(0,f.jsx)(a,{title:b}),t[15]=b,t[16]=x);let S;t[17]===r?S=t[18]:(S=r(`Queue health`),t[17]=r,t[18]=S);let C;t[19]===S?C=t[20]:(C=(0,f.jsx)(`h1`,{className:`text-lg font-semibold`,children:S}),t[19]=S,t[20]=C);let w;t[21]===r?w=t[22]:(w=r(`Live view of the Cloudflare Cron Worker + queue worker. Refreshes every 4 seconds.`),t[21]=r,t[22]=w);let T;t[23]===w?T=t[24]:(T=(0,f.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:w}),t[23]=w,t[24]=T);let E;t[25]!==C||t[26]!==T?(E=(0,f.jsxs)(`div`,{children:[C,T]}),t[25]=C,t[26]=T,t[27]=E):E=t[27];let D;t[28]!==n||t[29]!==r?(D=(0,f.jsx)(l,{health:n,t:r}),t[28]=n,t[29]=r,t[30]=D):D=t[30];let O;t[31]!==E||t[32]!==D?(O=(0,f.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 bg-card p-4`,children:[E,D]}),t[31]=E,t[32]=D,t[33]=O):O=t[33];let k;return t[34]!==O||t[35]!==y||t[36]!==x?(k=(0,f.jsxs)(s,{breadcrumbs:y,children:[x,O]}),t[34]=O,t[35]=y,t[36]=x,t[37]=k):k=t[37],k}function m(){let e=globalThis.setInterval(h,4e3);return()=>globalThis.clearInterval(e)}function h(){r.reload({only:[`health`],preserveScroll:!0})}export{p as default};