import{j as b,s as e}from"./index-BxIwIJfy.js";import{g as f}from"./primevue-CfIk0_DY.js";import{M as _}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as g}from"./NumeroChip-QCXXOqUM.js";import{I as v}from"./InfoBulle-R_p1ZfIR.js";import{i as x,b as V,k as $,l as R,d as l,v as t,j as D}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 w={class:"md-form-grid"},G={class:"flex items-end md-col-full",style:{gap:"8px"}},h={class:"field",style:{flex:"1","min-width":"0"}},k={class:"field"},N={class:"flex items-center mb-1",style:{gap:"6px"}},y={class:"field"},M={__name:"GroupeDeRemise",props:["ndoc","embedded"],setup(r){const u={list:()=>`${e.lienApi}/Groupe_Remise/${e.db}`,getOne:i=>`${e.lienApi}/unGroupe_Remise/${e.db}/${i}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerGroupe_Remise/${e.db}`,save:i=>`${e.lienApi}/enregistrerGroupe_Remise/${e.db}/${i}`,remove:i=>`${e.lienApi}/supprimerGroupe_Remise/${e.db}/${i}`},n={excelFileName:"Groupe de remise",excelSheetName:"Groupe de remise",documentNumberFields:["ndoc"],excludedColumns:["ndoc","ngroupe"],columnWidths:{libelle:250,datedebut:150,datefin:150}};return(i,s)=>{const p=f,m=b,c=x("maxlen-db");return V(),$(_,{"page-id":217,"tab-id":"groupeDeRemise","id-field":"ngroupe",resource:u,grid:n,embedded:r.embedded,ndoc:r.ndoc,variant:"drawer","drawer-width":"640px",title:"Groupe de remise","entity-label":"un groupe de remise","empty-icon":"pi pi-percentage","delete-message":"Voulez-vous vraiment supprimer ce groupe de remise ?"},{form:R(({entete:d,modeModification:a})=>[l("div",w,[l("div",G,[t(g,{value:d.ngroupe},null,8,["value"]),l("div",h,[s[0]||(s[0]=l("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),D(t(p,{size:"small",id:"inputFocus",modelValue:d.libelle,"onUpdate:modelValue":o=>d.libelle=o,disabled:!a,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[c,"groupe_remise.libelle"]])])]),l("div",k,[l("div",N,[s[1]||(s[1]=l("label",{for:"datedebut"},"Date Debut",-1)),t(v,{text:"Début de la période de <b>validité</b> du groupe de remise. Hors de cette période, la cascade de remises (R1, R2…) ne s'applique pas automatiquement."})]),t(m,{size:"small",modelValue:d.datedebut,"onUpdate:modelValue":o=>d.datedebut=o,disabled:!a,"input-class":"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),l("div",y,[s[2]||(s[2]=l("label",{for:"datefin",class:"block mb-1"},"Date Fin",-1)),t(m,{size:"small",modelValue:d.datefin,"onUpdate:modelValue":o=>d.datefin=o,disabled:!a,"input-class":"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"])])])]),_:1},8,["embedded","ndoc"])}}};export{M as default};
