1var bcSfSearchSettings={search:{}};BCSfFilter.prototype.customizeSuggestion=function(suggestionElement,searchElement,searchBoxId){},BCSfFilter.prototype.beforeBuildSearchBox=function(id){jQ(".live-search-form, .site-header-search-form").removeAttr("data-live-search-form"),jQ('input[name="q"]').removeAttr("data-live-search-input"),jQ("button.site-header-search-button.button-primary").prop("type","submit"),jQ("button.live-search-button.button-primary").prop("type","submit"),jQ(document).ready(function(){jQ(".live-search-form, .site-header-search-form").off(".search-form"),typeof bcHeaderSearch!="undefined"&&bcHeaderSearch.unload()})},BCSfFilter.prototype.prepareSearchParams=function(params,eventType){if(this.isSearchPage()){params.q=this.getSearchTerm(),this.searchTermKey!="q"&&delete params[this.searchTermKey];var enableFuzzy=this.getSettingValue("search.enableFuzzy");enableFuzzy!==!0&&(params.fuzzy=enableFuzzy),this.getSettingValue("search.reduceMinMatch")!==!1&&(params.reduce_min_match=this.getSettingValue("search.reduceMinMatch")),this.get
1SettingValue("search.fullMinMatch")&&(params.full_min_match=!0),this.getSettingValue("general.sortingAvailableFirst")&&(params.sort_first="available"),this.getSettingValue("search.enablePlusCharacterSearch")&&(params.enable_plus_character_search=!0),delete params.sort_first}return params};function submitSearchFormMobile(t,e){e.preventDefault();var o=bcsffilter.getSearchRedirectUrl(bcsffilter.currentTerm);o?window.location.href=o:jQ(t).closest("form").submit()}function beforeSubmitSearchForm(t,e){var o=jQ(t).val(),i=bcsffilter.getSearchRedirectUrl(o);i&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),window.location.href=i)}BCSfFilter.prototype.setSuggestionPosition=function(t){var e=this;if(typeof getSuggestionPosition=="function"&&typeof this.checkIsFullWidthSuggestionMobile=="function"){var o=getSuggestionPosition(t),i=this.checkIsFullWidthSuggestionMobile(t)?"top":"top+12";typeof e.isSuggestionStyle2!="function"||e.isSuggestionStyle2(),o=="left"?jQ(t).autocomplete("option","position",{my:"left "+i,at:"left bottom",collision:"none"}):jQ(t).autocomplete("option","position",{my:"right "+i,at:"right bottom",collision:"none"})}else this.getSettingValue("search.suggestionPosition")=="left"?jQ(t).autocomplete("option","position",{my:"left top+12",at:"left bottom",collision:"none"}):jQ(t).autocomplete("option","position",{my:"right top+12",at:"right bottom",collision:"none"});if(jQ(t).length>0&&jQ(t).on("keydown",function(o2){o2.keyCode==13&&e.enterSearchBoxEvent(t,o2)}),jQ(t).closest("form").length>0){var n=jQ(t).closest("form").find('[type="submit"]');n&&n.length>0&&n.each(function(e2,o2){o2.setAttribute("onclick","beforeSubmitSearchForm('"+t+"', event)")})}},BCSfFilter.prototype.enterSearchBoxEvent=function(t,e){var o=jQ(t).val(),i=this.getSearchRedirectUrl(o);i&&(e.preventDefault(),window.location.href=i)},BCSfFilter.prototype.getSearchRedirectUrl=function(t){if(this.suggestionCache&&this.suggestionCache.hasOwnProperty(t)){for(var e=this.suggestionCache[t],o=0;o<e.length;o++)if(e[o].key=="redirect"&&e[o].values){var i=e[o].values;return i=(i=i.replace("https://"+bcSfFilterMainConfig.shop.domain,"")).replace("http://"+bcSfFilterMainConfig.shop.domain,"")}}return""}; 2//# sourceMappingURL=/cdn/shop/t/143/assets/bc-sf-search.js.map?v=4019726690593859031750105715
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.