`);h&&(f+=`
`);l&&(f+=`Open In Maps`);const e=new google.maps.InfoWindow({content:`
`});s.addListener("click",()=>{i&&i.close(),e.open(n,s),i=e,google.maps.event.addListenerOnce(e,"domready",()=>{const n=document.querySelector(".custom-close");n&&n.addEventListener("click",()=>{e.close(),i=null});const t=document.querySelector(".gm-ui-hover-effect");t&&(t.style.display="none")})});r.extend(o);u.push({marker:s,position:o})});n.fitBounds(r);$(".warehouse-image").on("click",function(){const t=$(this).data("index"),{marker:i,position:r}=u[t];google.maps.event.trigger(i,"click");n.panTo(r);n.setZoom(14);window.scrollTo({top:0,behavior:"smooth"})})}$(function(){const n=document.createElement("script");n.src=`https://maps.googleapis.com/maps/api/js?key=AIzaSyDfhb5_Pu2f5nUHPy8cCFcUl_IM8g7kxJQ&callback=initFixedMap&libraries=places`;n.async=!0;n.defer=!0;n.onload=initFixedMap;document.body.appendChild(n)})