PageSourceSearch

https://www.dethleffs.es/static/dist/web_static/targeting.a545f2c1.js

js dethleffs.es collected 2026-10-02 23:38:48 UTC 6,992 bytes, 1 lines download raw bytes

1!function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/static/dist/web_static/",o(o.s="ycSL")}({ycSL:function(t,e){var o=function(){window.targetingActive=!0,window._ptg=window._ptg||{};var t,e,o="_pc_vis",n="_pc_ses",i="_pc_vis_h",r=function(t,e,o){var n;if(o){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),n="; expires="+i.toGMTString()}else n="";document.cookie=t+"="+e+n+"; path=/"},a=function(t){for(var e=t+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},s={merge:function(){if(0===arguments.length)return{};for(var t,e,o=arguments[0],n=1;n<arguments.length;n++)for(e in t=arguments[n])t.hasOwnProperty(e)&&(o[e]=t[e]);return o},featureDetect:(t={localStorage:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t="test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}}),sessionStorage:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var t="test";try{return sessionStorage.setItem(t,t),sessionStorage.removeItem(t),!0}catch(t){return!1}}),json:function(){return"JSON"in window&&"parse"in JSON&&"stringify"in JSON},geolocation:function(){return"geolocation"in navigator}},e={},function(o){if(void 0===t[o])throw new Error("Test "+o+" is not defined");return void 0===e[o]&&(e[o]=t[o].call()),e[o]}),logger:{canLog:function(t){return!!window._ptg.options.log&&(void 0===t&&(t="log"),void 0!==window.console&&"function"==typeof window.console[t])}},listen:function(t,e,o){if(t.addEventListener)t.addEventListener(e,o,!1);else if(t.attachEvent)return t.attachEvent("on"+e,o)},contentLoaded:function(t,e){var o=!1,n=!0,i=t.document,r=i.documentElement,a=i.addEventListener?"addEventListener":"attachEvent",s=i.addEventListener?"removeEventListener":"detachEvent",d=i.addEventListener?"":"on",c=function n(r){"readystatechange"===r.type&&"complete"!==i.readyState||(("load"===r.type?t:i)[s](d+r.type,n,!1),!o&&(o=!0)&&e.call(t,r.type||r))};if("complete"===i.readyState)e.call(t,"lazy");else{if(i.createEventObject&&r.doScroll){try{n=!t.frameElement}catch(t){}n&&function t(){try{r.doScroll("left")}catch(e){return void setTimeout(t,50)}c("poll")}()}i[a](d+"DOMContentLoaded",c,!1),i[a](d+"readystatechange",c,!1),t[a](d+"load",c,!1)}}},d=function(){var t=function(){this.data={sessionId:null,visitorId:null,visitorIds:[],activityLog:[]},this.load(),this.data.visitorId||(this.setVisitorId(function(t){for(var e="0123456789abcdef",o="",n=t;n>0;--n)o+=e[Math.floor(Math.random()*e.length)];return o}(16)),this.save())};return t.prototype.setVisitorId=function(t){if(t){if(this.data.visitorId){if(t===this.data.visitorId)return;this.data.visitorIds.push(this.data.visitorId)}s.logger.canLog("info")&&console.info("[TARGETING] Setting visitor ID to",t),this.data.visitorId=t}},t.prototype.addActivityLog=function(t){return t.sessionId=this.data.sessionId,t.visitorId=this.data.visitorId,t.timestamp=(new Date).getTime(),s.logger.canLog("info")&&console.info("[TARGETING] Track activity",t,this),this.data.activityLog.push(t),this},t.prototype.load=function(){var t={};if(s.featureDetect("localStorage")){var e=localStorage.getItem("_ptg.user");t=JSON.parse(e)}if(t)for(var n in t)t.hasOwnProperty(n)&&(this.data[n]=t[n]);var i=a(o);i&&this.setVisitorId(i);var r=(new Date).getTime();if(0===this.data.activityLog.length)this.data.sessionId=r,s.logger.canLog("info")&&console.info("[TARGETING] No previous activity. New sessionId: "+this.data.sessionId);else{var d=this.data.activityLog.slice(-1)[0],c=window._ptg.options.sessionLength;c||(c=30),d.timestamp<r-60*c*1e3?(this.data.sessionId=r,s.logger.canLog("info")&&console.info("[TARGETING] Previous session expired. New sessionId: "+this.data.sessionId)):(this.data.sessionId=d.sessionId,s.logger.canLog("info")&&console.info("[TARGETING] SessionId present: "+this.data.sessionId))}},t.prototype.save=function(){s.featureDetect("localStorage")&&localStorage.setItem("_ptg.user",JSON.stringify(this.data)),this.data.visitorId&&r(o,this.data.visitorId,365),this.data.sessionId&&r(n,this.data.sessionId),this.data.visitorIds.length>0&&r(i,this.data.visitorIds.slice(-5),365)},t}(),c={geolocation:function(){if(s.logger.canLog("info")&&console.info("[TARGETING] Loading geolocation"),s.featureDetect("geolocation")&&s.featureDetect("json")&&s.featureDetect("sessionStorage")){var t=sessionStorage.getItem("_pc_tgl");t?r("_pc_tgl",t):navigator.geolocation.getCurrentPosition(function(t){var e=JSON.stringify({lat:t.coords.latitude,long:t.coords.longitude,alt:t.coords.altitude});r("_pc_tgl",e),sessionStorage.setItem("_pc_tgl",e)},function(t){s.logger.canLog("error")&&console.error("[TARGETING] Failed to load geolocation",t)})}}};
1window._ptg.options=s.merge({log:!1,sessionLength:30},window._ptg.options||{}),window._ptg.dataProviders=s.merge(c,window._ptg.dataProviders||{});var l=new d;window._ptg.api={setVisitorId:function(t){l.setVisitorId(t),l.save()}},function(){if(window._ptg.dataProviderKeys&&window._ptg.dataProviderKeys.length>0)for(var t=0;t<window._ptg.dataProviderKeys.length;t++)window._ptg.dataProviders.hasOwnProperty(window._ptg.dataProviderKeys[t])&&(s.logger.canLog("info")&&console.info("[TARGETING] Loading data from provider "+window._ptg.dataProviderKeys[t]),window._ptg.dataProviders[window._ptg.dataProviderKeys[t]].apply(this))}(),s.contentLoaded(window,function(){l.addActivityLog({type:"pageView",url:location.href}).save();try{for(var t=document.querySelectorAll("a"),e=function(t){var e=(t.target?t.target:t.srcElement).getAttribute("href");e&&l.addActivityLog({type:"linkClicked",href:e}).save()},o=0;o<t.length;o++)s.listen(t[o],"click",e)}catch(t){s.logger.canLog("error")&&console.error(t)}})},n=function(){window.targetingActive||window.Cookiebot&&window.Cookiebot.consent&&window.Cookiebot.consent.marketing&&o()};window.addEventListener("CookiebotOnAccept",function(){n()}),document.addEventListener("DOMContentLoaded",function(){n()})}});

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.