PageSourceSearch

https://www.honeywellaerospace.com/etc.clientlibs/baseline-tenant/…ral.min.354b85e394d0f13378480b322960c574.js

js honeywellaerospace.com collected 2026-10-09 22:41:52 UTC 35,052 bytes, 71 lines download raw bytes

vendor: 10,227 bytes, lines 1-24
1var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};$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,h){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,d,h):$jscomp.polyfillUnisolated(a,b,d,h))};$jscomp.polyfillUnisolated=function(a,b,d,h){d=$jscomp.global;a=a.split(".");for(h=0;h<a.length-1;h++){var k=a[h];if(!(k in d))return;d=d[k]}a=a[a.length-1];h=d[a];b=b(h);b!=h&&null!=b&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:b})};
5$jscomp.polyfillIsolated=function(a,b,d,h){var k=a.split(".");a=1===k.length;h=k[0];h=!a&&h in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var c=0;c<k.length-1;c++){var e=k[c];if(!(e in h))return;h=h[e]}k=k[k.length-1];d=$jscomp.IS_SYMBOL_NATIVE&&"es6"===d?h[k]:null;b=b(d);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,k,{configurable:!0,writable:!0,value:b}):b!==d&&(void 0===$jscomp.propertyToPolyfillSymbol[k]&&(d=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[k]=$jscomp.IS_SYMBOL_NATIVE?
6$jscomp.global.Symbol(k):$jscomp.POLYFILL_PREFIX+d+"$"+k),$jscomp.defineProperty(h,$jscomp.propertyToPolyfillSymbol[k],{configurable:!0,writable:!0,value:b})))};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(a,b){for(var d=1;d<arguments.length;d++){var h=arguments[d];if(h)for(var k in h)$jscomp.owns(h,k)&&(a[k]=h[k])}return a};$jscomp.polyfill("Object.assign",function(a){return a||$jscomp.assign},"es6","es3");
7$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(d){}return!1};$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}}};
8$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$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 h=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(h);if(!h.done)return this.context_.stop_(),h;var k=h.value}catch(c){return this.context_.yieldAllIterator_=null,this.context_.throw_(c),this.nextStep_()}this.context_.yieldAllIterator_=null;d.call(this.context_,k);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(h){return a.next(h)}function d(h){return a.throw(h)}return new Promise(function(h,k){function c(e){e.done?h(e.value):Promise.resolve(e.value).then(b,d).then(c,k)}c(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)))};
23(function(a){a.loadMoreSearchResult=function(b){return function(d){var h,k,c,e,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){if(1==g.nextAddress)return b.isLoadMore=!0,SearchUtilsModule.showSearchElements(),h=JSON.parse(JSON.stringify(searchStore.getState())),k=SearchUtilsModule.PromotedSearchRequest(b,h),b.promotedReq=k,d({type:"UPDATE_REQUEST",payload:{request:{page:{size:parseInt(b.size),current:parseInt(b.current)}},loading:!1}}),g.yield(window.elasticAppSearch(b),2);if(c=g.yieldResult)Array.isArray(c)&&
240<c.length?(e=c.map(function(l){return l.results}),f=c.map(function(l){return l.meta}
24),d({type:"SEARCH_LOAD_MORE",payload:{results:e[0],meta:f[0],loading:!1}})):d({type:"SEARCH_LOAD_MORE",payload:{results:c.results,meta:c.meta,loading:!1}}),GDM_Global_Datalayer._isDatalayerFlagEnabled()&&Search_Clicked_Events._updateLoadMoreClick();g.jumpToEnd()})}};a.sortSearchResult=function(b){return function(d){var h,k,c,e,f;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){if(1==g.nextAddress)return SearchUtilsModule.showSearchElements(),
25h=JSON.parse(JSON.stringify(searchStore.getState())),k=SearchUtilsModule.PromotedSearchRequest(b,h),b.promotedReq=k,d({type:"UPDATE_SORTBY",payload:{request:{sort:b.sortBy,page:{size:parseInt(b.size),current:1}}}}),g.yield(window.elasticAppSearch(b),2);if(c=g.yieldResult)Array.isArray(c)&&0<c.length?(e=c.map(function(l){return l.results}),f=c.map(function(l){return l.meta}),d({type:"SEARCH_BY_QUERY",payload:{results:e[0],meta:f[0],loading:!1}})):d({type:"SEARCH_BY_QUERY",payload:{results:c.results,
26meta:c.meta,loading:!1}}),SearchUtilsModule.hideAllContentLoader();g.jumpToEnd()})}};a.fetchSearchResultsByQuery=function(b){return function(d){var h,k,c,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return SearchUtilsModule.showSearchElements(),h=JSON.parse(JSON.stringify(searchStore.getState())),k=SearchUtilsModule.PromotedSearchRequest(b,h),b.promotedReq=k,f.yield(window.elasticAppSearch(b),2);if(c=f.yieldResult)Array.isArray(c)&&0<c.length?(e=c.map(function(g){return g.results}),
27d({type:"SEARCH_BY_QUERY",payload:e[0]})):d({type:"SEARCH_BY_QUERY",payload:c.results}),SearchUtilsModule.hideAllContentLoader();f.jumpToEnd()})}};a.fetchFilteredSearchResults=function(b){return function(d){var h,k,c,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return SearchUtilsModule.showSearchElements(),h=JSON.parse(JSON.stringify(searchStore.getState())),k=SearchUtilsModule.PromotedSearchRequest(b,h),b.promotedReq=k,f.yield(window.elasticAppSearch(b),2);
28if(c=f.yieldResult)Array.isArray(c)&&0<c.length?(e=c.map(function(g){return g.results}),d({type:"CLICK_TAG",payload:e[0]})):d({type:"CLICK_TAG",payload:c}),SearchUtilsModule.hideAllContentLoader();f.jumpToEnd()})}};a.init_search_results=function(b){return function(d){var h,k,c,e,f,g,l,m,n,q,u,v,t,z,w,p,B,C,A;return $jscomp.asyncExecutePromiseGeneratorProgram(function(x){switch(x.nextAddress){case 1:d({type:"INIT_SEARCH_RESULTS",payload:{init:b.init}});d({type:"UPDATE_REQUEST",payload:{onLoadQuery:b.query}});
29h=b.init.general;k=h.numberOfResultsDisplayed;c=b.init;e=c.group;d({type:"UPDATE_REQUEST",payload:{request:Object.assign({},{query:b.query,page:{size:parseInt(k),current:1},filters:b.filters},e&&e),inherited_value:b.filters,isfederated:b.isfederated,isMultiSelectFacetEnabled:b.isMultiSelectFacetEnabled}});d({type:"SELECT_FILTER",payload:Object.assign({},{selectedfilters:b.selectedfilters},b.dateRange&&{dateRange:b.dateRange})});b.sortBy&&d({type:"UPDATE_REQUEST",payload:{request:{sort:b.sortBy}}});
30f=SearchUtilsModule.getActiveTabFilters();g=f.filters;l=f.isfederated;SearchUtilsModule.isEmpty(g)?SearchUtilsModule.isEmpty(b.facetList.facets)?d({type:"UPDATE_REQUEST",payload:{isMultiSelectFacetEnabled:b.isMultiSelectFacetEnabled}}):d({type:"UPDATE_REQUEST",payload:{request:{facets:b.facetList.facets},isfederated:l,isMultiSelectFacetEnabled:b.isMultiSelectFacetEnabled}}):SearchUtilsModule.isEmpty(b.facetList.facets)||d({type:"UPDATE_REQUEST",payload:{request:{facets:b.facetList.facets,filters:g},
31isfederated:l,isMultiSelectFacetEnabled:b.isMultiSelectFacetEnabled}});d({type:"SELECT_FILTER",payload:Object.assign({},{selectedfilters:b.selectedfilters},b.dateRange&&{dateRange:b.dateRange})});d({type:"FACETS_INIT",payload:{init:b.initFacet,tabfilterList:b.tabfilterList,selectedtabfilters:b.selectedtabfilters,generalDatePicker:b.generalDatePicker}});m=JSON.parse(JSON.stringify(searchStore.getState()));if(!(!SearchUtilsModule.initSearchEnabled()||0<b.selectedfilters.all.length||SearchUtilsModule.searchURLQueryParameter("search")||
32SearchUtilsModule.searchURLQueryParameter("filters"))){SearchUtilsModule.hideSearchElements();SearchUtilsModule.hideAllContentLoader();x.jumpTo(2);break}n=SearchUtilsModule.getSubFacetGroupRequest(b.initFacet,JSON.parse(JSON.stringify(searchStore.getState())));if(!n||SearchUtilsModule.isEmpty(n)){x.jumpTo(2);break}return x.yield(SearchUtilsModule.SubFacetsGroupWithMultiSearch(b,n,null),4);case 4:if(q=x.yieldResult,u=q.facets)v=SearchUtilsModule.sortFacetsAlphabetically(m.search_facets.init,u),d({type:"FACETS_INIT",
33payload:{facets:v,loading:!1}});case 2:if(SearchUtilsModule.initSearchEnabled()&&!b.query&&!SearchUtilsModule.searchURLQueryParameter("search")&&!SearchUtilsModule.searchURLQueryParameter("filters")){SearchUtilsModule.hideSearchElements();SearchUtilsModule.hideAllContentLoader();x.jumpTo(0);break}t=JSON.parse(JSON.stringify(searchStore.getState()));z=SearchUtilsModule.PromotedSearchRequest(b,t);b.promotedReq=z;SearchUtilsModule.hideFuzzyMessage();return x.yield(window.elasticAppSearch(b),6);case 6:if(w=
34x.yieldResult)Array.isArray(w)&&0<w.length?(p=w.map(function(y){return y.results}),B=w.map(function(y){return y.meta}),C=w.map(function(y){return y.facets}),A=SearchUtilsModule.trimArray(C),1==w.length&&0==w[0].results.length&&SearchUtilsModule.isExactQuery(b)?SearchUtilsModule.fuzzySearchInCaseOfNoResult(b,z):(1<p.length?(d({type:"SEARCH_BY_QUERY",payload:{results:p[0],meta:B[0],loading:!1}}),d({type:"UPDATE_PROMOTED",payload:{promotedResults:p[p.length-1]}})):"support"!==SearchUtilsModule.searchURLQueryParameter("docType")&&
35d({type:"SEARCH_BY_QUERY",payload:{results:p[0],meta:B[0],loading:!1}}),A&&0<A.length&&d({type:"FACETS_INIT",payload:{facets:A[0],loading:!1}}))):(d({type:"SEARCH_BY_QUERY",payload:{results:w.results,meta:w.meta,loading:!1}}),w.facets&&d({type:"FACETS_INIT",payload:{facets:w.facets,loading:!1}}));x.jumpToEnd()}})}}})(window);
36(function(){var a={init:function(){this.cacheDom();this.searchParams=SearchUtilsModule.getQueryParams();var k=document.getElementById("general-fields").dataset.searchgroupby?!1:!0,c=this.searchParams?this.searchParams.search?this.searchParams.search:"":"",e=this.searchParams?this.searchParams.filters?this.searchParams.filters:"":void 0,f=this.$isMultiSelectFacetEnabled?{all:e?SearchUtilsModule.getFilterObjectLoad(e,"/","|"):[]}:{all:e?SearchUtilsModule.getFilterObject(e,"/","|"):[]},g=this.searchParams?
37this.searchParams.docType?this.searchParams.docType:"":"";if("sps"==SearchUtilsModule.checkSbgName()){if(1!=SearchUtilsModule.checkSession()||"function"!==typeof hasEcommerceAccess||hasEcommerceAccess())"HybrisSku"==g&&0==SearchUtilsModule.checkSession()&&(g="Sku"),"Product"!=g&&"Sku"!=g||1!=SearchUtilsModule.checkSession()||(g="HybrisSku");else if("HybrisSku"===g||"Product"===g)g="Product";SearchUtilsModule.updateURLParameter("docType",g)}var l=this.searchParams?this.searchParams.dateFilter?this.searchParams.dateFilter:
38"":void 0,m=this.searchParams?this.searchParams.tab?this.searchParams.tab:"":void 0,n=[];this.searchParams&&this.searchParams.dateFilter&&(n=SearchUtilsModule.onLoadDateRange(l),f.all.push(n),n=l.split(":")[1].split(",").join(" - "),LoadDateRangePicker.initDateRangePicker(!1,n));var q=JSON.parse(JSON.stringify(searchStore.getState()));l=SearchUtilsModule.HasCode(q);var u=[];
38this.$facetSettings&&(this.$facetSettings.forEach(function(t){var z=t.name,w=t.value,p=t.dataset;t=p.facetresultsalphabeticalsorting;
39var B=p.iscollapsible,C=p.facetrequired,A=p.enablefacetsearch,x=p.facettype,y=p.facetstyle,D=p.facetsubgroup1,E=p.facetsearchlabel,F=p.includetabfilters,G=p.excludetabfilters,H=p.matchanytabfilters,I=p.defaulttab,J=p.isfederated,K=p.iscommerceenabled;p=p.enableradiobutton;var r={};u.push((r.id=z.toLocaleLowerCase().replaceAll(/[ _:/]/g,"_"),r.active=k,r.label=z,r.type=x,r.key=w,r.sub_key1=D,r.facetrequired=C,r.enablefacetsearch=A,r.facetresultsalphabeticalsorting=t,r.iscollapsible=767>window.screen.width?
40"true":B,r.facetstyle=y,r.facetsearchlabel=E,r.includetabfilters=F,r.excludetabfilters=G,r.matchanytabfilters=H,r.defaulttab=I,r.isfederated=J,r.iscommerceenabled=K,r.enableradiobutton=p,r))}),this.allFacetList=u,this.facets=SearchUtilsModule.getFacetsRequestObject(u),m=SearchUtilsModule.getTabFilterList(this.$facetSettings,m),this.activeTabFilterList=m.activeTabFilterList,this.tabFilterList=m.tabFilterList,this.federatedValue=m.federatedValue,e&&this.$isMultiSelectFacetEnabled&&SearchUtilsModule.getAppliedFacetList(e,
41this.facetSelected,this.addRemoveFacet),0<Object.keys(this.activeTabFilterList).length&&SearchUtilsModule.updateURLParameter("tab",this.activeTabFilterList.id),this.$dateRangePicker&&(this.general=JSON.parse(JSON.stringify(this.$dateRangePicker.dataset))));this.initState.general=JSON.parse(JSON.stringify(this.$general_fields.dataset));m=SearchUtilsModule.filtersBuildResultUsing();e=m.filters;this.initState.nested_filters=m.nested_filters;this.initState.sortBy=SearchUtilsModule.getDatasetFromNodeList(Array.from(this.$sort_by_fields));
42(m=SearchUtilsModule.getSortBy(this.initState.sortBy))&&"relevance"!==Object.keys(m)[0]?this.initState.sortBy.push({sortByLabel:"Relevance",sortByProperty:"relevance",isDefault:"false",sortByOrder:"desc"}):this.initState.sortBy.push({sortByLabel:"Relevance",sortByProperty:"relevance",isDefault:"true",sortByOrder:"desc"});q="false"===JSON.parse(JSON.stringify(q.search_box.init)).disableexactmatch?!0:!1;c="undefined"!==typeof SecurityChecker?(new SecurityChecker(c)).escapeHtml().removeUrlProtocol().sanitize().getResult():
43c;c=SearchUtilsModule.processQuery(c,q);q=Array.from(this.$custom_result_fields).map(function(t){return Object.assign({},t.dataset)});q=SearchUtilsModule.handleCommaSeparatedValues(q,"documentType");this.initState.result_views_map=SearchUtilsModule.groupBy(q,"documentType");this.initState.result_urls_map=SearchUtilsModule.getDatasetFromNodeList(Array.from(this.$result_urls));this.initState.group=SearchUtilsModule.getSearchGroupBy(this.$general_fields.dataset,m);c&&SearchUtilsModule.showAllContentLoader();
44var v=SearchUtilsModule.getActiveTabFilters();q=v.filters;v=v.isfederated;0<Object.keys(q).length&&(e=q);"true"==this.isSearchBoxDisplayed.value&&this.searchBarDropDown&&(g?SearchUtilsModule.setFiltersBySearchBarDropDown(g,e):(g=SearchUtilsModule.getDefaultDrpValue(),SearchUtilsModule.setFiltersBySearchBarDropDown(g,e)));searchStore.dispatch(window.init_search_results({query:c,filters:e,generalDatePicker:this.general,selectedtabfilters:this.activeTabFilterList,facetList:this.facets,tabfilterList:this.tabFilterList,
45type:"multi-search",cacheKey:"search_results:init:"+l,selectedfilters:f,init:this.initState,sortBy:m,isfederated:v,isMultiSelectFacetEnabled:this.$isMultiSelectFacetEnabled,dateRange:n,initFacet:u}));this.bindEvents();searchStore.subscribe(this.render)},cacheDom:function(){this.results={};this.initState={nested_filters:{all:[],any:[],none:[]},result_views_map:{},general:{},result_urls_map:[],sortBy:[],group:{}};this.$general_fields=document.querySelector(".swiftype-result.v2 #general-fields");this.$sort_by_fields=
46document.querySelectorAll(".swiftype-result.v2 .sort-by-fields");this.$result_urls=document.querySelectorAll(".swiftype-result.v2 .result-urls");this.$custom_result_fields=document.querySelectorAll(".swiftype-result.v2 .custom-result-fields");this.$sort_field=document.querySelector(".swiftype-result.v2 .sort-wrap--desktop");this.$sortBy_relevance=document.querySelector(".swiftype-result.v2 .sort-wrap--desktop .sort-option--relevance");this.$search_result_wrapper=document.querySelector(".cmp-search-results-v2__wrapper");
47this.$load_more=document.querySelector(".cmp-search-result-v2 .btn_load_more #load-more");this.$sort_by_mobile=document.querySelector(".cmp-search-result-v2 .bt-sort-wrap--mobile select");this.$result_mobile_carat=document.querySelector(".cmp-search-result-v2 .resultMobileBtn");this.$isMultiSelectFacetEnabled=document.querySelector(".cmp-search-facet-v2")?"true"==document.querySelector(".cmp-search-facet-v2").dataset.facetselect?!0:!1:!1;this.isSearchBoxDisplayed=document.querySelector(".cmp-search-box-v2 #search-box-display-dropdown");
48this.searchBarDropDown=document.querySelector(".cmp-search-box-v2 select.docType");this.tabFilterList=[];this.facetSelected=[];this.federatedValue=!1;this.activeTabFilterList={};this.general={};this.allFacetList=[];this.filters=JSON.parse(JSON.stringify(searchStore.getState().search_facets.selectedfilters));this.facets={};this.addRemoveFacet=[];this.$facetGroup=document.querySelector(".cmp-search-facet-v2 #swiftype-search-facets-v2");this.$facetItemInput=document.querySelector(".panel__custom-control__input");
49this.$allFacetInput=document.querySelectorAll(".panel__custom-control__input");this.$clearFilter=document.querySelector(".panel .panel__clear");this.$facetSettings=document.querySelectorAll(".cmp-search-facet-v2 .filter-settings");this.$dateRangePicker=document.querySelector(".cmp-search-facet-v2 .cmp-date-range-picker")},bindEvents:function(){var k=function(c){if(c){c=c.closest(".product-resources--row");var e=c.getElementsByClassName("search-resource-wrapper"),f=c.dataset?parseInt(c.dataset.resSize):
500,g=parseInt(c.getAttribute("data-page-index"));c.setAttribute("data-page-index",g+1);if(3*g<=f){var l=parseInt(3*g);Array.from(e).forEach(function(m,n){n>=l&&n<l+3&&(m.classList.contains("d-none")?m.classList.remove("d-none"):null)})}0>=f-3*(g+1)&&c.querySelector(".load-more").classList.add("d-none")}};this.$sort_field.addEventListener("click",function(c){$sort_option=document.querySelectorAll(".swiftype-result.v2 .sort-wrap--desktop .sort-option");var e=c.target.innerText;if(""!==e){"undefined"!==
51typeof Search_Event&&(Search_Event.searchBySort=e);e=SearchUtilsModule.HasCode(searchStore.getState());c.target.closest(".sort-option")&&($sort_option.forEach(function(m){m.classList.contains("active")&&m.classList.remove("active")}),c.target.closest(".sort-option").classList.add("active"));var f=c.target.getAttribute("data-sort-by-prop"),g=c.target.getAttribute("data-sort-by-order"),l={};g=(l[f]=g,l);GDM_Global_Datalayer._isDatalayerFlagEnabled()&&Search_Clicked_Events._updateResultOnSort(f);l=JSON.parse(JSON.stringify(searchStore.getState().common_search.request.page.size));
52"relevance"==f?searchStore.dispatch(window.sortSearchResult({size:l,type:"multi-search",cacheKey:"search_results:sortBy:"+e,sortBy:null})):c.target.closest(".sort-option")&&(SearchUtilsModule.showAllContentLoader(),searchStore.dispatch(window.sortSearchResult({size:l,type:"multi-search",cacheKey:"search_results:sortBy:"+e,sortBy:g})))}});this.$search_result_wrapper.addEventListener("click",function(c){this.filters=JSON.parse(JSON.stringify(searchStore.getState().search_facets.selectedfilters));var e=
53c.target.classList.contains("search-result-details__result-tag")?c.target:null,f=c.target.classList.contains("show-text")?c.target:null,g=c.target.classList.contains("seemore-resource")?c.target:null;c=c.target.classList.contains("carat-icons")?c.target:null;var l=JSON.parse(JSON.stringify(searchStore.getState())),m=SearchUtilsModule.HasCode(searchStore.getState());if(e){SearchUtilsModule.showAllContentLoader();var n=e.dataset.property,q=e.dataset.value,u=[];e={};u.push(n);var v=l.common_search.isMultiSelectFacetEnabled;
54SearchUtilsModule.createFilter(v,this.filters.all,n,q,{},!1);m="search_filter_breadcrumb_cache_key:"+m+":add:"+n+":"+q;q=JSON.parse(JSON.stringify(searchStore.getState().common_search.request.page.size));this.filters.all=SearchUtilsModule.uniqBy(this.filters.all,JSON.stringify);v&&(e=SearchUtilsModule.isPresentInFacet(n,l)?SearchUtilsModule.getAllFacet(e,l):SearchUtilsModule.getFacetSelect(u,v,l,e));l=SearchUtilsModule.getSubFacetGroupRequest(l.search_facets.init,l);this.$isMultiSelectFacetEnabled?
55(u=this.filters.all.map(function(t){return Object.keys(t)[0]+"/"+t[Object.keys(t)[0]].join("~")}).join("|"),SearchUtilsModule.updateURLParameter("filters",u)):(u=this.filters.all.map(function(t){return Object.keys(t)[0]+"/"+t[Object.keys(t)[0]]}).join("|"),SearchUtilsModule.updateURLParameter("filters",u));v&&0<Object.keys(e).length?searchStore.dispatch(window.selectFilter({selectedfilters:this.filters,requestList:l,size:q,type:"multi-search",cacheKey:m,isMultiSelectFacetEnabled:v,facetClicked:n,
56facetList:e})):searchStore.dispatch(window.selectFilter({selectedfilters:this.filters,requestList:l,size:q,type:"multi-search",cacheKey:m,isMultiSelectFacetEnabled:v}))}f?(g=f.closest(".show-more-fields").querySelector(".show-more-hidden-fields"),g.classList.contains("hidden")?(g.classList.toggle("hidden"),f.textContent="Show Less",f.parentElement.querySelector(".carat-icons").classList.remove("mvp-icon-carat_down"),f.parentElement.querySelector(".carat-icons").classList.add("mvp-icon-carat_up")):
57(g.classList.toggle("hidden"),f.textContent="Show More",f.parentElement.querySelector(".carat-icons").classList.remove("mvp-icon-carat_up"),f.parentElement.querySelector(".carat-icons").classList.add("mvp-icon-carat_down"))):c?(f=c.closest(".show-more-fields").querySelector(".show-more-hidden-fields"),g=c.closest(".show-more").querySelector(".show-text"),f.classList.contains("hidden")?(f.classList.toggle("hidden"),g.textContent="Show Less",g.parentElement.querySelector(".carat-icons").classList.remove("mvp-icon-carat_down"),
58g.parentElement.querySelector(".carat-icons").classList.add("mvp-icon-carat_up")):(f.classList.toggle("hidden"),g.textContent="Show More",g.parentElement.querySelector(".carat-icons").classList.remove("mvp-icon-carat_up"),g.parentElement.querySelector(".carat-icons").classList.add("mvp-icon-carat_down"))):g&&k(g)});this.$load_more.addEventListener("click",function(c){if("undefined"!==typeof Analytics_Util){var e=Analytics_Util._getPageInfo();e.tenantPath&&e.tenantPath.toLowerCase().includes("hbtbt")&&
59Analytics_Util._pushAnalyticsEvent({events:"event153",linkType:"o",linkName:"Load More CTA Clicked on Search Tracking"})}var f=searchStore.getState().common_search.request.page;e=f.size;f=f.current;c.target&&(c.target.dataset.pagenum=f++,c.target.classList.add("loading"));c=SearchUtilsModule.HasCode(searchStore.getState());searchStore.dispatch(window.loadMoreSearchResult({current:f,size:e,type:"multi-search",cacheKey:"search_load_more_cache_key:"+c+":"+f}))});this.$sort_by_mobile.addEventListener("change",
60function(c){c=Math.abs(JSON.stringify(window.searchStore.getState().common_search).hashCode())+":"+Math.abs(JSON.stringify(window.searchStore.getState().search_facets).hashCode());var e=this.value,f=this.options[this.selectedIndex].getAttribute("data-sort-by-order"),g=JSON.parse(JSON.stringify(window.searchStore.getState().common_search.request.page.size)),l={};f=(l[e]=f,l);"relevance"==e?searchStore.dispatch(window.sortSearchResult({size:g,type:"multi-search",cacheKey:"search_results:sortBy:"+c,
61sortBy:null})):searchStore.dispatch(window.sortSearchResult({size:g,type:"multi-search",cacheKey:"search_results:sortBy:"+c,sortBy:f}))});this.$result_mobile_carat.addEventListener("click",function(c){c=this.querySelector(".result-carat");c.classList.contains("mvp-icon-carat_down")?(c.classList.remove("mvp-icon-carat_down"),c.classList.add("mvp-icon-carat_up")):(c.classList.remove("mvp-icon-carat_up"),c.classList.add("mvp-icon-carat_down"))})},render:function(){var k=function(){var m=$(".promoted-faqs-accordion .promoted-accordion__container \x3e .promoted-accordion__content").hide();
62$(".promoted-faqs-accordion .promoted-accordion__container \x3e .promoted-accordion__title-container").click(function(){m.slideUp();$(this).siblings(".promoted-accordion__content");$(this).parent().toggleClass("active").siblings().removeClass("active");$(m).each(function(n){$(this).siblings(".promoted-accordion__title-container").children(".promoted-accordion__title-icon").removeClass("mvp-icon-carat_up");$(this).siblings(".promoted-accordion__title-container").children(".promoted-accordion__title-icon").addClass("mvp-icon-carat_down")});
63$(this).next().parent().hasClass("active")?($(this).next().slideDown(),$(this).children(".promoted-accordion__title-icon").hasClass("mvp-icon-carat_down")?($(this).children(".promoted-accordion__title-icon").removeClass("mvp-icon-carat_down"),$(this).children(".promoted-accordion__title-icon").addClass("mvp-icon-carat_up")):($(this).children(".promoted-accordion__title-icon").removeClass("mvp-icon-carat_up"),$(this).children(".promoted-accordion__title-icon").addClass("mvp-icon-carat_down"))):$(this).children(".promoted-accordion__title-icon").hasClass("mvp-icon-carat_down")||
64($(this).children(".promoted-accordion__title-icon").removeClass("mvp-icon-carat_up"),$(this).children(".promoted-accordion__title-icon").addClass("mvp-icon-carat_down"));return!1})};SearchUtilsModule.renderSortBy(searchStore.getState().common_search.request);var c=JSON.parse(JSON.stringify(searchStore.getState())),e=document.querySelector(".number-of-results .display-items"),f=SearchUtilsModule.updateNumberOfResults(c);e.textContent=f;if(e=document.querySelector(".cmp-search-result-v2 .no-search-result-section")){f=
65document.querySelector(".cmp-search-result-v2 .search-page-error");var g=document.querySelector(".cmp-search-result-v2 .error-account-text");c.search_results.results&&0===c.search_results.results.length?(f.innerHTML="\x3cstrong\x3e"+c.common_search.request.query+"\x3c/strong\x3e",e.classList.remove("d-none"),SearchUtilsModule.hideFuzzyMessage(),0==SearchUtilsModule.checkSession()&&g&&g.remove()):e.classList.add("d-none")}if(document.querySelector("#search-results-handlebar-template")){e=document.querySelector("#search-results-handlebar-template").innerHTML;
66e=window.Handlebars.compile(e)(c);f=document.querySelector("#swiftype-search-results-v2");f.innerHTML="";f.innerHTML=e;e=$('.gdm-sign-in [name\x3d"sbg_name"]').val();var l=document.querySelector(".cmp-search-result-v2 .btn_load_more #load-more");SearchUtilsModule.isLoadMoreEnabled(c)?(l.classList.remove("d-none"),l&&l.classList.contains("loading")&&("hbtbt"!=e&&"sps"!=$('input[name\x3d"sbg_name"]').val()||!hasEcommerceAccess()||(c.search_results.meta.page.current+=1),c.common_search.request.page.current===
67c.search_results.meta.page.current&&setTimeout(function(){l.classList.remove("loading")},1E3))):l.classList.add("d-none")}void 0!=SearchUtilsModule.getQueryParams()&&void 0!=SearchUtilsModule.checkSession()&&"Sku"==SearchUtilsModule.getQueryParams().docType&&"sps"==$('.gdm-sign-in [name\x3d"sbg_name"]').val()&&1!=SearchUtilsModule.checkSession()&&($(".search-result-details__result-name-wrap").each(function(){var m=$(this),n=m.find(".product-detail-page-url a").attr("href"),q=m.find(".result-name a").text().trim();
68n&&q&&(n=n+"?sku\x3d"+q+"#part-number",m.find(".result-name a").attr("href",n),m.find(".result-name").removeClass("no-hover-hbt"),m=m.closest(".search-result-wrap").find(".result-img-wrap").find("img"),m.parent().is("a")?m.parent("a").attr("href",n):m.wrap('\x3ca href\x3d"'+n+'"\x3e\x3c/a\x3e'))}),$(".search-result-details__doc-type").each(function(){"PRODUCT"===$(this).text().trim()&&$(this).text("PART NUMBER")}));if(e=document.querySelector("#promoted-results-handlebar-template")){c=window.Handlebars.compile(e.innerHTML)(c);
69if(e=document.querySelector("#swiftype-promoted-search-results-v2"))e.innerHTML="",e.innerHTML=c;k()}k=document.querySelectorAll(".search-result-details__result-name-wrap");(c=document.querySelectorAll(".cmp-search-result-v2 div.resource-title"))&&Search_Clicked_Events._getAssociatedProductsTracking(c);k&&SearchUtilsModule.adobeResultClickEvent(k);k=document.querySelectorAll(".cmp-search-result-v2 .search-result-wrap .search-result-details__showMeEllipsis");SearchUtilsModule.tagsShowMeEllipsis(k)}};
70document.querySelector(".cmp-search-result-v2")&&(SearchUtilsModule.initSearchEnabled()&&!SearchUtilsModule.getQueryParams()||SearchUtilsModule.showSearchElements(),a.init());a=$("#dynamicCatalogueEnabled").val();var b="undefined"!==typeof DPC_Handler&&DPC_Handler._isDPCApplicableForAuthenticatedUser(),d=!1,h="";"undefined"!==typeof PIF_Endpoints&&(d=-1!=document.cookie.indexOf(PIF_Endpoints._getDomainId()+"-isAuthenticated"),h=PIF_Endpoints._getSbgName());"true"==a&&null!=document.querySelector(".cmp-search-box-v2 .search-input__search-bar")&&
71("hbtbt"==h&&!d||"hbtbt"!=h&&!b)?setTimeout(function(){showDynamicProductCatelogeMessage()},0):$(".Dynamic-catalog").addClass("d-none")})();$(document).on("click",".sku-products .mvp-icon-slider_minus",function(){$(this).parent().find(".collapse").removeClass("show");$(this).addClass("collapsed")});$(document).on("click",".sku-products .mvp-icon-slider_minus.collapsed",function(){$(this).parent().find(".collapse").addClass("show");$(this).removeClass("collapsed")});

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.