PageSourceSearch

https://www.timeout.com/static/js/navigation-bar-82f4c3aebf49e8b350a9.js

js timeout.com collected 2026-09-24 06:43:04 UTC 1,867 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_gp_web_frontend=self.webpackChunk_gp_web_frontend||[]).push([["navigation-bar"],{
1"./src/ts/components/navigation-bar/navigation-bar.ts":(t,e,n)=>{n.r(e),n.d(e,{init:()=>l,manageButtonsDisplay:()=>a});const r=JSON.parse('{"DZ":"_navContainer_1igce_5","li":"_li_1igce_24","Hc":"_navItem_1igce_29","yY":"_navButtonActive_1igce_72","_N":"_navButtonWrapLeft_1igce_77","oL":"_navButtonWrapRight_1igce_82","e7":"_navButton_1igce_61","kr":"_separator_1igce_173"}');var s=n("../shared-types/frontend/core/store.ts"),o=n("./src/ts/utils/dom.ts"),i=n("../utils/dist/bounce/bounce.js");const a=t=>{const e=t.querySelector(`.${r.DZ}`),n=e.scrollLeft,s=e.clientWidth,o=e.scrollWidth,i=t.querySelector(`.${r._N}`),a=t.querySelector(`.${r.oL}`);n+s+10>=o?a.classList.remove(r.yY):a.classList.add(r.yY),0===n?i.classList.remove(r.yY):i.classList.add(r.yY)},c=(t,e)=>{const n=()=>{a(t)},c=(0,i.r)(n,500);return c(),window.addEventListener("resize",c),t.addEventListener("click",(n=>{((t,e)=>{const n=t.target;if(!n.matches(`.${r.Hc}`))return;const i=n.textContent.trim(),a=(0,o.oj)(n.parentNode,`.${r.li}:not(.${r.kr})`).length+1;e.dispatch({type:s.Us.NavigationTracking,payload:{events:["event225"],pev2:"Click on Primary Nav header",prop13:`${i}::${a}::no`}})})(n,e),((t,e)=>{const n=t.target.matches("button")?t.target:t.target.closest("button");if(!n||!n.matches(`.${r.e7}`))return;const s=e.querySelector(`.${r.DZ}`),o=.7*s.clientWidth,i=n.closest(`.${r._N}`)?-o:o;s.scrollBy({left:i,top:0,behavior:"smooth"})})(n,t)})),t.querySelector(`.${r.DZ}`).addEventListener("scroll",n),{resizeListener:c,scrollListener:n}},l=(t,e)=>{const n=Math.floor(1e4*Math.random());return{listeners:c(t,e),componentId:`navigation-${n}`}}},
1"../utils/dist/bounce/bounce.js":(t,e)=>{e.r=void 0,e.r=(t,e)=>{let n=null;return()=>{n&&clearTimeout(n),n=setTimeout(t,e)}}}
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.