import{b as f,s as t}from"./index-BxIwIJfy.js";import{w as o}from"./vue-core-Di3IuVqe.js";async function c(a,e){if(!a||e===null||e===void 0||e==="")return!1;try{const i=await f.post(`${t.lienApi}/listeFichiers`,{},{headers:{"x-path":`${t.cloudId}/${t.id_societe}/piecejointes/${a}/${e}`}});return Array.isArray(i.data)&&i.data.length>0}catch{return!1}}function h({doc:a,ndoc:e,afficher:i,splitterCounter:s,exclusifs:n}){o(e,async r=>{r==null||r===""||await c(a,r)&&(Array.isArray(n)&&n.forEach(u=>u.value=!1),i.value=!0,s&&s.value++)},{immediate:!0})}export{c as a,h as u};
