PageSourceSearch

https://www.shop.jungheinrich.cz/assets/current/jhparts/js/yves_default.label-group.0b91f7e674b2f7606dba.js

js jungheinrich.cz collected 2026-10-07 00:44:37 UTC 2,948 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackJsonp_yves_default=globalThis.webpackJsonp_yves_default||[]).push([[71],{43380:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});var a=s(97337),l=s(11963);class o extends a.Z{constructor(...t){super(...t),this.productLabelFlags=void 0,this.productLabelTag=void 0,this.productItem=void 0}readyCallback(){}init(){this.productLabelFlags=Array.from(this.getElementsByClassName(`${this.jsName}__label-flag`)),this.productLabelTag=this.getElementsByClassName(`${this.jsName}__label-tag`)[0],this.productItemClassName&&(this.productItem=this.closest(`.${this.productItemClassName}`)),this.mapEvents()}mapEvents(){this.productItem&&this.mapProductItemUpdateLabelsCustomEvent()}mapProductItemUpdateLabelsCustomEvent(){this.productItem.addEventListener(l.rt,(t=>{this.setProductLabels(t.detail.labels)}))}setProductLabels(t){if(!t.length)return this.productLabelFlags.forEach((t=>t.classList.add(this.classToToggle))),void this.productLabelTag.classList.add(this.classToToggle);const e=this.productLabelTag.getAttribute("data-label-tag-type"),s=t.filter((t=>t.type!==e)),a=t.filter((t=>t.type===e));a.length||this.productLabelTag.classList.add(this.classToToggle),s.length||this.productLabelFlags.forEach((t=>t.classList.add(this.classToToggle))),this.updateProductLabels(s,a[0])}updateProductLabelTag(t){const e=this.productLabelTag.getElementsByClassName(`${this.jsName}__label-tag-text`)[0];this.productLabelTag.classList.remove(this.classToToggle),e.innerText=t.text}createProductLabelFlagClones(){const t=this.productLabelFlags[0].cloneNode(!0);this.productLabelFlags[0].parentNode.insertBefore(t,this.productLabelFlags[0].nextSibling),this.productLabelFlags=Array.from(this.getElementsByClassName(`${this.jsName}__label-flag`))}deleteProductLabelFlagClones(t){for(;this.productLabelFlags.length>t.length;)this.productLabelFlags[this.productLabelFlags.length-1].remove(),this.productLabelFlags=Array.from(this.getElementsByClassName(`${this.jsName}__label-flag`))}deleteProductLabelFlagModifiers(t){this.productLabelFlags[t].classList.forEach((e=>{e.includes("--")&&this.productLabelFlags[t].classList.remove(e)}))}updateProductLabelFlags(t,e){const s=this.productLabelFlags[e].getAttribute("data-config-name"),a=this.productLabelFlags[e].getElementsByClassName(`${this.jsName}__label-flag-text`)[0];t.type&&this.productLabelFlags[e].classList.add(`${s}--${t.type}`),this.productLabelFlags[e].classList.remove(this.classToToggle),a.innerText=t.text}updateProductLabels(t,e){e&&this.updateProductLabelTag(e),t.length&&t.forEach(((e,s)=>{s>=1&&this.createProductLabelFlagClones(),this.deleteProductLabelFlagClones(t),this.deleteProductLabelFlagModifiers(s),this.updateProductLabelFlags(e,s)}))}get classToToggle(){return this.getAttribute("class-to-toggle")}get productItemClassName(){return this.getAttribute("product-item-class-name")}}},11963:(t,e,s)=>{s.d(e,{fX:()=>l,rt:()=>a});const a="updateLabels",l="updateAddToCartUrl"}}]);

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.