import{g as v,I as h}from"./primevue-CfIk0_DY.js";import{s as e}from"./index-BxIwIJfy.js";import{M as f}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as V}from"./NumeroChip-QCXXOqUM.js";import{i as _,b as g,k as x,l as G,d as l,v as r,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 $={class:"md-form-grid"},N={class:"flex items-end md-col-full",style:{gap:"8px"}},w={class:"field",style:{flex:"1","min-width":"0"}},D={class:"field md-col-full"},T={__name:"GroupesVehicule",props:["ndoc","embedded"],setup(t){const p={list:()=>`${e.lienApi}/GroupesVehicule/${e.db}`,getOne:o=>`${e.lienApi}/unGroupeVehicule/${e.db}/${o}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerGroupeVehicule/${e.db}`,save:o=>`${e.lienApi}/enregistrerGroupeVehicule/${e.db}/${o}`,remove:o=>`${e.lienApi}/supprimerGroupeVehicule/${e.db}/${o}`},m={excelFileName:"Groupes véhicules",excelSheetName:"Groupes véhicules",documentNumberFields:["ndoc"],excludedColumns:["ndoc"],columnWidths:{Groupe:300,Note:400}};return(o,s)=>{const n=v,b=h,u=_("maxlen-db");return g(),x(f,{"page-id":2602,"tab-id":"GroupesVehicule","id-field":"ID_Groupe",resource:p,grid:m,embedded:t.embedded,ndoc:t.ndoc,variant:"drawer","drawer-width":"640px",title:"Groupe de véhicules","entity-label":"un groupe de véhicules","empty-icon":"pi pi-car","delete-message":"Voulez-vous vraiment supprimer ce groupe de véhicules ?"},{form:G(({entete:i,modeModification:a})=>[l("div",$,[l("div",N,[r(V,{value:i.ID_Groupe},null,8,["value"]),l("div",w,[s[0]||(s[0]=l("label",{for:"inputFocus",class:"block mb-1"},"Groupe",-1)),c(r(n,{size:"small",id:"inputFocus",modelValue:i.Description,"onUpdate:modelValue":d=>i.Description=d,disabled:!a,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[u,"groupevehicule.Description"]])])]),l("div",D,[s[1]||(s[1]=l("label",{class:"block mb-1"},"Note",-1)),c(r(b,{modelValue:i.Note,"onUpdate:modelValue":d=>i.Note=d,disabled:!a,rows:"4",class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[u,"groupevehicule.Note"]])])])]),_:1},8,["embedded","ndoc"])}}};export{T as default};
