PageSourceSearch

https://www.wingsforlifeworldrun.com/_nuxt/kgAFDjZV.js

js wingsforlifeworldrun.com collected 2026-09-24 08:37:43 UTC 32,289 bytes, 6 lines download raw bytes

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]="0b3f10d8-141c-51c7-83be-dce783af638e")}catch(e){}}();
3const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B6glgZfK.js","./C-myhwrA.js","./BV2unoxx.js","./entry.7iXxwVkZ.css","./BgmWi8zD.js","./6umgc04e.js","./DqVuOVTO.js","./XJr6P4iQ.js","./C4EMG4j5.js","./CsJbPaO_.js","./DJkQ8oyO.js","./C4QvBrNM.js","./DB5yN3sR.js","./EventCard.DgFLUNDZ.css"])))=>i.map(i=>d[i]);
4import{aP as D,bP as ke,a_ as Be,bQ as ne,eS as Ge,be as _e,bl as Ke,bf as Se,bg as N,bm as W,bn as Xe,bh as L,aT as f,b3 as _,aY as t,aV as w,bo as fe,aS as T,b4 as O,d6 as Ve,bp as se,ba as le,aX as F,bi as Q,bj as Pe,aW as y,bX as Fe,cF as Ye,bq as ze,bw as J,bt as X,cB as Je,bU as K,aZ as M,bb as Qe,c5 as et,bB as ge,c0 as Re,aU as tt,cv as ot,b5 as xe,ct as nt,c2 as at,a$ as st,bL as lt,bO as rt,aR as ye,eY as it,b2 as ue,cc as Oe,cd as Ae,eZ as ct,cC as ut,de as dt,bK as be,b$ as Ne,eW as pt,cm as We,bz as je,by as vt,bD as mt,ch as De,ce as oe,cf as ft,bN as Ue,cp as ht,e_ as _t,b7 as gt,dY as xt,eD as yt,c1 as $e}from"./BV2unoxx.js";import{c as bt}from"./BMnmpXQx.js";import{_ as wt}from"./BOzBFVyN.js";import{u as kt}from"./C1_FkhcP.js";import{_ as $t}from"./Egi123Ji.js";import{_ as Mt}from"./BaL3ucDq.js";import{a as Me,m as Et,b as Ct}from"./DuHxjXeP.js";import{_ as Tt}from"./6umgc04e.js";import{_ as Lt}from"./BNcvZC5y.js";import{M as It,m as ee,_ as Bt}from"./CvXGZzOu.js";import{c as re}from"./DT6_4y0H.js";import{m as St}from"./B-9iljVB.js";import{_ as Vt}from"./DGEgxTye.js";import{_ as Pt}from"./BKUcITUB.js";import{u as Ft}from"./BEYKnurs.js";import{h as zt}from"./DB5yN3sR.js";import{i as Ee}from"./DqVuOVTO.js";import"./CfFCqpgg.js";import"./B76toH_-.js";import"./h1uX7KC1.js";import"./kRIii9yh.js";import"./j1zrbyVS.js";import"./FHasW-V9.js";import"./DVw7Evv-.js";import"./CXkq3o6S.js";import"./XJr6P4iQ.js";import"./BgmWi8zD.js";import"./C4EMG4j5.js";import"./CsJbPaO_.js";import"./DJkQ8oyO.js";import"./C4QvBrNM.js";const Rt={key:1,class:"px-m py-s"},Ot=D({__name:"SearchCombobox",props:ke({mobile:{type:Boolean}},{search:{},searchModifiers:{},modelValue:{},modelModifiers:{},coordinates:{},coordinatesModifiers:{}}),emits:ke(["close"],["update:search","update:modelValue","update:coordinates"]),setup(r,{emit:o}){const{t:l}=Be(),a=o,n=ne(r,"search"),u=ne(r,"modelValue"),c=ne(r,"coordinates"),e=Ge("searchHistory",void 0,{serializer:{read:m=>{try{return m?JSON.parse(m):void 0}catch{return}},write:m=>m?JSON.stringify(m):"null"}}),s=W(!1),p=W(),g=_e(),d=Ke(),k=kt();Se(async()=>{const m=g.query.q?.toString();if(m){const $=await v(m);$?.length&&await x($[0])}}),N(n,(m="")=>{C(m)});async function v(m){if(m.length){s.value=!0,p.value=[];try{const $=await k.searchPlaceForSuggestion(m);p.value=$?.Results}catch($){console.error("locationSearchClient issue",$)}s.value=!1}}const C=Ye(v,350);function h(){c.value=void 0,u.value=void 0,n.value=void 0}function I(m,$){if(!$)return m;const V=new RegExp(`(${$})`,"gi");return m.replace(V,'<mark class="text-black font-semibold bg-transparent">$1</mark>')}async function x(m){if(!m?.PlaceId)return;if(m?.PlaceId==="currentLocation"){if(!d.state.value.latitude||!d.state.value.longitude)return;u.value={Label:l("locations.currentLocation"),Geometry:{Point:[d.state.value.longitude,d.state.value.latitude]}},c.value=[d.state.value.longitude,d.state.value.latitude],a("close");return}const $=await k.getPlace(m.PlaceId);$.Place&&(u.value=$.Place,c.value=$.Place?.Geometry.Point,e.value=m,a("close"))}return(m,$)=>{const V=le,B=bt,b=Fe,U=wt,S=Xe("dompurify-html");return f(),L("div",null,[_(U,{search:n.value,"onUpdate:search":$[0]||($[0]=E=>n.value=E),"ignore-filter":!0,"open-on-click":"","display-value":E=>E?.Text,placeholder:t(l)("events.search"),onClose:h,"onUpdate:modelValue":x},{empty:w(()=>[t(s)?(f(),L(Q,{key:0},[_(b,{class:"mx-m my-xs h-xl w-3/4 rounded-md"}
4),_(b,{class:"mx-m my-xs h-xl w-1/2 rounded-md"})],64)):(f(),L("div",Rt,F(t(l)("search.locations.noResult")),1))]),default:w(()=>[fe(_(B,{value:{Text:t(l)("locations.currentLocation"),PlaceId:"currentLocation"},class:"flex cursor-pointer items-center gap-s rounded-sm px-m py-s text-title text-secondary-brand data-[highlighted]:bg-hover"},{default:w(()=>[_(V,{name:"wr:location",class:"size-[1.125rem] shrink-0"}),se(" "+F(t(l)("locations.currentLocation")),1)]),_:1},8,["value"]),[[Ve,t(d).state.value.latitude&&t(d).state.value.longitude]]),t(e)?(f(),T(B,{key:0,value:t(e),class:"text-secondary-dark flex cursor-pointer items-center gap-s rounded-sm px-m py-s data-[highlighted]:bg-hover"},{default:w(()=>[_(V,{name:"wr:clock",class:"size-[1.125rem] shrink-0"}),se(" "+F(t(e).Text),1)]),_:1},8,["value"])):O("",!0),(f(!0),L(Q,null,Pe(t(p),E=>(f(),T(B,{key:E.PlaceId,value:E,class:"text-secondary-dark cursor-pointer rounded-sm px-m py-s data-[highlighted]:bg-hover"},{default:w(()=>[fe(y("span",null,null,512),[[S,I(E.Text,n.value)]])]),_:2},1032,["value"]))),128))]),_:1},8,["search","display-value","placeholder"])])}}}),At=Object.assign(Ot,{__name:"LocationSearchCombobox"}),Nt={class:"flex w-full items-center justify-between rounded-sm border px-m tablet:hidden"},Wt={class:"max-w-[200px] truncate"},jt={class:"m-auto flex h-l w-l items-center justify-center text-sm"},Dt={class:"w-2/3 max-tablet:hidden"},Ut=D({__name:"LocationSearch",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(r){const o=ne(r,"modelValue"),l=X(),a=ze("inputWrapper"),n=W(),u=W(!1),c=M({get(){return l.value},set(g){l.value=g,g&&et("ga4Event",{event_name:"view_search_results",view_search_results:{value:g.Label||"Unspecified",content_type:"Location Search"}})}});N(u,g=>{g&&ge(()=>{a.value?.querySelector("input")?.focus()})}),Se(async()=>{const g=a.value?.querySelector("input");g?.addEventListener("keydown",d=>{d.key==="Enter"&&g?.blur()})});function e(){u.value=!0}function s(){u.value=!1}function p(){l.value=void 0,n.value=void 0}return(g,d)=>{const k=le,v=At,C=$t;return f(),L(Q,null,[y("div",Nt,[y("button",{class:J(["flex h-[52px] w-full items-center gap-s py-s text-tertiary",{"!text-black":t(l)}]),onClick:e},[_(k,{name:"wr:search",class:"h-5 w-5 shrink-0 text-tertiary"}),y("span",Wt,F(t(l)?.Label||g.$t("events.search")),1)],2),t(l)?(f(),L("button",{key:0,class:"flex h-xl w-xl shrink-0 items-center justify-center rounded-full bg-inverse text-sm text-secondary transition-all hover:bg-secondary-brand-hover hover:text-primary-inverse",onClick:Je(p,["stop"])},[y("span",jt,[_(k,{name:"wr:close"})])])):O("",!0)]),y("div",Dt,[_(v,{modelValue:t(c),"onUpdate:modelValue":d[0]||(d[0]=h=>K(c)?c.value=h:null),coordinates:o.value,"onUpdate:coordinates":d[1]||(d[1]=h=>o.value=h),search:t(n),"onUpdate:search":d[2]||(d[2]=h=>K(n)?n.value=h:null),onClose:s},null,8,["modelValue","coordinates","search"])]),(f(),T(Qe,{to:"body"},[t(u)?(f(),T(C,{key:0,show:t(u),"onUpdate:show":d[6]||(d[6]=h=>K(u)?u.value=h:null),closeable:!1,breakpoint:"tablet",class:"py-4"},{header:w(()=>[y("div",{ref_key:"inputWrapper",ref:a,class:"flex w-full items-center gap-l"},[_(v,{modelValue:t(c),"onUpdate:modelValue":d[3]||(d[3]=h=>K(c)?c.value=h:null),coordinates:o.value,"onUpdate:coordinates":d[4]||(d[4]=h=>o.value=h),search:t(n),"onUpdate:search":d[5]||(d[5]=h=>K(n)?n.value=h:null),class:"w-full",onClose:s},null,8,["modelValue","coordinates","search"]),y("button",{class:"text-label",type:"button",onClick:s},F(g.$t("cancel")),1)],512)]),_:1},8,["show"])):O("",!0)]))],64)}}}),Zt=Object.assign(Ut,{__name:"LocationSearch"}),Ht={class:"flex items-center justify-between gap-l"},qt={class:"flex items-center gap-s"},Gt={class:"flex-grow text-label"},Kt=D({__name:"LocationFilterOption",props:{label:{},value:{},showRadio:{type:Boolean}},setup(r){const o={all:"wr:home-pin",app:"wr:phone",flagship:"wr:events-flagship"};return(l,a)=>{const n=le;return f(),L("div",Ht,[y("div",qt,[r.value&&r.value in o?(f(),T(n,{key:0,name:o[r.value],class:"size-[18px] shrink-0"},null,8,["name"])):O("",!0),y("span",Gt,F(r.label),1)]),r.showRadio?(f(),T(n,{key:0,name:"wr:check-rounded",class:"hidden size-5 flex-none group-aria-selected:block group-data-[checked=true]:block"})):O("",!0)])}}}),Xt=Object.assign(Kt,{__name:"LocationFilterOption"}),Yt=D({inheritAttrs:!1,__name:"LocationTopBar",props:{modelValue:{},modelModifiers:{},filter:{},filterModifiers:{}},emits:["update:modelValue","update:filter"],setup(r){const o=[{label:"events.eventType.all",value:"all"},{label:"events.eventType.app",value:"app"},{label:"events.eventType.flagship",value:"flagship"}],l=ne(r,"modelValue"),a=ne(r,"filter"),n=W(!1),u=W();N(a,s=>{s==="flagship"||s==="app"?Me({eventType:s}):Me({eventType:void 0})});function c(){u.value=a.value,n.value=!0}function e(){a.value=u.value,n.value=!1}return(s,p)=>{const g=Zt,d=Xt,k=ot,v=le,C=tt,h=xe,I=Mt;return f(),T(t(nt),{"config-file":"true","default-config":!1},{default:w(()=>[y("section",Re({class:"flex w-full gap-s tablet:gap-l desktop:w-1/2"},s.$attrs),[_(g,{modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=x=>l.value=x)},null,8,["modelValue"]),_(C,null,{default:w(()=>[_(k,{modelValue:a.value,"onUpdate:modelValue":p[1]||(p[1]=x=>a.value=x),name:"location-filter",type:"dropdown",options:o,deselect:!1,placeholder:s.$t("labels.choose",{name:s.$t("labels.eventType")}),"floating-label":!1,"outer-class":"hidden tablet:block h-[52px] w-1/3 p-xs border-neutral-900 border rounded-sm","wrapper-class":"h-full","inner-class":"$remove:h-[52px] h-full $remove:bg-white bg-blue-100 $remove:pl-l focus-within:!ring-0 rounded-xs border-none text-label","dropdown-wrapper-class":"$reset mt-s left-0  !min-w-auto !z-[9999] shadow-dropdown rounded-sm overflow-clip empty:hidden p-xs bg-primary group-data-[expanded]:opacity-100 group-data-[overscroll]:m-0 group-data-[overscroll]:shadow-none group-data-[overscroll]:border-none","select-icon-class":"!w-[18px] !h-[18px]","selected-icon-class":"hidden","selector-class":"$reset h-full w-full py-m pr-m flex items-center grow gap-s justify-between text-secondary-dark text-left group-data-[disabled]:!cursor-not-allowed selection:bg-primary","listitem-class":"$reset hover:bg-neutral-100 rounded-md cursor-pointer group"},{selection:w(({option:x})=>[_(d,{class:"h-full pl-m",label:s.$t(x.label),value:x.value},null,8,["label","value"])]),option:w(({option:x})=>[_(d,{class:"px-m py-s",label:s.$t(x.label),value:x.value,"show-radio":!0},null,8,["label","value"])]),_:1},8,["modelValue","placeholder"]),_(k,{type:"button",title:s.$t("labels.choose",{name:s.$t("labels.eventType")}),"outer-class":{"$remove:grow":!0,"flex-none tablet:hidden rounded-sm p-xs w-[52px] h-[52px] border border-neutral":!0,"border-neutral-900":!!a.value&&a.value!=="all"},"wrapper-class":"w-full h-full","input-class":{$reset:!0,"flex justify-center items-center":!0,"rounded-xs w-full h-full":!0,"bg-blue-100":a.value!=="all"},onClick:c},{default:w(()=>[_(v,{name:"wr:interface-filter"})]),_:1},8,["title","outer-class","input-class"])]),_:1})],16),_(I,{modelValue:t(n),"onUpdate:modelValue":p[3]||(p[3]=x=>K(n)?n.value=x:null),"title-class":"text-3",class:"tablet:min-w-[35rem]","tracking-name":"Location filter"},{title:w(()=>[se(F(s.$t("events.filters.title")),1)]),default:w(()=>[y("div",null,[_(k,{modelValue:t(u),"onUpdate:modelValue":p[2]||(p[2]=x=>K(u)?u.value=x:null),type:"radio",options:o,"outer-class":"pb-xl","decorator-class":"hidden","options-class":"$remove:gap-m","option-class":"$reset block w-full","wrapper-class":"$reset flex items-center w-full min-h-[42px] px-m py-s cursor-pointer group"},{label:w(({option:x})=>[_(d,{class:"w-full",label:s.$t(x.label),value:x.value,"show-radio":!0},null,8,["label","value"])]),_:1},8,["modelValue"]),_(h,{color:"primary-brand",class:"mx-auto mt-m",onClick:e},{default:w(()=>[se(F(s.$t("events.filters.apply")),1)]),_:1})])]),_:1},8,["modelValue"])]),_:1})}}}),Jt=Object.assign(Yt,{__name:"LocationTopBar"}),Qt={class:"bottom-s left-s right-s top-s z-0 col-span-full row-span-full h-[330px] overflow-hidden rounded-4xl object-cover tablet:h-[348px]"},eo={class:"z-10 col-span-full row-span-full flex flex-col items-start gap-l p-xl"},to=["textContent"],oo=D({__name:"AreManagerCard",setup(r){const o=at("locations"),l=st();return(a,n)=>{const u=lt,c=xe,e=rt;return t(o)?(f(),T(e,{key:0,to:t(l)(t(o).link),class:"relative grid w-full items-end rounded-5xl bg-base-B1 p-s text-white hover:outline hover:outline-1 hover:outline-tertiary-inverse"},{default:w(()=>[y("div",Qt,[_(u,{height:348,width:316,src:t(o).image,alt:a.$t(t
4(o).header),srcset:[316,316*2,720],class:"h-full w-full object-cover"},null,8,["src","alt"])]),n[0]||(n[0]=y("div",{class:"pointer-events-none absolute bottom-s left-s right-s top-s z-10 rounded-4xl",style:{background:"linear-gradient(1deg, rgb(0 0 0 / 0.7) 0.25%, rgb(0 0 0 / 0) 98.7%)"}},null,-1)),y("div",eo,[y("h2",{class:"text-2 text-white",textContent:F(a.$t(t(o).header))},null,8,to),_(c,{color:"tertiary-brand",size:"medium",content:a.$t(t(o).btnText)},null,8,["content"])])]),_:1},8,["to"])):O("",!0)}}}),no=Object.assign(oo,{__name:"EventsAreManagerCard"}),ao=Object.assign({name:"NuxtErrorBoundary",inheritAttrs:!1},{__name:"NuxtErrorBoundary",emits:["error"],setup(r,{expose:o,emit:l}){const a=l,n=X(null);function u(){n.value=null}{let c=function(...s){const[p,g,d]=s;a("error",p),e.hooks.callHook("vue:error",p,g,d),n.value=p};const e=ye();it((s,p,g)=>(e.isHydrating?ct(()=>c(s,p,g)):c(s,p,g),!1))}return o({error:n,clearError:u}),(c,e)=>n.value?ue(c.$slots,"error",Oe(Ae({error:n.value,clearError:u})),void 0,void 0,0):ue(c.$slots,"default",{},void 0,void 0,1)}}),pe={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"},so=D({inheritAttrs:!1,__name:"Popup.client",props:{coordinates:{},options:{}},emits:["close"],setup(r,{emit:o}){const l=r,a=o,n=ut(),u=ze("el"),c=dt(It,null);if(c===null)throw new Error("<MapLibrePopup> must be used inside <MapLibreMap>");let e=null;const s=N(c,p=>{p&&ge(()=>{s(),e=new ee.Popup({closeButton:!1,maxWidth:"316px",className:`font-sans ${n.popup}`,focusAfterOpen:!1,...l.options});const g=e._update;e._update=function(d){if(g.call(this,d),!e||!e._container||!e._pos)return;const k=e._container.offsetWidth,v=e._container.offsetHeight;if(window.innerWidth>=768){const C=re(e._pos.x,k/2-(l.options?.padding?.left??0),e._map._canvas.offsetWidth-k/2-(l.options?.padding?.left??0)),h=e._pos.y;e._container.style.transform=`${pe[e.options.anchor]} translate(${C}px,${h}px)`}else{const C=p._canvas.offsetWidth/2;if(v===0){let I=new ResizeObserver(([x])=>{if(x.contentRect.width){if(!e)return;I?.disconnect(),I=void 0;const m=p._canvas.offsetHeight-x.contentRect.height-(l.options?.padding?.bottom??0)-80;e._container.style.transform=`${pe[e.options.anchor]} translate(${C}px,${m}px)`}});I.observe(e._container)}const h=p._canvas.offsetHeight-v-(l.options?.padding?.bottom??0)-80;e._container.style.transform=`${pe[e.options.anchor]} translate(${C}px,${h}px)`}},e.setLngLat(l.coordinates??[0,0]).setDOMContent(u.value).addTo(p),e.once("close",()=>{a("close")})})},{immediate:!0});return N(()=>l.coordinates,p=>{e&&e.setLngLat(p)}),be(()=>{e?.remove(),e=null}),(p,g)=>(f(),L("div",{ref_key:"el",ref:u},[y("div",Oe(Ae(p.$attrs)),[ue(p.$slots,"default")],16)],512))}}),lo="_popup_1l4ag_2",ro={popup:lo},io={$style:ro},co=Object.assign(Ne(so,[["__cssModules",io]]),{__name:"MapLibrePopup"});function uo(r){for(const o in r)if(typeof r[o]=="string"&&(r[o].startsWith("{")||r[o].startsWith("[")))try{r[o]=JSON.parse(r[o])}catch{console.warn(`Failed to restore nested object ${o} with value: ${r[o]}`)}return r}const po=vt(()=>mt(()=>import("./B6glgZfK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url).then(r=>r.default||r)),vo=We(co),mo=We(Bt),fo=D({inheritAttrs:!1,__name:"ClusterMap",props:{eventType:{},filter:{type:[Boolean,Array]}},setup(r){const o=r;let l,a,n;const u=X(),c=X(),e=X(),s=M(()=>{if(o.filter)return o.filter;const v=["all",["!=",["get","slug"],"app"]];return o.eventType&&v.push(["==",["get","eventType"],o.eventType]),v}),p=pt("/api/nuxt/v1/events")+"/tiles.json";be(()=>{l?.()}),N(e,v=>{v||(d(),g())}),N(s,v=>{u.value?.setFilter("events",v)});function g(){a&&a!==n&&(u.value?.setFeatureState({source:"events",sourceLayer:"clusters",id:a},{hover:!1}),a=void 0),c.value=void 0}function d(){n&&(u.value?.setFeatureState({source:"events",sourceLayer:"clusters",id:n},{hover:!1}),n=void 0),e.value=void 0}async function k(v){u.value=v;async function C(B){const[b]=B.features||[];b&&(b.properties.expansionZoom?(v.zoomTo(b.properties.expansionZoom),v.flyTo({center:B.lngLat,zoom:b.properties.expansionZoom})):b.geometry.type==="Point"&&b.properties.raceType&&(e.value&&(e.value=void 0),await new Promise(U=>setTimeout(U)),e.value={...b.properties,coordinates:b.geometry.coordinates.slice()},n=e.value.id,v.setFeatureState({source:"events",sourceLayer:"cluster
4s",id:n},{hover:!0})))}v.on("click","events",C);let h=!1;function I(){h=!0}function x(){setTimeout(()=>{h=!1},2)}function m(B){v.getCanvas().style.cursor="pointer",g();const[b]=B.features||[];b&&b.geometry.type==="Point"&&b.properties.raceType&&(a=b.id,c.value={...b.properties,coordinates:b.geometry.coordinates.slice()},v.setFeatureState({source:"events",sourceLayer:"clusters",id:a},{hover:!0})),h&&C(B)}function $(){v.getCanvas().style.cursor=""}function V(){g(),c.value=void 0}v.on("touchstart","events",I),v.on("touchend","events",x),v.on("mouseenter","events",m),v.on("mouseleave","events",$),v.on("moveend",V),l=()=>{v.off("click","events",C),v.off("touchstart","events",I),v.off("touchend","events",x),v.off("mouseenter","events",m),v.off("mouseleave","events",$),v.off("moveend",V)},v.addLayer({id:"events",type:"symbol",source:"events","source-layer":"clusters",filter:s.value,layout:{"text-field":["case",["==",["get","cluster"],!0],["get","point_count"],""],"text-font":["Bull Condensed Bold"],"icon-offset":[0,-22],"text-offset":[0,-1.75],"text-size":14,"text-max-width":2,"icon-size":1,"icon-image":["case",["==",["get","cluster"],!0],"pin",["==",["get","raceType"],"flagship"],"pin-flagship","pin-app"]},paint:{"text-color":["case",["any",["==",["get","cluster"],!0],["==",["get","raceType"],"flagship"]],"hsl(0 0% 100%)","hsl(213 95% 17%)"],"icon-opacity":["case",["boolean",["feature-state","hover"],!1],0,1]}})}return(v,C)=>{const h=Lt,I=ao,x=po,m=vo,$=mo;return f(),T($,Re({class:"bg-base-B1"},{...v.$attrs,sources:{events:{type:"vector",url:p,promoteId:"id"}},icons:{pin:{width:40,height:44,src:t(Ct)},"pin-flagship":{width:40,height:44,src:t(St)},"pin-app":{width:40,height:44,src:t(Et)}},options:{...v.$attrs.options||{},style:{projection:{type:"mercator"}}}},{onStyleLoaded:k}),{default:w(()=>[ue(v.$slots,"default"),_(I,null,{default:w(()=>[t(c)?(f(),T(h,{key:t(c).id,coordinates:t(c).coordinates,"event-type":t(c).raceType,size:40,"aria-selected":t(c).id===t(e)?.id},null,8,["coordinates","event-type","aria-selected"])):O("",!0),y("div",null,[t(e)&&t(e).id!==t(c)?.id?(f(),T(h,{key:t(e).id,coordinates:t(e).coordinates,"event-type":t(e).raceType,size:40,"aria-selected":!0},null,8,["coordinates","event-type"])):O("",!0)])]),_:1}),t(e)?(f(),T(m,{key:0,coordinates:t(e).coordinates,options:{anchor:"top",offset:[0,8]},onClose:C[0]||(C[0]=V=>e.value=void 0)},{default:w(()=>[_(je,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"scale-95 transform opacity-0","enter-to-class":"scale-100 transform opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"scale-100 transform opacity-100","leave-to-class":"scale-95 transform opacity-0",appear:""},{default:w(()=>[_(x,{class:"min-w-[18.75rem]",event:("restoreNestedObjects"in v?v.restoreNestedObjects:t(uo))(t(e))},null,8,["event"])]),_:1})]),_:1},8,["coordinates"])):O("",!0)]),_:3},16)}}}),ho=Object.assign(fo,{__name:"EventsClusterMap"}),_o={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function go(r,o){return f(),L("svg",_o,[...o[0]||(o[0]=[y("path",{"fill-rule":"evenodd",d:"M4.038 5.798v11.503l3.574 1.219V7.017zm10.314 11.15-4.74 1.617V7.063l.036-.012 4.74-1.616v11.502zm2.035.034 3.575 1.22V6.698L16.387 5.48zM3.36 3.454a1 1 0 0 0-1.322.947v13.615a1 1 0 0 0 .677.947l5.641 1.924a1 1 0 0 0 .646 0l5.996-2.045a1 1 0 0 1 .646 0l4.996 1.704a1 1 0 0 0 1.322-.947V5.984a1 1 0 0 0-.677-.947l-5.641-1.924a1 1 0 0 0-.646 0L9.002 5.158a1 1 0 0 1-.646 0z","clip-rule":"evenodd"},null,-1)])])}const xo={render:go},Ce=0,yo=0,bo=63710088e-1,wo=2*Math.PI*bo,ae=85.0511287798066;function he(r,o,l){const a=2**l,n=Math.floor((r+180)/360*a),u=re(o,-ae,ae)*Math.PI/180,c=Math.max(0,Math.floor((1-Math.log(Math.tan(u)+1/Math.cos(u))/Math.PI)/2*a));return{x:n,y:c,z:l}}function ve(r,o){const l=he(r.getWest(),r.getNorth(),o),a=he(r.getEast(),r.getSouth(),o);return[l.x,l.y,a.x,a.y]}function Te(r,o,l){const a=2**l,n=(r+180)/360*a,u=re(o,-ae,ae)*Math.PI/180,c=(1-Math.log(Math.tan(u)+1/Math.cos(u))/Math.PI)/2*a;return{x:n,y:c}}function Le(r,o=9){const l=Te(r.getWest(),r.getNorth(),0),a=Te(r.getEast(),r.getSouth(),0),n=Math.abs(a.x-l.x),u=Math.abs(a.y-l.y),c=Math.max(n,1e-9)*Math.max(u,1e-9),e=Math.floor(Math.log2(o/c)/2);return Math.max(0,e)}function*ko(r,[o,l,a,n],u){for(let c=o;c<=a;c++)for(let e=l;e<=n;e++)u&&c>=u[0]&&c<=u[2]&&e>=u[1]&&e<=u[3]||(yield{x:c,y:e,z:r})}function $o(r,o){const l=re(r,-ae,ae)*Math.PI/180,a=2*o,n=Math.log2(wo*Math.cos(l)/a);return Math.floor(n)}function Ie([r,o,l,a],n=1){return[r-n,o-n,l+n,a+n]}function Mo(r){return ye().ssrContext?.event?.context.viewerCountry}class Eo{cache=new Map;size;constructor(o=4){this.size=o}get(o){if(!this.cache.has(o))return;const l=this.cache.get(o);return this.cache.delete(o),this.cache.set(o,l),l}set(o,l){this.cache.size>=this.size&&this.cache.delete(this.cache.keys().next().value),this.cache.set(o,l)}async getOrSet(o,l){if(this.cache.has(o))return this.cache.get(o);const a=await l();return this.set(o,a),a}}
4async function Co(r,o){const{key:l,radiusMeters:a=15e3,zoom:n,minZoom:u=0,maxZoom:c=8,bounds:e,limit:s}=o||{},p=M(()=>ee.LngLat.convert(oe(r)||[0,0])),g=ft(a),d=M(()=>oe(e));Mo();const k=M(()=>Math.round(re(oe(n)||$o(p.value.lat,g.value),oe(u),oe(c)))),v=M(()=>he(p.value.lng,p.value.lat,k.value)),C=new Eo(4);async function h(S,E,P){const{exclude:A,signal:j}=P??{};let Z,H,Y,i;return{events:(await Promise.all(ko(E,S,A).map(async({x:z,y:te,z:ie})=>C.getOrSet(`${ie}/${z}/${te}`,()=>$fetch(`/api/nuxt/v1/events/${ie}/${z}/${te}/json`,{signal:j,headers:void 0})).then(q=>(!Z&&q.appIndividualEvent&&(Z=q.appIndividualEvent),!H&&q.localFlagshipEvent&&(H=q.localFlagshipEvent),Y||(Y=q.flagshipEventBounds),i||(i=q.meta),q.data.map(G=>({...G,distance:d.value?.getCenter().distanceTo(ee.LngLat.convert(G.location.geoCoords))||zt(p.value,G.location.geoCoords,{unit:"m"})}))))))).flat(),appIndividualEvent:Z,localFlagshipEvent:H,flagshipEventBounds:Y,meta:i||{total:0}}}const I=M(()=>ve(ee.LngLatBounds.fromLngLat(p.value,g.value),k.value)),x=M(()=>I.value.join("-")),{data:m,status:$}=await De(()=>"eventsNear"+(oe(l)??p.value.toString()),async(S,{signal:E})=>{let P=[...I.value];const{events:A,appIndividualEvent:j,localFlagshipEvent:Z,flagshipEventBounds:H,meta:Y}=await h(P,k.value,{signal:E});let i=0;for(;s&&A.length<s&&i<4;){const R=Ie(P),{events:z}=await h(R,k.value,{exclude:P,signal:E});P=R,A.push(...z),i++}return A.sort((R,z)=>R.distance-z.distance),{data:s?A.slice(0,s):A,meta:Y,appIndividualEvent:j,localFlagshipEvent:Z,flagshipEventBounds:H,tileBounds:P}},{watch:[x],default:()=>({data:[],meta:{total:0},tileBounds:[...I.value]})}),V=X(),B=X();async function b(){const S=V.value||m.value.tileBounds,E=Ie(S),{events:P}=await h(E,k.value,{exclude:S});P.sort((A,j)=>A.distance-j.distance),V.value=E,B.value=[...B.value||[],...P]}N(x,()=>{d.value||(V.value=void 0,B.value=void 0)});const U=M(()=>{const S=d.value;if(!S)return;const E=Le(S);return ve(S,E).join("-")});return N(U,async()=>{const S=d.value;if(!S)return;const E=Le(S);V.value=ve(S,E);const{events:P}=await h(V.value,E);B.value=P.sort((A,j)=>A.distance-j.distance)},{flush:"post"}),{status:$,tileId:v,tileZoom:k,tileBounds:M(()=>Object.freeze(V.value||m.value.tileBounds)),serverEvents:M(()=>
4[...m.value?.data||[]]),events:M(()=>d.value&&B.value?B.value:[...m.value?.data||[],...B.value||[]]),meta:M(()=>m.value?.meta),appIndividualEvent:M(()=>m.value?.appIndividualEvent),localFlagshipEvent:M(()=>m.value?.localFlagshipEvent),flagshipEventBounds:M(()=>m.value?.flagshipEventBounds?ee.LngLatBounds.convert(m.value?.flagshipEventBounds):void 0),loadNextRing:b}}const To={class:"flex flex-col gap-xl"},Lo={class:"sticky left-0 right-0 top-[var(--app-header-height)] z-20 bg-white pb-l pt-l"},Io={class:"grid-container"},Bo=["textContent"],So={class:"grid w-full gap-l tablet:grid-cols-1 desktop-lg:grid-cols-2"};const Vo={key:1,class:"flex w-full flex-col rounded-lg border-1 border-tertiary p-xl text-center"},Po=["textContent"],Fo=["textContent"],zo=["textContent"],Ro=["textContent"],Oo=["textContent"],Ao=["textContent"],me=8,No=D({__name:"EventGridWithMap",async setup(r){let o,l;const a=_e(),{lngLat:n}=Ft(),{$keyInitialNow:u}=ye(),c=W(),e=W("all");typeof a.query.eventType=="string"&&["flagship","app"].includes(a.query.eventType)&&(e.value=a.query.eventType);const s=W(!a.query.participant),p=W(!1),g=M(()=>ee.LngLat.convert(c.value||n.value||[0,0])),d=W(me),k=X(),v=M(()=>e.value==="flagship"?Ce:d.value),{events:C,serverEvents:h,appIndividualEvent:I,localFlagshipEvent:x,flagshipEventBounds:m,meta:$}=([o,l]=Ue(()=>Co(n,{key:"Viewer",zoom:v,minZoom:M(()=>e.value==="flagship"?Ce:yo+1),bounds:k})),o=await o,l(),o),V=ht("randomAreCardPositionSeed",()=>Math.floor(Math.random()*65536)),B=M(()=>V.value%($.value.total+1)),b=M(()=>{const i=x.value;if(i&&(Ee(u,i.preregister.start,i.preregister.end,!1)||i.register.isEnabled&&Ee(u,i.register.start,i.register.end,!0)))return i}),U=M(()=>C.value.filter(i=>i.raceType!=="app-individual"&&(e.value==="all"||i.raceType.startsWith(e.value)))||[]),S=M(()=>[b.value].filter(i=>!!i).concat(h.value.filter(i=>!!i).filter(i=>i.id!==b.value?.id&&(i.distance??0)<2e5).sort((i,R)=>R.countRegistered-i.countRegistered).slice(0,5))),E=window.location.hash.startsWith("#"),P=[];be(()=>{P.forEach(i=>i())});function A(i){E||(i.setCenter(g.value),i.setZoom(d.value),setTimeout(N(n,z=>{z&&i.setCenter(z)},{once:!0}),1e4)),k.value=i.getBounds(),P.push(N(c,z=>{z&&(i.setCenter(ee.LngLat.convert(z)),i.setZoom(me))})),P.push(N(e,z=>{z==="flagship"&&m.value&&i.fitBounds(m.value,{padding:40})},{immediate:!0}));function R(){k.value=i.getBounds(),d.value=i.getZoom()}i.on("move",R),i.on("moveend",R),P.push(()=>{i.off("move",R),i.off("moveend",R)})}function j(i){i&&(c.value=i,d.value=me)}function Z(){ge(()=>{window.scrollTo({top:0})})}function H(){s.value=!s.value,Z()}function Y(){p.value=!p.value,Z()}return(i,R)=>{const z=Jt,te=Tt,ie=no,q=Fe,G=le,de=xe,Ze=ho,He=Vt,qe=Pt;return f(),L(Q,null,[y("div",To,[y("div",null,[y("div",Lo,[y("div",Io,[_(z,{filter:t(e),"onUpdate:filter":R[0]||(R[0]=ce=>K(e)?e.value=ce:null),"onUpdate:modelValue":j},null,8,["filter"])])]),y("div",{class:J(["flex flex-col items-start gap-xl tablet:flex-row tablet:grid-container desktop-lg:pt-2xl",{"max-desktop:grid-container":!t(s)}])},[_(je,{name:"map-expand"},{default:w(()=>[fe(y("div",{class:J(["will-change-[width, opacity] hidden w-full flex-none flex-col gap-l tablet:flex tablet:min-h-[calc(100svh-3.75rem)] tablet:w-[332px] desktop:gap-xl desktop-lg:w-[680px]",{"max-desktop:flex":!t(s)}])},[y("h1",{class:"text-center text-title tablet:text-left",textContent:F(i.$t("events.listHeader"))},null,8,Bo),y("div",So,[t(b)&&t(e)!=="app"?(f(),T(te,{key:0,class:"w-full",event:t(b),dark:"","no-overlay":"","no-carousel":""},null,8,["event"])):O("",!0),t(I)&&t(e)!=="flagship"?(f(),T(te,{key:1,class:J(["w-full",{"desktop-lg:col-span-2":t(e)==="app"||!t(b)}]),large:t(e)==="app"||!t(b),event:t(I),dark:"","no-overlay":"","no-carousel":""},null,8,["class","large","event"])):O("",!0),(f(!0),L(Q,null,Pe(t(U)?.slice(0,30),(ce,we)=>(f(),L(Q,{key:`evt${ce.id||`are${we}`}`},[we===t(B)?(f(),T(ie,{key:0})):(f(),T(te,{key:1,event:ce,class:"w-full",loading:"lazy","no-carousel":""},null,8,["event"]))],64))),128))]),(f(),L("div",Vo,[y("h3",{class:"text-title",textContent:F(i.$t("events.lookingForMore"))},null,8,Po),y("p",{textContent:F(i.$t("events.interactWithMap"))},null,8,Fo)]))],2),[[Ve,!t(p)]])]),_:1}),y("aside",{class:J(["hidden h-[calc(100svh-76px-var(--app-header-height))] w-full overflow-hidden rounded-t-3xl tablet:sticky tablet:top-[calc(84px+var(--app-header-height))] tablet:block tablet:h-[c
4alc(100svh-84px-var(--app-header-height))] tablet:rounded-3xl desktop:h-[calc(100svh-84px-24px-var(--app-header-height))] desktop:rounded-xl desktop-lg:top-[calc(84px+var(--app-header-height))] desktop-lg:h-[calc(100svh-116px-var(--app-header-height))]",{"max-desktop:block":t(s)}])},[t(U)?(f(),L(Q,{key:0},[_(de,{color:"outline",size:"medium",class:"absolute left-l top-l z-10 bg-white hover:ring-secondary-brand max-tablet:hidden",onClick:Y},{prefixIcon:w(()=>[_(G,{name:"wr:arrow-left",class:J({"rotate-180":t(p)})},null,8,["class"])]),default:w(()=>[se(" "+F(t(p)?i.$t("events.showList"):i.$t("events.expandMap")),1)]),_:1}),_(Ze,{class:"size-full","event-type":t(e)==="all"?void 0:t(e),options:{center:t(g),zoom:t(d),hash:!0},onReady:A},null,8,["event-type","options"]),_(de,{class:"sticky bottom-xl z-20 m-auto tablet:hidden",color:"secondary-brand",size:"medium",onClick:H},{prefixIcon:w(()=>[t(s)?(f(),T(G,{key:0,name:"wr:list"})):(f(),T(G,{key:1,name:"wr:map",class:"fill-white"}))]),default:w(()=>[t(s)?(f(),L("span",{key:0,textContent:F(i.$t("events.list"))},null,8,zo)):(f(),L("span",{key:1,textContent:F(i.$t("events.map"))},null,8,Ro))]),_:1})],64)):O("",!0)],2)],2)]),t(s)?O("",!0):(f(),T(de,{key:0,class:"sticky bottom-xl z-20 m-auto desktop:hidden",color:"secondary-brand",size:"medium",onClick:H},{prefixIcon:w(()=>[t(s)?(f(),T(G,{key:0,name:"wr:list"})):(f(),T(t(xo),{key:1,class:"fill-white"}))]),default:w(()=>[t(s)?(f(),L("span",{key:0,textContent:F(i.$t("events.list"))},null,8,Oo)):(f(),L("span",{key:1,textContent:F(i.$t("events.map"))},null,8,Ao))]),_:1}))]),t(S)?.length?(f(),L("section",{key:0,class:J(["pt-4xl grid-container",{"max-tablet:hidden":t(s)}])},[_(He,{value:i.$t("events.popularHeader"),class:"mb-xl flex items-center justify-center gap-l text-3",tag:"h1",pill:!0},null,8,["value"]),_(qe,{events:t(S)},null,8,["events"])],2)):O("",!0)],64)}}}),Wo=Object.assign(Ne(No,[["__scopeId","data-v-5cad5b79"]]),{__name:"EventsEventGridWithMap"}),yn=D({__name:"index",async setup(r){let o,l;const{t:a}=Be(),n=_t(),u=_e(),c=gt(),e=u.query.participant?.toString(),{data:s}=([o,l]=Ue(async()=>De(`participants/${e}`,async()=>e?await c.get(`participants/${e}`):null)),o=await o,l(),o);return xt({title:a("page.locations.title")}),yt({description:n("page.locations.description"),ogTitle:s.value?.data?a("social.participate.title",[s.value.data.firstname]):n("page.locations.ogTitle","page.locations.seoTitle","page.locations.title"),ogDescription:s.value?.data?a("social.participate.intro",[s.value.data.firstname,s.value.data.event.name]):n("page.locations.ogDescription","page.locations.description"),ogImageAlt:s.value?.data?void 0:n("page.locations.ogImageAlt"),twitterTitle:s.value?.data?a("social.participate.title",[s.value.data.firstname]):n("page.locations.ogTitle","page.locations.seoTitle","page.locations.title"),twitterDescription:s.value?.data?a("social.participate.intro",[s.value.data.firstname,s.value.data.event.name]):n("page.locations.ogDescription","page.locations.description"),twitterImageAlt:s.value?.data?void 0:n("page.locations.ogImageAlt")}),s.value?.data?$e(s.value.data.shareNumber,652,595,"generated"):$e("share-images/locations_new.jpg",1200,800),(p,g)=>{const d=Wo;return f(),L("div",null,[_(d)])}}});export{yn as default};
5
6//# debugId=0b3f10d8-141c-51c7-83be-dce783af638e

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.