PageSourceSearch

https://diman-shop.de/theme/981676295af6ec59e40df2cefa4255db/js/wb…/addToWishlistTracking.plugin.844b00.js

js diman-shop.de collected 2026-10-02 00:08:49 UTC 1,187 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["addToWishlistTracking.plugin"],{524:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r});var i=s(568),o=s(971),d=s(206);class r extends i.Z{init(){"undefined"!=typeof gtmIsTrackingAddToWishlistClicks&&!0===gtmIsTrackingAddToWishlistClicks&&(this._registerEvents(),this.el.dataset.isAdded=this.el.classList.contains("product-wishlist-added").toString())}_registerEvents(){let t=this;this.el.addEventListener("click",e=>{t._onAddToWishlistClicked(e)})}_onAddToWishlistClicked(){try{if(this.el.classList.contains("product-wishlist-not-added"))return;let t=this._getProduct();window.dataLayer.push({event:"add_to_wishlist",ecommerce:{items:[t]}})}catch(t){console.info(t)}}_getProduct(){let t=document.body.classList.contains("is-ctl-product")?o.Z.getProductNoFromProductDetail():o.Z.getProductNoFromProductBox(this.el);return d.Z.getProductFromImpressions(t)}}},971:(t,e,s)=>{s.d(e,{Z:()=>o});var i=s(49);class o{static getProductNoFromProductDetail(){return i.Z.querySelector(document,'[itemprop="sku"]').innerText}static getProductNoFromProductBox(t){let e=t.closest(".product-box");return i.Z.querySelector(e,'[name="sku"]').value}}}}]);

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.