PageSourceSearch

https://skinny-teatox.com/s/files/1/0230/4245/t/19/assets/theme.js

js skinny-teatox.com collected 2026-09-25 23:54:35 UTC 41,525 bytes, 2 lines download raw bytes

1(function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.HeaderView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={},e.prototype.initialize=function(){this.body=$(document.body),this.window=$(window),this.branding=this.$(".branding"),this.headerTools=this.$(".header-tools"),this.window.resize(function(t){return function(){return t.fixWonkyLogo(),t.setSearchWidth()}}(this)).trigger("resize"),this.window.on("scroll",function(t){return function(){if(document.documentElement.offsetWidth>1020&&!t.body.hasClass("alternate-index-layout"))return t.triggerStickyHeader()}}(this)),this.window.resize(function(t){return function(){if(document.documentElement.offsetWidth<=1020&&!theme.ltIE9)return t.body.removeClass("sticky-header")}}(this))},e.prototype.setSearchWidth=function(){var t;return t=this.$(".mini-cart-wrapper").outerWidth()+this.$(".checkout-link").outerWidth(),this.$(".search-form").width(t),this.setLogoPadding(t)},e.prototype.setLogoPadding=function(t){return this.branding.css({paddingLeft:t+60,paddingRight:t+60})},e.prototype.triggerStickyHeader=function(){var t,r,o;if(o=this.$el.outerHeight(),this.window.scrollTop()>o?this.body.addClass("sticky-header"):this.body.removeClass("sticky-header"),!Modernizr.csstransforms)return r=$(".sticky-header .navigation .cart-count"),r.css({marginTop:-(r.height()/2)}),t=$(".sticky-header .navigation .branding"),t.css({marginTop:-(t.height()/2)})},e.prototype.fixWonkyLogo=function(){var t,r,o;if(!theme.ltIE9)return o=parseInt("60"),this.body.hasClass("alternate-index-layout")?(t=this.body,r=$(".logo-regular")):(t=this.$(".branding"),r=this.$(".logo-retina").is(":visible")?this.$(".logo-retina"):this.$(".logo-regular")),t.imagesLoaded(function(n){return function(){var s,a;return s=r[0].naturalWidth/r[0].naturalHeight,s=Math.round(s*10)/10,a=r[0].width/o,a=Math.round(a*10)/10,a!==s&&r[0].height<=o?r.css({height:"auto"}):r.css({height:o})}}(this))},e}(Backbone.View)}).call(this),function(){}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.NavigationView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"mouseover .mega-nav-list a":"swapMegaNavImages","click .has-dropdown [data-enter-linklist], .has-dropdown > .mega-nav-list-title":"enterMegaNavTier","click .has-dropdown .back":"exitMegaNavTier","mouseleave .has-mega-nav":"useDefaultImage"},e.prototype.initialize=function(){return this.body=$(document.body),$(".navigation-toggle").on("click",function(t){return function(){return t.body.hasClass("mobile-nav-open")?t.toggleMobileNavigation("close"):t.toggleMobileNavigation("open")}}(this)),this.transitionend=function(t){var r;return r={"-webkit-transition":"webkitTransitionEnd","-moz-transition":"transitionend","-o-transition":"oTransitionEnd",transition:"transitionend"},r[t]}(Modernizr.prefixed("transition")),$(window).resize(function(t){return function(){if(t.setupNavigation(),document.documentElement.offsetWidth>1020&&t.body.hasClass("mobile-nav-open")&&($(".navigation-wrapper").removeClass("visible"),t.toggleMobileNavigation("close")),!Modernizr.csstransforms)return t.positionMegaNav()}}(this)).trigger("resize")},e.prototype.setupNavigation=function(){return document.documentElement.offsetWidth>1020||theme.ltIE9?(this.$el.removeClass("mobile").addClass("full-width"),this.$("li[data-mega-nav='true']").removeClass("has-dropdown").addClass("has-mega-nav")):(this.$el.removeClass("full-width").addClass("mobile"),this.$("li[data-mega-nav='true']").removeClass("has-mega-nav").addClass("has-dropdown"))},e.prototype.swapMegaNavImages=function(t){var r,o;return r=this.$(t.target).parent().data("image-src"),o=this.$(t.target).parent().data("image-alt"),this.$(".mega-nav-image img").attr("src",r).attr("alt",o)},e.prototype.positionMegaNav=function(){var t,r;return t=this.$(".mega-nav"),r=t.outerWidth(),t.css({marginLeft:-(r/2)})},e.prototype.toggleMobileNavigation=function(t){var r;if(r=$(".navigation-wrapper"),t==="open")return this.body.addClass("mobile-nav-open lock-scroll"),this.$el.addClass("visible"),r.addClass("visible background"),this.$("> ul").addClass("in-view active"),this.setTierHeight();if(t==="close")return this.$el.removeAttr("style"),this.body.removeClass("mobile-nav-open"),this.$el.removeClass("visible"),Modernizr.csstransitions?r.removeClass("background").one(this.transitionend,function(o){return function(){return r.removeClass("visible"),o.body.removeClass("lock-scroll")}}(this)):(r.removeClass("background"),r.removeClass("visible"),this.body.removeClass("lock-scroll"))},e.prototype.enterMegaNavTier=function(t){var r,o;
1return this.$el.hasClass("mobile")&&t.preventDefault(),r=$(t.currentTarget),r.hasClass("mega-nav-list-title")?o=r.data("linklist-trigger"):o=$(t.target).parent().data("linklist-trigger"),this.$("ul").removeClass("active"),this.$("ul[data-linklist='"+o+"']").addClass("in-view active"),this.$(t.target).closest("ul").addClass("out-of-view"),this.setTierHeight()},e.prototype.exitMegaNavTier=function(t){var r;return r=$(t.target),this.$("ul").removeClass("active"),Modernizr.csstransitions?r.closest("ul.out-of-view").removeClass("out-of-view").addClass("active").one(this.transitionend,function(o){return function(){return r.closest("ul").removeClass("in-view")}}(this)):(r.closest("ul.out-of-view").removeClass("out-of-view").addClass("active"),r.closest("ul").removeClass("in-view")),this.setTierHeight()},e.prototype.setTierHeight=function(){var t,r,o;return this.$el.scrollTop(0),o=window.innerHeight,t=this.$(".branding").outerHeight(),r=this.$("ul.active").outerHeight(),o>r+t?this.$el.css({"overflow-y":"hidden","max-height":o,height:"100%"}):this.$el.css({"overflow-y":"scroll","max-height":r+t,height:"100%"})},e.prototype.useDefaultImage=function(){var t;return t=this.$(".mega-nav-image img"),t.attr("src",t.data("image")).attr("alt",t.data("alt"))},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.FooterView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={},e.prototype.initialize=function(){return this.width=document.documentElement.offsetWidth,$(window).resize(function(t){return function(){if(document.documentElement.offsetWidth<=1020&&document.documentElement.offsetWidth!==t.width)return t.setupFooter("mobile");if(document.documentElement.offsetWidth!==t.width)return t.setupFooter()}}(this)).trigger("resize")},e.prototype.setupFooter=function(t){return this.width=document.documentElement.offsetWidth,t==="mobile"?this.$(".mailing-list").prependTo(".upper-footer"):this.$(".mailing-list").appendTo(".upper-footer")},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.AccountView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"click .delete-address":"deleteAddress","click .edit-address":"editAddress","click .add-new-address":"addNewAddress","click .toggle-forgetfulness":"recoverPassword","change .address-country":"updateProvinceSelectText"},e.prototype.initialize=function(){var t;if(t=$(document.body),t.hasClass("template-customers-addresses")&&this.prepareAddresses(),t.hasClass("template-customers-login")&&this.checkForReset(),window.location.hash==="#recover")return this.recoverPassword()},e.prototype.recoverPassword=function(){return this.$(".recover-password").toggle(),this.$(".customer-login").toggle()},e.prototype.checkForReset=function(){if(this.$(".reset-check").data("successful-reset")===!0)return this.$(".successful-reset").show()},e.prototype.prepareAddresses=function(){var t,r,o,n,s,a;if(new Shopify.CountryProvinceSelector("address-country","address-province",{hideElement:"address-province-container"}),o=this.$(".customer-address"),o.length){for(a=[],n=0,s=o.length;n<s;n++)t=o[n],r=$(t).data("address-id"),a.push(new Shopify.CountryProvinceSelector("address-country-"+r,"address-province-"+r,{hideElement:"address-province-container-"+r}));return a}},e.prototype.deleteAddress=function(t){var r;return r=$(t.target).parents("[data-address-id]").data("address-id"),Shopify.CustomerAddress.destroy(r)},e.prototype.editAddress=function(t){var r;return r=$(t.target).parents("[data-address-id]").data("address-id"),this.$(".customer-address").removeClass("editing").find(".edit-address").removeClass("disabled"),this.$(".customer-address[data-address-id='"+r+"']").addClass("editing").find(".edit-ad
1dress").addClass("disabled"),this.$(".customer-address-edit-form, .customer-new-address").addClass("hidden"),this.$(".customer-address-edit-form[data-address-id='"+r+"']").removeClass("hidden")},e.prototype.addNewAddress=function(){return this.$(".customer-address").removeClass("editing").find(".edit-address").removeClass("disabled"),this.$(".customer-address-edit-form").addClass("hidden"),this.$(".customer-new-address").removeClass("hidden")},e.prototype.updateProvinceSelectText=function(){return this.$(".address-province").siblings(".selected-text").text("-- "+Theme.pleaseSelectText+" --")},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.BlogView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"change .blog-sidebar select":"filterBlog"},e.prototype.initialize=function(){var t;return $(document.body).hasClass("template-blog")?t="blog":t="article",theme.ltIE9||(document.documentElement.offsetWidth<=1020?this.positionSidebar(t,"below"):this.positionSidebar(t)),this.$el.imagesLoaded(function(r){return function(){return r.setupFeaturedImage(),r.setupFullWidthImages()}}(this)),$(window).resize(function(r){return function(){return r.setupFullWidthImages(),theme.ltIE9?r.setupFeaturedImage():document.documentElement.offsetWidth<=1020?r.positionSidebar(t,"below"):(r.positionSidebar(t),r.setupFeaturedImage())}}(this))},e.prototype.filterBlog=function(t){var r,o;return r=this.$(t.target).val(),o=this.$(t.target).data("url"),r==="all"?window.location.pathname="/blogs/"+o:window.location.pathname="/blogs/"+o+"/tagged/"+r},e.prototype.setupFeaturedImage=function(t){var r,o,n,s,a,u;for(a=this.$(".blog-post"),u=[],r=0,n=a.length;r<n;r++)s=a[r],s=$(s),o=s.find("img.highlight").first(),o.length?u.push(s.find(".blog-post-inner").css({paddingTop:o.height()-60})):u.push(void 0);return u},e.prototype.setupFullWidthImages=function(){var t,r,o,n,s,a,u,c;for(n=this.$(".post-content"),a=n.outerWidth(!0),s=n.css("marginLeft"),u=this.$("img.full-width"),c=[],t=0,o=u.length;t<o;t++)r=u[t],r=$(r),c.push(r.css({width:a,left:"-"+s}));return c},e.prototype.positionSidebar=function(t,r){var o;switch(o=this.$(".blog-sidebar"),t){case"blog":return r==="below"?o.insertAfter(".blog-posts"):o.insertBefore(".blog-posts");case"article":return r==="below"?o.insertAfter(".blog-post-wrapper"):o.insertBefore(".blog-post-wrapper")}},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.CartView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"click .get-rates":"getRates","change .cart-instructions textarea":"saveSpecialInstructions"},e.prototype.initialize=function(){},e.prototype.saveSpecialInstructions=function(){var t;return t=$(".cart-instructions textarea").val(),Shopify.updateCartNote(t,function(r){})},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.CollectionView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"change .collection-tags":"filterCollection","change .collection-sorting select":"sortCollection"},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.ProductListItemView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"click .product-list-item-thumbnail":"redirectToProduct","click .quick-shop-modal-trigger":"initializeQuickShop"},e.prototype.initialize=function(){},e.prototype.redirectToProduct=function(t){var r;if(r=$(t.target).hasClass("quick-shop-modal-trigger")?"":$(t.target).data("url"),r)return window.location=r},e.prototype.initializeQuickShop=function(t){var r;return r=$(".quick-shop-wrapper"),r.data("product-handle",$(t.target).data("product-handle")).data("product-id",$(t.target).data("product-id")).data("variant-id",$(t.target).data("variant-id")).data("vendor-url",$(t.target).data("vendor-url")),new QuickShopView({el:r})},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.SlideshowView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.initialize=function(){return this.slideshowNavigation=!0,this.slideshowPagination=!0,this.slideshowAutoplay=parseInt("7")*1e3,$(window).resize(function(t){return function(){return t.setSlideshowHeight()}}(this)).trigger("resize"),this.slideshowIsSetup=!1},e.prototype.setSlideshowHeight=function(){var t,r,o;return r=this.$(".slideshow-slides"),o=1e3,t=r.find(".slideshow-slide").length,r.imagesLoaded(function(n){return function(){var s,a,u,c,l,h,f;for(h=r.find(".slideshow-slide img"),f=[],c=s=0,l=h.length;s<l;c=++s)a=h[c],u=$(a).height(),u<o&&(o=u),c===t-1?(n.$(".slide-image-wrapper").css({height:o}),n.slideshowIsSetup?f.push(void 0):f.push(n.setupSlideshow())):f.push(void 0);return f}}(this))},e.prototype.setupSlideshow=function(){return this.$(".slideshow-slides").flickity({imagesLoaded:!0,autoPlay:this.slideshowAutoplay,prevNextButtons:this.slideshowNavigation,pageDots:this.slideshowPagination,resize:!0,wrapAround:!0}),this.slideshowIsSetup=!0},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.InstagramView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={},e.prototype.initialize=function(){return this.photoContainer=this.$(".instagram-photos"),this.getInstagramImages()},e.prototype.getInstagramImages=function(){var t,r;return Theme.twitter?t=3:t=6,Theme.instagramShowTag&&Theme.instagramTag.length?r="https://api.instagram.com/v1/tags/"+Theme.instagramTag+"/media/recent?access_token="+Theme.instagramAccessToken+"&count="+t+"&callback=":r="https://api.instagram.com/v1/users/self/media/recent?access_token="+Theme.instagramAccessToken+"&count="+t+"&callback=",$.ajax({type:"GET",dataType:"jsonp",url:r,success:function(o){return function(n){var s,a,u,c,l;if(n.meta.code===200){for(c=n.data,l=[],s=0,a=c.length;s<a;s++)u=c[s],l.push(o.photoContainer.append("<a class='instagram-photo' target='_blank' href='"+u.link+"'><img src='"+u.images.low_resolution.url+"'/></a>"));return l}else return o.$el.remove(),console.log("Instagram error: "+n.meta.error_message)}}(this),error:function(o){return function(n){return o.$el.remove(),console.log("Instagram error: "+n.meta.error_message)}}(this)})},e}(Backbone.View)}.call(this),function(){}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.MasonryView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"click .alternative-masonry-feature, .masonry-feature":"redirectMasonryFeatures"},e.prototype.initialize=function(){return this.masonryFeatures=this.$(".masonry-features"),$(window).resize(function(t){return function(){return t.masonryFeatures.each(function(r,o){var n;if(n=$(o),(n.hasClass("has-4-features")||n.hasClass("has-5-features")||n.hasClass("has-6-features"))&&t.positionMasonryFeatures(n),document.documentElement.offsetWidth>770&&!n.hasClass("has-1-features"))return t.setMasonryFeatureHeight(n)})}}(this)).trigger("resize"),$(window).resize(function(t){return function(){return t.positionMasonryFeatureText()}}(this)).trigger("resize")},e.prototype.redirectMasonryFeatures=function(t){var r;if(r=$(t.target).closest("article").data("url"),r!=="")return window.location=r},e.prototype.positionMasonryFeatureText=function(){var t,r,o,n,s,a,u;for(n=this.$(".masonry-feature-text"),s=[],r=0,o=n.length;r<o;r++)t=n[r],t=$(t),a=t.height(),u=t.outerWidth(),s.push(t.css({marginTop:-(a/2),marginLeft:-(u/2)}));return s},e.prototype.positionMasonryFeatures=function(t){var r,o,n;return t.hasClass("has-4-features")||t.hasClass("has-5-features")?r=t.find(".feature-3"):t.hasClass("has-6-features")&&(r=t.find(".feature-4")),o=t.outerWidth(),n=-(o*.074),r.css({top:n}),t.css({marginBottom:n})},e.prototype.setMasonryFeatureHeight=function(t){return t.imagesLoaded(function(r){return function(){var o,n,s,a,u,c,l,h,f,m;for(h=t.children(".masonry-feature"),f=[],c=0,l=h.length;c<l;c++)o=h[c],o=$(o),s=o.outerHeight(!0),m=o.outerWidth(),n=s/m*100,o.children("figure").css({paddingBottom:n+"%"}),a=o.find("img"),a.css({height:"auto",width:"auto"}),u=a.height()/a.width()*100,u<n?f.push(a.height(o.children("figure").outerHeight()).css({marginLeft:-((a.width()-m)/2)})):f.push(a.width(o.children("figure").outerWidth()).css({marginTop:-((a.height()-s)/2)}));return f}}(this))},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.HomeView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"click .featured-collection-overlay-wrapper":"redirectFeaturedCollection"},e.prototype.initialize=function(){Theme.slideshow&&new SlideshowView({el:this.$(".home-slideshow")}),Theme.instagram&&new InstagramView({el:this.$(".instagram-widget")}
1),Theme.twitter&&new TwitterView({el:this.$(".twitter-widget")}),$(window).resize(function(t){return function(){if(t.setupFeaturedCollections(),!Modernizr.csstransforms)return t.centerFeaturedCollectionText()}}(this)).trigger("resize")},e.prototype.setupFeaturedCollections=function(){var t,r;return t=1e4,r=this.$(".featured-collection-image img"),this.$(".featured-collections-list").imagesLoaded(function(o){return function(){var n,s,a,u,c,l,h;for(s=0,c=r.length;s<c;s++)n=r[s],$(n).height()<t&&(t=$(n).height());for(o.$(".featured-collection-image").height(t),h=[],u=0,l=r.length;u<l;u++)n=r[u],a=$(n).height(),a>t?h.push($(n).css({marginTop:-(a-t)/2})):h.push(void 0);return h}}(this))},e.prototype.centerFeaturedCollectionText=function(){var t,r,o,n,s,a,u;for(n=this.$(".featured-collection-overlay"),s=[],r=0,o=n.length;r<o;r++)t=n[r],t=$(t),a=t.height(),u=t.outerWidth(),s.push(t.css({marginTop:-(a/2),marginLeft:-(u/2)}));return s},e.prototype.redirectFeaturedCollection=function(t){var r;if(r=$(t.target).data("url"),r!=="")return window.location=r},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.ListCollectionsView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={},e.prototype.initialize=function(){},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.NotFoundView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={},e.prototype.initialize=function(){},e}(Backbone.View)}.call(this),function(){}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.ProductSlideshowView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"click .product-thumbnails-navigation-previous, .product-thumbnails-navigation-next":"moveProductThumbnails"},e.prototype.initialize=function(){if(this.isQuickShop=this.$el.parent().hasClass("quick-shop"),this.productThumbnailsWrapper=this.$(".product-thumbnails-wrapper"),this.productThumbnails=this.$(".product-thumbnails"),this.productThumbnail=this.$(".product-thumbnail"),this.$(".product-thumbnails").hasClass("has-side-scroll"))return this.setupProductSlideshow(),$(window).resize(function(t){return function(){return t.setupProductSlideshow(),t.productThumbnails.css({left:0})}}(this))},e.prototype.setupProductSlideshow=function(){var t,r;return r=0,t=0,this.productThumbnails.imagesLoaded(function(o){return function(){var n,s,a,u,c,l;for(o.productThumbnailPadding=parseInt(o.productThumbnail.css("padding-left"),10)*2,o.productThumbnail.width(o.productThumbnailsWrapper.width()/4-o.productThumbnailPadding),l=o.productThumbnail,a=0,c=l.length;a<c;a++)u=l[a],u=$(u),n=u.outerHeight(),s=u.outerWidth(),n>r&&(r=n),t+=s;return o.productThumbnailsWrapper.height(r),o.productThumbnails.width(t)}}(this))},e.prototype.moveProductThumbnails=function(t){var r,o;if(r=this.productThumbnailsWrapper.width(),o=this.productThumbnails.position().left,$(t.currentTarget).hasClass("product-thumbnails-navigation-next")&&o-r>-this.$(".product-thumbnails").outerWidth())return this.productThumbnails.css({left:o-r});if($(t.target).hasClass("product-thumbnails-navigation-previous")&&o<0)return this.productThumbnails.css({left:o+r})},e}(Backbone.View)}.call(this),function(){var p=function(e,t){return function(){return e.apply(t,arguments)}},d=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function o(){this.constructor=e}return o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype,e},i={}.hasOwnProperty;window.ProductView=function(e){d(t,e);function t(){return this.selectCallback=p(this.selectCallback,this),t.__super__.constructor.apply(this,arguments)}return t.prototype.events={"click .product-thumbnails img":"swapProductImage","click .add-to-cart input":"addToCart"},t.prototype.initialize=function(){return this.transitionend=function(r){var o;return o={"-webkit-transition":"webkitTransitionEnd","-moz-transition":"transitionend","-o-transition":"oTransitionEnd",transition:"transitionend"},o[r]}(Modernizr.prefixed("transition")),this.window=$(window),this.isQuickShop=this.$el.hasClass("quick-shop-wrapper"),this.productId=this.$el.data("product-id"),this.product=this.isQuickShop?this.$(".quick-shop").data("item"):window.products[this.productId],this.variants=this.product.variants,this.images=this.product.images,this.minimumPriceArea=this.$(".product-price-minimum"),this.productImages=this.$el.find(".product-images"),this.mainImage=this.$(".product-main-image img"),this.productThumbn
1ail=this.$(".product-thumbnail"),this.productDetailsWrapper=this.$el.find(".product-details-wrapper"),this.productDetails=this.$el.find(".product-details"),this.cacheImages(),this.setupSelectors(),new ProductSlideshowView({el:this.productImages}),Theme.imageZoom&&new ImageZoomView({el:this.$(".product-main-image")}),Shopify.onError=function(r){return function(o){return r.handleErrors(o)}}(this)},t.prototype.cacheImages=function(){return Shopify.Image.preload(this.images,"1024x1024")},t.prototype.setupSelectors=function(){var r,o,n,s,a,u,c,l,h,f,m,w,g,b,v,T,C,V;if(o=$(document.body).hasClass("template-product")&&this.variants.length>1,v=new Shopify.OptionSelectors("product-variants-"+this.productId,{product:this.product,onVariantSelected:this.selectCallback,enableHistoryState:o}),n=this.isQuickShop?this.$el.data("variant-id"):FirstVariant[this.productId],v.selectVariant(n),this.variants.length===1&&this.variants[0].title==="Default Title"||this.variants[0].title==="Default title")this.$el.find(".product-options").addClass("no-options");else if(this.isQuickShop)for(this.$(".selector-wrapper label").remove(),T=this.product.options,s=a=0,m=T.length;a<m;s=++a)b=T[s],this.$(".selector-wrapper").eq(s).prepend("<label>"+this.product.options[s].name+"</label>");else this.product.options.length===1&&this.product.options[0]!=="Title"&&this.$(".selector-wrapper").prepend("<label>"+this.product.options[0]+"</label>");for(C=this.variants,u=0,w=C.length;u<w;u++)V=C[u],V.featured_image&&(this.hasVariantImages=!0);for(f=this.$(".selector-wrapper label"),h=0,c=0,g=f.length;c<g;c++)l=f[c],r=$(l).width()+1,r>h&&(h=r);return f.width(h)},t.prototype.selectCallback=function(r,o){var n;if(n=this.$(".add-to-cart input"),this.$(".product-message").empty(),r){if(r.available?(n.val(Theme.addToCartText).removeClass("disabled").prop("disabled",!1),this.$el.data("variant",r)):n.val(Theme.soldOutText).addClass("disabled").prop("disabled",!0),this.minimumPriceArea.html(Shopify.formatMoney(r.price,Theme.moneyFormat)),this.$(".product-price-compare").remove(),r.compare_at_price>r.price&&(this.minimumPriceArea.after("<span class='product-price-compare money' />"),this.$(".product-price-compare").html(Shopify.formatMoney(r.compare_at_price,Theme.moneyFormat))),Theme.currencySwitcher&&this.switchCurrency(r.price,r.compare_at_price),this.hasVariantImages)return r.featured_image?this.swapProductImage(null,r.featured_image.src):this.$el.find(".product-main-image img").attr("src",this.product.featured_image)}else return n.val(Theme.unavailableText).addClass("disabled").prop("disabled",!0)},t.prototype.swapProductImage=function(r,o){var n;return this.productThumbnail.removeClass("active"),r?(this.$(r.currentTarget).parent().addClass("active"),n=this.$(r.currentTarget).data("high-res"),this.$(r.currentTarget).closest(this.$el).find(".product-main-image img").attr("src",n).trigger("prepare-zoom")):(n=o,this.$el.find(".product-main-image img").attr("src",n).trigger("prepare-zoom"))},t.prototype.addToCart=function(r){},t.prototype.updateCart=function(r){var o;return o=$(".mini-cart-item-wrapper"),Shopify.getCart(function(n){return function(s){var a,u,c,l,h,f,m,w,g,b,v;for(o.empty(),$(".cart-count").html("<span class='cart-count-text'>"+Theme.cartText+"</span> (<span class='cart-count-number'>"+s.item_count+"</span>)"),v=s.items,f=0,m=v.length;f<m;f++){for(l=v[f],h="",b=Object.keys(l.properties),g=_.values(l.properties),c=0;c<b.length;)g[c].length&&(h=h+('<p class="mini-cart-item-property">\n    <span class="property-label">'+b[c]+':</span>\n    <span class="property-value">'+g[c]+"</span>\n</p>")),c++;w=Shopify.formatMoney(l.price,Theme.moneyFormat),o.append("<article class='mini-cart-item' data-variant='"+l.variant_id+"' data-url='"+l.url+"' data-title='"+l.title+"'>\n    <figure class='mini-cart-item-image'>\n        <a href='"+l.url+"'>\n            <img alt='"+l.title+"' src='"+l.image+"'>\n        </a>\n    </figure>\n    <div class='mini-cart-item-details'>\n        <p class='mini-cart-item-quantity'>\n            Qty: <span>"+l.quantity+"</span>\n        </p>\n        <p class='mini-cart-item-title'>\n            <a href='"+l.url+"'>"+l.product_title+" ("+l.variant_title+")</a>\n        </p>\n        "+h+"\n        <p class='mini-cart-item-price'>
1\n            <span class='money'>"+w+"</span>\n        </p>\n    </div>\n</article>")}return a=$(".currency-switcher select"),u=a.val(),a.val(Theme.currency).trigger("reset-currency").val(u).trigger("reset-currency")}}(this))},t.prototype.handleErrors=function(r){var o,n,s,a,u;return r.responseJSON.message==="Cart Error"?(u=parseInt(this.$el.find("#product-variants-"+this.productId).val(),10),s=function(){var c,l,h,f;for(h=this.product.variants,f=[],c=0,l=h.length;c<l;c++)a=h[c],a.id===u&&f.push(a);return f}.call(this),o=s[0].inventory_quantity,n="Unable to add more than {{ stock }} to your cart.".replace("{{ stock }}",o)):n="We were unable to add this product to your cart. Please try again later. Contact us if you continue to have issues.",setTimeout(function(c){return function(){return c.$el.find(".product-message").html(n).addClass("error-message").removeClass("success-message")}}(this),1e3)},t}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.QuickShopView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={click:"closeQuickShop"},e.prototype.initialize=function(){return this.productImages=this.$(".product-images"),this.mainImage=this.$(".product-main-image"),this.thumbnailsOuterWrapper=this.$(".product-thumbnails-outer-wrapper"),this.thumbnailsWrapper=this.thumbnailsOuterWrapper.find(".product-thumbnails-wrapper"),this.thumbnails=this.$(".product-thumbnails"),this.productDetails=this.$(".product-details"),this.quickShop=this.$(".quick-shop"),Shopify.getProduct(this.$el.data("product-handle"),function(t){return function(r){var o,n,s,a,u,c,l,h,f;for($(document.body).addClass("scroll-locked"),t.quickShop.data("item",r),t.$el.addClass("visible"),t.setupProductDetails(r),new ProductView({el:t.$el}),u=t.$("select"),o=0,s=u.length;o<s;o++)f=u[o],new SelectView({el:f});for(c=t.$(".rte"),l=[],n=0,a=c.length;n<a;n++)h=c[n],l.push(new RTEView({el:h}));return l}}(this)),$(window).resize(function(t){return function(){if(t.positionQuickShop(),!theme.ltIE9&&document.documentElement.offsetWidth<=1020&&$(document.body).hasClass("quick-shop-open"))return t.closeQuickShop()}}(this))},e.prototype.closeQuickShop=function(t){if(!this.$(t.target).closest(".quick-shop").length)return this.$el.removeClass("visible").one("trend",function(r){return function(){return $(document.body).removeClass("scroll-locked"),r.$el.add(r.quickShop).removeClass("active"),r.mainImage.add(r.thumbnails).add(r.productDetails).empty(),r.thumbnailsWrapper.add(r.thumbnails).removeAttr("style"),r.thumbnails.removeClass("has-side-scroll"),r.$(".product-thumbnails-navigation").remove()}}(this))},e.prototype.setupProductDetails=function(t){var r,o,n,s,a,u,c,l,h,f,m,w,g,b,v,T,C,V,S,P,y,k,x,z,I;for(t.images.length>4&&this.thumbnails.addClass("has-side-scroll"),C=t.images,l=u=0,b=C.length;u<b;l=++u)c=C[l],g=Shopify.resizeImage(c,"1024x1024"),o=Shopify.resizeImage(c,"compact"),t.images.length>1&&this.thumbnails.append('<span class="product-thumbnail" data-image-position="'+l+'">\n    <img data-high-res="'+g+'" src="'+o+'">\n</span>');for(t.images.length>4&&(this.thumbnailsOuterWrapper.prepend('<span class="product-thumbnails-navigation product-thumbnails-navigation-previous">&#xe601;</span>'),this.thumbnailsOuterWrapper.append('<span class="product-thumbnails-navigation product-thumbnails-navigation-next">&#xe600;</span>')),I="",a=!1,V=t.variants,m=0,v=V.length;m<v;m++)y=V[m],y.id===$(".quick-shop-wrapper").data("variant-id")&&y.featured_image&&(a=!0);for(a?g=Shopify.resizeImage(y.featured_image,"1024x1024"):g=Shopify.resizeImage(t.featured_image,"1024x1024"),this.mainImage.prepend('<img class="product-image" src="'+g+'">\n'+I),x="",s=t.variants[0],f=Shopify.formatMoney(s.price,Theme.moneyFormat),h="",s.compare_at_price>s.price&&(h=Shopify.formatMoney(s.compare_at_price,Theme.moneyFormat)),P="InStock",r="<input type='submit' value='Add to cart' />",t.available||(P="OutOfStock",r="<input type='submit' class='disabled' disabled='disabled' value='Sold out' />"),n="",t.description!==null&&(n="<div class='product-description rte' itemprop='description'>"+t.description+"</div>"),this.productDetails.append(x+'\n\n<h2 class="product-title">'+t.title+'</h2>\n\n<p class="product-price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">\n    <span class="product-price-minimum money">'+f+'</span>\n    <span class="product-price-compare money">'+h+'</span>\n    <link itemprop="availability" href="http://schema.org/'+P+'">\n</p>\n\n<form action="/cart/add" method="post" id="product-form-'+t.id+'" data-product-id="'+t.id+'">\n\n    <div class="product-options">\n        <select class="product-variants" name="id" id="product-variants-'+t.id+'"></select>\n    </div>\n\n    <div class="product-quantity inline-input-wrapper">\n        <label>Quantity</label>\n        <input type="text" name="quantity" value="1" />\n    </div>\n\n    <div class="add-to-cart">\n        '+r+'\n    </div>\n\n    <div class="product-message"></div>\n\n</form>\n\n'+n+'\n\n<a class="view-product" href="'+t.url+'">View product</a>'),S=t.variants,w=0,T=S.length;w<T;w++)y=S[w],k=Shopify.formatMoney(y.price,Theme.moneyFormat),this.$(".product-variants").append("<option value='"+y.id+"' data-sku='"+y.sku+"'>"+y.title+" - "+k+"</option>");return this.productImages.imagesLoaded(function(W){return function(){return W.quickShop.addClass("active"),W.positionQuickShop()}}(this))},e.prototype.positionQuickShop=function(){return this.quickShop.css({marginTop:-(this.quickShop.outerHeight()/2),marginLeft:-(this.quickShop.outerWidth()/2)})},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.PasswordView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.el=document.body,e.prototype.events={click:"closeModal","click .admin-login-modal":"openM
1odal"},e.prototype.initialize=function(){return this.modalWrapper=$(".password-page-modal-wrapper"),this.modalContent=this.modalWrapper.find(".password-page-modal"),this.openByDefault=this.modalWrapper.find("[data-open-modal]").length,this.openByDefault&&this.openModal(),$(window).resize(function(t){return function(){return t.positionModal()}}(this))},e.prototype.closeModal=function(t){if(this.$(t.target).hasClass("visible"))return this.modalWrapper.removeClass("visible").one("trend",function(r){return function(){return r.$el.removeClass("scroll-locked")}}(this))},e.prototype.openModal=function(){return this.$el.addClass("scroll-locked"),this.positionModal(),this.modalWrapper.addClass("visible")},e.prototype.positionModal=function(){return this.modalContent.css({marginTop:-(this.modalContent.outerHeight()/2),marginLeft:-(this.modalContent.outerWidth()/2)})},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.GiftCardView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.initialize=function(){return this.addQrCode()},e.prototype.addQrCode=function(){var t;return t=$("[data-qr-code]"),new QRCode(t[0],{text:t.data("qr-code"),width:120,height:120})},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.RTEView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={"click .tabs li":"switchTabs"},e.prototype.initialize=function(){return this.setupTabs(),this.resizeVideos()},e.prototype.switchTabs=function(t){var r,o,n,s,a;return t.preventDefault(),n=$(t.currentTarget),s=n.parent(),a=s.next(),o=n.index(),r=a.find("> li").eq(o),s.find("> li").removeClass("active"),a.find("> li").removeClass("active"),n.addClass("active"),r.addClass("active")},e.prototype.setupTabs=function(){var t;return t=this.$el.find(".tabs"),t.find("li:first").addClass("active"),t.next().find("li:first").addClass("active")},e.prototype.resizeVideos=function(){var t,r,o,n,s;for(this.$el.fitVids({customSelector:"iframe"}),o=this.$("iframe"),n=[],t=0,r=o.length;t<r;t++)s=o[t],s=$(s),s.hasClass("highlight")?n.push(s.parent().addClass("highlight")):n.push(void 0);return n},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.SelectView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.events={change:"updateSelectText"},e.prototype.initialize=function(){return this.$el.parent(".select-wrapper").length||this.$el.hasClass("product-variants")||this.$el.wrap("<div class='select-wrapper' />").parent().prepend("<span class='selected-text'></span>"),this.updateSelectText()},e.prototype.updateSelectText=function(){var t;return t=this.$el.find("option:selected").text(),this.$el.siblings(".selected-text").text(t)},e}(Backbone.View)}.call(this),function(){var p=function(i,e){for(var t in e)d.call(e,t)&&(i[t]=e[t]);function r(){this.constructor=i}return r.prototype=e.prototype,i.prototype=new r,i.__super__=e.prototype,i},d={}.hasOwnProperty;window.ThemeView=function(i){p(e,i);function e(){return e.__super__.constructor.apply(this,arguments)}return e.prototype.el=document.body,e.prototype.initialize=function(){var t;return t=$(document.body),this.ltIE9=$("html").hasClass("lt-ie9"),this.isHome=t.hasClass("template-index"),this.isCollection=t.hasClass("template-collection"),this.isListCollections=t.hasClass("template-list-collections"),this.isProduct=t.hasClass("template-product"),this.isCart=t.hasClass("template-cart"),this.isPage=t.hasClass("template-page"),this.isBlog=t.hasClass("template-blog")||t.hasClass("template-article"),this.isAccount=t.attr("class").indexOf("-customers-")>0,this.is404=t.hasClass("template-404"),this.isSearch=t.hasClass("template-search"),this.isPasswordPage=t.hasClass("template-password"),this.isGiftCardPage=t.hasClass("gift-card-template"),navigator.userAgent.indexOf("MSIE 10")!==-1&&this.$el.addClass("ie10"),$(window).load(function(r){return function(){return t.removeClass("loading")}}(this))},e.prototype.render=function(){var t,r,o,n,s,a,u,c,l,h,f,m;for(new HeaderView({el:$(".main-header")}),new NavigationView({el:$(".navigation")}),new FooterView({el:$("footer")}),Theme.currencySwitcher&&new CurrencyView({el:this.$(".currency-switcher")}),this.isHome&&(new HomeView({el:this.$el}),Theme.quickShop&&Theme.featuredProducts&&new QuickShopView({el:this.$(".featured-products")})),this.isCollection&&(new CollectionView({el:this.$(".collection")}
1),Theme.quickShop&&new QuickShopView({el:this.$(".collection-products")})),this.isListCollections&&new ListCollectionsView({el:$(".collections-list")}),this.isProduct&&(new ProductView({el:this.$(".product-wrap")}),Theme.quickShop&&Theme.relatedProducts&&new QuickShopView({el:this.$(".related-products")})),this.isCart&&new CartView({el:this.$el}),this.isBlog&&new BlogView({el:this.$el}),this.isAccount&&new AccountView({el:this.$el}),this.is404&&new NotFoundView({el:this.$el}),this.isSearch&&Theme.quickShop&&new QuickShopView({el:this.$(".search-results-products")}),this.isPasswordPage&&new PasswordView,this.isGiftCardPage&&new GiftCardView,c=$(".rte"),t=0,n=c.length;t<n;t++)f=c[t],new RTEView({el:f});for(l=$("select"),r=0,s=l.length;r<s;r++)m=l[r],new SelectView({el:m});for(h=$(".product-list-item"),o=0,a=h.length;o<a;o++)u=h[o],new ProductListItemView({el:u});if($("html").hasClass("lt-ie10"))return this.inputPlaceholderFix()},e.prototype.inputPlaceholderFix=function(){var t,r,o,n,s;for(n=$("[placeholder]"),t=0,o=n.length;t<o;t++)r=n[t],r=$(r),r.val().length>0||(s=r.attr("placeholder"),r.attr("value",s),r.data("original-text",s));return n.focus(function(){if(r=$(this),r.val()===r.data("original-text"))return r.val("")}),n.blur(function(){if(r=$(this),r.val().length===0)return r.val(r.data("original-text"))})},e}(Backbone.View),$(function(){return window.theme=new ThemeView,theme.render()})}.call(this);
2//# sourceMappingURL=/s/files/1/0230/4245/t/19/assets/theme.js.map?enable_js_minification=1&v=2895677450111369062

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.