PageSourceSearch

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

js wingsforlifeworldrun.com collected 2026-09-24 08:39:45 UTC 54,928 bytes, 8 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]="8c7c67e1-7a36-515d-9353-545dbc2ed6ac")}catch(e){}}();
3import{aP as O,cI as Be,aS as h,b4 as C,aY as e,aT as o,aV as w,b2 as ye,cc as rt,c0 as K,cO as it,cN as ct,a_ as ie,bh as x,bw as Y,bS as _e,aW as a,b3 as g,aX as r,cD as Q,cU as he,bp as j,aZ as q,bi as N,cE as ve,ck as ut,bV as ue,b_ as dt,bj as E,b5 as Se,bz as re,bm as Z,f0 as qe,by as ze,bD as Me,el as De,bP as J,dr as mt,bQ as ce,ba as de,b9 as pt,bU as H,bg as X,ct as ft,bo as ee,cv as gt,cB as xe,bX as $e,aU as bt,d6 as te,bW as je,bZ as vt,bq as xt,eA as Ve,b7 as we,a$ as Ne,dD as yt,ed as _t,cw as Ae,bt as ht,bO as Oe,b6 as We,aR as $t,be as Fe,ee as wt,eW as pe,d$ as Ct,cz as kt,bd as Tt,c2 as Rt,bu as Lt,bN as fe,e7 as Pe,eF as Ie,eQ as Vt,ch as ge,bB as Pt}from"./BV2unoxx.js";import{_ as me}from"./C4EMG4j5.js";import{_ as Ue}from"./C4wzFzBx.js";import{_ as Ce}from"./BaC6Sn7N.js";import{_ as ke}from"./DM2OGEmm.js";import{s as Ye,a as Ke}from"./PAtp3hUZ.js";import{u as ae}from"./kSjBwU6O.js";import{u as It,b as Bt}from"./BJvW6Tzz.js";import{u as Te}from"./CXkq3o6S.js";import{i as St,h as qt,j as zt,k as Mt,d as Dt,C as jt,a as Nt,b as At}from"./BMnmpXQx.js";import{C as Ot,a as Wt}from"./FHasW-V9.js";import{P as Ft}from"./B1ymv-f7.js";import{C as Ut}from"./DVw7Evv-.js";import{a as Yt,_ as Kt,C as Et}from"./CgXzsuBP.js";import{C as Ht}from"./VshX4Oaf.js";import{M as Xt}from"./D_68J5Vd.js";import{_ as Zt}from"./BA88HidM.js";import{_ as Gt}from"./BaL3ucDq.js";import{_ as Ee}from"./D7tEsMZB.js";import{D as He}from"./jqcIBmRv.js";import"./fH4JQahK.js";import"./BWwQxVup.js";import"./CfFCqpgg.js";import"./B76toH_-.js";import"./h1uX7KC1.js";import"./kRIii9yh.js";import"./j1zrbyVS.js";var Jt=O({__name:"ComboboxArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(t){const i=t,n=St(),u=qt();return Be(),(p,f)=>e(n).open.value&&e(u).position.value==="popper"?(o(),h(e(Ft),rt(K({key:0},i)),{default:w(()=>[ye(p.$slots,"default")]),_:3},16)):C("v-if",!0)}}),Qt=Jt,ea=O({__name:"ComboboxLabel",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(t){const i=t;Be();const n=zt({id:"",labelId:""});return n.labelId||=it(void 0,"reka-combobox-group-label"),(u,p)=>(o(),h(e(ct),K(i,{id:e(n).labelId}),{default:w(()=>[ye(u.$slots,"default")]),_:3},16,["id"]))}}),Xe=ea;const ta={class:"col-span-5 flex items-center gap-m tablet:col-span-2",role:"cell"},aa={class:"shrink-0"},sa={class:"flex items-center gap-s"},oa={key:1,class:"text-title"},la={class:"space-x-s text-title text-tertiary"},na={role:"cell",class:"col-start-2 tablet:col-start-auto"},ra={class:"col-span-4 col-start-4 items-center truncate tablet:col-span-1 tablet:col-start-auto tablet:flex",role:"cell"},ia={class:"me-xs text-title"},ca={class:"text-title"},ua={role:"cell",class:"col-start-7 row-start-1 tablet:col-start-auto tablet:row-start-auto"},da=O({__name:"PinboardParticipantListItem",props:{participant:{},padding:{}},setup(t){const i=_e(["col-span-full grid w-full grid-cols-subgrid items-center gap-xs gap-x-m rounded-lg even:bg-base-B1 aria-selected:bg-secondary-brand aria-selected:text-white tablet:gap-l desktop:gap-6xl"],{variants:{padding:{sm:"px-s py-m desktop:px-l",md:"p-m tablet:px-l desktop:px-2xl"}},defaultVariants:{padding:"md"}}),n=t,{locale:u}=ie(),{formatDistance:p}=ae(),f=q(()=>`${n.participant.lastName}, ${n.participant.firstName}`.trim()),y=q(()=>new Intl.DisplayNames([u.value],{type:"region"})),b=m=>({name:"profiles-userId",params:{userId:m}});return(m,V)=>{const z=Q,I=he,k=me,v=Ue,d=Ce,l=ke;return o(),x("div",{role:"row",class:Y([e(i)({padding:t.padding}),"relative"])},[V[0]||(V[0]=a("span",{role:"cell",class:"col-span-1 text-title"},r("–"),-1)),a("div",ta,[g(z,{user:t.participant,class:"size-12 rounded-full"},null,8,["user"]),a("div",aa,[a("div",sa,[t.participant.userId?(o(),h(I,{key:0,to:b(t.participant.userId),class:"text-title after:absolute after:inset-0 hover:text-primary-brand"},{default:w(()=>[j(r(e(f)),1)]),_:1},8,["to"])):(o(),x("span",oa,r(e(f)),1)),t.participant.nationality?(o(),h(k,{key:2,iso2:t.participant.nationality},null,8,["iso2"])):C("",!0)]),a("div",la,[a("span",null,r(t.participant.bib),1),a("span",null,r(t.participant.category),1)])])]),a("div",na,[g(v,{color:("statusToTagColor"in m?m.statusToTagColor:e(Ye))(t.participant.status),size:"xs",class:"w-auto truncate"},{default:w(()=>[j(r(m.$t(`lx.participantStatus.${t.participant.status}`)),1)]),_:1},8,["color"])]),g(d,{value:t.participant.distance,role:"cell",class:Y(["col
3-start-3 whitespace-nowrap text-title tablet:col-start-auto",e(Ke)(t.participant.status)]),formatter:s=>e(p)(s),"from-zero":!1},null,8,["value","class","formatter"]),a("div",ra,[t.participant.country?(o(),x(N,{key:0},[g(k,{class:"me-s max-tablet:!hidden",iso2:t.participant.country},null,8,["iso2"]),a("span",ia,r(e(y).of(t.participant.country))+",",1)],64)):C("",!0),a("span",ca,r(t.participant.location),1)]),a("span",ua,[g(l,{value:t.participant.id,class:"relative z-10","element-position":"Pinboard"},null,8,["value"])])],2)}}}),ma=Object.assign(da,{__name:"LxPinboardParticipantListItem"}),pa=["textContent"],fa={role:"cell",class:"col-span-7 flex gap-s tablet:col-span-3"},ga=["textContent"],ba={role:"cell",class:"col-span-3 flex items-center text-title tablet:col-span-2"},va={role:"cell",class:"col-span-2 col-start-10 row-start-1 tablet:col-span-1 tablet:row-auto"},xa=O({__name:"ResultsTeamListItem",props:{team:{},padding:{}},emits:["click"],setup(t){const i=_e(["grid cursor-pointer grid-cols-11 gap-xs rounded-lg even:bg-base-B1 tablet:gap-0"],{variants:{padding:{sm:"px-s py-m desktop:px-l",md:"p-m tablet:px-l desktop:px-2xl"}},defaultVariants:{padding:"md"}}),{formatDistance:n}=ae();return(u,p)=>{const f=Q,y=Ce,b=ke;return o(),x("div",{tabindex:"0",role:"row",class:Y(e(i)({padding:t.padding})),onClick:p[0]||(p[0]=m=>u.$emit("click",t.team)),onKeydown:p[1]||(p[1]=ve(m=>u.$emit("click",t.team),["enter"]))},[a("span",{role:"cell",class:"col-span-1 flex items-center text-title",textContent:r(t.team.mainRank??"–")},null,8,pa),a("div",fa,[g(f,{user:{avatar:t.team.avatar},team:"",class:"h-12 w-12 rounded-sm"},null,8,["user"]),a("span",{class:"flex items-center text-title hover:text-primary-brand",textContent:r(t.team.name)},null,8,ga)]),g(y,{value:t.team.sum||0,role:"cell",class:"col-span-3 col-start-2 flex items-center text-title tablet:col-span-2",formatter:m=>e(n)(m),"from-zero":!1},null,8,["value","formatter"]),g(y,{value:t.team.avg||0,role:"cell",class:"col-span-3 flex items-center text-title tablet:col-span-2",formatter:m=>e(n)(m),"from-zero":!1},null,8,["value","formatter"]),a("span",ba,r(t.team.count),1),a("span",va,[g(b,{value:t.team.id,type:"teams","element-position":"Live Results"},null,8,["value"])])],34)}}}),Ze=Object.assign(xa,{__name:"LxResultsTeamListItem"}),ya=ze(()=>Me(()=>Promise.resolve().then(()=>Je),void 0,import.meta.url).then(t=>t.default||t)),_a={class:"rounded-lg bg-inverse p-xs tablet:px-s tablet:py-l desktop:p-l"},ha={key:1,class:"flex flex-col items-center p-m text-center"},$a={class:"mb-xs text-4"},wa={key:1,class:"flex flex-col items-center p-m text-center"},Ca={class:"mb-xs text-4"},ka=O({__name:"Pinboard",props:{type:{default:"participants"}},setup(t){const i=t,{items:n}=It(()=>i.type,!0),u=ut(),p=Z();function f(b){p.value=b}const y=Te().greaterOrEqual("tablet");return(b,m)=>{const V=ma,z=Se,I=Ze,k=ya;return o(),x("div",_a,[t.type==="participants"?(o(),h(re,{key:0,"enter-active-class":"transition duration-300","enter-from-class":"scale-75 opacity-0","enter-to-class":"translate-y-0 scale-100 opacity-100","leave-active-class":"transition duration-300","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"scale-75 opacity-0 blur",mode:"out-in"},{default:w(()=>[e(n).length?(o(),h(ue,{key:0,tag:"div",role:"rowgroup",class:"grid",style:dt(`grid-template-columns: ${e(y)?b.$t("results.overall").length:2}ch repeat(4, minmax(min-content, auto)) repeat(1, minmax(0, ${e(y)?"auto":"1fr"}))  minmax(min-content, auto)`),"enter-active-class":"transition duration-300 ease-out","enter-from-class":"opacity-0 blur","enter-to-class":"opacity-100","leave-active-class":"transition-all duration-300 ease-in","leave-from-class":"opacity-100","leave-to-class":"-mt-[4.5rem] opacity-0 blur","move-class":"transition-transform duration-700 ease-in-out",appear:""},{default:w(()=>[(o(!0),x(N,null,E(e(n),v=>(o(),h(V,{key:v.id,participant:v,padding:"sm"},{default:w(()=>[j(r(v.id),1)]),_:2},1032,["participant"]))),128))]),_:1},8,["style"])):(o(),x("div",ha,[a("h3",$a,r(b.$t("lx.followRunner.title")),1),a("p",null,r(b.$t("lx.followRunner.description")),1),g(z,{class:"mt-l",size:"small",onClick:m[0]||(m[0]=v=>e(u).open("follow"))},{default:w(()=>[j(r(b.$t("lx.searchParticipant")),1)]),_:1})]))]),_:1})):t.type==="teams"?(o(),h(re,{key:1,"enter-active-class":"transition duration-300","enter-from-class":"scale-75 opacity-0","enter-to-class":"translate-y-0 scale-100 opacity-100","leave-active-class":"transition duration-300","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"scale-75 opacity-0 blur",mode:"out-in"},{default:w(()=>[e(n).length?(o(),h(ue,{key:0,tag:"div",role:"rowgroup","enter-active-class":"transition duration-300 ease-out","enter-from-class":"opacity-0 blur","enter-to-class":"opacity-100","leave-active-class":"transition-all duration-300 ease-in","leave-from-class":"opacity-100","leave-to-class":"-mt-[4.5rem] opacity-0 blur","move-class":"transition-transform duration-700 ease-in-out",appear:""},{default:w(()=>[(o(!0),x(N,null,E(e(n),v=>(o(),h(I,{key:v.id,team:v,padding:"sm",onClick:d=>f(v)},{default:w(()=>[j(r(v.id),1)]),_:2},1032,["team","onClick"]))),128))]),_:1})):(o(),x("div",wa,[a("h3",Ca,r(b.$t("lx.followTeam.title")),1),a("p",null,r(b.$t("lx.followTeam.description")),1),g(z,{class:"mt-l",size:"small",onClick:m[1]||(m[1]=v=>e(u).open("teams"))},{default:w(()=>[j(r(b.$t("lx.searchTeam")),1)]),_:1})]))]),_:1})):C("",!0),t.type==="teams"&&e(p)?(o(),h(k,{key:2,"model-value":!0,team:("convertLiveTeamResult"in b?b.convertLiveTeamResult:e(qe))(e(p)),"config-year":"live","onUpdate:modelValue":m[2]||(m[2]=v=>p.value=void 0)},null,8,["team"])):C("",!0)])}}}),Ta=Object.assign(ka,{__name:"LxPinboard"}),Ra=O({__name:"WrComboboxGroup",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},heading:{}},setup(t){const i=t,n=De(i,"class");return(u,p)=>(o(),h(e(Mt),K({"data-slot":"combobox-group"},e(n),{class:["overflow-hidden",i.class]}),{default:w(()=>[t.heading?(o(),h(e(Xe),{key:0,class:"px-m py-s text-label text-disabled"},{default:w(()=>
3[j(r(t.heading),1)]),_:1})):C("",!0),ye(u.$slots,"default")]),_:3},16,["class"]))}}),La=Object.assign(Ra,{__name:"WrComboboxGroup"}),Va={key:0,class:"flex items-center gap-s py-s text-label tablet:py-m"},Pa={key:0,class:"fixed inset-0 z-30 bg-black/50 transition-opacity tablet:hidden"},Ia={class:"mb-l flex items-center justify-between gap-s tablet:hidden"},Ba={class:"text-center text-title"},Sa=O({__name:"WrCombobox",props:J({open:{type:Boolean},defaultOpen:{type:Boolean},resetSearchTermOnBlur:{type:Boolean},resetSearchTermOnSelect:{type:Boolean},openOnFocus:{type:Boolean},openOnClick:{type:Boolean},ignoreFilter:{type:Boolean},resetModelValueOnClear:{type:Boolean},modelValue:{},defaultValue:{},multiple:{type:Boolean},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},by:{type:[String,Function]},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},label:{},clearable:{type:Boolean},options:{},compact:{type:Boolean},virtualize:{type:Boolean}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:J(["update:modelValue","highlight","update:open"],["update:open"]),setup(t,{emit:i}){const n=t,u=i,p=mt(De(n,["label","clearable","options","compact"]),u),f=ce(t,"open"),y=q(()=>k(n.options)),b=Te().tablet,m=q(()=>b.value?"popper":"inline"),V=Z(""),z=q(()=>{const v=l=>(typeof l=="string"?l:l.label).toLowerCase().includes(V.value.toLowerCase()),d=n.options.flatMap(l=>{if(I(l)){if(V.value){const s=l.options.filter(v);return s.length?[l.group,...s]:[]}return[l.group,...l.options]}return l});return V.value?d.filter(l=>typeof l=="string"?!0:v(l.label)):d});function I(v){return"group"in v}function k(v){if(v?.length){for(const d of v)if(I(d)){const l=k(d.options);if(l)return l}else if(d.value===n.modelValue)return d}}return(v,d)=>{const l=jt,s=de,c=Ht,T=Ut,$=Ot,R=pt,W=Kt,L=Yt,M=La,G=Wt,se=Qt,oe=At,U=Nt,le=Et;return o(),h(e(Dt),K(e(p),{open:f.value,"reset-model-value-on-clear":"",class:"relative","onUpdate:open":d[2]||(d[2]=B=>f.value=B)}),{default:w(({modelValue:B})=>[g($,{class:Y(["inline-flex min-w-max rounded-sm border border-neutral-200 p-xs focus-within:border-neutral-900 hover:border-neutral-900 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50",[B&&"border-neutral-900"]])},{default:w(()=>[a("div",{class:Y(["inline-flex items-center justify-between rounded-xs px-m",[B&&"bg-base-B2"]])},[t.compact?(o(),x("div",Va,[g(l,{class:"text-neutral-900 outline-none","display-value":()=>e(y)?.label||"",placeholder:t.label},null,8,["display-value","placeholder"])])):C("",!0),g(c,{class:"inline-flex items-center gap-s py-s text-label tablet:py-m",tabindex:"0"},{default:w(()=>[t.compact?C("",!0):(o(),x(N,{key:0},[j(r(e(y)?.label||t.label),1)],64)),g(s,{name:"wr:arrow-down",class:Y(["-mt-px size-[1.125rem] shrink-0 origin-center transition",[f.value&&"rotate-180"]])},null,8,["class"])]),_:1}),t.clearable&&B?(o(),h(T,{key:1,class:"absolute end-4 top-1/2 flex size-[1.125rem] -translate-y-1/2 items-center justify-center rounded-full bg-neutral-900 text-white hover:brightness-90"},{default:w(()=>[g(s,{name:"wr:close",class:"size-m"})]),_:1})):C("",!0)],2)]),_:2},1032,["class"]),g(le,null,{default:w(()=>[g(re,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:w(()=>[f.value?(o(),x("div",Pa)):C("",!0)]),_:1}),g(re,{"enter-active-class":"transition-opacity duration-200 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-150 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:w(()=>[f.value?(o(),h(U,{key:0,"force-mount":"","body-lock":"",class:"origin-(--reka-combobox-content-transform-origin) data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
3de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-w-svw pointer-events-auto z-30 w-[--reka-popper-anchor-width] min-w-max overflow-hidden rounded-t-xl border border-neutral-200 bg-base-B0 px-xs shadow-card outline-none max-tablet:fixed max-tablet:inset-x-0 max-tablet:bottom-0 max-tablet:h-[80svh] max-tablet:p-xl tablet:rounded-sm",position:e(m),align:"start","side-offset":4},{default:w(()=>[a("div",Ia,[d[3]||(d[3]=a("div",null,null,-1)),a("div",Ba,r(t.label),1),g(R,{icon:"wr:close",size:"xs",class:"desktop:hidden",onClick:d[0]||(d[0]=S=>f.value=!1)})]),t.compact?C("",!0):(o(),h(l,{key:0,modelValue:e(V),"onUpdate:modelValue":d[1]||(d[1]=S=>H(V)?V.value=S:null),class:"my-2xs rounded-sm border-2 border-secondary-brand px-m py-s text-base text-neutral-900 outline-none",placeholder:t.label,"display-value":()=>e(y)?.label||""},null,8,["modelValue","placeholder","display-value"])),g(oe,{class:"scroll-py-xs overflow-y-auto overflow-x-hidden tablet:max-h-[300px]"},{default:w(()=>[t.virtualize?(o(),h(L,{key:0,options:e(z),"estimate-size":37,"text-content":S=>typeof S=="string"?S:S.label},{default:w(({option:S})=>[typeof S=="string"?(o(),h(e(Xe),{key:0,class:"px-m py-s text-label text-disabled"},{default:w(()=>[j(r(S),1)]),_:2},1024)):(o(),h(W,{key:1,value:S.value},{default:w(()=>[j(r(S.label),1)]),_:2},1032,["value"]))]),_:1},8,["options","text-content"])):(o(!0),x(N,{key:1},E(t.options,S=>(o(),x(N,{key:I(S)?S.group:S.value},[I(S)?(o(),h(M,{key:0,heading:S.group},{default:w(()=>[(o(!0),x(N,null,E(S.options,ne=>(o(),h(W,{key:S.group+ne.value?.toString(),value:ne.value},{default:w(()=>[j(r(ne.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["heading"])):(o(),h(W,{key:S.value?.toString(),value:S.value},{default:w(()=>[j(r(S.label),1)]),_:2},1032,["value"]))],64))),128)),g(G,{class:"py-m text-center text-label"}),g(se)]),_:1})]),_:1},8,["position"])):C("",!0)]),_:1})]),_:1})]),_:1},16,["open"])}}}),qa=Object.assign(Sa,{__name:"WrCombobox"}),za={class:"flex w-full max-w-full items-center gap-s overflow-x-auto no-scrollbar [contain:content]"},Ma={class:"mb-l flex w-full items-center gap-s"},Da={class:"rounded-full bg-base-B2 p-s"},ja=["textContent"],Na=O({inheritAttrs:!1,__name:"FilterBar",props:J({configYear:{},configMode:{},resultsConfig:{},disabled:{type:Boolean},hasResults:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const i=t,n=ce(t,"modelValue"),u=q({get:()=>i.configYear??n.value.year,set:s=>{n.value.year=s}}),p=q({get:()=>n.value.athleteType??i.resultsConfig?.data.filters?.athleteTypes?.[0],set:s=>{n.value.athleteType=s}}),{t:f}=ie(),y=q(()=>["sum","avg","count"].map(c=>({value:c,label:f(`results.awards.${c}`)}))),b=q(()=>["gender","category","location","country"].some(c=>!!n.value[c])),m=q(()=>i.resultsConfig?.data?.years?.slice()?.sort()?.reverse()?.map(c=>({value:c.toString(),label:c.toString()}))),V=q(()=>{const s=i.resultsConfig?.data?.filters?.categories;return n.value.gender?s?.filter(c=>c.gender==n.value.gender):s}),z=q(()=>i.resultsConfig?.data?.filters?.countries?.map(c=>({value:c.iso2,label:c.name_en}))),I=q(()=>i.resultsConfig?.data?.filters?.athleteTypes?.map(c=>({value:c,label:f(c==="runner"?"events.eventType.flagship":"events.eventType.app")}))),k=q(()=>i.resultsConfig?.data?.filters?.genders?.map(s=>({value:s,label:f(`form.values.gender.${s}`)}))),v=q(()=>{const s=i.resultsConfig?.data?.filters?.locations??[],c=n.value.country?s.filter($=>$.countryIso2===n.value.country):s;c.sort(($,R)=>$.raceType.localeCompare(R.raceType)||$.text.localeCompare(R.text));const T={"events.eventType.flagship":[],"events.eventType.app":[]};for(const $ of c){const R=$.raceType.startsWith("flagship")?"events.eventType.flagship":"events.eventType.app";T[R].push({label:$.text,value:$.value})}return Object.entries(T).map(([$,R])=>({group:f($),options:R})).filter(({options:$})=>$.length)});function d(s){if(n.value.page=void 0,s&&n.value.category){const c=i.resultsConfig?.data?.filters?.categories?.find(T=>T.value==n.value.category);(!c||c.gender!=s)&&(n.value.category=void 0)}}function l(s){if(n.value.page=void 0,s&&n.value.location){const c=i.resultsConfig?.data?.f
3ilters?.locations?.find(T=>T.value==n.value.location);(!c||c.countryIso2!=s)&&(n.value.location=void 0)}}return X([()=>n.value.q,u,p,()=>n.value.award,()=>n.value.category,()=>n.value.location],()=>{n.value.page=void 0}),X(k,s=>{d(s)}),X(()=>n.value.country,s=>{l(s)}),(s,c)=>{const T=de,$=gt,R=$e,W=bt,L=qa;return o(),h(e(ft),{"config-file":"true","default-config":!1},{default:w(()=>[a("section",K({class:"mb-l flex flex-col items-center gap-s tablet:flex-row"},s.$attrs),[c[9]||(c[9]=a("h2",{class:"sr-only"},"Results filter",-1)),g(W,null,{fallback:w(()=>[g(R,{class:"h-[52px] w-full rounded-sm tablet:w-1/2"})]),default:w(()=>[g($,{modelValue:n.value.q,"onUpdate:modelValue":c[1]||(c[1]=M=>n.value.q=M),type:"search",enterkeyhint:"search","prefix-icon":"search",label:s.$t("results.search"),placeholder:t.configMode==="teams"?s.$t("results.searchteams"):s.$t("results.search"),"outer-class":"w-full tablet:w-1/2","floating-label":!1,"label-class":"sr-only","input-class":"truncate",delay:300,disabled:t.disabled},{suffix:w(()=>[n.value.q?(o(),x("button",{key:0,class:"flex size-[1.5rem] items-center justify-center rounded-full bg-gray-100 hover:brightness-90",onClick:c[0]||(c[0]=xe(M=>n.value.q=void 0,["stop"]))},[g(T,{name:"wr:close",class:"size-[1.125rem] shrink-0 text-primary"})])):C("",!0)]),_:1},8,["modelValue","label","placeholder","disabled"])]),_:1}),a("div",za,[e(m)?.length?(o(),h(L,{key:0,modelValue:e(u),"onUpdate:modelValue":c[2]||(c[2]=M=>H(u)?u.value=M:null),label:s.$t("year"),options:e(m),disabled:t.disabled},null,8,["modelValue","label","options","disabled"])):C("",!0),e(I)&&e(I).length>1?(o(),h(L,{key:1,modelValue:e(p),"onUpdate:modelValue":c[3]||(c[3]=M=>H(p)?p.value=M:null),options:e(I),label:s.$t("results.athleteType"),disabled:t.disabled},null,8,["modelValue","options","label","disabled"])):C("",!0),t.configMode==="teams"?(o(),h(L,{key:2,modelValue:n.value.award,"onUpdate:modelValue":c[4]||(c[4]=M=>n.value.award=M),options:e(y),label:s.$t("award"),disabled:t.disabled},null,8,["modelValue","options","label","disabled"])):C("",!0),e(k)?.length?(o(),h(L,{key:3,modelValue:n.value.gender,"onUpdate:modelValue":c[5]||(c[5]=M=>n.value.gender=M),options:e(k),label:s.$t("results.gender"),disabled:t.disabled,clearable:""},null,8,["modelValue","options","label","disabled"])):C("",!0),e(V)?.length?(o(),h(L,{key:4,modelValue:n.value.category,"onUpdate:modelValue":c[6]||(c[6]=M=>n.value.category=M),options:e(V),label:s.$t("results.category"),disabled:t.disabled,clearable:""},null,8,["modelValue","options","label","disabled"])):C("",!0),e(z)?.length?(o(),h(L,{key:5,modelValue:n.value.country,"onUpdate:modelValue":c[7]||(c[7]=M=>n.value.country=M),options:e(z),label:s.$t("country"),disabled:t.disabled,clearable:""},null,8,["modelValue","options","label","disabled"])):C("",!0),e(v)?.length?(o(),h(L,{key:6,modelValue:n.value.location,"onUpdate:modelValue":c[8]||(c[8]=M=>n.value.location=M),options:e(v),label:s.$t("result.event"),disabled:t.disabled,clearable:"",virtualize:""},null,8,["modelValue","options","label","disabled"])):C("",!0)])],16),ee(a("section",Ma,[a("div",Da,[g(e(Xt),{class:"size-6 text-secondary-brand"})]),a("span",{class:"text-secondary",textContent:r(s.$t("results.filters.selection"))},null,8,ja)],512),[[te,e(b)&&t.hasResults]])]),_:1})}}}),Aa=Object.assign(Na,{__name:"ResultsFilterBar"}),Oa=ze(()=>Me(()=>Promise.resolve().then(()=>Je),void 0,import.meta.url).then(t=>t.default||t)),Wa={role:"rowgroup",class:"mb-1"},Fa={class:"hidden w-full grid-cols-11 rounded-sm bg-base-B5 p-s px-2xl py-s text-label text-white tablet:grid",role:"row"},Ua={role:"columnheader",class:"col-span-1"},Ya={role:"columnheader",class:"col-span-3"},Ka={role:"columnheader",class:"col-span-2"},Ea={role:"columnheader",class:"col-span-2"},Ha={role:"columnheader",class:"col-span-2"},Xa=O({__name:"ResultsTeamList",props:{results:{}},setup(t){const i=Z();function n(u){i.value=u}return(u,p)=>{const f=Ze,y=Oa;return o(),x("div",K(u.$attrs,{role:"table","aria-label":"Results","aria-rowcount":"25",class:"w-full"}),[ee(a("div",Wa,[a("div",Fa,[a("span",Ua,r(u.$t("results.overall")),1),a("span",Ya,r(u.$t("results.team")),1),a("span",Ka,r(u.$t("distance")),1),a("span",Ea,r(u.$t("results.distanceAvg")),1),a("span",Ha,r(u.$t("results.members")),1),p[1]||(p[1]=a("span",{role:"columnheader"},null,-1))])],512),[[te,t.results?.length]]),g(ue,{tag:"div",role:"rowgroup",class:"col-span-full grid grid-cols-subgrid","enter-active-class":"origin-center transition duration-300 ease-out","enter-from-class":"opacity-0 blur","enter-to-class":"opacity-100","leave-active-class":"origin-center transition duration-300 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0 blur","move-class":"transition-transform duration-700 ease-in-out",appear:"",onBeforeLeave:"transitionBeforeLeave"in u?u.transitionBeforeLeave:e(je)},{default:w(()=>[(o(!0),x(N,null,E(t.results,(b,m)=>(o(),h(f,{key:b.id,"aria-rowindex":m,team:b,onClick:V=>n(b)},null,8,["aria-rowindex","team","onClick"]))),128))]),_:1},8,["onBeforeLeave"]),e(i)?(o(),h(y,{key:0,"model-value":!0,team:("convertLiveTeamResult"in u?u.convertLiveTeamResult:e(qe))(e(i)),"config-year":"live","onUpdate:modelValue":p[0]||(p[0]=b=>i.value=void 0)},null,8,["team"])):C("",!0)],16)}}}),Za=Object.assign(Xa,{__name:"LxResultsTeamList"}),Ga={role:"cell",class:"col-span-1 text-title"},Ja={class:"col-span-5 flex items-center gap-m tablet:col-span-2",role:"cell"},Qa={class:"shrink-0"},es={class:"flex items-center gap-s"},ts={key:1,class:"text-title"},as={class:"space-x-s text-title text-tertiary"},ss={role:"cell",class:"col-start-2 tablet:col-start-auto"},os={class:"col-span-4 col-start-4 items-center truncate tablet:col-span-1 tablet:col-start-auto tablet:flex",role:"cell"},ls={key:0,class:"me-xs text-title"},ns=["textContent"],rs={role:"cell",class:"col-start-7 row-start-1 tablet:col-start-auto tablet:row-start-auto"},is=O({__name:"ResultsParticipantListItem",props:{participant:{},padding:{}},setup(t){const i=_e(["col-span-full grid w-full grid-cols-subgrid items-center gap-xs gap-x-m rounded-lg even:bg-base-B1 aria-selected:bg-secondary-brand aria-selected:text-white tablet:gap-l desktop:gap-6xl"],{variants:{padding:{sm:"px-s py-m desktop:px-l",md:"p-m tablet:px-l desktop:px-2xl"}},defaultVariants:{padding:"md"}}),{locale:n}=ie(),{formatDistance:u}=ae(),p=q(()=>new Intl.DisplayNames([n.value],{type:"region"})),f=y=>({name:"profiles-userId",params:{userId:y}});return(y,b)=>{const m=Q,V=he,z=me,I=Ue,k=Ce,v=ke;return o(),x("div",{role:"row",class:Y([e(i)({padding:t.padding}),"relative"])},[a("span",Ga,r(t.participant.mainRank??"–"),1),a("div",Ja,[g(m,{user:t.participant,class:"size-12 rounded-full"},null,8,["user"]),a("div",Qa,[a("div",es,[t.participant.userId?(o(),h(V,{key:0,to:f(t.participant.userId),class:"z-10 text-title after:absolute after:inset-0 hover:text-primary-brand"},{default:w(()=>[j(r(t.participant.fullname),1)]),_:1},8,["to"])):(o(),x("span",ts,r(t.participant.fullname),1)),t.participant.nation?.iso2?(o(),h(z,{key:2,iso2:t.participant.nation.iso2},null,8,["iso2"])):C("",!0)]),a("div",as,[a("span",null,r(t.participant.startnumber),1),a("span",null,r(t.participant.category),1)])])]),a("div",ss,[g(I,{color:("statusToTagColor"in y?y.statusToTagColor:e(Ye))(t.participant.status),size:"xs",class:"w-auto truncate"},{default:w(()=>[j(r(y.$t(`lx.participantStatus.${t.participant.status}`)),1)]),_:1},8,["color"])]),g(k,{value:t.participant.distance,role:"cell",class:Y(["col
3-start-3 whitespace-nowrap text-title tablet:col-start-auto",e(Ke)(t.participant.status)]),formatter:d=>e(u)(d),"from-zero":!1},null,8,["value","class","formatter"]),a("div",os,[t.participant.country?.iso2?(o(),x(N,{key:0},[g(z,{class:"me-s max-tablet:!hidden",iso2:t.participant.country.iso2},null,8,["iso2"]),t.participant.country.iso2?(o(),x("span",ls,r(e(p).of(t.participant.country.iso2))+", ",1)):C("",!0),a("span",{class:"text-title",textContent:r(t.participant.location)},null,8,ns)],64)):C("",!0)]),a("span",rs,[g(v,{value:t.participant.id,class:"relative z-10","element-position":"Live Results"},null,8,["value"])])],2)}}}),cs=Object.assign(is,{__name:"LxResultsParticipantListItem"}),us=["data-tablet"],ds={role:"rowgroup",class:"col-span-full mb-1 grid grid-cols-subgrid"},ms={class:"col-span-full hidden w-full grid-cols-subgrid gap-xs rounded-sm bg-base-B5 p-s px-m py-s text-label text-white tablet:grid tablet:gap-l tablet:px-l desktop:gap-6xl desktop:px-2xl",role:"row"},ps={role:"columnheader"},fs={class:"col-span-2",role:"columnheader"},gs={role:"columnheader"},bs={role:"columnheader"},vs={role:"columnheader"},xs=O({__name:"ResultsParticipantList",props:{results:{}},setup(t){const i=xt("table"),n=Te().greaterOrEqual("tablet");function u(p){if(!(p instanceof HTMLElement)||!i.value)return;je(p,!1);const f=getComputedStyle(p),y=getComputedStyle(i.value).gridTemplateColumns.split(" "),b=Number(y[y.length-1].slice(0,-2))-Number(f.paddingLeft.slice(0,-2))-Number(f.paddingRight.slice(0,-2));y[y.length-1]=`${b}px`,p.style.gridTemplateColumns=y.join(" "),p.style.gap="0"}return(p,f)=>{const y=cs;return o(),x("div",K(p.$attrs,{ref:"table",role:"table","aria-label":"Results","aria-rowcount":"25","data-tablet":e(vt).tablet,class:"grid",style:{gridTemplateColumns:`minmax(${e(n)?6:2}ch, max-content) repeat(4, minmax(min-content, auto)) repeat(1, minmax(0, ${e(n)?"auto":"1fr"}))  minmax(min-content, auto)`}}),[ee(a("div",ds,[a("div",ms,[a("span",ps,r(p.$t("results.overall")),1),a("span",fs,r(p.$t("results.participant")),1),a("span",gs,r(p.$t("status")),1),a("span",bs,r(p.$t("distance")),1),a("span",vs,r(p.$t("result.event")),1),f[0]||(f[0]=a("span",{role:"columnheader"},null,-1))])],512),[[te,t.results.length]]),g(ue,{tag:"div",role:"rowgroup",class:"col-span-full grid grid-cols-subgrid","enter-active-class":"origin-center transition duration-300 ease-out","enter-from-class":"opacity-0 blur","enter-to-class":"opacity-100","leave-active-class":"origin-center transition duration-300 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0 blur","move-class":"transition-transform duration-700 ease-in-out",appear:"",onBeforeLeave:u},{default:w(()=>[(o(!0),x(N,null,E(t.results,(b,m)=>(o(),h(y,{key:b.id,participant:b,"aria-rowindex":m,class:"bg-base-B0"},null,8,["participant","aria-rowindex"]))),128))]),_:1})],16,us)}}}),ys=Object.assign(xs,{__name:"LxResultsParticipantList"}),_s={role:"alert",class:"w-full rounded-lg bg-red-500/25 p-m"},hs={class:"text-5"},$s={key:0,class:"mt-s"},ws=["innerHTML"],Cs={key:1,class:"mt-s"},ks=O({__name:"ErrorMessage",props:{error:{}},setup(t){const i=t,n=!1,u=q(()=>i.error instanceof Ve?i.error.data.message:i.error.message);return(p,f)=>(o(),x("div",_s,[a("h4",hs,r(t.error instanceof e(Ve)?`${t.error.status} `:"")+r(t.error.name),1),e(n)?(o(),x("details",$s,[a("summary",null,r(e(u)),1),a("pre",{class:"mt-m overflow-auto whitespace-pre text-sm [&_.internal]:opacity-60",innerHTML:t.error.stack},null,8,ws)])):(o(),x("div",Cs,r(e(u)),1))]))}}),Ts=Object.assign(ks,{__name:"ErrorMessage"}),Rs=["textContent"],Ls={key:1,class:"mt-xl flex flex-col items-center text-center"},Vs=["textContent"],Ps=["textContent"],Is={key:2},Bs=["textContent"],Ss={class:"col-span-5 flex items-center gap-s"},qs={class:"flex min-w-0 flex-col"},zs={class:"flex items-center gap-s"},Ms=["textContent"],Ds={class:"flex items-center gap-s text-tertiary"},js=["textContent"],Ns=["textContent"],As=["textContent"],Os={class:"col-span-5 flex items-center gap-s"},Ws={class:"flex min-w-0 flex-col space-y-s"},Fs=O({__name:"TeamResults",props:J({configYear:{},team:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const i=t,n=ce(t,"modelValue"),u=Z(),p=Z(!1),f=ht(),y=Ae({q:void 0,page:1}),b=we(),{formatDistance:m}=ae(),V=Ne(),z=q(()=>u.value?.data||[]),{list:I,containerProps:k,wrapperProps:v}=yt(z,{itemHeight:72,overscan:20}),{isLoading:d}=_t(k.ref,async()=>{y.page++;const $=await s();u.value&&$?.meta&&(u.value.meta=$.meta),u.value?.data&&$&&u.value.data.push(...$.data)},{distance:100,canLoadMore:()=>c()}),l=q(()=>i.configYear==="live"?`/live/teams/${i.team?.id}`:`/results/${i.configYear}/teams/${i.team?.id}/members`);X(()=>y.q,async()=>{y.page=1,u.value=await s()}),X(n,async()=>{n.value&&(y.page=1,u.value=await s())},{immediate:!0});async function s(){try{return f.value=void 0,i.team?(p.value=!0,await b.get(l.value,{query:y})):void 0}catch($){f.value=$}finally{p.value=!1}}function c(){const $=u.value?.meta.currentPage||0,R=u.value?.meta.lastPage||0;return $<R}function T(){y.q=void 0,y.page=1,u.value=void 0}return($,R)=>{const W=Zt,L=Ts,M=de,G=Q,se=me,oe=Oe,U=$e,le=Gt;return o(),h(le,{modelValue:n.value,"onUpdate:modelValue":R[1]||(R[1]=B=>n.value=B),class:"overflow-hidden pb-4xl tablet:w-[31.25rem] tablet:pb-3xl","custom-positioning-class":"fixed tablet:top-0 max-tablet:inset-0 tablet:flex tablet:left-0 tablet:right-0 tablet:items-center tablet:justify-center pt-4xl","no-padding":"","tracking-name":"Team members",onClose:T},{title:w(()=>[a("span",{class:"flex items-center break-words px-3xl pt-2xl text-center text-3 up
3percase desktop:pt-3xl",textContent:r(t.team?.name)},null,8,Rs)]),default:w(()=>[g(W,{modelValue:e(y).q,"onUpdate:modelValue":R[0]||(R[0]=B=>e(y).q=B),type:"search",label:$.$t("results.search"),placeholder:$.$t("results.search"),debounce:300,"prefix-icon":"wr:search","label-class":"sr-only","allow-clear":"",class:"px-xl desktop:px-3xl"},null,8,["modelValue","label","placeholder"]),a("div",K(e(k),{class:"mt-l flex max-h-[29.0625rem] w-full flex-col px-xl blue-scrollbar desktop:px-3xl"}),[e(f)?(o(),h(L,{key:0,error:e(f)},null,8,["error"])):!e(u)?.data.length&&!e(p)&&!e(d)?(o(),x("section",Ls,[a("h4",{class:"text-3-sentence uppercase",textContent:r($.$t("help.noResults"))},null,8,Vs),a("span",{class:"mt-xs tablet:mt-s",textContent:r($.$t("results.adjustFilters"))},null,8,Ps)])):e(p)&&!e(d)?(o(),x("section",Is,[g(M,{name:"wr:loading",class:"mx-auto block h-3xl"})])):C("",!0),a("div",K(e(v),{class:"w-full"}),[(o(!0),x(N,null,E(e(I),B=>(o(),h(oe,{key:B.data.id,to:B.data.userId?e(V)({name:"profiles-userId",params:{userId:B.data.userId}}):void 0,class:Y([{"bg-base-B1":B.index%2===0},"group grid h-[72px] grid-cols-8 items-center gap-s rounded-lg p-m"])},{default:w(()=>[a("span",{class:"col-span-1 text-title",textContent:r(B.data.mainRank)},null,8,Bs),a("section",Ss,[g(G,{user:B.data,class:"h-12 w-12"},null,8,["user"]),a("section",qs,[a("div",zs,[a("span",{class:"truncate text-title group-hover:text-primary-brand",textContent:r(B.data.fullname)},null,8,Ms),B?.data.nation?.iso2?(o(),h(se,{key:0,iso2:B.data.nation.iso2},null,8,["iso2"])):C("",!0)]),a("div",Ds,[a("span",{class:"text-title",textContent:r(B.data.startnumber)},null,8,js),a("span",{class:"text-title",textContent:r(B.data.category)},null,8,Ns)])])]),a("span",{class:"col-span-2 ml-auto flex items-center text-title",textContent:r(e(m)(B.data.distance))},null,8,As)]),_:2},1032,["to","class"]))),128)),e(d)?(o(),x(N,{key:0},E(2,B=>a("div",{key:`loading${B}`,class:"group grid h-[72px] grid-cols-8 items-center gap-s rounded-lg p-m odd:bg-base-B1"},[R[2]||(R[2]=a("span",{class:"col-span-1"},null,-1)),a("span",Os,[g(U,{class:"size-12 rounded-full"}),a("div",Ws,[g(U,{class:"h-4 w-28 rounded-xs"}),g(U,{class:"h-3 w-20 rounded-xs"})])])])),64)):C("",!0)],16)],16)]),_:1},8,["modelValue"])}}}),Ge=Object.assign(Fs,{__name:"ResultsTeamResults"}),Je=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"})),Us={role:"rowgroup",class:"mb-1"},Ys={class:"hidden w-full grid-cols-10 rounded-sm bg-base-B5 p-s px-2xl py-s text-label text-white tablet:grid",role:"row"},Ks=["textContent"],Es=["textContent"],Hs=["textContent"],Xs=["textContent"],Zs=["textContent"],Gs={role:"rowgroup"},Js=["aria-rowindex","onClick","onKeydown"],Qs=["textContent"],eo={role:"cell",class:"col-span-8 flex gap-s tablet:col-span-3"},to=["textContent"],ao=["textContent"],so=["textContent"],oo=["textContent"],lo={class:"col-span-10 flex w-full items-center desktop:col-span-1"},no=["href","aria-label"],ro=O({inheritAttrs:!1,__name:"TeamList",props:J({results:{},configYear:{},userResultIndices:{}},{filters:{required:!0},filtersModifiers:{}}),emits:["update:filters"],setup(t){const i=ce(t,"filters"),n=Z(!1),u=Z(),{formatDistance:p}=ae();function f(b){i.value.page=String(b),window.scrollTo(0,0)}function y(b){n.value=!0,u.value=b}return(b,m)=>{const V=Q,z=Ge,I=Ee;return o(),x(N,null,[a("div",K(b.$attrs,{role:"table","aria-label":"Results","aria-rowcount":"25",class:"w-full"}),[ee(a("div",Us,[a("div",Ys,[a("span",{role:"columnheader",class:"col-span-1",textContent:r(b.$t("results.overall"))},null,8,Ks),a("span",{role:"columnheader",class:"col-span-3",textContent:r(b.$t("results.team"))},null,8,Es),a("span",{role:"columnheader",class:"col-span-2",textContent:r(b.$t("distance"))},null,8,Hs),a("span",{role:"columnheader",class:"col-span-2",textContent:r(b.$t("results.distanceAvg"))},null,8,Xs),a("span",{role:"columnheader",class:"col-span-2",textContent:r(b.$t("results.members"))},null,8,Zs)])],512),[[te,t.results?.data.length]]),a("div",Gs,[(o(!0),x(N,null,E(t.results?.data,(k,v)=>(o(),x("div",{key:k.id,tabindex:"0",role:"row","aria-rowindex":v,class:Y(["grid cursor-pointer grid-cols-10 gap-xs rounded-lg px-m py-m even:bg-base-B1 tablet:gap-0 tablet:px-l desktop:px-2xl",{"!bg-secondary-brand text-white":k.mainIdx&&t.userResultIndices.includes(k.mainIdx)}]),onClick:d=>y(k),onKeydown:ve(d=>y(k),["enter"])},[a("span",{role:"cell",class:"col-span-1 flex items-center text-title",textContent:r(k.mainRank??"")},null,8,Qs),a("div",eo,[g(V,{user:{avatar:k.avatar},team:"",class:"h-12 w-12 rounded-sm"},null,8,["user"]),a("span",{class:"flex items-center text-title hover:text-primary-brand",textContent:r(k.name)},null,8,to)]),a("span",{role:"cell",class:"col-span-3 col-start-2 flex items-center text-title tablet:col-span-2",textContent:r(e(p)(k.distance))},null,8,ao),a("span",{role:"cell",class:"col-span-3 flex items-center text-title tablet:col-span-2",textContent:r(e(p)(k.distanceAvg))},null,8,so),a("span",{role:"cell",class:"col-span-3 flex items-center text-title tablet:col-span-2 desktop:col-span-1",textContent:r(k.count)},null,8,oo),a("div",lo,[k.certificate?(o(),x("a",{key:0,href:k.certificate,class:"flex w-full cursor-pointer items-center justify-center gap-xs border-t border-base-B4 pt-s text-label uppercase hover:!text-primary-brand max-desktop:mt-m desktop:border-none desktop:pt-0","aria-label":`download ${b.$t("results.certificate")}`,target:"_blank",onClick:m[0]||(m[0]=xe(()=>{},["stop"])),onKeydown:m[1]||(m[1]=ve(xe(()=>{},["stop"]),["enter"]))},[g(e(He),{class:"h-[18px] w-[18px] shrink-0"}),j(" "+r(b.$t("results.certificate")),1)],40,no)):C("",!0)])],42,Js))),128))])],16),g(z,{modelValue:e(n),"onUpdate:modelValue":m[2]||(m[2]=k=>H(n)?n.value=k:null),team:e(u),"config-year":t.configYear},null,8,["modelValue","team","config-year"]),t.results?.data.length&&t.results?.meta?(o(),h(I,{key:0,class:"mt-xl","allow-page-selection":!0,path:t.results.meta.path,"current-page":t.results.meta.currentPage,total:t.results.meta.total,"last-page":t.results.meta.lastPage,"per-page":t.results.meta.perPage,onNavigate:f},null,8,["path","current-page","total","last-page","per-page"])):C("",!0)],64)}}}),io=Object.assign(ro,{__name:"ResultsTeamList"}),co={role:"rowgroup",class:"col-span-full mb-1 grid grid-cols-subgrid"},uo={class:"col-span-full hidden w-full grid-cols-subgrid gap-xs rounded-sm bg-base-B5 p-s px-m py-s text-label text-white tablet:grid tablet:gap-l tablet:px-l desktop:px-2xl",role:"row"},mo=["textContent"],po=["textContent"],fo=["textContent"],go=["textContent"],bo={role:"rowgroup",class:"col-span-full grid grid-cols-subgrid"},vo=["aria-rowindex","aria-selected"],xo={role:"cell",class:"col-span-1 text-title"},yo={class:"col-span-4 flex items-center gap-m tablet:col-span-2",role:"cell"},_o={class:"shrink-0"},ho={class:"flex items-center gap-s"},$o={key:1,class:"text-title"},wo=["textContent"],Co={class:"col-span-3 col-start-3 tablet:col-span-1 tablet:col-start-auto",role:"cell"},ko={key:0,class:"text-title"},To=["textContent"],Ro={key:0,class:"col-span-full desktop:col-span-1 desktop:col-start-auto"},Lo=["href","aria-label"],Vo=O({inheritAttrs:!1,__name:"ParticipantList",props:J({results:{}},{filters:{required:!0},filtersModifiers:{}}),emits:["update:filters"],setup(t){const i=ce(t,"filters"),{user:n}=We(),{formatDistance:u}=ae(),{locale:p}=ie(),f=q(()=>new Intl.DisplayNames([p.value],{type:"region"}));function y(m){i.value.page=String(m),window.scrollTo(0,0)}const b=m=>({name:"profiles-userId",params:{userId:m}});return(m,V)=>{const z=Q,I=he,k=me,v=Ee;return o(),x(N,null,[a("div",K(m.$attrs,{role:"table","aria-label":"Results","aria-rowcount":"25",class:"grid",style:{"grid-template-columns":`minmax(max-content, 12vw) minmax(4.5rem, 10vw) 1fr minmax(max-content, 12vw) 1fr minmax(
4          min-content,
5          max-content
6        )`}}),[ee(a("div",co,[a("div",uo,[a("span",{role:"columnheader",textContent:r(m.$t("results.overall"))},null,8,mo),a("span",{class:"col-span-2",role:"columnheader",textContent:r(m.$t("results.participant"))},null,8,po),a("span",{role:"columnheader",textContent:r(m.$t("distance"))},null,8,fo),a("span",{role:"columnheader",textContent:r(m.$t("result.event"))},null,8,go)])],512),[[te,t.results?.data.length]]),a("div",bo,[(o(!0),x(N,null,E(t.results?.data,(d,l)=>(o(),x("div",{key:d.id,role:"row","aria-rowindex":l,"aria-selected":d.userId===e(n)?.id,class:"col-span-full grid scroll-mt-[--app-header-height] grid-cols-subgrid items-center gap-s gap-x-m rounded-lg p-m even:bg-base-B1 aria-selected:bg-secondary-brand aria-selected:text-white tablet:gap-l tablet:px-l desktop:px-2xl"},[a("span",xo,r(d.mainRank??""),1),a("div",yo,[g(z,{user:d,class:"size-12 rounded-full"},null,8,["user"]),a("div",_o,[a("div",ho,[d.userId?(o(),h(I,{key:0,to:b(d.userId),class:"text-title hover:text-primary-brand"},{default:w(()=>[j(r(d.fullname),1)]),_:2},1032,["to"])):(o(),x("span",$o,r(d.fullname),1)),d.nation?.iso2?(o(),h(k,{key:2,iso2:d.nation.iso2},null,8,["iso2"])):C("",!0)]),a("div",{class:Y(["space-x-s text-title text-tertiary",{"text-tertiary-inverse":d.userId===e(n)?.id}])},[a("span",null,r(d.startnumber),1),a("span",null,r(d.category),1)],2)])]),a("span",{role:"cell",class:"col-start-2 text-title tablet:col-start-auto",textContent:r(e(u)(d.distance))},null,8,wo),a("div",Co,[d.country?.iso2?(o(),x(N,{key:0},[g(k,{class:"me-s max-tablet:!hidden",iso2:d.country.iso2},null,8,["iso2"]),d.country.iso2?(o(),x("span",ko,r(e(f).of(d.country.iso2))+", ",1)):C("",!0),a("span",{class:"text-title",textContent:r(d.location)},null,8,To)],64)):C("",!0)]),d.certificate?(o(),x("div",Ro,[a("a",{href:d.certificate,class:"flex w-full cursor-pointer items-center justify-center gap-xs border-t border-base-B4 pt-s text-label uppercase hover:!text-primary-brand max-desktop:mt-m desktop:border-none desktop:pt-0","aria-label":`download ${m.$t("results.certificate")}`,target:"_blank"},[g(e(He),{class:"h-[18px] w-[18px] shrink-0"}),j(" "+r(m.$t("results.certificate")),1)],8,Lo)])):C("",!0)],8,vo))),128))])],16),t.results?.data.length&&t.results?.meta?(o(),h(v,{key:0,class:"mt-xl","allow-page-selection":!0,path:t.results.meta.path,"current-page":t.results.meta.currentPage,total:t.results.meta.total,"last-page":t.results.meta.lastPage,"per-page":t.results.meta.perPage,onNavigate:y},null,8,["path","current-page","total","last-page","per-page"])):C("",!0)],64)}}}),Po=Object.assign(Vo,{__name:"ResultsParticipantList"});function Io(t,i){return i.gender?i.category?t.categories[i.gender].categories[i.category].leaders:t.categories[i.gender].leaders:!i.location&&i.category?{...t.categories.m?.categories,...t.categories.f?.categories,...t.categories.u?.categories}[i.category].leaders:t.leaders}function Bo(){const t=$t(),{locale:i}=ie(),n=Fe(),u=we(),{overrideDistances:p,overrideTeamDistances:f,clearOverrides:y}=Bt();wt(()=>{y()});const b=q(()=>new Intl.DisplayNames([i.value],{type:"region"})),m=q(()=>({gender:n.query.gender?.toString(),country:n.query.country?.toString(),location:n.query.location?.toString()}));async function V(v,d=[],l){const s=[...d,v].sort();if(l==="teams")return{data:{live:!0,years:s,filters:null}};const c=await t.runWithContext(()=>$fetch(pe("/live/json/filters.json.gz?v=1"))),T=c.locations.find(R=>R.value===m.value.location),$=T?.raceType==="flagship";return{data:{live:!0,years:s,filters:{...c,categories:$?[]:m.value.gender?c.categories.filter(R=>R.gender===m.value.gender):c.categories,countries:c.countries.filter(({iso2:R})=>!m.value.location||R===T?.countryIso2).map(({iso2:R})=>({name_en:b.value.of(R)||"",iso2:R})).sort((R,W)=>R.name_en.localeCompare(W.name_en)),locations:m.value.country?c.locations.filter(R=>R.countryIso2===m.value.country):c.locations}}}}async function z(v){if(v.q){const{data:c}=await t.runWithContext(()=>u.get("live/search/participants",{query:{q:v.q,withResults:1}}));return p(c.map(T=>[T.id,T.result?.distance])),c.map(T=>({id:T.id,fullname:[T.lastnameLatin||T.lastname,T.firstnameLatin||T.firstname].join(", ").trim(),userId:T.userId,avatar:T.avatar,category:T.category,distance:T.result?.distance||0,status:T.result?.status??"registered",nation:{iso2:T.nationalityIso2}
6,country:null,startnumber:T.startnumber,location:""}))}let d="all";v.location?d=`events/${v.location}`:v.country&&(d=`countries/${v.country}`);const l=await t.runWithContext(()=>$fetch(pe(`/live/json/${d}.json.gz?v=1`))),s=Io(l,v);return p(s.map(c=>[c.id,c.distance])),s}async function I(v){if(v.q){const{data:c,meta:T}=await t.runWithContext(()=>u.get("live/search/teams",{query:{q:v.q,withResults:1}}));return f(c.map($=>[$.id,{avg:$.result?.avg??0,sum:$.result?.sum??0}])),{data:c.map($=>({id:$.id,name:$.name,avatar:$.avatar,count:$.result?.count??0,avg:$.result?.avg??0,sum:$.result?.sum??0})),meta:T}}const d=v.award||"avg",l=1,s=await t.runWithContext(()=>$fetch(pe(`/live/json/teams/${d}_${l}.json.gz`)));return f(s.data.map(c=>[c.id,{avg:c.avg,sum:c.sum}])),s}async function k(v,d){if(d==="teams")return await I(v);const l=await z(v);return{data:l,meta:{currentPage:1,lastPage:1,path:"",perPage:l.length,total:l.length}}}return{getLiveResultsConfig:V,getLiveResults:k}}const So={class:"grid-container tablet:mt-l"},qo=["textContent"],zo={key:2,class:"flex flex-col items-center py-l text-center"},Mo={class:"mb-s text-3"},Do={key:3,class:"flex flex-col items-center py-l text-center"},jo={class:"mb-s text-3"},No={key:4,class:"mb-13xl mt-8xl flex flex-col items-center justify-center tablet:mb-[21.5625rem] tablet:mt-[10.3125rem]"},Ao=["textContent"],Oo=["textContent"],Wo={key:9,class:"mt-l rounded-lg border border-tertiary bg-base-B1 p-l text-center desktop:p-xl"},Fo=["textContent"],Uo={key:10,class:"my-20 rounded-2xl px-2xl py-xl tablet:px-5xl desktop:px-7xl desktop:py-2xl",style:{background:"radial-gradient(100% 100% at 50% 100%, #6887ad 0%, #30547d 100%)"}},Yo={class:"mx-auto text-center text-white desktop:max-w-[660px]"},Ko=["textContent"],Eo=["textContent"],be=15,hl=O({__name:"index",async setup(t){let i,n;Ct(kt(1200,800,"share-images/results_new.jpg"));const u=Z(),p=Tt(),f=Fe(),y=we(),{user:b}=We(),m=Ne(),V=Rt("results"),{flags:{liveLeaderboard:z,liveResults:I,pinboard:k}}=Lt(),{getLiveResultsConfig:v,getLiveResults:d}=Bo(),l=Ae({q:f.query.q?.toString(),year:f.query.year?.toString(),mode:f.query.mode?.toString(),award:f.query.mode?.toString()==="teams"?f.query.award?.toString()??"sum":void 0,category:f.query.category?.toString(),location:f.query.location?.toString(),country:f.query.country?.toString(),athleteType:f.query.athleteType?.toString(),gender:f.query.gender?.toString(),page:f.query.page?.toString()});X(l,_=>{const P=Object.fromEntries(Object.entries(_).filter(([A,D])=>D!=null&&D!==""));p.replace({query:P,hash:f.hash})},{deep:!0}),X(()=>f.query,_=>{_.mode!==l.mode&&(l.mode=_.mode?_.mode.toString():void 0,S({exclude:["award"]}),_.mode!=="teams"?l.award=void 0:l.award="sum"),_.year!==l.year&&(l.year=_.year?_.year.toString():void 0)});const{data:s,error:c,status:T}=([i,n]=fe(async()=>ge("resultConfig",async()=>{const _=new Date().getFullYear();let P=Number(l.year??_);const A=l.mode||"";let D=await y.get(`result-configs/${P}/${A}`);return"preview"in f.query?D.data.years.push(_):I.value&&!D.data.years?.includes(P)?D=await v(_,D.data.years,A):D.data.years.length&&!D.data.years.includes(P)&&(P=D.data.years.slice().sort()[D.data.years.length-1],D=await y.get(`result-configs/${P}/${A}`)),I.value&&!D.data.years.includes(_)&&D.data.years.push(_),{configYear:P.toString(),configMode:A,resultsConfig:D}},{watch:[()=>l.year,()=>l.mode,()=>l.gender,()=>l.country,()=>l.location,I,z]})),i=await i,n(),i),$=Pe(T,160);if(c.value&&Ie(c.value),s.value){const _=s.value.configMode==="teams"?"teams":"single";`${_}${s.value.configYear}`}const R=q(()=>I.value&&s.value?.resultsConfig.data.live),W=Vt(()=>{R.value?se():W.pause()},15e3);X(R,_=>{_?W.resume():W.pause()},{immediate:!0});const{data:L,error:M,status:G,refresh:se}=([i,n]=fe(async()=>ge("results",async()=>{if(!s.value||T.value==="pending")return null;if(s.value.resultsConfig.data.live)return{resultsMode:s.value.configMode,resultsData:await d(l,s.value.configMode)};const _=await y.get(`results/${s.value.configYear}/${s.value.configMode}`,{query:{...l,year:void 0,mode:void 0,country:Number(s.value.configYear)<2020?void 0:l.country,athleteType:Number(s.value.configYear)<2015||Number(s.value.configYear)>2016?void 0:l.athleteType,limit:be}});return{resultsMode:s.value.configMode,resultsData:_}},{watch:[s,()=>l.q,()=>l.award,()=>l.category,()=>l.location,()=>l.country,()=>l.athleteType,()=>l.gender,()=>l.page],lazy:!0})),i=await i,n(),i),oe=Pe(G,250);M.value&&Ie(M.value);const{data:U,status:le}=([i,n]=fe(async()=>ge("userResults",async()=>!s.value||!b.value||l.q||T.value==="pending"||s.value.resultsConfig.data.live?null:(u.value=void 0,await y.get(`results/${s.value.configYear}/${s.value.configMode}`,{query:{...l,year:void 0,mode:void 0,country:Number(s.value.configYear)<2020?void 0:l.country,athleteType:Number(s.value.configYear)<2015||Number(s.value.configYear)>2016?void 0:l.athleteType,user:b.value.id,limit:10,page:void 0}})),{watch:[b,s,()=>l.q,()=>l.award,()=>l.category,()=>l.location,()=>l.country,()=>l.athleteType,()=>l.gender],lazy:!0})),i=await i,n(),i),B=q(()=>{if(!s.value?.resultsConfig.data.live)return!1;const _=l.location&&s.value.resultsConfig.data.filters?.locations.find(A=>A.value===l.location)?.raceType!=="flagship",P=l.country&&s.value.resultsConfig.data.filters?.locations.find(A=>A.countryIso2===l.country)?.raceType!=="flagship";return!(_||P)});function S({exclude:_=[],preserveDefaults:P=!0}={}){const A=P?["year","mode",..._]:["mode",..._];for(const D of Object.keys(l))A.includes(D)||(l[D]=void 0)}async function ne(){if(!U.value?.data?.length)return;u.value===void 0?u.value=0:u.value+=1,u.value>=U.value.data.length&&(u.value=0);const _=U.value.data[u.value]?.mainIdx;if(_!==void 0){const P=L.value?.resultsData?.meta.perPage||be,A=Math.floor(_/P)+1;l.page=String(A),L.value?.resultsData.meta.currentPage!==A?X(L,async()=>{await Pt(),Re(_%P)},{once:!0}):Re(_%P)}else u.value=void 0}function Re(_){const P=document.querySelector(`[aria-rowindex="${_}"]`);P?.scrollIntoView({behavior:"smooth",inline:"nearest",block:"nearest"}),P?.setAttribute("aria-selected","true")}const Qe=q(()=>U.value?.data?.map(_=>_.mainIdx)?.filter(_=>_!==void 0)??[]);return(_,P)=>{const A=Ta,D=Aa,et=$e,Le=Se,tt=Za,at=ys,st=io,ot=Po,lt=de,nt=Oe;return o(),x("div",So,[g(re,{"enter-active-class":"transition delay-300 duration-500","enter-from-class":"scale-75 opacity-0","enter-to-class":"translate-y-0 scale-100 opacity-100","leave-active-class":"transition duration-700","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"scale-125 opacity-0 blur"},{default:w(()=>[e(k)?(o(),h(A,{key:0,class:"mb-l",type:e(s)?.configMode||"participants"},null,8,["type"])):C("",!0)]),_:1}),g(D,{modelValue:e(l),"onUpdate:modelValue":P[0]||(P[0]=F=>H(l)?l.value=F:null),"config-year":e(s)?.configYear,"config-mode":e(s)?.configMode,"results-config":e(s)?.resultsConfig,disabled:e(T)==="idle"||e($)==="pending","has-results":!!e(L)?.resultsData.data.length},null,8,["modelValue","config-year","config-mode","results-config","disabled","has-results"]),e(s)?.resultsConfig?.data.preliminary&&e(L)?.resultsData.data.length?(o(),x("p",{key:0,class:"mb-s rounded-sm bg-primary-brand p-m text-center text-white",textContent:r(_.$t("results.preliminary"))},null,8,qo)):C("",!0),e(G)==="idle"||e(oe)==="pending"&&!e(L)?.resultsData.data.length?(o(),x(N,{key:1},E(be,F=>g(et,{key:F,"background-color":"bg-white",class:"h-[72px] rounded-lg px-2xl py-m even:bg-base-B1"})),64)):C("",!0),e(R)&&!e(z)?(o(),x("div",zo,[a("h2",Mo,r(_.$t("lx.liveResults.disabled.header")),1),a("p",null,r(_.$t("lx.liveResults.disabled.description")),1)])):e(R)&&!e(L)?.resultsData?.data?.length?(o(),x("div",Do,[a("h2",jo,r(_.$t("lx.liveResults.empty.header")),1),a("p",null,r(_.$t("lx.liveResults.empty.description")),1)])):e(L)?.resultsData.data.length?e(R)&&e(L)&&e(s)?.configMode==="teams"&&e(L).resultsMode===e(s)?.configMode?(o(),h(tt,{key:5,modelValue:e(l),"onUpdate:modelValue":P[2]||(P[2]=F=>H(l)?l.value=F:null),results:e(L)?.resultsData.data},null,8,["modelValue","results"])):e(R)&&e(L)&&e(s)?.configMode!=="teams"&&e(L).resultsMode===e(s)?.configMode?(o(),h(at,{key:6,modelValue:e(l),"onUpdate:modelValue":P[3]||(P[3]=F=>H(l)?l.value=F:null),results:e(L)?.resultsData.data},null,8,["modelValue","results"])):e(L)&&e(s)?.configMode==="teams"&&e(L).resultsMode===e(s)?.configMode?(o(),h(st,{key:7,filters:e(l),"onUpdate:filters":P[4]||(P[4]=F=>H(l)?l.value=F:null),results:e(L)?.resultsData,"config-year":e(s)?.configYear,"user-result-indices":e(Qe)},null,8,["filters","results","config-year","user-result-indices"])):e(L)&&e(L).resultsMode===e(s)?.configMode?(o(),h(ot,{key:8,filters:e(l),"onUpdate:filters":P[5]||
6(P[5]=F=>H(l)?l.value=F:null),results:e(L)?.resultsData},null,8,["filters","results"])):C("",!0):(o(),x("div",No,[a("h1",{class:"text-3 uppercase",textContent:r(_.$t("help.noResults"))},null,8,Ao),a("span",{class:"mt-xs tablet:mt-s",textContent:r(_.$t("results.adjustFilters"))},null,8,Oo),g(Le,{content:_.$t("results.reset"),class:"mt-xl tablet:mt-2xl",onClick:P[1]||(P[1]=F=>S({preserveDefaults:!1}))},null,8,["content"])])),e(B)&&e(L)?.resultsData.data.length?(o(),x("div",Wo,r(_.$t("lx.liveResults.info")),1)):C("",!0),ee(g(Le,{class:"fixed bottom-4 left-1/2 -translate-x-1/2",size:"small",color:"secondary-brand",onClick:ne},{suffixIcon:w(()=>[g(lt,{name:"wr:sorting-arrow"})]),default:w(()=>[a("span",{textContent:r(_.$t("results.viewPosition"))},null,8,Fo)]),_:1},512),[[te,e(U)?.data?.length&&e(T)!=="pending"&&e(le)!=="pending"]]),e(V)&&e(L)?.resultsData.data.length?(o(),x("div",Uo,[a("div",Yo,[e(V).header?(o(),x("span",{key:0,class:"text-3 uppercase tablet:text-2",textContent:r(_.$t(e(V).header))},null,8,Ko)):C("",!0),e(V).bodyText?(o(),x("p",{key:1,class:"mt-s",textContent:r(_.$t(e(V).bodyText))},null,8,Eo)):C("",!0),g(nt,{to:e(m)(e(V).link),class:"mx-auto mt-2xl inline-block rounded-pill border px-xl py-m text-title transition-all hover:bg-white/10"},{default:w(()=>[j(r(_.$t(e(V).btnText)),1)]),_:1},8,["to"])])])):C("",!0)])}}});export{hl as default};
7
8//# debugId=8c7c67e1-7a36-515d-9353-545dbc2ed6ac

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.