1"use strict";Shopify.theme.jsRecommendedProducts={init:function($section){Shopify.theme.jsRecommendedProducts=$.extend(this,Shopify.theme.getSectionData($section));var $productRecommendations=$section.find(".product-recommendations"),$productRecommendationsContainer=$("[data-product-recommendations-container]"),$productRecommendationsBlock=$productRecommendationsContainer.closest(".block__recommended-products");if(this.show_product_recommendations===!1){$productRecommendationsBlock.hide();return}$(".recommended-products-section").show(),$productRecommendationsBlock.show();var productId=$productRecommendations[0].dataset.productId,limit=$productRecommendations[0].dataset.limit,sectionEnabled=$productRecommendations[0].dataset.enabled;if(this.show_custom_collection){this.showCustomCollection($section);return}var requestUrl="/recommendations/products?section_id=product__recommendations&limit="+limit+"&product_id="+productId,request=new XMLHttpRequest;request.open("GET",requestUrl),request.onload=function(){if(request.status>=200&&request.status<300){if(!sectionEnabled){$productRecommendationsContainer.empty();return}var $recommendedProductsElement=$(request.response).find(".product-recommendations").html();$productRecommendationsContainer.html($recommendedProductsElement),$(".recommended-products-section").hide(),Shopify.theme.jsProduct.relatedProducts();var $product=$productRecommendationsContainer.find(".thumbnail");$product.length===0&&$productRecommendationsBlock.hide(),Currency.show_multiple_currencies&&convertCurrencies()}},request.send()},showCustomCollection:function($section){var $recommendedProductsElement=$section.find(".product-recommendations").html(),$productRecommendationsContainer=$("[data-product-recommendations-container]");$productRecommendationsContainer.html($recommendedProductsElement),$(".recommended-products-section").hide(),Shopify.theme.jsProduct.relatedProducts()},unload:function($section){}}; 2//# sourceMappingURL=/cdn/shop/t/26/assets/z__jsRecommendedProducts.js.map?v=134109229453661836221732226532
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.