1"use strict";(self.webpackChunk_gp_web_frontend=self.webpackChunk_gp_web_frontend||[]).push([["zone-leaderbox"],{
1"./src/ts/components/zone-leaderbox/zone-leaderbox.ts":(e,t,n)=>{n.r(t),n.d(t,{init:()=>a,zoneLeaderboxComponent:()=>i});const o=JSON.parse('{"dj":"_zoneContainer_4tav2_5","AC":"_zoneCtaItems_4tav2_21","Cw":"_activeSlide_4tav2_95"}'),s={triggerOn:0,payload:{event:void 0,category:"GP Engagement",label:"in content",action:"link - internal"}},i=e=>{const t={index:0,touchCoordinates:{touchstartX:0},slideTimeout:void 0,slideshow:()=>{const n=e.querySelectorAll('[data-testid="tile-leaderbox_testID"]'),s=e.querySelectorAll('[data-testid="tile-cta-leaderbox_testID"]');n.forEach((e=>{e.classList.remove(o.Cw)})),s.forEach((e=>{e.classList.remove(o.Cw)})),n[t.index].classList.add(o.Cw),s[t.index].classList.add(o.Cw);const i=()=>{const e=n[t.index],a=s[t.index];t.slideTimeout=window.setTimeout((()=>{e.classList.remove(o.Cw),a.classList.remove(o.Cw);const d=t.index>=n.length-1?0:t.index+1;n[d].classList.add(o.Cw),s[d].classList.add(o.Cw),t.index=d,i()}),5e3)};i()},zoneCtaItemsOnClick:e=>{const n=e.target.matches("a")?e.target:e.target.closest("a");if(!n)return;const i=n.parentNode,a=[...i.parentNode.children].indexOf(i);i.classList.contains(o.Cw)?n.setAttribute("data-data-layer",JSON.stringify(s)):(window.clearTimeout(t.slideTimeout),t.index=a,t.slideshow(),e.preventDefault())},handleTouchStart:e=>{t.touchCoordinates.touchstartX=e.changedTouches[0].screenX},handleTouchEnd:e=>n=>{const o=n.changedTouches[0].screenX-t.touchCoordinates.touchstartX;if(!o)return;let s;o<-60?s=t.index>=e.length-1?0:t.index+1:o>60&&(s=t.index<=0?e.length-1:t.index-1),void 0!==s&&(window.clearTimeout(t.slideTimeout),t.index=s,t.slideshow())},initEvents:()=>{const n=e.querySelector(`.${o.dj}`),s=n.querySelectorAll('[data-testid="tile-leaderbox_testID"]'),i=n.querySelector(`.${o.AC}`);n.addEventListener("touchstart",t.handleTouchStart),n.addEventListener("touchend",t.handleTouchEnd(s)),i.addEventListener("click",t.zoneCtaItemsOnClick)},init:()=>(t.slideshow(),t.initEvents(),{})};return t},a=e=>{const t=Math.floor(1e4*Math.random());return{listeners:i(e).init(),componentId:`zone-leaderbox-${t}`}}}
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.