import{g as p}from"./primevue-CfIk0_DY.js";import{s as e}from"./index-BxIwIJfy.js";import{M as f}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as b}from"./NumeroChip-QCXXOqUM.js";import{i as _,b as v,k as x,l as F,d as s,v as a,j as $}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:"FamilleFournisseur",props:["ndoc","embedded"],setup(r){const t={list:()=>`${e.lienApi}/famille_fournisseur/${e.db}`,getOne:i=>`${e.lienApi}/unfamille_fournisseur/${e.db}/${i}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerFamille_fournisseur/${e.db}`,save:i=>`${e.lienApi}/enregistrerFamille_fournisseur/${e.db}/${i}`,remove:i=>`${e.lienApi}/supprimerFamille_fournisseur/${e.db}/${i}`},d={excelFileName:"Famille fournisseur",excelSheetName:"Famille fournisseur",documentNumberFields:["ndoc"],excludedColumns:["ndoc","IDfamille_fournisseur"],columnWidths:{Libelle:300}};return(i,o)=>{const u=p,m=_("maxlen-db");return v(),x(f,{"page-id":209,"tab-id":"FamilleFournisseur","id-field":"IDfamille_fournisseur",resource:t,grid:d,embedded:r.embedded,ndoc:r.ndoc,variant:"drawer","drawer-width":"460px",title:"Famille fournisseur","entity-label":"une famille fournisseur","empty-icon":"pi pi-tags","delete-message":"Voulez-vous vraiment supprimer cette famille fournisseur ?"},{form:F(({entete:l,modeModification:n})=>[s("div",g,[a(b,{value:l.IDfamille_fournisseur},null,8,["value"]),s("div",h,[o[0]||(o[0]=s("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),$(a(u,{size:"small",id:"inputFocus",modelValue:l.Libelle,"onUpdate:modelValue":c=>l.Libelle=c,disabled:!n,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[m,"famille_fournisseur.Libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{j as default};
