1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[76960],{960:(t,e,s)=>{s.r(e),s.d(e,{default:()=>d});var i=s(709),o=s(646);class d extends window.PluginBaseClass{init(){window.ga4WishlistTracking&&window.acceptedGtag&&(this._registerEvents(),this.el.dataset.isAdded=this.el.classList.contains("product-wishlist-added").toString())}_registerEvents(){this.el.addEventListener("click",this._onAddToWishlistClicked.bind(this))}_onAddToWishlistClicked(){if(this.el.classList.contains("product-wishlist-not-added"))return;let t=this._getProduct();window.dataLayer.push({event:"add_to_wishlist",ecommerce:{items:[t]}})}_getProduct(){let t=document.body.classList.contains("is-ctl-product")?this.getProductNoFromProductDetail():this.getProductNoFromProductBox(this.el);return o.Z.getProductFromImpressions(t)}getProductNoFromProductBox(){return this.productBox=this.el.closest(".product-box"),i.Z.querySelector(this.productBox,'[name="sku"]',!1).value}getProductNoFromProductDetail(){return i.Z.querySelector(document,'[itemprop="sku"]').innerText}}}}]);
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.