PageSourceSearch

https://www.timeout.com/static/js/sidebar-recirc-4c425bc352c995552c8f.js

js timeout.com collected 2026-09-24 06:43:19 UTC 3,648 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_gp_web_frontend=self.webpackChunk_gp_web_frontend||[]).push([["sidebar-recirc"],{
1"./src/ts/components/recirc/sidebar-recirc.ts":(e,t,r)=>{r.r(t),r.d(t,{SidebarRecirc:()=>u,init:()=>y});var i=r("../shared-types/frontend/core/store.ts"),s=r("../shared-types/frontend/utils/discover.ts"),c=r("./src/ts/core/client.ts"),o=r("./src/ts/utils/discover.ts"),a=r("./src/ts/utils/inview.ts"),n=r("./src/ts/utils/recirc.ts"),p=r("./src/ts/utils/request.ts");const l="to_recirc_visited_history",d=[{recircType:"popular",discoverTrackingUID:"recirc_rightrail_popular_5::",discoverFilters:[s.v.ORContentTypePost,s.v.ORContentTypePage,s.v.ORContentTypeVenue,s.v.ORContentTypeEvent,s.v.ANDCommercialFalse,s.v.ANDUpdatedAtGte2MAgo],discoverSorters:[s.R.PageViews24HDesc],size:5+(0,n.G4)(l).length},{recircType:"latestFilms",discoverTrackingUID:"recirc_rightrail_latestFilms_5::",discoverFilters:[s.v.ORContentTypePage,s.v.ORContentTypeFilm,s.v.ANDApplyStarRating],discoverSorters:[s.R.PublishedAtDesc],multiSearch:!0,size:3+(0,n.G4)(l).length,dataFilter:(e,t)=>{const r=[],i=[];e.forEach((e=>{"page"===e.type?r.push(e):i.push(e)}));const s=Math.max(2,t-i.length);return r.slice(0,s).concat(i)}},{recircType:"popularFilms",discoverTrackingUID:"recirc_rightrail_popularmovies_5::",discoverFilters:[s.v.ORContentTypeFilm],discoverSorters:[s.R.PopularityDesc],size:5+(0,n.G4)(l).length}],u=()=>{const e={buildTemplate:(e,t,r)=>{const{wrap:i,template:s}=e;if(!s||!i)return;const{discoverTrackingUID:c,recircType:a}=r;i.insertAdjacentHTML("beforeend",(0,o.Ec)({data:t,trackingUID:c,template:s.content,aspectRatio:"16-9",widgetPosition:"sidebar",widgetType:"popular"===a?"popular":"latestFilms"===a?"latest_films":"popularFilms"===a?"popular_movies":"unknown"}))},render:(t,r,s,c,o)=>{const{meta:p,body:d}=null!=o?o:{};if(!p||!d)return void c.dispatch({type:i.Us.RecircSidebarStatus,payload:i.LZ.NO_DATA});if(!d.length||d.length<2)return;const{hostUid:u,pageType:y}=r;(0,n.TG)(l,`Content-${y}-${u}`);const h=(0,n.mO)(5,(0,n.G4)(l),d,s.dataFilter);e.buildTemplate(t,h,s),t.rootElement.classList.remove("hide"),c.dispatch({type:i.Us.RecircSidebarStatus,payload:i.LZ.LOADED});const g="popular"===s.recircType?"popular":"latestFilms"===s.recircType?"latest_films":"popularFilms"===s.recircType?"popular_movies":"unknown";return(0,a.W0)(t.rootElement).then((()=>{c.dispatch({type:i.Us.DataLayerPush,payload:{event:"recirc_impression",recirc_widget_position:"sidebar",recirc_widget_type:g,recirc_total_tiles:h.length,recirc_provider:"native"}})})),{}},getData:async(t,r,i,s)=>{var c;try{const{hostUid:a,pageType:n}=r,l=`Content-${n}-${a}`,d=await(0,p.A_)((0,o.fg)({uid:l,size:i.size,filters:i.discoverFilters,sorters:i.discoverSorters,multiSearch:null!==(c=i.multiSearch)&&void 0!==c&&c}));return e.render(t,r,i,s,d),d}catch(e){console.error(e)}},bindEvents:(t,r)=>{if(!1===window._TO.shouldLoadRecirc)return{};const i=(e=>{const{pageType:t,hostUid:r,recircType:i}=e.dataset;return{hostUid:r,recircType:i,type:null!=t?t:"",pageType:(null!=t?t:"").replace("listfeature","page").replace("package","page").replace("hub","page").replace(/^\w/,(e=>e.toUpperCase()))}})(t);if("post"===i.type&&"xs"===(0,c.iu)())return{};const s=d.find((e=>e.recircType===i.recircType));if(!s)return{};const o=(e=>({rootElement:e,template:e.querySelector("template"),content:e.querySelector(".js_recirc_content"),wrap:e.querySelector(".js_recirc_list_items"),heading:e.querySelector(".js_heading")}))(t);return e.getData(o,i,s,r),{}}};return e},y=(e,t)=>{const r=Math.floor(1e4*Math.random());return{listeners:u().bindEvents(e,t),componentId:`sidebar-recirc-${r}`}}}
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.