PageSourceSearch

https://imageskincare.com/cdn/shop/t/756/assets/collection-navigation.D9SZTtGR.min.js

js imageskincare.com collected 2026-10-02 17:04:46 UTC 1,698 bytes, 1 lines download raw bytes

1const t=".js-collection-nav-item",e=".collection-navigation__menu",n="active";class i extends window.HTMLElement{connectedCallback(){this.menu=this.querySelector(e),this.linkData=this.getLinkData(),this.currentCollectionHandle=this.getCurrentCollectionHandle(),this.linkData&&this.linkData.length&&this.menu&&(this.renderMenu(),this.collectionNavItems=this.querySelectorAll(t),this.initializeCollectionNavigation())}getLinkData(){const t=this.getAttribute("data-link-data");if(!t)return null;try{return JSON.parse(t)}catch(e){return null}}getCurrentCollectionHandle(){const t=this.getAttribute("data-current-handle");if(t)return t;const e=window.location.pathname.match(/\/collections\/([^/]+)/);return e?e[1]:null}renderMenu(){this.menu&&this.linkData&&(this.menu.innerHTML=this.linkData.map(t=>{const e=t.url||"",n=t.text||"",i=this.extractCollectionHandle(e),l=this.escapeHtml(e),a=this.escapeHtml(n);return`<a href="${l}" class="collection-navigation__item js-collection-nav-item" data-collection-handle="${this.escapeHtml(i)}" tabindex="0" aria-label="${a}">${a}</a>`}).join(""))}extractCollectionHandle(t){if(!t)return"";const e=t.match(/\/collections\/([^/?]+)/);return e?e[1]:""}escapeHtml(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}initializeCollectionNavigation(){this.collectionNavItems&&this.collectionNavItems.length&&this.collectionNavItems.forEach(t=>{const e=t.getAttribute("data-collection-handle")===this.currentCollectionHandle;t.classList.toggle(n,e),e&&this.scrollActiveItemIntoView(t)})}scrollActiveItemIntoView(t){t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}window.customElements.define("collection-navigation",i);

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.