import{_ as Q,a as Y,b as J}from"./CrSM3cNE.js";import{_ as K}from"./BITtZpNW.js";import{_ as M,c as W}from"./Dci3BOLr.js";import{_ as X,e as n,c as u,d as L,n as F,t as R,f as r,g as y,w as ee,h as ae,i as te,u as oe,j as ne,k as se,l as le,m as g,p as ie,q as ce,r as ue,s as re,v as de,x as _e,y as me,z as pe,A as ve,B,C as ge,D as fe,b as be,E as m,F as o,G as ke,H as T,S as he,I as ye}from"./CSGWN0Ke.js";import{_ as xe}from"./DyTDafb2.js";import{u as Ce}from"./00Wz9xmJ.js";import"./RssLZfLx.js";import"./CoNkNGrd.js";import"./DCT9NofI.js";import"./FvgwuZVK.js";const we={props:{content:{type:Object,required:!0,default:()=>{}}},data(){return{videoStarted:null,videoStopped:!0,videoFailFallback:!1}},mounted(){},methods:{videoFailedLoad(){this.videoFailFallback=!0}}},Se={class:"n-hero"},Pe={key:0,class:"font-sans text-sm md:text-base tracking-wider uppercase mb-3 md:mb-5"},Ae={key:1,class:"font-serif text-3xl md:text-5xl lg:text-6xl tracking-wider uppercase max-w-3xl mx-auto"},Le={key:0,class:"relative h-full max-w-site overflow-hidden p-4 md:p-8 mx-auto"};function Fe(p,a,t,x,c,s){const f=K,b=M;return n(),u("section",Se,[L("div",{class:F(["n-hero__group",p.$styling(`n-hero__group-${t.content.layout||"top"}`,t.content.backgroundColour)])},["headline"in t.content?(n(),u("header",{key:0,class:F(["flex flex-col w-full px-4",t.content.layout==="right"?"justify-center md:w-1/2":"pt-5 md:mt-16 md:mb-8"])},[t.content.eyebrow_headline?(n(),u("h2",Pe,R(p.$prismic.asText(t.content.eyebrow_headline)),1)):r("",!0),t.content.headline?(n(),u("h1",Ae,R(p.$prismic.asText(t.content.headline)),1)):r("",!0)],2)):r("",!0),L("section",null,[c.videoFailFallback?r("",!0):(n(),u("div",Le,[y(b,null,{default:ee(()=>[y(f,{ref:"herocontrolvideo","video-id":t.content.video.embed_url,class:"relative has-video pb-16/9 w-full",controls:!0,autoplay:!1,onPlay:a[0]||(a[0]=v=>(c.videoStarted=!0,c.videoStopped=!1)),onPause:a[1]||(a[1]=v=>c.videoStopped=!0),onError:a[2]||(a[2]=v=>s.videoFailedLoad())},null,8,["video-id"])]),_:1})]))])],2)])}const Re=X(we,[["render",Fe]]),Oe=ae({__name:"[uid]",async setup(p){var P,A;let a,t;const{$styling:x}=te(),{client:c}=oe(),s=ne(),f=se(),b=le(),v=([a,t]=g(()=>ke()),a=await a,t(),a),d=ie(),j=ce(),I=ue(),D=re();de();const E=([a,t]=g(()=>Ce()),a=await a,t(),a),C=_e(),H=me(),w=pe(),{BASE_URL:k}=ve().public;if(j.value=!0,!d.value){const i=v.find(_=>_.uid===s.params.controller);i&&(d.value=i)}const h=d.value.data.club_pages.find(i=>s.params.uid===i.link.slug);if(!h)throw B({statusCode:404,fatal:!0});const{data:e,error:N}=([a,t]=g(()=>{var i;return T(s.params.controller+((i=h.link)==null?void 0:i.id),()=>{var _;return c.getByID((_=h.link)==null?void 0:_.id,{lang:b.value})},"$kRZFQg5AyT")}),a=await a,t(),a);if(!e.value||N.value)throw B({statusCode:404,fatal:!0});(P=e.value)!=null&&P.alternate_languages&&(w.value.club_page=e.value.alternate_languages,(A=d.value)!=null&&A.alternate_languages&&(w.value.club=d.value.alternate_languages)),H.value=e.value.data.do_not_allow_campaign_takeover||!1;const V=Object.keys(e.value.data.image.largeorientland).length===0,{data:S}=([a,t]=g(()=>T(s.params.uid+"sticky",()=>c.getByID(e.value.data.sticky_promo.id,{lang:f.value[s.params.lang]}),"$PpeSwjRYR1")),a=await a,t(),a);D.value=e.value.data.onboarding_page,I.value=x(e.value.data.backgroundColour)||"";const l=e.value;(l.data.social_cards&&l.data.social_cards[0]&&l.data.social_cards[0].social_card_image.facebook?Object.keys(l.data.social_cards[0].social_card_image.facebook).length===0:!0)?C.value={}:(l.data.sharing_url=k+s.path,l.data.sharing_locale=l.lang?l.lang.split("-")[0]+"_"+l.lang.split("-")[1].toUpperCase():"en_GB",C.value=l.data);const Z=ge(()=>"canonical"in e.value.data&&"uid"in e.value.data.canonical&&e.value.data.canonical.uid?k+fe(e.value.data.canonical):k+s.path);return be({htmlAttrs:{lang:s.params.lang},title:e.value.data?e.value.data.meta_title||e.value.data.meta_title_default:"",meta:[{hid:"description",name:"description",content:e.value.data.meta_description||E.meta_description_default}],link:[{rel:"canonical",href:Z}]}),(i,_)=>{const $=Q,O=Re,U=xe,q=he,z=Y,G=J;return n(),u("div",null,[V?(n(),m($,{key:0,content:o(e).data},null,8,["content"])):o(e).data.paused_with_video_controls&&"embed_url"in o(e).data.video?(n(),m(O,{key:1,content:o(e).data},null,8,["content"])):(n(),m(U,{key:2,content:o(e).data},null,8,["content"])),o(e)&&o(e).data?(n(),m(q,{key:3,slices:o(e).data.body,components:o(ye)(o(W))},null,8,["slices","components"])):r("",!0),o(S)?(n(),m(z,{key:4,stickydata:o(S)},null,8,["stickydata"])):r("",!0),y(G)])}}});export{Oe as default};