PageSourceSearch

https://www.nivea.co.jp/dist/NiveaX/modules/HeaderActions.504faaeb.js

js nivea.co.jp collected 2026-10-02 16:32:55 UTC 2,418 bytes, 2 lines download raw bytes

1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[7921,8688,9201],{8328:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var s=n(76202),i=n(98684),r=n(930);class a{constructor(e,t){this.element=e,this.wrapper=this.element.parentElement,this.layer=new s.default(this.wrapper,{layerModifierClasses:"nx-layer--popup"}),this.init(t)}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 t=e.target.closest(".nx-header-icons__link");t&&t!==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,r.l9)(e)).join("")}\n                </ul>\n            </div>\n        `)}}},71469:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var s=n(93096);const i='[data-module="HeaderActions"]';class r{static setup(e=i){Array.from(document.querySelectorAll(e)).filter(e=>!e.dataset.moduleInitialized).forEach(e=>{new r(e),e.dataset.moduleInitialized="true"})}constructor(e,t){this.element=e,this.navStructure=t,this.init()}init(){if(this.navStructure=this.navStructure||this.getNavStructure(),!this.navStructure)return;const e=Array.from(this.element.querySelectorAll("[data-action-id]"));this.adjustActions(e,this.navStructure),NiveaX.initModules(),document.dispatchEvent(new CustomEvent("niveax:desktopActionIconInit"))}getNavStructure(){const e=document.querySelector("[data-navigation-structure]");return e&&JSON.parse(e.innerHTML)||{}}adjustActions(e,t){const{ActionMenu:n}=t;e.forEach(e=>{const{actionId:t}=e.dataset,s=n.find(e=>e.Id===t);if(!s)return;const{Link:i,Module:r,Submenu:a}=s;
1i&&(e.href=i),r&&e.setAttribute("data-module",r),a&&this.addSubmenu(e,a)})}addSubmenu(e,t){new s.default(e,t)}}r.setup(i)},93096:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});const s=n(8328).default}}]);
2//# sourceMappingURL=/dist/NiveaX/./modules/HeaderActions.504faaeb.js.4ff8df4b.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.