import{u as b}from"./zbMs9D6X.js";import"./UpFGpe05.js";const D=()=>{const{get:t,post:a,put:d}=b();function c(n={},e){const r=Object.entries(n).reduce((i,[y,o])=>(o!=null&&o!==""&&(i[y]=o),i),{});if(Object.keys(r).length===0)return t(`/faixasDominio/${e}`);const s=new URLSearchParams(r).toString();return t(`/faixasDominio/${e}?${s}`)}function u(n,e){return t(`/faixasDominio/${n}/${e}`)}function f(n){return t(`/demandas/${n}/informacoesGerais`)}function m(n,e){return a(`/demandas/${n}`,e)}function p(n,e,r){return d(`/demandas/${n}/${e}/dadosGerenciais`,r)}async function $(n,e,r){return await a(`/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:c,findByIdAndSiglaEmpresa:u,create:m,editDemand:p,publicarComentario:$,downloadAnexo:l,findInformacoesGerais:f}};export{D as default};
