(()=>{var e=$(".logistics-fleet-sidebar-body");e.length&&new PerfectScrollbar(e[0],{wheelPropagation:!1,suppressScrollX:!0}),mapboxgl.accessToken="pk.eyJ1IjoiY2xldmlzaW9uLWRldiIsImEiOiJjbTN5Y28waW4xZzVsMmpxdHNpbmk1bHpmIn0.i_N-shiuMcRnSQGwaT9nmA";let o={type:"FeatureCollection",features:[{type:"Feature",properties:{iconSize:[20,42],message:"1"},geometry:{type:"Point",coordinates:[-73.999024,40.75249842]}},{type:"Feature",properties:{iconSize:[20,42],message:"2"},geometry:{type:"Point",coordinates:[-74.03,40.75699842]}},{type:"Feature",properties:{iconSize:[20,42],message:"3"},geometry:{type:"Point",coordinates:[-73.967524,40.7599842]}},{type:"Feature",properties:{iconSize:[20,42],message:"4"},geometry:{type:"Point",coordinates:[-74.0325,40.742992]}}]},a=new mapboxgl.Map({container:"map",style:"mapbox://styles/mapbox/light-v9",center:[-73.999024,40.75249842],zoom:12.25});for(let s of o.features){var i=document.createElement("div"),l=s.properties.iconSize[0],n=s.properties.iconSize[1];i.className="marker",i.insertAdjacentHTML("afterbegin",'<img src="'+assetsPath+'img/illustrations/fleet-car.png" alt="Fleet Car" width="20" class="rounded-3" id="carFleet-'+s.properties.message+'">'),i.style.width=l+"px",i.style.height=n+"px",i.style.cursor="pointer",new mapboxgl.Marker(i).setLngLat(s.geometry.coordinates).addTo(a);let t=document.getElementById("fl-"+s.properties.message),r=document.getElementById("carFleet-"+s.properties.message);t.addEventListener("click",function(){var e=document.querySelector(".marker-focus");Helpers._hasClass("active",t)?(a.flyTo({center:o.features[s.properties.message-1].geometry.coordinates,zoom:16}),e&&Helpers._removeClass("marker-focus",e),Helpers._addClass("marker-focus",r)):Helpers._removeClass("marker-focus",r)})}e=document.getElementById("carFleet-1"),Helpers._addClass("marker-focus",e),document.querySelector(".mapboxgl-control-container").classList.add("d-none")})();