1(function(){var COOKIE_NAME="cnx_promo_id";function getPromoIdFromUrl(){try{return new URLSearchParams(window.location.search).get("p")}catch(e){return null}}function setCookie(name,value){document.cookie=name+"="+encodeURIComponent(value)+"; path=/; SameSite=Lax"}function getCookie(name){var match=document.cookie.match(new RegExp("(?:^|; )"+name+"=([^;]*)"));return match?decodeURIComponent(match[1]):null}function updateCartAttribute(value){fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:{_promotion_id:value}})}).catch(function(){})}function updateAllLineItems(value){fetch("/cart.js").then(function(r){return r.json()}).then(function(cart){!cart.items||!cart.items.length||cart.items.forEach(function(item,index){var props={};item.properties&&Object.keys(item.properties).forEach(function(k){props[k]=item.properties[k]}),props._promotion_id=value,fetch("/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({line:index+1,properties:props})}).catch(function(){})})}).catch(function(){})}var promoId=getPromoIdFromUrl();promoId&&(setCookie(COOKIE_NAME,promoId),updateCartAttribute(promoId),updateAllLineItems(promoId)),window.CnxPromo={get:function(){return getCookie(COOKIE_NAME)}}})(); 2//# sourceMappingURL=/cdn/shop/t/3/assets/promotion-tracking.js.map?v=113910789174889391791782378677
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.