1(this.webpackJsonpsbsupervisor=this.webpackJsonpsbsupervisor||[]).push([[13],{753:function(o,t,e){"use strict";e.r(t),e.d(t,"callback",(function(){return g})),e.d(t,"criarMapa",(function(){return f})),e.d(t,"initialize",(function(){return w})),e.d(t,"isLatLonValid",(function(){return y})),e.d(t,"centroDoMapa",(function(){return x})),e.d(t,"removerTodosMarcadores",(function(){return L})),e.d(t,"removerTodasRotas",(function(){return b})),e.d(t,"addMarcador",(function(){return C})),e.d(t,"desenharRota",(function(){return k})),e.d(t,"gerarIconHtml",(function(){return S}));var i,n,a,r=e(12),l=e.n(r),c=e(19),s=e(36),d=e(37),u=e(39),v=e(38),m=[],p=[],h=null,g=function(o,t,e,r,l){var c,m=window.google.maps,p={zoom:t,center:new m.LatLng(e,r),disableDefaultUI:!0,zoomControl:!0,zoomControlOptions:{style:m.ZoomControlStyle.SMALL,position:m.ControlPosition.TOP_LEFT},fullscreenControl:!0,fullscreenControlOptions:{style:m.ZoomControlStyle.SMALL,position:m.ControlPosition.LEFT_TOP},gestureHandling:"greedy"};i=new m.Map(document.getElementById(o),p),a=new m.LatLngBounds,c=function(o){Object(u.a)(e,o);var t=Object(v.a)(e);function e(o,n,r,l,c){var d;return Object(s.a)(this,e),(d=t.call(this)).injectTooltip=function(o,t){!h&&o&&((h=document.createElement("div")).style.background="white",h.style.borderRadius="5px",h.style.padding="10px",h.style.fontFamily="Arial,Helvetica",h.style.textAlign="center",h.innerHTML=t,h.style.position="fixed",h.style.top=o.y+"px",h.style.left=o.x+"px",d.div.appendChild(h))},d.moveTooltip=function(o){if(h&&o){var t=d.getProjection().fromLatLngToDivPixel(d.latlng);h.style.top=t.y-35+"px",h.style.left=t.x+20+"px"}},d.deleteTooltip=function(o){h&&(d.div.removeChild(h),h=null)},d.html=r.html,d.htmlClass=r.className,d.offset=r.iconAnchor,d.latlng=new window.google.maps.LatLng(o,n),d.box=c?new window.google.maps.InfoWindow({content:c}):null,d.tooltip=l,a.extend(d.latlng),d.setMap(i),d}return Object(d.a)(e,[{key:"createDiv",value:function(){var o=this;this.div=document.createElement("div"),this.div.style.position="absolute",this.div.className+=this.htmlClass?this.htmlClass:"",this.div.innerHTML=this.html?this.html:void 0,this.tooltip&&(window.google.maps.event.addDomListener(this.div,"mouseover",(function(t){o.injectTooltip(t,o.tooltip)})),window.google.maps.event.addDomListener(this.div,"mousemove",(function(t){o.moveTooltip(t)})),window.google.maps.event.addDomListener(this.div,"mouseout",(function(t){o.deleteTooltip(t)}))),this.box&&(this.div.className+=" cursor-ponteiro",window.google.maps.event.addDomListener(this.div,"click",(function(t){o.box.getMap()?o.box.close(i,o):o.box.open(i,o)})))}},{key:"appendDivToOverlay",value:function(){this.getPanes().overlayImage.appendChild(this.div)}},{key:"positionDiv",value:function(){var o=this.getProjection().fromLatLngToDivPixel(this.latlng);o&&(this.div.style.left="".concat(o.x-this.offset[0],"px"),this.div.style.top="".concat(o.y-this.offset[1],"px"))}},{key:"draw",value:function(){this.div||(this.createDiv(),this.appendDivToOverlay()),this.positionDiv()}},{key:"remove",value:function(){this.div&&(this.div.parentNode.removeChild(this.div),this.div=null,this.setMap(null))}},{key:"getPosition",value:function(){return this.latlng}},{key:"getDraggable",value:function(){return!1}}]),e}(window.google.maps.OverlayView),n=c,l()},f=function(o,t,e,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return n="AIzaSyBKSUl9ZYr0OaMQ1EJhK_AhosalWGJLymw",new Promise((function(a){if(window.google&&window.google.maps)g(o,t,e,i,a);else{var r=document.createElement("script");r.async=!0,r.defer=!0,r.src="".concat(window.location.protocol,"//maps.googleapis.com/maps/api/js?key=").concat(n,"&callback=initMap"),document.head.appendChild(r),window.initMap=function(){return g(o,t,e,i,a)}}}))},w=function(){var o=Object(c.a)(l.a.mark((function o(t){var e,i,n,a,r=arguments;return l.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=r.length>1&&void 0!==r[1]?r[1]:12,i=r.length>2&&void 0!==r[2]?r[2]:-3.71839,n=r.length>3&&void 0!==r[3]?r[3]:-38.5434,a=r.length>4?r[4]:void 0,o.next=6,f("map_canvas",e,i,n,a);case 6:t();case 7:case"end":return o.stop()}}),o)})));return function(t){return o.apply(this,arguments)}}(),y=function(o,t){return null!==o&&void 0!==o&&""!==o&&"0"!==o&&"0.0"!==o&&null!==t&&void 0!==t&&""!==t&&"0"!==t&&"0.0"!==t},x=function(o,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:13,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("0"===o||"0"===t||"0"===o[0]||"0"===t[0]||0===o.length||0===t.length)null!==n&&n("semDadosRelatorio"),o=-3.699133,t=-38.546326,e=13,i.setCenter({lat:o,lng:t}),i.setZoom(e);else if(e){for(var r=0,l=0,c=0;c<o.length;c++)r+=parseFloat(o[c]),l+=parseFloat(t[c]);var s=r/o.length,d=l/t.length;i.setCenter({lat:s,lng:d}),i.setZoom(e)}else i.fitBounds(a)},L=function(){m.forEach((function(o){o.remove()})),m=[],a=new window.google.maps.LatLngBounds},b=function(){p.forEach((function(o){o.setMap(null)})),m=[],a=new window.google.maps.LatLngBounds},C=function(o,t,e,i,a){if(y(o,t)){var r=new n(o,t,e,i,a);m.push(r)}},k=function(o,t,e,n,a){if(0!==o.length||0!==t.length){for(var r=[],l=0;l<o.length;l++)r.push(new window.google.maps.LatLng(o[l],t[l]));p.push(new window.google.maps.Polyline({path:r,geodesic:!0,strokeColor:e,strokeOpacity:n,strokeWeight:a,map:i}))}},S=function(o,t){var e="";switch(o){case"codigoFuncionario":return{className:"container-new",iconSize:[70,28],iconAnchor:[33,28],html:'<div class="tooltiptext">'+t.codigo+"</div>"};case"cliente-codigo":return e="marcador-visita-inicial",t.visitas<1?e="marcador-visita-negativada":t.visitaspositivadas<1&&(e="FFD700"),{className:"container-new",iconSize:[70,28],iconAnchor:[33,28],html:'<div class="tooltiptext '+e+'">'+t.codigo+"</div>"};case"cliente-faturamento-codigo":return e="marcador-visita-inicial",{className:"container-new",iconSize:[70,28],iconAnchor:[33,28],html:'<div class="tooltiptext '+(e=t.vlr_faturado_liquido>
15e3?"cor-3CB371":t.vlr_faturado_liquido>3e3?"cor-43aaf0":t.vlr_faturado_liquido>1e3?"cor-c8a2c8":t.vlr_faturado_liquido>500?"cor-f043bd":t.vlr_faturado_liquido>300?"cor-e6b000":t.vlr_faturado_liquido>0?"cor-ffd700":"cor-8c0000")+'">'+t.codigo+"</div>"};case"marcadorGPS":return{className:"",iconSize:[42.43,39.5],iconAnchor:[15.5,39],html:'<div class="marcador-mapa marcador-gps"><div style = "transform: rotate(45deg); color:white; padding: 6px 0px; text-align: center;">'+t.indiceIcon+"</div></div>"};case"marcadorFinal":return{className:"icon-leaflet-visita-final",iconSize:[42.43,39.5],iconAnchor:[15.5,39],html:'<div class="marcador-mapa marcador-visita-final"><div style = "transform: rotate(45deg); color:white; padding: 6px 0px; text-align: center;">'+t.indiceIcon+"</div></div>"};case"marcadorCliente":return{className:"marcador-mapa-cliente marcador-cliente",iconSize:[30,30],iconAnchor:[15,30],html:'<div style = "color:white; padding: 6px 0px; text-align: center;">'+t.indiceIcon+"</div>"};case"marcadorVendas":return{className:"",iconSize:[42.43,39.5],iconAnchor:[15.5,39],html:'<div class="marcador-mapa marcador-vendas"><div style = "transform: rotate(45deg); color:white; padding: 6px 0px; text-align: center;">'+t.indiceIcon+"</div></div>"};case"marcadorVendasFinal":return{className:"",iconSize:[42.43,39.5],iconAnchor:[15.5,39],html:'<div class="marcador-mapa marcador-vendas-final"><div style = "transform: rotate(45deg); color:white; padding: 6px 0px; text-align: center;">'+t.indiceIcon+"</div></div>"};case"marcadorCasa":return{className:"marcador-casa",iconSize:[40,40],html:'<div class=""></div>'};case"marcadorPuroStyle":return{className:"",iconAnchor:[7.8,19.7],html:'<div class="marcador-mapa" style ="width: 15px; height:15px; background-color:'+t.iconColor+';"><div style = "transform: rotate(45deg); color:white; padding: 6px 0px; text-align: center;"> </div></div>'};case"marcadorInicial":default:return{className:"",iconSize:[42.43,39.5],iconAnchor:[15.5,39],html:'<div class="marcador-mapa '+(e=null!==t.situacao?"marcador-visita-negativada":"marcador-visita-inicial")+'"><div style = "transform: rotate(45deg); color:white; padding: 6px 0px; text-align: center;">'+t.indiceIcon+"</div></div>"}}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.