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