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 g}from"./NumeroChip-QCXXOqUM.js";import{i as f,b as v,k as x,l as $,d as l,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 R={class:"flex items-end",style:{gap:"8px","max-width":"600px"}},h={class:"field",style:{flex:"1","min-width":"0"}},j={__name:"Region",props:["ndoc","embedded"],setup(t){const d={list:()=>`${e.lienApi}/regions/${e.db}`,getOne:i=>`${e.lienApi}/unregion/${e.db}/${i}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerregion/${e.db}`,save:i=>`${e.lienApi}/enregistrerRegion/${e.db}/${i}`,remove:i=>`${e.lienApi}/supprimerRegion/${e.db}/${i}`},n={excelFileName:"Régions",excelSheetName:"Régions",columnWidths:{libelle:300}};return(i,r)=>{const a=u,m=f("maxlen-db");return v(),x(b,{"page-id":1801,"tab-id":"Region","id-field":"IDRegion",resource:d,grid:n,embedded:t.embedded,ndoc:t.ndoc,variant:"drawer","drawer-width":"460px",title:"Régions","entity-label":"une région","empty-icon":"pi pi-map-marker","delete-message":"Voulez-vous vraiment supprimer cette région ?"},{form:$(({entete:o,modeModification:p})=>[l("div",R,[s(g,{value:o.IDRegion},null,8,["value"]),l("div",h,[r[0]||(r[0]=l("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),_(s(a,{size:"small",id:"inputFocus",modelValue:o.libelle,"onUpdate:modelValue":c=>o.libelle=c,disabled:!p,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[m,"region.libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{j as default};
