import{W as a}from"./WidgetTable-IJ9LeFAt.js";import{b as n,k as o}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 c={__name:"WidgetDelaiPaiementFrsAlerteListe",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 l=[{key:"date",label:"Échéance",format:"date",style:{width:"90px"}},{key:"ndoc",label:"N°",format:"integer",style:{width:"70px"}},{key:"fournisseur",label:"Fournisseur"},{key:"montant",label:"Reliquat",format:"currency",style:{width:"100px",textAlign:"right"},cellClass:"text-right"},{key:"jours_retard",label:"Retard (j)",format:"integer",style:{width:"80px",textAlign:"right"},cellClass:"text-right"},{key:"penalite",label:"Pénalité",format:"currency",style:{width:"100px",textAlign:"right"},cellClass:"text-right"}];return(r,t)=>(n(),o(a,{title:"Top 10 factures frs en retard",icon:"pi pi-list",columns:l,data:e.data,loading:e.loading,error:e.error,editing:e.editing,onRefresh:t[0]||(t[0]=i=>r.$emit("refresh")),onRemove:t[1]||(t[1]=i=>r.$emit("remove"))},null,8,["data","loading","error","editing"]))}};export{c as default};
