PageSourceSearch

https://www.ergo.de/etc.clientlibs/core/wcm/components/image/v3/im….ACSHASHc7d8c8a31404fb2a97939ee4096001bf.js

js ergo.de collected 2026-10-02 04:30:58 UTC 3,903 bytes, 9 lines download raw bytes

1(function(m){window.CMP=window.CMP||{};window.CMP.utils=function(){return{readData:function(h,g){h=h.dataset;var l=[];g=g.charAt(0).toUpperCase()+g.slice(1);g=["is","hook"+g];for(var b in h)if(Object.prototype.hasOwnProperty.call(h,b)){var d=h[b];0===b.indexOf("cmp")&&(b=b.slice(3),b=b.charAt(0).toLowerCase()+b.substring(1),-1===g.indexOf(b)&&(l[b]=d))}return l},setupProperties:function(h,g){var l={},b;for(b in g)if(Object.prototype.hasOwnProperty.call(g,b)){var d=g[b];l[b]=h&&null!=h[b]?d&&"function"===
2typeof d.transform?d.transform(h[b]):h[b]:g[b]["default"]}return l}}}()})(window.document);
3(function(m){window.CMP=window.CMP||{};window.CMP.image=window.CMP.image||{};window.CMP.image.dynamicMedia=function(){function h(c,a){for(var e=c.length,f=0;f<e-1&&c[f]<a;)f++;return void 0!==c[f]?c[f].toString():a}var g={},l=window.devicePixelRatio||1,b=function(c){var a=new XMLHttpRequest;c=c.split("{.width}")[0]+"?req\x3dset,json";a.open("GET",c,!1);a.onload=function(){if(200<=a.status&&400>a.status){var e=new RegExp(/^{[\s\S]*}$/gmi),f=(new RegExp(/^(?:\/\*jsonp\*\/)?\s*([^()]+)\(([\s\S]+),\s*"[0-9]*"\);?$/gmi)).exec(a.responseText),
4k;f&&(f=f[2],e.test(f)&&(k=JSON.parse(f)));if(k&&k.set.relation&&0<k.set.relation.length)for(e=0;e<k.set.relation.length;e++)g[parseInt(k.set.relation[e].userdata.SmartCropWidth)]=":"+k.set.relation[e].userdata.SmartCropDef}};a.send();return g},d=function(c,a){for(var e=c.offsetWidth;20>e&&a&&!c._autoWidth;)e=a.offsetWidth,a=a.parentNode;return e};return{getAutoSmartCrops:b,getSrcSet:function(c,a){if(0<Object.keys(a).length){var e=[];for(var f in g)e.push(c.replace("{.width}",a[f])+" "+f+"w")}return e.join(",")},
5getSrc:function(c,a){-1<c.indexOf("{.width}")&&(c=c.replace("{.width}",a));return c},setDMAttributes:function(c,a){var e=a.src.replace("dpr\x3doff","dpr\x3don,{dpr}");e=e.replace("{dpr}",l);var f={};"SmartCrop:Auto"===a.smartcroprendition&&(f=b(e));if(a.widths&&0<a.widths.length||0<Object.keys(f).length){var k=c.querySelector("img");c=d(c,c.parentNode);"SmartCrop:Auto"===a.smartcroprendition?(k.setAttribute("srcset",CMP.image.dynamicMedia.getSrcSet(e,f)),a=h(Object.keys(f,c)),k.setAttribute("src",
6CMP.image.dynamicMedia.getSrc(e,f[a]))):(a=h(a.widths,c),k.setAttribute("src",CMP.image.dynamicMedia.getSrc(e,a)))}},getWidth:d}}();m.dispatchEvent(new CustomEvent("core.wcm.components.commons.site.image.dynamic-media.loaded"))})(window.document);
7(function(m){window.CMP=window.CMP||{};window.CMP.image=window.CMP.image||{};window.CMP.image.v3=function(){function g(b){var d=this;d.initImage=function(c){var a=CMP.utils.readData(c,"image");d._properties=CMP.utils.setupProperties(a,l);d._properties.dmimage&&(d._properties.src=a.src,CMP.image.dynamicMedia.setDMAttributes(c,d._properties))};d.initImage(b.element)}var l={widths:{"default":[],transform:function(b){var d=[];b.split(",").forEach(function(c){c=parseFloat(c);isNaN(c)||d.push(c)});return d}},
8dmimage:{"default":!1,transform:function(b){return!(null===b||"undefined"===typeof b)}},src:{transform:function(b){return decodeURIComponent(b)}},smartcroprendition:""};return{init:function(){for(var b=m.querySelectorAll("[data-cmp-hook-image\x3d'imageV3']"),d=0;d<b.length;d++)new g({element:b[d],options:CMP.utils.readData(b[d],"image")});b=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;d=m.querySelector("body");(new b(function(c){c.forEach(function(a){a=[].slice.call(a.addedNodes);
90<a.length&&a.forEach(function(e){e.querySelectorAll&&[].slice.call(e.querySelectorAll("[data-cmp-hook-image\x3d'imageV3']")).forEach(function(f){new g({element:f,options:CMP.utils.readData(f,"image")})})})})})).observe(d,{subtree:!0,childList:!0,characterData:!0})}}}();var h="loading"!==m.readyState?Promise.resolve():new Promise(function(g){m.addEventListener("DOMContentLoaded",g)});
9Promise.all([h]).then(window.CMP.image.v3.init)})(window.document);

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.