PageSourceSearch

https://britishboxers.uk/assets/Schedule-C2Y7f8in.js

js britishboxers.uk collected 2026-10-09 05:15:06 UTC 19,124 bytes, 6 lines download raw bytes

1import{c as D,t as p,j as e,a as F,D as T,b as o,T as j}from"./index-CAgTsS9I.js";import{n as S,g as _,m as I,L}from"./Layout-D_oP4nSj.js";import{u as U}from"./useSEO-8BDs2_0i.js";import{B as r}from"./badge-Dfqv_Hz3.js";import{T as R,a as B,b as h,c as u}from"./tabs-BEt1ay3s.js";import{R as H}from"./ReportFightError-BNrrjp4o.js";import{C as N}from"./circle-check-big-qrqEwlYe.js";import{C as E}from"./clock-CThhZMAK.js";import{F as v}from"./flame-D1BHbPmC.js";import{C as x}from"./calendar-vhbxlSut.js";import{M as w}from"./map-pin--o37FOXI.js";import{d as $,f as n}from"./format-QbWE0H-m.js";import{T as m}from"./timer-D5VS7q9d.js";import"./settings-Dqu1Zn_r.js";import"./check-DXYeM_Sd.js";import"./trash-2-B8kvyBWw.js";import"./mail-SHgAPKVI.js";import"./dialog-70VskD_D.js";import"./index-CSdx2VRY.js";import"./search-CkMXx1d0.js";import"./user-Bzsp7ULD.js";import"./arrow-left-BuPJNO5W.js";import"./camera-DxANKcNo.js";import"./shield-check-BgNs-s5f.js";import"./house-CVZTxZpZ.js";import"./select-3EqbpN3m.js";import"./index-BdQq_4o_.js";import"./chevron-up-BfbD7VDT.js";import"./textarea-eTU96Mk2.js";import"./useComposition-EK3NmjJ_.js";import"./label-DqABlbZL.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const y=D("CalendarPlus",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 13V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8",key:"3spt84"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M19 16v6",key:"tddt3s"}]]);function k(s,a,t){const[c,l]=S(t?.in,s,a),d=b(c,l),i=Math.abs($(c,l));c.setDate(c.getDate()-d*i);const C=+(b(c,l)===-d),g=d*(i-C);return g===0?0:g}function b(s,a){const t=s.getFullYear()-a.getFullYear()||s.getMonth()-a.getMonth()||s.getDate()-a.getDate()||s.getHours()-a.getHours()||s.getMinutes()-a.getMinutes()||s.getSeconds()-a.getSeconds()||s.getMilliseconds()-a.getMilliseconds();return t<0?-1:t>0?1:t}function A(s,a,t){const[c,l]=S(t?.in,s,a),d=(+c-+l)/I;return _(t?.roundingMethod)(d)}function M({date:s}){const a=new Date,t=k(s,a),c=A(s,a)%24;return t<0?null:t===0?e.jsxs(r,{"data-loc":"client/src/pages/Schedule.tsx:18",className:"bg-boxing-red text-white pulse-glow text-xs font-heading shadow-lg shadow-boxing-red/30",children:[e.jsx(m,{"data-loc":"client/src/pages/Schedule.tsx:19",className:"h-3 w-3 mr-1"})," TODAY"]}):t<=7?e.jsxs(r,{"data-loc":"client/src/pages/Schedule.tsx:25",className:"bg-boxing-red/10 text-boxing-red border border-boxing-red/20 text-xs font-heading",children:[e.jsx(v,{"data-loc":"client/src/pages/Schedule.tsx:26",className:"h-3 w-3 mr-1"})," ",t,"d ",c,"h"]}):t<=30?e.jsxs(r,{"data-loc":"client/src/pages/Schedule.tsx:32",variant:"outline",className:"border-boxing-red/15 text-boxing-red-light text-xs font-heading bg-boxing-red/5",children:[e.jsx(m,{"data-loc":"client/src/pages/Schedule.tsx:33",className:"h-3 w-3 mr-1"})," ",t," days"]}):null}function f({fight:s,showCountdown:a=!1}){const t=new Date(s.scheduledDate),l=k(t,new Date),d=l>=0&&l<=7;return e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:47",className:`group flex flex-col lg:flex-row items-center gap-5 p-6 rounded-xl border transition-all duration-500 backdrop-blur-sm hover:shadow-[0_0_30px_rgba(220,38,38,0.1)] ${d&&a?"border-boxing-red/20 bg-boxing-red/5 hover:bg-boxing-red/8 hover:border-boxing-red/40":"border-border bg-card/30 hover:border-boxing-red/20 hover:bg-card/50"}`,children:[e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:53",className:"text-center shrink-0 w-24 py-4 bg-card/40 rounded-xl border border-border",children:[e.jsx("p",{"data-loc":"client/src/pages/Schedule.tsx:54",className:"font-heading text-boxing-red text-xs uppercase tracking-wider",children:n(t,"MMM")}),e.jsx("p",{"data-loc":"client/src/pages/Schedule.tsx:55",className:"font-heading text-4xl leading-none my-1",children:n(t,"dd")}),e.jsx("p",{"data-loc":"client/src/pages/Schedule.tsx:56",className:"text-[10px] text-muted-foreground/50",children:n(t,"yyyy")})]}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:60",className:"flex-1 text-center lg:text-left",children:[e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:61",className:"flex items-center justify-center lg:justify-start gap-4 flex-wrap mb-2",children:[e.jsx("span",{"data-loc":"client/src/pages/Schedule.tsx:62",className:"font-heading text-xl",children:s.fighter1Name}),e.jsx("span",{"data-loc":"client/src/pages/Schedule.tsx:63",className:"text-boxing-red font-heading text-sm bg-boxing-red/10 border border-boxing-red/20 px-3 py-1.5 rounded-lg",children:"VS"}),e.jsx("span",{"data-loc":"client/src/pages/Schedule.tsx:64",className:"font-heading text-xl",children:s.fighter2Name})]}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:66",className:"flex items-center justify-center lg:justify-start gap-5 text-xs text-muted-foreground
6/60",children:[s.eventName&&e.jsxs("span",{"data-loc":"client/src/pages/Schedule.tsx:68",className:"flex items-center gap-1.5",children:[e.jsx(x,{"data-loc":"client/src/pages/Schedule.tsx:69",className:"h-3.5 w-3.5"})," ",s.eventName]}),s.venue&&e.jsxs("span",{"data-loc":"client/src/pages/Schedule.tsx:73",className:"flex items-center gap-1.5",children:[e.jsx(w,{"data-loc":"client/src/pages/Schedule.tsx:74",className:"h-3.5 w-3.5"})," ",s.venue]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:81",className:"flex flex-wrap items-center justify-center gap-2 shrink-0",children:[a&&e.jsx(M,{"data-loc":"client/src/pages/Schedule.tsx:82",date:t}),s.titleFight&&e.jsxs(r,{"data-loc":"client/src/pages/Schedule.tsx:84",className:"bg-boxing-gold/10 text-boxing-gold border border-boxing-gold/20 text-[10px]",children:[e.jsx(j,{"data-loc":"client/src/pages/Schedule.tsx:85",className:"h-3 w-3 mr-1"})," Title Fight"]}),e.jsx(r,{"data-loc":"client/src/pages/Schedule.tsx:88",variant:"outline",className:"border-border text-muted-foreground/60 text-[10px] bg-card/30",children:s.division||"TBD"}),s.rounds&&e.jsxs("span",{"data-loc":"client/src/pages/Schedule.tsx:92",className:"text-[10px] text-muted-foreground/40",children:[s.rounds," Rds"]}),s.status==="completed"&&s.result&&e.jsxs(r,{"data-loc":"client/src/pages/Schedule.tsx:95",className:"bg-green-500/10 text-green-400 border border-green-500/20 text-[10px]",children:[e.jsx(N,{"data-loc":"client/src/pages/Schedule.tsx:96",className:"h-3 w-3 mr-1"})," ",s.result]}),s.status==="live"&&e.jsx(r,{"data-loc":"client/src/pages/Schedule.tsx:100",className:"bg-boxing-red text-white pulse-glow text-xs font-heading shadow-lg shadow-boxing-red/30",children:"LIVE"}),s.status==="upcoming"&&e.jsxs("button",{"data-loc":"client/src/pages/Schedule.tsx:105",onClick:i=>{i.stopPropagation(),window.open(`/api/calendar/fight/${s.id}.ics`,"_blank"),o.success("Calendar event downloading",{description:`${s.fighter1Name} vs ${s.fighter2Name}`})},className:"flex items-center gap-1.5 text-[10px] text-muted-foreground/50 hover:text-boxing-red transition-colors bg-card/40 border border-border hover:border-boxing-red/20 rounded-lg px-2.5 py-1.5 cursor-pointer",title:"Add to calendar",children:[e.jsx(y,{"data-loc":"client/src/pages/Schedule.tsx:114",className:"h-3 w-3"})," Add to Cal"]}),e.jsx(H,{"data-loc":"client/src/pages/Schedule.tsx:117",fightId:s.id,fightLabel:`${s.fighter1Name} vs ${s.fighter2Name}`,variant:"icon"})]})]})}function fe(){U({title:"Fight Schedule",description:"Upcoming British boxing fights, dates, venues and broadcast details.",canonical:"/schedule"});const{data:s}=p.fights.upcoming.useQuery({limit:20}),{data:a}=p.fights.results.useQuery({limit:20}),t=(s||[])[0];return e.jsxs(L,{"data-loc":"client/src/pages/Schedule.tsx:135",children:[e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:137",className:"relative w-full overflow-hidden bg-gradient-to-br from-black via-[#0a0a0a] to-black min-h-[320px]",children:[e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:138",className:"absolute inset-0 pointer-events-none",children:[e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:139",className:"absolute top-0 left-1/3 w-[500px] h-[500px] bg-boxing-red/8 rounded-full blur-[200px]"}),e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:140",className:"absolute bottom-0 right-1/4 w-[400px] h-[400px] bg-boxing-gold/5 rounded-full blur-[180px]"}),e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:141",className:"absolute inset-0",style:{backgroundImage:"radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px)",backgroundSize:"40px 40px"}})]}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:144",className:"relative z-10 w-full px-4 sm:px-6 md:px-10 lg:px-16 py-12 md:py-16",children:[e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:146",className:"flex flex-wrap gap-6 mb-8",children:[e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:147",className:"flex items-center gap-3 bg-card/40 border border-border rounded-xl px-5 py-3 backdrop-blur-sm",children:[e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:148",className:"w-10 h-10 rounded-lg bg-boxing-red/20 flex items-center justify-center",children:e.jsx(F,{"data-loc":"client/src/pages/Schedule.tsx:149",className:"h-5 w-5 text-boxing-red"})}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:151",children:[e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:152",className:"text-2xl font-heading text-foreground",children:(s||[]).length}),e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:153",className:"text-[10px] uppercase tracking-widest text-muted-foreground",children:"Upcoming"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:156",className:"flex items-center gap-3 bg-card/40 border border-border rounded-xl px-5 py-3 backdrop-blur-sm",children:[e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:157",className:"w-10 h-10 rounded-lg bg-green-500/20 flex items-center justify-center",children:e.jsx(N,{"data-loc":"client/src/pages/Schedule.tsx:158",className:"h-5 w-5 text-green-400"})}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:160",children:[e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:161",className:"text-2xl font-heading text-foreground",children:(a||[]).length}),e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:162",className:"text-[10px] uppercase tracking-widest text-muted-foreground",children:"Results"})]})]}),t&&e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:166",className:"flex items-center gap-3 bg-card/40 border border-border rounded-xl px-5 py-3 backdrop-blur-sm",children:[e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:167",className:"w-10 h-10 rounded-lg bg-boxing-gold/20 flex items-center justify-center",children:e.jsx(E,{"data-loc":"client/src/pages/Schedule.tsx:168",className:"h-5 w-5 text-boxing-gold"})}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:170",children:[e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:171",className:"text-sm font-heading text-foreground",children:n(new Date(t.scheduledDate),"dd MMM")}),e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:172",className:"text-[10px] uppercase tracking-widest text-muted-foreground",children:"Next Fight"})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:179",className:"flex items-center gap-4 mb-3",children:[e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:180",className:"w-1.5 h-12 bg-gradient-to-b from-boxing-red to-boxing-red-dark rounded-full shadow-[0_0_15px_rgba(220,38,38,0.5)]"}),e.jsxs("h1",{"data-loc":"client/src/pages/Schedule.tsx:181",className:"font-heading text-5xl md:text-6xl lg:text-7xl tracking-wide",children:["FIGHT ",e.jsx("span",{"data-loc":"client/src/pages/Schedule.tsx:182",className:"text-boxing-red",children:"SCHEDULE"})]})]}),e.jsx("p",{"data-loc":"client/src/pages/Schedule.tsx:185",className:"text-muted-foreground ml-6 max-w-2xl text-sm leading-relaxed",children:"Upcoming bouts, live fights, and past results from the world of British boxing. Never miss a fight night."}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:189",className:"flex flex-wrap items-center gap-3 ml-6 mt-5",children:[e.jsxs("button",{"data-loc":"client/src/pages/Schedule.tsx:190",onClick:()=>{window.open("/api/calendar/feed.ics","_blank"),o.success("Calendar feed downloading",{description:"Import the .ics file into your calendar app to subscribe"})},className:"flex items-center gap-2 bg-boxing-red/10 hover:bg-boxing-red/20 border border-boxing-red/20 hover:border-boxing-red/40 text-boxing-red rounded-xl px-5 py-2.5 text-sm font-heading uppercase tracking-wider transition-all cursor-pointer",children:[e.jsx(T,{"data-loc":"client/src/pages/Schedule.tsx:197",className:"h-4 w-4"})," Download Calendar (.ics)"]}),e.jsxs("button",{"data-loc":"client/src/pages/Schedule.tsx:199",onClick:()=>{const c=window.location.origin.replace("https://","webcal://").replace("http://","webcal://")+"/api/calendar/feed.ics";window.location.href=c,o.success("Subscribing to calendar",{description:"Your calendar app should open to add the subscription"})},className:"flex items-center gap-2 bg-card/40 hover:bg-card/60 border border-border hover:border-boxing-red/20 text-muted-foreground hover:text-foreground rounded-xl px-5 py-2.5 text-sm font-heading uppercase tracking-wider transition-all cursor-pointer",children:[e.jsx(y,{"data-loc":"client/src/pages/Schedule.tsx:207",className:"h-4 w-4"})," Subscribe (Auto-Update)"]})]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:214",className:"w-full px-4 sm:px-6 md:px-10 lg:px-16 py-10",children:e.jsxs(R,{"data-loc":"client/src/pages/Schedule.tsx:215",defaultValue:"upcoming",className:"w-full",children:[e.jsxs(B,{"data-loc":"client/src/pages/Schedule.tsx:216",className:"bg-card/30 border border-border backdrop-blur-sm mb-8 p-1.5",children:[e.jsxs(h,{"data-loc":"client/src/pages/Schedule.tsx:217",value:"upcoming",className:"font-heading uppercase tracking-wider text-xs px-6 py-2 data-[state=active]:bg-boxing-red data-[state=active]:text-white data-[state=active]:shadow-lg data-[state=active]:shadow-boxing-red/20",children:["Upcoming (",(s||[]).length,")"]}),e.jsxs(h,{"data-loc":"client/src/pages/Schedule.tsx:220",value:"results",className:"font-heading uppercase tracking-wider text-xs px-6 py-2 data-[state=active]:bg-boxing-red data-[state=active]:text-white data-[state=active]:shadow-lg data-[state=active]:shadow-boxing-red/20",children:["Results (",(a||[]).length,")"]})]}),e.jsxs(u,{"data-loc":"client/src/pages/Schedule.tsx:225",value:"upcoming",children:[t&&e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:228",className:"mb-8 p-8 rounded-2xl border border-boxing-red/20 bg-gradient-to-r from-boxing-red/5 to-transparent backdrop-blur-sm",children:[e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:229",className:"flex items-center gap-2 mb-4",children:[e.jsx(v,{"data-loc":"client/src/pages/Schedule.tsx:230",className:"h-5 w-5 text-boxing-red"}),e.jsx("span",{"data-loc":"client/src/pages/Schedule.tsx:231",className:"font-heading text-sm text-boxing-red uppercase tracking-wider",children:"Next Fight"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:233",className:"flex flex-col md:flex-row items-center gap-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:234",className:"text-center shrink-0",children:[e.jsx("p",{"data-loc":"client/src/pages/Schedule.tsx:235",className:"font-heading text-boxing-red text-sm uppercase",children:n(new Date(t.scheduledDate),"MMMM")}),e.jsx("p",{"data-loc":"client/src/pages/Schedule.tsx:236",className:"font-heading text-4xl sm:text-6xl leading-none my-1",children:n(new Date(t.scheduledDate),"dd")}),e.jsx("p",{"data-loc":"client/src/pages/Schedule.tsx:237",className:"text-sm text-muted-foreground",children:n(new Date(t.scheduledDate),"yyyy")})]}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:239",className:"flex-1 text-center md:text-left",children:[e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:240",className:"flex items-center justify-center md:justify-start gap-4 flex-wrap mb-3",children:[e.jsx("span",{"data-loc":"client/src/pages/Schedule.tsx:241",className:"font-heading text-3xl",children:t.fighter1Name}),e.jsx("span",{"data-loc":"client/src/pages/Schedule.tsx:242",className:"text-boxing-red font-heading text-lg bg-boxing-red/10 border border-boxing-red/20 px-4 py-2 rounded-lg",children:"VS"}),e.jsx("span",{"data-loc":"client/src/pages/Schedule.tsx:243",className:"font-heading text-3xl",children:t.fighter2Name})]}),e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:245",className:"flex items-center justify-center md:justify-start gap-4 text-sm text-muted-foreground
6/60",children:[t.eventName&&e.jsxs("span",{"data-loc":"client/src/pages/Schedule.tsx:246",className:"flex items-center gap-1.5",children:[e.jsx(x,{"data-loc":"client/src/pages/Schedule.tsx:246",className:"h-4 w-4"})," ",t.eventName]}),t.venue&&e.jsxs("span",{"data-loc":"client/src/pages/Schedule.tsx:247",className:"flex items-center gap-1.5",children:[e.jsx(w,{"data-loc":"client/src/pages/Schedule.tsx:247",className:"h-4 w-4"})," ",t.venue]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:250",className:"shrink-0",children:e.jsx(M,{"data-loc":"client/src/pages/Schedule.tsx:251",date:new Date(t.scheduledDate)})})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:257",className:"space-y-3",children:(s||[]).length>0?s.slice(t?1:0).map(c=>e.jsx(f,{"data-loc":"client/src/pages/Schedule.tsx:259",fight:c,showCountdown:!0},c.id)):e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:261",className:"rounded-xl border border-border bg-card/30 backdrop-blur-sm p-16 text-center",children:[e.jsx(x,{"data-loc":"client/src/pages/Schedule.tsx:262",className:"h-14 w-14 text-boxing-red/30 mx-auto mb-4"}),e.jsx("h3",{"data-loc":"client/src/pages/Schedule.tsx:263",className:"font-heading text-2xl mb-2",children:"No Upcoming Fights"}),e.jsx("p",{"data-loc":"client/src/pages/Schedule.tsx:264",className:"text-muted-foreground/60 text-sm",children:"The fight schedule is being updated. Check back soon."})]})})]}),e.jsx(u,{"data-loc":"client/src/pages/Schedule.tsx:270",value:"results",children:e.jsx("div",{"data-loc":"client/src/pages/Schedule.tsx:271",className:"space-y-3",children:(a||[]).length>0?a.map(c=>e.jsx(f,{"data-loc":"client/src/pages/Schedule.tsx:273",fight:c},c.id)):e.jsxs("div",{"data-loc":"client/src/pages/Schedule.tsx:275",className:"rounded-xl border border-border bg-card/30 backdrop-blur-sm p-16 text-center",children:[e.jsx(j,{"data-loc":"client/src/pages/Schedule.tsx:276",className:"h-14 w-14 text-boxing-red/20 mx-auto mb-4"}),e.jsx("h3",{"data-loc":"client/src/pages/Schedule.tsx:277",className:"font-heading text-2xl mb-2",children:"No Results Yet"}),e.jsx("p",{"data-loc":"client/src/pages/Schedule.tsx:278",className:"text-muted-foreground/60 text-sm",children:"Fight results will appear here as events are completed."})]})})})]})})]})}export{fe 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.