import{_ as c}from"./Layout-CoWQewh6.js";import{c as o,w as r,a as s,t as a,o as e,b as n,F as v,r as m,n as u}from"./app-C3b5PNmt.js";const b={class:"cards section"},_={class:"card ok"},p={class:"num"},y={class:"card"},f={class:"num"},h={class:"card info"},k={class:"num"},q={class:"card"},B={class:"num"},g={class:"card info"},w={class:"num"},x={class:"card"},A={class:"num"},j={class:"section panel"},D={style:{padding:"16px"}},E={class:"bar-label"},O={class:"bar-track"},S={class:"bar-val"},U={__name:"Administrator",props:{today:String,cards:Object,equipmentByType:Object},setup(i){return(T,t)=>(e(),o(c,null,{default:r(()=>[t[7]||(t[7]=s("h2",{class:"page-title"},"Administrator Dashboard",-1)),t[8]||(t[8]=s("p",{class:"page-sub"},"Reference / master data overview.",-1)),s("div",b,[s("div",_,[s("div",p,a(i.cards.activeUsers),1),t[0]||(t[0]=s("div",{class:"lbl"},"Active users",-1))]),s("div",y,[s("div",f,a(i.cards.inactiveUsers),1),t[1]||(t[1]=s("div",{class:"lbl"},"Inactive users",-1))]),s("div",h,[s("div",k,a(i.cards.equipment),1),t[2]||(t[2]=s("div",{class:"lbl"},"Active equipment",-1))]),s("div",q,[s("div",B,a(i.cards.inactiveEquipment),1),t[3]||(t[3]=s("div",{class:"lbl"},"Deactivated equipment",-1))]),s("div",g,[s("div",w,a(i.cards.checklists),1),t[4]||(t[4]=s("div",{class:"lbl"},"Active checklists",-1))]),s("div",x,[s("div",A,a(i.cards.areas),1),t[5]||(t[5]=s("div",{class:"lbl"},"Inspection areas",-1))])]),s("div",j,[t[6]||(t[6]=s("div",{class:"panel-head"},[s("h3",null,"Equipment by type")],-1)),s("div",D,[(e(!0),n(v,null,m(i.equipmentByType,(d,l)=>(e(),n("div",{key:l,class:"bar-row"},[s("div",E,a(l),1),s("div",O,[s("div",{class:"bar-fill",style:u({width:d/Math.max(1,...Object.values(i.equipmentByType))*100+"%"})},null,4)]),s("div",S,a(d),1)]))),128))])])]),_:1}))}};export{U as default};
