1"use strict";var productSearchBox_constant={urlPaths:{services:{saveCatalogNodeSelected:"Services/scProductSearchBox/SaveCatalogNodeSelected"}}};$(document).ready(function(){var e=function(e,t,a){this.element=e,this.controlId=t,this.currentPageUrl=a,this.formName=$(this.element).data("form-name"),this.dataRequest=_.isUndefined(angular.element("body").injector())?{}:new(angular.element("body").injector().get("dataRequest_factory").dataRequest)(this.controlId,this.currentPageUrl),this.init()};e.prototype={constructor:e,init:function(){var e=this;e.initialize(),e.bindEvents()},initialize:function(){var e=$(".sc-js-product-search-box",self.element),t=$(".sc-js-product-search-box .sc-js-select",self.element),a=$(".sc-js-product-search-box .search-box-input-ul",self.element),n=$("input[name=productSearchInput]",self.element).val();t.val(e.data("catalog-id")+"-"+e.data("selected-node-id")),_.isEmpty(n)||_.isNull(n)||a.removeClass("hide")},cacheVerification:function(){var e=this,t={url:productSearchBox_constant.urlPaths.actions.getViewModel,controlID:e.controlId,currentPageUrl:e.currentPageUrl};mainService_jquery.verifyCachedPage(t,function(){})},bindEvents:function(){var e=this;$("input[name=productSearchInput]",e.element).off("input").on("input",function(){if(rootScope_jquery.isMobile){var t=$(".sc-js-product-search-box",e.element),a=$(".search-box-input-ul",t),n=$(".sc-js-dropdown-menu",e.element),o=$("input[name=productSearchInput]",e.element).val();_.isEmpty(o)||_.isNull(o)?(a.text(""),n.addClass("hide"),t.removeClass("open")):(a.removeClass("hide"),n.removeClass("hide"),a.text('"'+o+'"'),t.addClass("open"))}}),$("input[name=productSearchInput]",e.element).focus(function(){if(rootScope_jquery.isMobile){$(this);var t=$(".sc-js-dropdown-menu",e.element),a=$("input[name=productSearchInput]",e.element).val();_.isEmpty(a)?t.addClass("hide"):t.removeClass("hide")}}),$(".sc-js-select",e.element).off("change").on("change",function(){e.saveSelectedCatalogNode($(this))}),$('[name="'+e.formName+'"]',e.element).on("submit",function(){e.submitAction(!1)}),$(".sc-js-button-hybrid-form",$($('[name="'+e.formName+'"]',e.element))).on("click touch",function(){e.submitAction(!1)}),$(".sc-m-input-button__catalog-filter",$($('[name="'+e.formName+'"]',e.element))).on("click touch",function(){e.submitAction(!0)}),$("[name=SLIForm]",e.element).on("submit",function(){SliSearchById("sli_search_1")})},submitAction:function(e){var t=$(".sc-js-product-search-box",self.element),a=$(".sc-js-product-search-box .sc-js-select",self.element),n=$("option:selected",a),o=$("input[name=productSearchInput]",self.element).val();if(!_.isEmpty(o)){var c=t.data("isotherprodsearch"),s=t.data("results-url"),i=[],r="searchCriteria",l=o;if("True"!=c){var u=o.replace(/[&*|:%+'<>]/g,""),d=n.data("catalog-path");_.isEmpty(u)||(s+="/1/",(rootScope_jquery.isMobile&&e||!rootScope_jquery.isMobile&&!_.isEmpty(d))&&(s+="cp_/"+d),rootScope_jquery.isMobile&&!e&&a.has("option").length>0&&a.prop("selectedIndex",0).change()),l=u}else if(s.indexOf("?")>=0){var m=s.indexOf("?"),h=s.slice(m,s.length);s=s.slice(0,m);var p=h.substring(h.indexOf("?")+1);m=p.indexOf("="),r=p.slice(0,m)}else r="";i=[{key:r,value:l}],mainService_jquery.buildQueryString(s,i)}},saveSelectedCatalogNode:function(e){var t=this,a=$("option:selected",$(e)),n={CatalogID:$(e).val(),NodeID:a.data("node-id"),CatalogURLPath:a.data("catalog-path"),Description:a.text()};t.dataRequest.callService(productSearchBox_constant.urlPaths.services.saveCatalogNodeSelected,n,"POST")}},$(".sc-js-instance-product-search-box",$("body")).each(function(t,a){new e($(a),$(a).data("control-id"),$(a).data("current-page-url"))})});
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.