PageSourceSearch

https://triathlon.org/events/_nuxt/DWscD4Im.js

js triathlon.org collected 2026-10-01 10:33:07 UTC 9,516 bytes, 1 lines download raw bytes

1import X from"./D6j24s9T.js";import{_ as j}from"./BNFNlsF4.js";import{u as Z,p as T}from"./DfYTXyyP.js";import{h as W}from"./CGtwPYJc.js";import{i as tt}from"./BKKdmnTV.js";import{b5 as K,b6 as a,b7 as i,b8 as o,b9 as x,ba as et,bb as I,bc as H,bd as st,be as nt,bf as lt,bg as y,bh as d,bi as v,bj as R,bk as g,bl as D,bm as w,bn as Y,bo as at,bp as m}from"./QrANltfT.js";import{_ as ot}from"./C8tdCacw.js";import{N as it}from"./C7wnT7d7.js";import"./DHi6SuyV.js";import"./CCd6PVO8.js";import"./DkLKgEzM.js";import"./Bt6jTN3U.js";import"./kIeQa9eT.js";import"./DA2HS63S.js";import"./iUJMom1d.js";import"./BJ99M0qN.js";import"./BIUQXFyN.js";import"./CLMEcs4z.js";import"./xnDD2XwB.js";import"./B1UGltTs.js";import"./DijtIecI.js";import"./szQxKia8.js";import"./BKz-n-kN.js";import"./B4ddi-X4.js";import"./gRX2IVr1.js";import"./SD2fVsY9.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new r.Error().stack;n&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[n]="9e61183d-7386-42d9-977c-6e3bc5bda0c0",r._sentryDebugIdIdentifier="sentry-dbid-9e61183d-7386-42d9-977c-6e3bc5bda0c0")}catch{}})();const rt={class:"es-hero text-white isolate"},ct={class:"relative z-[2] mx-auto w-full max-w-[1600px] px-6 md:px-12 pt-28 md:pt-40 lg:pt-56 pb-20 md:pb-28 lg:pb-32"},dt={class:"font-bold tracking-tight text-white text-[44px] leading-[1.1] md:text-[72px] lg:text-[88px] lg:leading-[1.05] max-w-[1100px]"},ut=K({__name:"EventsSustainabilityHero",props:{title:{default:"Sustainable Event Program"}},setup(r){return(n,l)=>(a(),i("section",rt,[l[0]||(l[0]=o("div",{class:"es-hero-grad","aria-hidden":"true"},null,-1)),l[1]||(l[1]=o("div",{class:"es-hero-grain","aria-hidden":"true"},null,-1)),l[2]||(l[2]=o("div",{class:"es-hero-fade","aria-hidden":"true"},null,-1)),o("div",ct,[o("h1",dt,x(r.title),1)])]))}}),mt=Object.assign(ot(ut,[["__scopeId","data-v-f1e80c3c"]]),{__name:"EventsSustainabilityHero"}),N=["gold","silver","bronze","recognized"];function pt(r){const n=r?.trim().toLowerCase()??"";return N.includes(n)?n:null}function xt(r){if(!r)return[];const n=[],l=/<(td|li)[^>]*>([\s\S]*?)<\/\1>/gi;let p;for(;(p=l.exec(r))!==null;)n.push(p[2]??"");return(n.length?n:r.split(/<\/p>|<br\s*\/?>/gi)).map(W).filter(k=>k.length>0)}function bt(r){const n=l=>{const p=/^(\d{4})\b/.exec(l)?.[1];return p?Number.parseInt(p,10):Number.NEGATIVE_INFINITY};return[...r].sort((l,p)=>n(p)-n(l))}const gt={class:"bg-white"},ft={key:1,id:"certified-events",class:"w-full max-w-[1400px] mx-auto px-4 md:px-10 lg:px-12 py-14 md:py-20"},ht={class:"text-2xl md:text-4xl font-bold text-primary text-center mb-10 md:mb-14"},_t={class:"flex flex-col gap-6 max-w-5xl mx-auto"},yt={class:"text-lg md:text-xl font-bold text-gray-900"},vt={key:0,class:"grid md:grid-cols-2 gap-x-10 gap-y-2.5 px-5 md:px-7 py-5"},wt={key:1,class:"px-5 md:px-7 py-5 text-sm text-gray-500"},kt={key:2,id:"case-studies",class:"w-full max-w-[1400px] mx-auto px-4 md:px-10 lg:px-12 py-14 md:py-20"},Ct={class:"grid sm:grid-cols-2 gap-6 max-w-5xl mx-auto"},Bt=["href"],Et={class:"aspect-[16/9] overflow-hidden bg-gray-100"},St=["src","alt"],Lt={class:"flex flex-col flex-grow p-6"},At={class:"text-lg md:text-xl font-bold text-gray-900"},Tt={key:0,class:"mt-1 text-sm text-gray-600"},It={class:"mt-4 inline-flex items-center gap-2 text-sm font-bold text-primary-transitionBlue"},Dt={key:3,class:"w-full max-w-[1400px] mx-auto px-4 md:px-10 lg:px-12 py-14 md:py-20"},Nt={key:1,class:"w-full max-w-[1400px] mx-auto px-4 md:px-10 lg:px-12 py-20 md:py-28 text-center"},oe=K({__name:"events-sustainability",async setup(r){let n,l;
1const{locale:p,setLocale:z}=et(),k=at(),{assetUrl:M}=Z();p.value!=="en"&&([n,l]=I(()=>z("en")),await n,l());const{data:b,error:_}=([n,l]=I(()=>H("events-sustainability-page",()=>$fetch("/api/events-sustainability-page"))),n=await n,l(),n);st(()=>{if(_.value&&_.value.statusCode!==404)throw nt({statusCode:_.value.statusCode||500,statusMessage:_.value.statusMessage||"Failed to load events-sustainability page",fatal:!0})});const{data:V}=([n,l]=I(()=>H("sustainability-news",()=>$fetch("/api/news/sustainability").catch(()=>[]),{default:()=>[]})),n=await n,l(),n),q=t=>t==="zh"?"zn":t,G=m(()=>{const t=b.value?.translations;if(!t?.length)return null;const s=q(p.value),u=e=>typeof e.languages_id=="object"?e.languages_id.code:void 0;return t.find(e=>u(e)===s)??t.find(e=>u(e)==="en")??t[0]??null}),C=m(()=>G.value?.title||b.value?.name||"Sustainable Event Program"),B=m(()=>[...b.value?.blocks??[]].filter(t=>t.item&&typeof t.item=="object").sort((t,s)=>(t.sort??0)-(s.sort??0))),E=m(()=>{const t=B.value.filter(s=>s.collection==="block_tabs");return t.find(s=>s.anchor==="certified-events")??t[0]??null}),S=m(()=>B.value.filter(t=>t.collection==="block_image_text"&&t.anchor?.startsWith("case-study"))),L=m(()=>{const t=new Set([E.value,...S.value].filter(s=>s!=null).map(s=>s.id));return B.value.filter(s=>!t.has(s.id))}),F=m(()=>{const t=E.value??S.value[0];return t?t.sort??0:null}),$=m(()=>{const t=F.value;return t===null?L.value:L.value.filter(s=>(s.sort??0)<t)}),O=m(()=>{const t=F.value;return t===null?[]:L.value.filter(s=>(s.sort??0)>=t)}),A=m(()=>{const t=E.value?.item;if(!t?.items?.length)return null;const s=T(t.translations)?.headline||"Certified Events",u=c=>c?N.indexOf(c):N.length,e=[...t.items].sort((c,f)=>(c.sort??0)-(f.sort??0)).map(c=>{const f=T(c.translations),U=f?.label||c.name||"";return{id:c.id,key:pt(U),label:U,events:bt(xt(f?.content))}}).filter(c=>c.label.length>0).sort((c,f)=>u(c.key)-u(f.key));return e.length?{headline:s,groups:e}:null}),J={header:"bg-gray-100",icon:"lucide:award",iconColor:"text-gray-500",count:"bg-gray-200 text-gray-600",dot:"bg-gray-400"},Q={gold:{header:"bg-[#C9A227]/10",icon:"lucide:medal",iconColor:"text-[#B08D1E]",count:"bg-[#C9A227]/15 text-[#8F721A]",dot:"bg-[#C9A227]"},silver:{header:"bg-[#98A2B3]/15",icon:"lucide:medal",iconColor:"text-[#64748B]",count:"bg-[#98A2B3]/20 text-[#475569]",dot:"bg-[#98A2B3]"},bronze:{header:"bg-[#B4713D]/10",icon:"lucide:medal",iconColor:"text-[#9A5F32]",count:"bg-[#B4713D]/15 text-[#8A5227]",dot:"bg-[#B4713D]"},recognized:{header:"bg-primary-transitionBlue/10",icon:"lucide:badge-check",iconColor:"text-primary-transitionBlue",count:"bg-primary-transitionBlue/15 text-primary-transitionBlue",dot:"bg-primary-transitionBlue"}},h=t=>t?Q[t]:J,P=m(()=>S.value.map(t=>{const s=t.item,u=T(s?.translations),e=s?.cta_href??"";return{id:t.id,title:u?.headline??"",subtitle:W(u?.body),imageUrl:M(s?.image,{width:960,quality:80,format:"webp"}),href:e,ctaLabel:u?.cta_label||"View case study"}}).filter(t=>t.title.length>0&&tt(t.href)));return lt({title:()=>b.value?.seo_meta_title||C.value,meta:[{name:"description",content:()=>b.value?.seo_meta_description||"World Triathlon's Sustainable Event Program: certification levels, certified events, and sustainability case studies."},{property:"og:title",content:()=>b.value?.seo_meta_title||C.value},{property:"og:type",content:"website"},{property:"og:site_name",content:"World Triathlon"}]}),(t,s)=>{const u=X;return a(),i("div",gt,[y(mt,{title:d(C)},null,8,["title"]),d(b)?.blocks?.length?(a(),i(v,{key:0},[d($).length?(a(),R(j,{key:0,blocks:d($)},null,8,["blocks"])):g("",!0),d(A)?(a(),i("section",ft,[o("h2",ht,x(d(A).headline),1),o("div",_t,[(a(!0),i(v,null,D(d(A).groups,e=>(a(),i("div",{key:e.id,class:"rounded-2xl border border-black/10 overflow-hidden"},[o("div",{class:w(["flex items-center gap-3 px-5 md:px-7 py-4",h(e.key).header])},[y(u,{name:h(e.key).icon,class:w(["w-6 h-6 shrink-0",h(e.key).iconColor])},null,8,["name","class"]),o("h3",yt,x(e.label),1),o("span",{class:w(["ml-auto rounded-full px-3 py-1 text-xs md:text-sm font-semibold whitespace-nowrap",h(e.key).count])},x(e.events.length)+" "+x(e.events.length===1?"event":"events"),3)],2),e.events.length?(a(),i("ul",vt,[(a(!0),i(v,null,D(e.events,c=>(a(),i("li",{key:c,class:"flex items-start gap-2.5 text-[15px] leading-relaxed text-gray-800"},[o("span",{class:w(["mt-[7px] h-2 w-2 rounded-full shrink-0",h(e.key).dot]),"aria-hidden":"true"}
1,null,2),Y(" "+x(c),1)]))),128))])):(a(),i("p",wt," No certified events at this level yet. "))]))),128))])])):g("",!0),d(P).length?(a(),i("section",kt,[s[0]||(s[0]=o("h2",{class:"text-2xl md:text-4xl font-bold text-primary text-center mb-3"}," Case Studies ",-1)),s[1]||(s[1]=o("p",{class:"text-center text-gray-600 mb-10 md:mb-14"}," How our events put sustainability into practice. ",-1)),o("div",Ct,[(a(!0),i(v,null,D(d(P),e=>(a(),i("a",{key:e.id,href:e.href,target:"_blank",rel:"noopener noreferrer",class:"group flex flex-col rounded-2xl border border-black/10 overflow-hidden bg-white"},[o("div",Et,[e.imageUrl?(a(),i("img",{key:0,src:e.imageUrl,alt:e.title,class:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"},null,8,St)):g("",!0)]),o("div",Lt,[o("h3",At,x(e.title),1),e.subtitle?(a(),i("p",Tt,x(e.subtitle),1)):g("",!0),o("span",It,[y(u,{name:"lucide:file-text",class:"w-4 h-4"}),Y(" "+x(e.ctaLabel)+" (PDF) ",1)])])],8,Bt))),128))])])):g("",!0),d(V).length?(a(),i("section",Dt,[y(it,{articles:d(V),"directus-uri":d(k).public.directusCmsUri,title:"Sustainability News"},null,8,["articles","directus-uri"])])):g("",!0),d(O).length?(a(),R(j,{key:4,blocks:d(O)},null,8,["blocks"])):g("",!0)],64)):(a(),i("div",Nt,[...s[2]||(s[2]=[o("p",{class:"text-base md:text-lg text-gray-600"},"Content coming soon.",-1)])]))])}}});export{oe as default};

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.