PageSourceSearch

https://citizenwatch.eu/static/js/main__exitintent.js?d994694dc885…1f8c6a0e12fd71aa0d8656a4f13ad88a92c6e97b2d8

js citizenwatch.eu collected 2026-10-03 22:17:03 UTC 4,542 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkNorden_Commerce=globalThis.webpackChunkNorden_Commerce||[]).push([[5297],{6150(t,e,i){i.d(e,{exitIntentInit:()=>r});var n=i(8987),o=i(4310),a=i(4561);class s{constructor(t){this.response=t.response,this.debugMode=!0===Hatraco.debug,this.initCookie=void 0!==n.A.get(`${Hatraco.mandator}_exit_intent`),this.visitStartCookie=void 0!==n.A.get(`${Hatraco.mandator}_visit_start`),this.tabsCookie=1===n.A.get(`${Hatraco.mandator}_open_tabs`),this.delay=60,this.startTime=this.getVisitStartCookie(),this.triggerTime=new Date}init(){let t;this.visitStartCookie||this.setVisitStartCookie(),!this.getTabsCookie()>"0"&&this.setTabsCookie(),this.setTabsCookie("increase"),window.addEventListener("unload",()=>{this.getTabsCookie()>0&&this.setTabsCookie("decrease")}),document.addEventListener("mouseleave",e=>{this.exitIntentNode=document.querySelector("[data-exit-intent]"),this.exitIntentNode||this.initCookie||e.clientY<=0&&"1"===this.getTabsCookie()&&(this.triggerTime=Math.round((new Date-new Date(this.startTime))/1e3),this.triggerTime>=this.delay&&(this.exitIntentNode||this.createExitIntent().then(()=>{this.exitIntentNode.style.display="block"}),t=setTimeout(()=>{(0,a.oM)(this.exitIntentNode),document.addEventListener("keyup",t=>{const e=t.key;"Escape"!==e&&"Esc"!==e&&27!==e||this.close()}),this.setContentHeight(),document.documentElement.setAttribute("data-exit-intent-active","");for(let t of document.querySelectorAll("[data-exit-intent], [data-exit-intent-bg]"))t.setAttribute("data-visibility","visible");for(let t of document.querySelectorAll("[data-exit-intent-close]"))t.addEventListener("click",()=>{this.close()});this.setInitCookie(),this.removeVisitStartCookie(),o.P.emit("ExitIntent:opened");(window.dataLayer||[]).push({event:"exitIntentPopUpOpened"}),window._mtm=window._mtm||[],window._mtm.push({event:"exitIntentPopUpOpened"})},100)))}),window.addEventListener("resize",()=>{this.setContentHeight()}),window.addEventListener("mouseover",()=>{clearTimeout(t)})}createExitIntent(){return new Promise((t,e)=>{this.exitIntentNode=document.createElement("div"),this.exitIntentNode.setAttribute("data-exit-intent",""),this.exitIntentNode.style.display="none",this.exitIntentNode.innerHTML=this.response.exitintent,document.body.appendChild(this.exitIntentNode),o.P.emit("ExitIntent:created");const i=`${Hatraco.staticUrl}css/partials.exitintent.css?${Hatraco.revision}`;let n=document.querySelector(`link[href*='${i}']`);n||(n=document.createElement("link"),n.rel="stylesheet",n.href=i,document.head.appendChild(n));const a=`${Hatraco.staticUrl}css/partials.product.css?${Hatraco.revision}`;let s=document.querySelector(`link[href*='${a}']`);s||(s=document.createElement("link"),s.rel="stylesheet",s.href=a,document.head.appendChild(s)),setTimeout(()=>{t()},100)})}setInitCookie(){this.debugMode||(this.initCookie=!0,n.A.set(`${Hatraco.mandator}_exit_intent`,"1",{path:"/",secure:!0,samesite:"Lax"}))}setVisitStartCookie(){this.visitStartCookie=!0,this.startTime=new Date,n.A.set(`${Hatraco.mandator}_visit_start`,new Date,{path:"/",secure:!0,samesite:"Lax"})}getVisitStartCookie(){return n.A.get(`${Hatraco.mandator}_visit_start`)}removeVisitStartCookie(){n.A.remove(`${Hatraco.mandator}_visit_start`,{path:"/"})}setTabsCookie(t){let e=parseInt(this.getTabsCookie());n.A.set(`${Hatraco.mandator}_open_tabs`,"increase"===t?e+1:"decrease"===t?e-1:"0",{path:"/",secure:!0,samesite:"Lax"})}getTabsCookie(){return n.A.get(`${Hatraco.mandator}_open_tabs`)}setContentHeight(){if(null!==document.querySelector("[data-exit-intent-content]")){let t="none"!==window.getComputedStyle(document.querySelector("[data-exit-intent]")).getPropertyValue("max-height"),e=parseInt(window.getComputedStyle(document.querySelector("[data-exit-intent]")).getPropertyValue("padding-bottom")),i=t?document.querySelector("[data-exit-intent]").clientHeight-document.querySelector("[data-exit-intent-message]").clientHeight:window.innerHeight-e-document.querySelector("[data-exit-intent-message]").clientHeight-2*document.querySelector("[data-tabs-list]").clientHeight,n=document.querySelectorAll("[data-exit-intent] [data-tab-content]");for(let t of n)t.style.maxHeight=`${i}px`}}close(){document.documentElement.removeAttribute("data-exit-intent-active");for(let t of document.querySelectorAll("[data-exit-intent], [data-exit-intent-bg]"))t.setAttribute("data-visibility","");document.querySelector("[data-exit-intent]").remove()}}const r=t=>{document.querySelector("[data-exit-intent]")||new s({response:t}).init()}}}]);

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.