import{u as we,_ as $e,a as Ce,b as Te}from"./DA_6NKms.js";import{h as Ne,u as Se,j as Pe,k as Ie,J as Ve,K as Ue,m as O,x as Oe,i as Ee,A as ue,L as E,o as Fe,M as k,C as v,b as Be,e as r,c as u,F as e,g as S,d as s,n as c,N as H,E as j,w as Ae,f as b,t as i,O as de,P as h,Q as C,R as F,T as M,U as Z,V as P,W as De,H as ce,X as Le,S as Ge,I as Re}from"./CSGWN0Ke.js";import{c as He,a as je}from"./BITtZpNW.js";import{c as Me}from"./Dci3BOLr.js";import{u as Ze}from"./00Wz9xmJ.js";import"./RssLZfLx.js";import"./CoNkNGrd.js";import"./BR7tlqX7.js";import"./DCT9NofI.js";const ze={key:0,class:"relative flex flex-col h-100vh md:h-80vh xl:h-70vh overflow-hidden"},We={key:0,class:"nl-md:absolute nl-md:top-1/2 nl-md:transform nl-md:-translate-y-1/2 font-serif text-lg text-left tracking-normal list-disc md:mt-4 lg:mt-10 px-8 md:px-4"},qe={class:"relative flex flex-wrap md:grid md:grid-cols-2 max-w-site mx-auto"},Je={class:"w-full pb-4 md:pr-8 lg:pr-12 md:pt-4 row-span-1"},Ke=["id"],Qe={key:1,class:"w-full md:pl-8 pt-8 -mt-8 row-span-2"},Xe={key:0},Ye={class:"font-serif text-lg normal-case tracking-normal mb-2"},et={key:1},tt={class:"md:grid md:gap-8 md:grid-cols-2 mb-12"},at=["placeholder"],st={for:"firstnameTOP",class:"label-float"},nt=["placeholder"],ot={for:"surnameTOP",class:"label-float"},lt=["placeholder"],rt={for:"emailTOP",class:"label-float"},it=["placeholder"],ut={for:"phoneTOP",class:"label-float"},dt={class:"label-checkbox flex font-serif tracking-normal text-base cursor-pointer py-4",for:"consent1TOP"},ct={class:"flex relative"},mt={class:"label-checkbox flex font-serif tracking-normal text-base cursor-pointer py-4",for:"consent2TOP"},pt={key:0,class:"p-5"},ft={class:"flex flex-col items-center md:items-start row-span-1 nl-md:w-full nl-md:text-base nl-md:text-center tracking-wider uppercase nl-md:pt-12"},_t=["href"],bt={key:0,class:"mt-10 md:pr-8 lg:pr-12"},vt={class:"flex justify-center md:justify-start text-base tracking-wider uppercase mb-2"},ht={key:0,class:"font-serif text-lg tracking-normal normal-case"},gt={class:"relative flex flex-wrap md:grid md:grid-cols-2 max-w-site mx-auto"},yt={class:"w-full pb-4 md:pr-8 lg:pr-12 md:pt-4 row-span-1"},kt={key:0,class:"w-full md:pl-8 row-span-2"},xt=["id"],wt={key:1,class:"w-full md:pl-8 row-span-2"},$t={key:0},Ct={class:"font-serif text-lg normal-case tracking-normal mb-2"},Tt={key:1},Nt={class:"md:grid md:gap-8 md:grid-cols-2 mb-12"},St=["placeholder"],Pt={for:"firstnameBT",class:"label-float"},It=["placeholder"],Vt={for:"surnameBT",class:"label-float"},Ut=["placeholder"],Ot={for:"emailBT",class:"label-float"},Et=["placeholder"],Ft={for:"phoneBT",class:"label-float"},Bt={class:"label-checkbox flex font-serif tracking-normal text-base cursor-pointer py-4",for:"consent1BT"},At={class:"flex relative"},Dt={class:"label-checkbox flex font-serif tracking-normal text-base cursor-pointer py-4",for:"consent2BT"},Lt={key:0,class:"p-5"},Gt={class:"flex flex-col items-center md:items-start row-span-1 nl-md:w-full nl-md:text-base nl-md:text-center tracking-wider uppercase nl-md:pt-12"},Rt=["href"],Ht={key:0,class:"mt-10 md:pr-8 lg:pr-12"},jt={class:"flex justify-center md:justify-start text-base tracking-wider uppercase mb-2"},Mt={key:0,class:"font-serif text-lg tracking-normal normal-case"},Zt="",z="absolute top-0 left-0 h-full w-full bg-cover bg-center bg-scroll lg:bg-fixed",na=Ne({__name:"[uid]",async setup(zt){let p,w;const{client:W}=Se(),x=Pe(),q=Ie(),me=Ve(),pe=Ue(),m=([p,w]=O(()=>Ze()),p=await p,w(),p),T=De(),J=Oe(),fe=([p,w]=O(()=>we()),p=await p,w(),p),{$pushGTMEvent:_e}=Ee(),{DEFAULT_CONVERSION_VALUE:be}=ue(),{BASE_URL:B}=ue().public,A=E(x.params.uid),N=E(!1),{data:t,error:Wt}=([p,w]=O(()=>ce(A.value,()=>W.getByUID("club_campaign",A.value,{lang:q.value[x.params.lang]}),"$g4WyZcdncG")),p=await p,w(),p),o=t.value.data,{data:D}=([p,w]=O(()=>ce(A.value+"related",()=>W.getByID(o.club_relation.id,{lang:q.value[x.params.lang]}),"$3NUOHOYPPP")),p=await p,w(),p);if(Fe(()=>{ke()}),me.value=k(o.logo_label),"main_logo_link_override"in o){const a={...o.main_logo_link_override};a.type==="club_page"&&(a.location=x.params.controller),pe.value=a}const K=E(!1);K.value=o.show_campaign_header_nav||!1;const Q=v(()=>new Date().toLocaleDateString("en-CA",{year:"numeric",month:"2-digit",day:"2-digit"})),X=v(()=>k(o.default_form_name)),ve=v(()=>k(o.default_portal_id)),he=v(()=>k(o.default_form_id)),L=v(()=>k(o.embedded_form_name)),G=v(()=>k(o.embedded_portal_id)),$=v(()=>k(o.embedded_form_id)),I=v(()=>L.value!==""&&G.value!==""&&$.value!==""),Y=v(()=>({"transform -rotate-45":N})),ge=v(()=>o.campaign_header_nav?(o.campaign_header_nav.forEach(async a=>{if(He(a.link)&&a.link.type==="club_page"){const n=await fe[a.link.id];return n&&(a.link.location=n),a}}),[...o.campaign_header_nav]):[]),ee=v(()=>!("only_use_first_form"in o&&o.only_use_first_form===!0)),ye=v(()=>"canonical"in o&&"uid"in o.canonical&&o.canonical.uid?B+LinkResolver(o.canonical):B+x.path),te=E(null);function ke(){setTimeout(()=>{var a,n;I?((a=window.hbspt)==null||a.forms.create({portalId:G.value,formId:$.value,formInstanceId:"hsfrm1",target:"#embedded-form1-"+$.value,onFormSubmitted:function(_,f){ae(1,f)},onFormSubmit:function(){R()}}),ee.value&&((n=window.hbspt)==null||n.forms.create({portalId:G.value,formId:$.value,formInstanceId:"hsfrm2",target:"#embedded-form2-"+$.value,onFormSubmitted:function(_,f){ae(2,f)},onFormSubmit:function(){R()}}))):T.push({event:"api_form_loaded"})},1e3)}function ae(a,n){var f;const _=(f=n==null?void 0:n.submissionValues)==null?void 0:f.email;T==null||T.push({event:"form_submitted",club:k(D.value.data.internal_club_code),form_name:I?L:X,form_type:"page",email:_}),T==null||T.push({event:"ga4_form_submitted",glCurrency:"EUR",glValue:be,glType:"Club campaign",ga4FormName:I?L:X}),_e("elementClick",{type:"hubspot-form",name:"Submit - Campaign - "+k(D.value.data.internal_club_code),destination:"NA",position:a,origin:"Embedded Form",pageUrl:x.path})}function R(){const a=document.querySelectorAll('input[name="asp_channel"]');for(let d=0,g=a.length;d<g;d++)a[d].value===""&&(a[d].value="Web - Campaign");const n=document.querySelectorAll('input[name="asp_source"]');for(let d=0,g=n.length;d<g;d++)console.log(`asp_source:'${n[d].value}'`),n[d].value===""&&(n[d].value="Digital");const _=document.querySelectorAll('input[name="asp_subsource"]');for(let d=0,g=_.length;d<g;d++)_[d].value===""&&(_[d].value="Other Paid Online Advertising");const f=document.querySelectorAll('input[name="ga_ref"]');for(let d=0,g=f.length;d<g;d++)f[d].value===""&&(f[d].value=Q)}function se(){let a=0;t.firstName===""&&(t.errors.firstName=!0,a++),t.surname===""&&(t.errors.surname=!0,a++),t.email===""?(t.errors.email=!0,a++):/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(t.email)?t.errors.emailInvalid=!1:(t.errors.emailInvalid=!0,a++);const n=/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s./0-9]*$/;if(t.phoneNumber!==""&&(t.phoneNumber.length<8||!n.test(t.phoneNumber))&&(t.errors.phoneNumber=!0,a++),t.privacyPolicy===!1&&(t.errors.privacyPolicy=!0,a++),a===0){const _="https://api.hsforms.com/submissions/v3/integration/submit/"+ve.value+"/"+he.value;$axios.$post(_,{fields:[{name:"main_club",value:k(D.value.data.internal_club_code)},{name:"email",value:t.email},{name:"firstname",value:t.firstName},{name:"lastname",value:t.surname},{name:"mobilephone",value:t.phoneNumber},{name:"communication_language",value:x.params.lang.toUpperCase()},{name:"asp_channel",value:V("u_channel")||"Web - Campaign"},{name:"asp_source",value:V("u_source")||"Digital"},{name:"asp_subsource",value:V("u_subsource")||"Other Paid Online Advertising"},{name:"ga_ref",value:V("u_ga_ref")||Q},{name:"asp_marketingcampaignformtype",value:"active campaign"},{name:"i_have_read_your_data_protection_policy",value:t.privacyPolicy.toString()},{name:"yes_keep_me_informed_via_email_about_aspria_s_news_exclusive_promotions_and_benefits_",value:t.newsletterSubscribe.toString()}],context:{hutk:V("hubspotutk"),pageUri:$route.path,pageName:document.title}}).then(f=>{t.submittedSuccess=!0,R()}).catch(f=>{throw hubspotErrors=f.response.data.errors,f})}}const y=t.value;(y.data.social_cards&&y.data.social_cards[0]&&y.data.social_cards[0].social_card_image.facebook?Object.keys(y.data.social_cards[0].social_card_image.facebook).length===0:!0)?J.value={}:(y.data.sharing_url=B+x.path,y.data.sharing_locale=y.lang?y.lang.split("-")[0]+"_"+y.lang.split("-")[1].toUpperCase():"en_GB",J.value=y.data);function V(a){return document.cookie.split("; ").find(_=>_.startsWith(a+"=")).split("=")[1]}return Be({htmlAttrs:{lang:x.params.lang},title:o.meta_title||(m==null?void 0:m.meta_title_default),meta:[{hid:"description",name:"description",content:o.meta_description||(m==null?void 0:m.meta_description_default)||""}],link:[{rel:"canonical",href:ye}],script:[{hid:"hubspot"+$.value,src:"https://js.hsforms.net/forms/v2.js",defer:!1}]}),(a,n)=>{var oe,le,re,ie;const _=$e,f=Ce,d=Te,g=Le,ne=je,xe=Ge;return r(),u("section",null,[e(o)?(r(),u("header",ze,[S(_,{shownav:e(K),navitems:e(ge),navtitle:e(o).campaign_header_nav_title},null,8,["shownav","navitems","navtitle"]),s("div",{class:c(["hidden nl-md:block",z]),style:H(`background-image: url(${e(o).image.smallorientport.url})`)},null,4),s("div",{class:c(["hidden md:block xl:hidden",z]),style:H(`background-image: url(${e(o).image.largeorientland.url})`)},null,4),s("div",{class:c(["hidden xl:block",z]),style:H(`background-image: url(${e(o).image.xlargeorientland.url})`)},null,4),e(o)?(r(),j(f,{key:0,content:e(o)},{default:Ae(()=>["campaign_header_feature_item"in e(o)&&e(o).campaign_header_feature_item.length&&e(o).campaign_header_feature_item[0].text?(r(),u("ul",We,[(r(!0),u(M,null,Z(e(o).campaign_header_feature_item,(l,U)=>(r(),u("li",{key:"feature"+U,class:"mb-1"},i(l.text),1))),128))])):b("",!0)]),_:1},8,["content"])):b("",!0)])):b("",!0),(le=(oe=e(t))==null?void 0:oe.data)!=null&&le.enable_dynamic_language_layer&&((re=e(t))!=null&&re.alternate_languages)?(r(),j(d,{key:1,languages:(ie=e(t))==null?void 0:ie.alternate_languages},null,8,["languages"])):b("",!0),s("section",{class:c(["relative z-30 transition-colors duration-700 bg-white",Zt])},[e(o).hide_form?b("",!0):(r(),u("div",{key:0,class:c(["w-full py-12 px-6 md:px-12 md:pt-16 md:pb-20",a.$styling(e(o).backgroundColour)])},[s("div",qe,[s("div",Je,[S(g,{field:e(o).header_content,class:"article nl-md:text-center"},null,8,["field"])]),e(I)?(r(),u("div",{key:0,ref_key:"headerForm",ref:te,class:"w-full md:pl-8 pt-8 -mt-8 row-span-2"},[s("div",{id:"embedded-form1-"+e($)},null,8,Ke)],512)):(r(),u("div",Qe,[e(t).submittedSuccess?(r(),u("div",Xe,[s("p",Ye,i(a.$prismic.asText(e(o).form_confirmation_message)),1)])):(r(),u("div",et,[s("form",{ref_key:"headerForm",ref:te,onSubmit:n[7]||(n[7]=de(()=>{},["prevent"]))},[s("div",tt,[s("div",{class:c([e(t).errors.firstName&&e(t).firstName===""?"input-has-error":"","label-float-container mb-12 md:mb-4"])},[h(s("input",{id:"firstnameTOP","onUpdate:modelValue":n[0]||(n[0]=l=>e(t).firstName=l),placeholder:e(m).first_name+"*",type:"text",class:"label-float-input"},null,8,at),[[C,e(t).firstName]]),s("label",st,i(e(m).first_name+"*"),1)],2),s("div",{class:c([e(t).errors.surname&&e(t).surname===""?"input-has-error":"","label-float-container mb-12 md:mb-4"])},[h(s("input",{id:"surnameTOP","onUpdate:modelValue":n[1]||(n[1]=l=>e(t).surname=l),placeholder:e(m).last_name+"*",type:"text",class:"label-float-input"},null,8,nt),[[C,e(t).surname]]),s("label",ot,i(e(m).last_name+"*"),1)],2),s("div",{class:c([e(t).errors.email&&e(t).email===""||e(t).errors.emailInvalid?"input-has-error":"","label-float-container mb-12 md:mb-0"])},[h(s("input",{id:"emailTOP","onUpdate:modelValue":n[2]||(n[2]=l=>e(t).email=l),placeholder:e(m).email_address+"*",type:"email",class:"label-float-input"},null,8,lt),[[C,e(t).email]]),s("label",rt,i(e(m).email_address+"*"),1)],2),s("div",{class:c([e(t).errors.phoneNumber&&!a.currentStepIsValidated?"input-has-error":"","label-float-container"])},[h(s("input",{id:"phoneTOP","onUpdate:modelValue":n[3]||(n[3]=l=>e(t).phoneNumber=l),placeholder:e(m).phone_number,type:"tel",class:"label-float-input"},null,8,it),[[C,e(t).phoneNumber]]),s("label",ut,i(e(m).phone_number),1)],2)]),s("div",{class:c([e(t).errors.privacyPolicy&&e(t).privacyPolicy===!1?"input-has-error":"","flex relative"])},[h(s("input",{id:"consent1TOP","onUpdate:modelValue":n[4]||(n[4]=l=>e(t).privacyPolicy=l),type:"checkbox",value:"true",class:"hidden"},null,512),[[F,e(t).privacyPolicy]]),s("label",dt,[S(g,{field:e(m).privacy_policy_checkbox_copy,class:"article"},null,8,["field"])])],2),s("div",ct,[h(s("input",{id:"consent2TOP","onUpdate:modelValue":n[5]||(n[5]=l=>e(t).consent2=l),type:"checkbox",value:"true",class:"hidden"},null,512),[[F,e(t).consent2]]),s("label",mt,i(a.$prismic.asText(e(m).subscription_newsletter_checkbox_copy)),1)]),s("button",{class:c(["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",a.$styling("button__secondary")]),onClick:n[6]||(n[6]=l=>se())},i(e(m).submit_button),3),a.hubspotErrors?(r(),u("div",pt,[(r(!0),u(M,null,Z(a.hubspotErrors,(l,U)=>(r(),u("div",{key:"err"+U,class:"p-2"},i(l.errorType)+": "+i(l.message),1))),128))])):b("",!0)],544)]))])),s("div",ft,[s("div",null,[P(i(a.$prismic.asText(e(o).club_phone_title))+" ",1),s("a",{class:"nav-item relative w-content block text-2xl md:text-3xl font-serif pt-2 nl-md:mx-auto",href:"tel:"+e(o).club_phone_number},[P(i(e(o).club_phone_number)+" ",1),n[18]||(n[18]=s("span",{class:"nav-item-underline-reverse bg-current"},null,-1))],8,_t)]),e(o).show_covid_guarantee&&a.$store.state.covidGuarantee.covid_guarantee_headline&&a.$store.state.covidGuarantee.covid_guarantee_text?(r(),u("div",bt,[s("div",vt,[s("button",{class:"flex items-center font-sans text-base tracking-wider uppercase focus:outline-gbl md:cursor-default",onClick:n[8]||(n[8]=l=>N.value=!e(N))},[P(i(a.$prismic.asText(a.$store.state.covidGuarantee.covid_guarantee_headline))+" ",1),S(ne,{class:c([e(Y),"transition-transform duration-500 ease-in-out ml-3 md:hidden"])},null,8,["class"])])]),a.alwaysVisibleDesktop||e(N)?(r(),u("p",ht,i(a.$prismic.asText(a.$store.state.covidGuarantee.covid_guarantee_text)),1)):b("",!0)])):b("",!0)])])],2)),s("div",null,[e(o)?(r(),j(xe,{key:0,slices:e(o).body,components:e(Re)(e(Me))},null,8,["slices","components"])):b("",!0)]),e(ee)&&!e(o).hide_form?(r(),u("div",{key:1,class:c(["w-full py-12 px-6 md:px-12 md:pt-16 md:pb-20",a.$styling(e(o).backgroundColour)])},[s("div",gt,[s("div",yt,[S(g,{field:e(o).footer_content[0].text.length?e(o).footer_content:e(o).header_content,class:"article nl-md:text-center"},null,8,["field"])]),e(I)?(r(),u("div",kt,[s("div",{id:"embedded-form2-"+e($)},null,8,xt)])):(r(),u("div",wt,[e(t).submittedSuccess?(r(),u("div",$t,[s("p",Ct,i(a.$prismic.asText(e(o).form_confirmation_message)),1)])):(r(),u("div",Tt,[s("form",{class:"",onSubmit:n[16]||(n[16]=de(()=>{},["prevent"]))},[s("div",Nt,[s("div",{class:c([e(t).errors.firstName&&e(t).firstName===""?"input-has-error":"","label-float-container mb-12 md:mb-4"])},[h(s("input",{id:"firstnameBT","onUpdate:modelValue":n[9]||(n[9]=l=>e(t).firstName=l),placeholder:a.$store.state.statictext.first_name+"*",type:"text",class:"label-float-input"},null,8,St),[[C,e(t).firstName]]),s("label",Pt,i(a.$store.state.statictext.first_name+"*"),1)],2),s("div",{class:c([e(t).errors.surname&&e(t).surname===""?"input-has-error":"","label-float-container mb-12 md:mb-4"])},[h(s("input",{id:"surnameBT","onUpdate:modelValue":n[10]||(n[10]=l=>e(t).surname=l),placeholder:a.$store.state.statictext.last_name+"*",type:"text",class:"label-float-input"},null,8,It),[[C,e(t).surname]]),s("label",Vt,i(a.$store.state.statictext.last_name+"*"),1)],2),s("div",{class:c([e(t).errors.email&&e(t).email===""||e(t).errors.emailInvalid?"input-has-error":"","label-float-container mb-12 md:mb-0"])},[h(s("input",{id:"emailBT","onUpdate:modelValue":n[11]||(n[11]=l=>e(t).email=l),placeholder:a.$store.state.statictext.email_address+"*",type:"email",class:"label-float-input"},null,8,Ut),[[C,e(t).email]]),s("label",Ot,i(a.$store.state.statictext.email_address+"*"),1)],2),s("div",{class:c([e(t).errors.phoneNumber&&!a.currentStepIsValidated?"input-has-error":"","label-float-container"])},[h(s("input",{id:"phoneBT","onUpdate:modelValue":n[12]||(n[12]=l=>e(t).phoneNumber=l),placeholder:a.$store.state.statictext.phone_number,type:"tel",class:"label-float-input"},null,8,Et),[[C,e(t).phoneNumber]]),s("label",Ft,i(a.$store.state.statictext.phone_number),1)],2)]),s("div",{class:c([e(t).errors.privacyPolicy&&e(t).privacyPolicy===!1?"input-has-error":"","flex relative"])},[h(s("input",{id:"consent1BT","onUpdate:modelValue":n[13]||(n[13]=l=>e(t).privacyPolicy=l),type:"checkbox",value:"true",class:"hidden"},null,512),[[F,e(t).privacyPolicy]]),s("label",Bt,i(a.$prismic.asText(a.$store.state.statictext.privacy_policy_checkbox_copy)),1)],2),s("div",At,[h(s("input",{id:"consent2BT","onUpdate:modelValue":n[14]||(n[14]=l=>e(t).consent2=l),type:"checkbox",value:"true",class:"hidden"},null,512),[[F,e(t).consent2]]),s("label",Dt,i(a.$prismic.asText(a.$store.state.statictext.subscription_newsletter_checkbox_copy)),1)]),s("button",{class:c(["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",a.$styling("button__secondary")]),onClick:n[15]||(n[15]=l=>se())},i(a.$store.state.statictext.submit_button),3),a.hubspotErrors?(r(),u("div",Lt,[(r(!0),u(M,null,Z(a.hubspotErrors,(l,U)=>(r(),u("div",{key:"err"+U,class:"p-2"},i(l.errorType)+": "+i(l.message),1))),128))])):b("",!0)],32)]))])),s("div",Gt,[s("div",null,[P(i(a.$prismic.asText(e(o).club_phone_title))+" ",1),s("a",{class:"nav-item relative w-content block text-2xl md:text-3xl font-serif pt-2 nl-md:mx-auto",href:"tel:"+e(o).club_phone_number},[P(i(e(o).club_phone_number)+" ",1),n[19]||(n[19]=s("span",{class:"nav-item-underline-reverse bg-current"},null,-1))],8,Rt)]),e(o).show_covid_guarantee&&a.$store.state.covidGuarantee.covid_guarantee_headline&&a.$store.state.covidGuarantee.covid_guarantee_text?(r(),u("div",Ht,[s("div",jt,[s("button",{class:"flex items-center font-sans text-base tracking-wider uppercase focus:outline-gbl md:cursor-default",onClick:n[17]||(n[17]=l=>N.value=!e(N))},[P(i(a.$prismic.asText(a.$store.state.covidGuarantee.covid_guarantee_headline))+" ",1),S(ne,{class:c([e(Y),"transition-transform duration-500 ease-in-out ml-3 md:hidden"])},null,8,["class"])])]),a.alwaysVisibleDesktop||e(N)?(r(),u("p",Mt,i(a.$prismic.asText(a.$store.state.covidGuarantee.covid_guarantee_text)),1)):b("",!0)])):b("",!0)])])],2)):b("",!0)])])}}});export{na as default};