1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[57826],{795(t,e,o){o.d(e,{A:()=>i});var r=o(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 o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(o&&!1===i.hasAttribute(t,e))throw Error(`The required property "${e}" does not exist!`);if("function"!=typeof t.getAttribute){if(o)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=e.replace(/^data(|-)/,""),a=r.A.toLowerCamelCase(n,"-");if(!i.isNode(t)){if(o)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(o)throw Error("This node doesn't support the dataset attribute!");return}let s=t.dataset[a];if(void 0===s){if(o)throw Error(`The required data attribute "${e}" does not exist on ${t}!`);return s}return r.A.parsePrimitive(s)}static querySelector(t,e){let o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(o&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let r=t.querySelector(e)||!1;if(o&&!1===r)throw Error(`The required element "${e}" does not exist in parent node!`);return r}static querySelectorAll(t,e){let o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(o&&!i.isNode(t))throw Error("The parent node is not a valid HTML Node!");let r=t.querySelectorAll(e);if(0===r.length&&(r=!1),o&&!1===r)throw Error(`At least one item of "${e}" must exist in parent node!`);return r}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]}}},826(t,e,o){o.r(e),o.d(e,{default:()=>n});var r=o(220),i=o(795);class n extends r.A{init(){if(!window.wbmScriptIsSet)return;let t=this,e=!1;try{e=i.A.querySelectorAll(this.el,"[data-promotion]")}catch(t){return}this.promotions=[],e.forEach(e=>{t.registerEvent(e)}),this.pushPromoView()}registerEvent(t){let e=this;try{i.A.querySelectorAll(t,"a, area").forEach(t=>{let o=JSON.parse(JSON.stringify(t.dataset));(void 0!==o.promotionId||"undefinded"!==o.promotionName)&&(e.addPromotion(o),t.addEventListener("click",r=>{e.onPromotionClicked(r,t,o)}))})}catch(t){}}onPromotionClicked(t,e,o){t.preventDefault(),dataLayer.push({event:"promotionClick",ecommerce:{promoClick:{promotions:[{id:o.promotionId||"",name:o.promotionName||"",creative:o.promotionCreative||"",position:o.promotionPosition||""}]}},eventCallback:function(){document.location=i.A.getAttribute(e,"href")}})}addPromotion(t){let e={id:t.promotionId||"",name:t.promotionName||"",creative:t.promotionCreative||"",position:t.promotionPosition||""};this.promotions.push(e)}pushPromoView(){this.promotions.length>0&&window.dataLayer.push({event:"promotions",ecommerce:{promoView:{promotions:this.promotions}}})}}}}]);
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.