1(function(){"use strict";var surface=document.currentScript&&document.currentScript.dataset.surface||"other",ITEM_SELECTORS=["[data-analytics-item]",".product-item",".grid__cell",".quad-block","li"];function push(payload){window.dataLayer=window.dataLayer||[],window.dataLayer.push(payload)}function componentOf(el){return el.closest("[data-analytics-component]")}function positionOf(target,component){for(var s=0;s<ITEM_SELECTORS.length;s++){var item=target.closest(ITEM_SELECTORS[s]);if(!(!item||!component.contains(item))){for(var siblings=component.querySelectorAll(ITEM_SELECTORS[s]),i=0;i<siblings.length;i++)if(siblings[i]===item)return i+1}}}function targetOf(el,component){var explicit=el.closest("[data-analytics-target]");if(explicit&&component.contains(explicit))return explicit.dataset.analyticsTarget;var link=el.closest("a[href]");if(link&&component.contains(link))try{var url=new URL(link.href,location.origin);return url.host===location.host?url.pathname:url.host+url.pathname}catch(e){}var button=el.closest('button, [type="submit"]');if(button&&component.contains(button))return(button.textContent||"").trim().slice(0,40)||"button"}document.addEventListener("click",function(event){if(event.target instanceof Element){var label=event.target.closest("label");if(!(label&&label.control&&!label.control.contains(event.target))){var component=componentOf(event.target);if(component){var actionEl=event.target.closest("[data-analytics-action]");push({event:"ui_click",surface:surface,component:component.dataset.analyticsComponent,action:actionEl&&component.contains(actionEl)?actionEl.dataset.analyticsAction:"click",target:targetOf(event.target,component)||null,position:positionOf(event.target,component)||null})}}}},{capture:!0,passive:!0});var observer=null,observed=new WeakSet,seen=new WeakSet;function onIntersect(entries){entries.forEach(function(entry){if(!seen.has(entry.target)){var tallEnough=entry.intersectionRect.height>=window.innerHeight*.5;(entry.intersectionRatio>=.3||entry.intersectionRatio>0&&tallEnough)&&(seen.add(entry.target),observer.unobserve(entry.target),push({event:"component_view",surface:surface,component:entry.target.dataset.analyticsComponent,target:entry.target.dataset.analyticsTarget||null}))}})}function observeNew(){if("IntersectionObserver"in window){var tracked=document.querySelectorAll("[data-analytics-component]");tracked.length&&(observer||(observer=new IntersectionObserver(onIntersect,{threshold:[0,.01,.02,.05,.1,.2,.3]})),tracked.forEach(function(el){observed.has(el)||(observed.add(el),observer.observe(el))}))}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",observeNew):observeNew(),document.addEventListener("theme:loading:end",observeNew)})(); 2//# sourceMappingURL=/cdn/shop/t/139/assets/extra_js_analytics.js.map?v=48405176189525130411790285712
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.