1class WishlistNotification extends window.BAO.CustomElement(){connectedCallback(){super.connectedCallback(),this.setupListeners()}setupListeners(){super.setupListeners(),this.handleShowToastNotification=this.handleShowToastNotification.bind(this),this.handleClose=this.handleClose.bind(this),this.handleStartCloseFunction=this.handleStartCloseFunction.bind(this),this.handleStopCloseFunction=this.handleStopCloseFunction.bind(this),this.handleShowToastNotification(),this.listeners.add(this.els.close.element,"click",this.handleClose),this.listeners.add(this,"mouseover",this.handleStopCloseFunction),this.listeners.add(this,"mouseout",this.handleStartCloseFunction)}handleShowToastNotification(){window.SwymCallbacks=window.SwymCallbacks||[],window.SwymCallbacks.push(swat=>{window._swat.evtLayer.addEventListener(window._swat.JSEvents.addedToWishlist,data=>{const productTitle=data.detail.d.dt,productImage=data.detail.d.iu,listConfig={lid:data.detail.d.lid},onSuccess=listDetails=>{const listName=listDetails.list.lname;this.els.media.element.innerHTML=productImage?`<div class="rsp-Image"><img class="rsp-Image_Image" src="${productImage}" alt="${productTitle}"></div>`:"",this.els.title.element.innerHTML=`<strong>${productTitle}</strong> has been added to <strong>${listName}</strong> successfully.`},onError=error=>{this.handleClose(),console.log("Error while fetching List details",error)};window._swat.fetchListDetails(listConfig,onSuccess,onError),setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.handleStartCloseFunction()},1e3)})})}handleClose(){this.setAttribute("aria-hidden","true")}handleStartCloseFunction(){this.closeTimeout=setTimeout(()=>{this.handleClose()},4e3)}handleStopCloseFunction(){clearTimeout(this.closeTimeout)}}customElements.get("wishlist-notification")||customElements.define("wishlist-notification",WishlistNotification); 2//# sourceMappingURL=/cdn/shop/t/199/assets/wishlist-notification.js.map?v=105323910705382170661790954133
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.