import{g as p}from"./primevue-CfIk0_DY.js";import{s as i}from"./index-BxIwIJfy.js";import{M as f}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as b}from"./NumeroChip-QCXXOqUM.js";import{i as v,b as x,k as _,l as $,d as o,v as d,j as Q}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 N={class:"flex items-end",style:{gap:"8px","max-width":"600px"}},g={class:"field",style:{flex:"1","min-width":"0"}},j={__name:"Qualification",props:["ndoc","embedded"],setup(t){const n={list:()=>`${i.lienApi}/qualifications/${i.db}`,getOne:e=>`${i.lienApi}/unQualification/${i.db}/${e}`,add:()=>`${i.lienApi}/AjouterEtRenvoyerQualification/${i.db}`,save:e=>`${i.lienApi}/enregistrerQualification/${i.db}/${e}`,remove:e=>`${i.lienApi}/supprimerQualification/${i.db}/${e}`},s={excelFileName:"Qualification",excelSheetName:"Qualification",documentNumberFields:["ndoc"],excludedColumns:["ndoc"],columnWidths:{id_Qualification:120,Nom:200}};return(e,l)=>{const r=p,c=v("maxlen-db");return x(),_(f,{"page-id":1410,"tab-id":"Qualification","id-field":"id_Qualification",resource:n,grid:s,embedded:t.embedded,ndoc:t.ndoc,variant:"drawer","drawer-width":"460px",title:"Qualification","entity-label":"une qualification","empty-icon":"pi pi-id-card","delete-message":"Voulez-vous vraiment supprimer cette qualification ?"},{form:$(({entete:a,modeModification:m})=>[o("div",N,[d(b,{value:a.id_Qualification},null,8,["value"]),o("div",g,[l[0]||(l[0]=o("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),Q(d(r,{size:"small",id:"inputFocus",modelValue:a.Nom,"onUpdate:modelValue":u=>a.Nom=u,disabled:!m,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[c,"qualification.Nom"]])])])]),_:1},8,["embedded","ndoc"])}}};export{j as default};
