import{g as b,H as f}from"./primevue-CfIk0_DY.js";import{s as e}from"./index-BxIwIJfy.js";import{M as _}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as v}from"./NumeroChip-QCXXOqUM.js";import{i as x,b as $,k as N,l as V,d as i,v as a,j as g}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 h={class:"md-form-grid"},M={class:"flex items-end md-col-full",style:{gap:"8px"}},w={class:"field",style:{flex:"1","min-width":"0"}},A={class:"field flex items-center pt-6"},E={__name:"ModePaiement",props:["ndoc","embedded"],setup(l){const n={list:()=>`${e.lienApi}/modePaiements/${e.db}`,getOne:d=>`${e.lienApi}/unmodePaiement/${e.db}/${d}`,add:()=>`${e.lienApi}/AjouterEtRenvoyermodePaiement/${e.db}`,save:d=>`${e.lienApi}/enregistrerModePaiement/${e.db}/${d}`,remove:d=>`${e.lienApi}/supprimerModePaiement/${e.db}/${d}`},s={excelFileName:"Mode de paiement",excelSheetName:"Mode de paiement",documentNumberFields:["id_modepaiement"],excludedColumns:["ndoc"],columnWidths:{id_modepaiement:100,Nom:200,arrondie:100}};return(d,t)=>{const p=b,c=f,u=x("maxlen-db");return $(),N(_,{"page-id":1417,"tab-id":"ModePaiement","id-field":"id_modepaiement",resource:n,grid:s,embedded:l.embedded,ndoc:l.ndoc,variant:"drawer","drawer-width":"640px",title:"Mode de paiement","entity-label":"un mode de paiement","empty-icon":"pi pi-credit-card","delete-message":"Voulez-vous vraiment supprimer ce mode de paiement ?"},{form:V(({entete:o,modeModification:r})=>[i("div",h,[i("div",M,[a(v,{value:o.id_modepaiement},null,8,["value"]),i("div",w,[t[0]||(t[0]=i("label",{for:"inputFocus",class:"block mb-1"},"Nom",-1)),g(a(p,{size:"small",id:"inputFocus",modelValue:o.Nom,"onUpdate:modelValue":m=>o.Nom=m,disabled:!r,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[u,"modepaiement.Nom"]])])]),i("div",A,[a(c,{id:"arrondie",modelValue:o.arrondie,"onUpdate:modelValue":m=>o.arrondie=m,disabled:!r,binary:""},null,8,["modelValue","onUpdate:modelValue","disabled"]),t[1]||(t[1]=i("label",{for:"arrondie",class:"ml-2"},"Arrondie",-1))])])]),_:1},8,["embedded","ndoc"])}}};export{E as default};
