PageSourceSearch

https://horowitzv.org/assets/CompetitionPage-DrStB9jZ.js

js horowitzv.org collected 2026-10-02 11:46:18 UTC 2,262 bytes, 1 lines download raw bytes

1import{u as x,G as k,i as A,r as d,j as t,J as B,v as C,S as h,B as p,T as j,bj as f,R as m,P as E,C as T,n as y,X as L,bk as R,d as I,N as w}from"./index-B2kymLvL.js";import{S as F}from"./Stub-CQEfSDFm.js";import{S as b}from"./SEO-Dx3QIE9d.js";import{G as N}from"./GridTemplate-6sekYPwr.js";import"./GrowView-DD92LoVC.js";const $="/assets/btn-ZWxgFfu3.jpg",G=({item:e})=>{const{t:a}=x(),{btn:i,isActive:n,title:o}=e,{containerRef:s,containerSize:r}=k(),l=i?A(i).auto("format").width(r).url().toString():$,u=d.useMemo(()=>s.current?.offsetHeight,[r]);return t.jsx(B,{component:C,to:`${o}`,sx:{display:"block",pointerEvents:n?"all":"none","&:hover":{transform:"scale(1.05)"}},children:t.jsxs(h,{gap:{xs:2,md:3},children:[t.jsxs(p,{ref:s,sx:{position:"relative",width:"100%",aspectRatio:{xs:1.11,md:1.27,lg:1.37}},children:[t.jsx(p,{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,backgroundColor:n?"rgba(8, 7, 8, 0.5)":"rgba(224, 224, 224, 0.5)"}}),t.jsx("img",{style:{display:"block",width:"100%",height:"100%",objectFit:"fill"},src:l,width:r,height:u,alt:`Button background for ${o} group`})]}),t.jsx(j,{variant:"subhead",component:"p",color:c=>n?"inherit":c.palette.neutral[50],children:a(`navigation.${o}`)})]})})},P=()=>{const{description:e,title:a,junior:i,intermediate:n,senior:o,juniorBtn:s,intermediateBtn:r,seniorBtn:l,slug:u}=f(),c=[{title:m.JUNIOR,isActive:i.isActive,btn:s},{title:m.INTERMEDIATE,isActive:n.isActive,btn:r},{title:m.SENIOR,isActive:o.isActive,btn:l}];return t.jsxs(t.Fragment,{children:[t.jsx(b,{title:a,canonicalUrl:u}),t.jsx(E,{children:t.jsx(T,{children:t.jsxs(h,{gap:{xs:3,md:5,lg:6},children:[t.jsx(j,{variant:"h1",textAlign:"center",children:a}),t.jsx(p,{children:e&&t.jsx(y,{text:e,column:1})}),t.jsx(N,{justify:"center",gridItem:G,list:c})]})})})]})},J=()=>{const{i18n:{language:e}}=x(),{pathname:a}=L(),{competitions:i}=R(),{fetchCommonData:n,isStubActive:o,title:s,stubText:r,requestLang:l,isLoading:u,slug:c}=f(),g=a.split("/").slice(-1)[0];if(d.useEffect(()=>{l===e&&s||n(g,e)},[g,e]),!i)return;const v=i.find(S=>S.slug===g);return u?t.jsx(I,{}):v?t.jsxs(t.Fragment,{children:[t.jsx(b,{canonicalUrl:`/${c}`,title:s}),o?t.jsx(F,{title:s,text:r}):t.jsx(P,{})]}):t.jsx(w,{to:"404"})};export{J 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.