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 f}from"./NumeroChip-QCXXOqUM.js";import{i as v,b as x,k as $,l as _,d as o,v as m,j as M}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 g={class:"flex items-end",style:{gap:"8px","max-width":"600px"}},h={class:"field",style:{flex:"1","min-width":"0"}},j={__name:"ModeDepaiement",props:["ndoc","embedded"],setup(l){const a={list:()=>`${e.lienApi}/modep/${e.db}`,getOne:d=>`${e.lienApi}/unmodep/${e.db}/${d}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerModep/${e.db}`,save:d=>`${e.lienApi}/enregistrerModep/${e.db}/${d}`,remove:d=>`${e.lienApi}/supprimerModep/${e.db}/${d}`},s={excelFileName:"Mode de paiement",excelSheetName:"Mode de paiement",documentNumberFields:["ndoc"],excludedColumns:["ndoc","IDmodep"],columnWidths:{libelle:300}};return(d,t)=>{const r=u,n=v("maxlen-db");return x(),$(b,{"page-id":224,"tab-id":"ModeDepaiement","id-field":"IDmodep",resource:a,grid:s,embedded:l.embedded,ndoc:l.ndoc,variant:"drawer","drawer-width":"460px",title:"Modes de paiement","entity-label":"un mode de paiement","empty-icon":"pi pi-wallet","delete-message":"Voulez-vous vraiment supprimer ce mode de paiement ?"},{form:_(({entete:i,modeModification:p})=>[o("div",g,[m(f,{value:i.IDmodep},null,8,["value"]),o("div",h,[t[0]||(t[0]=o("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),M(m(r,{size:"small",id:"inputFocus",modelValue:i.libelle,"onUpdate:modelValue":c=>i.libelle=c,disabled:!p,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[n,"modep.libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{j as default};
