1var loadEcommerceHeader=function(b){$("#custom-header").html(b);"undefined"!==typeof ACC&&"undefined"!==typeof ACC.iamActions&&ACC.iamActions.bindLogoutAction();var c=document.querySelector('#custom-header a[href$\x3d"/logout"]');if(piSession)piSession.on(piSession.LogoutEvent,function(){if(c){var d=encodeURI(c);window.location.replace(d)}})}; 2function getToken(){return new Promise(function(b){window.piSession&&window.piSession.userId()?window.piSession.getToken(function(c,d){c===window.piSession.Success?b({"X-UserId":window.piSession.userId(),"X-Authorization":d}):b({})}):b({})})} 3function verifyHybrisSession(b){var c=b||"/store/customer/current";piSession&&piSession.hasValidSession(0)!==piSession.Success&&!piSession.userId()&&$.get({url:c,async:!1}).done(function(d){if(!b||$(d).find(".userSignedIn").length)console.log("Invalidating Hybris session since IES session was finalized"),$.get("/store/logout")})} 4function pullHeaderContent(b,c){if(0===$(".userNav.userSignedIn").length&&!0!==window.skipCommerceHeader){var d=encodeURI($("#custom-header").data("header-path"));$.get({url:d,async:!1,headers:b}).done(function(f){c(f)}).fail(function(){console.error("Cannot pull ecommerce header")})}window.skipCommerceHeader=null}"use strict"; 5(function(){function b(){if(0<$("#custom-header").length){var a=c(),e;for(e in window.dataLayer)if("undefined"!==typeof dataLayer[e].pageInfo){var g=e;break}
5piSession&&piSession.hasValidSession(0)===piSession.Success&&a&&!0===d()&&dataLayer&&!dataLayer[g].pageInfo.isAuthor&&(window.location.href=a);getToken().then(function(h){var k=encodeURI($("#custom-header").data("header-path"));verifyHybrisSession(k);pullHeaderContent(h,f)})}}var c=function(){var a;for(a in window.dataLayer)if("undefined"!==typeof dataLayer[a].pageInfo){var e= 6encodeURI(dataLayer[a].pageInfo.authHomePage);break}return e},d=function(){for(var a in window.dataLayer)if("undefined"!==typeof dataLayer[a].pageInfo)return dataLayer[a].pageInfo.redirectIfAuthenticatedByIES;return!1},f=function(a){var e=$("#expectedMarkup").attr("data-expected-markup");-1<a.indexOf(e)&&(loadEcommerceHeader(a),a=document.querySelector(".userAnalytics"),null!=a&&null!=a.getAttribute("data-internal-customer")&&dataLayer.push({userInfo:{internalCustomer:a.getAttribute("data-internal-customer")}}), 7document.dispatchEvent(new CustomEvent("ecommerceHeaderContentReceived")))};if(piSession)piSession.on(piSession.RefreshEvent,b);b()})();
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.