import{a as re,b as pe,l as Le,_ as st,d as at,f as rt}from"./BITtZpNW.js";import{aB as Be,h as O,k as J,j as R,a as Pe,o as te,F as e,e as n,c as s,d as l,g as h,T as V,U as D,P as ee,aq as ae,Y as Ee,V as y,t as v,f as $,aH as it,u as Fe,L as C,l as ct,m as H,p as K,y as ut,H as ie,aI as dt,aJ as mt,aK as Se,aw as pt,n as k,w as E,a2 as He,ac as ft,A as je,aD as Ne,aE as Ve,a7 as fe,$ as gt,aa as _t,C as S,a4 as ne,q as ge,E as P,_ as Y,z as vt,aL as _e,D as me,ab as se,N as bt,i as qe,G as xt,aM as ht,av as De,a1 as Re,r as wt,aN as Oe,aO as kt,ad as yt,a8 as $t,a9 as Ct,aj as Tt,M as Ie,O as At,a3 as Mt,ar as Ge,s as zt,aG as It,a5 as Lt}from"./CSGWN0Ke.js";import{_ as Bt}from"./CACbI3dU.js";import{_ as Pt}from"./CShp31w2.js";import{_ as ve}from"./RssLZfLx.js";import{_ as Et}from"./jIHJlXwJ.js";import{u as be}from"./00Wz9xmJ.js";import{H as Ft}from"./BR7tlqX7.js";import{_ as St}from"./CmkmSyDw.js";import"./CoNkNGrd.js";import"./DCT9NofI.js";import"./CQUIIwxN.js";const Ht=()=>Be("langChooserState",()=>!1),jt={key:0,class:"language-chooser fixed w-full h-screen z-50"},Nt={class:"w-full h-full flex justify-center items-center"},Vt={class:"w-full max-w-post-card relative z-30 px-4"},qt={class:"relative font-serif text-lg tracking-normal bg-white"},Dt={class:"flex items-center font-sans text-sm md:text-base tracking-wider uppercase text-left border-b border-black p-6"},Rt={class:"flex flex-col w-full px-6 py-4"},Ot=["onClick"],Gt=["src"],Wt=!0,Ut=O({__name:"LanguageChooserGeoIp",setup(A){const t=J(),a=R();Pe();const b=Ht(),o={en:["English","/flags/flag_gb.png"],de:["Deutsch","/flags/flag_de.png"],fr:["Francais","/flags/flag_fr.png"],it:["Italiano","/flags/flag_it.png"],nl:["Nederlands","/flags/flag_nl.png"]};te(()=>{if(_("s-preflang")===""&&navigator.language.length){const m=navigator.language.toLocaleLowerCase().substring(0,2);a.params.lang.split("-")[0]!==m&&(b.value=!0)}});function x(m){document.cookie="s-preflang="+m+"; path=/",m.toLocaleLowerCase()!==a.params.lang.toLocaleLowerCase()&&(window.location="/"+m),r()}function _(m){const c=document.cookie.split("; ").find(f=>f.startsWith(m+"="));return c!==void 0?c.split("=")[1]:""}function r(){document.cookie="s-preflang="+a.params.lang+"; path=/",b.value=!1}return(m,c)=>{const f=re,g=pe;return e(b)&&e(a).name==="lang"?(n(),s("div",jt,[l("div",Nt,[l("div",Vt,[l("div",qt,[l("div",null,[l("span",Dt,[l("button",{class:"focus:outline-gbl ml-auto",onClick:c[0]||(c[0]=T=>r())},[h(f,{class:"transform rotate-45"})])]),l("ul",Rt,[(n(!0),s(V,null,D(e(t),(T,d)=>ee((n(),s("li",{key:T,class:""},[l("button",{class:"flex items-center w-full focus:outline-gbl border-b border-grey-300 transition-colors duration-300 ease-in-out hover:bg-grey-100 py-2",onClick:w=>x(d)},[l("img",{class:"w-5 mr-3",src:o[d][1]},null,8,Gt),y(" "+v(o[d][0])+" ",1),h(g,{class:"w-3 ml-auto"})],8,Ot)],512)),[[ae,d===(m._.provides[Ee]||m.$route).params.lang||Wt]])),128))])])])]),l("div",{class:"veil z-20 w-full h-full absolute bg-black opacity-50",onClick:c[1]||(c[1]=T=>r())})])])):$("",!0)}}}),Zt=["id"],Jt={class:"flex flex-col justify-between w-full h-full relative z-20"},Kt={class:"max-w-site font-serif text-center tracking-wider text-4xl lg:text-7xl text-white uppercase mx-auto px-6 lg:px-12",style:{transform:"translate3d(0, calc(var(--parallax-value) * 1px), 0)","will-change":"transform"}},Yt={class:"takeover-content flex flex-col items-center lg:w-1/4"},Qt={class:"takeover-body font-serif text-xl text-center text-white mb-6"},Xt={class:"takeover-btn flex mb-12 lg:mb-0 text-white"},en={class:"takeover-prompt font-sans uppercase text-xs text-white"},tn={key:0,class:"absolute top-0 left-0 h-full w-full overflow-hidden cover-video"},nn={key:0,class:"flex items-center justify-center h-full bg-red-300"},ln=["src"],on={key:1,class:"absolute top-0 left-0 w-full h-full z-10"},sn=O({__name:"CampaignTakeover",async setup(A){var B;let t,a;const b=it("showCampaign",{path:"/",maxAge:1800}),{client:o}=Fe(),x=C(!1),_=C(!1),r=C(!1),m=C(!1),c=C(!1),f=C(null),g=ct(),T=R(),d=([t,a]=H(()=>K()),t=await t,a(),t),w=C(null),M=ut(),i=C(null);if(d.value&&((B=d.value.data.campaign_takeover)!=null&&B.uid)){const{data:u}=([t,a]=H(()=>{var z;return ie((z=d.value.data.campaign_takeover)==null?void 0:z.uid,()=>{var N;return o.getByUID("campaign_takeover",(N=d.value.data.campaign_takeover)==null?void 0:N.uid,{lang:g.value})},"$p7owy2n5ZO")}),t=await t,a(),t);i.value=u.value}else i.value=null;const F=C(!1);dt(()=>{r.value=!0}),mt(()=>T.fullPath,()=>{F.value=!1,i.value=null}),Se(()=>{i.value&&i.value.data&&(w.value=window.screen.width<768?i.value.data.campaign_video_mobile:i.value.data.campaign_video)}),te(()=>{var z;const u=document.createElement("video");u.onerror=()=>{m.value=!0},u.onload=()=>{if(i.value&&"data"in i.value&&i.value.data.campaign_video&&"IntersectionObserver"in window){setTimeout(()=>{f.paused&&(_.value=!0)},1e3);const N=new IntersectionObserver((q,U)=>{f&&q[0].isIntersecting&&x.value===!1?f.play():x.value&&f&&f.pause()});f.value&&N.observe(f.value)}},u.src=(z=i.value)!=null&&z.data?i.value.data.campaign_video:"",i&&i.value&&b.value!==i.value.id&&!r.value?(F.value=!0,b.value=i.value.id):F.value=!1});function j(){f.value&&f.value.addEventListener("suspend",()=>{f.value&&!x.value&&(c.value=!0)})}return(u,z)=>{var Z;const N=He,q=ve,U=ft,G=pt("prlx");return e(i)&&!e(M)&&e(F)?(n(),s("section",{key:0,id:e(i).id,class:"relative w-full h-screen px-1em1vw pb-5 lg:pb-8 z-30"},[l("div",Jt,[h(N,{id:"TakeoverLogo",class:"w-logo-s lg:w-logo-l text-white mx-auto min-h-16 mt-5"}),ee((n(),s("h2",Kt,[y(v(u.$prismic.asText((Z=e(i).data)==null?void 0:Z.campaign_headline)),1)])),[[G,{custom:!0,reverse:!1,preserveInitialPosition:!1,speed:.4}]]),l("div",{class:k(["takeover-"+e(i).data.campaign_body_position,"flex flex-col items-center z-20"])},[l("div",Yt,[l("p",Qt,v(e(i).data.campaign_body[0].text),1),l("div",Xt,[h(q,{document:e(i).data.campaign_link,class:k(u.$styling("button__secondary"))},{default:E(()=>[y(v(e(i).data.campaign_link_text),1)]),_:1},8,["document","class"])])]),l("p",en,v(u.$prismic.asText(e(i).data.scroll_prompt_text)),1)],2)]),!e(c)&&!e(m)&&e(i).data.campaign_video?(n(),s("div",tn,[e(_)&&!e(x)?(n(),s("div",nn,z[2]||(z[2]=[l("svg",{class:"animate-spin h-10 w-10 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0A12 12 0 000 12h4zm2 5.3A7.96 7.96 0 014 12H0c0 3.04 1.14 5.82 3 7.94l3-2.65z"})],-1)]))):$("",!0),l("video",{ref_key:"takeovervideo",ref:f,playsinline:"",autoplay:"",muted:"",loop:"",class:"nl-md:max-w-none",onPlay:z[0]||(z[0]=W=>x.value=!0),onPause:z[1]||(z[1]=W=>x.value=!1),onLoadeddata:j},[l("source",{type:"video/mp4",src:e(w)},null,8,ln)],544)])):(n(),s("div",on,[h(U,{field:e(i).data.campaign_image.xlargeorientland,class:"object-cover w-full h-full max-w-none"},null,8,["field"])]))],8,Zt)):$("",!0)}}}),an=async()=>{var c;const{API_CMS:A}=je().public,a=Ne(A),b=Ve(a),o=R(),x=J(),{data:_,error:r}=await ie("globalAnnouncement",()=>b.getSingle("global_announ",{lang:x.value[o.params.lang]}));return(c=_.value)==null?void 0:c.data},rn={class:"text-white font-sans text-xs uppercase md:w-1/2 mr-2"},cn={key:0,class:"inline-flex text-white"},un={key:0,class:"text-white md:w-1/2"},dn={key:0},mn={class:"font-sans text-xs md:text-right my-2"},pn={__name:"AnnouncementBar",async setup(A){let t,a;const b=R(),o=([t,a]=H(()=>K()),t=await t,a(),t),x=fe(),_=gt(),r=([t,a]=H(()=>an()),t=await t,a(),t),m=_t(),c=C(!1),f=S(()=>!!(b.params.controller&&o.value)),g=S(()=>{if(f.value&&o.value){const B={};if(o.value.data.club_announcement_headline&&o.value.data.club_announcement_headline.length){const u=o.value.data.club_announcement_link;u.location=o.value.uid,B.headline=o.value.data.club_announcement_headline,B.link=u,B.link_text=o.value.data.club_announcement_link_text}return o.value.data.show_covid_guarantee&&this.covidGuarantee&&(B.covid_headline=_.covid_guarantee_headline,B.covid_text=_.covid_guarantee_text),B}else return{headline:r?r.global_announcement_headline:"",link:r?r.global_announcement_link:"",link_text:r?r.global_announcement_link_text:""}}),T=S(()=>g.value&&g.value.headline&&g.value.headline[0].text?(m.value=!0,!0):!1),d=S(()=>g.value&&g.value.covid_headline&&g.value.covid_headline[0].text?(m.value=!0,!0):!1),w=S(()=>({"text-black":b.name.includes("lang-on-demand")})),M=S(()=>7),i=S(()=>7),F=S(()=>15),j=S(()=>15);return(B,u)=>{const z=ne,N=re;return e(T)||e(d)?(n(),s("section",{key:0,class:k(["relative w-full md:flex md:justify-between md:h-auto bg-red-500 transform duration-300 px-1em1vw py-2 z-10",{"nl-md:-my-16":e(x)}])},[l("div",rn,[l("p",{class:k(["inline pr-1",e(w)])},v(B.$prismic.asText(e(g).headline)),3),B.$prismic.asText(e(g).link_text)?(n(),s("div",cn,[h(z,{class:"nav-item relative font-sans text-xs uppercase focus:outline-gbl",field:e(g).link},{default:E(()=>[y(v(B.$prismic.asText(e(g).link_text))+" ",1),u[2]||(u[2]=l("span",{class:"nav-item-underline-reverse bg-white"},null,-1))]),_:1},8,["field"]),h(N,{width:e(M),height:e(i),class:"self-center ml-2"},null,8,["width","height"])])):$("",!0)]),e(d)?(n(),s("div",un,[l("button",{class:"flex nav-item relative font-sans text-xs uppercase tracking-wider focus:outline-gbl md:ml-auto",onClick:u[0]||(u[0]=q=>c.value=!e(c))},[y(v(B.$prismic.asText(e(g).covid_headline))+" ",1),u[3]||(u[3]=l("span",{class:"nav-item-underline-reverse bg-white"},null,-1))]),e(c)?(n(),s("div",dn,[l("p",mn,v(B.$prismic.asText(e(g).covid_text)),1),l("button",{class:"flex justify-end items-center font-sans text-xs uppercase tracking-wider focus:outline-gbl ml-auto",onClick:u[1]||(u[1]=q=>c.value=!e(c))},[u[4]||(u[4]=y(" Close ")),h(N,{width:e(F),height:e(j),class:"transform rotate-45 ml-1"},null,8,["width","height"])])])):$("",!0)])):$("",!0)],2)):$("",!0)}}},fn={key:0},gn=["href"],We=O({__name:"ClubMenu",emits:["closeMenu"],async setup(A,{emit:t}){let a,b;[a,b]=H(()=>ge()),a=await a,b();const o=K(),x=t;return(_,r)=>{const m=ve;return e(o)?(n(),s("ul",fn,[(n(!0),s(V,null,D(e(o).data.club_pages,c=>(n(),s(V,null,[!c.link.isBroken&&!c.hide_from_club_navigation?(n(),s("li",{key:_.$prismic.asText(c.label),class:"text-lg md:text-xs uppercase pr-4 nl-md:py-2",onClick:r[0]||(r[0]=f=>x("closeMenu"))},[c.open_pdf_in_new_window?(n(),s("a",{key:0,href:c.link.url,target:"_blank",rel:"nofollow"},[y(v(_.$prismic.asText(c.label))+" ",1),r[1]||(r[1]=l("span",{class:"nav-item-underline bg-current"},null,-1))],8,gn)):(n(),P(m,{key:1,document:c.link,class:"nav-item relative nl-md:w-content focus:outline-gbl"},{default:E(()=>[y(v(_.$prismic.asText(c.label))+" ",1),r[2]||(r[2]=l("span",{class:"nav-item-underline bg-current"},null,-1))]),_:2},1032,["document"]))])):$("",!0)],64))),256))])):$("",!0)}}}),_n={props:{colour:{type:Object,default:()=>{}}}};function vn(A,t,a,b,o,x){return n(),s("div",null,[l("span",{class:k(["block w-6 h-px bg-current",a.colour])},null,2),l("span",{class:k(["block w-6 h-px bg-current my-1.25",a.colour])},null,2),l("span",{class:k(["block w-6 h-px bg-current",a.colour])},null,2)])}const bn=Y(_n,[["render",vn]]),xn={props:{colour:{type:String,default:"black"}}},hn={width:"12.514",height:"6.963",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.514 6.963"};function wn(A,t,a,b,o,x){return n(),s("svg",hn,t[0]||(t[0]=[l("path",{"data-name":"ArrowDown",d:"M.354.353l5.9 5.9 5.9-5.9",fill:"none",class:"stroke-current"},null,-1)]))}const Ue=Y(xn,[["render",wn]]),kn={class:"border-b border-grey-700 md:border-none py-4 md:py-0"},yn={class:"md:hidden mr-12"},$n=["onClick"],Ze=O({__name:"LanguageChooser",async setup(A){let t,a;const b=C(!1),o=vt(),{client:x}=Fe(),_=R(),r=J(),m=([t,a]=H(()=>_e()),t=await t,a(),t);async function c(f,g){if(g===_.params.lang)return;const{club:T,club_page:d}=o.value;let w=null;if(_.name==="lang-controller-uid"&&d.length>0){const M=d.find(i=>i.lang===f);if(M){const{data:i}=await ie(M.id,()=>x.getByID(M.id,{lang:M.lang}),"$1760tSMyt9");i.value&&(w=me(i.value))}else _.lang===f&&T.length>0&&(w=me(T[0]))}else if(_.name==="lang-controller"&&T.length>0){const M=T.find(i=>i.lang===f);M&&(w=me(M))}window.location=w||`/${g}`}return(f,g)=>{const T=Ue;return n(),s("div",kn,[l("div",{class:"w-content flex relative text-base md:text-2xs lg:text-xs uppercase md:border-l border-grey-300 cursor-pointer md:mb-0 ml-auto md:ml-4",onClick:g[0]||(g[0]=d=>b.value=!e(b))},[l("span",yn,v(e(m).language_selector||"Language")+": ",1),l("ul",{class:k([{"bg-white text-black":e(b)},"flex flex-col absolute top-0 right-0 md:right-auto z-30 transition-transform duration-500 ease-in-out ml-2 mr-5 md:mr-0 md:ml-0 px-2 md:pl-4 md:pr-0"])},[(n(!0),s(V,null,D(e(r),(d,w)=>ee((n(),s("li",{key:d,class:"uppercase list-none cursor-pointer md:w-10"},[e(b)?(n(),s("button",{key:0,class:"focus:outline-gbl uppercase",onClick:M=>c(d,w)},v(w),9,$n)):(n(),s(V,{key:1},[y(v(w),1)],64))],512)),[[ae,w===(f._.provides[Ee]||f.$route).params.lang||e(b)]])),128))],2),h(T,{class:k([{"flip-arrow-vertical md:text-black":e(b)},"md:self-center relative z-1 transition-transform duration-700 ease-in-out origin-center mt-2 md:mt-0 ml-2 md:ml-10"])},null,8,["class"])])])}}}),Cn={},Tn={class:"inline-block fill-current",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15.998",viewBox:"0 0 15.513 15.998"};function An(A,t){return n(),s("svg",Tn,t[0]||(t[0]=[l("path",{id:"Wide_arrow","data-name":"Wide arrow",d:"M-12.113,40.306l-7.351,7.555a.484.484,0,0,1-.653.021.456.456,0,0,1-.022-.632l6.619-6.805H-27.052A.453.453,0,0,1-27.512,40a.453.453,0,0,1,.459-.444H-13.52l-6.619-6.805a.453.453,0,0,1,.022-.632.479.479,0,0,1,.653.021l7.351,7.555a.466.466,0,0,1,0,.611Z",transform:"translate(-11.999 47.998) rotate(180)"},null,-1)]))}const Mn=Y(Cn,[["render",An]]),zn=async()=>{const{API_CMS:A}=je().public,a=Ne(A),b=Ve(a),o=R(),x=J(),{data:_,error:r}=await ie(`club-${o.params.lang}`,async()=>{const m=b.getAllByType("location",{lang:"en-gb"});let c=[...await m];return o.params.lang!=="en"&&(c=[...await b.getAllByType("location",{lang:x.value[o.params.lang]}),...await m],c=c.filter((g,T,d)=>d.findIndex(w=>w.uid===g.uid)===T),c.forEach(g=>{g.lang==="en-gb"&&(g.data.order=6)})),c});return _||null},In={key:"clubExplorerHeader",class:"transition relative left-0 md:h-screen w-full md:bg-white border-t border-grey-700 overflow-hidden"},Ln=["onMouseover"],Bn={class:"align-text-bottom"},Pn={key:1,class:"uppercase text-grey-700 text-base"},En={class:"pl-8"},Fn={key:1,class:"w-full md:hidden"},Sn={key:"clubExplorerLocationPanel",class:"relative hidden md:flex flex-col min-h-full h-screen-head w-1/2 lg:w-1/3 md:max-w-md bg-white z-10 p-10 overflow-y-scroll pb-72"},Hn={class:"align-text-bottom"},jn={class:"uppercase tracking-wider py-4"},Nn={class:"font-serif text-lg tracking-normal leading-tight"},Vn={class:"order-10"},qn={class:"flex flex-col"},Dn=["srcset"],Rn=["srcset"],On=["src","alt"],Gn=O({__name:"ChooseClub",async setup(A){let t,a;R();const b=K(),o=([t,a]=H(()=>zn()),t=await t,a(),t),x=([t,a]=H(()=>be()),t=await t,a(),t),_=fe(),r=([t,a]=H(()=>ge()),t=await t,a(),t),m=C(null),c=C(null),f=C(!0),g=C(),T=C("0");return(d,w)=>{const M=Ze,i=pe,F=ne,j=Mn,B=We;return n(),P(se,{name:"choosefade"},{default:E(()=>[e(_)?(n(),s("section",In,[h(M,{class:"md:hidden"}),l("div",{class:k(["flex flex-row md:h-full text-white md:text-black transition-transform duration-300",{"transform nl-md:-translate-x-1/2":e(f)&&e(r),"nl-md:w-fullx2":e(r)}])},[e(o)&&e(_)?(n(),s("div",{key:0,ref_key:"firstcol",ref:g,class:"relative flex flex-col h-full w-full md:w-1/2 lg:w-1/3 md:max-w-md md:bg-white md:border-r md:border-grey-300 overflow-y-scroll py-10 md:py-20 md:px-1em1vw z-20"},[(n(!0),s(V,null,D(e(o),u=>(n(),s("div",{key:d.$prismic.asText(u.data.location_title),class:k(["pb-7",{"order-1":u.data.order===1,"order-2":u.data.order===2,"order-3":u.data.order===3,"order-4":u.data.order===4,"order-5":u.data.order===5,"order-6":u.data.order===6}]),onMouseover:z=>c.value=u.data},[Le(u.data.location_page)?(n(),P(F,{key:0,field:u.data.location_page,class:"uppercase text-grey-700 text-base"},{default:E(()=>[y(v(d.$prismic.asText(u.data.location_title))+" ",1),l("span",Bn,[h(i)])]),_:2},1032,["field"])):(n(),s("h3",Pn,v(d.$prismic.asText(u.data.location_title)),1)),(n(!0),s(V,null,D(u.data.clubs,z=>(n(),s("div",En,[h(F,{field:z.relation,class:"font-serif text-2xl md:text-3xl leading-tight"},{default:E(()=>[y(v(d.$prismic.asText(z.title)),1)]),_:2},1032,["field"])]))),256))],42,Ln))),128))],512)):$("",!0),e(r)?(n(),s("div",Fn,[l("button",{class:k(["relative z-20 uppercase text-grey-500 tracking-widest text-xs py-4 transition-transform duration-300 focus:outline-none",{"transform -translate-x-full":!e(f)}]),onClick:w[0]||(w[0]=u=>f.value=!e(f))},[e(f)?(n(),P(j,{key:0,class:"mr-2"})):(n(),P(i,{key:1,class:"mr-2"})),y(" "+v(d.$prismic.asText(e(b).data.club_title)),1)],2),h(B,{class:"flex flex-col w-full h-full z-20 pt-2 pb-6"})])):$("",!0),h(se,{name:"slidein"},{default:E(()=>[e(m)?(n(),s("div",Sn,[e(m).location_page?(n(),P(F,{key:0,field:e(m).location_page,class:"uppercase"},{default:E(()=>[y(v(e(x).explore||"Explore")+" "+v(d.$prismic.asText(e(m).location_title))+" ",1),l("span",Hn,[h(i)])]),_:1},8,["field"])):$("",!0),l("ul",{class:k(["opacity-0 max-w-xs py-6",{"animate-fade-in":e(m)}])},[(n(!0),s(V,null,D(e(m).clubs,u=>(n(),s("li",{key:u.relation.id,class:"py-6"},[h(F,{field:u.relation,class:"font-serif text-3xl"},{default:E(()=>[y(v(d.$prismic.asText(u.title)),1)]),_:2},1032,["field"]),l("h3",jn,v(d.$prismic.asText(u.address)),1),l("h4",Nn,v(d.$prismic.asText(u.summary)),1)]))),128))],2),l("div",Vn,[w[2]||(w[2]=l("div",{class:"border-t border-solid my-5"},null,-1)),l("ul",qn,[(n(!0),s(V,null,D(e(m).navigation,u=>(n(),s("li",{key:u.id,class:"py-1"},[h(F,{field:u.link,class:"text-white md:text-black font-serif text-lg"},{default:E(()=>[y(v(u.link_title),1)]),_:2},1032,["field"])]))),128))])])])):$("",!0)]),_:1}),h(se,{name:"fade"},{default:E(()=>[e(c)&&"xlargeorientland"in e(c).location_image&&"url"in e(c).location_image.xlargeorientland?(n(),s("div",{key:e(c).location_image.url,class:"absolute top-0 right-0 w-full h-full nl-md:hidden",style:bt(`width:calc(100% - ${e(T)}px)`),onMouseover:w[1]||(w[1]=u=>c.value=null)},[l("picture",null,[l("source",{srcset:e(c).location_image.mediumorientland.url,media:"(max-width: 1200px)"},null,8,Dn),l("source",{srcset:e(c).location_image.largeorientland.url,media:"(max-width: 1600px)"},null,8,Rn),l("img",{src:e(c).location_image.xlargeorientland.url,alt:e(c).location_image.alt||d.$prismic.asText(e(c).location_title),class:"h-full w-full object-cover"},null,8,On)])],36)):$("",!0)]),_:1})],2)])):$("",!0)]),_:1})}}}),Wn=Y(Gn,[["__scopeId","data-v-fc87d7fa"]]),Un={id:"HeaderLogo",class:"relative flex items-center md:justify-center lg:justify-start xl:justify-center xl:flex-grow md:border-b md:border-grey-300 lg:border-none h-16 md:h-18 lg:h-24 w-1/2 md:w-full lg:w-1/5 xl:w-auto md:px-1em1vw xl:px-0 md:order-1 xl:order-2"},Zn={class:"hidden md:flex items-center xl:flex-grow md:w-content xl:w-2/5 md:h-10 lg:h-full md:pl-1em1vw lg:pl-0 xl:pl-1em1vw md:order-2 wd:order-1"},Jn={key:1,class:"hidden md:flex items-center h-full"},Kn={class:"flex md:border-l border-grey-300 h-full items-center ml-auto"},Yn={class:"flex flex-col md:flex-row md:justify-end nl-md:pt-10 mb-24 md:mb-0"},Qn=["href"],Xn={class:"relative nl-md:pr-6"},el={key:0,class:"uppercase font-sans text-xs tracking-wider px-3"},tl=["onClick"],nl=O({__name:"MainHeader",props:{palette:{type:String,required:!1,default:"text-black bg-white"}},async setup(A){let t,a;const{$pushGTMEvent:b}=qe(),o=R(),x=ge(),_=([t,a]=H(()=>be()),t=await t,a(),t),r=([t,a]=H(()=>K()),t=await t,a(),t),m=([t,a]=H(()=>_e()),t=await t,a(),t),c=([t,a]=H(()=>xt()),t=await t,a(),t),f=ht(),g=J(),T=De(),d=Re(),w=wt(),M=Oe(),i=fe(),F=kt(),j=yt(),B=([t,a]=H(()=>$t()),t=await t,a(),t),u=([t,a]=H(()=>Ct()),t=await t,a(),t),z=A;C(!1);const N=C(!0),q=C(!0),U=S(()=>w.value&&o.name&&x.value?!0:(w.value="",!1)),G=S(()=>Object.prototype.hasOwnProperty.call(g.value,o.params.lang)?o.params.lang:!1),Z=S(()=>F.value[o.params.lang]),W=S(()=>{const I=["lang-magazine","lang-magazine-category","lang-magazine-category-uid","lang-on-demand","lang-on-demand-category","lang-on-demand-category-uid"];if(o.name&&I.includes(o.name)){const p={};return o.name.includes("on-demand")?(p.title=_.on_demand||"On Demand",p.slug="on-demand"):(p.title=_.journal||"Magazine",p.slug="magazine"),p}return!1}),xe=S(()=>r.value&&Tt(r.value.data.spa_booking_link)?r.value.data.spa_booking_link:null),Je=S(()=>({"current-color md:group-hover:border-white md:group-hover:text-black":o.name!=="lang"})),Ke=S(()=>({"text-white":o.name==="lang"&&G&&N.value||o.name&&o.name.includes("lang-on-demand"),[w.value]:o.name!=="lang"&&U.value&&N.value,[z.palette]:o.name!=="lang"&&N.value,"bg-white":!N.value,"nl-md:fixed clubexplorer flex flex-col md:block nl-md:h-screen nl-md:bg-black nl-md:text-white md:bg-white md:text-black":i.value})),ce=C({});ce.value={"border-white md:border-r transition duration-500 ease-in-out nl-md:-translate-x-4 nl-md:py-1 px-2 md:px-1em1vw":o.name==="lang","hover:border-grey-300 nav-item relative m-0":o.name!=="lang"},te(async()=>{Q=new Ft(le.value,Ye),Q.init(),await u.value,ce.value={"bg-black text-white md:hover:bg-white md:hover:text-black":u.value&&o.name==="lang","bg-white md:hover:bg-black text-black md:hover:text-white":u.value===!1&&o.name==="lang","border-white md:border-r transition duration-500 ease-in-out nl-md:-translate-x-4 nl-md:py-1":o.name==="lang","hover:border-grey-300 nav-item relative m-0":o.name!=="lang"}});const he=S(()=>"data"in r.value&&"internal_club_code"in r.value.data&&c.find(p=>Ie(p.data.internal_club_code)===Ie(r.value.data.internal_club_code)).class_booking_url||"");function ue(I){N.value=I,I&&o.name&&!o.name.includes("on-demand")&&(T.value="White #FFFFFF")}const le=C(null),we=C(null);let Q=null;const ke=Be("headerHeight",()=>0),ye=C(!1);Se(()=>{ye.value=window.screen.width<768});const Ye={offset:0,tolerance:{up:15,down:0},onTop:()=>ue(!0),onNotTop:()=>ue(!1),onPin:()=>{var I;return ke.value=((I=le.value)==null?void 0:I.clientHeight)||0},onUnpin:()=>{var I,p;return ke.value=(ye.value?(I=le.value)==null?void 0:I.clientHeight:(p=we.value)==null?void 0:p.clientHeight)||0}},$e=C(0);function Qe(I){const p=document.getElementById(I);window.clearTimeout($e.value),q.value=!0,p&&(Q.freeze(),ue(!1),p.scrollIntoView({behavior:"smooth"}),"IntersectionObserver"in window?new IntersectionObserver((oe,X)=>{oe[0].isIntersecting&&($e.value=setTimeout(()=>{Q.unfreeze(),X.disconnect()},200))}).observe(p.querySelector(".n-carousel-posts__title")):Q.unfreeze())}return(I,p)=>{var Ae,Me,ze;const Ce=He,oe=Mt,X=re,Xe=We,et=bn,tt=Wn,nt=ne,Te=ve,lt=Ze,ot=Ue;return n(),s("header",{id:"Header",ref_key:"mainHeader",ref:le,class:k(["sticky top-0 md:-top-25.5 lg:-top-24 left-0 w-full lg:min-h-36 border-b border-grey-300 z-40 md:transform md:delay-[15ms] md:duration-300",e(Ke)])},[l("section",{class:k(["relative flex flex-wrap items-center w-full nl-md:px-1em1vw",{"nl-md:pb-56 nl-md:overflow-y-scroll":e(i)}])},[l("div",Un,[h(oe,{to:e(G)?"/"+e(G):"/en",class:"focus:outline-gbl","aria-label":"Aspria homepage"},{default:E(()=>[h(Ce,{id:"SiteLogo",class:"w-logo-s wd:w-logo-l mx-auto min-h-16"})]),_:1},8,["to"])]),l("div",Zn,[e(x)?(n(),s("button",{key:0,class:"flex items-center font-serif capitalize focus:outline-gbl",onClick:p[0]||(p[0]=L=>i.value=!e(i))},[y(v(e(f))+" ",1),h(X,{class:k([{"transform -rotate-45":e(i)},"ml-3 transition-transform duration-500 ease-in-out"])},null,8,["class"])])):$("",!0)]),l("section",{ref_key:"subHeader",ref:we,class:"flex items-center w-1/2 md:w-full md:h-10 lg:h-12 md:border-t border-grey-300 md:order-4"},[e(x)?(n(),P(Xe,{key:0,class:"hidden md:flex md:pl-1em1vw"})):(n(),s("div",Jn,[l("button",{class:k(["flex items-center h-full font-serif text-xl focus:outline-gbl tracking-normal px-2 md:px-1em1vw",e(ce)]),onClick:p[1]||(p[1]=At(L=>i.value=!e(i),["prevent"]))},[y(v(((Ae=e(m))==null?void 0:Ae.choose_a_club)||"Choose a club")+" ",1),h(X,{class:k([{"transform -rotate-45":e(i)},"ml-2 transition-transform duration-500 ease-in-out"])},null,8,["class"]),p[8]||(p[8]=l("span",{class:"nav-item-underline bg-current"},null,-1))],2)])),l("div",Kn,[l("button",{class:k([e(B)&&e(o).name==="lang"?"bg-white md:hover:bg-black text-black md:hover:text-white":"bg-black md:hover:bg-white text-white md:hover:text-black","block h-full uppercase tracking-wider text-xs md:text-sm transition duration-500 ease-in-out focus:outline-gbl nl-md:-translate-x-4 nl-md:py-1 px-2 md:px-1em1vw"]),onClick:p[2]||(p[2]=L=>{d.value=!0,e(b)("elementClick",{type:"button",name:"Join Now",destination:"NA",position:"0",pageUrl:e(o).path})})},[y(v(((Me=e(m))==null?void 0:Me.enquire_now)||"Enquire now")+" ",1),l("span",{class:k([e(Je),"block transition-transform duration-500 ease-in-out md:border-b nl-md:text-xs tracking-wider"])},null,2)],2),l("button",{class:"md:hidden focus:outline-gbl md:ml-1em1vw",onClick:p[3]||(p[3]=L=>i.value=!e(i))},[e(i)?$("",!0):(n(),P(et,{key:0})),e(i)?(n(),P(X,{key:1,class:"transform -rotate-45",width:25,height:25})):$("",!0),p[9]||(p[9]=l("span",{class:"sr-only"},"Menu",-1))])])],512),h(tt,{class:"md:order-4"}),l("nav",{class:k(["hidden md:flex flex-col md:flex-row justify-end xl:flex-grow w-full md:w-content lg:w-1/2 xl:w-2/5 md:order-2 wd:order-3 md:ml-auto md:pr-1em1vw",{"nl-md:flex nl-md:text-white nl-md:border-t nl-md:border-grey-700":e(i)}])},[l("ul",Yn,[(n(!0),s(V,null,D((ze=e(m))==null?void 0:ze.menu_links,L=>(n(),s("li",{key:L.id,class:"text-xs uppercase nl-md:py-2 md:pl-4"},[L.booking_application==="Book Hotel"?(n(),s(V,{key:0},[e(x)&&e(r)&&e(r).data.travelclick_id.length?(n(),s("a",{key:0,href:`https://reservations.travelclick.com/${I.$prismic.asText(e(r).data.travelclick_id)}?Adults=2Rooms=1&languageid=${e(Z)}`,target:"_blank",class:"nav-item relative w-content focus:outline-gbl text-base md:text-2xs lg:text-xs"},[y(v(I.$prismic.asText(L.label))+" ",1),p[10]||(p[10]=l("span",{class:"nav-item-underline bg-current"},null,-1))],8,Qn)):(n(),s("button",{key:1,class:"align-top uppercase nav-item relative w-content focus:outline-gbl font-sans text-base md:text-2xs lg:text-xs tracking-wider",onClick:p[4]||(p[4]=de=>M.value={key:"hotel",booking:!0})},[y(v(I.$prismic.asText(L.label))+" ",1),p[11]||(p[11]=l("span",{class:"nav-item-underline bg-current"},null,-1))]))],64)):L.booking_application==="Book Spa"?(n(),s(V,{key:1},[e(xe)?(n(),P(nt,{key:0,field:e(xe),class:"nav-item relative w-content focus:outline-gbl text-base md:text-2xs lg:text-xs"},{default:E(()=>[y(v(I.$prismic.asText(L.label))+" ",1),p[12]||(p[12]=l("span",{class:"nav-item-underline bg-current"},null,-1))]),_:2},1032,["field"])):(n(),s("button",{key:1,class:"align-top uppercase nav-item relative w-content focus:outline-gbl font-sans text-base md:text-2xs lg:text-xs tracking-wider",onClick:p[5]||(p[5]=de=>M.value={key:"spa",booking:!0})},[y(v(I.$prismic.asText(L.label))+" ",1),p[13]||(p[13]=l("span",{class:"nav-item-underline bg-current"},null,-1))]))],64)):L.booking_application==="Book Class"?(n(),s(V,{key:2},[e(x)&&e(r)&&e(he)!==""?(n(),P(Te,{key:0,document:{url:e(he)},class:"nav-item relative w-content focus:outline-gbl text-base md:text-2xs lg:text-xs"},{default:E(()=>[y(v(I.$prismic.asText(L.label))+" ",1),p[14]||(p[14]=l("span",{class:"nav-item-underline bg-current"},null,-1))]),_:2},1032,["document"])):(n(),s("button",{key:1,class:"align-top uppercase nav-item relative w-content focus:outline-gbl font-sans text-base md:text-2xs lg:text-xs tracking-wider",onClick:p[6]||(p[6]=de=>M.value={key:"class",booking:!0})},[y(v(I.$prismic.asText(L.label))+" ",1),p[15]||(p[15]=l("span",{class:"nav-item-underline bg-current"},null,-1))]))],64)):(n(),P(Te,{key:3,document:L.link,class:"nav-item relative w-content focus:outline-gbl text-base md:text-2xs lg:text-xs"},{default:E(()=>[y(v(I.$prismic.asText(L.label))+" ",1),p[16]||(p[16]=l("span",{class:"nav-item-underline bg-current"},null,-1))]),_:2},1032,["document"]))]))),128))]),h(lt,{class:"hidden md:flex"})],2)],2),e(W)?(n(),s("nav",{key:0,class:k(["border-t border-grey-300 bg-red-300 py-2",e(o).name&&e(o).name.includes("lang-magazine")?"bg-red-300":"bg-brown-700"])},[l("ul",{class:k(["flex flex-col md:flex-row items-center nl-md:text-center px-1em1vw",{"nl-md:pb-4":!e(q)}])},[l("li",{class:k(["journal-menu-title nl-md:w-full uppercase font-sans text-xs tracking-wider",{"nl-md:mb-4":!e(q)}]),onClick:p[7]||(p[7]=L=>q.value=!e(q))},[l("span",Xn,[y(v(e(W).title)+" ",1),h(ot,{class:k(["md:hidden absolute top-0 right-0 mt-1 transform duration-150",{"-scale-y-1":!e(q)}])},null,8,["class"])])],2),e(o).name&&e(o).name.includes("category")?(n(),s("li",el,[h(oe,{to:`/${e(o).params.lang}/${e(W).slug}/`},{default:E(()=>[y(v(e(_).back||"Back"),1)]),_:1},8,["to"])])):e(j)?(n(!0),s(V,{key:1},D(e(j),L=>(n(),s("li",{key:L.id,class:k(["nl-md:w-full px-3",{"nl-md:hidden":e(q)}])},["uid"in L?(n(),s("button",{key:0,class:"nl-md:w-full uppercase font-sans text-xs tracking-wider focus:outline-gbl nl-md:py-1",onClick:de=>Qe(L.uid)},v(L.uid.replace(/-/g," ")),9,tl)):$("",!0)],2))),128)):$("",!0)],2)],2)):$("",!0)],2)}}}),ll={data(){return{visible:!1}},mounted(){document.documentElement.style.overflow=this.visible?"hidden":""}},ol={key:0,class:"fixed top-0 h-full w-full overflow-hidden text-black bg-red-300 z-60"},sl={class:"flex flex-col justify-center items-center h-full p-8"},al={class:"absolute top-0 inset-x-auto font-sans uppercase text-base md:text-lg tracking-wider mt-16 md:mt-8"},rl={class:""},il={class:"flex flex-col items-center h-full"};function cl(A,t,a,b,o,x){const _=ne;return o.visible?(n(),s("section",ol,[l("div",sl,[l("button",{class:"absolute top-0 right-0 uppercase font-sans text-xs tracking-wide p-4 md:p-8",onClick:t[0]||(t[0]=r=>o.visible=!1)}," Close "),l("h3",al,v(A.$prismic.asText(A.$store.state.menu.region_selector_title)),1),l("nav",rl,[l("ul",il,[(n(!0),s(V,null,D(A.$store.state.menu.region_links,r=>(n(),s("li",{key:r.id,class:"py-4"},[h(_,{field:r.link,class:"font-serif text-3xl md:text-5xl",onClick:t[1]||(t[1]=m=>o.visible=!1)},{default:E(()=>[y(v(r.label),1)]),_:2},1032,["field"])]))),128))])])])])):$("",!0)}const ul=Y(ll,[["render",cl]]),dl={props:{colour:{type:Object,default:()=>{}}}};function ml(A,t,a,b,o,x){return n(),s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 60 60",class:k(["fill-current",a.colour]),style:{"fill-rule":"evenodd"}},t[0]||(t[0]=[l("path",{d:"M30 0a30 30 0 1 0 30 30A30 30 0 0 0 30 0Zm0 56.364A26.364 26.364 0 1 1 56.364 30 26.365 26.365 0 0 1 30 56.364Zm-3.719-13.845h-3.653V17.792h3.653Zm11.091 0h-3.653V17.792h3.653Z"},null,-1)]),2)}const pl=Y(dl,[["render",ml]]),fl={class:"fixed top-0 left-0 h-full w-full bg-black bg-opacity-90 z-40"},gl={key:0,class:"relative flex flex-col items-start justify-center h-full w-full p-4 md:p-8 max-w-156vh mx-auto"},_l=["src"],vl={key:1,id:"_mwcloudCTT",class:"absolute top-0 left-0 right-0 bottom-0 pt-12 md:p-12"},bl=["src"],xl={key:2,class:"absolute top-0 left-0 right-0 bottom-0 md:p-12"},hl=["src"],wl=O({__name:"IframeModal",props:{src:{type:String,required:!0,default:""}},setup(A){const t=J(),a=R(),b=Ge(),o=A,x=C(!1),_=C(!1),r=C(!0),m=C(null),c=S(()=>t.value[a.params.lang]);te(()=>{o.src.includes("vimeo")&&m.value.play()});function f(){r.value=!1}function g(){b.value=""}return(T,d)=>{const w=st,M=at,i=pl,F=re;return n(),s("div",fl,[o.src&&o.src.includes("vimeo")?(n(),s("div",gl,[o.src.includes("player.vimeo.com")?(n(),s("video",{key:0,ref_key:"modalVideo",ref:m,class:"relative has-video w-full",controls:!0},[l("source",{type:"video/mp4",src:o.src+"#t=0.001"},null,8,_l)],512)):(n(),P(w,{key:1,ref_key:"modalVideo",ref:m,"video-id":o.src,controls:!1,"player-width":"1280","player-height":"720",class:"relative has-video pb-16/9 w-full",onPlay:d[0]||(d[0]=j=>(x.value=!0,r.value=!0)),onPause:d[1]||(d[1]=j=>x.value=!1),onLoaded:d[2]||(d[2]=j=>_.value=!0),onError:f},null,8,["video-id"])),h(se,{name:"fade"},{default:E(()=>[!e(r)&&!e(x)&&e(_)?(n(),s("button",{key:"nonInteractButton",class:k(["absolute top-0 left-0 w-full h-full flex items-center justify-center z-10 focus:outline-gbl bg-black opacity-50",{"opacity-0":!e(_)}]),onClick:d[3]||(d[3]=j=>e(m).play())},[h(M,{class:"block mx-auto w-24 h-24",colour:{"text-white":!0}})],2)):$("",!0)]),_:1}),e(r)&&!e(x)?(n(),s("button",{key:2,class:k(["w-8 h-8 -mt-12 ml-4 z-10 focus:outline-gbl",{"opacity-0":!e(_)||!e(r)}]),onClick:d[4]||(d[4]=j=>e(m).play())},[h(M,{class:"block mx-auto w-8 h-8",colour:{"text-white":!0}})],2)):e(_)?(n(),s("button",{key:3,class:k(["w-8 h-8 -mt-12 ml-4 z-10 focus:outline-gbl",{"opacity-0":!e(_)||!e(r)}]),onClick:d[5]||(d[5]=j=>e(m).pause())},[h(i,{class:"block mx-auto w-8 h-8 opacity-50 hover:opacity-100 transition-opacity duration-300",colour:{"text-white":!0}})],2)):$("",!0)])):o.src.includes("mywellness")?(n(),s("div",vl,[l("iframe",{width:"100%",height:"100%",frameborder:"0",src:o.src+"?isWidget=False&pagination=False&language="+e(c)},null,8,bl)])):(n(),s("div",xl,[l("iframe",{width:"100%",height:"100%",frameborder:"0",src:o.src},null,8,hl)])),l("button",{onClick:d[6]||(d[6]=j=>g()),class:"absolute top-0 right-0 focus:outline-gbl mt-2 md:mt-3 mr-2 md:mr-3"},[h(F,{class:"w-8 h-8 text-white transform rotate-45 pointer-none"})])])}}}),kl={id:"Footer",class:"relative bg-red-300 z-30"},yl={class:"flex text-black p-4 md:px-8 lg:py-10 xl:px-16"},$l={class:"relative w-full"},Cl={key:0,class:"md:w-3/4"},Tl={class:"text-xs uppercase absolute bottom-0 right-0 md:top-0"},Al={__name:"MainFooter",async setup(A){let t,a;const b=([t,a]=H(()=>_e()),t=await t,a(),t),o=([t,a]=H(()=>be()),t=await t,a(),t);function x(){window.scrollTo({top:0,behavior:"smooth"})}return(_,r)=>{var f;const m=ne,c=pe;return n(),s("footer",kl,[l("section",yl,[l("nav",$l,[(f=e(b))!=null&&f.universal_footer_links?(n(),s("ul",Cl,[(n(!0),s(V,null,D(e(b).universal_footer_links,g=>(n(),s("li",{key:g.id,class:"md:float-left text-xs uppercase md:mr-4 mb-4 lg:mb-0"},[Le(g.footer_link)?(n(),P(m,{key:0,field:g.footer_link,ref_for:!0,ref:_.$prismic.asText(g.footer_link_text),class:"nav-item relative focus:outline-gbl"},{default:E(()=>[y(v(_.$prismic.asText(g.footer_link_text))+" ",1),r[1]||(r[1]=l("span",{class:"nav-item-underline bg-black"},null,-1))]),_:2},1032,["field"])):$("",!0)]))),128))])):$("",!0),l("div",Tl,[l("button",{class:"flex items-center text-xs uppercase focus:outline-gbl mb-4 md:mb-0",onClick:r[0]||(r[0]=g=>x())},[y(v(e(o).back_to_top||"Back to top")+" ",1),h(c,{class:"transform -rotate-90 ml-3"})])])])])])}}},Ml={class:"font-sans tracking-wider text-black min-h-screen"},ql=O({__name:"default",async setup(A){let t,a;const b={"White #FFFFFF":"bg-white","Light grayish red #F6F1F1":"bg-red-300","Light grayish green #CED2CB":"bg-green-300","Light grayish brown #DED6D1":"bg-brown-300"},o=De(),x=Ge(),_=Re(),r=zt(),m=It(),c=([t,a]=H(()=>K()),t=await t,a(),t),f=R(),g=Pe(),T=Oe(),{$pushGTMConfigParams:d}=qe();return te(()=>{var w;d(),f.query.scroll&&setTimeout(()=>{document.getElementById(f.query.scroll)&&document.getElementById(f.query.scroll).scrollIntoView({block:"start",behavior:"smooth"})},1500),f.query.hubspotform&&(m.value=((w=f.query.hubspotform)==null?void 0:w.toString())??"",g.push({query:void 0}))}),(w,M)=>{const i=Ut,F=Bt,j=Pt,B=sn,u=pn,z=Et,N=nl,q=rt,U=ul,G=wl,Z=St,W=Al;return n(),s("div",Ml,[h(i),h(F),ee(h(j,null,null,512),[[ae,e(_)]]),l("div",{class:k(["font-sans tracking-wider min-h-screen transition-colors duration-700",e(f).name&&e(f).name.includes("lang-on-demand")?"bg-black text-white icons-invert":b[e(o)]])},[e(c)?(n(),P(B,{key:0})):$("",!0),e(r)?$("",!0):(n(),P(u,{key:1})),e(r)?(n(),P(z,{key:2})):(n(),P(N,{key:3,palette:b[e(o)]},null,8,["palette"])),ee(h(q,{linkslug:e(T).key,ismodal:!0,booking:e(T).booking||!1},null,8,["linkslug","booking"]),[[ae,e(T).key]]),h(U),e(x)?(n(),P(G,{key:4,src:e(x)},null,8,["src"])):$("",!0),e(m)?(n(),P(Z,{key:5})):$("",!0),Lt(w.$slots,"default"),h(W)],2)])}}});export{ql as default};