PageSourceSearch

https://www.nivea.co.jp/dist/NiveaX/modules/PromotionBanner-PromotionBannerWithT.d39bcef0.js

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

1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[2413,8742],{36576:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var o=n(50406),i=n(23425);const r='[data-module="PromotionBanner"]';class a extends((0,i.A)(o.default)){static setup(e=r){Array.from(document.querySelectorAll(e)).filter(e=>!e.dataset.moduleInitialized).forEach(e=>{new a(e),e.dataset.moduleInitialized="true"})}constructor(e){if(super(e),this.element=e,window.NiveaX.IsUAEnabled){this.promotionId=this.element.getAttribute("data-promotion-id"),this.promotionName=this.element.querySelector(".nx-pb-content__headline");const e=sessionStorage.getItem("promotionBannerHidden");if(!this.promotionId||e)return;this.trackBannerImpression(),this.element.addEventListener("click",e=>{e.target.classList.contains("nx-pb-content__button")&&this.trackBannerClick()})}}trackBannerImpression(){this.dataLayer.push({event:"promoView",ecommerce:{promoView:{promotions:[{id:this.promotionId,name:this.promotionName?this.promotionName.innerText:"",creative:this.dataLayer[0]?this.dataLayer[0].template:"",position:"Promotion Banner"}]}}})}trackBannerClick(){this.dataLayer.push({event:"promoClick",ecommerce:{promoClick:{promotions:[{id:this.promotionId,name:this.promotionName?this.promotionName.innerText:"",creative:this.dataLayer?this.dataLayer[0].template:"",position:"Promotion Banner"}]}}})}}a.setup(r)},50406:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});class o{static setup(e='[data-module="PromotionBanner"]'){Array.from(document.querySelectorAll(e)).filter(e=>!e.dataset.moduleInitialized).forEach(e=>{new o(e),e.dataset.moduleInitialized="true"})}constructor(e){this.element=e,this.init()}init(){this.element.addEventListener("click",e=>this.onPromotionBannerClose(e)),window.sessionStorage.setItem("promotionBannerInitialized","true")}onPromotionBannerClose(e){if(e.target.classList.contains("nx-close-icon"))return this.hidePromotionBanner().setSessionParameter(),document.dispatchEvent(new CustomEvent("niveax:PdpTwoColumnsOnResize")),this}hidePromotionBanner(){return this.element.classList.add("nx-promotion-banner--hidden"),this}setSessionParameter(){return sessionStorage.setItem("promotionBannerHidden","true"),this}}}}]);
2//# sourceMappingURL=/dist/NiveaX/./modules/PromotionBanner-PromotionBannerWithT.d39bcef0.js.4dc92d83.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.