import{b as s,s as e}from"./index-BxIwIJfy.js";function i(){return{fetchTaux:async(a,t)=>{if(!a||!t)return null;const r=t instanceof Date?t:new Date(t);if(isNaN(r.getTime()))return null;const u=r.toISOString().substring(0,10);try{const n=await s.post(`${e.lienApi}/taux-change/${e.db}`,{devise_id:a,date:u});return!n.data||n.data.cours==null?null:n.data}catch{return null}}}}export{i as u};
