import{g as f}from"./primevue-CfIk0_DY.js";import{s as e}from"./index-BxIwIJfy.js";import{M as u}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as b}from"./NumeroChip-QCXXOqUM.js";import{i as _,b as v,k as x,l as $,d as t,v as d,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 F={class:"flex items-end",style:{gap:"8px","max-width":"600px"}},L={class:"field",style:{flex:"1","min-width":"0"}},T={__name:"LibelleTarif",props:["ndoc","embedded"],setup(a){const o={list:()=>`${e.lienApi}/famille_tarif/${e.db}`,getOne:i=>`${e.lienApi}/unfamille_tarif/${e.db}/${i}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerFamille_tarif/${e.db}`,save:i=>`${e.lienApi}/enregistrerFamille_tarif/${e.db}/${i}`,remove:i=>`${e.lienApi}/supprimerFamille_tarif/${e.db}/${i}`},s={excelFileName:"Libelle tarif",excelSheetName:"Libelle tarif",documentNumberFields:["ndoc"],excludedColumns:["ndoc","IDFamille_tarif"],columnWidths:{Libelle:300}};return(i,r)=>{const m=f,n=_("maxlen-db");return v(),x(u,{"page-id":219,"tab-id":"LibelleTarif","id-field":"IDFamille_tarif",resource:o,grid:s,embedded:a.embedded,ndoc:a.ndoc,variant:"drawer","drawer-width":"460px",title:"Libellé tarif","entity-label":"un libellé tarif","empty-icon":"pi pi-tag","delete-message":"Voulez-vous vraiment supprimer ce libellé tarif ?"},{form:$(({entete:l,modeModification:c})=>[t("div",F,[d(b,{value:l.IDFamille_tarif},null,8,["value"]),t("div",L,[r[0]||(r[0]=t("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),g(d(m,{size:"small",id:"inputFocus",modelValue:l.Libelle,"onUpdate:modelValue":p=>l.Libelle=p,disabled:!c,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[n,"famille_tarif.Libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{T as default};
