1import{isDesktop as r,noop as t}from"../../../util/coreUtils.js";import{showError as e}from"../../../util/messages/toasts.js";import{WishlistHandler as n}from"../../../util/viewComponents/wishlistHandler.js";import{AddToCartButtonHandler as i}from"../../shared/addToCartButtonHandler.js";import{Carousel as s}from"../../shared/components/carousel/carousel.js";import{MiniPDPHandler as a}from"../../shared/miniPDP/miniPDPHandler.js";export class ComplementaryProductsHandler{container;productCarouselSelector=".js-product-carousel";constructor(o){this.container=o,new n({container:this.container,onWishlistStatusChangeComplete:t,handleError:e}),new i({container:this.container}),new a(this.container),r()&&this.desktopCarousel()}desktopCarousel=async()=>{const o=this.container.querySelector(this.productCarouselSelector);o!=null&&new s(o)}}
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.