PageSourceSearch

https://britishboxers.uk/assets/News-CzMf00st.js

js britishboxers.uk collected 2026-10-09 05:14:56 UTC 16,383 bytes, 1 lines download raw bytes

1import{r as i,t as $,j as e,L as N,S as w,C as u,Z as B,B as S,N as F}from"./index-CAgTsS9I.js";import{L as O,f as L}from"./Layout-D_oP4nSj.js";import{u as _}from"./useSEO-8BDs2_0i.js";import{B as c}from"./badge-Dfqv_Hz3.js";import{A as C}from"./ArticleThumbnail-qRzTHyuK.js";import{C as E}from"./CategoryBanner-D2-3r3V6.js";import{f as b}from"./readingTime-C7Jzi-aq.js";import{F as G}from"./flame-D1BHbPmC.js";import{C as f}from"./clock-CThhZMAK.js";import{T as U}from"./trending-up-BjbIgK8w.js";import{F as z}from"./filter-BcRaVPdw.js";import{f as Z}from"./format-QbWE0H-m.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"./LazyImage-OpU2Nkis.js";import"./mic-Csi5fOmC.js";import"./eye-CPGi78pS.js";const P=["all","news","preview","analysis","opinion","interview","results"],R=30;function ue(){_({title:"Boxing News",description:"Latest British boxing news, fight previews, results and analysis.",canonical:"/news"});const[l,T]=i.useState("all"),[d,j]=i.useState(0),[a,g]=i.useState([]),[v,p]=i.useState(!1),m=i.useRef(""),{data:o,isLoading:r}=$.articles.list.useQuery({category:l==="all"?void 0:l,limit:R,offset:d});i.useEffect(()=>{if(!o||r)return;const s=`${l}:${d}`;m.current!==s&&(m.current=s,g(d===0?o.articles:n=>{const M=new Set(n.map(h=>h.id)),D=o.articles.filter(h=>!M.has(h.id));return[...n,...D]}),p(!1))},[o,r,l,d]);const I=s=>{T(s),j(0),g([]),p(!1),m.current=""},x=o?.total??0,y=a.length<x,t=a[0],k=a.slice(1,4),A=a.slice(4);return e.jsxs(O,{"data-loc":"client/src/pages/News.tsx:75",children:[e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:77",className:"relative w-full overflow-hidden bg-black min-h-[60vh] sm:min-h-[70vh]",children:[e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:79",className:"absolute inset-0 pointer-events-none",children:[e.jsx("div",{"data-loc":"client/src/pages/News.tsx:80",className:"absolute top-0 left-0 w-[600px] h-[600px] bg-boxing-red/8 rounded-full blur-[200px]"}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:81",className:"absolute bottom-0 right-0 w-[400px] h-[400px] bg-boxing-gold/5 rounded-full blur-[150px]"}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:82",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/News.tsx:86",className:"relative z-10 w-full h-full grid grid-cols-1 lg:grid-cols-[1fr_380px] xl:grid-cols-[1fr_420px]",children:[t?e.jsx(N,{"data-loc":"client/src/pages/News.tsx:89",href:`/news/${t.slug}`,className:"block",children:e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:90",className:"group relative h-full min-h-[50vh] lg:min-h-[60vh] sm:min-h-[70vh] overflow-hidden cursor-pointer",children:[e.jsx(C,{"data-loc":"client/src/pages/News.tsx:91",imageUrl:t.imageUrl,title:t.title,category:t.category,source:t.source,variant:"hero",className:"absolute inset-0 transition-transform duration-[1200ms] group-hover:scale-105"}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:92",className:"absolute inset-0 bg-gradient-to-t from-black via-black/40 to-transparent"}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:93",className:"absolute inset-0 bg-gradient-to-r from-black/30 to-transparent"}),e.jsx(E,{"data-loc":"client/src/pages/News.tsx:94",category:t.category,variant:"ribbon"}),e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:97",className:"absolute bottom-0 left-0 right-0 p-6 md:p-10 lg:p-12",children:[e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:98",className:"flex items-center gap-3 mb-4",children:[e.jsxs(c,{"data-loc":"client/src/pages/News.tsx:99",className:"bg-boxing-red text-white font-heading uppercase text-[11px] tracking-wider border-none px-3 py-1 shadow-lg shadow-boxing-red/30",children:[e.jsx(G,{"data-loc":"client/src/pages/Ne
1ws.tsx:100",className:"h-3.5 w-3.5 mr-1.5"})," LEAD STORY"]}),e.jsx(c,{"data-loc":"client/src/pages/News.tsx:102",variant:"outline",className:"border-white/20 text-white/70 text-[10px] uppercase tracking-wider backdrop-blur-sm",children:t.category}),t.isAiGenerated&&e.jsxs(c,{"data-loc":"client/src/pages/News.tsx:106",className:"bg-boxing-gold/90 text-black text-[10px] border-none",children:[e.jsx(w,{"data-loc":"client/src/pages/News.tsx:107",className:"h-3 w-3 mr-1"})," AI"]})]}),e.jsx("h1",{"data-loc":"client/src/pages/News.tsx:111",className:"font-heading text-3xl md:text-4xl lg:text-5xl xl:text-6xl text-white leading-[1.1] mb-4 group-hover:text-boxing-red-light transition-colors duration-500 max-w-4xl",children:t.title}),e.jsx("p",{"data-loc":"client/src/pages/News.tsx:114",className:"text-white/50 text-base md:text-lg line-clamp-2 max-w-2xl mb-5",children:t.summary}),e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:115",className:"flex items-center gap-6",children:[e.jsxs("span",{"data-loc":"client/src/pages/News.tsx:116",className:"text-sm text-muted-foreground flex items-center gap-2",children:[e.jsx(f,{"data-loc":"client/src/pages/News.tsx:117",className:"h-4 w-4"}),L(new Date(t.publishedAt),{addSuffix:!0}),e.jsx("span",{"data-loc":"client/src/pages/News.tsx:119",className:"mx-1",children:"·"}),b(t.content)]}),t.source&&e.jsxs("span",{"data-loc":"client/src/pages/News.tsx:123",className:"text-sm text-muted-foreground/60",children:["via ",t.source]}),e.jsxs("span",{"data-loc":"client/src/pages/News.tsx:125",className:"text-sm text-boxing-red-light flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:["Read Full Story ",e.jsx(u,{"data-loc":"client/src/pages/News.tsx:126",className:"h-4 w-4"})]})]})]})]})}):r?e.jsx("div",{"data-loc":"client/src/pages/News.tsx:133",className:"min-h-[60vh] sm:min-h-[70vh] bg-card/30 animate-pulse"}):null,e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:137",className:"hidden lg:flex flex-col border-l border-border bg-background/90 backdrop-blur-sm",children:[e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:138",className:"px-5 py-4 border-b border-border flex items-center gap-2",children:[e.jsx(U,{"data-loc":"client/src/pages/News.tsx:139",className:"h-4 w-4 text-boxing-red"}),e.jsx("span",{"data-loc":"client/src/pages/News.tsx:140",className:"font-heading text-sm uppercase tracking-wider text-white/70",children:"Trending Now"})]}),e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:142",className:"flex-1 flex flex-col divide-y divide-white/5",children:[r?[1,2,3].map(s=>e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:145",className:"p-5 space-y-3 animate-pulse",children:[e.jsx("div",{"data-loc":"client/src/pages/News.tsx:146",className:"h-3 bg-card/60 rounded w-16"}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:147",className:"h-5 bg-card/60 rounded w-full"}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:148",className:"h-4 bg-card/60 rounded w-2/3"})]},s)):k.map((s,n)=>e.jsx(N,{"data-loc":"client/src/pages/News.tsx:152",href:`/news/${s.slug}`,className:"block",children:e.jsx("div",{"data-loc":"client/src/pages/News.tsx:153",className:"group p-5 cursor-pointer transition-all duration-300 hover:bg-card/40",children:e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:154",className:"flex items-start gap-4",children:[e.jsx("span",{"data-loc":"client/src/pages/News.tsx:155",className:"font-heading text-3xl text-boxing-red/30 leading-none mt-0.5",children:String(n+1).padStart(2,"0")}),e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:158",className:"flex-1 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:159",className:"flex items-center gap-2 mb-2",children:[e.jsx(c,{"data-loc":"client/src/pages/News.tsx:160",variant:"outline",className:"text-[9px] border-boxing-red/20 bg-boxing-red/5 text-boxing-red-light uppercase tracking-wider",children:s.category}),s.isAiGenerated&&e.jsx(w,{"data-loc":"client/src/pages/News.tsx:164",className:"h-3 w-3 text-boxing-gold/60"})]}
1),e.jsx("h3",{"data-loc":"client/src/pages/News.tsx:167",className:"font-heading text-sm leading-tight text-foreground/80 group-hover:text-boxing-red-light transition-colors line-clamp-3 mb-2",children:s.title}),e.jsxs("span",{"data-loc":"client/src/pages/News.tsx:170",className:"text-[11px] text-muted-foreground/60 flex items-center gap-1",children:[e.jsx(f,{"data-loc":"client/src/pages/News.tsx:171",className:"h-3 w-3"}),L(new Date(s.publishedAt),{addSuffix:!0}),e.jsx("span",{"data-loc":"client/src/pages/News.tsx:173",className:"mx-0.5",children:"·"}),b(s.content)]})]})]})})},s.id)),!r&&k.length===0&&e.jsx("div",{"data-loc":"client/src/pages/News.tsx:182",className:"flex-1 flex items-center justify-center p-8 text-center",children:e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:183",children:[e.jsx(B,{"data-loc":"client/src/pages/News.tsx:184",className:"h-8 w-8 text-boxing-red/20 mx-auto mb-2"}),e.jsx("p",{"data-loc":"client/src/pages/News.tsx:185",className:"text-xs text-muted-foreground/60",children:"More stories coming soon"})]})})]})]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:195",className:"w-full bg-background/80 backdrop-blur-md border-b border-border sticky top-16 z-30",children:e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:196",className:"w-full px-4 md:px-8 lg:px-12 py-3 flex items-center gap-3 overflow-x-auto scrollbar-hide",children:[e.jsx(z,{"data-loc":"client/src/pages/News.tsx:197",className:"h-4 w-4 text-muted-foreground shrink-0"}),P.map(s=>e.jsx(S,{"data-loc":"client/src/pages/News.tsx:199",variant:l===s?"default":"outline",size:"sm",className:`shrink-0 font-heading uppercase tracking-wider text-xs transition-all ${l===s?"bg-boxing-red hover:bg-boxing-red-light text-white shadow-lg shadow-boxing-red/20":"border-border bg-card/40 text-muted-foreground hover:text-foreground hover:border-boxing-red/30 hover:bg-boxing-red/5"}`,onClick:()=>I(s),children:s},s)),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:213",className:"ml-auto shrink-0 text-xs text-muted-foreground/50 font-heading",children:x>0?`${x} ARTICLES`:`${a.length} ARTICLES`})]})}),e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:220",className:"w-full px-4 md:px-8 lg:px-12 py-8",children:[r?e.jsx("div",{"data-loc":"client/src/pages/News.tsx:222",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-5",children:[1,2,3,4,5,6,7,8].map(s=>e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:224",className:"rounded-xl border border-border overflow-hidden bg-card/30",children:[e.jsx("div",{"data-loc":"client/src/pages/News.tsx:225",className:"aspect-video bg-card/40 animate-pulse"}),e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:226",className:"p-4 space-y-3",children:[e.jsx("div",{"data-loc":"client/src/pages/News.tsx:227",className:"h-3 bg-card/60 rounded w-20 animate-pulse"}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:228",className:"h-5 bg-card/60 rounded w-full animate-pulse"}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:229",className:"h-4 bg-card/60 rounded w-3/4 animate-pulse"})]})]},s))}):A.length>0?e.jsx("div",{"data-loc":"client/src/pages/News.tsx:235",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5 gap-5",children:A.map((s,n)=>e.jsx(N,{"data-loc":"client/src/pages/News.tsx:237",href:`/news/${s.slug}`,children:e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:238",className:"group h-full rounded-xl overflow-hidden border border-border bg-card/30 backdrop-blur-sm cursor-pointer transition-all duration-500 hover:border-boxing-red/30 hover:shadow-[0_0_30px_rgba(220,38,38,0.08)] hover:bg-card/50 hover:-translate-y-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:239",className:"relative aspect-video overflow-hidden",children:[e.jsx(C,{"data-loc":"client/src/pages/News.tsx:240",imageUrl:s.imageUrl,title:s.title,category:s.category,source:s.source,variant:"card",className:"transition-transform duration-700 group-hover:scale-110"}),e.jsx("div",{"data-loc":"client/src/pages/News.tsx:241",className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}
1),e.jsx(E,{"data-loc":"client/src/pages/News.tsx:242",category:s.category}),s.isAiGenerated&&e.jsxs(c,{"data-loc":"client/src/pages/News.tsx:244",className:"absolute top-2 right-2 bg-boxing-gold/90 backdrop-blur-sm text-black text-[10px] border-none",children:[e.jsx(w,{"data-loc":"client/src/pages/News.tsx:245",className:"h-3 w-3 mr-1"})," AI"]}),s.isPremium&&e.jsx(c,{"data-loc":"client/src/pages/News.tsx:249",className:"absolute top-2 left-2 bg-green-500 backdrop-blur-sm text-black text-[10px] border-none",children:"Exclusive"})]}),e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:254",className:"p-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:255",className:"flex items-center gap-2 mb-2",children:[e.jsx(c,{"data-loc":"client/src/pages/News.tsx:256",variant:"outline",className:"text-[10px] border-boxing-red/20 bg-boxing-red/5 text-boxing-red-light uppercase tracking-wider",children:s.category}),s.source&&e.jsxs("span",{"data-loc":"client/src/pages/News.tsx:260",className:"text-[10px] text-muted-foreground/50 truncate",children:["via ",s.source]})]}),e.jsx("h3",{"data-loc":"client/src/pages/News.tsx:263",className:"font-heading text-sm leading-tight line-clamp-2 group-hover:text-boxing-red transition-colors mb-2",children:s.title}),e.jsx("p",{"data-loc":"client/src/pages/News.tsx:266",className:"text-xs text-muted-foreground/60 line-clamp-2 mb-3",children:s.summary}),e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:267",className:"flex items-center justify-between",children:[e.jsxs("p",{"data-loc":"client/src/pages/News.tsx:268",className:"text-[11px] text-muted-foreground/40 flex items-center gap-1",children:[e.jsx(f,{"data-loc":"client/src/pages/News.tsx:269",className:"h-3 w-3"}),Z(new Date(s.publishedAt),"MMM d"),e.jsx("span",{"data-loc":"client/src/pages/News.tsx:271",className:"mx-1",children:"·"}),b(s.content)]}),e.jsxs("span",{"data-loc":"client/src/pages/News.tsx:274",className:"text-[11px] text-boxing-red-light flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:["Read ",e.jsx(u,{"data-loc":"client/src/pages/News.tsx:275",className:"h-3 w-3"})]})]})]})]})},s.id))}):a.length===0?e.jsxs("div",{"data-loc":"client/src/pages/News.tsx:284",className:"rounded-xl border border-border bg-card/30 backdrop-blur-sm p-16 text-center max-w-lg mx-auto",children:[e.jsx(F,{"data-loc":"client/src/pages/News.tsx:285",className:"h-14 w-14 text-boxing-red/30 mx-auto mb-4"}),e.jsx("h3",{"data-loc":"client/src/pages/News.tsx:286",className:"font-heading text-xl mb-2",children:"No Articles Yet"}),e.jsx("p",{"data-loc":"client/src/pages/News.tsx:287",className:"text-muted-foreground/60 text-sm",children:"Fresh boxing news content is being prepared. Check back soon."})]}):null,!r&&y&&e.jsx("div",{"data-loc":"client/src/pages/News.tsx:295",className:"flex justify-center pt-8 pb-4",children:e.jsx(S,{"data-loc":"client/src/pages/News.tsx:296",onClick:()=>{p(!0),j(a.length)},disabled:v,className:"bg-boxing-red hover:bg-boxing-red-light text-white font-heading uppercase tracking-wider px-10 py-3 text-sm shadow-lg shadow-boxing-red/20 transition-all duration-300 hover:shadow-boxing-red/40 hover:scale-105 disabled:opacity-50 disabled:scale-100",children:v?e.jsxs("span",{"data-loc":"client/src/pages/News.tsx:305",className:"flex items-center gap-2",children:[e.jsx("span",{"data-loc":"client/src/pages/News.tsx:306",className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Loading..."]}):e.jsxs("span",{"data-loc":"client/src/pages/News.tsx:310",className:"flex items-center gap-2",children:["Load More Articles",e.jsx(u,{"data-loc":"client/src/pages/News.tsx:312",className:"h-4 w-4"})]})})}),!r&&!y&&a.length>R&&e.jsxs("p",{"data-loc":"client/src/pages/News.tsx:319",className:"text-center text-xs text-muted-foreground/40 font-heading pt-6 pb-2 tracking-wider",children:["ALL ",x," ARTICLES LOADED"]})]})]})}export{ue 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.