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 v}from"./NumeroChip-QCXXOqUM.js";import{i as f,b as x,k as V,l as $,d as t,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"}},z={__name:"Ville",props:["ndoc","embedded"],setup(d){const r={list:()=>`${e.lienApi}/ville/${e.db}`,getOne:l=>`${e.lienApi}/unville/${e.db}/${l}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerVille/${e.db}`,save:l=>`${e.lienApi}/enregistrerVille/${e.db}/${l}`,remove:l=>`${e.lienApi}/supprimerVille/${e.db}/${l}`},a={excelFileName:"Villes",excelSheetName:"Villes",documentNumberFields:["ndoc"],excludedColumns:["ndoc","IDville"],columnWidths:{libelle:300}};return(l,o)=>{const m=u,n=f("maxlen-db");return x(),V(b,{"page-id":212,"tab-id":"ville","id-field":"IDville",resource:r,grid:a,embedded:d.embedded,ndoc:d.ndoc,variant:"drawer","drawer-width":"460px",title:"Ville","entity-label":"une ville","empty-icon":"pi pi-map-marker","delete-message":"Voulez-vous vraiment supprimer cette ville ?"},{form:$(({entete:i,modeModification:p})=>[t("div",g,[s(v,{value:i.IDville},null,8,["value"]),t("div",h,[o[0]||(o[0]=t("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),_(s(m,{size:"small",id:"inputFocus",modelValue:i.libelle,"onUpdate:modelValue":c=>i.libelle=c,disabled:!p,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[n,"ville.libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{z as default};
