if(typeof(NeoryContainer) === 'undefined') { var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i { var resultReadyAndRegisterResultFunc = function(result) { clearInterval(intervalHandle); clearTimeout(timeoutHandle); gotResult = true; NeoryTag.registerResult(result); resolve(true); }; timeoutHandle = setTimeout(function(){ resultReadyAndRegisterResultFunc("") },timeout); intervalHandle = setInterval(function() {callbackFunc(resultReadyAndRegisterResultFunc)}, interval); }); this.addPromise(promise); } } }; this.ownNamespace = function(ownNamespace) { if(ownNamespace === undefined) return _ownNamespace; _ownNamespace = ownNamespace; }; this.dataLayerName = function(dataLayerName) { if(dataLayerName === undefined) return _dataLayerName; _dataLayerName = dataLayerName; }; this.evalBasicUrl = function(evalBasicUrl) { if(evalBasicUrl === undefined) return _evalBasicUrl; _evalBasicUrl = evalBasicUrl; }; this.macroOutputData = function(macroOutputData) { if(macroOutputData === undefined) return _macroOutputData; _macroOutputData = macroOutputdata; }; this.addMacroResult = function(key, value) { _macroOutputData[key] = value; }; this.removeMacroResult = function(key) { delete _macroOutputData[key]; }; this.getMacroResult = function(key){ return _macroOutputData[key]; }; this.random = function() { return Math.floor(Math.random() * 100000000); }; this.addScriptToPage = function(url, async) { var firstScript = document.getElementsByTagName('script')[0]; var newScript = document.createElement('script'); newScript.src = url; newScript.async = async ? true : false; firstScript.parentNode.insertBefore(newScript, firstScript); }; this.addIframeToPage = function(url) { var firstScript = document.getElementsByTagName('script')[0]; var newIframe = document.createElement('iframe'); newIframe.width = 1; newIframe.height = 1; newIframe.frameBorder = 0; newIframe.style.visibility = "hidden"; newIframe.style.display = "none"; newIframe.style.width = 1; newIframe.style.height = 1; newIframe.style.border = 0; newIframe.src = url; firstScript.parentNode.insertBefore(newIframe, firstScript); }; this.jsonify = function(value) { return JSON.parse(value); }; this.stringify = function(value) { return JSON.stringify(value); }; this.sendMacroResults = function() { if(_promises.length > 0){ Promise.allSettled(_promises).then((values) => { this.finalSendMacroResults(); }); } else { this.finalSendMacroResults(); } }; this.finalSendMacroResults = function() { var parts = []; var url = _evalBasicUrl + '&rnd=' + this.random(); for(var key in _macroOutputData) parts.push('macroData[' + encodeURIComponent(key) + ']=' + encodeURIComponent(_macroOutputData[key])); if(parts.length > 0) url += '&' + parts.join('&'); this.addScriptToPage(url,true); }; } } window.neory_1gd44c0dzs068c1wcjbq5h0jvrf2t47r = new NeoryContainer('1gd44c0dzs068c1wcjbq5h0jvrf2t47r', 'ntmData9623608101452', '//tm728.ad-srv.net/tm/a/container/eval/8a96039d00.js?sid=ns7tjh8v4j19s5emj53shdhgj9'); (function(neory) { (function(neory){ var value = ""; value = document.URL; neory.addMacroResult("urlTrafficCheck",value)})(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["transactionId"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("transactionId",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["searchTerm"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("searchTerm",value); })(neory);(function(neory){ var NeoryTag = {}; NeoryTag.registerResult = function(value) { if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("products",value); }; NeoryTag.trim = function(value) { try { return value.trim(); }catch(err){ return value; } } NeoryTag.sanitizeWhitespaces = function(value) { try { value = value.replace(/\s\s+/g, ' '); return NeoryTag.trim(value); }catch(err){ return value; } } NeoryTag.getDataLayerValue = function (name) { return window[neory.dataLayerName()][0][name]; } try { var productsAdcellString = ""; try { productsAdcellString = NeoryTag.getDataLayerValue("productsAdcell"); } catch(e) {} var products = []; if(typeof productsAdcellString != "undefined" && productsAdcellString != null){ var productsAdcell = (""+productsAdcellString).split(","); for(var i=0; i= 1){ product.id = productDetailsAdcell[0]; } if(productDetailsAdcell.length >= 2) { product.qty = productDetailsAdcell[1]; } product.price = "0.00"; products.push(product); } } NeoryTag.registerResult(products); } catch(err){ NeoryTag.registerResult(""); } })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["productsAdcell"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("productsAdcell",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["productName"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("productName",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["productId"]; if(typeof(value) == "undefined"){ value = "empty"; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("productId",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["pageType"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("pageType",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["orderValue"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("orderValue",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["orderProductCount"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("orderProductCount",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["categoryName"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("categoryName",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["categoryId"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("categoryId",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["basketValue"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("basketValue",value); })(neory);(function(neory){ var value = window[neory.dataLayerName()][0]["basketProductCount"]; if(typeof(value) == "undefined"){ value = ""; } if(typeof(value) != "string"){ value = neory.stringify(value); } neory.addMacroResult("basketProductCount",value); })(neory); })(neory_1gd44c0dzs068c1wcjbq5h0jvrf2t47r); neory_1gd44c0dzs068c1wcjbq5h0jvrf2t47r.sendMacroResults();