1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[1623],{88281:(e,t,i)=>{i.r(t),i.d(t,{default:()=>o});var a=i(21464);class o{constructor(){this.cookieName="ContactLevel",this.cookieExpiration=document.body.dataset.expirationPeriod||"365",this.contactLevelExpiration="2",this.init()}init(){(0,a.Ri)("DemandwareContactLevel")?(this.renameDemandwareContactLevel(),(0,a.Yj)("DemandwareContactLevel")):(0,a.Ri)(this.cookieName)?this.checkEngagedVisitor():(0,a.TV)(this.cookieName,this.getGuestCookieValue(),parseInt(this.cookieExpiration))}renameDemandwareContactLevel(){let e=(0,a.Ri)("DemandwareContactLevel");(0,a.TV)(this.cookieName,e,parseInt(this.cookieExpiration))}checkEngagedVisitor(){var e=(0,a.Ri)(this.cookieName).split("="),t=e[e.length-1].split(" "),i=t[0].split("."),o=i[1]+"."+i[0]+"."+i[2]+" "+t[1];this.checkDate(new Date(o))&&(0,a.TV)(this.cookieName,"Engaged Visitor",parseInt(this.cookieExpiration))}checkDate(e){var t=!1;return e<new Date&&(t=!0),t}getGuestCookieValue(){var e=this.guestDate();return"Value=Guest Visitor&ContactLevelExpires="+e.getDate()+"."+(e.getMonth()+1)+"."+e.getFullYear()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()}guestDate(){var e=new Date;return e=new Date(e.getTime()+1e3*parseInt(this.contactLevelExpiration)*60)}}}}]); 2//# sourceMappingURL=/dist/NiveaX/./modules/ContactLevelCookie.7515226d.js.2dee6a38.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.