1(function(){let fixedButton=$(".js-landing-fixed-button"),staticButton=$(".js-landing-static-button");!fixedButton.length||!staticButton.length||$(window).scroll(function(){if(window.screen.width<768){let windowHeight=$(window).height(),scrollTopPosition=$(this).scrollTop(),elementHeight=staticButton.outerHeight(),elementDistanceToTop=staticButton.offset().top;scrollTopPosition>elementDistanceToTop+elementHeight-windowHeight&&elementDistanceToTop>scrollTopPosition&&scrollTopPosition+windowHeight>elementDistanceToTop+elementHeight?fixedButton.addClass("landing-bf-banner__button--hide"):scrollTopPosition<elementDistanceToTop&&fixedButton.removeClass("landing-bf-banner__button--hide")}})})(),(function(){document.addEventListener("DOMContentLoaded",()=>{let rule=new URL(window.location.href).searchParams.get("rule");rule!=null&&localStorage.getItem("customRule")==null&&localStorage.setItem("customRule",rule)})})(),(function(){$(document).ready(function(){let scrollTo=localStorage.getItem("scroll");scrollTo!==void 0&&(scrollToID(scrollTo,500),localStorage.removeItem("scroll")),$(".js-scroll-to-anchor").click(function(event){event.preventDefault();let id=$(this).data("id"),href=$(this).data("href");href==="#"?scrollToID(id,500):(localStorage.setItem("scroll",id),window.location.href=href)});function scrollToID(id,speed){let obj=$("#"+id);if(obj.length){let targetOffset=obj.offset().top;setTimeout(function(){$("html,body").animate({scrollTop:targetOffset},speed)},750)}}})})(),(function(){initMobileMenu();function initMobileMenu(){const selectors={menu:".js-mobile-menu",tabControl:".js-mobile-menu-tab-control",tabContent:".js-mobile-menu-tab-content"},attributes={index:"data-index"},modifiers={active:"active"},menu=$(selectors.menu);let tabControl=$(selectors.tabControl);!menu.length||!tabControl.length||menu.on("click",selectors.tabControl,function(e){const tabControl2=$(this);if(tabControl2.hasClass(modifiers.active))return;e.preventDefault();const tabIndex=tabControl2.attr(attributes.index),tabContent=$(`.js-mobile-menu-tab-content[data-index=${tabIndex}]`);$(selectors.tabControl).removeClass(modifiers.active),$(selectors.tabContent).removeClass(modifiers.active),tabControl2.addClass(modifiers.active),tabContent.addClass(modifiers.active)})}})(),(function(){const selectors={filter:"[data-category-filter]",filterButton:"[data-category-filter-button]",filterClear:"[data-category-filter-clear]",filterSticky:"[data-category-filter-sticky]",productCard:"[data-product-card]",filterAnchor:"[data-category-anchor]"},attributes={filterCategory:"data-category-filter-button",productCategories:"data-categories"},classes={hidden:"hidden"},modifiers={filterSticky:"collection-filtered__header--sticky"};$(document).ready(function(){initCollectionFilter(),initCollectionFilterSticky()});function initCollectionFilter(){const filter=$(selectors.filter),productCards=$(selectors.productCard,selectors.filter),param=new URLSearchParams(window.location.search).get("filter_by");if(!filter.length||!productCards.length)return null;let filterCategories=new Set;param&&(param.split("--").forEach(param2=>{filterCategories.add(param2)}),filterProductCards());const anchors=$(selectors.filterAnchor);anchors.on("change",function(e){anchors.toArray().forEach(el=>{el!==e.target&&(el.checked=!1)}),$(selectors.filterButton).toArray().forEach(e2=>e2.checked=!1),filterCategories.clear(),filterProductCards(),anchors.toArray().some(e2=>e2.checked)?$(selectors.filterClear).removeClass(classes.hidden):$(selectors.filterClear).addClass(classe
1s.hidden);const{categoryAnchor}=e.target.dataset;$(".component-collection.collection-filtered__content").show(),$("#shopify-section-collection-promo-two .collection-module__header").show(),$("#shopify-section-collection-promo").show(),$(".component-collection.collection-filtered__content").show(),$("#shopify-section-collection-promo .collection-module__header").show(),$("#shopify-section-collection-promo-two").show(),$(".marquee_logo_area").show(),categoryAnchor==="merch"&&e.target.checked&&($(".component-collection.collection-filtered__content").hide(),$("#shopify-section-collection-promo-two .collection-module__header").hide(),$("#shopify-section-collection-promo").hide()),categoryAnchor==="gift-cards"&&e.target.checked&&($(".component-collection.collection-filtered__content").hide(),$("#shopify-section-collection-promo .collection-module__header").hide(),$("#shopify-section-collection-promo-two").hide(),$(".marquee_logo_area").hide())}),filter.on("change",selectors.filterButton,function(){anchors.toArray().forEach(e=>e.checked=!1),$(".component-collection.collection-filtered__content").show(),$("#shopify-section-collection-promo-two .collection-module__header").show(),$("#shopify-section-collection-promo").show(),$(".component-collection.collection-filtered__content").show(),$("#shopify-section-collection-promo .collection-module__header").show(),$("#shopify-section-collection-promo-two").show();const filterButton=$(this),filterCategory=filterButton.attr(attributes.filterCategory);filterButton.prop("checked")?filterCategories.add(filterCategory):filterCategories.delete(filterCategory),toggleClearFiltersButton(),filterProductCards()}),filter.on("click",selectors.filterClear,function(){$(selectors.filterButton,selectors.filter).prop("checked",!1),anchors.toArray().forEach(e=>e.checked=!1),$(".component-collection.collection-filtered__content").show(),$("#shopify-section-collection-promo-two .collection-module__header").show(),$("#shopify-section-collection-promo").show(),$(".component-collection.collection-filtered__content").show(),$("#shopify-section-collection-promo .collection-module__header").show(),$("#shopify-section-collection-promo-two").show(),$(".marquee_logo_area").show(),filterCategories.clear(),toggleClearFiltersButton(),filterProductCards()});function filterProductCards(){if(!filterCategories.size)return productCards.removeClass(classes.hidden),null;productCards.each((index,card)=>{const categories=$(card).attr(attributes.productCategories);[...filterCategories].some(category=>categories.includes(category))?$(card).removeClass(classes.hidden):$(card).addClass(classe
1s.hidden)}),filterCategories.size&&Array.from(filterCategories).every(filter2=>filter2.includes("body"))&&$(".hide-when-body-care-filter-enabled").length>0&&$(".hide-when-body-care-filter-enabled").addClass("hidden")}function toggleClearFiltersButton(){filterCategories.size?$(selectors.filterClear).removeClass(classes.hidden):$(selectors.filterClear).addClass(classes.hidden)}}function initCollectionFilterSticky(){const filter=$(selectors.filter),stickyFilter=$(selectors.filterSticky);if(!filter.length||!stickyFilter.length)return;let lastPosBeforeSticky=null,filterBottomPos=null,currentPos=null;$(window).on("scroll resize orientationchange",event=>{currentPos=$(window).scrollTop(),filterBottomPos=$(selectors.filterSticky).offset().top+$(selectors.filterSticky).innerHeight(),currentPos>=filterBottomPos&&((lastPosBeforeSticky==null||event.type==="resize"||event.type==="orientationchange")&&(lastPosBeforeSticky=filterBottomPos),$(selectors.filterSticky).addClass(modifiers.filterSticky)),currentPos<lastPosBeforeSticky&&($(selectors.filterSticky).removeClass(modifiers.filterSticky),lastPosBeforeSticky=null)})}})(),(function(){const selectors={filter:"[data-blog-filter]",filterButton:"[data-blog-filter-button]",filterClear:"[data-blog-filter-clear]",articles:".js-blog-filter-articles"},attributes={filterCategory:"data-blog-filter-button"},classes={hidden:"hidden"},modifiers={filterSticky:"blog-filter--sticky"},articlesNotFound=` 2 <h3 class="blog__not-found"> 3 Sorry, no articles found with this tag. Try other filters. 4 </h3> 5 `;$(document).ready(function(){initBlogFilter(),initBlogFilterSticky()});function initBlogFilter(){const filter=$(selectors.filter);if(!filter.length)return null;let filterCategories=new Set;$(selectors.filterButton).filter(":checked").each(function(){const filterCategory=$(this).attr(attributes.filterCategory);filterCategories.add(filterCategory)}),filter.on("change",selectors.filterButton,function(){const filterButton=$(this),filterCategory=filterButton.attr(attributes.filterCategory);filterButton.prop("checked")?filterCategories.add(filterCategory):filterCategories.delete(filterCategory),toggleClearFiltersButton(),filterArticles()}),filter.on("click",selectors.filterClear,function(){$(selectors.filterButton,selectors.filter).prop("checked",!1),filterCategories.clear(),toggleClearFiltersButton(),filterArticles()});function filterArticles(){let baseUrl=window.location.pathname.split("/tagged/").shift(),tags=[...filterCategories].join("+"),url=filterCategories.size?baseUrl+"/tagged/"+tags:baseUrl;$.ajax({url,type:"get",error:()=>{$(selectors.articles).html(articlesNotFound)},success:data=>{let content=$(data).find(selectors.articles).html();$(selectors.articles).html(content)}}),history.pushState("","",url)}function toggleClearFiltersButton(){filterCategories.size?$(selectors.filterClear).removeClass(classes.hidden):$(selectors.filterClear).addClass(classe
5s.hidden)}}function initBlogFilterSticky(){if(!$(selectors.filter).length)return null;let lastPosBeforeSticky=null,filterBottomPos=null,currentPos=null;$(window).on("scroll resize orientationchange",event=>{currentPos=$(window).scrollTop(),filterBottomPos=$(selectors.filter).offset().top+$(selectors.filter).innerHeight(),currentPos>=filterBottomPos&&((lastPosBeforeSticky==null||event.type==="resize"||event.type==="orientationchange")&&(lastPosBeforeSticky=filterBottomPos),$(selectors.filter).addClass(modifiers.filterSticky)),currentPos<lastPosBeforeSticky&&($(selectors.filter).removeClass(modifiers.filterSticky),lastPosBeforeSticky=null)})}})(),$(document).ready(function(){$(".subscription").change(function(){$('.subscription input[type="radio"]:checked')&&($(".op-subscription").show(),$(".op-time").hide())}),$(".one-time").change(function(){$('.one-time input[type="radio"]:checked')&&($(".op-subscription").hide(),$(".op-time").show())})}); 6//# sourceMappingURL=/cdn/shop/t/547/assets/main.js.map?v=135789223698434905241726180055
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.