import{u}from"./yCyRkt3X.js";import{Y as f}from"./B9WsArp0.js";const M=()=>{const{get:t}=u();function a(r){return t(`/demandas/public/${r}/dados`)}return{getDados:a}},$=()=>{const{get:t}=u();function a(e,n={}){const o=Object.entries(n).reduce((d,[g,s])=>(s!=null&&s!==""&&(d[g]=s),d),{});if(Object.keys(o).length===0)return t(`/mapas/${e}/DEM/DEM`);const p=new URLSearchParams(o).toString();return t(`/mapas/${e}/DEM/DEM?${p}`)}function r(e={}){const n={lat:e.lat,lng:e.lng};return t(`mapas/localizacaoCoordenadas?latitude=${n.lat}&longitude=${n.lng}`)}function i(e){return t(`mapas/${e}/kmzData/DEM/DEM`)}function c(e){return t(`mapas/${e}/trechos/coordenadas`)}function l(e,n,o){return t(n!==void 0&&o!==void 0?`mapas/${e}/demandas/coordenada?latitude=${n}&longitude=${o}`:`mapas/${e}/demandas/coordenada`)}function m(e,n){return t(`mapas/coordenadasPorKm?idTrecho=${e}&km=${n}`)}return{getDemandsLocations:a,getCoordenatesInfo:r,getKmzData:i,getTrechosComCoordenadas:c,getDemandasByCoordenada:l,getCoordenadasPorKm:m}},b=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),y=()=>{const t=f(),a=["visualization","places","marker"];return{getMapConfig:()=>({apiKey:t.public.googleMapsApiKey,libraries:a}),getDefaultMapOptions:()=>({mapTypeControl:!0,streetViewControl:!0,fullscreenControl:!0,zoomControl:!0}),standardLibraries:a}};export{b as a,M as d,$ as m,y as u};
