PageSourceSearch

https://www.tottenhamhotspur.com/resources/ver/v2.0.107/scripts/embeddable-gallery-block.js

js tottenhamhotspur.com collected 2026-10-02 02:18:16 UTC 1,805 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]="f8839f5d-fb1c-47e2-95a4-840a0e652455",e._sentryDebugIdIdentifier="sentry-dbid-f8839f5d-fb1c-47e2-95a4-840a0e652455");}catch(e){}}();import{P as e,R as t,v as i,n,F as r,M as a,N as s}from"./bundle-es.js";import{G as o}from"./gallery-modal.js";const l=({mediaPlaylist:e=[],parentContainer:t})=>{const[l,d]=n(!1),[c,y]=n(0),[p,m]=n("grid"),g=r((e=0,t="grid")=>{y(e),m(t),d(!0)},[]),u=r(()=>{d(!1)},[]),f=r(e=>{if(!e)return;const i=t||e,n=i.querySelectorAll("[data-gallery-item-index]");for(const e of n){const t=Number.parseInt(e.dataset.galleryItemIndex,10),i=()=>g(t,"slider");e.addEventListener("click",i),e.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i())})}const r=i.querySelector("[data-gallery-view-all]");r&&r.addEventListener("click",e=>{e.stopPropagation(),g(0,"grid")})},[g,t]);return i("div",{ref:f},l&&i(a,{type:s.MODAL,onClose:u,sheetActive:l},i(o,{mediaItems:e,onClose:u,initialIndex:c,initialView:p})))};l.propTypes={mediaPlaylist:e.arrayOf(e.shape({id:e.oneOfType([e.string,e.number]),onDemandUrl:e.string,url:e.string,type:e.oneOf(["photo","video"]),title:e.string,subtitle:e.string,description:e.string})).isRequired,parentContainer:e.object};class d{constructor(e){this.container=e;const n=this.container.dataset.mediaPlaylist;let r=[];if(n)try{r=JSON.parse(n)}catch(e){r=[]}t(i(l,{mediaPlaylist:r,parentContainer:this.container.closest(".w-embeddable-gallery-block")}),this.container)}destroy(){t(null,this.container)}}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.