import{h as A,e as a,c as r,d as t,n as _,j as O,a1 as I,J as M,K as j,L as H,C as S,o as q,F as e,E as h,w as k,g as L,t as b,f as v,O as B,P,Q as $,a2 as D,a3 as F,a4 as T,k as U,m as R,a5 as G,p as J,G as K}from"./CMy8cRRO.js";import{_ as Q}from"./BQ1rQp_p.js";import{l as W,b as X}from"./B-_kvV4S.js";import{H as Y}from"./B2W7z4nR.js";import{u as Z}from"./DqRmt5m0.js";const ee={"aria-label":"Open navigation",class:"p-2"},te=A({__name:"AnimatedNavIcon",props:{navState:{type:Boolean,default:!1}},setup(p){return(n,c)=>(a(),r("button",ee,[t("span",{class:_(["block w-full border-b border-current transform transition-transform origin-center",p.navState?"rotate-45 -mb-px":"mb-1"])},null,2),t("span",{class:_(["block border-b border-current transform transition-transform",p.navState?"scale-0":"scale-100 duration-500"])},null,2),t("span",{class:_(["block w-full border-b border-current transform transition-transform origin-center",p.navState?"-rotate-45 -mt-px":"mt-1"])},null,2)]))}}),ae={key:2,class:"relative font-sans text-sm md:text-base tracking-wider uppercase px-4"},ne={key:0,class:"absolute top-0 right-0 nl-md:w-full"},se={key:0,class:"hidden md:block pt-3 pb-4 border-b pr-12"},oe={class:"font-serif text-3xl"},le={key:0,class:"flex text-white md:text-black text-base tracking-wider font-light focus:outline-gbl py-2"},we=A({__name:"CampaignHeader",props:{shownav:{},navitems:{},navtitle:{}},setup(p){const n=O(),c=I(),m=M(),u=j(),d=H(!1),f=S(()=>n.params.controller&&m.value!==""),x=S(()=>u.value&&u.value.isBroken===!1?"override":n.params.lang&&n.params.controller?"/"+n.params.lang+"/"+n.params.controller:"/"+n.params.lang||"/en"),w=H(null);let y=null;const C={onNotTop:()=>d.value=!1};return q(()=>{y=new Y(w.value,C),y.init()}),(s,i)=>{const o=D,N=F,g=Q,E=te,V=T,z=X;return a(),r("div",null,[t("header",{ref_key:"campaignHeader",ref:w,class:"absolute md:fixed top-0 flex flex-col items-center justify-center w-full text-white z-30"},[e(x)!=="override"?(a(),h(N,{key:0,to:e(x),class:"focus:outline-gbl",target:e(n).params.controller?"_blank":"_self"},{default:k(()=>[L(o,{id:"SiteLogo",class:"w-logo-s md:w-logo-l mx-auto min-h-14 pt-2"})]),_:1},8,["to","target"])):(a(),h(g,{key:1,document:e(u),class:"focus:outline-gbl"},{default:k(()=>[L(o,{id:"SiteLogo",class:_(["w-logo-s md:w-logo-l mx-auto min-h-14",e(f)?"pt-2":"pt-3"])},null,8,["class"])]),_:1},8,["document"])),e(f)?(a(),r("h1",ae,b(e(m)),1)):v("",!0),s.shownav?(a(),h(E,{key:3,onClick:i[0]||(i[0]=l=>d.value=!e(d)),class:_(["absolute top-0 right-0 z-40 h-16 w-16 duration-500 p-5",e(d)?" text-white md:text-black":"text-white"]),navState:e(d)},null,8,["class","navState"])):v("",!0)],512),s.shownav?(a(),r("div",ne,[t("div",{class:_(["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(d)?"translate-x-0":"translate-x-full"])},[s.navtitle?(a(),r("header",se,[t("h3",oe,b(s.navtitle),1)])):v("",!0),t("ul",{class:_(["relative pt-16",{"md:pt-3":s.navtitle,"nl-md:pt-24":e(f)}])},[(a(!0),r(B,null,P(s.navitems,(l,_e)=>(a(),r(B,{key:l.title},[l&&l.title&&W(l.link)?(a(),r("li",le,[l.link.location?(a(),h(V,{key:0,field:l.link,class:"relative inline-block nav-item uppercase font-sans"},{default:k(()=>[$(b(l.title),1)]),_:2},1032,["field"])):(a(),h(g,{key:1,document:l.link,overriding_class:"relative inline-block nav-item !uppercase font-sans"},{default:k(()=>[$(b(l.title),1)]),_:2},1032,["document"])),L(z,{class:"nl-md:hidden ml-2"})])):v("",!0)],64))),128))],2),t("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:i[1]||(i[1]=l=>c.value=!0)},i[2]||(i[2]=[t("span",{class:"inline-block"},"Enquire Now",-1)]))],2)])):v("",!0)])}}}),re={key:0,class:"fixed top-0 left-0 w-screen h-screen bg-black bg-opacity-50 z-50"},ie={class:"relative flex w-full h-full justify-center items-center"},ce={class:"w-auto h-auto bg-white px-8 py-6"},ue={class:"pb-2"},de={class:"flex flex-col font-serif text-lg tracking-normal"},pe={class:"py-1"},me=["src"],fe={class:"py-1"},ge=["src"],ye=A({__name:"LanguageChooserCampaign",props:{languages:{type:Array,required:!0,default:[]}},async setup(p){let n,c;const m=U(),u=O(),d=([n,c]=R(()=>Z()),n=await n,c(),n),f=G(),x=J(),w=p,y=S(()=>{const i=[...w.languages];return x.value&&i.forEach(o=>{o.data={club_relation:{uid:u.params.controller.toString()}},o.link_type="Document",o.isBroken=!1}),i}),C=m.value[u.params.lang],s={"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(i,o)=>{const N=T;return e(f)?(a(),r("div",re,[t("div",ie,[t("div",ce,[t("h3",ue,b(e(d).please_choose_your_language),1),t("ul",de,[t("li",pe,[t("button",{onClick:o[0]||(o[0]=g=>f.value=!1),class:"font-serif flex hover:underline"},[t("img",{class:"w-6 mr-3",src:s[e(C)][1]},null,8,me),$(" "+b(s[e(C)][0]),1)])]),(a(!0),r(B,null,P(e(y),g=>(a(),r("li",fe,[L(N,{onClick:o[1]||(o[1]=E=>f.value=!1),field:g,class:"flex hover:underline"},{default:k(()=>[t("img",{class:"w-6 mr-3",src:s[g.lang][1]},null,8,ge),$(" "+b(s[g.lang][0]),1)]),_:2},1032,["field"])]))),256))])])])])):v("",!0)}}}),Ce=async()=>(await K()).reduce((c,m)=>(m.data.club_pages.forEach(u=>{c[u.link.id]=m.uid}),c),{});export{we as _,ye as a,Ce as u};