PageSourceSearch

https://www.newyorkcitytheatre.com/_nuxt/BH6qspxM.js

js newyorkcitytheatre.com collected 2026-09-24 20:36:37 UTC 18,968 bytes, 8 lines download raw bytes

1import{a as e}from"./DUgKJ0rD.js";import{F as t,K as n,Kt as r,L as i,Mt as a,P as o,Qt as s,R as c,W as l,Yt as u,gt as d,hn as f,ot as p,pt as m,yn as h}from"./CI1QfElZ.js";import{i as g}from"./B_8D-Bkj.js";import{f as _}from"./nN7mEdLy.js";import"./Bli5zDjc.js";import{w as v}from"./C2MNaLBw.js";import{t as y}from"./Dlpb-NKk.js";import{t as b}from"./CcoF9u_U.js";import{t as x}from"./BAFvUQn9.js";import{i as S,r as C,s as w}from"./BQFRs1_d.js";var T=[`width`,`height`],E=Object.assign(n({__name:`IconCircleClose`,props:{width:{default:20},height:{default:20}},setup(e){let n=e;return(e,r)=>(d(),c(`svg`,{width:n.width,height:n.height,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[...r[0]||=[t(`circle`,{opacity:`0.8`,cx:`10`,cy:`10`,r:`10`,fill:`white`},null,-1),t(`path`,{d:`M6.39069 14C6.31342 14 6.23789 13.9771 6.17364 13.9342C6.10939 13.8913 6.05931 13.8303 6.02974 13.7589C6.00017 13.6875 5.99243 13.6089 6.00751 13.5332C6.02259 13.4574 6.0598 13.3878 6.11445 13.3331L13.3331 6.11443C13.4063 6.04116 13.5057 6 13.6093 6C13.7129 6 13.8123 6.04116 13.8856 6.11443C13.9588 6.18769 14 6.28706 14 6.39067C14 6.49429 13.9588 6.59366 13.8856 6.66692L6.66694 13.8856C6.63069 13.9219 6.58763 13.9507 6.54022 13.9704C6.49282 13.99 6.442 14.0001 6.39069 14Z`,fill:`#212120`},null,-1),t(`path`,{d:`M13.6093 14C13.558 14.0001 13.5072 13.99 13.4598 13.9704C13.4123 13.9507 13.3693 13.9219 13.333 13.8856L6.11442 6.66692C6.04116 6.59366 6 6.49429 6 6.39067C6 6.28706 6.04116 6.18769 6.11442 6.11443C6.18769 6.04116 6.28706 6 6.39067 6C6.49428 6 6.59365 6.04116 6.66691 6.11443L13.8855 13.3331C13.9402 13.3878 13.9774 13.4574 13.9925 13.5332C14.0075 13.6089 13.9998 13.6875 13.9702 13.7589C13.9407 13.8303 13.8906 13.8913 13.8263 13.9342C13.7621 13.9771 13.6866 14 13.6093 14Z`,fill:`#212120`},null,-1)]],8,T))}}),{__name:`IconCircleClose`}),D={class:`relative`},O={class:`hidden lg:block min-h-8`},k={id:`custom-close`,"aria-label":`Close`,type:`button`,class:`absolute right-0 p-2`},A=[`src`,`alt`],j={class:`lg:mt-3 border-b border-gray-500 border-dashed pb-2`},M={class:`title-sans title-sans--base lg:title-sans--lg text-center`},N={key:0,class:`font-body text-center block`},P={key:1,class:`flex gap-2 mt-1 justify-around items-center`},F={key:1,class:`flex items-center gap-1`},I={key:0,class:`mt-3 flex justify-evenly items-center font-body font-normal pb-1`},L=[`href`],R=[`href`],z=Object.assign(n({__name:`RestaurantMarkerContent`,props:{heading:{},subHeading:{},pricing:{},rating:{},imageUrl:{},link:{}},setup(n){let r=n,a=e(),u=e=>{let t=e.match(/images\.otstatic\.com\/prod\/(\d+)\/(\d+)\//);return t?`https://resizer.otstatic.com/v4/photos/${t[1]}-${t[2]}`:e},p=o(()=>{if(!r.imageUrl)return`${a.public.IMAGE_CDN_BASE_URL}/images/misc/misc-restaurant-cover.jpg`;let e=u(r.imageUrl);return e.includes(`?`)?e:`${e}?width=160&height=160`});return(e,n)=>{let a=E,o=b;return d(),c(`article`,D,[t(`div`,O,[t(`button`,k,[l(a)]),t(`img`,{class:`hidden lg:block w-full rounded-sm max-h-[124px] object-cover`,src:s(p),alt:`Cover image for `+r.heading,"aria-hidden":`true`},null,8,A)]),t(`div`,j,[t(`h1`,M,h(r.heading),1),r.subHeading?(d(),c(`span`,N,h(r.subHeading),1)):i(``,!0),r.rating||r.pricing?(d(),c(`div`,P,[r.pricing?(d(),c(`span`,{key:0,class:f([`font-body`,{"pl-4":r.rating}])},h(r.pricing),3)):i(``,!0),r.rating?(d(),c(`span`,F,[l(o,{rating:r.rating,"hide-max-rating":!0,small:!0},null,8,[`rating`])])):i(``,!0)])):i(``,!0)]),r.link?(d(),c(`div`,I,[t(`a`,{target:`_blank`,href:r.link,class:``},`More Info`,8,L),n[0]||=t(`span`,null,`or`,-1),t(`a`,{target:`_blank`,href:r.link,class:`btn-sec btn-sec-sm shadow-[0_0_4px_rgba(0,0,0,0.25)] capitalize font-normal font-body`},`Reserve`,8,R)])):i(``,!0)])}}}),{__name:`MapRestaurantMarkerContent`}),B=``+new URL(`map-marker-restaurant.4ydHrtnj.svg`,import.meta.url).href,V=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='39'%20height='50'%20fill='none'%20viewBox='0%200%2039%2050'%3e%3cg%20filter='url(%23a)'%3e%3cpath%20fill='%23ED862E'%20fill-rule='evenodd'%20d='M4%2014.9391C4%206.70168%2010.729%200%2019%200s14.9998%206.70168%2015%2014.9391c0%2010.2229-13.4235%2025.2308-13.995%2025.8647-.5359.5944-1.4731.5955-2.01%200C17.4235%2040.1699%204%2025.162%204%2014.9391Z'%20clip-rule='evenodd'/%3e%3c/g%3e%3cpath%20fill='%23fff'%20d='M19%205C13.4828%205%209%209.48276%209%2015c0%205.5172%204.4828%2010%2010%2010s10-4.4828%2010-10c0-5.51724-4.4828-10-10-10Zm0%2018.9655c-4.9483%200-8.9655-4.0172-8.9655-8.9655%200-4.9483%204.0172-8.96552%208.9655-8.96552%204.9483%200%208.9655%204.01722%208.9655%208.96552S23.9483%2023.9655%2019%2023.9655Z'/%3e%3cpath%20fill='%23fff'%20d='M19.345%2011.0344h-2.069c-.2931%200-.5172.2242-.5172.5173v7.7586c0%20.2931.2241.5172.5172.5172s.5173-.2241.5173-.5172v-2.4138h1.551
17c1.6207%200%202.931-1.3104%202.931-2.931%200-1.6207-1.3103-2.9311-2.931-2.9311Zm0%204.8276h-1.5517v-3.7931h1.5517c1.0517%200%201.8965.8448%201.8965%201.8966%200%201.0517-.8448%201.8965-1.8965%201.8965Z'/%3e%3cdefs%3e%3cfilter%20id='a'%20width='38'%20height='49.25'%20x='0'%20y='0'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_314_9676'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_314_9676'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e`,H=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='39'%20height='50'%20fill='none'%20viewBox='0%200%2039%2050'%3e%3cg%20filter='url(%23a)'%3e%3cpath%20fill='%23ED862E'%20fill-rule='evenodd'%20d='M4%2014.9391C4%206.70168%2010.729%200%2019%200s14.9998%206.70168%2015%2014.9391c0%2010.2229-13.4235%2025.2308-13.995%2025.8647-.5359.5944-1.4731.5955-2.01%200C17.4235%2040.1699%204%2025.162%204%2014.9391Z'%20clip-rule='evenodd'/%3e%3c/g%3e%3cpath%20fill='%23fff'%20d='M26.974%2017.1139c.0246-.066.0333-.1386.0106-.212l-1.318-4.2833V8.66665C25.6666%207.748%2024.9193%207%2024%207H14c-.9193%200-1.6667.748-1.6667%201.66665v3.95195l-1.318%204.2833c-.0226.0727-.014.1454.0107.212-.016.0707-.026.1434-.026.2194v4c0%20.184.1493.3333.3333.3333h1.3334c.184%200%20.3333-.1493.3333-.3333v-1h12v1c0%20.184.1493.3333.3333.3333h1.3334c.184%200%20.3333-.1493.3333-.3333v-4c0-.076-.01-.1487-.026-.2194ZM13%208.66665c0-.55134.4487-.99999%201-.99999h10c.5513%200%201%20.44865%201%20.99999v3.66665h-.906l-.3107-1.2427c-.112-.446-.5113-.7573-.9707-.7573h-2.146c-.5513%200-1%20.4487-1%201v1h-1.3333v-.9993c0-.5514-.4487-1-1-1h-2.146c-.4593%200-.8587.312-.9706.7573l-.3107%201.242H13V8.66665ZM23.4093%2012.872c-.064.0813-.16.128-.2633.128h-2.4794c-.1833%200-.3333-.1494-.3333-.3334v-1.3333c0-.184.15-.3333.3333-.3333h2.1467c.1533%200%20.286.1033.3233.252l.3334%201.3333c.0253.1007.0033.2047-.0607.2867Zm-5.742-1.5387v1.33c0%20.0013-.0006.002-.0006.0033v.0014c-.0007.1833-.15.332-.3327.332h-2.4793c-.104%200-.1994-.0467-.2634-.128-.064-.082-.086-.1867-.0606-.2867l.3333-1.3333c.0374-.148.17-.252.324-.252h2.146c.1833%200%20.3333.1493.3333.3333ZM12.9127%2013h1.0033c.0353.1.0813.196.1487.2826.192.244.4793.384.7893.384h2.4793c.434%200%20.8007-.28.9387-.6666h1.456c.138.3873.5046.6666.9386.6666h2.4794c.31%200%20.5966-.14.7886-.384.0674-.086.1134-.1826.1487-.2826h1.004l1.0293%203.3453c-.0386-.0047-.0766-.012-.1166-.012H12c-.04%200-.078.0073-.116.012L12.9127%2013Zm-.5794%207.9999h-.6666v-.6666h.6666v.6666Zm14%200h-.6666v-.6666h.6666v.6666Zm0-1.3333H11.6667v-2.3333c0-.184.15-.3333.3333-.3333h14c.1833%200%20.3333.1493.3333.3333v2.3333Z'/%3e%3cdefs%3e%3cfilter%20id='a'%20width='38'%20height='49.25'%20x='0'%20y='0'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_318_9685'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_318_9685'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e`,U=`data:image/svg+xml,%3csvg%20width='46'%20height='46'%20viewBox='0%200%2046%2046'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_d_620_36880)'%3e%3ccircle%20cx='23'%20cy='23'%20r='19'%20fill='white'/%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M23
1%2042C12.5083%2042%204%2033.4917%204%2023C4%2012.5083%2012.5083%204%2023%204C33.4917%204%2042%2012.5083%2042%2023C42%2033.4917%2033.4917%2042%2023%2042ZM23%2010.6416C28.1976%2010.6416%2032.411%2014.855%2032.411%2020.0526C32.411%2025.2501%2023%2035.3582%2023%2035.3582C23%2035.3582%2013.589%2025.2501%2013.589%2020.0526C13.589%2014.855%2017.8024%2010.6416%2023%2010.6416ZM23%2016.3135C24.9706%2016.3135%2026.5687%2017.9116%2026.5687%2019.8824C26.5687%2021.853%2024.9706%2023.4511%2023%2023.4511C21.0294%2023.4511%2019.4313%2021.853%2019.4313%2019.8824C19.4313%2017.9116%2021.0294%2016.3135%2023%2016.3135Z'%20fill='%23212120'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_620_36880'%20x='0'%20y='0'%20width='46'%20height='46'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_620_36880'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_620_36880'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e`,W=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='39'%20height='50'%20fill='none'%3e%3cfilter%20id='a'%20width='38.25'%20height='49.2502'%20x='0'%20y='0'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2362_134198'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_2362_134198'%20result='shape'/%3e%3c/filter%3e%3cg%20filter='url(%23a)'%3e%3cpath%20fill='%23bf3d37'%20fill-rule='evenodd'%20d='M4.25%2014.9394c0-8.23747%206.729-14.93916%2015-14.93916s14.9998%206.70169%2015%2014.93916c0%2010.2229-13.4235%2025.2307-13.995%2025.8646-.5359.5945-1.4731.5955-2.01%200-.5715-.6339-13.995-15.6417-13.995-25.8646z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23fff'%20d='M19.0806%208c-3.9939%200-7.2432%203.2493-7.2432%207.2432%200%204.9566%206.482%2012.2331%206.758%2012.5404.2592.2887.7118.2882.9705%200%20.276-.3073%206.758-7.5838%206.758-12.5404C26.3238%2011.2493%2023.0746%208%2019.0806%208zm0%2010.8875c-2.0094%200-3.6442-1.6348-3.6442-3.6443%200-2.0094%201.6348-3.6442%203.6442-3.6442%202.0095%200%203.6442%201.6348%203.6442%203.6442%200%202.0095-1.6347%203.6443-3.6442%203.6443z'/%3e%3c/g%3e%3c/svg%3e`,G=null,K=e=>{let t=document.createElement(`img`);return t.src=e,t},q=15,J=(e,t)=>{let n=e.position?.[t];return typeof n==`function`?n():n},Y=e=>{let t=e.reduce((e,t)=>e+t,0)/e.length;return{mean:t,stdDev:Math.sqrt(e.reduce((e,n)=>e+(n-t)**2,0)/e.length)}},X=(e,t=1)=>{if(e.length===0)return[];let{latitudes:n,longitudes:r}=e.reduce((e,t)=>{let n=J(t,`lat`),r=J(t,`lng`);return n&&e.latitudes.push(n),r&&e.longitudes.push(r),e},{latitudes:[],longitudes:[]}),{mean:i,stdDev:a}=Y(n),{mean:o,stdDev:s}=Y(r);return e.filter(e=>{let n=J(e,`lat`),r=J(e,`lng`);return n===void 0||n===0||r===void 0||r===0?!1:Math.abs(n-i)<=t*a&&Math.abs(r-o)<=t*s})},Z=.3,ee=(e,t)=>{let n=0,r=0,i=0,a=0;t.forEach(({lat:t,lng:o})=>{let s=t-e.lat,c=o-e.lng;s>=0?n=Math.max(n,s):r=Math.max(r,-s),c>=0?i=Math.max(i,c):a=Math.max(a,-c)});let o=Math.max(n,r),s=Math.max(i,a),c=Math.max(n,o*Z),l=Math.max(r,o*Z),u=Math.max(i,s*Z),d=Math.max(a,s*Z);return new google.maps.LatLngBounds({lat:e.lat-l,lng:e.lng-d},{lat:e.lat+c,lng:e.lng+u})},te=e=>{let t=X(e),n=new google.maps.LatLngBounds;
1return t.forEach(e=>{e.position&&n.extend(e.position)}),n},ne=e=>w(e)?e.filter(e=>e.venueCoordinates.latitude&&e.venueCoordinates.longitude).map(e=>({lat:e.venueCoordinates.latitude,lng:e.venueCoordinates.longitude})):e.filter(e=>e.latitude&&e.longitude).map(e=>({lat:+e.latitude,lng:+e.longitude})),Q=(t,n,i=r([]),o,s=!1,c=!0,l,d)=>{let f=e(),h=_(),b=new x({apiKey:f.public.GMAPS_ID,version:`weekly`}),T=r(null),E=function(e){return e[e.location=0]=`location`,e[e.venue=1]=`venue`,e[e.restaurant=2]=`restaurant`,e[e.parking=3]=`parking`,e[e.hotel=4]=`hotel`,e}({}),D={[E.location]:{icon:U},[E.restaurant]:{icon:B},[E.parking]:{icon:V},[E.hotel]:{icon:H},[E.venue]:{icon:W}},O=(e,t,n,r)=>{let i=`<div class="font-body">
2                            <h6 class="font-bold">${e}</h6>
3                            <p>${t}</p>`;switch(r){case`hotel`:i+=`<span><a target="_blank" href="${n}">More Info</a> or <a target="_blank" href="${n+`#availability_target`}">Reserve</a></span>`;break;case`parking`:i+=`<a target="_blank" href="${n}">Check availability</a>`}return i+=`</div>`,i},k=(e,t,n,r,i,a)=>()=>{G&&=(G.unmount(),null);let o=document.createElement(`div`);return G=g(z,{heading:e,subHeading:t,pricing:n,rating:r,imageUrl:i,link:a}),G.mount(o),o},A=r([]),j=r([]),M=new Map,N=!1,P=!1,F=null,I=null,L=!1,R=()=>{A.value.length!==0&&(j.value.slice(1).forEach(e=>{u(e).map=null}),j.value=j.value.slice(0,1),M.clear(),A.value=[])},Y=()=>{R(),w(i.value)?i.value.forEach(e=>{e.venueCoordinates.latitude&&e.venueCoordinates.longitude&&A.value.push({position:{lat:e.venueCoordinates.latitude,lng:e.venueCoordinates.longitude},type:E.venue,infoWindowContent:`
4                        <div class="font-body">
5                        <h6 class="font-bold">${e.venueName}</h6>
6                        <p>${e.venueAddress}</p>
7                        <span><a href="${e.venueUrl}">More Info</a></span>
8                        </div>`})}):(t&&n&&j.value.length===0&&A.value.push({position:{lat:t,lng:n},type:E.location}),i.value.forEach(e=>{if(!e.latitude||!e.longitude)return;let t=null;t=S(e)?{type:E.restaurant,id:e.id,infoWindowContentCallable:k(e.name,e.cuisine,e.pricing,e.rating,e.imageUrl,e.url)}:C(e)?{type:E.hotel,id:e.id,infoWindowContent:O(e.name,e.address,e.url,`hotel`)}:{type:E.parking,id:e.id,infoWindowContent:O(e.name,e.address,e.url,`parking`)},A.value.push({position:{lat:+e.latitude,lng:+e.longitude},...t})}))};Y();let X=(e=!1)=>{let t=document.querySelector(`div[role="dialog"].gm-style-iw.gm-style-iw-c`);if(!(t instanceof HTMLElement))return;if(t&&(t.style.paddingBottom=``,t.style.paddingInlineEnd=``,e&&(t.style.paddingTop=``)),!e){let e=t?.querySelector(`button.gm-ui-hover-effect`);if(e instanceof HTMLElement){e.style.width=`24px`,e.style.height=`42px`;let t=e.querySelector(`span`);t instanceof HTMLElement&&(t.style.margin=`0`)}}let n=t?.querySelector(`.gm-style-iw-d`);n instanceof HTMLElement&&(n.style.overflow=``)},Z=()=>window.matchMedia(`(max-width: 1023px)`).matches,Q=(e,t)=>{if(!t.position||!Z())return;let n=e.getDiv().offsetHeight,r=Math.round(n/2-n*.15);e.setCenter(t.position),e.panBy(0,-r)},$=(e,t,n,r)=>{let i=t.infoWindowContentCallable;if(L=!0,t.infoWindowContent)n.close(),n.setContent(t.infoWindowContent),n.setOptions({minWidth:null,maxWidth:null,headerDisabled:!1,disableAutoPan:!1}),n.open({anchor:e,map:r}),p(()=>{X()});else if(typeof i==`function`){n.close();let t=i();t.querySelector(`#custom-close`)?.addEventListener(`click`,()=>{n.close()});let a=Z();n.setContent(t),n.setOptions({minWidth:244,maxWidth:244,headerDisabled:!0,disableAutoPan:a}),n.open({anchor:e,map:r}),p(()=>{X(!0),Q(r,e)})}},re=(e,t,n)=>{Y();let r=new google.maps.LatLngBounds;j.value?.[0]?.position&&r.extend(j.value[0].position),A.value.forEach(i=>{let a=new n({position:i.position,map:t,content:K(D[i.type].icon)});j.value.push(a),a.position&&r.extend(a.position),i.id!==void 0&&M.set(i.id,{marker:a,feature:i}),(i.infoWindowContent||typeof i.infoWindowContentCallable==`function`)&&a.addListener(`gmp-click`,()=>$(a,i,e,t))});let i=!N||c||P;if(N=!0,P=!1,i){if([`venues`,`venues-category-category`].includes(h.name?.toString()||``)&&j.value.length>2){google.maps.event.addListenerOnce(t,`bounds_changed`,()=>{t.setZoom(Math.min(q,t.getZoom()||q))});let e=te(j.value);p(()=>
8{t.fitBounds(e,l)})}else if(j.value.length>1){let e=j.value[0]&&J(j.value[0],`lat`),n=j.value[0]&&J(j.value[0],`lng`),i=d?ne(d.value):j.value.map(e=>({lat:J(e,`lat`),lng:J(e,`lng`)})).filter(e=>e.lat!==void 0&&e.lng!==void 0),a=e!==void 0&&n!==void 0?ee({lat:e,lng:n},i):r;p(()=>{t.fitBounds(a,l)})}else j.value[0].position&&t.setCenter(j.value[0].position),t.setZoom(q)}},ie=(e,t,n)=>{let r=new t;I=r,r.addListener(`close`,()=>{G&&=(G.unmount(),null)});let s=o?{lat:o.latitude,lng:o.longitude}:A.value[0]?.position,c=new e(T.value,{center:s,zoom:q,disableDefaultUI:!0,mapId:`fugard`});F=c,c.addListener(`click`,()=>{if(L){L=!1;return}r.close()}),c.addListener(`dragstart`,()=>{P=!0}),s||y(`${f.public.API_BASE_URL}/content/site:${f.public.SITE_ID}/venuesHome/category:all`,{key:`all-venuesHomeCoordinates`,pick:[`coordinates`],getCachedData(e,t){return t.payload.data[e]||t.static.data[e]}},`$l8dQfL7yxk`).then(e=>{e.data.value?.coordinates&&c.setCenter({lat:e.data.value.coordinates.latitude,lng:e.data.value.coordinates.longitude})}),a(i,()=>{re(r,c,n)},{immediate:!0})};return m(()=>{let e=a(T,t=>{t&&(b.importLibrary(`maps`).then(({Map:e,InfoWindow:t})=>{b.importLibrary(`marker`).then(({AdvancedMarkerElement:n})=>{ie(e,t,n)})}),p(()=>{e()}))},{immediate:!0})}),v(()=>{s&&R()}),{mapRef:T,openInfoWindowById:e=>{let t=M.get(e);t&&F&&I&&$(t.marker,t.feature,I,F)},forceRefitOnNextUpdate:()=>{P=!0}}};export{Q as t};

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.