PageSourceSearch

https://www.lidl.hr/c/js/hashed/APTrackingServiceForPromotionView.d314a2b7d85ed9227c7e657dd3b663cc.js

js lidl.hr collected 2026-10-02 11:13:36 UTC 2,214 bytes, 1 lines download raw bytes

1!function(){const e="data-unified-impression",t=".ux-base-slider, .ux-base-carousel, .ods-carousel__track",r=[document.querySelector(".APageRoot"),document.querySelector(".ATheContentPage__Wrapper"),document.querySelector(".cms-fragment-root")].filter(Boolean);if(!r.length)return;const o='.APageRoot__Section:not([data-selector="HERO_STAGE"]):not([data-selector="NEW_HERO_STAGE"]):not(.AMoreHeroStageItems):not([data-selector="AUTOMATIC_RECOMMENDATION"]),\n  [data-unified-impression-sink],\n  .ATheContentPage__Section,\n  .cms-fragment',n=r.flatMap(e=>Array.from(e.querySelectorAll(o))),i=[],s=window.location.origin;function c(r){if(!r)return[];let n=[];return(r=function(e){const r=[];return e.filter(e=>{if(e.closest(`${t}`))return!0;return!r.includes(e.id)&&(r.push(e.id),!0)})}(r)).forEach(r=>{if(r)if(r.getAttribute(e))n.push(r);else if(r.closest(`${t}`))n.push(...r.querySelectorAll(`[${e}]`));else if("SLIDER"!==r.getAttribute("data-selector")){r.querySelectorAll(`[${e}]`).forEach(e=>{e.closest(o)!==r||e.closest(`${t}`)||n.push(e)})}}),n=n.map(t=>t.getAttribute(e)||"").filter(e=>e),n=function(e){const t=[];return e.forEach(e=>{t.includes(e)||t.push(e)}),t}(n),n=n.map(e=>JSON.parse(decodeURIComponent(e.toString()))),n.forEach(e=>function(e){for(const t in e)null===e[t]||void 0===e[t]?delete e[t]:"linkURL"===t&&(e[t]=e[t].replace("{TRACKING_HOST_ORIGIN}",s));return e}(e)),n.filter(e=>Object.keys(e).length>0)}function l(e){const t=c(e);t.length>0&&window.dataLayerService.push({scenarioName:"General_Promotion_View",collections:{promotions:{list:t}}})}!function(){const e=document.querySelectorAll(o),t=(r=e,Array.prototype.slice.call(r));var r;if(t.length){const e=c(.2),r=c(.5);t.forEach(t=>{"ISC"===t.dataset.selector?r.observe(t):e.observe(t)})}function s(t){t.forEach(e=>{!function(e){e.target.isVisible=e.isIntersecting}(e)});const r=Array.from(e).filter(e=>e.isVisible).map(e=>e.id?e.id:"0"),o=[];r.forEach(e=>{i.includes(e)||(o.push(e),i.push(e))});const s=n.filter(e=>o.includes(e.id||e.parentElement.id));s&&s.length>0&&l(s)}function c(e){return new IntersectionObserver(s,{rootMargin:"0px",threshold:[e]})}}(),document.addEventListener("slider:scroll",e=>{l(e.detail.elementsArr)})}();

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.