1"use strict";Shopify.theme.jsProduct={init:function($section){Shopify.theme.jsProduct=$.extend(this,Shopify.theme.getSectionData($section));var $mainProductGallery=$section.find(".product-gallery__main"),$stickyElement=$section.find(".sticky-product-scroll");this.template==="image-scroll"?(isScreenSizeLarge()&&this.enableStickyScroll($stickyElement),this.enable_zoom&&this.enableZoom($mainProductGallery),this.enable_product_lightbox&&this.enableLightbox($mainProductGallery)):this.template==="classic"||this.template==="featured-product-section"?(this.enableSlideshow($mainProductGallery),this.enable_zoom&&this.enableZoom($mainProductGallery),this.enable_product_lightbox&&this.enableLightbox($mainProductGallery)):this.template==="sections"?(this.enableSlideshow($mainProductGallery),this.enable_zoom&&this.enableZoom($mainProductGallery),this.enable_product_lightbox&&this.enableLightbox($mainProductGallery)):this.template==="featured-slideshow"&&this.enableFeaturedSlideshow($mainProductGallery),$(".product_form_options").each(function(){new Shopify.OptionSelectors($(this).data("select-id"),{product:$(this).data("product"),onVariantSelected:selectCallback,enableHistoryState:$(this).data("enable-state")})}),window.location.search==="?contact_posted=true"&&($(".notify_form .contact-form").hide(),$(".notify_form .contact-form").prev(".message").html(Shopify.translation.notify_form_success));var $notify_form=$(".notify_form .contact-form");$notify_form.each(function(){var $nf=$(this);$nf.on("submit",function(e){$('input[name="challenge"]',$nf).val()!=="true"&&($.ajax({type:$nf.attr("method"),url:$nf.attr("action"),data:$nf.serialize(),success:function(data){$nf.fadeOut("slow",function(){$nf.prev(".message").html(Shopify.translation.notify_form_success)})},error:function(data){$('input[name="challenge"]',$nf).val("true"),$nf.submit()}}),e.preventDefault())})}),Shopify.theme_settings.product_form_style==="swatches"?this.enableProductSwatches():Shopify.theme_settings.product_form_style==="dropdown"&&$(".selector-wrapper select",$section).wrap('<span class="select"></span>'),$(".masonry--true").length>0&&Shopify.theme.applyMasonry(".thumbnail")},enableStickyScroll:function($el){var announcementHeight=0,headerHeight=0,galleryHeight=$(".product-gallery").outerHeight(),stickyProductDescriptionHeight=$(".sticky-product-scroll").outerHeight();galleryHeight>stickyProductDescriptionHeight&&(typeof Shopify.theme.jsAnnouncementBar!="undefined"&&Shopify.theme.jsAnnouncementBar.enable_sticky&&(announcementHeight=$("#announcement-bar").outerHeight()),Shopify.theme_settings.header_layout!="vertical"&&Shopify.theme.jsHeader.enable_sticky&&(headerHeight=$("#header").outerHeight()),$el.stick_in_parent({offset_top:announcementHeight+headerHeight+20}))},enableLightbox:function($el){$el.find(".product-gallery__link").fancybox()},enableZoom:function($el){$el.find("img").wrap('<span class="zoom-container"></span>').css("display","block").parent().zoom({touch:!1,magnify:1})},disableSlideshow:function($section){var $slider=$section.find(".flickity-enabled");$slider.flickity("destroy")},enableFeaturedSlideshow:function($el){var $gallery=$el.flickity({wrapAround:!0,setGallerySize:!1,dragThreshold:10,imagesLoaded:!0,pageDots:!1,prevNextButtons:this.product_images_amount>1?this.gallery_arrows:!1,autoPlay:this.slideshow_speed*1e3,arrowShape:arrowShape});$gallery.on("staticClick.flickity",function(event,pointer,cellElem,cellIndex){cellIndex!==void 0&&$gallery.flickity("select",cellIndex)})},enableSlideshow:function($el){var $thumbnailProductGallery=$el.parents(".product-gallery").find(".product-gallery__thumbnails");$el.flickity({wrapAround:!0,adaptiveHeight:!0,dragThreshold:10,imagesLoaded:!0,pageDots:this.product_images_amount>1,prevNextButtons:this.product_images_amount>1?this.gallery_arrows:!1,autoPlay:this.slideshow_speed*1e3,fade:this.slideshow_transition==="fade",arrowShape:arrowShape});var flkty=$el.data("flickity");if(this.enable_thumbnail_slider===!0&&this.product_images_amount>1)if(this.thumbnail_position=="right-thumbnails"||this.thumbnail_position=="left-thumbnails"){$thumbnailProductGallery.css("max-height",$el.closest("product-gallery").outerHeight());var $thumbnailNavCells=$thumbnailProductGallery.find(".product-gallery__thumbnail");$thumbnailProductGallery.on("click",".product-gallery__thumbnail",function(event){var index=$(event.currentTarget).index();$el.flickity("select",index)});var navCellHeight=$thumbnailNavCells.height(),navHeight=$thumbnailProductGallery.height();$el.on("select.flickity",function(){$thumbnailProductGallery.find(".is-nav-selected").removeClass("is-nav-selected");var $selected=$thumbnailNavCells.eq(flkty.selectedIndex).addClass("is-nav-selected"),scrollY=$selected.position().top+$thumbnailProductGallery.scrollTop()-(navHeight+navCellHeight)/2;$thumbnailProductGallery.animate({scrollTop:scrollY})})}else $thumbnailProductGallery.flickity({cellAlign:"center",contain:!0,groupCells:"80%",imagesLoaded:!0,pageDots:!1,prevNextButtons:this.product_images_amount>5?this.thumbnail_arrows:!1,asNavFor:$el[0],arrowShape:arrowShape}),setTimeout(function(){$thumbnailProductGallery.flickity("resize")},250);$(".product-gallery__thumbnail").on("click",function(e){var dataIndex=$(this).find("img").data("index");$el.flickity("select",dataIndex)})},enableProductSwatches:function(){if($("body").on("change",".swatch :radio",function(){var optionIndex=$(this).closest(".swatch").attr("data-option-index"),optionValue=$(this).val(),parentForm=$(this).closest(".product_form form");if(parentForm.siblings(".notify_form").length)var notifyForm=parentForm.siblings(".notify_form");else var notifyForm=$(".js-notify-form");var option1=parentForm.find(".swatch_options input:checked").eq(0).val(),option2=parentForm.find(".swatch_options input:checked").eq(1).val()||"",option3=parentForm.find(".swatch_options input:checked").eq(2).val()||"";if(option1&&option2&&option3)var notifyMessage=option1+" / "+option2+" / "+option3;else if(option1&&option2)var notifyMessage=option1+" / "+option2;else var notifyMessage=option1;notifyForm.find(".notify_form_message").attr("value",notifyForm.find(".notify_form_message").data("body")+" - "+notifyMessage),$(this).closest("form").find(".single-option-selector").eq(optionIndex).val(optionValue).trigger("change")}),$(".js-product_section").length){var $productForms=$(".js-product_section").find(".product_form");$productForms.addClass("is-visible"),$productForms.each(function(){var JSONData=$(this).data("product"),productID=$(this).data("product-id"),productSection=".product-"+productID+" .js-product_section",swatchOptions=$(this).find(".swatch_options .swatch");swatchOptions.length>1&&Shopify.linkOptionSelectors(JSONData,productSection)})}$(".js-product_section").length>1&&$("body").on("click",".swatch-element",function(){var swatchValue=$(this).data("value").toString();$(this).siblings('input[value="'+swatchValue.replace(/\"/g,'\\"')+'"]').prop("checked",!0).trigger("change");var JSONData=$(this).parents(".product_form").data("product"),productID=$(this).parents(".product_form").data("product-id"),productSection=".product-"+productID+" .js-product_section",swatchOptions=$(this).parents(".product_form").find(".swatch_options .swatch");swatchOptions.length>1&&Shopify.linkOptionSelectors(JSONData,productSection)})},scrollSelectedImage:function(variant){var headerHeight=0,announceHeight=0;Shopify.theme.jsHeader.enable_sticky==!0&&Shopify.theme_settings.header_layout!="vertical"&&(headerHeight=Shopify.theme.jsHeader.getHeaderHeight()),Shopify.theme.jsAnnouncementBar.enable_sticky==!0&&Shopify.theme_settings.header_layout!="vertical"&&(announceHeight=Shopify.theme.jsAnnouncementBar.getAnnouncementHeight());var totalHeight=headerHeight+announceHeight;Shopify.theme.scrollToTop($('[data-index="'.concat(variant,'"]')),totalHeight)},relatedProducts:function(){$(".js-related-products-slider .products-slider").each(function(index,value){var $relatedSli
1der=$(this),slideData={products_per_slide:$relatedSlider.data("products-per-slide"),products_available:$relatedSlider.data("products-available"),products_limit:$relatedSlider.data("products-limit"),initialIndex:0,cellAlign:"left",wrapAround:!0};slideData.products_available>slideData.products_per_slide&&slideData.products_limit>slideData.products_per_slide?slideData.wrapAround=!0:slideData.wrapAround=!1,slideData.products_available<slideData.products_per_slide||slideData.products_limit<slideData.products_per_slide?($relatedSlider.addClass("container is-justify-center"),$relatedSlider.find(".gallery-cell").addClass("column")):$relatedSlider.flickity({lazyLoad:2,freeScroll:!0,imagesLoaded:!0,draggable:!0,cellAlign:"center",wrapAround:slideData.wrapAround,pageDots:!1,contain:!0,prevNextButtons:slideData.products_limit>slideData.products_per_slide,initialIndex:slideData.initialIndex,arrowShape:arrowShape,on:{ready:function(){setTimeout(function(){$relatedSlider.flickity("resize")},500)}}})})},unload:function($section){$(".selector-wrapper select",$section).unwrap(),this.disableSlideshow($section)}}; 2//# sourceMappingURL=/cdn/shop/t/5/assets/z__jsProduct.js.map?v=181691395251842426961565270498
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.