https://www.shop.jungheinrich.ch/assets/current/jhparts/js/yves_default.3834.430e971f439cb4e6a093.js
1"use strict";(globalThis.webpackJsonp_yves_default=globalThis.webpackJsonp_yves_default||[]).push([[3834],{62391:(t,e,a)=>{a.d(e,{T:()=>r});function r(t,e){let a;if(!("google_tag_manager"in window&&"IntersectionObserver"in window&&"dataLayer"in window&&e))return;try{a=JSON.parse(e)}catch(t){return}if(!a)return;const r=new IntersectionObserver((e=>{e[0].isIntersecting&&(r.unobserve(t),window.dataLayer.push(a))}));r.observe(t)}},42606:(t,e,a)=>{a.d(e,{C:()=>r});function r(t,e){let a;if(!("google_tag_manager"in window)||!("dataLayer"in window)||!t)return e&&e();try{a=JSON.parse(t)}catch(t){return}a&&(a={...a,...e&&{eventCallback:e,eventTimeout:2e3}},window.dataLayer.push(a))}},33834:(t,e,a)=>{a.r(e),a.d(e,{default:()=>i});var r=a(97337),s=a(42606),n=a(62391);class i extends r.Z{constructor(...t){super(...t),this.links=void 0,this.component=void 0,this.cartOverlay=void 0,this.buttonAlreadyInCart=void 0,this.buttonAjaxAddToCart=void 0}readyCallback(){this.component=this,this.links=Array.from(this.querySelectorAll("a")),this.cartOverlay=this.component.getElementsByTagName("cart-overlay")[0],this.buttonAjaxAddToCart=this.component.querySelector(".js-button-ajax-add-to-cart"),this.buttonAlreadyInCart=this.component.querySelector(".js-button-already-in-cart"),this.mapEvents()}mapEvents(){this.links.forEach((t=>t.addEventListener("click",(e=>this.pushDataLayer(t,e)))));const t=document.cookie.includes("CookieConsent=")?"CookiebotOnConsentReady":"CookiebotOnAccept";window.addEventListener(t,(()=>{(0,n.T)(this.component,this.dataLayerPushImpressionData)}),!1),this.mapTriggerCustomUpdateMessagesEvent()}mapTriggerCustomUpdateMessagesEvent(){document.addEventListener("EVENT_UPDATE_CART_"+this.abstractSku,(t=>{if(200===t.detail.code){this.cartOverlay.classList.remove("is-hidden"),this.buttonAjaxAddToCart.classList.add("is-hidden"),this.buttonAlreadyInCart.classList.remove("is-hidden");this.cartOverlay.querySelector(".js-cart-item-added__success").textContent=t.detail.cartLabel}}))}pushDataLayer(t,e){t instanceof HTMLAnchorElement&&e.preventDefault(),t.getAttribute(this.dataLayerPushDataSelector)?(0,s.C)(t.getAttribute(this.dataLayerPushDataSelector),(()=>this.openLink(t))):this.openLink(t)}openLink(t){t instanceof HTMLAnchorElement?location.href=t.href?t.href:t.querySelector("a").href:t.getAttribute("data-link")&&(location.href=t.getAttribute("data-link"))}get dataLayerPushDataSelector(){return"data-layer-push-click"}get dataLayerPushImpressionData(){return this.getAttribute("data-layer-push-impression")}get abstractSku(){return this.getAttribute("data-abstract-sku")}}}}]);
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.