import{a as n,s as o}from"./index-BSaHX2oa.js";const l=async(s,a,r,t)=>{try{const e=await n.post(`${o.lienApi}/documentBlocage/${o.db}`,{type:s,document:a,numDoc:r,idUtilisateur:t});return{ResultCode:e.data.ResultCode,monMessage:e.data.monMessage,IDBlocage_document:e.data.IDBlocage_document||null}}catch(e){return{ResultCode:-1,monMessage:`Erreur: ${e.message}`,IDBlocage_document:null}}};export{l as g};
