PageSourceSearch

https://triathlon.org/events/_nuxt/3r8NrVuZ.js

js triathlon.org collected 2026-10-01 10:32:29 UTC 3,966 bytes, 1 lines download raw bytes

1import{_ as A}from"./Bt6jTN3U.js";import{f as G,g as O}from"./Bq2zQ3dH.js";import{P as q}from"./BgiJInyr.js";import{bc as C,b5 as z,ba as F,bu as M,bb as E,bh as i,b7 as w,b8 as g,b9 as $,bm as H,bi as J,bl as Q,bg as U,bt as W,bk as S,bp as l,b6 as v,bj as X,bn as Z}from"./QrANltfT.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="edc6434a-cc9d-457a-8a8a-47640ed8571d",t._sentryDebugIdIdentifier="sentry-dbid-edc6434a-cc9d-457a-8a8a-47640ed8571d")}catch{}})();const L=t=>[...t].sort((e,a)=>e.start_date.localeCompare(a.start_date));function me(t,e){return L(t).find(a=>a.finish_date>=e)??null}function ee(t,e){const a=L(t).filter(o=>o.finish_date<e);return a[a.length-1]??null}function te(t){return C(`games-editions-ssr-${t}`,()=>$fetch("/api/events/games-editions",{query:{type:t}}),{default:()=>[],getCachedData:(e,a)=>a.payload.data[e]})}const ae={key:0,class:"bg-gray-50"},se={class:"mx-auto max-w-[1600px] px-4 lg:px-8 py-16 lg:py-24"},ne={class:"mb-10 lg:mb-14 max-w-3xl"},oe={class:"text-4xl lg:text-5xl font-bold tracking-tight text-gray-900"},ie={class:"mt-4 text-base lg:text-lg text-gray-600 leading-relaxed"},re={key:0,class:"mt-10 lg:mt-12 flex justify-center"},le=z({__name:"YogLastPodiumSection",props:{event:{default:void 0},type:{default:"yog"}},async setup(t){let e,a;const o=t,{t:d,locale:T}=F(),I=M(),m=l(()=>!!o.event),p=!o.event&&o.type!=="yog",N=p?([e,a]=E(()=>te(o.type)),e=await e,a(),e).data:null,R=o.event?`yog-medal-table-${o.event.id}`:o.type==="yog"?"yog-last-podium":`games-last-podium-${o.type}`,{data:P}=([e,a]=E(async()=>C(R,async()=>{const s=o.event??(p?ee(N?.value??[],new Date().toISOString().slice(0,10)):await $fetch("/api/events/yog-previous"));if(!s)return null;const y=((await $fetch(`/api/programs/${s.id}`))?.data??[]).filter(n=>n.results),c=m.value||p?[...y].sort((n,u)=>{const _=`${n.prog_date??""}T${n.prog_time??"00:00"}`,b=`${u.prog_date??""}T${u.prog_time??"00:00"}`;return _.localeCompare(b)}):y.filter(n=>!n.team).sort((n,u)=>{const _=b=>b==="female"?0:b==="male"?1:2;return _(n.prog_gender)-_(u.prog_gender)});if(c.length===0)return{event:s,cards:[]};const j=await Promise.all(c.map(async n=>{try{const u=await $fetch(`/api/podium/${n.prog_id}`);return{program:n,podium:(u??[]).slice(0,3)}}catch{return{program:n,podium:[]}}}));return{event:s,cards:j.filter(n=>n.podium.length>0)}},{default:()=>null})),e=await e,a(),e),r=l(()=>P.value?.event??null),h=l(()=>P.value?.cards??[]),k=l(()=>r.value?.slug?I("/"+r.value.slug+"/results"):""),D=l(()=>{if(!r.value)return"";const s=O(r.value);return`${r.value.city?.trim()||r.value.venue?.trim()||r.value.name} ${s}`}),B=s=>
1m.value||p?s.prog_name:s.prog_gender==="female"?d("yog.lastPodium.womensRace"):s.prog_gender==="male"?d("yog.lastPodium.mensRace"):s.prog_name,x=s=>`${o.type}.lastPodium.${s}`,Y=l(()=>m.value?d("yog.medalTable.heading"):d(x("heading"),{edition:D.value})),K=l(()=>m.value?d("yog.medalTable.subheading"):d(x("subheading"))),V=l(()=>!!r.value&&h.value.length>0);return(s,f)=>{const y=A;return i(V)?(v(),w("section",ae,[g("div",se,[g("header",ne,[g("h2",oe,$(i(Y)),1),g("p",ie,$(i(K)),1)]),g("div",{class:H(["grid grid-cols-1 gap-6 lg:gap-8",i(h).length>=3?"lg:grid-cols-3":"lg:grid-cols-2"])},[(v(!0),w(J,null,Q(i(h),c=>(v(),X(q,{key:c.program.prog_id,eyebrow:i(G)(c.program.prog_date,i(T)),title:B(c.program),podium:c.podium},null,8,["eyebrow","title","podium"]))),128))],2),!i(m)&&i(k)?(v(),w("div",re,[U(y,{to:i(k),class:"inline-flex items-center gap-2 text-sm font-semibold text-primary-transitionBlue hover:underline"},{default:W(()=>[Z($(i(d)(x("viewEvent"),{edition:i(D)}))+" ",1),f[0]||(f[0]=g("span",{"aria-hidden":"true"},"→",-1))]),_:1},8,["to"])])):S("",!0)])])):S("",!0)}}}),pe=Object.assign(le,{__name:"YogLastPodiumSection"});export{pe as Y,me as p,te as u};

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.