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 _,b as v,k as x,l as $,d as t,v as o,j as F}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"}},z={__name:"FamilleClient",props:["ndoc","embedded"],setup(a){const m={list:()=>`${e.lienApi}/famille_client/${e.db}`,getOne:l=>`${e.lienApi}/unfamille_client/${e.db}/${l}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerFamille_client/${e.db}`,save:l=>`${e.lienApi}/enregistrerFamille_client/${e.db}/${l}`,remove:l=>`${e.lienApi}/supprimerFamille_client/${e.db}/${l}`},n={excelFileName:"Famille client",excelSheetName:"Famille client",documentNumberFields:["ndoc"],excludedColumns:["ndoc","IDfamille_client"],columnWidths:{libelle:300}};return(l,d)=>{const s=u,r=_("maxlen-db");return v(),x(b,{"page-id":208,"tab-id":"FamilleClient","id-field":"IDfamille_client",resource:m,grid:n,embedded:a.embedded,ndoc:a.ndoc,variant:"drawer","drawer-width":"460px",title:"Famille client","entity-label":"une famille client","empty-icon":"pi pi-tags","delete-message":"Voulez-vous vraiment supprimer cette famille client ?"},{form:$(({entete:i,modeModification:c})=>[t("div",g,[o(f,{value:i.IDfamille_client},null,8,["value"]),t("div",h,[d[0]||(d[0]=t("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),F(o(s,{size:"small",id:"inputFocus",modelValue:i.libelle,"onUpdate:modelValue":p=>i.libelle=p,disabled:!c,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[r,"famille_client.libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{z as default};
