1(function(r){var g=r;(function(t){t.fn.prepareTransition=function(){return this.each(function(){var i=t(this);i.one("TransitionEnd webkitTransitionEnd transitionend oTransitionEnd",function(){i.removeClass("is-transitioning")});var e=["transition-duration","-moz-transition-duration","-webkit-transition-duration","-o-transition-duration"],a=0;t.each(e,function(n,s){a=parseFloat(i.css(s))||a}),a!=0&&(i.addClass("is-transitioning"),i[0].offsetWidth)})}})(g);function b(t,i,e){var a=new RegExp("("+i+"=).*?(&|$)"),n=t;return n=t.search(a)>=0?t.replace(a,"$1"+e+"$2"):n+(n.indexOf("?")>0?"&":"?")+i+"="+e}typeof Shopify=="undefined"&&(Shopify={}),Shopify.formatMoney||(Shopify.formatMoney=function(t,i){var e="",a=/\{\{\s*(\w+)\s*\}\}/,n=i||this.money_format;typeof t=="string"&&(t=t.replace(".",""));function s(c,d){return typeof c=="undefined"?d:c}function f(c,d,m,h){if(d=s(d,2),m=s(m,","),h=s(h,"."),isNaN(c)||c==null)return 0;c=(c/100).toFixed(d);var u=c.split("."),o=u[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+m),l=u[1]?h+u[1]:"";return o+l}switch(n.match(a)[1]){case"amount":e=f(t,2);break;case"amount_no_decimals":e=f(t,0);break;case"amount_with_comma_separator":e=f(t,2,".",",");break;case"amount_no_decimals_with_comma_separator":e=f(t,0,".",",");break}return n.replace(a,e)}),window.timber=window.timber||{},timber.cacheSelectors=function(){timber.cache={$html:r("html"),$body:r(document.body),$navigation:r("#AccessibleNav"),$mobileSubNavToggle:r(".mobile-nav__toggle"),$changeView:r(".change-view"),$productImage:r("#ProductPhotoImg"),$thumbImages:r("#ProductThumbs").find("a.product-single__thumbnail"),$recoverPasswordLink:r("#RecoverPassword"),$hideRecoverPasswordLink:r("#HideRecoverPasswordLink"),$recoverPasswordForm:r("#RecoverPasswordForm"),$customerLoginForm:r("#CustomerLoginForm"),$passwordResetSuccess:r("#ResetSuccess")}},timber.init=function(){FastClick.attach(document.body),timber.cacheSelectors(),timber.accessibleNav(),timber.drawersInit(),timber.mobileNavToggle(),timber.productImageSwitch(),timber.responsiveVideos(),timber.collectionViews(),timber.loginForms()},timber.accessibleNav=function(){var t=timber.cache.$navigation,i=t.find("a"),e=t.children("li").find("a"),a=t.find(".site-nav--has-dropdown"),n=t.find(".site-nav__dropdown").find("a"),s="nav-hover",f="nav-focus";a.on("mouseenter touchstart",function(o){var l=!0,p=r(this);return p.hasClass(s)||(o.preventDefault(),l=!1),r("."+s).each(function(v){var w=r(this);w.has(o.target).length===0&&w.removeClass(s)}),d(p),l}),r("#top_links_wrapper").on("mouseleave",function(){m()}),n.on("touchstart",function(o){o.stopImmediatePropagation()}),i.focus(function(){c(r(this))}),i.blur(function(){u(e)});function c(o){var l=o.next("ul"),p=!!l.hasClass("sub-nav"),v=r(".site-nav__dropdown").has(o).length,w=null;v?(w=o.closest(".site-nav--has-dropdown").find("a"),h(w)):(u(e),h(o))}function d(o){o.addClass(s),r(".sticky-header").removeClass("sticky-header-transformed");var l=o.parent().find(".site-nav__subdropdown"),p=Math.max.apply(null,l.map(function(){return r(this).width()}).get()),v=o.offset().left+o.outerWidth()+p;v>r("body").width()?l.css({right:"100%",left:"auto"}):l.css({left:"100%",right:"auto"}),setTimeout(function(){timber.cache.$body.on("touchstart",function(w){r(w.target).closest(".site-nav__link,.dropdown-submenu").length===0&&m(o)})},250)}function m(o){o!==void 0?o.removeClass(s):r(".site-nav--has-dropdown").removeClass(s),timber.cache.$body.off("touchstart"),r(".nav-hover").length===0&&r(".sticky-header").addClass("sticky-header-transformed")}function h(o){o.addClass(f)}function u(o){o.removeClass(f)}},timber.drawersInit=function(){timber.LeftDrawer?timber.LeftDrawer.init():timber.LeftDrawer=new timber.Drawers("NavDrawer","left"),timber.RightDrawer?timber.RightDrawer.init():timber.RightDrawer=new timber.Drawers("CartDrawer","right",{onDrawerOpen:ajaxCart.load})},timber.mobileNavToggle=function(){timber.cache.$mobileSubNavToggle.off("click").on("click",function(t){r(this).parent().toggleClass("mobile-nav--expanded")})},timber.getHash=function(){return window.location.hash},timber.productPage=function(t){var i=t.money_format,e=t.variant,a=t.element,n=a.find("#ProductPhotoImg"),s=a.find("#AddToCart"),f=a.find("#ProductPrice"),c=a.find("#ComparePrice"),d=a.find("#AddToCartText"),m=a.find(".variant-percentage-wrapper"),h=a.find(".variant-value-wrapper");if(e){if(e.featured_image){var u=e.featured_image,o=n[0];timber.switchImage(e.featured_image.src,e.featured_image,o)}e.available?(s.removeClass("disabled").prop("disabled",!1),d.html("Add to Cart"),window.wetheme.load_SPB_show()):(s.addClass("disabled").prop("disabled",!0),d.html("Sold Out"),window.wetheme.load_SPB_hide()),f.html('<span class="money">'+Shopify.formatMoney(e.price,i)+"</span>"),e.compare_at_price>e.price?c.html('<span class="money">'+Shopify.formatMoney(e.compare_at_price,i)+"</span>").show():c.hide()}else s.addClass("disabled").prop("disabled",!0),d.html("Unavailable");var l=e&&e.compare_at_price>e.price;if(m.length>0)if(l){m.removeClass("hide");var p=(e.compare_at_price-e.price)*100/e.compare_at_price;m.find(".variant-percentage").text(p.toFixed(0)+"%")}else m.addClass("hide");if(h.length>0)if(l){h.removeClass("hide");var v=e.compare_at_price-e.price;h.find(".variant-value").html('<span class="money">'+Shopify.formatMoney(v,i)+"</span>")}else h.addClass("hide");window.Currency&&window.Currency.convertAll(window.Currency.shopCurrency,window.Currency.currentCurrency)},timber.productImageSwitch=function(){timber.cache.$thumbImages.length&&timber.cache.$thumbImages.on("click",function(t){t.preventDefault();var i=r(this).attr("href");timber.switchImage(i,null,timber.cache.$productImage)})},timber.switchImage=function(t,i,e){var a=r(e).closest(".product-single"),n=a.find('.product-single__photo[data-image-id="'+i.id+'"]');a.find(".product-single__photo").removeClass("wow fadeIn").data("wow-delay",null).css({visibility:"visible","animation-name":null});var s=a.find("#product-images-mobile"),f=r("#product-images-mobile").find('img[data-image-id="'+i.id+'"]').closest(".owl-item").index();if(f!==-1){s.trigger("to.owl.carousel",f),r("div.product-single__photos",a).prepend(n.parent().parent());var c=a.find(".homepage-sections--indiv-product-slider");if(c.length>0){c.flexslider(i.position-1);return}r.smoothScroll({offset:-r(".mobile-nav-bar-wrapper.sticky-header").outerHeight(),scrollTarget:"#product-images-mobile"});var d=r(document).width();if(d>=769)return r.smoothScroll({offset:-r(".site-header.sticky-header").outerHeight(),scrollTarget:"div.product-single__photos"}),!1}},timber.responsiveVideos=function(){var t=r('iframe[src*="youtube.com/embed"], iframe[src*="player.vimeo"]'),i=t.add("iframe#admin_bar_iframe");t.each(function(){r(this).wrap('<div class="video-wrapper"></div>')}),i.each(function(){this.src=this.src})},timber.collectionViews=function(){timber.cache.$changeView.length&&timber.cache.$changeView.on("click",function(){var t=r(this).data("view"),i=document.URL,e=i.indexOf("?")>-1;e?window.location=b(i,"view",t):window.location=i+"?view="+t})}
1,timber.loginForms=function(){function t(){timber.cache.$recoverPasswordForm.show(),timber.cache.$customerLoginForm.hide()}function i(){timber.cache.$recoverPasswordForm.hide(),timber.cache.$customerLoginForm.show()}timber.cache.$recoverPasswordLink.on("click",function(e){e.preventDefault(),t()}),timber.cache.$hideRecoverPasswordLink.on("click",function(e){e.preventDefault(),i()}),timber.getHash()=="#recover"&&t()},timber.resetPasswordSuccess=function(){timber.cache.$passwordResetSuccess.show()},timber.Drawers=function(){var t=function(i,e,a){var n={close:".js-drawer-close",open:".js-drawer-open-"+e+"-link",openClass:"js-drawer-open",dirOpenClass:"js-drawer-open-"+e};if(this.$nodes={parent:r("body, html"),page:r("#PageContainer"),moved:r(".is-moved-by-drawer")},this.config=r.extend(n,a),this.position=e,this.$drawer=r("#"+i),!this.$drawer.length)return!1;this.drawerIsOpen=!1,this.init()};return t.prototype.init=function(){var i=this;r(this.config.open).off("click").on("click",function(e){console.log("OPEN",e),i.open(e)}),this.$drawer.find(this.config.close).off("click").on("click",this.close.bind(this))},t.prototype.open=function(i){var e=!1;if(i?i.preventDefault():e=!0,i&&i.stopPropagation&&(i.stopPropagation(),this.$activeSource=r(i.currentTarget)),this.drawerIsOpen&&!e)return this.close();timber.cache.$body.trigger("beforeDrawerOpen.timber",this),this.$nodes.moved.addClass("is-transitioning"),this.$drawer.prepareTransition(),this.$nodes.parent.addClass(this.config.openClass+" "+this.config.dirOpenClass),this.drawerIsOpen=!0,this.trapFocus(this.$drawer,"drawer_focus"),this.config.onDrawerOpen&&typeof this.config.onDrawerOpen=="function"&&(e||this.config.onDrawerOpen()),this.$activeSource&&this.$activeSource.attr("aria-expanded")&&this.$activeSource.attr("aria-expanded","true"),timber.cache.$body.trigger("afterDrawerOpen.timber",this)},t.prototype.close=function(){!this.drawerIsOpen||(timber.cache.$body.trigger("beforeDrawerClose.timber",this),r(document.activeElement).trigger("blur"),this.$nodes.moved.prepareTransition({disableExisting:!0}),this.$drawer.prepareTransition({disableExisting:!0}),this.$nodes.parent.removeClass(this.config.dirOpenClass+" "+this.config.openClass),this.drawerIsOpen=!1,this.removeTrapFocus(this.$drawer,"drawer_focus"),this.$nodes.page.off(".drawer"),timber.cache.$body.trigger("afterDrawerClose.timber",this))},t.prototype.trapFocus=function(i,e){var a=e?"focusin."+e:"focusin";i.attr("tabindex","-1"),i.focus(),r(document).on(a,function(n){i[0]!==n.target&&!i.has(n.target).length&&i.focus()})},t.prototype.removeTrapFocus=function(i,e){var a=e?"focusin."+e:"focusin";i.removeAttr("tabindex"),r(document).off(a)},t}(),r(timber.init),document.addEventListener("shopify:section:load",timber.init)})(window.wetheme.$); 2//# sourceMappingURL=/s/files/1/0133/3955/7952/t/3/assets/timber.js.map?v=90793955602362765701555850527
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.