1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="890bd9b2-50b4-52e3-ac37-7dbcb2977943")}catch(e){}}(); 3const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C_K-7xfo.js","./dps5x5lW.js","./entry.BlRNZdFi.css","./jSiHLdpT.js","./WrMarkdown.Dstvm_hf.css","./rte.BIM9sq_N.css"])))=>i.map(i=>d[i]); 4import{aP as T,bn as te,bh as y,b4 as h,aY as t,aZ as x,aT as s,aW as g,bo as ne,bP as oe,bQ as ae,a$ as L,cZ as W,aS as f,aV as w,bw as se,bi as M,bj as B,b3 as v,b5 as re,bp as A,aX as E,bO as ie,by as le,aU as ce,bD as ue,b$ as me,be as R,a_ as q,cp as pe,bf as U,bN as C,cx as z,d$ as de,cO as ve,ci as _e,b7 as ge,b6 as he,c2 as ye,bc as fe,dA as xe,c1 as be,cj as I,bm as D,c5 as ke,dX as $e,ch as we,bU as Ee,c0 as Pe,bH as Se}from"./dps5x5lW.js";import{_ as Ce,u as Te}from"./qPxQTphO.js";import{_ as Ae}from"./B4TUCtd7.js";import{_ as Ie}from"./B6R_3Ksf.js";import{_ as Oe,a as je}from"./FNP-YBdi.js";import{_ as Ve}from"./Bb0_Uh38.js";import{_ as De}from"./pKZ0tegV.js";import{_ as Me}from"./C_domvkR.js";import{_ as Le}from"./C9orgQjg.js";import We from"./ClAcU9Nl.js";import{m as Be}from"./DzzsSNh1.js";import{u as Re}from"./DE4bAZ1i.js";import{_ as qe}from"./BqyURfxz.js";import Ue from"./CxVUgk7d.js";import ze from"./DBBf6dli.js";import{u as Ne}from"./BwDedqHi.js";import"./DqVuOVTO.js";import"./XJr6P4iQ.js";import"./DwE7yRdO.js";import"./B2S_u4Fa.js";import"./CKBS3CCB.js";import"./n6i8hJLH.js";import"./BPc_Kehu.js";import"./DB5yN3sR.js";import"./Caremyy4.js";import"./D08266f1.js";import"./BGNOLDqc.js";import"./D9LGvoIZ.js";import"./DQDu3vCh.js";import"./B5WiaZ3D.js";import"./0TF-A2r4.js";import"./mf-HTbmc.js";import"./BYTZdALf.js";import"./ChtaUGBj.js";import"./BGx0QWRS.js";import"./CSKMRw5E.js";import"./NXZ4G6qd.js";import"./U7Onk3eK.js";import"./Dbh8enws.js";import"./BXFfKQrO.js";import"./ewL0ZXSx.js";import"./3uKz6omn.js";import"./B2diG7JO.js";import"./Cpj98o6Y.js";import"./D7LmHZk9.js";import"./BZyw-bHS.js";import"./C1DPVQ5b.js";import"./B7IW-0PW.js";import"./BuJX-Q2C.js";import"./ihdSV8FE.js";import"./DDlvirwQ.js";import"./CM76XY3L.js";import"./Bb_ou8bz.js";import"./jFYhBC76.js";import"./DG-vMePL.js";import"./CIR4Q-Sw.js";import"./CugzyI9_.js";import"./CB6UHAJl.js";import"./D0v9QSHE.js";const Fe={key:0},Je={class:"w-full bg-secondary-brand p-3 text-center text-white"},He={class:"font-bold [&>a]:underline"},Ge=T({__name:"PromotionDisruptor",props:{header:{},raceTypes:{},event:{},id:{},endsAt:{},startsAt:{},theme:{},role:{}},setup(n){const o=n,i=x(()=>o.raceTypes?.includes(o.event?.raceType));return(a,_)=>{const l=te("dompurify-html");return t(i)?(s(),y("div",Fe,[g("div",Je,[ne(g("p",He,null,512),[[l,a.$t(n.header)]])])])):h("",!0)}}}),Xe=Object.assign(Ge,{__name:"WrPromotionDisruptor"}),Ze={class:"w-full max-w-[1000px]"},Qe={class:"flex items-center justify-center text-center"},Ye={key:0,class:"mt-xl text-center"},Ke=T({__name:"EventSoldOutModal",props:oe({event:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const o=n,i=ae(n,"modelValue"),a=L(),{registrationUrlFromEvent:_}=W(),l=x(()=>!!(o.event&&o.event.badges.find(r=>r.type==="vouchersOnly"))),u=x(()=>o.event.suggestedEvents?.find(r=>r.raceType==="app-individual")),m=x(()=>{const r=o.event.suggestedEvents?.filter(p=>p.raceType!=="app-individual")||[];return[u.value,...r.slice(0,2)].filter(p=>p!==void 0)});return(r,p)=>{const k=Ce,d=re,c=ie,$=Ae;return s(),f($,{modelValue:i.value,"onUpdate:modelValue":p[0]||(p[0]=b=>i.value=b),"no-padding":"",class:"pb-4xl pt-2xl tablet:max-w-[95vw] tablet:pt-3xl","title-class":"text-3 mb-s","description-class":"text-center max-w-[420px]","tracking-name":"Event Sold-Out"},{title:w(()=>[A(E(r.$t("events.soldoutModal.header",[n.event.name])),1)]),description:w(()=>[A(E(r.$t("events.soldoutModal.intro")),1)]),default:w(()=>[g("div",Ze,[g("section",{class:se(["flex snap-x snap-mandatory scroll-p-xl gap-m overflow-x-auto px-xl pb-xl no-scrollbar tablet:scroll-p-3xl tablet:px-3xl tablet:pb-2xl tablet:pt-s",t(m)?.length>1&&"desktop:grid desktop:grid-cols-3"])},[t(m).length>1?(s(!0),y(M,{key:1},B(t(m),b=>(s(),f(k,{key:b.id,event:b,"no-overlay":"",dark:b.raceType==="app-individual",class:"w-[300px] shrink-0 snap-center"},null,8,["event","dark"]))),128)):(s(),y(M,{key:0},[t(u)?(s(),f(k,{key:0,event:t(u),dark:"",large:"","no-overlay":"",class:"w-full shrink-0 snap-center"},null,8,["event"])):h("",!0)],64))],2),g("div",Qe,[v(d,{to:t(a)({name:"locations",query:{eventType:"app"}}),color:"primary-brand",class:"max-w-max",content:r.$t("buttons.viewMore")},null,8,["to","content"])]),t(l)?(s(),y("div",Ye,[A(E(r.$t("events.soldoutModal.voucher.text",[n.event.name]))+" ",1),v(c,{to:t(_)(n.event),class:"underline"},{default:w(()=>[A(E(r.$t("events.soldoutModal.voucher.link")),1)]),_:1},8,["to"])])):h("",!0)])]),_:1},8,["modelValue"])}}}),et=Object.assign(Ke,{__name:"EventsEventSoldOutModal"}),tt=le(()=>ue(()=>import("./C_K-7xfo.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).then(n=>n.default||n)),nt={class:"grid-container-event"},ot={class:"mt-xl tablet:flex tablet:justify-between tablet:gap-7xl desktop:grid desktop:grid-cols-[repeat(20,minmax(0,1fr))]"},at={class:"grid w-full gap-2xl tablet:gap-3xl desktop:col-[span_13/_span_13] desktop:gap-4xl"},st={key:0,class:"grid gap-2xl tablet:gap-3xl desktop:gap-4xl"},rt=["textContent"],it={key:1}
4,lt=["textContent"],ct={class:"desktop:col-span-6 desktop:col-start-[14]"},ut=T({__name:"EventOarPage",props:{event:{},eventAutoJoin:{type:Boolean}},setup(n){const o=n,i=x(()=>o.event.headerImages.map(({path:_})=>({src:_??void 0}))),a=x(()=>(o.event?.socialLinks||[]).reduce((l,{name:u,link:m})=>(m!=null&&m?.trim()!==""&&(l[u]=m),l),{}));return(_,l)=>{const u=Ie,m=Oe,r=tt,p=Ve,k=De,d=Me,c=Le,$=We,b=je,P=ce;return s(),y("div",nt,[v(u,{event:n.event,"header-image-props":t(i)},null,8,["event","header-image-props"]),g("div",ot,[g("div",at,[v(m,{event:n.event},null,8,["event"]),g("div",null,[n.event.description?(s(),y("div",st,[(s(!0),y(M,null,B(n.event.description,(e,O)=>(s(),y("div",{key:O,class:"min-w-0 max-w-[600px] flex-1"},[g("h3",{class:"mb-l text-3",textContent:E(e.header)},null,8,rt),v(r,{markdown:e.text,clamp:"",class:"remove-rte-top-margin remove-rte-bottom-margin"},null,8,["markdown"])]))),128))])):h("",!0),n.event.track?.length?(s(),y("div",it,[v(p,{track:n.event.track,"race-type":n.event.raceType,class:"aspect-[4/3] overflow-clip rounded-3xl tablet:aspect-video"},null,8,["track","race-type"])])):h("",!0)]),Object.keys(t(a)).length?(s(),f(k,{key:0,event:n.event,links:t(a)},null,8,["event","links"])):h("",!0),n.event.accordion?(s(),f(d,{key:1,headline:_.$t("accordion.additionalInformation"),items:n.event.accordion,"item-count":n.event.accordion.length},null,8,["headline","items","item-count"])):h("",!0),v(c,{storyblok:""}),g("section",null,[g("h3",{class:"mb-l text-3",textContent:E(_.$t("race-format.headline"))},null,8,lt),v($,{"video-id":"AA-26S33BAS92111",class:"overflow-clip rounded-3xl"})])]),g("div",ct,[v(P,null,{default:w(()=>[v(b,{event:n.event,"event-auto-join":n.eventAutoJoin},null,8,["event","event-auto-join"])]),_:1})])])])}}}),mt=Object.assign(me(ut,[["__scopeId","data-v-1ebd5486"]]),{__name:"EventsEventOarPage"}),pt=T({__name:"EventStoryblokPage",props:{event:{},eventAutoJoin:{type:Boolean}},async setup(n){let o,i;const a=n,{loadByPath:_,setMetaFromContent:l,initBridge:u}=Re(),m=R(),{t:r,locale:p}=q(),k=x(()=>{const c="locations";return a.event.raceType==="app-individual"?`${c}/iar`:a.event.raceType==="app-organized"?`${c}/oar`:`${c}/${m.params.slug}`}),d=pe(`eventStory-${a.event.id}-${p.value}`);if(U(()=>{u(d)}),!d.value)try{d.value=([o,i]=C(()=>_(k.value)),o=await o,i(),o)}catch(c){throw z({status:c.status||500,statusText:c.message||c.toString(),fatal:!0})}return[o,i]=C(()=>l(d.value.content,{title:a.event.name,description:a.event.raceType==="flagship"?r("socialShare.FSR.title",{event:a.event}):r("socialShare.ARE.title",{event:a.event}),ogImage:a.event.headerImages.length&&a.event.headerImages[0].path?de(ve(1200,630,a.event.headerImages[0].path)):void 0,ogImageWidth:a.event.headerImages.length&&a.event.headerImages[0].path?1200:void 0,ogImageHeight:a.event.headerImages.length&&a.event.headerImages[0].path?630:void 0})),await o,i(),(c,$)=>t(d)?(s(),f(_e(t(Be)(t(d).content.component)),{key:0,blok:t(d).content,event:n.event,"event-auto-join":n.eventAutoJoin},null,8,["blok","event","event-auto-join"])):h("",!0)}}),dt=Object.assign(pt,{__name:"EventsEventStoryblokPage"}),vt={key:0},_t={key:1,class:"mt-4xl tablet:mt-6xl tablet:grid-container desktop:mt-13xl"},kn=T({__name:"index",async setup(n){let o,i;const a=D(!0),_=D(15);Se("goalCalculatorDistance",_);const l=R(),u=L();Ne();const m=ge(),{t:r}=q(),{user:p,getUser:k}=he(),{registrationUrlFromEvent:d}=W(),c=ye("eventsDetails"),$=x(()=>`events/${l.params.slug}`),{data:b,error:P}=([o,i]=C(()=>we($,()=>m.get($.value),"$dLdGEl1zqi")),o=await o,i(),o);if(P.value)if("status"in P.value&&P.value.status===404)[o,i]=C(()=>I(u({name:"locations"}),{})),await o,i();else throw z({statusText:r(fe.failedToLoadEvents),fatal:!0});const e=x(()=>b.value?b.value.data:void 0);e.value&&e.value.raceType==="app-organized"&&(xe({title:r("page.locations.are.title",{event:e.value})}),e.value.headerImages.length&&e.value.headerImages[0].path&&be(e.value.headerImages[0].path,1200,630));const{canPreregister:O,canRegister:N}=Te(()=>e.value,"initial");e.value&&(O.value||e.value.isComingSoon)&&([o,i]=C(()=>I(u("locations"),{})),await o,i());const F=x(()=>!!(e.value&&e.value.badges.find(V=>V.type==="soldout"))),J=x(()=>!l.query.join||Array.isArray(l.query.join)||!["true","1"].includes(l.query.join)||!e.value||!["app-individual","app-organized"].includes(e.value.raceType)?!1:l.query.accessCode?!0:N.value),j=D(!1);return U(async()=>
4{if(await k(),J.value&&e.value)if(!p.value)I(u({name:"login",query:{redirect:l.fullPath}}));else if(p.value.primaryParticipant)j.value=!0;else{const S=l.query.accessCode?l.query.accessCode.toString():void 0;await I(d(e.value,S?{accessCode:S}:{}))}}),e.value&&ke("view_item",{ecommerce:{items:[{item_name:e.value.name,item_id:e.value.id,item_brand:"WingsforLifeWorldRun",price:e.value.price?.valueGross,currency:e.value.price?.currency,item_category:e.value.raceType}]}}),(V,S)=>{const H=Xe,G=et,X=mt,Z=dt,Q=qe,Y=Ue,K=ze;return s(),f($e,null,{"header-bottom":w(()=>[t(c)&&t(e)?(s(),f(H,Pe({key:0},t(c),{event:t(e)}),null,16,["event"])):h("",!0)]),default:w(()=>[t(e)?(s(),y("article",vt,[t(F)?(s(),f(G,{key:0,modelValue:t(a),"onUpdate:modelValue":S[0]||(S[0]=ee=>Ee(a)?a.value=ee:null),event:t(e)},null,8,["modelValue","event"])):h("",!0),t(e).raceType==="app-organized"?(s(),f(X,{key:1,event:t(e),"event-auto-join":t(j)},null,8,["event","event-auto-join"])):(s(),f(Z,{key:2,event:t(e),"event-auto-join":t(j)},null,8,["event","event-auto-join"])),v(Q,{class:"mt-4xl tablet:mt-6xl desktop:mt-13xl","gc-class":"tablet:grid-container","catcher-car":t(e).raceType==="app-individual"?void 0:t(e).catcherCar,"catcher-car-partner":t(e).catcherCarPartner},null,8,["catcher-car","catcher-car-partner"])])):h("",!0),t(e)?(s(),y("section",_t,[v(Y,{"watch-partner":t(e).watchPartner,class:"mb-4xl"},null,8,["watch-partner"]),v(K,{country:t(e).raceType!="app-individual"?t(e).country.iso2:void 0,"event-sponsors":t(e).sponsors},null,8,["country","event-sponsors"])])):h("",!0)]),_:1})}}});
4export{kn as default}; 5 6//# debugId=890bd9b2-50b4-52e3-ac37-7dbcb2977943
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.