import{g as u}from"./primevue-CfIk0_DY.js";import{s as e}from"./index-BxIwIJfy.js";import{M as b}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as g}from"./NumeroChip-QCXXOqUM.js";import{i as h,b as f,k as v,l as x,d,v as r,j as $}from"./vue-core-Di3IuVqe.js";import"./cjs-helpers-psZwOBky.js";import"./vue-cal-DKMVGERa.js";import"./moment-BeHQNF8T.js";import"./usePagerDetail-BeqYPv-1.js";import"./DataGrid-CoMfrBJA.js";import"./useAgGridConfig-Dp3DkgaV.js";const _={class:"flex items-end",style:{gap:"8px","max-width":"600px"}},C={class:"field",style:{flex:"1","min-width":"0"}},z={__name:"categorieDesDepenses",props:["ndoc","embedded"],setup(t){const o={list:()=>`${e.lienApi}/charge/${e.db}`,getOne:i=>`${e.lienApi}/uncharge/${e.db}/${i}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerCharge/${e.db}`,save:i=>`${e.lienApi}/enregistrerCharge/${e.db}/${i}`,remove:i=>`${e.lienApi}/supprimerCharge/${e.db}/${i}`},a={excelFileName:"Categorie des depenses",excelSheetName:"Categorie des depenses",documentNumberFields:["ndoc"],excludedColumns:["ndoc","IDcharge"],columnWidths:{libelle:300}};return(i,l)=>{const n=u,c=h("maxlen-db");return f(),v(b,{"page-id":222,"tab-id":"categorieDesDepenses","id-field":"IDcharge",resource:o,grid:a,embedded:t.embedded,ndoc:t.ndoc,variant:"drawer","drawer-width":"460px",title:"Catégorie de dépenses","entity-label":"une catégorie de dépenses","empty-icon":"pi pi-chart-line","delete-message":"Voulez-vous vraiment supprimer cette catégorie de dépenses ?"},{form:x(({entete:s,modeModification:m})=>[d("div",_,[r(g,{value:s.IDcharge},null,8,["value"]),d("div",C,[l[0]||(l[0]=d("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),$(r(n,{size:"small",id:"inputFocus",modelValue:s.libelle,"onUpdate:modelValue":p=>s.libelle=p,disabled:!m,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[c,"charge.libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{z as default};
