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{N as f}from"./NumeroChip-QCXXOqUM.js";import{i as q,b as v,k as x,l as _,d as r,v as d,j as $}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"}},M={class:"field",style:{flex:"1","min-width":"0"}},B={__name:"Marque",props:["ndoc","embedded"],setup(a){const o={list:()=>`${e.lienApi}/marque/${e.db}`,getOne:i=>`${e.lienApi}/unmarque/${e.db}/${i}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerMarque/${e.db}`,save:i=>`${e.lienApi}/enregistrerMarque/${e.db}/${i}`,remove:i=>`${e.lienApi}/supprimerMarque/${e.db}/${i}`},s={excelFileName:"Marques",excelSheetName:"Marques",documentNumberFields:["ndoc"],excludedColumns:["ndoc","ID_marque"],columnWidths:{libelle:200}};return(i,t)=>{const m=p,u=q("maxlen-db");return v(),x(b,{"page-id":207,"tab-id":"Marque","id-field":"ID_marque",resource:o,grid:s,embedded:a.embedded,ndoc:a.ndoc,variant:"drawer","drawer-width":"460px",title:"Marque","entity-label":"une marque","empty-icon":"pi pi-tag","delete-message":"Voulez-vous vraiment supprimer cette marque ?"},{form:_(({entete:l,modeModification:n})=>[r("div",g,[d(f,{value:l.ID_marque},null,8,["value"]),r("div",M,[t[0]||(t[0]=r("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),$(d(m,{size:"small",id:"inputFocus",modelValue:l.libelle,"onUpdate:modelValue":c=>l.libelle=c,disabled:!n,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[u,"marque.libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{B as default};
