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