PageSourceSearch

https://www.resorti.de/theme/31b3fed2a11c3f376e364927abdb68bc/js/w…ytics.productClickTracking.plugin.5cc92c.js

js resorti.de collected 2026-09-25 05:38:01 UTC 4,200 bytes, 8 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[49532],{795:(t,e,r)=>{r.d(e,{A:()=>i});var o=r(707);class i{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!i.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===i.hasAttribute(t,e))throw Error(`The required property "${e}" does not exist!`);if("function"!=typeof t.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=e.replace(/^data(|-)/,""),n=o.A.toLowerCamelCase(s,"-");if(!i.isNode(t)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let l=t.dataset[n];if(void 0===l){if(r)throw Error(`The required data attribute "${e}" does not exist on ${t}!`);return l}return o.A.parsePrimitive(l)}static querySelector(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let o=t.querySelector(e)||!1;if(r&&!1===o)throw Error(`The required element "${e}" does not exist in parent node!`);return o}static querySelectorAll(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let o=t.querySelectorAll(e);if(0===o.length&&(o=!1),r&&!1===o)throw Error(`At least one item of "${e}" must exist in parent node!`);return o}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,e=`
2            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),
3            select:not([tabindex^="-"]):not([disabled]),
4            textarea:not([tabindex^="-"]):not([disabled]),
5            button:not([tabindex^="-"]):not([disabled]),
6            a[href]:not([tabindex^="-"]):not([disabled]),
7            [tabindex]:not([tabindex^="-"]):not([disabled])
8        `;return t.querySelectorAll(e)}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}},532:(t,e,r)=>{r.r(e),r.d(e,{default:()=>l});var o=r(220),i=r(795),s=r(948),n=r(927);class l extends o.A{init(){"undefined"!=typeof gtmIsTrackingProductClicks&&!0===gtmIsTrackingProductClicks&&this._registerEvents()}_registerEvents(){let t=this;this.el.addEventListener("click",e=>{t.onProductClicked(e)})}onProductClicked(t){if(!this.el.dataset.hasOwnProperty("addToWishlist")||!this.el.dataset.addToWishlist){i.A.hasAttribute(this.el,"href")&&t.preventDefault();try{let t=this._getProduct();window.dataLayer.push({event:"select_item",ecommerce:{items:[t]}})}catch(t){console.info(t)}if(this._shouldRedirect(t)){let e=t.shiftKey||t.ctrlKey||t.metaKey||1===t.button,r=i.A.getAttribute(this.el,"href");setTimeout(()=>{e?window.open(r,"_blank"):document.location=r},100)}}}_getProduct(){let t=n.A.getProductNoFromProductBox(this.el);return s.A.getProductFromImpressions(t)}_shouldRedirect(t){let e=!1;i.A.hasAttribute(this.el,"href")&&(e=!0),t.target.classList.contains("btn-buy")&&(e=!1);let r='[data-swag-cms-extensions-quickview="true"]';return(null!==this.el.closest(".cms-section")&&null!==this.el.closest(".cms-section").querySelector(r)||document.body.classList.contains("is-ctl-search")&&null!==this.el.closest(".container-main")&&null!==this.el.closest(".container-main").querySelector(r))&&(e=!1),e}}},927:(t,e,r)=>{r.d(e,{A:()=>i});var o=r(795);class i{static getProductNoFromProductDetail(){return o.A.querySelector(document,'[itemprop="sku"]').innerText}static getProductNoFromProductBox(t){let e=t.closest(".product-box");return o.A.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.