PageSourceSearch

https://www.dwr.com/on/demandware.static/Sites-dwr-Site/-/en_US/v1790241915285/internal/jscript/dwac-21.7.js

js dwr.com collected 2026-09-24 17:10:46 UTC 6,604 bytes, 1 lines download raw bytes

1(function(dw){if(typeof dw.ac=="undefined")return;function getCookieValue(acceptFunction){for(var cookiePairs=document.cookie.split(";"),i=0;i<cookiePairs.length;i++){var index=cookiePairs[i].indexOf("=");if(index!=-1){var name=trim(cookiePairs[i].substring(0,index));if(acceptFunction(name))return trim(unescape(cookiePairs[i].substring(index+1)))}}return null}function trim(value){return value.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function setCookieValue(name,value,millisToExpiry){var cookie=name+"="+escape(value)+";path=/";millisToExpiry!=-1&&(cookie+=";expires="+expires.toGMTString()),document.cookie=cookie}function urlencode(value){for(var convertByte=function(code){return code<32?"":"%"+new Number(code).toString(16).toUpperCase()},encoded="",i=0;i<value.length;i++){var c=value.charCodeAt(i);c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c==46||c==45||c==42||c==95?encoded+=value.charAt(i):c==32?encoded+="+":c<128?encoded+=convertByte(c):c>=128&&c<2048?(encoded+=convertByte(c>>6|192),encoded+=convertByte(c&63|128)):c>=2048&&c<65536?(encoded+=convertByte(c>>12|224),encoded+=convertByte(c>>6&63|128),encoded+=convertByte(c&63|128)):c>=65536&&(encoded+=convertByte(c>>18|240),encoded+=convertByte(c>>12&63|128),encoded+=convertByte(c>>6&63|128),encoded+=convertByte(c&63|128))}return encoded}function getAnalyticsCookieValue(){var acceptFunction=function(name){return name.length>5&&name.substring(0,5)==="dwac_"};return getCookieValue(acceptFunction)}var analyticsContext=function(){if(dw.ac._analytics_enabled==="false")return{enabled:!1,dwEnabled:!1};var cookieValue=getAnalyticsCookieValue();if(cookieValue==null)return{visitorID:"__ANNONYMOUS__",customer:"__ANNONYMOUS__",siteCurrency:"",sourceCode:"",enabled:"true",timeZone:dw.ac._timeZone,dwEnabled:"true",encoding:"ISO-8859-1"};var tokens=cookieValue.split("|");return{visitorID:tokens[0],repository:tokens[1],customer:tokens[2],sourceCode:tokens[3],siteCurrency:tokens[4],enabled:tokens[5]=="true",timeZone:tokens[6],dwEnabled:tokens[7]=="true",encoding:"ISO-8859-1"}}(),setDebugEnabled=function(enabled){typeof enabled=="boolean"&&setCookieValue("dwacdebug",""+enabled,-1)};function isDebugEnabled(){var acceptFunction=function(name){return name==="dwacdebug"};return getCookieValue(acceptFunction)==="true"}function Map(){var data=[];this.getEntries=function(){return data},this.put=function(key,value){for(var i=0;i<data.length;i++)if(data[i].key==key){data[i].value=value;return}data.push({key,value})},this.putAll=function(map){for(var entries=map.getEntries(),i=0;i<entries.length;i++)this.put(entries[i].key,entries[i].value)},this.get=function(key){for(var i=0;i<data.length;i++)if(data[i].key==key)return data[i].value;return null},this.clear=function(){data.length=0},this.isEmpty=function(){return data.length==0}}var SUBMIT_DELAY_MILLIS=500,domReady=!1,submitTimeout=null,productImpressions=new Map,productViews=new Map,productRecommendations=new Map;function applyFields(source,target){for(e in target)typeof source[e]!="undefined"&&(target[e]=source[e]);return target}var collectProductImpression=function(configs){if(typeof configs!="object")return!1;var pi=applyFields(configs,{id:null});if(typeof pi.id!="string")return!1;var previousImpression=productImpressions.get(pi.id);return previousImpression!=null?!1:(productImpressions.put(pi.id,pi),!0)},collectProductRecommendation=function(configs){if(typeof configs!="object")return!1;var pr=applyFields(configs,{id:null});if(typeof pr.id!="string")return!1;var previousRecommendation=productRecommendations.get(pr.id);return previousRecommendation!=null?!1:(productRecommendations.put(pr.id,pr),!0)},collectProductView=function(configs){if(typeof configs!="object")return!1;var pv=applyFields(configs,{id:null});if(typeof pv.id!="string")return!1;var previousView=productViews.get(pv.id);return previousView!=null?!1:(productViews.put(pv.id,pv),!0)};function copyAndClearMap(map){var copy=new Map;return copy.putAll(map),map.clear(),copy}function containsProductDataToSubmit(){return!productImpressions.isEmpty()||!productRecommendations.isEmpty()||!productViews.isEmpty()}var performDataSubmission=function(){if(dw.ac._analytics!=null){var collectedData={pageInfo:dw.ac._category,productImpressions,productViews,productRecommendations,debugEnabled:isDebugEnabled()};dw.ac._analytics.trackPageViewWithProducts(analyticsContext,collectedData,null),productImpressions.clear(),productViews.clear(),productRecommendations.clear(),dw.ac._events.length=0}};function submitCollectedData(){domReady&&(submitTimeout&&clearTimeout(submitTimeout),submitTimeout=setTimeout(performDataSubmission,SUBMIT_DELAY_MILLIS))}function escapeProperties(o,props){if(typeof o!="undefined"){var copy={};for(e in o){for(var escapeProp=!1,i=0;i<props.length&&!escapeProp;i++){var prop=props[i];e===prop&&typeof o[prop]=="string"&&(escapeProp=!0)}copy[e]=escapeProp?urlencode(o[e]):o[e]}return copy}}function captureObject(configs){return typeof configs!="object"?!1:configs.type===dw.ac.EV_PRD_SEARCHHIT||configs.type===dw.ac.EV_PRD_SETPRODUCT?collectProductImpression(escapeProperties(configs,["id"])):configs.type===dw.ac.EV_PRD_DETAIL?collectProductView(escapeProperties(configs,["id"])):configs.type===dw.ac.EV_PRD_RECOMMENDATION?collectProductRecommendation(escapeProperties(configs,["id"])):!1}
1function captureAndSend(configs){if(typeof configs!="undefined"){if(typeof configs=="object")if(configs instanceof Array)for(var i=0;i<configs.length;i++)captureObject(configs[i]);else configs[0]instanceof Object?captureObject(configs[0]):captureObject(configs);domReady&&submitCollectedData()}}dw.ac.capture=captureAndSend,dw.ac.setDebugEnabled=setDebugEnabled,dw.ac._handleCollectedData=function(){domReady=!1,dw.ac._events.forEach(captureAndSend),domReady=!0,submitCollectedData()},dw.ac._scheduleDataSubmission=function(){dw.ac._submitTimeout&&clearTimeout(dw.ac._submitTimeout),dw.ac._submitTimeout=setTimeout(dw.ac._handleCollectedData,500)},function(callback){document.readyState==="complete"&&setTimeout(callback,1),document.addEventListener?(DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,!1),callback()},document.addEventListener("DOMContentLoaded",DOMContentLoaded,!1),window.addEventListener("load",callback,!1)):document.attachEvent&&(DOMContentLoaded=function(){document.readyState==="complete"&&(document.detachEvent("onreadystatechange",DOMContentLoaded),callback())},document.attachEvent("onreadystatechange",DOMContentLoaded),window.attachEvent("onload",callback))}(function(){dw.ac._handleCollectedData()})})(window.dw||{});

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.