import{h as L,u as R,j as I,a7 as N,l as V,m as r,s as j,x as D,a8 as F,a9 as U,A as Z,B as z,b as M,e as d,c as f,d as l,F as t,T as O,n as c,N as u,f as h,g as b,t as v,E as P,H as G,X,S as q,I as J}from"./CSGWN0Ke.js";import{_ as K}from"./FvgwuZVK.js";import{c as Q}from"./Dci3BOLr.js";import{u as W}from"./00Wz9xmJ.js";import"./BITtZpNW.js";import"./RssLZfLx.js";import"./CoNkNGrd.js";import"./DCT9NofI.js";const Y={class:"relative -top-px flex flex-col min-h-screen overflow-hidden -mt-16 md:-mt-38 lg:-mt-36"},ee={class:"relative flex flex-col justify-end mt-auto lg:min-h-216"},te={class:"flex flex-col items-center lg:w-1/4 max-w-md mx-auto nl-md:px-12"},ae={class:"font-serif text-lg sm:text-xl text-center text-white mb-6"},se={class:"relative"},m="absolute top-0 left-0 h-full w-full bg-cover bg-center bg-scroll lg:bg-fixed",ge=L({__name:"index",async setup(le){let e,o;const{client:w}=R(),p=I(),_=N(),y=V(),C=([e,o]=r(()=>W()),e=await e,o(),e),k=j(),g=D(),S=F(),A=U(),{BASE_URL:B}=Z().public,{data:n,error:E}=([e,o]=r(()=>G("home",()=>w.getSingle("homepage",{lang:y.value}))),e=await e,o(),e);if(!n.value||E.value)throw z({statusCode:404,fatal:!0});const a=n&&n.value?n.value.data:{title:"page not found"};k.value=!1,S.value=([e,o]=r(()=>a.invert_main_cta),e=await e,o(),e||!1),A.value=([e,o]=r(()=>a.invert_choose_a_club),e=await e,o(),e||!1);const s=n.value;return(s.data.social_cards&&s.data.social_cards[0]&&s.data.social_cards[0].social_card_image.facebook?Object.keys(s.data.social_cards[0].social_card_image.facebook).length===0:!0)?g.value={}:(s.data.sharing_url=B+p.path,s.data.sharing_locale=s.lang?s.lang.split("-")[0]+"_"+s.lang.split("-")[1].toUpperCase():"en_GB",g.value=s.data),M({htmlAttrs:{lang:p.params.lang},title:a.meta_title||C.meta_title_default,meta:[{hid:"description",name:"description",content:"Family-friendly clubs for sports, fitness and fun around Europe. Our clubs offer opportunities for all fitness levels."}]}),(x,i)=>{const T=X,$=K,H=q;return d(),f("div",null,[l("header",Y,[t(a).image?(d(),f(O,{key:0},[l("div",{class:c(["hidden nl-md:block",m]),style:u(`background-image: url(${t(a).image.smallorientport.url})`)},null,4),l("div",{class:c(["hidden md:block xl:hidden",m]),style:u(`background-image: url(${t(a).image.largeorientland.url})`)},null,4),l("div",{class:c(["hidden xl:block",m]),style:u(`background-image: url(${t(a).image.xlargeorientland.url})`)},null,4)],64)):h("",!0),l("div",ee,[b(T,{class:c(["font-serif text-white text-3xl md:text-6xl text-center uppercase tracking-wider leading-tight sm:w-4/5 max-w-6xl px-2 mx-auto pb-6 md:pb-20",t(a).headline_body[0]&&"text"in t(a).headline_body[0]&&t(a).headline_body[0].text.length?"":"pb-36 md:pb-44"]),field:t(a).headline},null,8,["class","field"]),l("div",te,[l("h3",ae,v(x.$prismic.asText(t(a).headline_body)),1)]),l("button",{class:"w-auto bg-white text-black uppercase tracking-wider mx-auto py-2 px-8 md:mb-6",onClick:i[0]||(i[0]=ne=>_.value=!t(_))},v(x.$prismic.asText(t(a).choose_button)),1),b($,{class:""}),i[1]||(i[1]=l("span",{class:"relative w-px h-28 bg-white mx-auto mt-12"},null,-1))])]),l("div",se,[t(a)?(d(),P(H,{key:0,slices:t(n).data.body,components:t(J)(t(Q))},null,8,["slices","components"])):h("",!0)])])}}});export{ge as default};