PageSourceSearch

https://www.antiqueroseemporium.com/cdn/shop/t/169/assets/collecti…?v=32046460992339877421789593032

js antiqueroseemporium.com collected 2026-09-25 19:41:56 UTC 2,311 bytes, 2 lines download raw bytes

1import{unlockMobileScrolling,lockMobileScrolling}from"@archetype-themes/scripts/helpers/a11y";import{prepareTransition}from"@archetype-themes/scripts/helpers/utils";let selectors={sidebarId:"CollectionSidebar",trigger:".collection-filter__btn",mobileWrapper:"#CollectionInlineFilterWrap",filters:".filter-wrapper",filterBar:".collection-filter"},config={isOpen:!1,namespace:".collection-filters"};function getScrollFilterTop(){let scrollTop=window.pageYOffset||document.documentElement.scrollTop;return document.querySelector(selectors.filterBar).getBoundingClientRect().top+scrollTop}function sizeDrawer(){let header=document.getElementById("HeaderWrapper").offsetHeight,filters=document.querySelector(selectors.filterBar).offsetHeight,max=window.innerHeight-header-filters;document.documentElement.style.setProperty("--maxFiltersHeight",`${max}px`)}export default class CollectionSidebar{constructor(){document.getElementById(selectors.sidebarId)&&(document.addEventListener("filter:selected",this.close.bind(this)),this.init())}init(){config.isOpen=!1,unlockMobileScrolling(),this.container=document.getElementById(selectors.sidebarId),this.trigger=document.querySelector(selectors.trigger),this.wrapper=document.querySelector(selectors.mobileWrapper),this.filters=this.wrapper.querySelector(selectors.filters),this.trigger.removeEventListener("click",this._toggleHandler),this._toggleHandler=this.toggle.bind(this),this.trigger.addEventListener("click",this._toggleHandler)}toggle(){config.isOpen?this.close():this.open()}open(){sizeDrawer();let scrollTo=getScrollFilterTop();window.scrollTo({top:scrollTo,behavior:"smooth"}),this.trigger.classList.add("is-active"),prepareTransition(this.filters,function(){this.filters.classList.add("is-active")}.bind(this)),config.isOpen=!0,lockMobileScrolling(),this._keyupHandler=evt=>{evt.keyCode===27&&this.close()},window.addEventListener("keyup",this._keyupHandler)}close(){this.trigger.classList.remove("is-active"),prepareTransition(this.filters,function(){this.filters.classList.remove("is-active")}.bind(this)),config.isOpen=!1,unlockMobileScrolling(),window.removeEventListener("keyup",this._keyupHandler)}onSelect(){this.open()}onDeselect(){this.close()}}
2//# sourceMappingURL=/cdn/shop/t/169/assets/collection-sidebar.js.map?v=32046460992339877421789593032

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.