import{u as Ae,_ as De,a as Le}from"./BWeJhrkh.js";import{_ as Re}from"./BQ1rQp_p.js";import{h as je,u as He,j as ze,l as Me,J as We,K as Ge,m as L,$ as Ze,x as qe,i as Xe,A as Je,L as w,B as Ke,C as h,M as V,D as Qe,o as Ye,b as et,e as i,c as u,F as e,g as N,d as l,n as m,N as q,t as r,f as _,O,P as A,w as R,Q as C,E as X,R as ye,T as g,U as I,a0 as ke,V as j,H as tt,X as at,Y as lt,S as st,I as nt,W as ot}from"./CMy8cRRO.js";import{l as rt,c as it,a as ut}from"./B-_kvV4S.js";import{c as ct}from"./BNA1-8g2.js";import{u as dt}from"./DqRmt5m0.js";import{a as mt}from"./DNyoUGSK.js";import{u as pt}from"./DxxYtJ8_.js";import"./B2W7z4nR.js";import"./Bodsu7BH.js";const _t={key:0,class:"relative flex flex-col h-100vh md:h-70vh overflow-hidden"},ft={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"},bt={class:"relative font-sans text-sm md:text-base tracking-wider uppercase px-4 mb-3 md:mb-5"},vt={key:0,class:"relative font-sans text-sm md:text-base tracking-normal px-4 mt-3 md:mt-6"},ht={key:1,class:"relative font-serif text-lg tracking-normal list-disc mt-10"},gt={key:2,class:"absolute bottom-0 flex flex-col w-full px-8 md:hidden mb-10"},yt={key:3,class:"flex flex-col md:flex-row md:items-center md:justify-center px-8 hidden md:block mb-10 mt-10"},kt={class:"relative flex flex-wrap md:grid md:grid-cols-2 max-w-site mx-auto"},xt={class:"w-full pb-4 md:pr-8 lg:pr-12 md:pt-4 row-span-1"},wt=["id"],Ct={key:1,class:"w-full md:pl-8 pt-8 -mt-8 row-span-2"},Tt={key:0},St={class:"font-serif text-lg normal-case tracking-normal mb-2"},$t={key:1},Nt={class:"md:grid md:gap-8 md:grid-cols-2 mb-12"},It=["placeholder"],Pt={for:"firstnameTOP",class:"label-float"},Ft=["placeholder"],Vt={for:"surnameTOP",class:"label-float"},Et=["placeholder"],Bt={for:"emailTOP",class:"label-float"},Ut=["placeholder"],Ot={for:"phoneTOP",class:"label-float"},At={value:"",selected:""},Dt=["value"],Lt={class:"label-checkbox flex font-serif tracking-normal text-base cursor-pointer py-4",for:"consent1TOP"},Rt={class:"flex relative"},jt={class:"label-checkbox flex font-serif tracking-normal text-base cursor-pointer py-4",for:"consent2TOP"},Ht={key:0,class:"p-5"},zt={class:"flex flex-col items-center md:items-start md:justify-end row-span-1 nl-md:w-full nl-md:text-base nl-md:text-center tracking-wider uppercase nl-md:pt-12"},Mt=["href"],Wt={key:0,class:"mt-10 md:pr-8 lg:pr-12"},Gt={class:"flex justify-center md:justify-start text-base tracking-wider uppercase mb-2"},Zt={key:0,class:"font-serif text-lg tracking-normal normal-case"},qt={class:"relative flex flex-wrap md:grid md:grid-cols-2 max-w-site mx-auto"},Xt={class:"w-full pb-4 md:pr-8 lg:pr-12 md:pt-4 row-span-1"},Jt={key:0,class:"w-full md:pl-8 row-span-2"},Kt=["id"],Qt={key:1,class:"w-full md:pl-8 row-span-2"},Yt={key:0},ea={class:"font-serif text-lg normal-case tracking-normal mb-2"},ta={key:1},aa={class:"md:grid md:gap-8 md:grid-cols-2 mb-12"},la=["placeholder"],sa={for:"firstnameBT",class:"label-float"},na=["placeholder"],oa={for:"surnameBT",class:"label-float"},ra=["placeholder"],ia={for:"emailBT",class:"label-float"},ua=["placeholder"],ca={for:"phoneBT",class:"label-float"},da={value:"",selected:""},ma=["value"],pa={class:"label-checkbox flex font-serif tracking-normal text-base cursor-pointer py-4",for:"consent1BT"},_a={class:"flex relative"},fa={class:"label-checkbox flex font-serif tracking-normal text-base cursor-pointer py-4",for:"consent2BT"},ba={key:0,class:"p-5"},va={class:"flex flex-col items-center md:items-start md:justify-end row-span-1 nl-md:w-full nl-md:text-base nl-md:text-center tracking-wider uppercase nl-md:pt-12"},ha=["href"],ga={key:0,class:"mt-10 md:pr-8 lg:pr-12"},ya={class:"flex justify-center md:justify-start text-base tracking-wider uppercase mb-2"},ka={key:0,class:"font-serif text-lg tracking-normal normal-case"},xa="",Ua=je({__name:"[uid]",async setup(wa){let f,T;const{client:xe}=He(),P=ze(),we=Me();We();const Ce=Ge(),c=([f,T]=L(()=>dt()),f=await f,T(),f),J=([f,T]=L(()=>mt()),f=await f,T(),f),Te=([f,T]=L(()=>Ae()),f=await f,T(),f),S=Ze(),x=ot(),K=qe(),{$pushGTMEvent:Se}=Xe(),{BASE_URL:H,DEFAULT_CONVERSION_VALUE:$e}=Je().public,Q=w(P.params.uid.toString()),a=w({firstName:"",surname:"",email:"",phoneNumber:"",selectClub:"",privacyPolicy:!1,newsletterSubscribe:!1,errors:{firstName:!1,surname:!1,email:!1,selectClub:!1,privacyPolicy:!1,emailInvalid:!1},submittedSuccess:!1}),D=w({}),Y=w({link_type:"Web",url:"https://enquirebooktour"}),F=w(!1),ee=w(""),te=w(!1),{data:b,error:Ne}=([f,T]=L(()=>tt(Q.value,()=>xe.getByUID("global_campaign",Q.value,{lang:we.value}),"$mtnR2X490j")),f=await f,T(),f);if(!b.value||Ne.value)throw Ke({statusCode:404,fatal:!0});if(rt(b.value.data.logo_link_override)&&(Ce.value=b.value.data.logo_link_override),"disable_lang_layer"in b.value.data&&b.value.data.disable_lang_layer,b.value.data.campaign_linked_clubs_group.length&&"campaign_linked_club"in b.value.data.campaign_linked_clubs_group[0]&&b.value.data.campaign_linked_clubs_group[0].campaign_linked_club&&b.value.data.campaign_linked_clubs_group[0].campaign_linked_club.id){const s=[];b.value.data.campaign_linked_clubs_group.forEach(t=>{s.push(t.campaign_linked_club.id)})}"main_logo_link_override"in b.value.data;const n=b.value.data;te.value=n.show_campaign_header_nav||!1;const ae=h(()=>new Date().toLocaleDateString("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"})),z=h(()=>"absolute top-0 left-0 h-full w-full bg-cover bg-center bg-scroll lg:bg-fixed"),le=h(()=>V(n.default_form_name)),Ie=h(()=>V(n.default_portal_id)),Pe=h(()=>V(n.default_form_id)),M=h(()=>V(n.embedded_form_name)),W=h(()=>V(n.embedded_portal_id)),$=h(()=>V(n.embedded_form_id)),E=h(()=>M.value!==""&&W.value!==""&&$.value!==""),se=h(()=>({"transform -rotate-45":F})),ne=h(()=>!(window.innerWidth<768)),oe=h(()=>!("only_use_first_form"in n&&n.only_use_first_form===!0)),Fe=h(()=>"canonical"in n&&"uid"in n.canonical&&n.canonical.uid?H+Qe(n.canonical):H+P.path),Ve=h(()=>n.campaign_header_nav?(n.campaign_header_nav.forEach(async s=>{if(it(s.link)&&s.link.type==="club_page"){const t=await Te[s.link.id];return t&&(s.link.location=t),s}}),[...n.campaign_header_nav]):[]);Ye(()=>{Ue(),re(),window.addEventListener("resize",()=>{setTimeout(()=>{re()},500)}),window.addEventListener("scroll",()=>{let s=!1;n.slice_links.forEach(t=>{Be(t.slice_id)&&!s&&(ee.value=t.slice_id,s=!0)}),s||(ee.value="")})});function re(){{const s=Number(window.innerHeight/1e3).toFixed(2),t=(parseFloat(.7)-parseFloat(s))*4.5,p=w(null);p.value&&(t>-2?p.value.style.fontSize=`${2-t}rem`:p.value.style.fontSize="4.5rem")}}const G=w(null);function Ee(){G.value.scrollIntoView({behavior:"smooth"})}function Be(s){if(document.getElementById(s)===null)return!1;const t=document.getElementById(s).getBoundingClientRect();return t.top>=0&&t.left>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function Ue(){setTimeout(()=>{var s,t;E.value?((s=window.hbspt)==null||s.forms.create({portalId:W.value,formId:$.value,formInstanceId:"hsfrm1",target:"#embedded-form1-"+$.value,onFormSubmitted:function(p,v){ie(1,v)},onFormSubmit:function(){Z()}}),oe.value&&((t=window.hbspt)==null||t.forms.create({portalId:W.value,formId:$.value,formInstanceId:"hsfrm2",target:"#embedded-form2-"+$.value,onFormSubmitted:function(p,v){ie(2,v)},onFormSubmit:function(){Z()}}))):x==null||x.push({event:"api_form_loaded"})},1e3)}function ie(s,t){var d,y;const p=(d=t==null?void 0:t.submissionValues)==null?void 0:d.main_club,v=(y=t==null?void 0:t.submissionValues)==null?void 0:y.email;x==null||x.push({event:"form_submitted",form_name:E.value?M.value:le.value,form_type:"page",club:p,email:v}),x==null||x.push({event:"ga4_form_submitted",glCurrency:"EUR",glValue:$e,glType:"Global campaign",ga4FormName:E.value?M.value:le.value}),Se("elementClick",{type:"hubspot-form",name:"Submit - Campaign - "+p,destination:"NA",position:s,origin:"Embedded Form",pageUrl:P.path})}function Z(){const s=document.querySelectorAll('input[name="asp_channel"]');for(let d=0,y=s.length;d<y;d++)s[d].value===""&&(s[d].value="Web - Campaign");const t=document.querySelectorAll('input[name="asp_source"]');for(let d=0,y=t.length;d<y;d++)t[d].value===""&&(t[d].value="Digital");const p=document.querySelectorAll('input[name="asp_subsource"]');for(let d=0,y=p.length;d<y;d++)p[d].value===""&&(p[d].value="Other Paid Online Advertising");const v=document.querySelectorAll('input[name="ga_ref"]');for(let d=0,y=v.length;d<y;d++)v[d].value===""&&(v[d].value=ae)}async function ue(){let s=0;if(a.value.firstName===""&&(a.value.errors.firstName=!0,s++),a.value.surname===""&&(a.value.errors.surname=!0,s++),a.value.email==="")a.value.errors.email=!0,s++;else{const p=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;a.value.email&&!p.test(a.value.email)?(a.value.errors.emailInvalid=!0,s++):a.value.errors.emailInvalid=!1}const t=/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s./0-9]*$/;if(a.value.phoneNumber!==""&&(a.value.phoneNumber.length<8||!t.test(a.value.phoneNumber))&&(a.value.errors.phoneNumber=!0,s++),a.value.privacyPolicy===!1&&(a.value.errors.privacyPolicy=!0,s++),a.value.selectClub===""&&(a.value.errors.selectClub=!0,s++),s===0){const p="https://api.hsforms.com/submissions/v3/integration/submit/"+Ie.value+"/"+Pe.value,{data:v,error:d}=await pt(p,{method:"post",body:{fields:[{name:"main_club",value:a.value.selectClub},{name:"email",value:a.value.email},{name:"firstname",value:a.value.firstName},{name:"lastname",value:a.value.surname},{name:"mobilephone",value:a.value.phoneNumber},{name:"communication_language",value:P.params.lang.toUpperCase()},{name:"asp_channel",value:B("u_channel")||"Web - Campaign"},{name:"asp_source",value:B("u_source")||"Digital"},{name:"asp_subsource",value:B("u_subsource")||"Other Paid Online Advertising"},{name:"ga_ref",value:B("u_ga_ref")||ae.value},{name:"asp_marketingcampaignformtype",value:"active campaign"},{name:"i_have_read_your_data_protection_policy",value:a.value.privacyPolicy.toString()},{name:"yes_keep_me_informed_via_email_about_aspria_s_news_exclusive_promotions_and_benefits_",value:a.value.newsletterSubscribe.toString()}],context:{hutk:B("hubspotutk"),pageUri:P.path,pageName:document.title}}},"$fkWC5LirWs");if(d.value)throw d;a.value.submittedSuccess=!0,Z()}else return!1}function B(s){return(document.cookie.split("; ").find(v=>v.startsWith(s+"="))||"").split("=")[1]}const k=b.value;return(k.data.social_cards&&k.data.social_cards[0]&&k.data.social_cards[0].social_card_image.facebook?Object.keys(k.data.social_cards[0].social_card_image.facebook).length===0:!0)?K.value={}:(k.data.sharing_url=H+P.path,k.data.sharing_locale=k.lang?k.lang.split("-")[0]+"_"+k.lang.split("-")[1].toUpperCase():"en_GB",K.value=k.data),et({htmlAttrs:{lang:P.params.lang},title:n.meta_title||(c==null?void 0:c.meta_title_default),meta:[{hid:"description",name:"description",content:n.meta_description||(c==null?void 0:c.meta_description_default)}],script:[{hid:"hubspot"+$.value,src:"https://js.hsforms.net/forms/v2.js",defer:!1}],link:[{rel:"canonical",href:Fe}]}),(s,t)=>{var me,pe,_e,fe,be,ve,he,ge;const p=De,v=Re,d=at,y=Le,ce=lt,de=ut,Oe=st;return i(),u("section",null,[e(n)?(i(),u("header",_t,[N(p,{shownav:e(te),navitems:e(Ve),navtitle:e(n).campaign_header_nav_title},null,8,["shownav","navitems","navtitle"]),l("div",{class:m(["hidden nl-md:block",e(z)]),style:q(`background-image: url(${e(n).image.smallorientport.url})`)},null,6),l("div",{class:m(["hidden md:block xl:hidden",e(z)]),style:q(`background-image: url(${e(n).image.largeorientland.url})`)},null,6),l("div",{class:m(["hidden xl:block",e(z)]),style:q(`background-image: url(${e(n).image.xlargeorientland.url})`)},null,6),l("div",ft,[l("h1",bt,r(s.$prismic.asText(e(n).eyebrow_headline)),1),l("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(s.$prismic.asText(e(n).headline)),513),"sub_headline"in e(n)&&e(n).sub_headline.length?(i(),u("h3",vt,r(s.$prismic.asText(e(n).sub_headline)),1)):_("",!0),"campaign_header_feature_item"in e(n)&&e(n).campaign_header_feature_item.length&&e(n).campaign_header_feature_item[0].text?(i(),u("ul",ht,[(i(!0),u(O,null,A(e(n).campaign_header_feature_item,(o,U)=>(i(),u("li",{key:"feature"+U,class:"mb-2"},r(o.text),1))),128))])):_("",!0),e(n).global_campaign_hide_book_tour?_("",!0):(i(),u("div",gt,[N(d,{btnstyle:""},{default:R(()=>[N(v,{document:e(Y),class:m(["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(n).book_a_tour_button_style!==null&&e(n).book_a_tour_button_style!==void 0?`primary btn--${e(n).book_a_tour_button_style}`:""]),slice_type:"header"},{default:R(()=>[C(r(s.$prismic.asText(e(c).book_a_tour)),1)]),_:1},8,["document","class"])]),_:1}),e(n).hide_form?_("",!0):(i(),u("button",{key:0,class:"w-content nav-item relative text-sm uppercase tracking-wider focus:outline-gbl mx-auto",onClick:t[0]||(t[0]=o=>Ee())},[C(r(e(n).form_scrollto_text)+" ",1),t[21]||(t[21]=l("span",{class:"nav-item-underline-reverse bg-current"},null,-1))]))])),e(n).global_campaign_hide_book_tour?_("",!0):(i(),u("div",yt,[N(d,{btnstyle:""},{default:R(()=>[N(v,{document:e(Y),class:m(["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(n).book_a_tour_button_style!==null&&e(n).book_a_tour_button_style!==void 0?`primary btn--${e(n).book_a_tour_button_style}`:""]),slice_type:"header"},{default:R(()=>[C(r(e(n).book_a_tour_override||s.$prismic.asText(e(c).book_a_tour)),1)]),_:1},8,["document","class"])]),_:1})]))])])):_("",!0),(pe=(me=e(b))==null?void 0:me.data)!=null&&pe.enable_dynamic_language_layer&&((_e=e(b))!=null&&_e.alternate_languages)?(i(),X(y,{key:1,languages:(fe=e(b))==null?void 0:fe.alternate_languages},null,8,["languages"])):_("",!0),l("div",{class:m(["relative z-30 transition-colors duration-700 bg-white",xa])},[e(n).hide_form?_("",!0):(i(),u("div",{key:0,class:m(["w-full py-12 px-6 md:px-12 md:pt-16 md:pb-20",s.$styling((be=e(n))==null?void 0:be.backgroundColour)])},[l("div",kt,[l("div",xt,[N(ce,{field:e(n).header_content,class:"article nl-md:text-center"},null,8,["field"])]),e(E)?(i(),u("div",{key:0,ref_key:"headerForm",ref:G,class:"w-full md:pl-8 pt-8 -mt-8 row-span-2"},[l("div",{id:"embedded-form1-"+e($)},null,8,wt)],512)):(i(),u("div",Ct,[e(a).submittedSuccess?(i(),u("div",Tt,[l("p",St,r(s.$prismic.asText(e(n).form_confirmation_message)),1)])):(i(),u("div",$t,[l("form",{ref_key:"headerForm",ref:G,onSubmit:t[9]||(t[9]=ye(()=>{},["prevent"]))},[l("div",Nt,[l("div",{class:m([e(a).errors.firstName&&e(a).firstName===""?"input-has-error":"","label-float-container mb-12 md:mb-4"])},[g(l("input",{id:"firstnameTOP","onUpdate:modelValue":t[1]||(t[1]=o=>e(a).firstName=o),placeholder:e(c).first_name+"*",type:"text",class:"label-float-input"},null,8,It),[[I,e(a).firstName]]),l("label",Pt,r(e(c).first_name+"*"),1)],2),l("div",{class:m([e(a).errors.surname&&e(a).surname===""?"input-has-error":"","label-float-container mb-12 md:mb-4"])},[g(l("input",{id:"surnameTOP","onUpdate:modelValue":t[2]||(t[2]=o=>e(a).surname=o),placeholder:e(c).last_name+"*",type:"text",class:"label-float-input"},null,8,Ft),[[I,e(a).surname]]),l("label",Vt,r(e(c).last_name+"*"),1)],2),l("div",{class:m([e(a).errors.email&&e(a).email===""||e(a).errors.emailInvalid?"input-has-error":"","label-float-container mb-12 md:mb-0"])},[g(l("input",{id:"emailTOP","onUpdate:modelValue":t[3]||(t[3]=o=>e(a).email=o),placeholder:e(c).email_address+"*",type:"email",class:"label-float-input"},null,8,Et),[[I,e(a).email]]),l("label",Bt,r(e(c).email_address+"*"),1)],2),l("div",{class:m([e(a).errors.phoneNumber&&!s.currentStepIsValidated?"input-has-error":"","label-float-container mb-12 md:mb-0"])},[g(l("input",{id:"phoneTOP","onUpdate:modelValue":t[4]||(t[4]=o=>e(a).phoneNumber=o),placeholder:e(c).phone_number,type:"tel",class:"label-float-input"},null,8,Ut),[[I,e(a).phoneNumber]]),l("label",Ot,r(e(c).phone_number),1)],2),l("div",{class:m(["mb-12 md:mb-0",e(a).errors.selectClub&&e(a).selectClub===""?"input-has-error":""])},[g(l("select",{"onUpdate:modelValue":t[5]||(t[5]=o=>e(a).selectClub=o)},[l("option",At,r(s.$prismic.asText(e(J).choose_a_club)),1),(i(!0),u(O,null,A(s.clubs,o=>(i(),u("option",{key:o.uid,value:s.$prismic.asText(o.data.internal_club_code)},r(s.$prismic.asText(o.data.club_title)),9,Dt))),128))],512),[[ke,e(a).selectClub]])],2)]),l("div",{class:m([e(a).errors.privacyPolicy&&e(a).privacyPolicy===!1?"input-has-error":"","flex relative"])},[g(l("input",{id:"consent1TOP","onUpdate:modelValue":t[6]||(t[6]=o=>e(a).privacyPolicy=o),type:"checkbox",value:"true",class:"hidden"},null,512),[[j,e(a).privacyPolicy]]),l("label",Lt,r(s.$prismic.asText(e(c).privacy_policy_checkbox_copy)),1)],2),l("div",Rt,[g(l("input",{id:"consent2TOP","onUpdate:modelValue":t[7]||(t[7]=o=>e(a).consent2=o),type:"checkbox",value:"true",class:"hidden"},null,512),[[j,e(a).consent2]]),l("label",jt,r(s.$prismic.asText((ve=e(c))==null?void 0:ve.subscription_newsletter_checkbox_copy)),1)]),l("button",{class:m(["flex justify-center relative font-sans text-sm uppercase tracking-wider transition duration-500 ease-in-out text-current shadow focus:outline-gbl mt-8 px-6 py-3",s.$styling("button__secondary")]),onClick:t[8]||(t[8]=o=>ue())},r((he=e(c))==null?void 0:he.submit_button),3),e(D)?(i(),u("div",Ht,[(i(!0),u(O,null,A(e(D),(o,U)=>(i(),u("div",{key:"err"+U,class:"p-2"},r(o.errorType)+": "+r(o.message),1))),128))])):_("",!0)],544)]))])),l("div",zt,[l("div",null,[C(r(s.$prismic.asText(e(n).global_phone_title))+" ",1),l("a",{class:"nav-item relative w-content block text-2xl md:text-3xl font-serif pt-2 nl-md:mx-auto",href:"tel:"+e(n).global_phone_number},[C(r(e(n).global_phone_number)+" ",1),t[22]||(t[22]=l("span",{class:"nav-item-underline-reverse bg-current"},null,-1))],8,Mt)]),e(n).show_covid_guarantee&&e(S).covid_guarantee_headline&&e(S).covid_guarantee_text?(i(),u("div",Wt,[l("div",Gt,[l("button",{class:"flex items-center font-sans text-base tracking-wider uppercase focus:outline-gbl md:cursor-default",onClick:t[10]||(t[10]=o=>F.value=!e(F))},[C(r(s.$prismic.asText(e(S).covid_guarantee_headline))+" ",1),N(de,{class:m([e(se),"transition-transform duration-500 ease-in-out ml-3 md:hidden"])},null,8,["class"])])]),e(ne)||e(F)?(i(),u("p",Zt,r(s.$prismic.asText(e(S).covid_guarantee_text)),1)):_("",!0)])):_("",!0)])])],2)),l("div",null,[e(n).body?(i(),X(Oe,{key:0,slices:e(n).body,components:e(nt)(e(ct))},null,8,["slices","components"])):_("",!0)]),e(oe)&&!e(n).hide_form?(i(),u("div",{key:1,class:m(["w-full py-12 px-6 md:px-12 md:pt-16 md:pb-20",s.$styling((ge=e(n))==null?void 0:ge.backgroundColour)])},[l("div",qt,[l("div",Xt,[e(n).footer_content[0]?(i(),X(ce,{key:0,field:e(n).footer_content[0].text.length?e(n).footer_content:e(n).header_content,class:"article nl-md:text-center"},null,8,["field"])):_("",!0)]),e(E)?(i(),u("div",Jt,[l("div",{id:"embedded-form2-"+e($)},null,8,Kt)])):(i(),u("div",Qt,[e(a).submittedSuccess?(i(),u("div",Yt,[l("p",ea,r(s.$prismic.asText(e(n).form_confirmation_message)),1)])):(i(),u("div",ta,[l("form",{class:"",onSubmit:t[19]||(t[19]=ye(()=>{},["prevent"]))},[l("div",aa,[l("div",{class:m([e(a).errors.firstName&&e(a).firstName===""?"input-has-error":"","label-float-container mb-12 md:mb-4"])},[g(l("input",{id:"firstnameBT","onUpdate:modelValue":t[11]||(t[11]=o=>e(a).firstName=o),placeholder:e(c).first_name+"*",type:"text",class:"label-float-input"},null,8,la),[[I,e(a).firstName]]),l("label",sa,r(e(c).first_name+"*"),1)],2),l("div",{class:m([e(a).errors.surname&&e(a).surname===""?"input-has-error":"","label-float-container mb-12 md:mb-4"])},[g(l("input",{id:"surnameBT","onUpdate:modelValue":t[12]||(t[12]=o=>e(a).surname=o),placeholder:e(c).last_name+"*",type:"text",class:"label-float-input"},null,8,na),[[I,e(a).surname]]),l("label",oa,r(e(c).last_name+"*"),1)],2),l("div",{class:m([e(a).errors.email&&e(a).email===""||e(a).errors.emailInvalid?"input-has-error":"","label-float-container mb-12 md:mb-0"])},[g(l("input",{id:"emailBT","onUpdate:modelValue":t[13]||(t[13]=o=>e(a).email=o),placeholder:e(c).email_address+"*",type:"email",class:"label-float-input"},null,8,ra),[[I,e(a).email]]),l("label",ia,r(e(c).email_address+"*"),1)],2),l("div",{class:m([e(a).errors.phoneNumber&&!s.currentStepIsValidated?"input-has-error":"","label-float-container"])},[g(l("input",{id:"phoneBT","onUpdate:modelValue":t[14]||(t[14]=o=>e(a).phoneNumber=o),placeholder:e(c).phone_number,type:"tel",class:"label-float-input"},null,8,ua),[[I,e(a).phoneNumber]]),l("label",ca,r(e(c).phone_number),1)],2),l("div",{class:m(["mb-12 md:mb-0",e(a).errors.selectClub&&e(a).selectClub===""?"input-has-error":""])},[g(l("select",{"onUpdate:modelValue":t[15]||(t[15]=o=>e(a).selectClub=o)},[l("option",da,r(s.$prismic.asText(e(J).choose_a_club)),1),(i(!0),u(O,null,A(s.clubs,o=>(i(),u("option",{key:o.uid,value:s.$prismic.asText(o.data.internal_club_code)},r(s.$prismic.asText(o.data.club_title)),9,ma))),128))],512),[[ke,e(a).selectClub]])],2)]),l("div",{class:m([e(a).errors.privacyPolicy&&e(a).privacyPolicy===!1?"input-has-error":"","flex relative"])},[g(l("input",{id:"consent1BT","onUpdate:modelValue":t[16]||(t[16]=o=>e(a).privacyPolicy=o),type:"checkbox",value:"true",class:"hidden"},null,512),[[j,e(a).privacyPolicy]]),l("label",pa,r(s.$prismic.asText(e(c).privacy_policy_checkbox_copy)),1)],2),l("div",_a,[g(l("input",{id:"consent2BT","onUpdate:modelValue":t[17]||(t[17]=o=>e(a).consent2=o),type:"checkbox",value:"true",class:"hidden"},null,512),[[j,e(a).consent2]]),l("label",fa,r(s.$prismic.asText(e(c).subscription_newsletter_checkbox_copy)),1)]),l("button",{class:m(["flex justify-center relative font-sans text-sm uppercase tracking-wider transition duration-500 ease-in-out text-white shadow focus:outline-gbl mt-8 px-6 py-3",s.$styling("button__secondary")]),onClick:t[18]||(t[18]=o=>ue())},r(e(c).submit_button),3),e(D)?(i(),u("div",ba,[(i(!0),u(O,null,A(e(D),(o,U)=>(i(),u("div",{key:"err"+U,class:"p-2"},r(o.errorType)+": "+r(o.message),1))),128))])):_("",!0)],32)]))])),l("div",va,[l("div",null,[C(r(s.$prismic.asText(e(n).global_phone_title))+" ",1),l("a",{class:"nav-item relative w-content block text-2xl md:text-3xl font-serif pt-2 nl-md:mx-auto",href:"tel:"+e(n).global_phone_number},[C(r(e(n).global_phone_number)+" ",1),t[23]||(t[23]=l("span",{class:"nav-item-underline-reverse bg-current"},null,-1))],8,ha)]),e(n).show_covid_guarantee&&e(S).covid_guarantee_headline&&e(S).covid_guarantee_text?(i(),u("div",ga,[l("div",ya,[l("button",{class:"flex items-center font-sans text-base tracking-wider uppercase focus:outline-gbl md:cursor-default",onClick:t[20]||(t[20]=o=>F.value=!e(F))},[C(r(s.$prismic.asText(e(S).covid_guarantee_headline))+" ",1),N(de,{class:m([e(se),"transition-transform duration-500 ease-in-out ml-3 md:hidden"])},null,8,["class"])])]),e(ne)||e(F)?(i(),u("p",ka,r(s.$prismic.asText(e(S).covid_guarantee_text)),1)):_("",!0)])):_("",!0)])])],2)):_("",!0)])])}}});export{Ua as default};