1import { a as autobind } from './bundled-index2.js'; 2import { D as Directive } from './bundled-Directive.js'; 3import './bundled-app.js'; 4 5function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}function e(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}class ProductThumbnails extends Directive{onAppInit(){this.productCarouselEl&&this.thumbnails.length>1&&this.bindEvents();}bindEvents(){this.productCarouselSwiper=this.productCarouselEl?.swiper,this.productCarouselSwiper?.on("activeIndexChange",this.onActiveIndexChange);}onActiveIndexChange(t){let e=Array.from(this.thumbnails).filter(t=>t.classList.contains("active"))[0],i=this.thumbnails[t.activeIndex];e!=i&&(e?.classList.remove("active"),i?.classList.add("active"));}constructor(...t){super(...t),this.productCarouselEl=document.querySelector(".product__media-container.below-mobile"),this.thumbnails=this.host.querySelectorAll(".product__mobileThumbnailsItemLink");}}ProductThumbnails.selector="[product-thumbnails]",t([autobind,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],ProductThumbnails.prototype,"bindEvents",null),t([autobind,e("design:type",Function),e("design:paramtypes",[Object]),e("design:returntype",void 0)],ProductThumbnails.prototype,"onActiveIndexChange",null); 6 7export { ProductThumbnails };
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.