1(function(Shopify){Shopify.optionsMap={};Shopify.updateOptionsInSelector=function(selectorIndex){switch(selectorIndex){case 0:var key="root";var selector=jQuery(".single-option-selector:eq(0)");break;case 1:var key=jQuery(".single-option-selector:eq(0)").val();var selector=jQuery(".single-option-selector:eq(1)");break;case 2:var key=jQuery(".single-option-selector:eq(0)").val();key+=" / "+jQuery(".single-option-selector:eq(1)").val();var selector=jQuery(".single-option-selector:eq(2)")}var initialValue=selector.val();selector.empty();var availableOptions=Shopify.optionsMap[key];for(var i=0;i<availableOptions.length;i++){var option=availableOptions[i];var newOption=jQuery("<option></option>").val(option).html(option);selector.append(newOption)}if(jQuery.inArray(initialValue,availableOptions)!==-1){selector.val(initialValue)}selector.trigger("change")};Shopify.linkOptionSelectors=function(product){for(var i=0;i<product.variants.length;i++){var variant=product.variants[i];if(variant.available){Shopify.optionsMap["root"]=Shopify.optionsMap["root"]||[];Shopify.optionsMap["root"].push(variant.option1);Shopify.optionsMap["root"]=Shopify.uniq(Shopify.optionsMap["root"]);if(product.options.length>1){var key=variant.option1;Shopify.optionsMap[key]=Shopify.optionsMap[key]||[];Shopify.optionsMap[key].push(variant.option2);Shopify.optionsMap[key]=Shopify.uniq(Shopify.optionsMap[key])}if(product.options.length===3){var key=variant.option1+" / "+variant.option2;Shopify.optionsMap[key]=Shopify.optionsMap[key]||[];Shopify.optionsMap[key].push(variant.option3);Shopify.optionsMap[key]=Shopify.uniq(Shopify.optionsMap[key])}}}Shopify.updateOptionsInSelector(0);if(product.options.length>1)Shopify.updateOptionsInSelector(1);if(product.options.length===3)Shopify.updateOptionsInSelector(2);jQuery(".single-option-selector:eq(0)").change(function(){Shopify.updateOptionsInSelector(1);if(product.options.length===3)Shopify.updateOptionsInSelector(2);return true});jQuery(".single-option-selector:eq(1)").change(function(){if(product.options.length===3)Shopify.updateOptionsInSelector(2);return true})}})(Shopify||{});(function(Shopify){var BS4SF=Shopify.BS4SF||{};BS4SF.setupProductPage=function(product,options){if(product.variants.length<2){return}var $add=$("#product-add"),$price=$("#product-price");new Shopify.OptionSelectors("product-select",{product:product,onVariantSelected:function(variant,selector){if(!variant||!variant.available){$add.prop("disabled",true).addClass("disabled");$price.html(variant?"Sold Out":"Currently Unavailable");return}$add.prop("disabled",false).removeClass("disabled");var html="";if(variant.compare_at_price_max>variant.price){html+="<del>"+Shopify.formatMoney(variant.compare_at_price_max,options.money_with_currency_format)+"</del> "}html+=Shopify.formatMoney(variant.price,options.money_with_currency_format);if(options.show_sale_tag&&variant.compare_at_price_max>variant.price){html+=' <span class="label label-success">SALE</span>'}$price.html(html)}});if(product.options.length>1){Shopify.linkOptionSelectors(product)}};if(Shopify.OptionSelectors){var oldBuildSelectors=Shopify.OptionSelectors.prototype.buildSelectors;Shopify.OptionSelectors.prototype.buildSelectors=function(){this.selectorDivClass="form-group";this.selectorClass="single-option-selector form-control";return oldBuildSelectors.call(this)}}Shopify.BS4SF=BS4SF})(Shopify||{});
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.