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 f}from"./NumeroChip-QCXXOqUM.js";import{i as q,b as v,k as x,l as $,d as s,v as o,j as P}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:"flex items-end",style:{gap:"8px","max-width":"600px"}},E={class:"field",style:{flex:"1","min-width":"0"}},F={__name:"PisteEtiquette",props:["ndoc","embedded"],setup(l){const r={list:()=>`${e.lienApi}/PisteEtiquette/${e.db}`,getOne:t=>`${e.lienApi}/unPisteEtiquette/${e.db}/${t}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerPisteEtiquette/${e.db}`,save:t=>`${e.lienApi}/enregistrerPisteEtiquette/${e.db}/${t}`,remove:t=>`${e.lienApi}/supprimerPisteEtiquette/${e.db}/${t}`},a={excelFileName:"Piste etiquette",excelSheetName:"Piste etiquette",documentNumberFields:["ndoc"],excludedColumns:["ndoc","IDPisteEtiquette"],columnWidths:{Libelle:250}};return(t,d)=>{const u=c,m=q("maxlen-db");return v(),x(b,{"page-id":302,"tab-id":"PisteEtiquette","id-field":"IDPisteEtiquette",resource:r,grid:a,embedded:l.embedded,ndoc:l.ndoc,variant:"drawer","drawer-width":"460px",title:"Étiquette de piste","entity-label":"une étiquette","empty-icon":"pi pi-tag","delete-message":"Voulez-vous vraiment supprimer cette étiquette ?"},{form:$(({entete:i,modeModification:n})=>[s("div",_,[o(f,{value:i.IDPisteEtiquette},null,8,["value"]),s("div",E,[d[0]||(d[0]=s("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),P(o(u,{size:"small",id:"inputFocus",modelValue:i.Libelle,"onUpdate:modelValue":p=>i.Libelle=p,disabled:!n,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[m,"pisteetiquette.Libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{F as default};
