1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[966],{12910:(t,e,i)=>{i.r(e),i.d(e,{default:()=>o});var s=i(21464);class o{static setup(t='[data-module="ProductDetailPageTwoColumns"]'){Array.from(document.querySelectorAll(t)).filter(t=>!t.dataset.moduleInitialized).forEach(t=>{new o(t),t.dataset.moduleInitialized="true"})}constructor(t){this.element=t,this.leftColumn=this.element.querySelector(".nx-two-columns__half-col"),this.rightColumn=this.element.querySelectorAll(".nx-two-columns__half-col")[1],this.init()}adjustZIndex(){this.element.querySelectorAll(".nx-two-columns__half-col").forEach(t=>{const e=t.querySelector(".nx-ingredients-section .nx-tooltip"),i=t.querySelector(".nx-pas__button");(e||i)&&t.classList.add("nx-two-columns__half-col--higher-z-index")})}init(){this.initStickyness(),this.adjustZIndex(),NiveaX.addToEventStore("resize",(0,s.sg)(()=>this.onResizeEvent(),250),window)}initStickyness(){this.getColumns(),this.isStickyNotApplicable()||this.setShortColumnSticky()}isStickyNotApplicable(){return window.NiveaX.deviceType.isMobile||window.NiveaX.deviceType.isTablet||this.longColumn.clientHeight<=1.5*this.shortColumn.clientHeight}setShortColumnSticky(){this.shortColumn.style.position="sticky",this.shortColumn.style.top="48px"}getColumns(){const t=this.leftColumn.clientHeight<this.rightColumn.clientHeight;return this.shortColumn=t?this.leftColumn:this.rightColumn,this.longColumn=t?this.rightColumn:this.leftColumn,this}onResizeEvent(){this.reinit()}reinit(){this.unsetShortColumnSticky(),this.initStickyness()}unsetShortColumnSticky(){this.shortColumn.style.position="initial",this.shortColumn.style.top=""}}}}]); 2//# sourceMappingURL=/dist/NiveaX/./modules/ProductDetailPageTwoColumns-ProductDetailPageTwoColumns.40faf98f.js.cd57c88c.map
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.