PageSourceSearch

https://www.tottenhamhotspur.com/resources/ver/v2.0.107/scripts/mc-detail-root.js

js tottenhamhotspur.com collected 2026-10-02 02:18:56 UTC 2,474 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"tottenham-hotspur v2.0.107"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e5e0e23e-7c4e-400a-b4d8-25153cc99f0d",e._sentryDebugIdIdentifier="sentry-dbid-e5e0e23e-7c4e-400a-b4d8-25153cc99f0d");}catch(e){}}();import{P as a,v as t,ak as e,x as i,w as l,aK as c,n as o,bc as s,r as m,E as n}from"./bundle-es.js";import{u as r}from"./use-match-centre.js";import{b as d}from"./match-helpers.js";function f(a){const{label:e,info:i}=a;return t("div",{className:"w-mc-detail__row","data-testid":"mcDetailRow"},t("div",{className:"w-mc-detail__label"},e),t("div",{className:"w-mc-detail__info"},i))}function p({matchData:a}){const l=e(a?.kickoff,"HH:mm",a?.kickoffTimezoneString),c=e(a?.kickoff,"ddd DD MMM YYYY",a?.kickoffTimezoneString),o=a?.attendance,s=d({tbc:a?.tbc});return t("div",{className:"w-mc-detail__box","data-testid":"mcDetail"},t("h3",{className:"w-mc-detail__title"},i.lookup("label.matchDetail.matchDetail")),t("div",{className:"w-mc-detail__container"},t(f,{label:i.lookup("label.matchDetail.kickoff"),info:s.showTimeTbc||s.showDateTbc?i.lookup("label.matchList.tbc"):`${c}, ${l}`}),t(f,{label:i.lookup("label.matchDetail.stadium"),info:a?.ground}),o&&t(f,{label:i.lookup("label.matchDetail.attendance"),info:o.toLocaleString("en")}),t(f,{label:i.lookup("label.matchDetail.competition"),info:a?.competition})))}function b({officialsData:a,matchData:e}){return t(l,null,!!a.length&&e.period!==c.PRE_MATCH&&t("div",{className:"w-mc-detail__box","data-testid":"mcDetailOfficialsBox"},t("h3",{className:"w-mc-detail__title"},i.lookup("label.matchDetail.officials")),t("div",{className:"w-mc-detail__container"},a?.map((a,e)=>{const i=a.type.includes("#")?a.type.replace("#"," "):a.type;return t(f,{key:`${a}__${e}`,label:i,info:a.official.name})}))))}function u({matchId:a}){const[e,i]=o(null),l=a,{match:c}=r(a),{data:d,status:f,error:u}=s({params:"",id:l});return m(()=>{u||f===n.API.ERROR||!d?i(null):i(d)},[d,u,f,i]),t("div",{className:"w-mc-detail__inner"},c&&t(p,{matchData:c}),e&&c&&t(b,{officialsData:e,matchData:c,period:c}))}f.propTypes={label:a.string,info:a.string},p.propTypes={matchData:a.object,matchId:a.string},b.propTypes={officialsData:a.array,matchData:a.object},u.propTypes={matchId:a.string};export{u 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.