import{W as a}from"./WidgetKpiCard-BYu5V9MM.js";import{b as l,k as m,y as d}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 A={__name:"WidgetAvoirNonConsomme",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 r=e,n=d(()=>Array.isArray(r.data)&&r.data[0]?.montant||0);return(t,o)=>(l(),m(a,{title:"Avoirs non consommés",icon:"pi pi-undo",color:"warning",value:n.value,loading:e.loading,error:e.error,editing:e.editing,onRefresh:o[0]||(o[0]=i=>t.$emit("refresh")),onRemove:o[1]||(o[1]=i=>t.$emit("remove"))},null,8,["value","loading","error","editing"]))}};export{A as default};
