import{u as m}from"./C0JZ2vpu.js";import"./BpDVC-Oo.js";const $=()=>{const{get:r,post:o}=m();function d(e={}){const n=Object.entries(e).reduce((a,[l,s])=>(s!=null&&s!==""&&(a[l]=s),a),{});if(Object.keys(n).length===0)return r("/demandas/public");const t=new URLSearchParams(n).toString();return r(`/demandas/public?${t}`)}function i(e,n){return r(`/demandas/public/${e}/${n}`)}function c(e,n){return o(`/demandas/${e}`,n)}async function u(e,n,t){return await o(`/demandas/${e}/${n}/publicar`,t,{headers:{"Content-Type":"multipart/form-data"}})}async function p(e,n){return await r(`/downloads/${e}/anexos/DEM/${n}`,{responseType:"blob"})}return{findAll:d,findByIdAndIdEmpresa:i,create:c,publicarComentario:u,downloadAnexo:p}};export{$ as default};
