1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[324],{923:e=>{e.exports={wrapper:"yTow5C1"}},1855:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(37876),n=a(94020),l=a(57430),r=a(21162),o=a(80578),c=a.n(o);let i=e=>{let{overline:t,title:a,className:o,children:i,hType:d}=e;return(0,s.jsx)("div",{className:c().background,children:(0,s.jsxs)(r.A,{className:"".concat(c().assortedHeroRow," ").concat(o||""),children:[t&&(0,s.jsx)(l.A,{className:c().overline,children:t}),(0,s.jsx)(n.A,{h:d,children:a}),i]})})}},4856:e=>{e.exports={wrapper:"Es3YNqN",count:"FnJj1zO",label:"Vm6Uxy_"}},4991:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var s=a(37876),n=a(95415),l=a.n(n),r=a(33499),o=a.n(r);let c=e=>{let{children:t,className:a}=e;return(0,s.jsx)("div",{className:"".concat(a||""," ").concat(o().contentFilter),children:t})};a(14232);var i=a(87162),d=a.n(i),u=a(48230),p=a.n(u);let h=e=>{let{label:t,path:a,active:n,onClick:l}=e;return(0,s.jsx)(e=>{let{children:t}=e;return a?(0,s.jsx)(p(),{href:a,scroll:!1,children:t}):(0,s.jsx)(s.Fragment,{children:t})},{children:(0,s.jsx)("button",{className:"".concat(d().secondaryNavMenuItem," ").concat(n&&d().active),onClick:l,name:t,children:t})})},x=e=>{let{filters:t,handleOnChangeSelectedFilter:a,selectedGroup:n}=e;return(0,s.jsx)(c,{className:l().secondaryMenu,children:t.map((e,t)=>(0,s.jsx)(h,{label:e.label,path:e.path,onClick:a?()=>{a(t)}:void 0,active:n===t},"".concat(e.label,"-").concat(t)))})}},12663:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(37876);a(14232);var n=a(25891),l=a(62153);let r=e=>{let{freeTrialForm:t,bookATourForm:a,alwaysShowHeroImage:r,hType:o}=e;return(0,s.jsxs)(s.Fragment,{children:[t&&!a&&(0,s.jsx)(n.A,{hType:o,form:t,alwaysShowHeroImage:r}),a&&!t&&(0,s.jsx)(l.A,{hType:o,form:a,alwaysShowHeroImage:r})]})}},14591:(e,t,a)=>{"use strict";a.d(t,{qK:()=>n}),a(55248),a(84467),a(76959);var s=a(14232);function n(){let e=(0,s.useRef)(!0),t=(0,s.useRef)(()=>e.current);return(0,s.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}a(52964),new WeakMap},16541:e=>{e.exports={row:"_d1Yfb0",col:"D5wLgvc",contentRightContainer:"__6n4l4Kc",address:"TKxzXaH",phone:"mndvJGY",location:"VR714gb",viewOnMap:"JEeOWtm"}},18876:e=>{e.exports={wrapper:"B3ehW5Q",button:"dHdJzyb",label:"aHE66kW",icon:"__6_MOyPg"}},21944:e=>{e.exports={locationList:"KuFdu1O"}},23571:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(37876),n=a(94604),l=a(26941),r=a.n(l);let o=e=>{let{label:t,href:a,icon:l,newTab:o=!1,className:c}=e;return(0,s.jsx)("div",{className:"".concat(c||""," ").concat(r().container),children:(0,s.jsxs)("a",{href:a,className:r().anchor,target:o?"_blank":"_self",rel:"noreferrer",children:[(0,s.jsx)("p",{className:r().label,children:t}),l&&(0,n.A)(l)]})})}},26941:e=>{e.exports={container:"SEKXxkK",anchor:"RX4Lf26",label:"kD9RoPu"}},30884:e=>{e.exports={mapContainer:"SN3Et_H"}},32685:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>ea,default:()=>es});var s=a(37876),n=a(5811),l=a(14232),r=a(58349),o=a(80035);class c{static getInitialState(){return{clubGroups:[],selectedGroupIndex:-1,mapIsOpen:!1}}get selectedGroup(){return 1===this.state.clubGroups.length?this.state.clubGroups[0]:this.state.selectedGroupIndex<0?void 0:this.state.clubGroups[this.state.selectedGroupIndex]}get filteredClubList(){var e;return(null==(e=this.selectedGroup)?void 0:e.clubs)||[]}get filteredMapPins(){return this.filteredClubList.map(e=>{if(e.geoLocation)return{label:e.name,path:e.path,latitude:e.geoLocation.latitude,longitude:e.geoLocation.longitude}}).filter(e=>!!e)}setSelectedGroup(e){this.state.selectedGroupIndex=e}sortClubGroupsByOrder(e){let t=e.sort((e,t)=>(e.order||0)>(t.order||0)?1:-1);this.state.clubGroups=t}resetState(e){let{clubGroups:t}=e;this.state=c.getInitialState(),this.sortClubGroupsByOrder(t),this.state.clubGroups.length>0&&this.setSelectedGroup(0)}toggleMap(){this.state.mapIsOpen=!this.state.mapIsOpen}constructor(){this.state=c.getInitialState(),(0,o.l_)(this)}}var i=a(37784),d=a(56970),u=a(52854),p=a(38038),h=a(29077),x=a(93150),m=a(16541),g=a.n(m),j=a(46955),v=a(48230),b=a.n(v),w=a(23571),f=a(65845);let A=e=>{let{image:t,imageAlt:a,location:n,path:r,address:o,phone:c,t:m}=e,v=(0,l.useId)();return(0,s.jsxs)(d.A,{className:g().row,children:[(0,s.jsx)(i.A,{xs:12,md:6,lg:6,className:g().col,children:(0,s.jsx)(h.Ay,{src:t,alt:a||"",width:"100%",height:"100%",optimization:{w:1200}})}),(0,s.jsx)(i.A,{xs:12,md:6,lg:6,className:g().col,children:(0,s.jsxs)("div",{className:g().contentRightContainer,children:[(0,s.jsx)(f.A,{id:v,className:g().location,children:n}),(0,s.jsx)(w.A,{label:m("locations:viewOnMap"),href:(0,j.A)(n),icon:u.F.NewTab,className:g().viewOnMap,newTab:!0}),(0,s.jsx)(p.A,{icon:u.F.LocationPin,text:o,className:g().address}),(0,s.jsx)("a",{href:"tel:".concat(c),children:(0,s.jsx)(p.A,{icon:u.F.Phone,text:c,className:g().phone})}),(0,s.jsx)(b(),{href:r,"aria-describedby":v,children:(0,s.jsx)(x.A,{label:m("locations:findOutMore"),icon:u.F.RightArrow,priority:"secondary",renderAs:"span"})})]})})]})};var N=a(34846),y=a(4991),_=a(92026),k=a(89099),C=a(646),I=a(4856),G=a.n(I);let S=e=>{let{count:t,label:a,className:n,id:l}=e;return(0,s.jsxs)("div",{id:l,className:"".concat(G().wrapper," ").concat(n||""),"aria-live":"polite","aria-atomic":"true",children:[(0,s.jsx)("span",{className:"h1 primaryH ".concat(G().count),children:t}),(0,s.jsx)("span",{className:"h2 ".concat(G().label),children:a})]})};var L=a(43712),E=a.n(L),O=a(18876),B=a.n(O),P=a(19670);let W=e=>{let{title:t}=e;return(0,s.jsxs)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...(0,P.U)(t),children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_14545_75161)",children:[(0,s.jsx)("line",{x1:"4.99792",y1:"12.5107",x2:"19.0529",y2:"12.5107",stroke:"#E10A0A",strokeWidth:"1.75"}),(0,s.jsx)("line",{x1:"12.0083",y1:"5.50098",x2:"12.0083",y2:"19.5871",stroke:"#E10A0A",strokeWidth:"1.75"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_14545_75161",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]})},F=e=>{let{title:t}=e;return(0,s.jsxs)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...(0,P.U)(t),children:[(0,s.jsx)("g",{clipPath:"url(#clip0_14545_75814)",children:(0,s.jsx)("line",{x1:"4.99792",y1:"12.5107",x2:"19.0529",y2:"12.5107",stroke:"#E10A0A",strokeWidth:"1.75"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_14545_75814",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]})},M=e=>{let{toggleLabel:t,open:a,className:n,controlsId:l,onToggle:r}=e;return(0,s.jsx)("div",{className:"h5 ".concat(B().wrapper," ").concat(n||""),children:(0,s.jsxs)("button",{type:"button",className:B().button,"aria-expanded":a,"aria-controls":l,onClick:r,children:[(0,s.jsx)("span",{className:B().label,children:t}),(0,s.jsx)("span",{className:B().icon,"aria-hidden":"true",children:a?(0,s.jsx)(F,{}):(0,s.jsx)(W,{})})]})})};var R=a(21162),T=a(62945),K=a(30884),H=a.n(K),z=a(22154),U=a(68239);let q={height:"100%",width:"100%"},Q=e=>{let{t,mapPins:a}=e,[n,r]=(0,l.useState)({openInfoWindowKey:void 0}),[o,c]=(0,l.useState)(null),i=(0,l.useCallback)(e=>{r({openInfoWindowKey:e})},[r]),d=(0,l.useCallback)(()=>{r({openInfoWindowKey:void 0})},[r]),u=(0,l.useCallback)((e,t)=>{let a=new google.maps.LatLngBounds;for(let e of t)a.extend({lat:e.latitude,lng:e.longitude});e.fitBounds(a),e.panToBounds(a);let s=google.maps.event.addListener(e,"idle",function(){let t=e.getZoom();t&&t>15&&e.setZoom(15),google.maps.event.removeListener(s)})},[]),p=(0,l.useCallback)(e=>{c(e)},[]),h=(0,l.useCallback)(()=>{c(null)},[]);return(0,l.useEffect)(()=>{o&&(d(),u(o,a))},[o,u,a,d]),(0,s.jsx)(T.u6,{mapContainerStyle:q,zoom:15,onLoad:p,onUnmount:h,mapTypeId:"roadmap",options:{mapTypeControl:!1,clickableIcons:!1},children:a.map((e,a)=>{let l="map-pin-".concat(e.label,"-").concat(a);return(0,s.jsx)(T.pH,{position:{lat:e.latitude,lng:e.longitude},title:e.label,onClick:()=>i(l),children:n.openInfoWindowKey===l&&(0,s.jsx)(T.Fu,{onCloseClick:()=>d(),position:{lat:e.latitude,lng:e.longitude},options:{headerContent:e.label},children:(0,s.jsxs)("div",{children:[t("viewClub")," ",(0,s.jsx)(b(),{href:e.path,children:(0,s.jsx)("strong",{children:e.label})})]})})},l)})})},X=e=>{let t=(0,z.zj)(),{scriptReady:a}
1=(0,U.W)({src:"https://maps.googleapis.com/maps/api/js?key=".concat(t.publicConfig.googleMapsKey,"&v=weekly&language=").concat(e.locale),id:"va-google-maps-js"});return(0,s.jsxs)("div",{className:H().mapContainer,role:"region","aria-label":e.t("mapLabel"),children:[(0,s.jsx)("p",{className:"visually-hidden",children:e.t("mapListHint")}),a?(0,s.jsx)(Q,{...e}):(0,s.jsx)(s.Fragment,{})]})},D="locations-map",J="locations-counter",Y=(0,n.PA)(e=>{let{t,locationCount:a,open:n,locale:l,mapPins:r,onToggle:o}=e;return(0,s.jsxs)(R.A,{className:E().container,fluid:"lg",children:[(0,s.jsxs)("div",{className:"".concat(E().header," ").concat(n?E().open:""),children:[(0,s.jsx)(S,{id:J,count:a,label:t(1===a?"location":"locations"),className:E().counter}),(0,s.jsx)(M,{toggleLabel:t("viewAll"),open:n,className:E().toggle,controlsId:D,onToggle:o})]}),(0,s.jsx)("div",{id:D,children:n&&(0,s.jsx)(X,{t:t,locale:l,mapPins:r})})]})});var Z=a(21944),V=a.n(Z),$=a(1855),ee=a(12663);let et=(0,n.PA)(e=>{let{overline:t,header:a,clubGroups:n,form:o,metaData:i}=e,{t:d}=(0,N.Bd)(["locations","common"]),u=(0,k.useRouter)().locale||C.y,[p]=(0,l.useState)(()=>{let e=new c;return e.resetState({clubGroups:n}),e});return(0,l.useEffect)(()=>{p.resetState({clubGroups:n})},[n,p]),(0,s.jsxs)(r.A,{children:[(0,s.jsx)(_.A,{...i}),(0,s.jsx)($.A,{hType:"h1",title:a,overline:t}),p.state.clubGroups.length>1&&(0,s.jsx)(y.A,{filters:p.state.clubGroups.map(e=>({label:e.label})),handleOnChangeSelectedFilter:e=>p.setSelectedGroup(e),selectedGroup:p.state.selectedGroupIndex}),(0,s.jsx)(Y,{t:d,locale:u,mapPins:p.filteredMapPins,open:p.state.mapIsOpen,onToggle:()=>p.toggleMap(),locationCount:p.filteredClubList.length}),(0,s.jsx)(R.A,{className:V().locationList,fluid:"lg",children:(0,s.jsx)("ul",{className:"list-unstyled","aria-labelledby":J,children:p.filteredClubList.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(A,{image:e.image,imageAlt:e.imageAlt,location:e.name,path:e.path,address:e.address,phone:e.phoneNumber,t:d})},e.path))})}),(0,s.jsx)(ee.A,{...o})]})});var ea=!0;let es=et},33499:e=>{e.exports={contentFilter:"v_rBQBW"}},33939:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(15039),n=a.n(s),l=a(14232),r=a(77346),o=a(37876);let c=l.forwardRef((e,t)=>{let{bsPrefix:a,variant:s,animation:l="border",size:c,as:i="div",className:d,...u}=e;a=(0,r.oU)(a,"spinner");let p="".concat(a,"-").concat(l);return(0,o.jsx)(i,{ref:t,...u,className:n()(d,p,c&&"".concat(p,"-").concat(c),s&&"text-".concat(s))})});c.displayName="Spinner";let i=c},38038:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(37876),n=a(48073),l=a(94604),r=a(75436),o=a.n(r);let c=e=>{let{icon:t,text:a,className:r}=e;return(0,s.jsxs)("div",{className:"".concat(r||""," ").concat(o().p1BookWithIconContainer),children:[(0,l.A)(t),(0,s.jsx)(n.A,{children:a})]})}},43712:e=>{e.exports={container:"wQu9xo2",header:"_koUxzD",open:"cZPqip3",counter:"b9B2CgD",toggle:"ryuB6_o"}},46955:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=e=>"https://www.google.com/maps/search/?api=1&query=".concat(encodeURIComponent('"Virgin Active" '.concat(e)))},48073:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(37876);a(14232);var n=a(43480),l=a.n(n);let r=e=>{let{children:t,className:a}=e;return t?(0,s.jsx)("p",{className:"".concat(l().p1Book," ").concat(a||""),children:t}):(0,s.jsx)(s.Fragment,{})}},57430:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(37876);a(14232);var n=a(88325),l=a.n(n);let r=e=>{let{children:t,className:a}=e;return t?(0,s.jsxs)("p",{className:"".concat(l().overlineLarge," ").concat(a||""),"data-testid":"overline-large",children:[(0,s.jsx)("span",{"aria-hidden":"true",children:t}),(0,s.jsx)("span",{className:"visually-hidden ".concat(l().spoken),children:t})]}):(0,s.jsx)(s.Fragment,{})}},58349:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(37876);a(14232);var n=a(923),l=a.n(n);let r=e=>{let{className:t="",children:a}=e;return(0,s.jsx)("div",{className:"".concat(l().wrapper," ").concat(t),children:a})}},68239:(e,t,a)=>{"use strict";a.d(t,{W:()=>u});var s=a(14232),n=a(22154),l=a(99221);let r=/[\w\-:.]+/g,o=e=>{let{id:t,src:a}=e,s=(0,n.zj)(),l=((t||a).match(r)||[]).join("");return"s-".concat(l,"-b-").concat(s.buildId)},c=e=>window.document.getElementById(e),i=e=>{let t=c(e);return!!t&&"true"===t.getAttribute("data-loaded")},d=e=>{let{src:t,scriptId:a,onLoad:s}=e,n=window.document.createElement("script");n.onload=()=>{s(n)},n.id=a,n.src=t,window.document.head.appendChild(n)},u=e=>{let{id:t,src:a}=e,n=(0,l.a)(),r=(0,s.useMemo)(()=>o({id:t,src:a}
1),[t,a]),[u,p]=(0,s.useState)(i(r)),h=(0,s.useRef)();h.current=u;let x=(0,s.useCallback)(()=>!!h.current||!!i(r)&&(n()&&p(!0),!0),[n,p]),m=(0,s.useCallback)(e=>{e.setAttribute("data-loaded","true"),n()&&p(!0)},[n,p]);return(0,s.useEffect)(()=>{let e;if(!x())return c(r)?e=window.setInterval(()=>{x()&&clearInterval(e)},50):d({src:a,scriptId:r,onLoad:m}),()=>{clearInterval(e)}}),{scriptReady:u}}},75436:e=>{e.exports={p1BookWithIconContainer:"SlccPhK"}},76361:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/locations",function(){return a(32685)}])},80578:e=>{e.exports={background:"bU6tSu7",assortedHeroRow:"ivaY_Ox",overline:"__0WQEtmq"}},87162:e=>{e.exports={secondaryNavMenuItem:"ZQqb1j_",active:"b7ss8bQ"}},88325:e=>{e.exports={overlineLarge:"gkG4t_w",spoken:"O564_EB"}},94020:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(37876);a(14232);var n=a(66482);let l=e=>{let{children:t,className:a,h:l}=e;return(0,s.jsx)(n.A,{className:"display2 ".concat(a||""),h:l,children:t})}},95415:e=>{e.exports={secondaryMenu:"__2KFenm8"}},99221:(e,t,a)=>{"use strict";a.d(t,{a:()=>n});var s=a(14232);let n=()=>{let e=(0,s.useRef)(!1);return(0,s.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,s.useCallback)(()=>e.current,[])}}},e=>{var t=t=>e(e.s=t);e.O(0,[9507,9759,1040,6649,1944,5811,1971,6263,7509,132,4859,636,6593,8792],()=>t(76361)),_N_E=e.O()}]);
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.