import{_ as V,L as P,aP as U,o as I,aQ as F,aR as H,aJ as A,aS as Z,e as s,c as u,F as d,d as $,n as y,m as D,G as W,aN as q,j as G,C as E,a5 as J,g as N,w as b,f as g,ab as Q,T as Y,U as K,t as _,V as w,E as B,P as X,aq as ee,ac as te,a4 as ae}from"./CSGWN0Ke.js";import{_ as oe}from"./RssLZfLx.js";const c=e=>e!=null,S=e=>!!e.length,M=e=>c(e)?e.length===1&&"text"in e[0]?!!e[0].text:!!e.length:!1,ne=M,j=e=>c(e)&&!!e.url,le=j,L=e=>c(e)&&("id"in e||"url"in e),se=L,ie=L,re=c,ue=c,ce=c,de=c,R=e=>c(R)&&!!e,me=c,fe=e=>c(e)&&!!e.embed_url,_e=e=>c(e)&&"longitude"in e,ge=c,pe=e=>c(e)&&S(e),he=e=>c(e)&&S(e),Fe=Object.freeze(Object.defineProperty({__proto__:null,color:ce,contentRelationship:ie,date:re,embed:fe,geoPoint:_e,group:pe,image:le,imageThumbnail:j,integrationFields:ge,keyText:R,link:L,linkToMedia:se,number:de,richText:M,select:me,sliceZone:he,timestamp:ue,title:ne},Symbol.toStringTag,{value:"Module"}));function ke({player:e,event:l,emit:o}){e.on(l,m=>o(l,m,e))}const ve=["play","playing","pause","ended","timeupdate","progress","seeking","seeked","texttrackchange","chapterchange","cuechange","cuepoint","volumechange","playbackratechange","bufferstart","bufferend","error","loaded","durationchange","fullscreenchange","qualitychange","camerachange","resize"],ye={name:"VimeoPlayer",props:{playerHeight:{type:Number,default:320},playerWidth:{type:Number,default:640},options:{type:Object,default:()=>({})},videoId:{type:String,default:""},videoUrl:{type:String,default:""},loop:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},eventsToEmit:{type:Array,default:()=>ve}},setup(e,{emit:l}){let o;const m=P(null),{videoId:f,videoUrl:k}=U(e);!e.videoId&&!e.videoUrl&&console.warn("[VueVimeoPlayer: You mist provide at least a videoId or a videoUrl prop]");const t=({id:n,url:h})=>{const v={width:e.playerWidth,height:e.playerHeight,loop:e.loop,autoplay:e.autoplay,controls:e.controls};return d(h)&&(v.url=d(h)),d(n)&&(v.id=d(n)),Object.assign(v,e.options)},p=()=>o.play(),x=()=>o.pause(),T=()=>o.setVolume(0),z=(n=.5)=>o.setVolume(n),r=()=>{o.ready().then(()=>{l("ready",o)}).catch(n=>{l("error",n,o)}),e.eventsToEmit.forEach(n=>ke({player:o,event:n,emit:l}))};return I(()=>{o=new F(m.value,t({id:e.videoId,url:e.videoUrl})),r()}),H(()=>o.unload()),A(f,n=>o.loadVideo(t({id:n}))),A(k,n=>o.loadVideo(t({url:n}))),A(Z(e,"controls"),()=>o.loadVideo(t({url:k,id:f}))),{update:n=>o.loadVideo(t({id:n})),play:p,pause:x,mute:T,unmute:z,elementRef:m,player:o}}},xe={ref:"elementRef"};function be(e,l,o,m,f,k){return s(),u("div",xe,null,512)}const He=V(ye,[["render",be]]),we={props:{colour:{type:Object,default:()=>{}}}};function $e(e,l,o,m,f,k){return s(),u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 60 60",class:y(["fill-current",o.colour])},l[0]||(l[0]=[$("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-9.8-38.728v24.728L45.253 30Z"},null,-1)]),2)}const Ze=V(we,[["render",$e]]),Ve={props:{colour:{type:Object,default:()=>{}},width:{type:Number,default:15},height:{type:Number,default:15}}},Te=["width","height"];function Ce(e,l,o,m,f,k){return s(),u("svg",{width:o.width,height:o.height,class:y(["fill-current",o.colour]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},l[0]||(l[0]=[$("path",{"data-name":"Plus",d:"M7.5 0a.313.313 0 00-.312.313v6.875H.313a.313.313 0 100 .625h6.875v6.875a.313.313 0 10.625 0V7.813h6.875a.313.313 0 100-.625H7.813V.313A.313.313 0 007.5 0z"},null,-1)]),10,Te)}const Be=V(Ve,[["render",Ce]]),ze={},Ae={class:"inline-block fill-current",width:"15",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15.513 15.998"};function Ne(e,l){return s(),u("svg",Ae,l[0]||(l[0]=[$("path",{"data-name":"Wide arrow",d:"M15.4 8.3l-7.35 7.56a.48.48 0 01-.65.02.46.46 0 01-.03-.63L14 8.45H.46A.45.45 0 010 8a.45.45 0 01.46-.44h13.53L7.37.76A.45.45 0 017.4.11a.48.48 0 01.66.02l7.35 7.55a.47.47 0 010 .62z"},null,-1)]))}const De=V(ze,[["render",Ne]]),Pe=["onMouseover"],Le=["href"],Ee={key:0,class:"capitalize text-base lg:text-3xl italic align-text-top"},Ie={key:0,class:"capitalize text-base lg:text-3xl italic align-text-top"},Se={key:0,class:"capitalize text-base lg:text-3xl italic align-text-top"},Me={key:0,class:"capitalize text-base lg:text-3xl italic align-text-top"},je={key:0,class:"capitalize text-base lg:text-3xl italic align-text-top"},Re={__name:"ClubList",props:{linkslug:{type:String,default:null},ismodal:{type:Boolean,default:!0},booking:{type:Boolean,default:!1}},async setup(e){let l,o;const m=([l,o]=D(()=>W()),l=await l,o(),l),f=q(),k=G(),t=e,p=P({}),x=P(!1),T=E(()=>{if(!m)return!1;let r=[];const i=m;if(t.linkslug&&t.ismodal&&t.linkslug!=="class")for(const n of i)n.data.club_pages.filter(h=>{h.link.slug===t.linkslug&&!h.hide_from_club_navigation&&(n.child=h.link,n.child.location=n.uid,r.push(n))});else t.linkslug&&t.ismodal&&t.linkslug==="class"?i.filter(n=>{n.class_booking_langs.includes(k.params.lang)&&r.push(n)}):r=i;if(r.length)for(const n of r)n.link_type="Document";return r}),z=E(()=>!1);return I(()=>{document.documentElement.style.overflow=t.ismodal&&t.linkslug?"hidden":""}),(r,i)=>{const n=te,h=Be,v=ae,O=oe;return s(),u("section",{class:y([t.ismodal?"flex items-center fixed top-0 left-0 bg-red-300 z-50":"relative pt-10","h-full w-full overflow-hidden"])},[$("div",{class:y(["w-full",{"relative overflow-hidden pb-16 lg:pb-24":!t.ismodal}])},[J(r.$slots,"default",{},void 0,!0),N(Q,{name:"fade"},{default:b(()=>[d(p).url?(s(),u("div",{key:d(p).url,class:"nl-md:hidden absolute top-0 left-0 h-full w-full cursor-none"},[N(n,{field:d(p).largeorientland,class:"filter-b-50 object-cover w-full h-full max-w-none"},null,8,["field"])])):g("",!0)]),_:1}),t.ismodal?(s(),u("button",{key:0,class:"absolute top-0 right-0 z-20",onClick:i[0]||(i[0]=a=>f.value={key:"",booking:!1})},[N(h,{class:"w-8 h-8 text-black transform rotate-45 mt-2 md:mt-3 mr-2 md:mr-3"})])):g("",!0),d(T)?(s(),u("ul",{key:1,class:y([d(x)||t.ismodal?"flex":"hidden","relative sm:flex flex-wrap z-20"])},[(s(!0),u(Y,null,K(d(T),a=>(s(),u("li",{key:a.uid,class:y(["w-full md:w-1/2 text-center text-2xl lg:text-5xl text-black font-serif p-3 transition-colors duration-300",{"md:hover:text-white":"club_image"in a.data&&a.data.club_image.url}]),onMouseover:C=>a.data.club_image.url?p.value=a.data.club_image:p.value={},onMouseleave:i[4]||(i[4]=C=>p.value={})},[t.ismodal&&t.booking&&t.linkslug==="hotel"&&a.data.travelclick_id.length?(s(),u("a",{key:0,href:`https://reservations.travelclick.com/${r.$prismic.asText(a.data.travelclick_id)}?Adults=2Rooms=1&languageid=${d(z)}`,target:"_blank"},["location_relation"in a.data?(s(),u("span",Ee,_(a.data.location_relation.slug)+",",1)):g("",!0),w(" "+_(r.$prismic.asText(a.data.club_title)),1)],8,Le)):t.ismodal&&t.booking&&t.linkslug==="spa"&&"url"in a.data.spa_booking_link?(s(),B(v,{key:1,field:a.data.spa_booking_link},{default:b(()=>["location_relation"in a.data?(s(),u("span",Ie,_(a.data.location_relation.slug)+",",1)):g("",!0),w(" "+_(r.$prismic.asText(a.data.club_title)),1)]),_:2},1032,["field"])):t.ismodal&&t.booking&&t.linkslug==="class"?(s(),B(O,{key:2,document:{url:a.class_booking_url},onClick:i[1]||(i[1]=C=>f.value={key:"",booking:!1})},{default:b(()=>["location_relation"in a.data?(s(),u("span",Se,_(a.data.location_relation.slug)+",",1)):g("",!0),w(" "+_(r.$prismic.asText(a.data.club_title)),1)]),_:2},1032,["document"])):t.ismodal&&!t.booking?(s(),B(v,{key:3,field:a.child||a,onClick:i[2]||(i[2]=C=>f.value={key:"",booking:!1})},{default:b(()=>["location_relation"in a.data?(s(),u("span",Me,_(a.data.location_relation.slug)+",",1)):g("",!0),w(" "+_(r.$prismic.asText(a.data.club_title)),1)]),_:2},1032,["field"])):t.booking?g("",!0):(s(),B(v,{key:4,field:a,onClick:i[3]||(i[3]=C=>f.value={key:"",booking:!1})},{default:b(()=>["location_relation"in a.data?(s(),u("span",je,_(a.data.location_relation.slug)+",",1)):g("",!0),w(" "+_(r.$prismic.asText(a.data.club_title)),1)]),_:2},1032,["field"]))],42,Pe))),128))],2)):g("",!0),X($("button",{class:"block sm:hidden uppercase bg-black text-white mx-auto py-2 px-4",onClick:i[5]||(i[5]=a=>x.value=!0)}," See clubs ",512),[[ee,!d(x)&&!e.ismodal]])],2)],2)}}},We=V(Re,[["__scopeId","data-v-4aa3f2ea"]]);export{He as _,Be as a,De as b,ie as c,Ze as d,Fe as e,We as f,j as i,L as l};