Files
2025-08-18 13:56:48 +02:00

1 line
1.9 KiB
JavaScript

(window["webpackJsonp-ae-fe/cosmos-1"]=window["webpackJsonp-ae-fe/cosmos-1"]||[]).push([[26],{1222:function(e,t,o){"use strict";o.r(t);var n=o(23),i=function(){function e(e){this.sample=void 0,this.sample=e}var t=e.prototype;return t.init=function(){Math.floor(1e4*Math.random())<=this.sample&&this.recordLocalStorage(),Math.floor(1e4*Math.random())<=this.sample&&this.recordSessionStorage(),Math.floor(1e4*Math.random())<=this.sample&&this.recordCookieStorage()},t.recordLocalStorage=function(){var e,t=window.localStorage;if(t){var o=null===(e=Object.keys(t))||void 0===e?void 0:e.length;Object.keys(t).forEach((function(e){var i,r;Object(n.sendPluginEvent)(e,{et:"LOC",xpath:null===(i=t.getItem(e))||void 0===i?void 0:i.substring(0,100),c1:o,c2:null===(r=t.getItem(e))||void 0===r?void 0:r.length})}))}},t.recordSessionStorage=function(){var e,t=window.sessionStorage;if(t){var o=null===(e=Object.keys(t))||void 0===e?void 0:e.length;Object.keys(t).forEach((function(e){var i,r;Object(n.sendPluginEvent)(e,{et:"SES",xpath:null===(i=t.getItem(e))||void 0===i?void 0:i.substring(0,100),c1:o,c2:null===(r=t.getItem(e))||void 0===r?void 0:r.length})}))}},t.recordCookieStorage=function(){var e=window.cookieStore;if(e)e.getAll().then((function(e){e&&Array.isArray(e)&&e.forEach((function(e){Object(n.sendPluginEvent)(e.name,{et:"COOKIE",xpath:e.value,c1:e.domain,c2:e.expires,c3:e.partitioned,c4:e.path,c5:e.sameSite,c6:e.secure})}))})).catch((function(e){console.error(e)}));else{var t=document.cookie;if(t)t.split(";").forEach((function(e){var t=e.split("="),o=t[0],i=t[1];Object(n.sendPluginEvent)(String(o).trim(),{et:"COOKIE",xpath:i,c1:"V0"})}))}},e}();new Promise((function(e){var t,o;"complete"===(null===(t=document)||void 0===t?void 0:t.readyState)||"interactive"===(null===(o=document)||void 0===o?void 0:o.readyState)?e():document.addEventListener("DOMContentLoaded",(function(){e()}))})).then((function(){new i(window._LOCAL_DATA_SIMPLE_||1).init()}))}}]);