1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[8688],{8328:(e,n,t)=>{t.r(n),t.d(n,{default:()=>o});var s=t(76202),i=t(98684),l=t(930);class o{constructor(e,n){this.element=e,this.wrapper=this.element.parentElement,this.layer=new s.default(this.wrapper,{layerModifierClasses:"nx-layer--popup"}),this.init(n)}init(e){return this.layer.insertContent(this.getPopUp(e)),this.element.addEventListener("click",e=>this.onElementClick(e)),this}onElementClick(e){e.preventDefault(),e.stopPropagation(),this.element.classList.toggle("nx-submenu--open"),(0,i.nB)(this.element,"nx-submenu--open")?(document.addEventListener("click",e=>this.onBodyClick(e)),this.layer.open()):this.layer.close()}onBodyClick(e){const n=e.target.closest(".nx-header-icons__link");n&&n!==this.element||this.closeLayer()}closeLayer(){(0,i.vy)(this.element,"nx-submenu--open"),document.removeEventListener("click",e=>this.onBodyClick(e)),this.layer.close()}getPopUp(e){return(0,i.Uo)(`\n <div class="nx-submenu">\n <h2 class="nx-submenu__title"></h2>\n <ul class="nx-submenu-popup">\n ${e.map(e=>(0,l.l9)(e)).join("")}\n </ul>\n </div>\n `)}}}}]); 2//# sourceMappingURL=/dist/NiveaX/./modules/HeaderIconsSubmenu-HeaderIconsSubmenu.c9da9604.js.423beeb6.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.