PageSourceSearch

https://www.laclinica.com/cdn/shop/t/113/assets/bc-sf-search.js?v=24364773981242210531727061133

js laclinica.com collected 2026-09-26 13:51:12 UTC 5,288 bytes, 2 lines download raw bytes

1var bcSfSearchSettings={search:{}};BCSfFilter.prototype.initSearchBox=function(id){if(this.getSettingValue("search.enableSuggestion")){var self=this;typeof id>"u"?(jQ('input[name="'+this.searchTermKey+'"]').each(function(i){if(!jQ(this)[0].hasAttribute("data-no-bc-search")){var id2="bc-sf-search-box-"+i;jQ(this).attr({id:id2,"aria-live":"polite",placeholder:self.getSettingValue("label.suggestion.searchBoxPlaceholder")}),self.buildSearchBox("#"+id2)}}),$('.blog-sidebar-search input[type="text"]').attr("placeholder","Search our articles\u2026")):this.buildSearchBox(id),this.isMobile()&&(window.onpageshow=function(event){event.persisted&&window.location.reload()},this.getSettingValue("search.suggestionMobileStyle")=="style1"&&this.buildSuggestionMobile())}},BCSfFilter.prototype.checkIsFullWidthSuggestionMobile=function(a){return a=="bc-sf-search-box-1"||a=="#bc-sf-search-box-1"?!1:!(!this.isMobile()||this.getSettingValue("search.suggestionMobileStyle")!="style1")},BCSfFilter.prototype.afterShowSearchBoxMobile=function(searchBoxId){jQ("#SearchDrawer").hide(),jQ(".bc-sf-search-suggestion-mobile-overlay").hide(),jQ("body").addClass("open-search-mobile");let heightTopBar=jQ(".shipsell-calculator").outerHeight(),heightTopBarAndSearch=heightTopBar+61;jQ(".bc-sf-search-suggestion-mobile-top-panel").css("top",heightTopBar),jQ(".bc-sf-search-suggestion-mobile.bc-sf-search-suggestion-wrapper").attr("style","top: "+heightTopBarAndSearch+"px !important; height: calc(100% - "+heightTopBarAndSearch+"px) !important")},BCSfFilter.prototype.customizeSuggestion=function(suggestionElement,searchElement,searchBoxId){jQ(".predictive-search-wrapper").length>0&&jQ(".predictive-search-wrapper").hide();let heightTopBar=jQ(".shipsell-calculator").outerHeight(),heightTopBarAndSearch=heightTopBar+61;jQ(".bc-sf-search-suggestion-mobile-top-panel").css("top",heightTopBar),jQ(".bc-sf-search-suggestion-mobile.bc-sf-search-suggestion-wrapper").attr("style","top: "+heightTopBarAndSearch+"px !important; height: calc(100% - "+heightTopBarAndSearch+"px) !important")};function closeSuggestionMobile(searchBoxId,isCloseSearchBox){jQ(searchBoxId).autocomplete("close"),jQ("."+bcsffilter.class.searchSuggestion+'[data-search-box="'+searchBoxId+'"]').parent().hide();var isCloseSearchBox=typeof isCloseSearchBox<"u"?isCloseSearchBox:!1;isCloseSearchBox&&jQ(".bc-sf-search-suggestion-mobile-top-panel,.bc-sf-search-suggestion-mobile-overlay").hide(),setValueAllSearchBoxes(),jQ("body").hasClass(bcsffilter.getClass("searchSuggestionMobileOpen"))&&jQ("body").removeClass(bcsffilter.getClass("searchSuggestionMobileOpen")),jQ(".js-drawer-close").length>0&&jQ(".js-drawer-close").trigger("click"),jQ("#SearchDrawer").show(),bcsffilter.afterCloseSuggestionMobile(searchBoxId,isCloseSearchBox)}BCSfFilter.prototype.buildSuggestionProductList=function(searchTerm,itemData,ul,itemInfo,suggestionData){var self=this,result="";result+=this.buildSuggestionHeader(itemInfo.label,"product");var dym=this.buildSuggestionDidYouMean(searchTerm,suggestionData,ul);if(dym!=""&&(result+='<li class="'+this.class.searchSuggestionItem+' bc-sf-search-suggestion-dym" aria-label="Did you mean">'+dym+"</li>"),Object.keys(itemData).length>0){var k,itemDataLength=itemData.length;for(k=0;k<itemDataLength;k++){var product=itemData[k],productTitle=this.customizeSuggetionProductTitle(product.title,searchTerm,itemData);productTitle=this.highlightSuggestionResult(productTitle,searchTerm);var productUrl=this.buildProductItemUrl(product,!1),productThumb=product.images_info.length>0?this.optimizeImage(product.images_info[0].src,"200x"):bcSfFilterConfig.general.no_image_url,productSku=product.skus!==null&&product.skus.length>0?product.skus[0]:"",searchSuggestionClass=this.class.searchSuggestion,newTabAttr=this.getSettingValue("search.openProductNewTab")?'target="_blank"':"";result+='<li class="'+this.class.searchSuggestionItem+" "+this.class.searchSuggestionItem+'-product" data-label="'+this.escape(product.id)+'" data-value="'+this.escape(product.title)+'" aria-label="'+this.escape(itemInfo.label)+": "+this.escape(product.title)+'">',result+='<a href="'+productUrl+'" '+newTabAttr+">
1",this.getSettingValue("search.showSuggestionProductImage")&&(result+='<div class="'+searchSuggestionClass+'-left"><img src="'+productThumb+'" /></div>'),this.getProductMetafield(product,"accentuate","volume")&&(productTitle+=" "+this.getProductMetafield(product,"accentuate","volume")),result+='<div class="'+searchSuggestionClass+'-right">',this.getProductMetafield(product,"accentuate","category")&&(result+='<div class="'+searchSuggestionClass+'-product-vendor">'+this.getProductMetafield(product,"accentuate","category")+"</div>"),result+='<div class="'+searchSuggestionClass+'-product-title">'+productTitle+"</div>",this.getSettingValue("search.showSuggestionProductSku")&&(result+='<div class="'+searchSuggestionClass+'-product-sku">SKU: '+productSku+"</div>"),this.getSettingValue("search.showSuggestionProductVendor")&&(result+='<div class="'+searchSuggestionClass+'-product-vendor">'+product.vendor+"</div>"),result+=this.buildSuggestionProductPrice(product),result+="</div>",result+="</a>",result+="</li>"}}return result};
2//# sourceMappingURL=/cdn/shop/t/113/assets/bc-sf-search.js.map?v=24364773981242210531727061133

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.