1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b8bfd64a-a37a-4e9f-9ebd-bd9a8d93e77d`,e._sentryDebugIdIdentifier=`sentry-dbid-b8bfd64a-a37a-4e9f-9ebd-bd9a8d93e77d`)}catch{}})();import{U as e,ct as t,it as n,l as r,ot as i,p as a,u as o,xt as s}from"./DXBQ9HIP.js";import{t as c}from"./fNEHFWTi.js";import{t as l}from"./CvEJvGKB.js";import{t as u}from"./EeDs_mK6.js";import{n as d,t as f}from"./BQOh2iyf2.js";var p={class:`shuttle-bus-route-map`},m={__name:`BlockShuttleBusMap`,async setup(m){let h,g,_=u(),v=l(),y=n(`mapRef`),b=s(null),x=s(null),S=s([]),C=s(40.742235),w=s(-73.989084),T=s(16);[h,g]=t(async()=>c(async()=>{await _.fetchContactAndMapsBuildings()},`$v_q-Oh6VI7`)),await h,g();let E=r(()=>_.getContactAndMapsBuildings),D=r(()=>v.getTheme),O=r(()=>d.getGoogleMapOptions(D.value)),k=r(()=>d.getShuttleBusRouteOptions(D.value)),A=r(()=>E.value.filter(e=>e.latitude&&e.longitude));function j(e){return e.type===`sva_bus_stop`?`/img/contact/mapImg/${e.imgName}`:e.image?e.image.url:``}function M(e){let t=e.city&&e.state?`<p style="margin-bottom: 0.05em; font-size: 1rem;" id="city">${e.city}, ${e.state}</p>`:``;return` 2 <div class="infowindow"> 3 <h3 id="info-title" style="font-family:Roboto, sans-serif; font-size: 1.5rem; margin-bottom: 0.01em;"> 4 ${e.address} 5 </h3> 6 ${t} 7 <img class="marker-img" style="max-width: 100%; margin-top: 0.5em;" src="${j(e)}" alt="" /> 8 </div> 9 `}function N(){return[window.innerWidth,window.innerHeight]}return i(D,e=>{if(!b.value)return;b.value.setOptions(d.getGoogleMapOptions(e));let t=d.getShuttleBusRouteOptions(e).markerOptions;S.value.forEach(e=>e.setIcon(t))}),f(y,e=>{let[t,n]=N(),r=1042;n>r&&t>400?T.value=16:n<=r&&t<=400&&(T.value=14),b.value=new e.maps.Map(y.value,{center:{lat:C.value,lng:w.value},zoom:T.value,mapTypeId:`roadmap`,...O.value}),x.value=new e.maps.InfoWindow({maxWidth:300}),A.value.forEach(t=>{let n=new e.maps.Marker({position:{lat:t.latitude,lng:t.longitude},map:b.value,icon:k.value.markerOptions});n.addListener(`click`,()=>{x.value.setContent(M(t)),x.value.setPosition({lat:t.latitude,lng:t.longitude}),x.value.open(b.value)}),S.value.push(n)})}),(t,n)=>(e(),a(`div`,p,[o(`div`,{ref_key:`mapRef`,ref:y,class:`mb-2 sva-location-details-map`},null,512)]))}};export{m as default};
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.