import{g as u}from"./primevue-CfIk0_DY.js";import{s as e}from"./index-BxIwIJfy.js";import{M as b}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as L}from"./NumeroChip-QCXXOqUM.js";import{i as f,b as v,k as _,l as x,d as a,v as s,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"}},h={class:"field",style:{flex:"1","min-width":"0"}},j={__name:"Localisation",props:["ndoc","embedded"],setup(l){const d={list:()=>`${e.lienApi}/Localisation/${e.db}`,getOne:i=>`${e.lienApi}/unLocalisation/${e.db}/${i}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerLocalisation/${e.db}`,save:i=>`${e.lienApi}/enregistrerLocalisation/${e.db}/${i}`,remove:i=>`${e.lienApi}/supprimerLocalisation/${e.db}/${i}`},n={excelFileName:"Localisations",excelSheetName:"Localisations",columnWidths:{Libelle:400}};return(i,t)=>{const r=u,c=f("maxlen-db");return v(),_(b,{"page-id":2016,"tab-id":"Localisation","id-field":"IDLocalisation",resource:d,grid:n,embedded:l.embedded,ndoc:l.ndoc,variant:"drawer","drawer-width":"460px",title:"Localisation","entity-label":"une localisation","empty-icon":"pi pi-map-marker","delete-message":"Voulez-vous vraiment supprimer cette localisation ?"},{form:x(({entete:o,modeModification:m})=>[a("div",g,[s(L,{value:o.IDLocalisation},null,8,["value"]),a("div",h,[t[0]||(t[0]=a("label",{for:"inputFocus",class:"block mb-1"},"Localisation",-1)),$(s(r,{size:"small",id:"inputFocus",modelValue:o.Libelle_loca,"onUpdate:modelValue":p=>o.Libelle_loca=p,disabled:!m,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[c,"localisation.Libelle_loca"]])])])]),_:1},8,["embedded","ndoc"])}}};export{j as default};
