PageSourceSearch

https://www.tottenhamhotspur.com/resources/ver/v2.0.107/scripts/player-featured-image-gallery-widget.js

js tottenhamhotspur.com collected 2026-10-02 02:19:43 UTC 2,396 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]="93c5df28-b05c-4468-b174-31fe95af3d0f",e._sentryDebugIdIdentifier="sentry-dbid-93c5df28-b05c-4468-b174-31fe95af3d0f");}catch(e){}}();import{P as e,R as a,v as r,n as t,F as s,b7 as n,r as o,bn as i,Z as l,b9 as m}from"./bundle-es.js";import p from"./player-main-image.js";import c from"./player-gallery.js";import"./lazy-image-simple.js";import"./video-player.js";import"./render-svg.js";import"./share.js";import"./index2.js";import"./dom.js";import"./metadata.js";import"./countdown.js";import"./gallery-modal.js";class d{constructor(e){this.container=e,this.playerId=e.dataset.playerId,this.renderWidget()}renderWidget(){a(r(y,{playerId:this.playerId}),this.container)}}const y=({playerId:e})=>{const[a,d]=t(null),[y,g]=t([]),[f,u]=t(!1),[E,h]=t(null),j=s(async()=>{const a=n("BIO",{referenceExpression:`${l.FOOTBALL_PLAYER}:${e}`},"en"),r=await fetch(a),t=await r.json();if(t.content?.length)return t.content[0];throw new Error("No bio data found")},[e]),_=s(async()=>{const a=n("PHOTO",{referenceExpression:`${l.FOOTBALL_PLAYER}:${e}`,tagNames:m.FEATURED_PLAYER_CONTENT},"en"),r=n("VIDEO",{referenceExpression:`${l.FOOTBALL_PLAYER}:${e}`,tagNames:m.FEATURED_PLAYER_CONTENT},"en"),[t,s]=await Promise.all([fetch(a),fetch(r)]),[o,i]=await Promise.all([t.json(),s.json()]),p=[...o.content||[],...i.content||[]];return p.length?p.filter(e=>"photo"===e.type||"video"===e.type):[]},[e]),w=s(async()=>{if(e){u(!0),h(null);try{const[e,a]=await Promise.all([j(),_()]);d(e||null),g(a||[])}catch(e){console.error("Error fetching player data:",e),h(e.message)}finally{u(!1)}}},[e,j,_]);o(()=>{w()},[w]);const N=a?a.knownName||`${a.forename||""} ${a.surname||""}`.trim():"";return f?r("div",{className:"w-player-featured-image-gallery__container"},r(i,{containerClass:"w-player-featured-image-gallery__skeleton",skeletonConfig:{count:1}})):E?null:r("div",{className:"w-player-featured-image-gallery__container"},r("div",{className:"w-player-featured-image-gallery__player-card"},r(p,{bioData:a})),r(c,{mediaItems:y,playerName:N}))};y.propTypes={playerId:e.string.isRequired};export{d 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.