import{W as u}from"./WidgetKpiCard-BYu5V9MM.js";import{b as d,k as s,y as a}from"./vue-core-Di3IuVqe.js";import"./WidgetCard-CLnTgmXL.js";import"./primevue-CfIk0_DY.js";import"./index-BxIwIJfy.js";import"./cjs-helpers-psZwOBky.js";import"./vue-cal-DKMVGERa.js";import"./moment-BeHQNF8T.js";const B={__name:"WidgetPaieTurnoverAnnee",props:{data:{type:[Array,Object,null],default:null},loading:{type:Boolean,default:!1},error:{type:String,default:""},editing:{type:Boolean,default:!1}},emits:["refresh","remove"],setup(e){const o=e,t=a(()=>Array.isArray(o.data)&&o.data[0]?.pourcentage||0),i=a(()=>t.value>15?"danger":t.value>8?"warning":"success");return(n,r)=>(d(),s(u,{title:"Turnover annuel",icon:"pi pi-sync",color:i.value,format:"integer",unit:"%",value:t.value,loading:e.loading,error:e.error,editing:e.editing,onRefresh:r[0]||(r[0]=l=>n.$emit("refresh")),onRemove:r[1]||(r[1]=l=>n.$emit("remove"))},null,8,["color","value","loading","error","editing"]))}};export{B as default};
