1import{E as c,aZ as x,j as e,ao as b,O as n,be as f,r as l,N as g,ap as h}from"./index-BCH4IFx8.js";import{I as j}from"./InnerLoader-VnbOTMud.js";import{E as v}from"./EventTitleBanner-6JmDo_zq.js";import{u as p}from"./TimingSelectionContext-Daw75Td3.js";import{F as w}from"./flag-CvB2R2ls.js";import{T as N}from"./trophy-vILI8AG3.js";import{T}from"./timer-C6AhmeTR.js";import{A as y}from"./award-BWT5GFkf.js";import{u as k}from"./TimingTabMemoryContext-C18NPQmb.js";import"./BpSpinner-Bqvfph1h.js";import"./useTimingEvents-C-M7e7gJ.js";import"./useOrganizationSlug-DcRVJD25.js";import"./sheet-CPIBZrRk.js";import"./TimingEventPicker-m5IR3W2w.js";import"./skeleton-Dt7yWY4K.js";import"./calendar-BcfRHKCP.js";import"./map-pin-Eqsqtagn.js";import"./MyRidersFilterContext-DhyaPTl1.js";import"./useRiderFamily-14KWoc-T.js";import"./useUserEmails-64UGJRED.js";import"./nicknameVariants-CT_QG-k6.js";import"./users-Cp35uMGZ.js";function E(){const{orgSlug:i}=c(),{selectedEventId:o}=p(),r=x();if(!o)return null;const t=`/org/${i}/timing/${o}/results`,s=[{to:`${t}/race-results`,label:"Race Results",Icon:w,show:!0},{to:`${t}/podium`,label:"Podium",Icon:N,show:!0},{to:`${t}/lap-times`,label:"Lap Times",Icon:T,show:r.multiLap},{to:`${t}/series-points`,label:"Series Points",Icon:y,show:r.seriesRegistration}].filter(a=>a.show);return e.jsx("div",{className:"sticky top-[3.75rem] z-20 border-b border-border/60 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80",children:e.jsx("div",{className:"mx-auto flex max-w-3xl",children:s.map(({to:a,label:u,Icon:d})=>e.jsx(b,{to:a,className:({isActive:m})=>n("relative flex flex-1 flex-col items-center justify-center gap-1 px-2 py-2.5 text-center text-[11px] font-semibold uppercase tracking-wider transition-colors sm:text-xs",m?"text-primary":"text-muted-foreground hover:text-foreground"),children:({isActive:m})=>e.jsxs(e.Fragment,{children:[e.jsx(d,{className:"h-4 w-4"}),u,e.jsx("span",{className:n("absolute inset-x-3 bottom-0 h-0.5 rounded-full transition-all",m?"bg-primary opacity-100":"opacity-0")})]})},a))})})}function V(){const{orgSlug:i}=c(),{selectedEventId:o}=p(),{rememberSubPath:r}=k(),t=f();return l.useEffect(()=>{const s=t.pathname.match(/\/results(?:\/([^/?#]+))?/);r("results",(s==null?void 0:s[1])??"")},[t.pathname,r]),o?e.jsxs("div",{className:"flex flex-col",children:[e.jsx(v,{}),e.jsx(E,{}),e.jsx("div",{className:"mx-auto min-h-[60vh] w-full max-w-3xl px-3 py-4 pb-24",children:e.jsx("div",{className:"rounded-2xl border border-border/60 bg-card p-3 shadow-timing-card sm:p-4",children:e.jsx(l.Suspense,{fallback:e.jsx(j,{compact:!0}),children:e.jsx(h,{})})})})]}):e.jsx(g,{to:`/org/${i}/timing`,replace:!0})}export{V 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.