import{u as b,C as S,a as x,L as k,T as y,b as P,P as R,c as h,p as v,d as B,e as C,f as E,A as L,g as M,i as T}from"./record.js";import{bP as w,r as c,u as N,bV as i,bU as p,bT as u,bS as _,bQ as o,F as V,b_ as A,bM as n,bR as D,bX as F}from"./_plugin-vue_export-helper.js";import{b5 as I,b6 as O}from"./main.js";const Q={__name:"RecordPie",setup(U){const d=b(),{getMoodRatios:m}=d;S.register(x,k,y,P,R,h,v,B,C,E,L,M);const r=c([]);N(async()=>{r.value=await m()});const g=c({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(),i("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),i(V,null,A(n(r),(a,f)=>(o(),D(t,{key:f,class:"report-card"},{default:_(()=>[p("h2",null,F(a.groupName),1),u(n(T),{data:a.workRestData,options:n(g)},null,8,["data","options"])]),_:2},1024))),128))]),_:1})])}}},z=w(Q,[["__scopeId","data-v-80502f5e"]]);export{z as default};
