PageSourceSearch

https://www.labello.com/dist/NiveaX/modules/CookiePolicy.0631b47b.js

js labello.com collected 2026-10-02 12:42:54 UTC 7,008 bytes, 2 lines download raw bytes

1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[5820,7523,9816],{3658:(e,o,t)=>{t.r(o),t.d(o,{default:()=>i});const i=t(98786).default},62622:(e,o,t)=>{t.d(o,{A:()=>i});const i=function(e,o){var t=365,i="cookie-policy-accepted",n="LegitimateCookiesDisabled",c="PerformanceCookiesDisabled",a="MarketingCookiesDisabled",r=!1,s=function(){var e=window.location.hostname,o=e.split("."),t=o.length;if(t<=1)return e;if(t<=2)return"."+e;var i=o[t-1],n=o[t-2],c="."+n+"."+i;if(("co"===n||"com"===n||"net"===n||"org"==n)&&t>=3)return"."+o[t-3]+c;return c}();function p(e,o,t){var i=new Date;i.setTime(i.getTime()+24*t*60*60*1e3);var n="expires="+i.toUTCString();document.cookie=e+"="+o+"; "+n+";domain="+s+";path=/",s!=window.location.hostname&&u(e)!=o&&(!function(e,o){document.cookie=e+"="+o+";expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/"}(e,o),document.cookie=e+"="+o+"; "+n+";domain="+s+";path=/")}function u(e){for(var o=e+"=",t=document.cookie.split(";"),i=0;i<t.length;i++){for(var n=t[i];" "===n.charAt(0);)n=n.substring(1);if(-1!==n.indexOf(o))return n.substring(o.length,n.length)}return""}function l(){Array.from(document.querySelectorAll(".bdf-cookie-policy-toggle")).forEach(function(e){"1"===u(e.dataset.cookieName)?(e.checked&&(e.checked=!1),d(e,!1)):(e.checked||(e.checked=!0),d(e,!0))})}function d(e,t){o.onCheckboxChanged&&o.onCheckboxChanged(e,t)}var k;k=function(){if(!r){r=!0;var e=u(i),s=""==e,k=o.confirmationRequired&&"1"!==e,h=o.allowDecline;if(s)document.querySelector(".bdf-cookie-policy-first-time").style.display="block",p(i,"0",t),p(n,o.defaultActive,t),p(c,o.defaultActive,t),p(a,"1",t);else{document.querySelector(".bdf-cookie-policy-first-time").style.display="none";var v=u(n);""==u(c)&&""!=v&&p(c,v,t)}document.querySelector(".bdf-cookie-policy-first-time-and-confirmation-required").style.display=s&&k?"block":"none",document.querySelector(".bdf-cookie-policy-confirmation-required").style.display=k?"block":"none",document.querySelector(".bdf-cookie-close").style.display=!k||h?"block":"none",l(),Array.from(document.querySelectorAll(".bdf-cookie-policy-toggle")).forEach(function(e){var o=e.dataset.cookieName;e.addEventListener("change",function(i){var n=i.currentTarget.checked;p(o,n?"0":"1",t),document.dispatchEvent(new CustomEvent("niveax:cookieToggle",{detail:{cookieName:o,enableCookie:n}})),d(e,n)})}),o.confirmationRequired?"1"!=e&&o.openPopup():""==e&&o.openPopup(),o.setPolicyAccepted&&p(i,"1",t),document.querySelectorAll(".bdf-cookie-policy-accept").forEach(function(e){e.addEventListener("click",function(){p(i,"1",t),p(n,"0",t),p(c,"0",t),p(a,"0",t),l()})}),document.querySelectorAll(".bdf-cookie-policy-change").forEach(function(e){e.addEventListener("click",function(){p(i,"1",t)})}),document.querySelectorAll(".bdf-cookie-close").forEach(function(e){e.addEventListener("click",function(){p(i,"1",t)})})}},"interactive"===document.readyState||"complete"===document.readyState?k():document.addEventListener("DOMContentLoaded",k)}},78944:(e,o,t)=>{t.r(o),t.d(o,{default:()=>r});var i=t(62622),n=t(98684),c=t(45956),a=t(17658);class r{constructor(e=!1){this.cookiePopup=document.querySelector(".nx-cookie-policy-popup"),this.cookiePopupContainer=this.cookiePopup.querySelector(".nx-cookie-policy-popup__container"),this.cookiePopupButtonClose=this.cookiePopup.querySelector(".nx-cookie-policy-popup__close"),this.cookiePopupButtonAccept=this.cookiePopup.querySelector(".bdf-cookie-policy-accept"),this.cookiePopupButtonAdapt=this.cookiePopup.querySelector(".bdf-cookie-policy-change"),this.init(e)}init(e){return this.cookiePopup&&!e&&((0,i.A)(null,{openPopup:()=>{this.CookiePopupOpen()},confirmationRequired:"true"===this.cookiePopup.dataset.confirmationRequired,allowDecline:"true"===this.cookiePopup.dataset.allowDecline,defaultActive:"true"==this.cookiePopup.dataset.default?"0":"1"}),this.cookiePopupClose()),this}CookiePopupOpen(){return this.cookiePopup.classList.add("nx-cookie-policy-popup--show"),c.Ay.dispatch((0,a.w0)()),this}getContainerHeight(){return(0,n.UI)(this.cookiePopupContainer)}
1cookiePopupCloseEvent(){return this.cookiePopup.classList.remove("nx-cookie-policy-popup--show"),this.cookiePopup.style.height="0px",this.cookiePopup.style.top=this.getContainerHeight()?`-${this.getContainerHeight()+20}px`:"",c.Ay.dispatch((0,a.S2)()),this}cookiePopupClose(){[this.cookiePopupButtonClose,this.cookiePopupButtonAccept,this.cookiePopupButtonAdapt].forEach(e=>{e.addEventListener("click",()=>{this.cookiePopupCloseEvent(),document.dispatchEvent(new CustomEvent("niveax:cookieBannerAccept")),window.scrollBy(0,1)})})}}},98786:(e,o,t)=>{t.r(o),t.d(o,{default:()=>a});var i=t(78944),n=t(23425),c=t(23076);class a extends((0,n.A)(i.default)){constructor(){super(...arguments),this.cookiesHaveBeenChanged=[]}init(){return super.init(),this.cookiePopupEventHandler(),this}cookiePopupEventHandler(){return this.cookiePopupButtonAccept.addEventListener("click",()=>this.trackCookiePopupAccept()),this.cookiePopupButtonAdapt.addEventListener("click",()=>this.trackCookiePopupAdapt()),document.addEventListener("NiveaXCloseLayer",e=>this.onLayerCloseHandler(e.detail.layerNode)),document.addEventListener("niveax:cookieToggle",e=>this.onCookieToggle(e)),this}CookiePopupOpen(){return super.CookiePopupOpen(),this.trackCookiePopupShow(),this}getCurrentDate(){return(new Date).toDateString()}onLayerCloseHandler(e){e.querySelector('[data-module="CookieSettings"]')&&(this.cookiesHaveBeenChanged.map(e=>{this.trackCookieSettings(e.cookieName,e.isEnabled)}),this.cookiesHaveBeenChanged=[])}onCookieToggle(e){let o=e.detail.cookieName,t=e.detail.enableCookie;if(this.cookiesHaveBeenChanged.find(e=>e.cookieName===o)){let e=this.cookiesHaveBeenChanged.findIndex(e=>e.cookieName===o);this.cookiesHaveBeenChanged.splice(e,1)}else this.cookiesHaveBeenChanged.push({cookieName:o,isEnabled:t})}trackCookiePopupShow(){window.NiveaX.IsUAEnabled&&(0,c.VE)({event:"ga_event",eventCategory:"Cookies",eventAction:"Show",eventLabel:this.getCurrentDate(),eventNonInteraction:!0}),window.NiveaX.IsGA4Enabled&&(0,c.VE)({event:"ga4_event",event_name:"cookie_banner_view",_clear:!0})}trackCookiePopupAccept(){window.NiveaX.IsUAEnabled&&(0,c.VE)({event:"ga_event",eventCategory:"Cookies",eventAction:"Accept",eventLabel:this.getCurrentDate(),eventNonInteraction:!0}),window.NiveaX.IsGA4Enabled&&(0,c.VE)({event:"ga4_event",event_name:"cookie_banner_accept",_clear:!0})}trackCookiePopupAdapt(){window.NiveaX.IsUAEnabled&&(0,c.VE)({event:"ga_event",eventCategory:"Cookies",eventAction:"Change",eventLabel:this.getCurrentDate(),eventNonInteraction:!0}),window.NiveaX.IsGA4Enabled&&(0,c.VE)({event:"ga4_event",event_name:"cookie_banner_change",_clear:!0})}trackCookieSettings(e,o){let t=o?"Enable":"Disable",i=e.replace("CookiesDisabled","");window.NiveaX.IsUAEnabled&&(0,c.VE)({event:"ga_event",eventCategory:"Cookies",eventAction:t,eventLabel:i,eventNonInteraction:!1})}}}}]);
2//# sourceMappingURL=/dist/NiveaX/./modules/CookiePolicy.0631b47b.js.c3b9d5b9.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.