1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1; 2$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,d){if(a==Array.prototype||a==Object.prototype)return a;a[b]=d.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var d=a[b];if(d&&d.Math==Math)return d}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); 3$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b,d){if(!d||null!=a){d=$jscomp.propertyToPolyfillSymbol[b];if(null==d)return a[b];d=a[d];return void 0!==d?d:a[b]}}; 4$jscomp.polyfill=function(a,b,d,c){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,d,c):$jscomp.polyfillUnisolated(a,b,d,c))};$jscomp.polyfillUnisolated=function(a,b,d,c){d=$jscomp.global;a=a.split(".");for(c=0;c<a.length-1;c++){var g=a[c];if(!(g in d))return;d=d[g]}a=a[a.length-1];c=d[a];b=b(c);b!=c&&null!=b&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:b})}; 5$jscomp.polyfillIsolated=function(a,b,d,c){var g=a.split(".");a=1===g.length;c=g[0];c=!a&&c in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var m=0;m<g.length-1;m++){var h=g[m];if(!(h in c))return;c=c[h]}g=g[g.length-1];d=$jscomp.IS_SYMBOL_NATIVE&&"es6"===d?c[g]:null;b=b(d);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,g,{configurable:!0,writable:!0,value:b}):b!==d&&(void 0===$jscomp.propertyToPolyfillSymbol[g]&&(d=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[g]=$jscomp.IS_SYMBOL_NATIVE? 6$jscomp.global.Symbol(g):$jscomp.POLYFILL_PREFIX+d+"$"+g),$jscomp.defineProperty(c,$jscomp.propertyToPolyfillSymbol[g],{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(d){}return!1}; 7$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}}; 8$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return $jscomp.arrayIterator(a);throw Error(String(a)+" is not an iterable or ArrayLike");};$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");}; 9$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1}; 10$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_}; 11$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var d=a.next();$jscomp.generator.ensureIteratorResultIsObject_(d);if(d.done)this.yieldResult=d.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(d.value,b)}; 12$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0}; 13$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,d){d?this.finallyContexts_[d]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0}; 14$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)}; 15$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a}; 16$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()}; 17$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(d){return{value:d,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()}; 18$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()}; 19$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,d){try{var c=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(c);if(!c.done)return this.context_.stop_(),c;var g=c.value}catch(m){return this.context_.yieldAllIterator_=null,this.context_.throw_(m),this.nextStep_()}this.context_.yieldAllIterator_=null;d.call(this.context_,g);return this.nextStep_()}; 20$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}}; 21$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(b,a.prototype);return b}; 22$jscomp.asyncExecutePromiseGenerator=function(a){function b(c){return a.next(c)}function d(c){return a.throw(c)}return new Promise(function(c,g){function m(h){h.done?c(h.value):Promise.resolve(h.value).then(b,d).then(m,g)}m(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))}; 23var searchBarTakeOver2Fields,searchBarDropDown,searchbardoctypes,searchbarsecuredoctypes,searchbardoctypelabels,searchbarhinttexts,searchbardoctypeVal,searchbarsecuredoctypeVal,searchbardoctypelabelVal,searchbarhovertextVal,searchbarhinttextVal; 24$(document).ready(function(){function a(n,p){$(n).find("option").filter(function(){return-1!=p.indexOf(this.value)}).remove()}function b(n){var p=document.querySelector(".search-bar-takeover-v2"),q,w=[];var z=document.getElementsByClassName("select-items");var A=document.getElementsByClassName("select-selected");var x=z.length;var G=A.length;for(q=0;q<G;q++)n==A[q]?w.push(q):A[q].classList.remove("select-arrow-active");for(q=0;q<x;q++)w.indexOf(q)&&z[q].classList.add("select-hide");window.event.target.classList.contains("header-search")|| 25!p||p.contains(window.event.target)||($(".search-bar-takeover-v2").parent(".aem-Grid").removeClass("pos-relative"),$(".search-bar-takeover-v2").css("display","none"),$(".header-search").removeClass("searchActive"))}searchBarTakeOver2Fields={};document.querySelector(".search-bar-takeover-v2 #search-bar-dropdown-options")&&(searchBarTakeOver2Fields=document.querySelector(".search-bar-takeover-v2 #search-bar-dropdown-options").dataset);searchBarDropDown=$(".search-bar-takeover-v2 select");searchbardoctypes= 26searchBarTakeOver2Fields.searchbardoctypes;searchbarsecuredoctypes=searchBarTakeOver2Fields.searchbarsecuredoctypes;searchbardoctypelabels=searchBarTakeOver2Fields.searchbardoctypelabels;searchbarhinttexts=searchBarTakeOver2Fields.searchbarhinttexts;searchbarhovertexts=searchBarTakeOver2Fields.searchbarhovertexts;searchbardoctypes&&(searchbardoctypeVal=searchbardoctypes.split(","));searchbarsecuredoctypes&&(searchbarsecuredoctypeVal=searchbarsecuredoctypes.split(","));searchbardoctypelabels&&(searchbardoctypelabelVal= 27searchbardoctypelabels.split(","));searchbarhinttexts&&(searchbarhinttextVal=searchbarhinttexts.split("#,"));searchbarhovertexts&&(searchbarhovertextVal=searchbarhovertexts.split("#,"));$(searchBarDropDown).find("option").each(function(n){$(this).attr({"data-hint":searchbarhinttextVal[n].split("#")[0]});"null"!=searchbarhovertextVal[n].split("#")[0]&&$(this).attr({title:searchbarhovertextVal[n].split("#")[0]})});$(document).on("click",".header-search",function(){$(this).closest(".header").siblings(".breadcrumb").hide(); 28$(this).closest(".header").parent(".aem-Grid").addClass("pos-relative");$(this).addClass("searchActive");$(".search-bar-takeover-v2").css("display","flex")});$(document).on("click",".searchActive",function(){$(this).closest(".search-bar-takeover-v2").siblings(".breadcrumb").show();$(".search-bar-takeover").siblings(".breadcrumb").show();$(this).closest(".search-bar-takeover-v2").parent(".aem-Grid").removeClass("pos-relative");$(".search-bar-takeover-v2").css("display","none");$(".header-search").removeClass("searchActive")}
28); 290<$(".search-bar-takeover-v2").length&&($(".search-bar-takeover-v2").siblings(".header").find(".global-header").addClass("search-bar-takeover-v2-global-header"),$(document).scroll(function(){var n=$(this).scrollTop(),p=$(".header").position();n>p.top?$(".search-bar-takeover-v2").css({position:"fixed",top:"0"}):$(".search-bar-takeover-v2").css({position:"absolute",top:"100%"})}));$(document).on("change",".search-bar-takeover-v2 select",function(){$(".search-bar-takeover-v2 .search-bar-takeover__input-text").attr("placeholder", 30$(this).find(":selected").data("hint"))});if("undefined"!=typeof getSessionValid&&getSessionValid())searchbardoctypeVal&&(c=hasEcommerceAccess(),"undefined"!=typeof PIF_Endpoints&&"sps"==PIF_Endpoints._getSbgName()?c&&searchbardoctypeVal.includes("HybrisSku")?($(searchBarDropDown).val("HybrisSku"),c=searchbardoctypeVal.indexOf("HybrisSku"),0<=c&&$(".search-bar-takeover-v2 .search-bar-takeover__input-text").attr("placeholder",searchbarhinttextVal[c].split("#")[0])):($(searchBarDropDown).val("Product"), 31c=searchbardoctypeVal.indexOf("Product"),0<=c&&$(".search-bar-takeover-v2 .search-bar-takeover__input-text").attr("placeholder",searchbarhinttextVal[c].split("#")[0])):c?1===$(searchBarDropDown).find("option").length?$(searchBarDropDown).val($(searchBarDropDown).find("option").val()):($(searchBarDropDown).val("Sku"),c=searchbardoctypeVal.indexOf("Sku"),0<=c&&$(".search-bar-takeover-v2 .search-bar-takeover__input-text").attr("placeholder",searchbarhinttextVal[c].split("#")[0])):($(searchBarDropDown).val("Product"), 32c=searchbardoctypeVal.indexOf("Product"),0<=c&&$(".search-bar-takeover-v2 .search-bar-takeover__input-text").attr("placeholder",searchbarhinttextVal[c].split("#")[0])));else if(searchbarsecuredoctypeVal&&a(searchBarDropDown,searchbarsecuredoctypeVal),searchbardoctypeVal&&0<searchbardoctypeVal.length){var d=searchbardoctypeVal[0];if("undefined"==typeof PIF_Endpoints||"hbtbt"!=PIF_Endpoints._getSbgName()&&"sps"!=PIF_Endpoints._getSbgName()){$(searchBarDropDown).val("news-events-id");var c=searchbardoctypeVal.indexOf("news-events-id")}else $(searchBarDropDown).val("Product"), 33c=searchbardoctypeVal.indexOf("Product");1===searchbardoctypeVal.length&&($(searchBarDropDown).val(d),c=searchbardoctypeVal.indexOf(d));0<=c&&$(".search-bar-takeover-v2 .search-bar-takeover__input-text").attr("placeholder",searchbarhinttextVal[c].split("#")[0])}var g;c=document.querySelectorAll(".search-bar-takeover-v2 .custom-select-dropdown");var m=c.length;for(d=0;d<m;d++){var h=c[d].getElementsByTagName("select")[0];var f=h.length;var e=document.createElement("DIV");e.setAttribute("class","select-selected"); 340<=h.selectedIndex&&(e.innerHTML=h.options[h.selectedIndex].innerHTML);c[d].appendChild(e);var k=document.createElement("DIV");k.setAttribute("class","select-items select-hide");for(g=0;g<f;g++){var l=document.createElement("DIV");l.innerHTML=h.options[g].innerHTML;l.setAttribute("data-hint",h.options[g].getAttribute("data-hint"));l.setAttribute("title",h.options[g].getAttribute("title"));l.addEventListener("click",function(n){var p;var q=this.parentNode.parentNode.getElementsByTagName("select")[0]; 35var w=q.length;n=this.parentNode.previousSibling;for(p=0;p<w;p++)if(q.options[p].innerHTML==this.innerHTML){q.selectedIndex=p;n.innerHTML=this.innerHTML;p=this.parentNode.getElementsByClassName("same-as-selected");w=p.length;for(q=0;q<w;q++)p[q].removeAttribute("class");this.setAttribute("class","same-as-selected");$(".search-bar-takeover-v2 .search-bar-takeover__input-text").attr("placeholder",this.getAttribute("data-hint"));break}n.click()});k.appendChild(l)}c[d].appendChild(k);e.addEventListener("click", 36function(n){n.stopPropagation();b(this);this.nextSibling.classList.toggle("select-hide");this.classList.toggle("select-arrow-active")})}c=$('.gdm-sign-in [name\x3d"sbg_name"]').val();d=$(".search-bar-takeover-v2 .custom-select-dropdown #documentType");var u=[];d.find("option").each(function(){u.push(this.value)});"sps"==c&&u.includes("HybrisSku")&&hasEcommerceAccess()?d.find("option").each(function(){var n=$(".search-bar-takeover-v2 .custom-select-dropdown .select-items");if("Sku"==this.value||"Product"== 37this.value){var p=this.getAttribute("data-hint");n.find('div[data-hint \x3d "'+p+'"]').remove()}}):"sps"!=c||hasEcommerceAccess()||d.find("option").each(function(){var n=$(".search-bar-takeover-v2 .custom-select-dropdown .select-items");if("HybrisSku"==this.value){var p=this.getAttribute("data-hint");n.find('div[data-hint \x3d "'+p+'"]').remove()}});document.addEventListener("click",b)}); 38var $searchQueryTakeOverv2=$(".search-bar-takeover-v2 .search-bar-takeover__input-text"),$bodyTakeoverv2=$("body"),$searchSuggestionPageSizeTakeoverv2=parseInt($searchQueryTakeOverv2.attr("data-suggestion-result-size")),$typeAheadCheckTakeoverv2=$(".search-bar-takeover-v2 .search-bar-takeover__input-text").attr("data-type-ahead-search"),typeaheadSearchBarTakeoverv2="search-bar-takeover-v2"; 39function userAgent(a){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(a)}
39var Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i); 40(function(a){if("true"===$typeAheadCheckTakeoverv2){var b=[],d={},c={},g,m;(function(){a(".search-bar-takeover-v2 .takeover-suggestion-fields").children("div.takeover-suggestion-field").each(function(){b.push(a(this).text());d.fields=b;c.documents=d});"."+typeaheadSearchBarTakeoverv2+" .type-ahead-container-row"&&a("."+typeaheadSearchBarTakeoverv2+" .type-ahead-container-row").hide()})();a(document).on(Safari?"input propertychange":"keyup",".search-bar-takeover-v2 .search-bar-takeover__input-text", 41function(f){"support"!=document.querySelector(".search-bar-takeover-v2 select").value&&(f=f.which,2<a(this).val().length&&13!==f&&40!==f&&38!==f?("."+typeaheadSearchBarTakeoverv2+" .type-ahead-container-row"&&a("."+typeaheadSearchBarTakeoverv2+" .type-ahead-container-row").show(),f=a(this).val().replace(/([\u2122|\u00ae|\u00a9]|™|®|©|™|®|©)/g,"").replace(/(\\|\/|)/g,"").replace(/(<|>|\*|\('|'\)|\("|"\)|\(|\)|\$|;|'|"|:|\||\(\s+|\s+\))/g,"").replace(/\s+/," ").trim(), 42h(f,this)):40!==f&&38!==f&&("."+typeaheadSearchBarTakeoverv2+" .type-ahead-container-row"&&a("."+typeaheadSearchBarTakeoverv2+" .type-ahead-container-row").hide(),a(".search-bar-takeover-v2 .type-ahead-container-row .type-ahead-container .type-ahead-search-row").empty()))});var h=function(f,e){var k,l,u;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){if(1==n.nextAddress)return k=a(e).parentsUntil(".search-bar-takeover-v2"),l=a(k).find(".type-ahead-container-row"),n.yield(window.elasticAppSearchTypeAheadTakeover({query:f, 43types:c,size:$searchSuggestionPageSizeTakeoverv2}),2);if(u=n.yieldResult)a(".search-bar-takeover-v2 .type-ahead-search-row").empty(),a(l).find(".query-suggestions-subheadline").text("Suggested"),u[0]?a.each(u[0].results,function(p,q){a(l).find(".type-ahead-search-row").append('\x3cli class\x3d"takeover-suggestion-item"\x3e\x3ca href\x3d"javascript:void(0);"\x3e'+q.title.raw+"\x3c/a\x3e\x3c/li\x3e")}):a.each(u.results,function(p,q){a(l).find(".type-ahead-search-row").append('\x3cli class\x3d"takeover-suggestion-item"\x3e\x3ca href\x3d"javascript:void(0);"\x3e'+ 44q.title.snippet+"\x3c/a\x3e\x3c/li\x3e")});n.jumpToEnd()})};a(document).on("keydown",".search-bar-takeover-v2 .search-bar-takeover__input-text",function(f){var e=a(this).parentsUntil(".search-bar-takeover");e=a(e).find(".type-ahead-container-row");var k=a(e).find("li.takeover-suggestion-item").eq(0).text(),l=a(e).find("li.takeover-suggestion-item").last().text();40===f.which?g?(g.removeClass("selected"),m=g.next(),0<m.length?(a(this).val(a(m).text()),g=m.addClass("selected")):(a(this).val(k),g=a(e).find("li.takeover-suggestion-item").eq(0).addClass("selected"))): 45(a(this).val(k),g=a(e).find("li.takeover-suggestion-item").eq(0).addClass("selected")):38===f.which&&(g?(g.removeClass("selected"),m=g.prev(),0<m.length?(a(this).val(a(m).text()),g=m.addClass("selected")):(a(this).val(l),g=a(e).find("li.takeover-suggestion-item").last().addClass("selected"))):(a(this).val(l),g=a(e).find("li.takeover-suggestion-item").last().addClass("selected")))});a(document).on("click",".search-bar-takeover-v2 .type-ahead-container-row .type-ahead-search-row .takeover-suggestion-item", 46function(f){a(".search-bar-takeover-v2 .search-bar-takeover__input-text").val(a(this).find("a").text());a(".search-bar-takeover-v2 .search-bar-takeover__input-text").focus()});$bodyTakeoverv2.on("click",function(f){a(f.target).closest(".search-bar-takeover-v2 .search-input__search-bar").length||"."+typeaheadSearchBarTakeoverv2+" .type-ahead-container-row"&&a("."+typeaheadSearchBarTakeoverv2+" .type-ahead-container-row").hide()})}})(jQuery);"use strict"; 47(function(a){var b=this,d=function(h,f){var e="POST";"undefined"!=typeof hideCurrencyHybrisPage&&hideCurrencyHybrisPage&&(e="GET");return $.ajax({url:h,type:e,dataType:"json",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},xhrFields:{withCredentials:!0},data:f,beforeSend:function(k){}})},c=function(h){b.search_fields={};h.split(",").forEach(function(f){var e,k={};1<=f.split(":").length&&(e=f.split(":")[0]);2<=f.split(":").length&&(f=f.split(":")[1],k.weight= 48parseInt(f));b.search_fields[e]=k?k:{}});return b.search_fields},g=function(h){b.result_fields={};var f={snippet:{size:50,fallback:!0},raw:{size:200}};h.split(",").forEach(function(e){var k;1<=e.split(":").length&&(k=e.split(":")[0]);b.result_fields[k]=f});return b.result_fields},m=function(h,f){var e="";if(!h)return e;f?(h.startsWith('"')&&(h=h.replace(/"/g,"")),e='"'+h.replace('"',"")+'"'):e=h;return e};a.elasticAppSearchTypeAheadTakeover=function(h){var f,e,k,l,u,n,p,q,w,z,A,x,G,N,B,y,O,P,v,H, 49Q,r,J,C,D,R,S,E,K,L,M,T,F,I;return $jscomp.asyncExecutePromiseGeneratorProgram(function(t){switch(t.nextAddress){case 1:f=$(".search-bar-takeover-v2 .type-ahead-search-v2").attr("data-path")+".portalsearch";k=(e=document.querySelector(".search-bar-takeover-v2 #search-bar-dropdown-options"))&&e.dataset?e.dataset:!1;l=$(".search-bar-takeover-v2 .type-ahead-search-v2").attr("data-tenantpath");if("undefined"==l||null==l||""==l)l="/content/"+$('input[name\x3d"sbg_name"]').val();"undefined"!=typeof hideCurrencyHybrisPage&& 50hideCurrencyHybrisPage&&(l="/content/hbtbt");u=$(".search-bar-takeover-v2 .type-ahead-search-v2").attr("data-disableexactmatch");n=$(".search-bar-takeover-v2 .type-ahead-search-v2").attr("data-searchfields");p=document.querySelectorAll(".search-bar-takeover-v2 .type-ahead-search-v2 .multiple-result-field");q=c(n);w=[];k&&(A=k.searchbardoctypes,G=k.enablehybridsearches,A&&(x=A.split(",")),G&&(N=G.split(",")));if(0<p.length)for(B=0;B<p.length;B++)p[B].getAttribute("data-resultvalue")&&w.push(p[B].getAttribute("data-resultvalue")); 510<w.length&&(z=g(w.toString()));z.parent_doctype={raw:{size:50}};z.document_type={raw:{size:50}};
51y=document.querySelector(".search-bar-takeover-v2 select");P="false"===u?!0:!1;v={query:m(h.query,P),page:{size:$searchSuggestionPageSizeTakeoverv2,current:1},search_fields:q,result_fields:z,filters:{all:[],none:[]}};H=!1;Q=$("#fallBackLogicEnabled").val();r=[];J=getCookie("usr_lang");"true"==Q&&(C=getCookie("selecteddtm"),D=getCookie("dtm"),"undefined"!=C&&""!=C&&void 0!=C?r.push(C):"undefined"!=D&&""!= 52D&&void 0!=D?r.push(D):r.push(document.URL.split("/")[3]));R="sps"===$('.gdm-sign-in [name\x3d"sbg_name"]').val()&&getSessionValid();if(!R){t.jumpTo(2);break}return t.yield(DPC_Handler._getDPCData(r),3);case 3:S=t.yieldResult,r=S.countryCodes,console.log("countryCode",r);case 2:"sps"===$('.gdm-sign-in [name\x3d"sbg_name"]').val()&&(v.filters.all.push({availability_country:r}),v.filters.all.push({language:J}));if(y)for("news-events-id"!=y.value?(O="Sku"==y.value?"Product":y.value,v.filters.all.push({document_type:O})): 53x&&0<x.length&&$.map(x,function(U){"news-events-id"!=U&&v.filters.none.push({document_type:U})}),E=0;E<x.length;E++)x[E]==y.value&&(H=N[E]);if(!v){t.jumpTo(4);break}K={meta:{},facets:{},results:[]};L={tenantPath:l,type:"search",hybrisSerachEnabled:H,payload:JSON.stringify(v)};JSON.parse(H)&&(M=1,hasEcommerceAccess()&&(M=0),T=document.querySelector(".page_global_info").dataset.language.toLocaleLowerCase(),F={queries:[{query:"",page:{size:5,current:M},filters:{none:[],all:[{language:T},{document_type:"Sku"}], 54any:[{none:[{document_type:["Work Orders"]}]}]}}]},F.queries[0].query=v.query,"sps"===$('.gdm-sign-in [name\x3d"sbg_name"]').val()&&(F.queries[0].filters.all.push({availability_country:r}),F.queries[0].filters.all.push({language:J})),L={tenantPath:l,hybrisSerachEnabled:!0,soldToNumber:$("#default-soldTo-number")[0].innerText,type:"multi-search",selectedCurrency:$("#currency").val(),payload:JSON.stringify(F)});console.log("before ajaxCallAPI for search in type-ahead-takeover.js");return t.yield(d(f, 55L),5);case 5:return I=t.yieldResult,console.log("after ajaxCallAPI for search in type-ahead-takeover.js",I),I.search_results&&(K=I.search_results),t.return(K);case 4:return t.return({meta:{},facets:{},results:[]})}})}})(window); 56var $bannerSearchQueryTakeOver=$(".search-bar-takeover-v2-banner .search-bar-takeover__input-text"),$bannerBodyTakeover=$("body"),$bannerSearchSuggestionPageSizeTakeover=parseInt($bannerSearchQueryTakeOver.attr("data-suggestion-result-size")),$bannerTypeAheadCheckTakeover=$(".search-bar-takeover-v2-banner .search-bar-takeover__input-text").attr("data-type-ahead-search"),bannerTypeaheadSearchBarTakeover="search-bar-takeover-v2-banner"; 57function userAgent(a){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(a)}Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i); 58(function(a){if("true"===$bannerTypeAheadCheckTakeover){var b=[],d={},c={},g,m;(function(){a(".search-bar-takeover-v2-banner .takeover-suggestion-fields").children("div.takeover-suggestion-field").each(function(){b.push(a(this).text());d.fields=b;c.documents=d});"."+bannerTypeaheadSearchBarTakeover+" .type-ahead-container-row"&&a("."+bannerTypeaheadSearchBarTakeover+" .type-ahead-container-row").hide()})();a(document).on(Safari?"input propertychange":"keyup",".search-bar-takeover-v2-banner .search-bar-takeover__input-text", 59function(f){"support"!=document.querySelector(".search-bar-takeover-v2-banner select").value&&(f=f.which,2<a(this).val().length&&13!==f&&40!==f&&38!==f?("."+bannerTypeaheadSearchBarTakeover+" .type-ahead-container-row"&&a("."+bannerTypeaheadSearchBarTakeover+" .type-ahead-container-row").show(),f=a(this).val().replace(/([\u2122|\u00ae|\u00a9]|™|®|©|™|®|©)/g,"").replace(/(\\|\/|)/g,"").replace(/(<|>|\*|\('|'\)|\("|"\)|\(|\)|\$|;|'|"|:|\||\(\s+|\s+\))/g,"").replace(/\s+/, 60" ").trim(),h(f,this)):40!==f&&38!==f&&("."+bannerTypeaheadSearchBarTakeover+" .type-ahead-container-row"&&a("."+bannerTypeaheadSearchBarTakeover+" .type-ahead-container-row").hide(),a(".search-bar-takeover-v2-banner .type-ahead-container-row .type-ahead-container .type-ahead-search-row").empty()))});var h=function(f,e){var k,l,u;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){if(1==n.nextAddress)return k=a(e).parentsUntil(".search-bar-takeover-v2-banner"),l=a(k).find(".type-ahead-container-row"), 61n.yield(window.elasticAppSearchTypeAheadTakeoverBanner({query:f,types:c,size:$bannerSearchSuggestionPageSizeTakeover}),2);if(u=n.yieldResult)a(".search-bar-takeover-v2-banner .type-ahead-search-row").empty(),a(l).find(".query-suggestions-subheadline").text("Suggested"),u[0]?a.each(u[0].results,function(p,q){a(l).find(".type-ahead-search-row").append('\x3cli class\x3d"takeover-suggestion-item"\x3e\x3ca href\x3d"javascript:void(0);"\x3e'+q.title.raw+"\x3c/a\x3e\x3c/li\x3e")}):a.each(u.results,function(p, 62q){a(l).find(".type-ahead-search-row").append('\x3cli class\x3d"takeover-suggestion-item"\x3e\x3ca href\x3d"javascript:void(0);"\x3e'+q.title.snippet+"\x3c/a\x3e\x3c/li\x3e")});n.jumpToEnd()})};a(document).on("keydown",".search-bar-takeover-v2-banner .search-bar-takeover__input-text",function(f){var e=a(this).parentsUntil(".search-bar-takeover");e=a(e).find(".type-ahead-container-row");var k=a(e).find("li.takeover-suggestion-item").eq(0).text(),l=a(e).find("li.takeover-suggestion-item").last().text(); 6340===f.which?g?(g.removeClass("selected"),m=g.next(),0<m.length?(a(this).val(a(m).text()),g=m.addClass("selected")):(a(this).val(k),g=a(e).find("li.takeover-suggestion-item").eq(0).addClass("selected"))):(a(this).val(k),g=a(e).find("li.takeover-suggestion-item").eq(0).addClass("selected")):38===f.which&&(g?(g.removeClass("selected"),m=g.prev(),0<m.length?(a(this).val(a(m).text()),g=m.addClass("selected")):(a(this).val(l),g=a(e).find("li.takeover-suggestion-item").last().addClass("selected"))):(a(this).val(l), 64g=a(e).find("li.takeover-suggestion-item").last().addClass("selected")))});a(document).on("click",".search-bar-takeover-v2-banner .type-ahead-container-row .type-ahead-search-row .takeover-suggestion-item",function(f){a(".search-bar-takeover-v2-banner .search-bar-takeover__input-text").val(a(this).find("a").text());a(".search-bar-takeover-v2-banner .search-bar-takeover__input-text").focus()});$bannerBodyTakeover.on("click",function(f){a(f.target).closest(".search-bar-takeover-v2-banner .search-input__search-bar").length|| 65"."+bannerTypeaheadSearchBarTakeover+" .type-ahead-container-row"&&a("."+bannerTypeaheadSearchBarTakeover+" .type-ahead-container-row").hide()})}})(jQuery);"use strict";
66(function(a){var b=this,d=function(h,f){var e="POST";"undefined"!=typeof hideCurrencyHybrisPage&&hideCurrencyHybrisPage&&(e="GET");return $.ajax({url:h,type:e,dataType:"json",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},data:f,beforeSend:function(k){}})},c=function(h){b.search_fields={};h.split(",").forEach(function(f){var e,k={};1<=f.split(":").length&&(e=f.split(":")[0]);2<=f.split(":").length&&(f=f.split(":")[1],k.weight=parseInt(f));b.search_fields[e]= 67k?k:{}});return b.search_fields},g=function(h){b.result_fields={};var f={snippet:{size:50,fallback:!0},raw:{size:200}};h.split(",").forEach(function(e){var k;1<=e.split(":").length&&(k=e.split(":")[0]);b.result_fields[k]=f});return b.result_fields},m=function(h,f){var e="";if(!h)return e;f?(h.startsWith('"')&&(h=h.replace(/"/g,"")),e='"'+h.replace('"',"")+'"'):e=h;return e};a.elasticAppSearchTypeAheadTakeoverBanner=function(h){var f,e,k,l,u,n,p,q,w,z,A,x,G,N,B,y,O,P,v,H,Q,r,J,C,D,R,S,E,K,L,M,T,F, 68I;return $jscomp.asyncExecutePromiseGeneratorProgram(function(t){switch(t.nextAddress){case 1:f=$(".search-bar-takeover-v2-banner .type-ahead-search-v2").attr("data-path")+".portalsearch";k=(e=document.querySelector(".search-bar-takeover-v2-banner #search-bar-dropdown-options"))&&e.dataset?e.dataset:!1;l=$(".search-bar-takeover-v2-banner .type-ahead-search-v2").attr("data-tenantpath");if("undefined"==l||null==l||""==l)l="/content/"+$('input[name\x3d"sbg_name"]').val();"undefined"!=typeof hideCurrencyHybrisPage&& 69hideCurrencyHybrisPage&&(l="/content/hbtbt");u=$(".search-bar-takeover-v2-banner .type-ahead-search-v2").attr("data-disableexactmatch");n=$(".search-bar-takeover-v2-banner .type-ahead-search-v2").attr("data-searchfields");p=document.querySelectorAll(".search-bar-takeover-v2-banner .type-ahead-search-v2 .multiple-result-field");q=c(n);w=[];k&&(A=k.searchbardoctypes,G=k.enablehybridsearches,A&&(x=A.split(",")),G&&(N=G.split(",")));if(0<p.length)for(B=0;B<p.length;B++)p[B].getAttribute("data-resultvalue")&& 70w.push(p[B].getAttribute("data-resultvalue"));0<w.length&&(z=g(w.toString()));z.parent_doctype={raw:{size:50}};z.document_type={raw:{size:50}};y=document.querySelector(".search-bar-takeover-v2-banner select");P="false"===u?!0:!1;v={query:m(h.query,P),page:{size:$bannerSearchSuggestionPageSizeTakeover,current:1},search_fields:q,result_fields:z,filters:{all:[],none:[]}};H=!1;Q=$("#fallBackLogicEnabled").val();r=[];J=getCookie("usr_lang");"true"==Q&&(C=getCookie("selecteddtm"),D=getCookie("dtm"),"undefined"!= 71C&&""!=C&&void 0!=C?r.push(C):"undefined"!=D&&""!=D&&void 0!=D?r.push(D):r.push(document.URL.split("/")[3]));R="sps"===$('.gdm-sign-in [name\x3d"sbg_name"]').val()&&getSessionValid();if(!R){t.jumpTo(2);break}return t.yield(DPC_Handler._getDPCData(r),3);case 3:S=t.yieldResult,r=S.countryCodes,console.log("countryCode",r);case 2:"sps"===$('.gdm-sign-in [name\x3d"sbg_name"]').val()&&(v.filters.all.push({availability_country:r}),v.filters.all.push({language:J}));if(y)for("news-events-id"!=y.value?(O= 72"Sku"==y.value?"Product":y.value,v.filters.all.push({document_type:O})):x&&0<x.length&&$.map(x,function(U){"news-events-id"!=U&&v.filters.none.push({document_type:U})}),E=0;E<x.length;E++)x[E]==y.value&&(H=N[E]);if(!v){t.jumpTo(4);break}K={meta:{},facets:{},results:[]};L={tenantPath:l,type:"search",hybrisSerachEnabled:H,payload:JSON.stringify(v)};JSON.parse(H)&&(M=1,hasEcommerceAccess()&&(M=0),T=document.querySelector(".page_global_info").dataset.language.toLocaleLowerCase(),F={queries:[{query:"", 73page:{size:5,current:M},filters:{none:[],all:[{language:T},{document_type:"Sku"}],any:[{none:[{document_type:["Work Orders"]}]}]}}]},F.queries[0].query=v.query,"sps"===$('.gdm-sign-in [name\x3d"sbg_name"]').val()&&(F.queries[0].filters.all.push({availability_country:r}),F.queries[0].filters.all.push({language:J})),L={tenantPath:l,hybrisSerachEnabled:!0,soldToNumber:$("#default-soldTo-number")[0].innerText,type:"multi-search",selectedCurrency:$("#currency").val(),payload:JSON.stringify(F)});console.log("before ajaxCallAPI for search in type-ahead-takeover.js"); 74return t.yield(d(f,L),5);
74case 5:return I=t.yieldResult,console.log("after ajaxCallAPI for search in type-ahead-takeover.js",I),I.search_results&&(K=I.search_results),t.return(K);case 4:return t.return({meta:{},facets:{},results:[]})}})}})(window); 75var searchBarTakeOver2FieldsBanner,searchBarDropDownBanner,searchbardoctypesBanner,searchbarsecuredoctypesBanner,searchbardoctypelabelsBanner,searchbarhinttextsBanner,searchbardoctypeValBanner,searchbarsecuredoctypeValBanner,searchbardoctypelabelValBanner,searchbarhovertextValBanner,searchbarhinttextValBanner; 76$(document).ready(function(){function a(e,k){$(e).find("option").filter(function(){return-1!=k.indexOf(this.value)}).remove()}var b,d,c,g,m,h,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){if(1==e.nextAddress)return searchBarTakeOver2FieldsBanner={},document.querySelector(".search-bar-takeover-v2-banner #search-bar-dropdown-options")&&(searchBarTakeOver2FieldsBanner=document.querySelector(".search-bar-takeover-v2-banner #search-bar-dropdown-options").dataset),searchBarDropDownBanner= 77$(".search-bar-takeover-v2-banner select"),searchbardoctypesBanner=searchBarTakeOver2FieldsBanner.searchbardoctypes,searchbarsecuredoctypesBanner=searchBarTakeOver2FieldsBanner.searchbarsecuredoctypes,searchbardoctypelabelsBanner=searchBarTakeOver2FieldsBanner.searchbardoctypelabels,searchbarhovertexts=searchBarTakeOver2FieldsBanner.searchbarhovertexts,searchbardoctypesBanner&&(searchbardoctypeValBanner=searchbardoctypesBanner.split(",")),searchbarsecuredoctypesBanner&&(searchbarsecuredoctypeValBanner= 78searchbarsecuredoctypesBanner.split(",")),searchbardoctypelabelsBanner&&(searchbardoctypelabelValBanner=searchbardoctypelabelsBanner.split(",")),searchbarhovertexts&&(searchbarhovertextValBanner=searchbarhovertexts.split("#,")),b="undefined"==typeof getSessionValid?!1:getSessionValid(),b?searchbardoctypeValBanner&&(d=hasEcommerceAccess(),"undefined"!=typeof PIF_Endpoints&&"sps"==PIF_Endpoints._getSbgName()?d&&searchbardoctypeValBanner.includes("HybrisSku")?($(searchBarDropDownBanner).val("HybrisSku"), 79searchbardoctypeValBanner.indexOf("HybrisSku")):($(searchBarDropDownBanner).val("Product"),searchbardoctypeValBanner.indexOf("Product")):d?($(searchBarDropDownBanner).val("Sku"),searchbardoctypeValBanner.indexOf("Sku")):($(searchBarDropDownBanner).val("Product"),searchbardoctypeValBanner.indexOf("Product"))):(searchbarsecuredoctypeValBanner&&a(searchBarDropDownBanner,searchbarsecuredoctypeValBanner),searchbardoctypeValBanner&&("undefined"==typeof PIF_Endpoints||"sps"!=PIF_Endpoints._getSbgName()&& 80"hbtbt"!=PIF_Endpoints._getSbgName()?($(searchBarDropDownBanner).val("news-events-id"),searchbardoctypeValBanner.indexOf("news-events-id")):($(searchBarDropDownBanner).val("Product"),searchbardoctypeValBanner.indexOf("Product")))),c=$('.gdm-sign-in [name\x3d"sbg_name"]').val(),g=$(".search-bar-takeover-v2-banner .custom-select-dropdown #documentType"),m=[],g.find("option").each(function(){m.push(this.value)}),"sps"==c&&m.includes("HybrisSku")&&hasEcommerceAccess()?(g=$(".search-bar-takeover-v2-banner .custom-select-dropdown #documentType"), 81g.find("option").each(function(){var k=$(".search-bar-takeover-v2-banner .custom-select-dropdown .select-items");if("Sku"==this.value||"Product"==this.value){var l=this.getAttribute("data-hint");k.find('div[data-hint \x3d "'+l+'"]').remove()}})):"sps"!=c||hasEcommerceAccess()||(g=$(".search-bar-takeover-v2-banner .custom-select-dropdown #documentType"),g.find("option").each(function(){var k=$(".search-bar-takeover-v2-banner .custom-select-dropdown .select-items");if("HybrisSku"==this.value){var l= 82this.getAttribute("data-hint");k.find('div[data-hint \x3d "'+l+'"]').remove()}})),e.yield(checkUserMyHbuApprovedHeader(),2);h=e.yieldResult;h||"hbtbt"!=c||(g=$(".search-bar-takeover-v2 .custom-select-dropdown #documentType"),null!=g&&"undefined"!=g&&g.find("option").each(function(){var k=$(".search-bar-takeover-v2 .custom-select-dropdown .select-items");if("Trainings"==this.value){var l=this.getAttribute("data-hint");k.find('div[data-hint \x3d "'+l+'"]').remove()}}),f=$(".search-bar-takeover-v2-banner .custom-select-dropdown #documentType"), 83null!=f&&"undefined"!=f&&f.find("option").each(function(){"Trainings"===this.value&&$(this).remove()}));e.jumpToEnd()})}); 84function checkUserMyHbuApprovedHeader(){var a,b,d,c,g,m,h,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(e){switch(e.nextAddress){case 1:a=$('input[name\x3d"domain_id"]').val();
84b=localStorage.getItem(a+"-loggedInDetails");c=d=!1;null!==b&&JSON.parse(b).userLoggedIn&&(d=!0);e.setCatchFinallyBlocks(2);if(!d){e.jumpTo(4);break}g="a5F5a000001AEUjEAO";m="Approved";return e.yield(getUserContactDetails(),5);case 5:(h=e.yieldResult)&&"object"===typeof h&&Object.keys(h).length&&h.toolAccess&& 850<h.toolAccess.length&&(c=h.toolAccess.some(function(k){return k.masterToolId===g&&k.status===m&&null!==k.lmsUserId&&"string"===typeof k.lmsUserId&&""!==k.lmsUserId.trim()}));case 4:e.leaveTryBlock(3);break;case 2:f=e.enterCatchBlock(),console.error("Error in Contact API call via PIF Manager ():",f);case 3:return e.return(c)}})} 86function getUserContactDetails(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){return _getContactDetailsResp&&"object"===typeof _getContactDetailsResp&&Object.keys(_getContactDetailsResp).length?a.return(_getContactDetailsResp):"undefined"!==typeof _PIF_MANAGER&&_PIF_MANAGER.contactDetails?a.return(new Promise(function(b,d){_PIF_MANAGER.contactDetails.onSuccess(function(c){return b(c)}).onError(function(c){return d(c)})})):a.return({})})};
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.