1window.wt_productListTracking = function(conf) { 2 if (conf.mode === "page") { 3 var wt_productListTrackingConfig = window.wt_productListTrackingConfig || { 4 view: { 5 on: 1000, 6 off: 1000 7 }, 8 percent: { 9 on: 100, 10 off: 100 11 }, 12 sampling: 0, 13 maxSendProducts: { 14 session: 10000, 15 page: 1000 16 }, 17 sendMultipleProductViews: false 18 }; 19 20if("undefined"!==typeof document.querySelectorAll&&"undefined"!==typeof document.querySelector){var ViewPort=function(f,g,q){var n=[],s=!0,e=!0,l="",h="";this.setItems=function(a){if("undefined"!==typeof a&&null!==a&&a.length)for(var b=0;b<a.length;b++)n.push(m(a[b]))};this.deleteItems=function(a){if("object"===typeof a&&null!==a&&a.length)for(var b=0;b<a.length;b++)n.indexOf(a[b])&&n.splice(n.indexOf(a[b]),1)};var k=function(){l=window.innerHeight||self.innerHeight||document.documentElement&&document.documentElement.clientHeight|| 21document.body.clientHeight;h=window.innerWidth||self.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body.clientWidth;s=!0},m=function(a){a.wt_vp=a.wt_vp||{};a.wt_vp.dimension=t(a);return a},p=function(a){window.setTimeout(function(){for(var b=[],d=!1,c=0;c<a.length;c++)a[c].wt_vp.dimension=t(a[c]),a[c].wt_vp.dimension.visible.height.percent>=f.percent.on&&a[c].wt_vp.dimension.visible.width.percent>=f.percent.on?(a[c].wt_vp.on-=50,b.push(a[c]),0>=a[c].wt_vp.on&& 22(d=!0)):delete a[c].wt_vp.on;b.length&&(d&&!e?g(b):p(b))},50)},r=function(a){window.setTimeout(function(){for(var b=[],d=0;d<a.length;d++)a[d].wt_vp.dimension=t(a[d]),a[d].wt_vp.dimension.hidden.height.percent>=f.percent.off&&a[d].wt_vp.dimension.hidden.width.percent>=f.percent.off?(a[d].wt_vp.off-=50,0===a[d].wt_vp.off?(delete a[d].wt_vp.on,delete a[d].wt_vp.off):b.push(a[d])):delete a[d].wt_vp.off;b.length&&r(b)},50)},t=function(a){var b=a.wt_vp.dimension||{rec:null,visible:{height:{percent:null, 23pixel:null},width:{percent:null,pixel:null}},hidden:{height:{percent:null,pixel:null},width:{percent:null,pixel:null}}},d=a.getBoundingClientRect();b.rec={height:"undefined"!==typeof d.height?d.height:a.clientHeight,width:"undefined"!==typeof d.width?d.width:a.clientWidth,top:d.top,right:d.right,bottom:d.bottom,left:d.left};a=b.visible.height;var d=b.rec,c=0;(0<=d.top||0<d.top+d.height)&&d.top<l&&(c+=d.height,c+=0>d.top?d.top:0,c-=d.top+d.height>l?d.height+d.top-l:0);if(0>=d.left+d.width||d.left>= 24h)c=0;a.pixel=c;a=b.visible.width;d=b.rec;c=0;(0<=d.left||0<d.left+d.width)&&d.left<h&&(c=d.width,c+=0>d.left?d.left:0,c-=d.left+d.width>h?d.left+d.width-h:0);if(0>=d.top+d.height||d.top>=l)c=0;a.pixel=c;b.visible.height.percent=100*b.visible.height.pixel/b.rec.height;b.visible.width.percent=100*b.visible.width.pixel/b.rec.width;b.hidden.height.pixel=b.rec.height-b.visible.height.pixel;b.hidden.width.pixel=b.rec.width-b.visible.width.pixel;b.hidden.height.percent=100-b.visible.height.percent;b.hidden.width.percent= 25100-b.visible.width.percent;return b};this.start=function(){if(e&&n.length){c();var a=window,b=c;a.addEventListener?a.addEventListener("scroll",b,!1):a.attachEvent&&a.attachEvent("onscroll",b);a=window;b=c;a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b);e=!1}};this.stop=function(){if(!e){var a=window,b=c;a.removeEventListener?a.removeEventListener("scroll",b,!1):a.detachEvent&&a.detachEvent("onscroll",b);a=window;b=c;a.removeEventListener?a.removeEventListener("resize", 26b,!1):a.detachEvent&&a.detachEvent("onresize",b);e=!0}};var c=function(){k();if(n.length&&s){s=!1;for(var a=[],b=[],d=0;d<n.length;d++){n[d].wt_vp.dimension=t(n[d]);var c=n[d].wt_vp.dimension,e=c.hidden.height.percent>=f.percent.off&&c.hidden.width.percent>=f.percent.off;c.visible.height.percent>=f.percent.on&&c.visible.width.percent>=f.percent.on&&"undefined"===typeof n[d].wt_vp.on?(n[d].wt_vp.on=f.view.on,a.push(n[d])):0>=n[d].wt_vp.on&&e&&"undefined"===typeof n[d].wt_vp.off&&(n[d].wt_vp.off=f.view.off, 27b.push(n[d]))}a.length&&p(a);b.length&&r(b)}
27};k();this.setItems(q);this.start()},ProductListStorage=function(f){var g=function(e){return e.replace(/[\|~,]/g,"").toLowerCase()},q=function(e){"undefined"!==typeof f.config.dynamicParameters?(f.config.dynamicParameters||(f.config.dynamicParameters={}),f.config.dynamicParameters.plp=e+""):(f.config.customSid||(f.config.customSid=""),f.config.customSid+="&plp="+e+"")},n=function(e,l){var h=[],k,m;for(m in l){var p=m+"";0===h.length&&(k=p);h.push(p+"|"+ 28l[p].join(","))}0<h.length?4E3>=f.wtEscape(h.join("~")).length?f.setCookie(e,h.join("~")):(delete l[k],n(e,l)):f.setCookie(e,"",-3600)},s=function(e){e=f.getCookie(e).split("~");for(var l={},h=0,k=e.length,m,p;h<k;h++)e[h]&&(m=e[h].split("|"),p=m[0],m=m[1].split(","),l[p]=m);return l};this.click=function(e,f){e=g(e);var h=s("wt_pli_view"),k=!1;if("undefined"!==typeof h[e]){var m=h[e];m[m.length-1]!==f+""&&(k=!0,m.push(f))}else k=!0,h[e]=[f];k&&n("wt_pli_view",h)};this.view=function(){for(var e=s("wt_pli_view"), 29l=[],h=g(f.config.product).split(";"),k=0,m=h.length;k<m;k++)if("undefined"!==typeof e[h[k]]){var p=e[h[k]];l.push(p[p.length-1])}else l.push("");q(l.join(";"))};this.add=function(){for(var e=s("wt_pli_view"),l=s("wt_pli_add"),h=!1,k=[],m=g(f.config.product).split(";"),p=0,r=m.length;p<r;p++)if("undefined"!==typeof e[m[p]]){var h=!0,t=e[m[p]];k.push(t[0]);l[m[p]]=[t[0]]}else k.push("");q(k.join(";"));h&&n("wt_pli_add",l)};this.conf=function(){for(var e=s("wt_pli_add"),l=[],h=g(f.config.product).split(";"), 30k=0,m=h.length;k<m;k++)"undefined"!==typeof e[h[k]]?l.push(e[h[k]][0]):l.push("");q(l.join(";"));n("wt_pli_add",{})}},ProductListTracking=function(f,g){var q=g.session,n=g.page,s=g.sendMultipleProductViews,e,l,h={customEcommerceParameter:["cb",{}],productCategory:["ca",{}],product:["ba",""],productPosition:["plp",""],productCost:["co",""],productQuantity:["qn",""],productLabel:["ca870",""],productMainCategory:["ca871",""],productSubCategory:["ca872",""],productManufacturer:["ca873",""],productShortDescription:["ca874", 31""],productLongDescription:["cb875",""],paymentMethod:["cb761",""],shippingService:["cb762",""],shippingSpeed:["cb763",""],shippingCosts:["cb764",""],grossMargin:["cb765",""],orderStatus:["cb766",""],productVariant:["cb767",""],couponValue:["cb563",""],productSoldOut:["cb760",""]},k=function(e,f,c,a){if("object"===typeof f)for(var b in f){var d=b+"";k(e+d,f[d],c,a)}else{"undefined"===typeof a[e]&&(a[e]=[]);if(a[e].length<c)for(b=a[e].length;b<=c;b++)a[e].push("");a[e].push(f)}},m=function(e){var p= 32"&ct=webtrekk_ignore&st=list",c;for(c in e)var a=c+"",p=p+("&"+a+"="+f.wtEscape(e[a].join(";")));return p},p=function(e){f.quicksend(f.wtEscape(f.contentId.split(";")[0])+",1,"+f.baseparams(),m(e))};this.track=function(r){for(var g=[],c=0,a=r.length;c<a;c++){var b;b=r[c];b=s||"undefined"===typeof b.wt_pli||"undefined"!==typeof b.wt_pli.data?!1:!0;if(b=!b){a:{if(-1!==n){if(0>=l){b=!0;break a}l--}b=!1}if(b=!b){a:{if(-1!==q){if(0>=e){b=!0;break a}e--;f.setCookie("wt_pli_session",e)}b=!1}b=!b}}b&&(g.push(r[c].wt_pli.data), 33s||delete r[c].wt_pli.data)}if(0<g.length){r={};c=0;for(a=g.length;c<a;c++){b=g[c];for(var d in b){var u=d+"";"undefined"!==typeof h[u]&&k(h[u][0],b[u],c,r)}}for(g={};0<r.ba.length;){for(var v in r)d=v+"","undefined"===typeof g[d]&&(g[d]=[]),g[d].push(r[d][0]),r[d].shift();6144<m(g).length&&(p(g),g={})}"undefined"!==typeof g.ba&&0<g.ba.length&&p(g)}};l=n;e=function(){if(q){var e=f.getCookie("wt_pli_session");return e&&!isNaN(e)?parseInt(e):q}return 0}()};"after"===conf.type?function(f,g,q){f.wt_pli= 34f.wt_pli||[];var n=new ProductListTracking(q,{session:g.maxSendProducts.session,page:g.maxSendProducts.page,sendMultipleProductViews:g.sendMultipleProductViews}),s=new ProductListStorage(q),e=new ViewPort({view:g.view,percent:g.percent},n.track),l=Math.pow(2,31),h=function(e){q.registerEvent(e,"click",function(){var f=e.wt_pli.click;s.click(f.product,f.productPosition)})},k=function(){if(g.sampling&&1<g.sampling){var e=q.getCookie("wt_pli_sample");if(e)return"1"===e;e=parseInt(Math.random()*g.sampling); 350!==e?q.setCookie("wt_pli_sample","1"):q.setCookie("wt_pli_sample","0");return 0!==e}return!0},m=function(){if(0<arguments.length){var f=arguments;"undefined"!==typeof arguments[0].length&&0<arguments[0].length&&(f=arguments[0]);e.stop();for(var g=0,k=f.length;g<k;g++){var c;if(c="undefined"!==typeof f[g].selector)if(c="object"===typeof f[g].data)if(c="string"===typeof f[g].data.product)if(c="undefined"!==typeof f[g].data.productPosition)a:{c=f[g].data.productPosition;if("number"===typeof c||"string"=== 36typeof c)if(c=parseInt(c),!isNaN(c)&&0<c&&c<l){c=!0;break a}c=!1}
36if(c){c=f[g].selector;c="string"===typeof c?document.querySelector(c):"object"===typeof c?c:null;var a;if(a=c)if(a=null!==c){a=c;var b=f[g].data;"undefined"===typeof a.wt_pli?(a.wt_pli={data:b,click:{product:b.product,productPosition:b.productPosition}},e.setItems([a]),a=!0):a=!1}a&&h(c)}}e.start()}};(function(){if(k()){for(var e=0;e<f.wt_pli.length;e++)m(f.wt_pli[e]);f.wt_pli={push:m,length:0}}})()}(window,wt_productListTrackingConfig, 37conf.instance):"before"===conf.type&&function(f,g){var q=new ProductListStorage(g);if(g.config&&g.config.productStatus)switch(g.config.productStatus){case "view":q.view();break;case "add":q.add();break;case "conf":q.conf()}}(window,conf.instance)}; 38 39 } 40};
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.