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 s,v as o,j as N}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:"Representant",props:["ndoc","embedded"],setup(n){const a={list:()=>`${e.lienApi}/representant/${e.db}`,getOne:t=>`${e.lienApi}/unrepresentant/${e.db}/${t}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerRepresentant/${e.db}`,save:t=>`${e.lienApi}/enregistrerRepresentant/${e.db}/${t}`,remove:t=>`${e.lienApi}/supprimerRepresentant/${e.db}/${t}`},d={excelFileName:"Representants",excelSheetName:"Representants",documentNumberFields:["ndoc"],excludedColumns:["ndoc","ID"],columnWidths:{Nom:200}};return(t,i)=>{const l=u,m=v("maxlen-db");return x(),$(b,{"page-id":216,"tab-id":"representant","id-field":"ID",resource:a,grid:d,embedded:n.embedded,ndoc:n.ndoc,variant:"drawer","drawer-width":"460px",title:"Représentant","entity-label":"un représentant","empty-icon":"pi pi-user","delete-message":"Voulez-vous vraiment supprimer ce représentant ?"},{form:_(({entete:r,modeModification:p})=>[s("div",g,[o(f,{value:r.ID},null,8,["value"]),s("div",h,[i[0]||(i[0]=s("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),N(o(l,{size:"small",id:"inputFocus",modelValue:r.Nom,"onUpdate:modelValue":c=>r.Nom=c,disabled:!p,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[m,"representant.Nom"]])])])]),_:1},8,["embedded","ndoc"])}}};export{j as default};
