import{u as b,C as S,a as x,L as y,T as k,b as v,P as C,c as E,p as P,d as R,e as h,f as w,A as B,g as L,i as D}from"./record.js";import{br as M,r as i,s as N,bC as c,by as p,bw as u,bv as _,bt as o,F as T,bD as A,bo as n,bu as F,bE as V}from"./_plugin-vue_export-helper.js";import{b as I,_ as O}from"./Grid.js";import"./main.js";import"./get-slot.js";const j={__name:"RecordPie",setup(q){const d=b(),{getMoodRatios:m}=d;S.register(x,y,k,v,C,E,P,R,h,w,B,L);const r=i([]);N(async()=>{r.value=await m()});const g=i({plugins:{datalabels:{color:"black",formatter:function(l,e){let t=e.dataset.data.reduce((s,a)=>s+a,0);return Math.round(l/t*100)+"%"}},legend:{display:!1}}});return(l,e)=>{const t=O,s=I;return o(),c("div",null,[e[0]||(e[0]=p("h1",{class:"page-title"},"工作休息比例报表",-1)),u(s,{"x-gap":12,"y-gap":8,collapsed:!1,cols:"1 s:1 m:2 l:3 xl:4 2xl:5",responsive:"screen"},{default:_(()=>[(o(!0),c(T,null,A(n(r),(a,f)=>(o(),F(t,{key:f,class:"report-card"},{default:_(()=>[p("h2",null,V(a.groupName),1),u(n(D),{data:a.workRestData,options:n(g)},null,8,["data","options"])]),_:2},1024))),128))]),_:1})])}}},Q=M(j,[["__scopeId","data-v-80502f5e"]]);export{Q as default};
