import{g as p}from"./primevue-CfIk0_DY.js";import{s as e}from"./index-BxIwIJfy.js";import{M as b}from"./MasterDetailReferentiel-c0KTUzyB.js";import{C as V}from"./ComboDynamique-BzWI4ISP.js";import{i as f,b as v,k as _,l as h,d,v as t,j as M}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"},x={class:"field"},g={class:"field"},j={__name:"ModelesVehicule",props:["ndoc","embedded"],setup(r){const m={list:()=>`${e.lienApi}/ModelesVehicule/${e.db}`,getOne:l=>`${e.lienApi}/unModeleVehicule/${e.db}/${l}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerModeleVehicule/${e.db}`,save:l=>`${e.lienApi}/enregistrerModeleVehicule/${e.db}/${l}`,remove:l=>`${e.lienApi}/supprimerModeleVehicule/${e.db}/${l}`},u={excelFileName:"Modèles de véhicules",excelSheetName:"Modèles de véhicules",documentNumberFields:["ndoc"],excludedColumns:["ndoc"],columnWidths:{Marque:200,Modèle:250}};return(l,o)=>{const c=p,n=f("maxlen-db");return v(),_(b,{"page-id":2607,"tab-id":"ModelesVehicule","id-field":"ID_Modele",resource:m,grid:u,embedded:r.embedded,ndoc:r.ndoc,variant:"drawer","drawer-width":"560px",title:"Modèle de véhicule","entity-label":"un modèle","empty-icon":"pi pi-car","delete-message":"Voulez-vous vraiment supprimer ce modèle ?"},{form:h(({entete:i,modeModification:a})=>[d("div",$,[d("div",x,[o[0]||(o[0]=d("label",{for:"ID_marque",class:"block mb-1"},"Marque",-1)),t(V,{id:"ID_marque",modelValue:i.ID_marque,"onUpdate:modelValue":s=>i.ID_marque=s,table:"marque",ajouter:!0,placeholder:"Sélectionner une marque",size:"small",class:"w-full",disabled:!a},null,8,["modelValue","onUpdate:modelValue","disabled"])]),d("div",g,[o[1]||(o[1]=d("label",{for:"inputFocus",class:"block mb-1"},"Modèle",-1)),M(t(c,{size:"small",id:"inputFocus",modelValue:i.Libelle,"onUpdate:modelValue":s=>i.Libelle=s,disabled:!a,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[n,"parcmodele.Libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{j as default};
