1(self.webpackChunkapp_project=self.webpackChunkapp_project||[]).push([[7312],{44926:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>r});const i=s(38302).default;class r extends i{constructor(e){super(e),this.track=e.querySelector(".subcategory-nav__track"),this.activeItem=e.querySelector(".subcategory-nav__item--active"),this.scrollActiveIntoView(),this.initDragScroll(),this.initScrollFades(),this.initGridBoundary(),"true"===e.dataset.evf&&this.initEvfVisibility()}scrollActiveIntoView(){this.activeItem&&this.track&&this.activeItem.scrollIntoView({inline:"center",block:"nearest",behavior:"instant"})}initDragScroll(){const e=this.track;if(!e)return;let t=!1,s=0,i=0,r=!1;e.addEventListener("mousedown",(n=>{t=!0,r=!1,s=n.pageX-e.offsetLeft,i=e.scrollLeft,e.classList.add("is-dragging")})),e.addEventListener("dragstart",(e=>e.preventDefault())),document.addEventListener("mousemove",(n=>{if(!t)return;const a=n.pageX-e.offsetLeft-s;Math.abs(a)>4&&(r=!0),e.scrollLeft=i-a})),document.addEventListener("mouseup",(()=>{t&&(t=!1,e.classList.remove("is-dragging"))})),e.addEventListener("click",(e=>{r&&(e.preventDefault(),r=!1)}),!0)}initScrollFades(){const e=this.track;if(!e)return;const t=()=>{this.element.classList.toggle("has-fade-left",e.scrollLeft>0),this.element.classList.toggle("has-fade-right",e.scrollLeft+e.clientWidth<e.scrollWidth-1)};e.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t,{passive:!0}),t()}initGridBoundary(){const e=document.querySelector(".product-grid");e&&new IntersectionObserver((e=>{let[t]=e;const s=!t.isIntersecting&&t.boundingClientRect.bottom<0;this.element.classList.toggle("subcategory-nav--out-of-grid",s)}),{threshold:0}).observe(e)}initEvfVisibility(){const e=document.querySelector(".search-banner.has-evf");e&&new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting?this.element.classList.add("subcategory-nav--evf-hidden"):this.element.classList.remove("subcategory-nav--evf-hidden")}))}),{threshold:0}).observe(e)}}}}]);
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.