PageSourceSearch

https://shrewsburytown.com/assets/index-CdyYz8ky.js

js shrewsburytown.com collected 2026-09-24 23:52:28 UTC 3,203 bytes, 1 lines download raw bytes

1import{kK as r,N as d,j as e,kp as m,kL as o,r as i}from"./index-Cz_StzOF.js";import{u as x}from"./useSuspenseQuery-C53WRaHC.js";import{f as l,a as p}from"./formatters-qSkgBxja.js";function h({season:t}){const{data:s}=x(r(t)),c=d({from:"/admin/commercial/fixtures/"});return e.jsxs("div",{className:"space-y-6 px-4 py-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("label",{className:"font-medium text-sm",htmlFor:"season-select",children:"Season"}),e.jsx("select",{className:"rounded-md border bg-card px-3 py-1.5 text-sm",id:"season-select",onChange:a=>{c({search:{season:a.target.value}})},value:s.season,children:m.map(a=>e.jsx("option",{value:a,children:a},a))})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-4",children:[e.jsx(n,{label:"Total match sponsor revenue",value:l(s.totalMatchSponsorPence)}),e.jsx(n,{label:"Total match ball revenue",value:l(s.totalMatchBallPence)}),e.jsx(n,{label:"Total captain's armband revenue",value:l(s.totalCaptainsArmbandPence)}),e.jsx(n,{label:"Booked",value:s.bookedPct===null?"-":`${s.bookedPct}%`})]}),e.jsx("section",{className:"rounded-md border bg-card",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-muted/40 text-left",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-3 py-2",children:"Date"}),e.jsx("th",{className:"px-3 py-2",children:"Fixture"}),e.jsx("th",{className:"px-3 py-2",children:"Match Sponsor"}),e.jsx("th",{className:"px-3 py-2",children:"Match Ball Sponsor"}),e.jsx("th",{className:"px-3 py-2",children:"Captain's Armband"})]})}),e.jsx("tbody",{children:s.rows.length===0?e.jsx("tr",{children:e.jsxs("td",{className:"px-3 py-6 text-center text-muted-foreground",colSpan:5,children:["No home fixtures for ",s.season,"."]})}):s.rows.map(a=>e.jsxs("tr",{className:"border-t",children:[e.jsx("td",{className:"px-3 py-1.5 tabular-nums",children:p(a.dateMs)}),e.jsx("td",{className:"px-3 py-1.5",children:a.label}),e.jsx("td",{className:"px-3 py-1.5",children:a.matchSponsorName===null?e.jsx("span",{className:"text-muted-foreground",children:"Available"}):`${a.matchSponsorName} - ${l(a.matchSponsorPence)}`}),e.jsx("td",{className:"px-3 py-1.5",children:a.matchBallName===null?e.jsx("span",{className:"text-muted-foreground",children:"Available"}):`${a.matchBallName} - ${l(a.matchBallPence)}`}),e.jsx("td",{className:"px-3 py-1.5",children:a.captainsArmbandName===null?e.jsx("span",{className:"text-muted-foreground",children:"Available"}):`${a.captainsArmbandName} - ${l(a.captainsArmbandPence)}`})]},a.fixtureId))})]})})]})}function n({label:t,value:s}){return e.jsxs("div",{className:"rounded-md border bg-card p-4",children:[e.jsx("div",{className:"text-muted-foreground text-xs uppercase tracking-wide",children:t}),e.jsx("div",{className:"mt-1 font-bold text-2xl tabular-nums",children:s})]})}function b(){const t=o.useSearch();return e.jsxs("div",{className:"px-4 py-6",children:[e.jsx("h1",{className:"mb-4 font-semibold text-2xl",children:"Fixtures"}),e.jsx(i.Suspense,{fallback:e.jsx("p",{className:"text-muted-foreground",children:"Loading…"}),children:e.jsx(h,{season:t.season})})]})}export{b as component};

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.