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