1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[3699,4318,4673,8174,8242],{1001:(e,t,i)=>{i.r(t),i.d(t,{default:()=>s});var n=i(21464);class s{constructor(e,t={}){this.container=e,this.options=t,this.active=this.container.className.includes("active"),this.options=(0,n.$E)(this.container,Object.assign(this.getDefaultOptions(),this.options)),this.init()}init(){return this.setElementHeight(this.container,this.getSuitableHeight()),this.setOnResizeHandler(),this}saveInitialHeight(){return this.height=this.getElementHeight(this.container),this}getElementHeight(e){return e.offsetHeight}getSuitableHeight(){return this.active?"":this.options.collapsedHeight+"px"}setElementHeight(e,t){return e.style.maxHeight=null!=t?t:"",this}toggleState(){return this.active=!this.active,this}getDefaultOptions(){return{collapsedHeight:115}}setOnResizeHandler(){return NiveaX.addToEventStore("resize",()=>(0,n.Ys)(()=>this.onResize(),300),window),this}onResize(){const e=this.getSuitableHeight();this.setElementHeight(this.container,e)}setCollapsedHeight(e){return this.options.collapsedHeight=e,this}toggle(){return this.toggleState().setElementHeight(this.container,this.getSuitableHeight()),this}isActive(){return this.active}needToBeShown(){return this.height>1.25*this.options.collapsedHeight}clear(){return this.setElementHeight(this.container).saveInitialHeight(),this}render(){const e=this.getSuitableHeight();return this.setElementHeight(this.container,e),this}getContainer(){return this.container}}},23125:(e,t,i)=>{i.r(t),i.d(t,{default:()=>n});const n=i(44648).default},44648:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a});var n=i(89086),s=i(23425);class a extends((0,s.A)(n.default)){trackingEvent(e,t){if(window.NiveaX.deviceType.isDesktop)return;
1if(!t||e.closest(".nx-filter-layer"))return;let i=!1,n="";return e.className.search("active")>0&&(i=!0),n=this.setLabel(e),document.body.classList.contains("nx-pagetype-product")?this.trackPDPSection(e,"Tap minus",n):this.preventMultipleClicks(i,n),this}setLabel(e){let t=e.querySelector("h2"),i=e.querySelector("h3");return t?t.innerText:i?i.innerText:void 0}trackPDPSection(e,t,i){e.className.search("active")>0&&(t="Tap plus"),this.trackPDPSections("Product Detail Page",t,i)}preventMultipleClicks(e,t){e&&(this.element.classList.contains("nx-trigger-once")||(this.trackElementClick(t),this.element.classList.add("nx-trigger-once")),setTimeout(()=>{this.element.classList.remove("nx-trigger-once")},100))}trackElementClick(e){window.NiveaX.IsUAEnabled&&this.dataLayer.push({event:"ga_event",eventCategory:"Expand Content",eventAction:"Tap Button",eventLabel:e,eventNonInteraction:!1})}trackPDPSections(e,t,i){window.NiveaX.IsUAEnabled&&this.dataLayer.push({event:"ga_event",eventCategory:e,eventAction:t,eventLabel:i,eventNonInteraction:!1})}toggleExpander(e=!0){super.toggleExpander(e),this.trackingEvent(this.element,e),console.log(this.expanderState)}}},57681:(e,t,i)=>{i.r(t),i.d(t,{default:()=>o});var n=i(23125),s=i(21464);const a='[data-module="FAQ"]';class o{static setup(e=a){Array.from(document.querySelectorAll(e)).filter(e=>!e.dataset.moduleInitialized).forEach(e=>{new o(e),e.dataset.moduleInitialized="true"})}constructor(e,t={}){this.element=e,this.options=t,this.options=(0,s.$E)(this.element,Object.assign(o.getDefaultOptions(),this.options)),this.expanderNodes=Array.from(this.element.querySelectorAll(`.${this.options.expanderItemSelector}`)),this.expanders=this.expanderNodes.map(e=>this.initExpander(e,this.getExpanderOptions()))}initExpander(e,t){return new n.default(e,t)}getExpanderOptions(){return{elementSelector:this.options.expanderItemSelector,containerSelector:this.options.expanderContentSelector,buttonSelector:this.options.expanderButtonSelector,hasFade:!1,expandableOptions:{collapsedHeight:0}}}static getDefaultOptions(){return{expanderItemSelector:"nx-faq-expand-item",expanderButtonSelector:"nx-faq-expand-item__title",expanderContentSelector:"nx-faq-expand-item__data"}}}o.setup(a)},89086:(e,t,i)=>{i.r(t),i.d(t,{default:()=>o});var n=i(1001),s=i(21464);const a='[data-module="Expander"]';class o{static setup(e=a){Array.from(document.querySelectorAll(e)).filter(e=>!e.dataset.moduleInitialized).forEach(e=>{new o(e),e.dataset.moduleInitialized="true"})}constructor(e,t={}){this.element=e,this.options=t,this.options=(0,s.$E)(this.element,Object.assign(this.getDefaultOptions(),this.options)),this.container=this.element.querySelector(`.${this.options.containerSelector}`)||this.element,this.button=this.element.querySelector(`.${this.options.buttonSelector}`),this.expandable=new n.default(this.container,this.options.expandableOptions),this.init()}init(){return this.showExpanderButton().setButtonEventHandler().setOnResizeHandler().adjustAppearance().applyActiveFromOptions().applyContentAlignmentFromOptions(),this}showExpanderButton(){return this.button.hidden=!1,this}setButtonEventHandler(){return this.button.addEventListener("click",this.toggleExpander.bind(this)),this}toggleActiveModifier(e){return e?this.element.classList.add(`${this.options.elementSelector}--active`):this.element.classList.remove(`${this.options.elementSelector}--active`),this}showFade(e){return e?this.options.hasFade&&this.container.classList.add(`${this.options.containerSelector}--with-fade`):this.options.hasFade&&this.container.classList.remove(`${this.options.containerSelector}--with-fade`),this}toggleExpander(e=!0){this.expandable.toggle(),this.toggleActiveModifier(this.expandable.isActive()),this.expanderState=this.expandable.isActive()?"Expanded":"Collapsed"}onResize(){this.options.beforeResize(),this.options.isActive&&this.adjustAppearance()}applyActiveFromOptions(){return this.options.isActive&&this.toggleExpander(!1),this}applyContentAlignmentFromOptions(){return this.options.contentAlignment&&this.container.classList.add(`${this.options.containerSelector}--align-`+this.options.contentAlignment),this}setOnResizeHandler(){return NiveaX.addToEventStore("resize",()=>(0,s.Ys)(()=>this.onResize(),300),window),this}
1setupExpander(){return this.expandable.render(),this.showFade(!0).hideButton(!1),this}destroyExpander(){return this.expandable.clear(),this.showFade(!1).hideButton(!0),this}hideButton(e){return this.button.hidden=e,this}getDefaultOptions(){return{elementSelector:"nx-expander",containerSelector:"nx-expander__content",buttonSelector:"nx-expander__button",hasFade:!0,beforeResize:()=>{}}}adjustAppearance(){return this.expandable.clear(),this.expandable.needToBeShown()?this.setupExpander():this.destroyExpander(),this}setCollapsedHeight(e){return this.expandable.setCollapsedHeight(e),this}setBeforResizeCB(e){return this.options.beforeResize=e,this}isActive(){return this.expandable.isActive()}toggle(){return this.toggleExpander(),this}}o.setup(a)}}]); 2//# sourceMappingURL=/dist/NiveaX/./modules/FAQ.aa7ac26a.js.03d3b6e6.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.