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