import{h as B,e as a,c as l,d as s,n as x,j as D,a1 as R,m as S,J as W,K as G,L as z,C as N,o as J,F as e,E as T,w as k,g as y,t as r,f as m,T as j,U as V,V as $,a2 as K,a3 as Q,a4 as q,u as Z,H as X,a5 as Y,Z as ee,k as te,a6 as ae,p as ne,G as se}from"./CSGWN0Ke.js";import{_ as F}from"./RssLZfLx.js";import{l as oe,b as le,c as re}from"./BITtZpNW.js";import{H as ie}from"./BR7tlqX7.js";import{u as A}from"./00Wz9xmJ.js";const ce={"aria-label":"Open navigation",class:"p-2"},ue=B({__name:"AnimatedNavIcon",props:{navState:{type:Boolean,default:!1}},setup(g){return(n,i)=>(a(),l("button",ce,[s("span",{class:x(["block w-full border-b border-current transform transition-transform origin-center",g.navState?"rotate-45 -mb-px":"mb-1"])},null,2),s("span",{class:x(["block border-b border-current transform transition-transform",g.navState?"scale-0":"scale-100 duration-500"])},null,2),s("span",{class:x(["block w-full border-b border-current transform transition-transform origin-center",g.navState?"-rotate-45 -mt-px":"mt-1"])},null,2)]))}}),de={key:2,class:"relative font-sans text-sm md:text-base tracking-wider uppercase px-4"},_e={key:0,class:"absolute top-0 right-0 nl-md:w-full"},me={key:0,class:"hidden md:block pt-3 pb-4 border-b pr-12"},pe={class:"font-serif text-3xl"},be={key:0,class:"flex text-white md:text-black text-base tracking-wider font-light focus:outline-gbl py-2"},fe={class:"inline-block"},Ve=B({__name:"CampaignHeaderNav",props:{showNav:{},navItems:{},navTitle:{}},async setup(g){let n,i;const c=D(),p=R(),L=([n,i]=S(()=>A()),n=await n,i(),n),t=W(),v=G(),o=z(!1),u=N(()=>c.params.controller&&t.value!==""),b=N(()=>v.value&&v.value.isBroken===!1?"override":c.params.lang&&c.params.controller?"/"+c.params.lang+"/"+c.params.controller:"/"+c.params.lang||"/en"),d=z(null);let C=null;const f={onNotTop:()=>o.value=!1};return J(()=>{C=new ie(d.value,f),C.init()}),(w,h)=>{var I;const H=K,O=Q,E=F,P=ue,U=q,M=le;return a(),l("div",null,[s("header",{ref_key:"campaignHeader",ref:d,class:"absolute md:fixed top-0 flex flex-col items-center justify-center w-full text-white z-30"},[e(b)!=="override"?(a(),T(O,{key:0,to:e(b),class:"focus:outline-gbl",target:e(c).params.controller?"_blank":"_self"},{default:k(()=>[y(H,{id:"SiteLogo",class:"w-logo-s md:w-logo-l mx-auto min-h-14 pt-2"})]),_:1},8,["to","target"])):(a(),T(E,{key:1,document:e(v),class:"focus:outline-gbl"},{default:k(()=>[y(H,{id:"SiteLogo",class:x(["w-logo-s md:w-logo-l mx-auto min-h-14",e(u)?"pt-2":"pt-3"])},null,8,["class"])]),_:1},8,["document"])),e(u)?(a(),l("h1",de,r(e(t)),1)):m("",!0),w.shownav?(a(),T(P,{key:3,onClick:h[0]||(h[0]=_=>o.value=!e(o)),class:x(["absolute top-0 right-0 z-40 h-16 w-16 duration-500 p-5",e(o)?" text-white md:text-black":"text-white"]),navState:e(o)},null,8,["class","navState"])):m("",!0)],512),w.shownav?(a(),l("div",_e,[s("div",{class:x(["relative top-0 right-0 nl-md:h-dvh w-full bg-black md:bg-white text-white md:text-black px-6 pb-4 z-20 text-left flex flex-col transform transition-transform duration-500 md:shadow-[5px_5px_20px_0px_rgba(0,0,0,0.6)]",e(o)?"translate-x-0":"translate-x-full"])},[w.navtitle?(a(),l("header",me,[s("h3",pe,r(w.navtitle),1)])):m("",!0),s("ul",{class:x(["relative pt-16",{"md:pt-3":w.navtitle,"nl-md:pt-24":e(u)}])},[(a(!0),l(j,null,V(w.navitems,(_,je)=>(a(),l(j,{key:_.title},[_&&_.title&&oe(_.link)?(a(),l("li",be,[_.link.location?(a(),T(U,{key:0,field:_.link,class:"relative inline-block nav-item uppercase font-sans"},{default:k(()=>[$(r(_.title),1)]),_:2},1032,["field"])):(a(),T(E,{key:1,document:_.link,overriding_class:"relative inline-block nav-item !uppercase font-sans"},{default:k(()=>[$(r(_.title),1)]),_:2},1032,["document"])),y(M,{class:"nl-md:hidden ml-2"})])):m("",!0)],64))),128))],2),s("button",{class:"md:hidden btn flex justify-center relative font-sans text-sm uppercase tracking-wider transition duration-500 ease-in-out border border-white shadow hover:bg-black hover:border-white hover:text-white focus:outline-gbl mt-auto mb-4 px-6 py-3",onClick:h[1]||(h[1]=_=>p.value=!0)},[s("span",fe,r(((I=e(L))==null?void 0:I.enquire_now)||"Enquire now"),1)])],2)])):m("",!0)])}}}),ge={class:"absolute top-0 left-0 w-full h-full flex flex-col items-center text-center text-white nl-sm:pb-16 pt-36"},he={class:"relative font-sans text-sm md:text-base tracking-wider uppercase px-4 mb-3 md:mb-5"},xe={key:0,class:"relative font-sans text-sm md:text-base tracking-normal px-4 mt-3 md:mt-6"},ke={key:1,class:"absolute bottom-0 flex flex-col w-full px-8 md:hidden mb-10"},ve=["href"],we={key:2,class:"flex flex-col md:flex-row md:items-center md:justify-center px-8 hidden md:block mb-10 mt-10"},qe=B({__name:"CampaignHeader",props:{content:{}},async setup(g){let n,i;const{client:c}=Z(),p=([n,i]=S(()=>A()),n=await n,i(),n),L={link_type:"Web",url:"https://enquirebooktour"};let t={...g.content};if(re(t.link_to_reusable)){const o=t.link_to_reusable.uid.toString(),{data:u}=([n,i]=S(()=>X(o,()=>c.getByUID("campaign_header_reusable",o,{lang:t.link_to_reusable.lang||"en-gb"}),"$h95uEQ4zaA")),n=await n,i(),n);if(u.value){const{headline:b,sub_headline:d}=u.value.data;Object.assign(t,{headline:b,sub_headline:d})}}const v=N(()=>({[`primary btn--${t.book_a_tour_button_style}`]:t.book_a_tour_button_style!==null&&t.book_a_tour_button_style!==void 0}));return(o,u)=>{const b=F,d=ee;return a(),l("div",ge,[s("h1",he,r(o.$prismic.asText(e(t).eyebrow_headline)),1),s("h2",{ref:"h2FontSize",class:"relative font-serif text-3xl md:text-5xl lg:text-6xl tracking-wider uppercase max-w-4xl mx-auto px-4"},r(o.$prismic.asText(e(t).headline)),513),"sub_headline"in e(t)&&e(t).sub_headline.length?(a(),l("h3",xe,r(o.$prismic.asText(e(t).sub_headline)),1)):m("",!0),Y(o.$slots,"default"),e(t).global_campaign_hide_book_tour?m("",!0):(a(),l("div",ke,[y(d,null,{default:k(()=>[y(b,{document:L,class:x(["btn flex justify-center relative font-sans text-sm uppercase tracking-wider transition duration-500 ease-in-out bg-black border border-black shadow focus:outline-gbl primary mb-8",e(v)]),slice_type:"header"},{default:k(()=>[$(r(o.$prismic.asText(e(p).book_a_tour)),1)]),_:1},8,["class"])]),_:1}),e(t).club_phone_number?(a(),l("a",{key:0,class:"btn flex justify-center relative font-sans text-sm uppercase tracking-wider transition duration-500 ease-in-out border border-white shadow hover:bg-black hover:border-black hover:text-white focus:outline-gbl mb-8 px-6 py-3",href:"tel:"+e(t).club_phone_number},r(e(p).call_us),9,ve)):m("",!0),e(t).hide_form?m("",!0):(a(),l("button",{key:1,class:"w-content nav-item relative text-sm uppercase tracking-wider focus:outline-gbl mx-auto",onClick:u[0]||(u[0]=C=>o.scrollToForm())},[$(r(e(t).form_scrollto_text)+" ",1),u[1]||(u[1]=s("span",{class:"nav-item-underline-reverse bg-current"},null,-1))]))])),e(t).global_campaign_hide_book_tour?m("",!0):(a(),l("div",we,[y(d,null,{default:k(()=>[y(b,{document:L,class:x(["btn flex justify-center relative font-sans text-sm uppercase tracking-wider transition duration-500 ease-in-out bg-black border border-black shadow focus:outline-gbl primary mb-8",e(v)]),slice_type:"header"},{default:k(()=>[$(r(e(t).book_a_tour_override||o.$prismic.asText(e(p).book_a_tour)),1)]),_:1},8,["class"])]),_:1})]))])}}}),ye={key:0,class:"fixed top-0 left-0 w-screen h-screen bg-black bg-opacity-50 z-50"},Ce={class:"relative flex w-full h-full justify-center items-center"},$e={class:"w-auto h-auto bg-white px-8 py-6"},Le={class:"pb-2"},Te={class:"flex flex-col font-serif text-lg tracking-normal"},Se={class:"py-1"},Ne=["src"],Be={class:"py-1"},He=["src"],Fe=B({__name:"LanguageChooserCampaign",props:{languages:{type:Array,required:!0,default:[]}},async setup(g){let n,i;const c=te(),p=D(),L=([n,i]=S(()=>A()),n=await n,i(),n),t=ae(),v=ne(),o=g,u=N(()=>{const C=[...o.languages];return v.value&&C.forEach(f=>{f.data={club_relation:{uid:p.params.controller.toString()}},f.link_type="Document",f.isBroken=!1}),C}),b=c.value[p.params.lang],d={"en-gb":["English","/flags/flag_gb.png"],"de-de":["Deutsch","/flags/flag_de.png"],"fr-fr":["Francais","/flags/flag_fr.png"],"it-it":["Italiano","/flags/flag_it.png"],"nl-be":["Nederlands","/flags/flag_nl.png"]};return(C,f)=>{const w=q;return e(t)?(a(),l("div",ye,[s("div",Ce,[s("div",$e,[s("h3",Le,r(e(L).please_choose_your_language),1),s("ul",Te,[s("li",Se,[s("button",{onClick:f[0]||(f[0]=h=>t.value=!1),class:"font-serif flex hover:underline"},[s("img",{class:"w-6 mr-3",src:d[e(b)][1]},null,8,Ne),$(" "+r(d[e(b)][0]),1)])]),(a(!0),l(j,null,V(e(u),h=>(a(),l("li",Be,[y(w,{onClick:f[1]||(f[1]=H=>t.value=!1),field:h,class:"flex hover:underline"},{default:k(()=>[s("img",{class:"w-6 mr-3",src:d[h.lang][1]},null,8,He),$(" "+r(d[h.lang][0]),1)]),_:2},1032,["field"])]))),256))])])])])):m("",!0)}}}),Oe=async()=>(await se()).reduce((i,c)=>(c.data.club_pages.forEach(p=>{i[p.link.id]=c.uid}),i),{});export{Ve as _,qe as a,Fe as b,Oe as u};