1window.standard=window.standard||{},standard.cacheSelectors=function(){standard.cache={$html:$("html"),$body:$("body"),$cartPrice:$("#cart-price"),$slider:$(".flexslider"),$navWrap:$("#navWrap"),$nav:$("#nav"),$browseByHeight:$("#browse-by-category").find(".coll-image-wrap"),$featuredProductsHeight:$("#featured-products").find(".coll-image-wrap"),$generalProductHeight:$(".product-list").find(".coll-image-wrap"),$placeholders:$("[placeholder]"),$currencyToggle:$("#currency-picker-toggle"),$currencyPicker:$("#currencies"),$productImage:$("#productPhotoImg")}},standard.init=function(){standard.cacheSelectors(),standard.cache.$html.removeClass("no-js"),"ontouchstart"in window&&standard.cache.$html.removeClass("no-touch").addClass("touch"),standard.responsiveNav(),standard.sliders(),standard.cartPrice(),standard.equalImageHeights(),standard.productImageSwitch(),standard.placeholderFix(),standard.formValidation(),standard.currencySelector(),standard.saveCartOnClose(),standard.lightbox()},standard.accessibleNav=function(){var $nav=standard.cache.$nav,$allLinks=$nav.find("a"),$topLevel=$nav.children("li").find("a"),$parents=$nav.find(".has-dropdown"),$subMenuLinks=$nav.find(".sub-nav").find("a"),activeClass="nav-hover",focusClass="nav-focus";$parents.on("mouseenter touchstart",function(evt){var $el=$(this);$el.hasClass(activeClass)||evt.preventDefault(),showDropdown($el)}),$parents.on("mouseleave",function(){hideDropdown($(this))}),$subMenuLinks.on("touchstart",function(evt){evt.stopImmediatePropagation()}),$allLinks.focus(function(){handleFocus($(this))}),$allLinks.blur(function(){removeFocus($topLevel)});function handleFocus($el){var $subMenu=$el.next("ul");hasSubMenu=!!$subMenu.hasClass("sub-nav"),isSubItem=$(".sub-nav").has($el).length,$newFocus=null,isSubItem?($newFocus=$el.closest(".has-dropdown").find("a"),addFocus($newFocus)):(removeFocus($topLevel),addFocus($el))}function showDropdown($el){$el.addClass(activeClass),setTimeout(function(){standard.cache.$body.on("touchstart",function(){hideDropdown($el)})},250)}function hideDropdown($el){$el.removeClass(activeClass),standard.cache.$body.off("touchstart")}function addFocus($el){$el.addClass(focusClass)}function removeFocus($el){$el.removeClass(focusClass)}},standard.responsiveNav=function(){$(window).resize(function(){waitForFinalEvent(function(){standard.cache.$nav.append($("#moreMenu--list").html()),$("#moreMenu").remove(),standard.alignMenu(),standard.accessibleNav()},200,"uniqueID")}),standard.alignMenu(),standard.accessibleNav()},standard.alignMenu=function(){var $nav=standard.cache.$nav,w=0,i=0;wrapperWidth=standard.cache.$navWrap.outerWidth()-105,menuhtml="",$.each($nav.children(),function(){var $el=$(this);w+=$el.outerWidth(!0),wrapperWidth<w&&(menuhtml+=$("<div>").append($el.clone()).html(),$el.remove(),i++)}),wrapperWidth<w&&($nav.append('<li id="moreMenu" class="nav-item has-dropdown"><a href="#" class="nav-item-link">More <span class="icon icon-arrow-down" aria-hidden="true"></span></a><ul id="moreMenu--list" class="sub-nav">'+menuhtml+"</ul></li>"),i<=1&&(standard.cache.$nav.append($("#moreMenu--list").html()),$("#moreMenu").remove()))},standard.sliders=function(){var $slider=standard.cache.$slider;if($slider.length){var auto=$slider.data("auto")?$slider.data("auto"):!1,rate=$slider.data("rate")?$slider.data("rate"):0;$slider.flexslider({animation:"slide",slideshowSpeed:5500,animationSpeed:500,pauseOnHover:!0,keyboard:!1,slideshow:auto,slideshowSpeed:rate,end:function(slider){slider.flexAnimate(1),slider.flexAnimate(0)}})}},standard.cartPrice=function(){var $price=standard.cache.$cartPrice,priceCount=$price.text().length;priceCount<=5&&$price.css("opacity",1),priceCount>=6&&$price.css("font-size","18px").css("opacity",1),priceCount>=7&&$price.css("font-size","15px").css("opacity",1),priceCount>=8&&$price.css("font-size","13px").css("opacity",1),priceCount>=9&&$price.css("font-size","11px").css("opacity",1)},standard.equalImageHeights=function(){$(window).load(function(){sizeElements()}),$(window).resize(function(){waitForFinalEvent(function(){sizeElements()},200,"uniqueId")});function sizeElements(){standard.cache.$browseByHeight.equalHeights(),standard.cache.$featuredProductsHeight.equalHeights(),standard.cache.$generalProductHeight.equalHeights()}},standard.productImageSwitch=function(){standard.cache.$body.hasClass("template-product")&&($('a[rel="gallery"]').colorbox({rel:"gallery",maxWidth:"95%",maxHeight:"95%",scalePhotos:!0}),standard.cache.$productImage.on("click",function(){var imageId=$(this).data("image-id");$('#lightbox a[data-image-id="'+imageId+'"]').trigger("click")}),$("#product-photo-thumbs a").on("click",function(evt){evt.preventDefault();var $el=$(this),newImageId=$el.data("image-id"),newImageSrc=$el.attr("href").replace("_1024x1024","_grande");standard.switchImage(newImageSrc,{id:newImageId},standard.cache.$productImage[0])}))},standard.switchImage=function(src,imgObject,el){var $el=$(el);$el.data("image-id",imgObject.id).attr("src",src)},standard.placeholderFix=function(){document.createElement("input").placeholder==null&&(standard.cache.$html.addClass("no-placeholder"),standard.cache.$placeholders.each(function(){var $el=$(this);if($el.val()===""){var hint=$el.attr("placeholder");$el.val(hint).addClass("hint")}}),standard.cache.$placeholders.focus(function(){var $el=$(this);$el.val()===$el.attr("placeholder")&&$el.val("").removeClass("hint")}).blur(function(){var $el=$(this);$el.val()===""&&$el.val($el.attr("placeholder")).addClass("hint")}))},standard.formValidation=function(){$("input.error, textarea.error").focus(function(){$(this).removeClass("error")}),$("form :submit").click(function(){var $el=$(this);return $el.parents("form").find("input.hint, textarea.hint").each(function(){$el.val("").removeClass("hint")}),!0})},standard.saveCartOnClose=function(){standard.cache.$body.hasClass("template-cart")&&$(window).unload(function(){var params={type:"POST",url:"/cart/update.js",data:$('form[action="/cart"]').serialize(),dataType:"json",async:!1};
1$.ajax(params)})},standard.currencySelector=function(){if(standard.cache.$currencyToggle.length){var toggle=standard.cache.$currencyToggle,picker=standard.cache.$currencyPicker;toggle.on("click",function(evt){evt.preventDefault(),toggle.hide(),picker.fadeIn()}),picker.on("change",function(){picker.hide(),toggle.fadeIn()}),picker.on("blur",function(){picker.hide(),toggle.fadeIn()})}},standard.lightbox=function(){$.isFunction($.fn.colorbox)&&($(".rte img").not("a > img").each(function(){var re=/(_small)|(_compact)|(_medium)|(_large)|(_grande)/,src=$(this).attr("src");if(re.test(src)){var href=src.replace(re,"");$(this).wrap("<a></a>").parent().attr("href",href).addClass("lightbox").colorbox({maxWidth:"95%",maxHeight:"95%",scalePhotos:!0})}}),$(".lightbox").colorbox({maxWidth:"95%",maxHeight:"95%",scalePhotos:!0}),$(".inline").colorbox({maxWidth:"95%",maxHeight:"95%",inline:!0}))},$(standard.init); 2//# sourceMappingURL=/cdn/shop/t/2/assets/shop.js.map?v=26397719123732970851409259429
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.