PageSourceSearch

https://wellhub.com/mep-partner/_next/static/chunks/9794.fb0f810a8044fb40.js

js wellhub.com collected 2026-09-24 09:38:18 UTC 37,594 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9794],{79794:(e,a,i)=>{i.r(a),i.d(a,{default:()=>X});var t=i(95155),l=i(12115),o=i(58891),n=i(88906),r=i(13473),s=i(34606),p=i.n(s),c=i(36576),d=i(81359),m=i(57153),u=i(15567),y=i(7914);let f=async()=>{if(!navigator.permissions)return"denied";let{state:e}=await navigator.permissions.query({name:"geolocation"});return e};var _=i(3307),g=i(3648),h=i(23064),b=i(50625);function x(){let e=(0,g._)(["\n    margin: ","px;\n  "]);return x=function(){return e},e}let w=b.Ay.div.withConfig({componentId:"sc-80010b2d-0"})(["display:flex;flex-direction:column;gap:","px;justify-content:center;margin:","px calc(","px / 2);justify-self:flex-end;align-items:flex-end;",""],n.o.tight,n.s.tight,n.s.expansive,h.e.md(x(),n.s.comfortable)),k=(0,b.Ay)(m.e).attrs({dark:!0,inverted:!0,iconPosition:"right"}).withConfig({componentId:"sc-80010b2d-1"})(["border:1.5px solid ",";&:disabled{background-color:"," !important;border:none;& > svg{fill:"," !important;}}"],n.f.neutral[800],n.f.neutral[50],n.f.neutral[500]),v=e=>{let{setSeeMap:a,isMobile:i}=e,[o,n]=(0,l.useState)(!1),{mapLabels:r}=(0,y.A)(),{executePartnerSearch:s,setLocation:p}=(0,u.SQ)();async function c(){let e=null;try{e=await (0,u.IV)(),n(!1)}catch(e){n(!0)}e&&(p({...e,label:r.currentLocation}),s({location:(0,u.V9)(e.location)}))}return(0,l.useEffect)(()=>{(async()=>{n("denied"===await f())})()},[]),(0,t.jsxs)(w,{children:[(0,t.jsx)(k,{small:!i,buttonType:i?"Icon":"Base",icon:{icon:"Close"},onClick:()=>{a(!1),(0,_.y)(["map"])},children:r.closeButton}),(0,t.jsx)(m.M,{$mdStart:!0,children:(0,t.jsx)(k,{buttonType:"Icon",onClick:c,icon:{icon:"Location"},disabled:o})})]})};var z=i(92083),j=i(95704);let T={default:14,min:12,max:20,center:16},C={png:{default:"/website/basemaps-assets/map-images/marker.png"},svg:{default:"https://assets-cdn.gympass.com/images/mep-strapi-blog/default_6a31b431be.svg",active:"https://assets-cdn.gympass.com/images/mep-strapi-blog/active_52d0a787c5.svg",activeHover:"https://assets-cdn.gympass.com/images/mep-strapi-blog/active_hover_a00187dee9.svg",hover:"https://assets-cdn.gympass.com/images/mep-strapi-blog/hover_a6f2e23543.svg",userLocation:"https://assets-cdn.gympass.com/images/mep-strapi-blog/user_Location_28f75f0403.svg"}},E={defaultZoom:T.default,svg:{default:"https://assets-cdn.gympass.com/images/mep-strapi-blog/default_6a31b431be.svg",active:"https://assets-cdn.gympass.com/images/mep-strapi-blog/active_52d0a787c5.svg",activeHover:"https://assets-cdn.gympass.com/images/mep-strapi-blog/active_hover_a00187dee9.svg",hover:"https://assets-cdn.gympass.com/images/mep-strapi-blog/hover_a6f2e23543.svg",userLocation:"https://assets-cdn.gympass.com/images/mep-strapi-blog/user_Location_28f75f0403.svg"},searchThisArea:{locationDifferenceAllowed:.04},map:{options:{disableDefaultUI:!0,styles:[{elementType:"geometry.fill",stylers:[{color:"#e9e8f7"},{saturation:5},{lightness:35}]},{elementType:"labels.text.fill",stylers:[{color:"#a3a3bd"}]},{featureType:"administrative.land_parcel",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#d3d3df"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",elementType:"labels.icon",stylers:[{color:"#919199"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"poi.government",elementType:"labels.icon",stylers:[{color:"#919199"}]},{featureType:"poi.medical",elementType:"labels.icon",stylers:[{color:"#919199"},{saturation:5}]},{featureType:"poi.park",stylers:[{visibility:"simplified"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#c1e6d6"}]},{featureType:"poi.park",elementType:"labels.icon",stylers:[{color:"#919199"}]},{featureType:"poi.place_of_worship",elementType:"labels.icon",stylers:[{color:"#919199"}]},{featureType:"poi.school",elementType:"labels.icon",stylers:[{color:"#919199"}]},{featureType:"poi.sports_complex",elementType:"labels.icon",stylers:[{color:"#919199"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#f5f5ff"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#7d7d87"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#cdcdf9"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e6e6ef"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"transit.station.airport",elementType:"labels.icon",stylers:[{color:"#919199"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#c6d7f5"}
1]}],minZoom:T.min,maxZoom:T.max}},cluster:{options:{imageSizes:[48,48]}},library:["places"],radius:Number(j.env.NEXT_PUBLIC_MAP_RADIUS)||12,rangeOfInterest:Number(j.env.NEXT_PUBLIC_MAP_RANGE_OF_INTEREST)||16};var A=i(50981);let I=b.Ay.div.withConfig({componentId:"sc-42cdf1cc-0"})(["left:50%;z-index:500;position:absolute;transform:translateX(-50%);top:20px;"]),L=b.Ay.button.withConfig({componentId:"sc-42cdf1cc-1"})(["align-items:center;background-color:",";border-radius:","px;border:","px solid ",";box-shadow:",";cursor:pointer;display:flex;height:","px;justify-content:center;padding:","px ","px;",""],n.f.grayscale[0],n.a.circular,n.c.thin,n.f.neutral[200],n.j.large,n.p.medium,n.u.none,n.u.comfortable,e=>e.disabled&&(0,b.AH)(["cursor:default;"])),M=b.Ay.div.withConfig({componentId:"sc-42cdf1cc-2"})(["display:",";"],e=>e.show?"block":"none"),S=(0,l.memo)(e=>{let{centerLocationDragend:a}=e,{map:i}=(0,A.b)(),{setLocation:l,executePartnerSearch:o}=(0,u.SQ)(),{mapLabels:n}=(0,y.A)(),r=async()=>{let e=await (0,u.AX)([a.lat,a.lng]);l(e),o({location:(0,u.V9)(e.location)})};return(0,t.jsx)(I,{children:(0,t.jsxs)(L,{onClick:r,children:[(0,t.jsx)(M,{children:(0,t.jsx)("img",{src:i.searchThisArea.button.loading,alt:"loading"})}),(0,t.jsx)(M,{show:!0,children:(0,t.jsx)(m.b.SmallBody,{children:n.searchThisArea})})]})})}),F={id:"clusters",type:"circle",source:"clusterpartners",filter:["has","point_count"],paint:{"circle-color":["step",["get","point_count"],n.f.grayscale[0],50,n.f.grayscale[0],100,n.f.grayscale[0]],"circle-radius":["step",["get","point_count"],25,50,25,100,40]}},P={id:"cluster-count",type:"symbol",source:"clusterpartners",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["Inter-Bold"],"text-size":21},paint:{"text-color":n.f.secondary[400]}},N={id:"unclustered-point",type:"symbol",source:"clusterpartners",filter:["!",["has","point_count"]],layout:{"icon-image":"marker-default","icon-size":1,"icon-allow-overlap":!0}},R=e=>{let{getNearGyms:a,mapOSMRef:i}=e,[n,r]=(0,l.useState)([]),s=(0,l.useCallback)(()=>({type:"FeatureCollection",features:a.map(e=>({type:"Feature",properties:{id:e.id},geometry:{type:"Point",coordinates:[e.lng,e.lat]}}))}),[a]);return(0,l.useEffect)(()=>{0!==a.length&&r(s())},[s,a]),(0,l.useEffect)(()=>{0===n.length&&r(s())},[n,s]),(0,l.useEffect)(()=>{let e=i.current;e&&(e.on("click","clusters",async a=>{let i=e.queryRenderedFeatures(a.point,{layers:["clusters"]}),t=i[0].properties.cluster_id,l=await e.getSource("clusterpartners").getClusterExpansionZoom(t);e.easeTo({center:i[0].geometry.coordinates,zoom:l})}),e.on("mouseenter","clusters",()=>{e.getCanvas().style.cursor="pointer"}),e.on("mouseleave","clusters",()=>{e.getCanvas().style.cursor=""}),e.on("mouseenter","unclustered-point",()=>{e.getCanvas().style.cursor="pointer"}),e.on("mouseleave","unclustered-point",()=>{e.getCanvas().style.cursor=""}),(async()=>{let a=await e.loadImage("".concat(window.location.origin).concat(C.png.default));(null==e?void 0:e.hasImage("marker-default"))||e.addImage("marker-default",a.data)})())},[i]),(0,t.jsxs)(o.kL,{id:"clusterpartners",type:"geojson",data:n,cluster:!0,clusterMaxZoom:T.center,clusterRadius:50,children:[(0,t.jsx)(o.Wd,{...F}),(0,t.jsx)(o.Wd,{...P}),(0,t.jsx)(o.Wd,{...N})]})};var Z=i(98632),H=i(58750),O=i(96740);let B=b.Ay.button.withConfig({componentId:"sc-506c8168-0"})(["background:",";border-radius:","px;overflow:hidden;padding:",";border:",";width:","px;height:","px;display:flex;align-items:center;justify-content:center;cursor:pointer;position:absolute;top:","px;right:","px;&:hover{svg{fill:",";}}"],n.f.grayscale[0],n.a.circular,n.u.none,n.c.none,n.w.medium,n.p.medium,n.u.tight,n.u.tight,n.f.primary[800]),D=(0,b.Ay)(Z.a).attrs(()=>({display:"flex",justifyContent:"center",alignItems:"center",padding:20,position:"absolute",zIndex:"1",width:"100%",height:"100%"})).withConfig({componentId:"sc-506c8168-1"})(["pointer-events:none;"]),V=(0,b.Ay)(Z.a).attrs(()=>({backgroundColor:n.f.grayscale[0],borderRadius:n.a.small,flexDirection:"column",elevation:n.j.small,maxWidth:"342px",width:"100%",position:"relative"})).withConfig({componentId:"sc-506c8168-2"})(["opacity:",";overflow:hidden;pointer-events:initial;transition:opacity 1s ease-in-out;"],e=>{let{showModal:a}=e;return+!!a}),q=e=>{let{onClose:a,content:i}=e,{lang:o}=(0,A.b)(),{id:s,starterPlan:p,offPeakPlan:c,newPartnerLabel:d}=i,[m,u]=(0,l.useState)(!1),[f,_]=(0,l.useState)(!0),{partnerCard:{inPersonLabel:g,tag:h,offPeakLabel:b},filters:{exclusive:x}}=(0,y.A)(),w=(0,l.useRef)(null);!function(e,a){(0,l.useEffect)(()=>{function i(i){e.current&&!e.current.contains(i.target)&&a(null)}return document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[e])}(w,a),(0,l.useEffect)(()=>{_(!1),setTimeout(()=>{u(!0)},100)},[]);let k=(0,O.L)(h.label,{plan:(null==p?void 0:p.name)||"",price:(null==p?void 0:p.formattedPrice)||""}),v=(0,O.L)(h.specificHoursLabel,{plan:(null==c?void 0:c.name)||"",price:(null==c?void 0:c.formattedPrice)||""});return!f&&(0,t.jsxs)(V,{ref:w,showModal:m,"data-testid":"map-partner-modal",children:[(0,t.jsx)(H.A,{content:{...i,inPersonLabel:g,partnerCardTagLabel:i.hasOffPeakProducts&&h.specificHoursLabel?v:k,exclusivityTooltipLabel:x,newPartnerLabel:d,offPeakLabel:b},tagVariant:h.specificHoursLabel?i.hasOffPeakProducts?"informative":"success":"informative",hasSpecificTagLabel:!!h.specificHoursLabel,href:"/".concat(o,"/search/partners/").concat(s),variant:"modal",events:{componentCategory:"partner_map_view",componentType:"map"}}),a&&(0,t.jsx)(B,{onClick:()=>{a(),(0,r.t4)({link:{name:"close_card_icon",text:"close",url:""},component:{name:"partner_map_view",type:"map",section:"unique"}})},children:(0,t.jsx)(Z.b,{icon:"Close",width:"medium",height:"medium",fill:n.f.primary[700]})})]})},U=(0,l.memo)(e=>{let{popupInfo:a,setPopupInfo:i}=e,[n,r]=(0,l.useState)(null),{setSelectPartnerCard:s,partner:p,queryCenterLocation:c}=(0,A.b)();return(0,l.useEffect)(()=>{0!==Object.keys(p).length&&i(p)},[p,i]),(0,l.useEffect)(()=>{r({lat:null==c?void 0:c.lat,lng:null==c?void 0:c.lng})},[c]),(0,t.jsxs)(t.Fragment,{children:[n&&(0,t.jsx)(o.pH,{latitude:n.lat,longitude:n.lng,children:(0,t.jsx)("img",{src:C.svg.userLocation,alt:"user location"})}),a&&(0,t.jsx)(D,{children:(0,t.jsx)(q,{content:a,onClose:()=>{i(null),s({})}})})]})}),W={background:"#f1f0fb",earth:"#f1f0fb",park_a:"#c1e6d6",park_b:"#c1e6d6",hospital:"#ECEAF9",industrial:"#ECEAF9",school:"#ECEAF9",wood_a:"#c1e6d6",wood_b:"#c1e6d6",pedestrian:"#ECEAF9",scrub_a:"#c1e6d6",scrub_b:"#c1e6d6",glacier:"#ECEAF9",sand:"#ECEAF9",beach:"#ECEAF9",aerodrome:"#ECEAF9",runway:"#ECEAF9",water:"#c6d7f5",pier:"#ECEAF9",zoo:"#ECEAF9",military:"#ECEAF9",tunnel_other_casing:"#dadce0",tunnel_minor_casing:"#dadce0",tunnel_link_casing:"#dadce0",tunnel_medium_casing:"#dadce0",tunnel_major_casing:"#dadce0",tunnel_highway_casing:"#dadce0",tunnel_other:"#f5f5ff",tunnel_minor:"#f5f5ff",tunnel_link:"#f5f5ff",tunnel_medium:"#f5f5ff",tunnel_major:"#f5f5ff",tunnel_highway:"#f5f5ff",transit_pier:"#f5f5ff",buildings:"#ECEAF9",minor_service_casing:"#dadce0",minor_c
1asing:"#dadce0",link_casing:"#dadce0",medium_casing:"#dadce0",major_casing_late:"#dadce0",highway_casing_late:"#dadce0",other:"#f5f5ff",minor_service:"#f5f5ff",minor_a:"#f5f5ff",minor_b:"#f5f5ff",link:"#f5f5ff",medium:"#f5f5ff",major_casing_early:"#dadce0",major:"#cdcdf9",highway_casing_early:"#dadce0",highway:"#cdcdf9",railway:"#f5f5ff",boundaries:"#f5f5ff",waterway_label:"#a4cae1",bridges_other_casing:"#dadce0",bridges_minor_casing:"#dadce0",bridges_link_casing:"#dadce0",bridges_medium_casing:"#dadce0",bridges_major_casing:"#dadce0",bridges_highway_casing:"#dadce0",bridges_other:"#f5f5ff",bridges_minor:"#f5f5ff",bridges_link:"#f5f5ff",bridges_medium:"#f5f5ff",bridges_major:"#f5f5ff",bridges_highway:"#f5f5ff",roads_label_minor:"#7d7d87",roads_label_minor_halo:"#ffffff",roads_label_major:"#7d7d87",roads_label_major_halo:"#ffffff",ocean_label:"#7d7d87",peak_label:"#7d7d87",subplace_label:"#7d7d87",subplace_label_halo:"#ffffff",city_circle:"#7d7d87",city_circle_stroke:"#ffffff",city_label:"#7d7d87",city_label_halo:"#ffffff",state_label:"#7d7d87",state_label_halo:"#ffffff",country_label:"#7d7d87"};i(4209);let X=(0,l.memo)(e=>{let{searchedSelected:a,setSearchedSelected:i,getNearGyms:s,setMapVisibility:m}=e,u=(0,z.A)("(max-width: ".concat(n.d.md.width-1,"px)")),{partner:y,queryCenterLocation:f,setQueryCenterLocation:_,setSelectPartnerCard:g}=(0,A.b)(),[h,b]=(0,l.useState)(!1),[x,w]=(0,l.useState)(null),[k,j]=(0,l.useState)(f),C={longitude:f.lng,latitude:f.lat,zoom:T.default},I="http://localhost:3000"===window.location.origin?"https://stg.wellhub.com":window.location.origin,L={version:8,sources:{protomaps:{type:"vector",tiles:["https://".concat("mep-map.wellhub.com","/").concat("world","/{z}/{x}/{y}.mvt")],attribution:'\xa9 <a href="https://openstreetmap.org">OpenStreetMap</a>'}},glyphs:"".concat(I,"/website/basemaps-assets/map-fonts/{fontstack}/{range}.pbf"),layers:function(){var e,a;return(e="protomaps",[{id:"background",type:"background",paint:{"background-color":W.background}},{id:"earth",type:"fill",source:e,"source-layer":"earth",paint:{"fill-color":W.earth}},{id:"landuse_park",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","national_park","park","cemetery","protected_area","nature_reserve","forest","golf_course"]],paint:{"fill-color":["interpolate",["linear"],["zoom"],0,W.park_a,12,W.park_b]}},{id:"landuse_hospital",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","hospital"]],paint:{"fill-color":W.hospital}},{id:"landuse_industrial",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","industrial"]],paint:{"fill-color":W.industrial}},{id:"landuse_school",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","school","university","college"]],paint:{"fill-color":W.school}},{id:"landuse_beach",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","beach"]],paint:{"fill-color":W.beach}},{id:"landuse_zoo",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","zoo"]],paint:{"fill-color":W.zoo}},{id:"landuse_military",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","military","naval_base","airfield"]],paint:{"fill-color":W.zoo}},{id:"natural_wood",type:"fill",source:e,"source-layer":"natural",filter:["any",["in","pmap:kind","wood","nature_reserve","forest"]],paint:{"fill-color":["interpolate",["linear"],["zoom"],0,W.wood_a,12,W.wood_b]}},{id:"natural_scrub",type:"fill",source:e,"source-layer":"natural",filter:["in","pmap:kind","scrub","grassland","grass"],paint:{"fill-color":["interpolate",["linear"],["zoom"],0,W.scrub_a,12,W.scrub_b]}},{id:"natural_glacier",type:"fill",source:e,"source-layer":"natural",filter:["==","pmap:kind","glacier"],paint:{"fill-color":W.glacier}},{id:"natural_sand",type:"fill",source:e,"source-layer":"natural",filter:["==","pmap:kind","sand"],paint:{"fill-color":W.sand}},{id:"landuse_aerodrome",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","aerodrome"]],paint:{"fill-color":W.aerodrome}},{id:"transit_runway",type:"line",source:e,"source-layer":"transit",filter:["any",["in","pmap:kind_detail","runway"]],paint:{"line-color":W.runway,"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,12,4,18,30]}},{id:"transit_taxiway",type:"line",source:e,"source-layer":"transit",minzoom:13,filter:["any",["in","pmap:kind_detail","taxiway"]],paint:{"line-color":W.runway,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,15,6]}}
1,{id:"water",type:"fill",source:e,"source-layer":"water",paint:{"fill-color":W.water}},{id:"physical_line_stream",type:"line",source:e,"source-layer":"physical_line",minzoom:14,filter:["all",["in","pmap:kind","stream"]],paint:{"line-color":W.water,"line-width":.5}},{id:"physical_line_river",type:"line",source:e,"source-layer":"physical_line",minzoom:9,filter:["all",["in","pmap:kind","river"]],paint:{"line-color":W.water,"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1,18,12]}},{id:"landuse_pedestrian",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","pedestrian"]],paint:{"fill-color":W.pedestrian}},{id:"landuse_pier",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","pier"]],paint:{"fill-color":W.pier}},{id:"roads_tunnels_other_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":W.tunnel_other_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_tunnels_minor_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":W.tunnel_minor_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_tunnels_link_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":W.tunnel_link_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_tunnels_medium_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":W.tunnel_medium_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,10.5,1]}},{id:"roads_tunnels_major_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":W.tunnel_major_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_tunnels_highway_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":W.tunnel_highway_casing,"line-dasharray":[6,.5],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_tunnels_other",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":W.tunnel_other,"line-dasharray":[4.5,.5],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_tunnels_minor",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":W.tunnel_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_tunnels_link",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":W.tunnel_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_tunnels_medium",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":W.tunnel_medium,"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13]}},{id:"roads_tunnels_major",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":W.tunnel_major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_tunnels_highway",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":W.tunnel_highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}}
1,{id:"buildings",type:"fill",source:e,"source-layer":"buildings",paint:{"fill-color":W.buildings,"fill-opacity":.5}},{id:"transit_pier",type:"line",source:e,"source-layer":"transit",filter:["any",["==","pmap:kind","pier"]],paint:{"line-color":W.transit_pier,"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,.5,20,16]}},{id:"roads_minor_service_casing",type:"line",source:e,"source-layer":"roads",minzoom:13,filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["==","pmap:kind_detail","service"]],paint:{"line-color":W.minor_service_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,18,8],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,.8]}},{id:"roads_minor_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["!=","pmap:kind_detail","service"]],paint:{"line-color":W.minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_link_casing",type:"line",source:e,"source-layer":"roads",minzoom:13,filter:["all",["==","pmap:link",1]],paint:{"line-color":W.minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1.5]}},{id:"roads_medium_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":W.medium_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,10.5,1.5]}},{id:"roads_major_casing_late",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":W.major_casing_late,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_highway_casing_late",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":W.highway_casing_late,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_other",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":W.other,"line-dasharray":[3,1],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_link",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:link",1]],paint:{"line-color":W.link,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_minor_service",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["==","pmap:kind_detail","service"]],paint:{"line-color":W.minor_service,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,18,8]}},{id:"roads_minor",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["!=","pmap:kind_detail","service"]],paint:{"line-color":["interpolate",["exponential",1.6],["zoom"],11,W.minor_a,16,W.minor_b],"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_medium",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":W.medium,"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13]}},{id:"roads_major_casing_early",type:"line",source:e,"source-layer":"roads",maxzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":W.major_casing_early,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_major",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":W.major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_highway_casing_early",type:"line",source:e,"source-layer":"roads",maxzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":W.highway_casing_early,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1]}},{id:"roads_highway",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":W.highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}},{id:"transit_railway",type:"line",source:e,"source-layer":"transit",filter:["all",["==","pmap:kind","rail"]],paint:{"line-dasharray":[.3,.75],"line-opacity":.5,"line-color":W.railway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,.15,18,9]}},{id:"boundaries_country",type:"line",source:e,"source-layer":"boundaries",filter:["<=","pmap:min_admin_level",2],paint:{"line-color":W.boundaries,"line-width":1,"line-dasharray":[3,2]}},{id:"boundaries",type:"line",source:e,"source-layer":"boundaries",filter:[">","pmap:min_admin_level",2],paint:{"line-color":W.boundaries,"line-width":.5,"line-dasharray":[3,2]}},{id:"roads_bridges_other_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":W.bridges_other_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_bridges_link_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":W.bridges_minor_c
1asing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1.5]}},{id:"roads_bridges_minor_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":W.bridges_minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,.8]}},{id:"roads_bridges_medium_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":W.bridges_medium_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,10.5,1.5]}},{id:"roads_bridges_major_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":W.bridges_major_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,10],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1.5]}},{id:"roads_bridges_other",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":W.bridges_other,"line-dasharray":[2,1],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_bridges_minor",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":W.bridges_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_bridges_link",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":W.bridges_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_bridges_medium",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":W.bridges_medium,"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13]}},{id:"roads_bridges_major",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":W.bridges_major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_bridges_highway_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":W.bridges_highway_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_bridges_highway",type:"line",source:e,"source-layer":"roads",filter:["all",[">","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":W.bridges_highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}}]).concat([{id:"physical_line_waterway_label",type:"symbol",source:a="protomaps","source-layer":"physical_line",minzoom:13,filter:["all",["in","pmap:kind","river","stream"]],layout:{"symbol-placement":"line","text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":12,"text-letter-spacing":.3},paint:{"text-color":W.waterway_label}},{id:"physical_point_peak",type:"symbol",source:a,"source-layer":"physical_point",filter:["any",["==","pmap:kind","peak"]],layout:{"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":["interpolate",["linear"],["zoom"],10,8,16,12],"text-letter-spacing":.1,"text-max-width":9},paint:{"text-color":W.peak_label,"text-halo-width":1.5}},{id:"roads_labels_minor",type:"symbol",source:a,"source-layer":"roads",minzoom:15,filter:["any",["in","pmap:kind","minor_road","other","path"]],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"symbol-placement":"line","text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":12},paint:{"text-color":W.roads_label_minor,"text-halo-color":W.roads_label_minor_halo,"text-halo-width":2}},{id:"physical_point_ocean",type:"symbol",source:a,"source-layer":"physical_point",filter:["any",["in","pmap:kind","sea","ocean","lake","water","bay","strait","fjord"]],layout:{"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":["interpolate",["linear"],["zoom"],3,10,10,12],"text-letter-spacing":.1,"text-max-width":9,"text-transform":"uppercase"},paint:{"text-color":W.ocean_label}},{id:"physical_point_lakes",type:"symbol",source:a,"source-layer":"physical_point",filter:["any",["in","pmap:kind","lake","water"]],layout:{"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":["interpolate",["linear"],["zoom"],3,0,6,12,10,12],"text-letter-spacing":.1,"text-max-width":9},paint:{"text-color":W.ocean_label}},{id:"roads_labels_major",type:"symbol",source:a,"source-layer":"roads",minzoom:11,filter:["any",["in","pmap:kind","highway","major_road","medium_road"]],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"symbol-placement":"line","text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":12},paint:{"text-color":W.roads_label_major,"text-halo-color":W.roads_label_major_halo,"text-halo-width":2}},{id:"places_subplace",type:"symbol",source:a,"source-layer":"places",filter:["==","pmap:kind","neighbourhood"],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-field":"{name}","text-font":["Inter-Medium"],"text-max-width":7,"text-letter-spacing":.1,"text-padding":["interpolate",["linear"],["zoom"],5,2,8,4,12,18,15,20],"text-size":["interpolate",["exponential",1.2],["zoom"],11,8,14,14,18,24],"text-transform":"uppercase"}
1,paint:{"text-color":W.subplace_label,"text-halo-color":W.subplace_label_halo,"text-halo-width":2}},{id:"pois_important",type:"symbol",source:a,"source-layer":"pois",filter:["any",["<",["get","pmap:min_zoom"],13]],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":11,"text-max-width":9,"icon-padding":["interpolate",["linear"],["zoom"],0,2,14,2,16,20,17,2,22,2]},paint:{"text-color":W.subplace_label,"text-halo-color":W.subplace_label_halo,"text-halo-width":1.5}},{id:"places_locality_circle",type:"circle",source:a,"source-layer":"places",filter:["==","pmap:kind","locality"],paint:{"circle-radius":2,"circle-stroke-width":1.5,"circle-stroke-color":W.city_circle_stroke,"circle-color":W.city_circle,"circle-translate":[-6,0]},maxzoom:8},{id:"places_locality",type:"symbol",source:a,"source-layer":"places",filter:["==","pmap:kind","locality"],layout:{"text-field":"{name}","text-font":["case",["<=",["get","pmap:min_zoom"],5],["literal",["Inter-Medium"]],["literal",["Inter-Medium"]]],"text-padding":["interpolate",["linear"],["zoom"],5,3,8,7,12,11],"text-size":["interpolate",["linear"],["zoom"],2,["case",["<",["get","pmap:population_rank"],13],8,[">=",["get","pmap:population_rank"],13],13,0],4,["case",["<",["get","pmap:population_rank"],13],10,[">=",["get","pmap:population_rank"],13],15,0],6,["case",["<",["get","pmap:population_rank"],12],11,[">=",["get","pmap:population_rank"],12],17,0],8,["case",["<",["get","pmap:population_rank"],11],11,[">=",["get","pmap:population_rank"],11],18,0],10,["case",["<",["get","pmap:population_rank"],9],12,[">=",["get","pmap:population_rank"],9],20,0],15,["case",["<",["get","pmap:population_rank"],8],12,[">=",["get","pmap:population_rank"],8],22,0]],"icon-padding":["interpolate",["linear"],["zoom"],0,2,8,4,10,8,12,6,22,2],"text-anchor":["step",["zoom"],"left",8,"center"],"text-radial-offset":.2},paint:{"text-color":W.city_label,"text-halo-color":W.city_label_halo,"text-halo-width":1}},{id:"places_region",type:"symbol",source:a,"source-layer":"places",filter:["==","pmap:kind","region"],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-field":["step",["zoom"],["get","name:short"],6,["get","name"]],"text-font":["Inter-Medium"],"text-size":["interpolate",["linear"],["zoom"],3,11,7,16],"text-radial-offset":.2,"text-anchor":"center","text-transform":"uppercase"},paint:{"text-color":W.state_label,"text-halo-color":W.state_label_halo,"text-halo-width":2}},{id:"places_country",type:"symbol",source:a,"source-layer":"places",filter:["==","pmap:kind","country"],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-field":"{name}","text-font":["Inter-Medium"],"text-size":["interpolate",["linear"],["zoom"],2,["case",["<",["get","pmap:population_rank"],10],8,[">=",["get","pmap:population_rank"],10],12,0],6,["case",["<",["get","pmap:population_rank"],8],10,[">=",["get","pmap:population_rank"],8],18,0],8,["case",["<",["get","pmap:population_rank"],7],11,[">=",["get","pmap:population_rank"],7],20,0]],"icon-padding":["interpolate",["linear"],["zoom"],0,2,14,2,16,20,17,2,22,2],"text-transform":"uppercase"},paint:{"text-color":W.country_label}}])}()},[M,Z]=(0,l.useState)(null),H=(0,l.useRef)(null),O=(0,l.useCallback)((e,a)=>{H.current.flyTo({center:{lat:e,lng:a},zoom:T.center,essential:!0})},[]),B=(0,l.useCallback)((e,a)=>{H.current.jumpTo({center:{lat:e,lng:a}})},[]),D=(0,l.useCallback)(e=>{var a;let i=e.features[0];if(null==i||null==(a=i.properties)?void 0:a.id){let e=s.find(e=>e.id===i.properties.id),{lat:a,lng:t}=e;O(a,t),Z(e),g(e),(0,r.t4)({link:{name:"map_pin",text:(0,d.y4)(e.name),url:""},component:{name:"partner_map_view",type:"map",section:"unique"}})}},[s,O,g]),V=(0,l.useCallback)(e=>{let{viewState:t}=e,l={lat:t.latitude,lng:t.longitude};if(f&&l){let e={lat:Math.abs(f.lat-l.lat),lng:Math.abs(f.lng-l.lng)},{locationDifferenceAllowed:a}=E.searchThisArea;e.lat>a||e.lng>a?(b(!0),w(l)):b(!1)}if(a){let{Place:{Geometry:{Point:e}}}=a,[t,l]=e;_({lat:l,lng:t}),i(null)}},[f,a,_,i]);return(0,l.useEffect)(()=>(p().addProtocol("pmtiles",new c.Zs().tile),()=>{p().removeProtocol("pmtiles")}),[]),(0,l.useEffect)(()=>{let e=H.current,{index:a,lat:i,lng:t}=y;e&&a>=0&&i&&t&&O(i,t)},[y,H,O]),(0,l.useEffect)(()=>{let e=H.current,a=k.lat!==f.lat||k.lng!==f.lng;e&&a&&(B(f.lat,f.lng),b(!1),j(f))},[f,_,B,k]),(0,t.jsxs)(o.Ay,{ref:H,mapLib:p(),initialViewState:C,minZoom:T.min,maxZoom:T.max,mapStyle:L,interactiveLayerIds:[F.id,P.id,N.id],onClick:D,onDragEnd:V,children:[(0,t.jsx)(v,{setSeeMap:m,isMobile:u}),h&&(0,t.jsx)(S,{centerLocationDragend:x}),(0,t.jsx)(R,{getNearGyms:s,mapOSMRef:H}),(0,t.jsx)(U,{popupInfo:M,setPopupInfo:Z}),(0,t.jsx)(o.ov,{position:"bottom-right",showCompass:!1,showZoom:!u})]})})}}]);

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.