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]="77b973f4-4f6d-4c8a-b964-20bc837cbbb4",e._sentryDebugIdIdentifier="sentry-dbid-77b973f4-4f6d-4c8a-b964-20bc837cbbb4");}catch(e){}}();import{P as e,aj as a,ak as o,v as t,al as s,am as n,x as r,af as i,a3 as l,ac as m,C as c,m as d,R as p,Q as u,V as h}from"./bundle-es.js";import{C as H}from"./club-badge.js";import{i as _}from"./match-helpers.js";function f(e){const{matchId:l,oneHotspurPlus:m,oneHotspur:c,oneHotspurPlusUrl:d,oneHotspurUrl:p,onLoaded:u,fanProfile:h}=e,f={id:l},{data:P}=a(f,{skip:!l});if(!P?.homeTeam||!P?.awayTeam)return null;const{membership:g}=h,T=g||"",N=_(P.homeTeam.id),b=N?P.awayTeam.name:P.homeTeam.name;let U,S,I;T===i.ONE_HOTSPUR||T===i.JUNIOR||T===i.SENIOR?(U=c,S=p):T!==i.ONE_HOTSPUR_PLUS&&T!==i.JUNIOR_PLUS&&T!==i.SENIOR_PLUS||(U=m,S=d),U&&(I=o(U,"HH:mm, DD MMM","Europe/London"));let k=!1;if(U){new Date(U)<new Date&&(k=!0)}return u(),t("div",{className:"o-promo-pod__inner "+(k?"on-sale":"")},t("header",{className:"o-promo-pod__header"},t("div",{className:"w-fp-ticketing__badge js-club-badge"},t(H,{teamId:N?P.awayTeam.id:P.homeTeam.id,teamName:N?P.awayTeam.name:P.homeTeam.name,size:n.XLARGE,pngSize:s.SEVENTY}))),t("div",{className:"o-promo-pod__content"},t("div",{className:"o-promo-pod__content-inner"},t("h3",{className:"o-promo-pod__heading"},b),t("div",{className:"o-promo-pod__content-meta o-content-meta"},k?t("span",{className:"o-content-meta__highlight"},r.lookup("label.onSale")):t("span",null,r.lookup("label.onSale")," -"," ",U?I:r.lookup("label.matchList.tbc")))),k&&S&&t("a",{href:S,"data-testid":"matchCardTicketsButton",className:"o-cta o-cta--tertiary o-cta--small",target:"_blank",rel:"noopener noreferrer"},t("span",null,r.lookup("label.buyTickets")))))}f.propTypes={matchId:e.number.isRequired,oneHotspurPlus:e.string,oneHotspur:e.string,oneHotspurPlusUrl:e.string,oneHotspurUrl:e.string,onLoaded:e.func,fanProfile:e.object};class P{constructor(e){this.container=e,this.matchItem=this.container.querySelectorAll(".js-match-item");const a=l();if(!a||a?.seasonHolder||a?.premium)return this.container.classList.add(m.U_HIDE),null;this.addTickingRail(a)}initializeSlider(){const e=c.getConfig(this.container);e.itemsPerPage=[{minWidth:1024,itemsPerPage:3,itemsToScroll:1}],new d(e)}addTickingRail(e){const a=this.matchItem.length;let o=0;const s=()=>{o++,o===a&&this.initializeSlider()};this.matchItem.forEach(a=>{a.innerHTML="";const o=Number(a.dataset.matchId),n=a.dataset.oneHotspurPlus,r=a.dataset.oneHotspur,i=a.dataset.oneHotspurPlusUrl,l=a.dataset.oneHotspurUrl;p(t(h,{store:u.store()},t(f,{matchId:o,oneHotspurPlus:n,oneHotspur:r,oneHotspurPlusUrl:i,oneHotspurUrl:l,fanProfile:e,onLoaded:s})),a)})}}export{P 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.