PageSourceSearch

https://www.timeout.com/static/js/lazy-youtube-750c15bd834d2e67ebf8.js

js timeout.com collected 2026-09-24 06:43:42 UTC 2,087 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_gp_web_frontend=self.webpackChunk_gp_web_frontend||[]).push([["lazy-youtube"],{
1"./src/ts/components/lazy-youtube/lazy-youtube.ts":(e,t,o)=>{o.r(t),o.d(t,{exposeLazyYoutube:()=>c,getYoutubeIframe:()=>u,init:()=>d});var n=o("./src/ts/utils/scripts.ts"),i=o("./src/ts/services/cmp.ts");const a=e=>{const t={clickListener:async e=>{const{targetingAllowed:t}=await(0,i.cY)();if(t){if(l(window))return r(e);(0,n.ve)("https://www.youtube.com/iframe_api"),window.onYouTubeIframeAPIReady=()=>r(e)}else s(e)},bindEvents:()=>{if(!l(window))return e.addEventListener("click",t.clickListener),{clickListener:t.clickListener}}};return t},d=e=>{const t=Math.floor(1e4*Math.random());return{listeners:a(e).bindEvents(),componentId:`lazy-youtube-${t}`}},l=e=>{var t;return null===(t=null==e?void 0:e.YT)||void 0===t?void 0:t.Player},r=({target:e})=>{const t=e.closest('[data-component="lazy-youtube"]'),o=t.dataset.src;for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(u(window.YT.Player,o))},s=({target:e})=>{const t=e.closest('[data-component="lazy-youtube"]').dataset.src;window.open(t,"_blank")},u=(e,t)=>{const o="ytIframe_"+1e11*Math.random();new e(o,{events:{onReady:e=>e.target.playVideo()}});const n=document.createElement("template");return n.innerHTML=`<iframe id="${o}" src="${t}" allowfullscreen frameborder="0"></iframe>`,n.content},c=()=>{var e,t,o,n,i,a,l,r,s,u,c,v;const w=null===(o=null===(t=null===(e=window.digitalData)||void 0===e?void 0:e.page)||void 0===t?void 0:t.category)||void 0===o?void 0:o.pageType,p=null===(a=null===(i=null===(n=window.digitalData)||void 0===n?void 0:n.page)||void 0===i?void 0:i.pageInfo)||void 0===a?void 0:a.language,g=null===(s=null===(r=null===(l=window.digitalData)||void 0===l?void 0:l.page)||void 0===r?void 0:r.pageInfo)||void 0===s?void 0:s.siteId,y=null===(v=null===(c=null===(u=window.digitalData)||void 0===u?void 0:u.page)||void 0===c?void 0:c.pageInfo)||void 0===v?void 0:v.pageID;"listfeature"===w&&"en"===p&&"uk-london"===g&&"40457"===y&&(window._TO=window._TO||{},window._TO.lazyYoutube=d)}}
1}]);

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.