1import{_ as m,r as t,o as h,I as i,J as o,K as r,L as n,a1 as p,P as u,N as f,O as C,a0 as v,V as g,Y as y,Z as b}from"./index-DmMWFTlW.js";import{Q as x}from"./QSpinnerGears-Ck9Wow9B.js";import{B}from"./index-89CP6KlL.js";import{C as k,p as S,a as A,b as w,B as P,c as I,L as M}from"./chart-BcxQAy-J.js";const Q=e=>(y("data-v-e2cb4a4f"),e=e(),b(),e),T=Q(()=>g("div",{class:"text-h6"},"Class-wise Presence Today (Bar Chart)",-1)),F={key:0,class:"text-center q-pa-md"},L={key:1,class:"text-negative text-center q-pa-md"},N={__name:"AdminTodaysPresence",setup(e){k.register(S,A,w,P,I,M);const c=t(!0),l=t(null),s=t({labels:[],datasets:[{label:"Present",backgroundColor:"#2196F3",data:[]},{label:"Absent",backgroundColor:"#FFC107",data:[]}]}),_=t({responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0}},plugins:{legend:{position:"top"}}});return h(async()=>{try{await new Promise(d=>setTimeout(d,1200));const a=["Class 6A","Class 7B","Class 8A","Class 9C","Class 10B"];s.value.labels=a,s.value.datasets[0].data=a.map(()=>Math.floor(Math.random()*25)+5),s.value.datasets[1].data=a.map(()=>Math.floor(Math.random()*5))}catch(a){l.value="Could not load class presence data.",console.error(a)}finally{c.value=!1}}),(a,d)=>(o(),i(v,{class:"dashboard-widget"},{default:r(()=>[n(p,null,{default:r(()=>[T]),_:1}),n(p,null,{default:r(()=>[c.value?(o(),u("div",F,[n(x,{color:"primary",size:"40px"})])):l.value?(o(),u("div",L,f(l.value),1)):(o(),i(C(B),{key:2,data:s.value,options:_.value,style:{"max-height":"300px"}},null,8,["data","options"]))]),_:1})]),_:1}))}},O=m(N,[["__scopeId","data-v-e2cb4a4f"]]);export{O as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.