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