import{B as e,Bt as t,G as n,Gt as r,H as i,M as a,N as o,R as s,Tt as c,Ut as l,bt as u,ot as d,qt as f}from"./vue-3bs2-dMU.js";import{K as p,c as m}from"./stores-DmetsdTd.js";import{n as h,t as g}from"./StatSection-B3O0SUKs.js";import{t as _}from"./StringCard-Cb0ouc4z.js";import{t as v}from"./DataCard-DyiodDSw.js";n(),l();var y={"data-testid":`card-value`,class:`text-title-medium font-weight-bold`},b={"data-testid":`card-unit`,class:`text-label-large ml-1`},x=e({__name:`UnitCard`,props:{active:{type:Boolean},grow:{type:Boolean},title:{},icon:{},orientation:{},color:{},value:{},unit:{}},setup(e){let t=e;return(n,s)=>(d(),o(h,r(i(t)),{default:u(({value:t})=>[a(`span`,y,f(t),1),a(`span`,b,f(e.unit),1)]),_:1},16))}});n(),c();var S=e({__name:`PerformanceStats`,setup(e){let{t:n}=p(),r=m();return(e,i)=>(d(),o(g,{columns:`4`},{default:u(()=>[s(x,{title:t(n)(`navbar.side.performance_stats.average_time_queue`),value:t(r).serverState?.average_time_queue??0,unit:`ms`,color:``,icon:`mdi-file-clock`,class:`grid-col-span-2`},null,8,[`title`,`value`]),s(_,{title:t(n)(`navbar.side.performance_stats.queued_io_jobs`),value:t(r).serverState?.queued_io_jobs??0,color:``,icon:`mdi-harddisk`,class:`grid-col-span-2`},null,8,[`title`,`value`]),s(v,{title:t(n)(`navbar.side.performance_stats.total_buffers_size`),value:t(r).serverState?.total_buffers_size??0,color:``,icon:`mdi-dns`,class:`grid-col-span-2`},null,8,[`title`,`value`]),s(v,{title:t(n)(`navbar.side.performance_stats.total_queued_size`),value:t(r).serverState?.total_queued_size??0,color:``,icon:`mdi-tray-full`,class:`grid-col-span-2`},null,8,[`title`,`value`]),s(x,{title:t(n)(`navbar.side.performance_stats.read_cache_hits`),value:t(r).serverState?.read_cache_hits??0,unit:`%`,color:`download`,icon:`mdi-check-circle`},null,8,[`title`,`value`]),s(x,{title:t(n)(`navbar.side.performance_stats.read_cache_overload`),value:t(r).serverState?.read_cache_overload??0,unit:`%`,color:`download`,icon:`mdi-alert`},null,8,[`title`,`value`]),s(v,{title:t(n)(`navbar.side.performance_stats.total_wasted_session`),value:t(r).serverState?.total_wasted_session??0,color:`warning`,icon:`mdi-recycle-variant`},null,8,[`title`,`value`]),s(x,{title:t(n)(`navbar.side.performance_stats.write_cache_overload`),value:t(r).serverState?.write_cache_overload??0,unit:`%`,color:`warning`,icon:`mdi-alert`},null,8,[`title`,`value`])]),_:1}))}});export{S as default};