PageSourceSearch

https://officialeghamtownfcltd.com/assets/index-BJV3oOjw.js

js officialeghamtownfcltd.com collected 2026-10-07 22:00:43 UTC 5,549 bytes, 2 lines download raw bytes

1import{j as s}from"./vendor-react-nIFFWcjg.js";import{u as $,an as w,I as d,ao as L,h as _,c as p,ap as y,a4 as f}from"./main-DeVnfbM2.js";import{S as v,a as S,s as T,b as O,t as j,i as C,c as D,f as R,k as I,p as P,g as k,z as F,d as G,e as M}from"./SocialPosterCanvas-vqBnrd3a.js";import"./vendor-react-router-65IGR4DC.js";import"./vendor-react-query-ChuYpeSs.js";const E="streamline";function b({eyebrow:a,title:l,subtitle:e,className:c,children:o}){var g,N;const{siteName:h}=$(),{data:n,isLoading:m}=w(),r=((N=(g=n==null?void 0:n.assets)==null?void 0:g[0])==null?void 0:N.src)||(n==null?void 0:n.logo),x=(n==null?void 0:n.name)??"";return s.jsxs(v,{tenantId:E,label:[a,l,e].filter(Boolean).join(" — "),className:c,pending:m,contentKey:r,children:[s.jsxs("div",{className:"social-graphic__backdrop","aria-hidden":"true",children:[s.jsx("span",{className:"social-graphic__glow"}),s.jsx("span",{className:"social-graphic__stripes"}),s.jsxs("svg",{className:"social-graphic__pitch",viewBox:"0 0 400 400",fill:"none",children:[s.jsx("circle",{cx:"200",cy:"200",r:"150"}),s.jsx("line",{x1:"0",y1:"200",x2:"112",y2:"200"}),s.jsx("line",{x1:"288",y1:"200",x2:"400",y2:"200"})]})]}),s.jsxs("header",{className:"social-graphic__header",children:[s.jsxs("div",{className:"social-graphic__heading",children:[s.jsx("h1",{className:"social-graphic__title",children:l}),e&&s.jsx("p",{className:"social-graphic__subtitle",children:e})]}),s.jsx("span",{className:"social-graphic__kickoff",children:s.jsx(d,{className:"social-graphic__logo",src:L,alt:h,width:200,height:120,priority:!0})})]}),s.jsx("div",{className:"social-graphic__body",children:o}),s.jsxs("footer",{className:"social-graphic__footer",children:[s.jsxs("span",{className:"social-graphic__credit",children:[s.jsx("span",{className:"social-graphic__credit-label",children:"Powered by"}),s.jsx(S,{})]}),r&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"social-graphic__divider","aria-hidden":"true"}),s.jsxs("span",{className:"social-graphic__sponsor",children:[s.jsx("span",{className:"social-graphic__sponsor-label",children:"Sponsored by"}),s.jsx("span",{className:"social-graphic__sponsor-chip",children:s.jsx(d,{className:"social-graphic__sponsor-logo",src:r,alt:x,variant:_.SponsorLogoS,width:200,height:56,priority:!0})})]})]})]})]})}const i="social-fixtures__row";function u({team:a}){return s.jsx("span",{className:"social-fixtures__crest",children:s.jsx(d,{src:a.logo??f,alt:"",variant:_.SquareLogoS,width:48,height:48})})}function B({fixture:a,showDay:l}){if(y(a.status)){const{home:c,away:o}=a.score.current;return s.jsx("span",{className:`${i}-score`,children:`${c}–${o}`})}const e=D(a);return s.jsxs(s.Fragment,{children:[l&&!e&&s.jsx("span",{className:`${i}-day`,children:R(a)}),s.jsx("span",{className:`${i}-time`,children:e??I(a)})]})}function q({fixture:a,showDay:l}){const e=y(a.status);return s.jsxs("li",{className:p(i,{[`${i}--off`]:C(a),[`${i}--result`]:e}),children:[s.jsxs("span",{className:`${i}-team ${i}-team--home`,children:[s.jsx("span",{className:`${i}-name`,children:j(a.homeTeam)}),s.jsx(u,{team:a.homeTeam})]}),s.jsx("span",{className:`${i}-centre`,children:s.jsx(B,{fixture:a,showDay:l})}),s.jsxs("span",{className:`${i}-team ${i}-team--away`,children:[s.jsx(u,{team:a.awayTeam}),s.jsx("span",{className:`${i}-name`,children:j(a.awayTeam)})]})]})}function z({fixtures:a,competitionName:l,dateLabel:e,title:c}){const o=T(a);return s.jsx(b,{className:p("social-fixtures",{"social-fixtures--days":o}),eyebrow:l,title:c??O(a),subtitle:e,children:a.length>0?s.jsx("ol",{className:"social-fixtures__list",style:{"--social-rows":a.length},children:a.map(h=>s.jsx(q,{fixture:h,showDay:o},h.id))}):s.jsx("p",{className:"social-graphic__empty",children:"No fixtures scheduled"})})}const t="social-table__row";function A({record:a,zone:l}){return s.jsxs("li",{className:p(t,{[`${t}--${l}`]:l}),children:[s.jsx("span",{className:`${t}-pos`,children:a.position}),s.jsx("span",{className:`${t}-crest`,children:s.jsx(d,{src:a.team.logo??f,alt:"",variant:_.SquareLogoS,width:52,height:52})}),s.jsx("span",{className:`${t}-name`,children:j(a.team)}),s.jsx("span",{className:`${t}-stat`,children:a.total.played}),s.jsx("span",{className:`${t}-stat`,children:M(a.total.goalDifference)}),s.jsx("span",{className:`${t}-stat ${t}-stat--pts`,children:a.points})]})}function W({records:a,leagueTable:l}){return s.jsxs("div",{className:"social-table__column",children:[s.jsxs("div",{className:"social-table__head","aria-hidden":"true",children:[s.jsx("span",{className:"social-table__head-pos",children:"Pos"}),s.jsx("span",{className:"social-table__head-name",children:"Club"}),s.jsx("span",{children:"P"}),s.jsx("span",{children:"GD"}),s.jsx("span",{children:"Pts"})]}),s.jsx("ol",{className:"social-table__rows",children:a.map(e=>s.jsx(A,{record:e,zone:F(l,e.position)},e.team.id))})]})}
1function K({leagueTable:a,title:l="League Table",subtitle:e}){var m;const c=[...a.data].sort((r,x)=>r.position-x.position),o=c.length>G,h=Math.ceil(c.length/2),n=o?[c.slice(0,h),c.slice(h)]:[c];return s.jsx(b,{className:p("social-table",{"social-table--split":o}),eyebrow:(m=a.competition)==null?void 0:m.name,title:l,subtitle:e??P(k(c)),children:c.length>0?s.jsx("div",{className:"social-table__grid",style:{"--social-rows":n[0].length},children:n.map(r=>s.jsx(W,{records:r,leagueTable:a},r[0].position))}):s.jsx("p",{className:"social-graphic__empty",children:"No standings yet"})})}const J={Fixtures:z,LeagueTable:K};export{J as templates};
2//# sourceMappingURL=index-BJV3oOjw.js.map

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.