PageSourceSearch

https://berlin-chemie.de/etc.clientlibs/menarinimaster/clientlibs/…-f1d1c94f150546e14cc4d8465d06470c-lc.min.js

js berlin-chemie.de collected 2026-09-24 10:11:29 UTC 9,192 bytes, 19 lines download raw bytes

1(function(E){window.CMP=window.CMP||{};window.CMP.utils=function(){return{readData:function(l,k){l=l.dataset;var q=[];k=k.charAt(0).toUpperCase()+k.slice(1);k=["is","hook"+k];for(var g in l)if(Object.prototype.hasOwnProperty.call(l,g)){var m=l[g];0===g.indexOf("cmp")&&(g=g.slice(3),g=g.charAt(0).toLowerCase()+g.substring(1),-1===k.indexOf(g)&&(q[g]=m))}return q},setupProperties:function(l,k){var q={},g;for(g in k)if(Object.prototype.hasOwnProperty.call(k,g)){var m=k[g];q[g]=l&&null!=l[g]?m&&"function"===
2typeof m.transform?m.transform(l[g]):l[g]:k[g]["default"]}return q}}}()})(window.document);
3(function(){function E(e){function n(b){a._config=b;b.element.removeAttribute("data-cmp-is");z(b.options);w(b.element);a._properties.firstDelay=a._properties.delay;a._active=0;a._paused=!1;a._elements.item&&(H(),Q(),A(),F(),h());window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(window.CQ=window.CQ||{},window.CQ.CoreComponents=window.CQ.CoreComponents||{},window.CQ.CoreComponents.MESSAGE_CHANNEL=window.CQ.CoreComponents.MESSAGE_CHANNEL||new window.Granite.author.MessageChannel("cqauthor",
4window),window.CQ.CoreComponents.MESSAGE_CHANNEL.subscribeRequestMessage("cmp.panelcontainer",function(c){c.data&&"cmp-carousel"===c.data.type&&c.data.id===a._elements.self.dataset.cmpPanelcontainerId&&"navigate"===c.data.operation&&r(c.data.index)}))}function p(b){var c=b.querySelector(".cmp-slide_video--item");b=b.querySelector(".cmp-teaser__image");c=c&&"VIDEO"===c.tagName?b&&"true"==b.getAttribute("data-small-screen-only")?a._properties.firstDelay:c.getAttribute("duration"):a._properties.firstDelay;
5a._properties.delay=c}function h(){if(m){var b=m.getDeepLinkItemIdx(a,"item","item");if(-1<b){var c=a._elements.item[b];c&&a._elements.item[a._active].id!==c.id&&(t(b,!0),B());(b=window.location.hash.substring(1))&&(b=document.querySelector("[id\x3d'"+b+"']"))&&b.scrollIntoView()}}}function w(b){a._elements={};a._elements.self=b;b=a._elements.self.querySelectorAll("[data-cmp-hook-carousel]");for(var c=0;c<b.length;c++){var d=b[c],f="carousel";f=f.charAt(0).toUpperCase()+f.slice(1);f=d.dataset["cmpHook"+
6f];a._elements[f]?(Array.isArray(a._elements[f])||(a._elements[f]=[a._elements[f]]),a._elements[f].push(d)):a._elements[f]=d}}function z(b){a._properties={};for(var c in C)if(Object.prototype.hasOwnProperty.call(C,c)){var d=C[c],f=null;b&&null!=b[c]&&(f=b[c],d&&"function"===typeof d.transform&&(f=d.transform(f)));null===f&&(f=C[c]["default"]);a._properties[c]=f}}function Q(){window.addEventListener("hashchange",h,!1);a._elements.previous&&a._elements.previous.addEventListener("click",function(){var u=
7I();r(u);y&&x.push({event:"cmp:show",eventInfo:{path:"component."+k(a._elements.item[u])}})});a._elements.next&&a._elements.next.addEventListener("click",function(){var u=D();r(u);y&&x.push({event:"cmp:show",eventInfo:{path:"component."+k(a._elements.item[u])}})});var b=a._elements.indicator;if(b)for(var c=0;c<b.length;c++)(function(u){b[c].addEventListener("click",function(Y){t(u);B()})})(c);a._elements.pause&&a._properties.autoplay&&a._elements.pause.addEventListener("click",R);a._elements.play&&
8a._properties.autoplay&&a._elements.play.addEventListener("click",S);a._elements.self.addEventListener("keydown",T);a._properties.autopauseDisabled||(a._elements.self.addEventListener("mouseenter",J),a._elements.self.addEventListener("mouseleave",K));var d=a._elements.item;if(d)for(var f=0;f<d.length;f++)d[f].addEventListener("focusin",J),d[f].addEventListener("focusout",K);a._elements.self&&(a._elements.self.addEventListener("touchstart",U),a._elements.self.addEventListener("touchmove",V),a._elements.self.addEventListener("touchend",
9W))}function U(b){L=b.touches[0].clientX}function V(b){b.preventDefault()}function W(b){M=b.changedTouches[0].clientX;b=M-L;Math.abs(b)>X&&(0>b?r(D()):r(I()))}function T(b){var c=a._active,d=a._elements.indicator.length-1;switch(b.keyCode){case v.ARROW_LEFT:case v.ARROW_UP:b.preventDefault();0<c&&t(c-1);break;case v.ARROW_RIGHT:case v.ARROW_DOWN:b.preventDefault();c<d&&t(c+1);break;case v.HOME:b.preventDefault();t(0);break;case v.END:b.preventDefault();t(d);break;case v.SPACE:a._properties.autoplay&&
10b.target!==a._elements.previous&&b.target!==a._elements.next&&(b.preventDefault(),a._paused?N():B()),b.target===a._elements.pause&&a._elements.play.focus(),b.target===a._elements.play&&a._elements.pause.focus()}}function J(b){G()}function K(b){A()}function R(b){B();a._elements.play.focus()}function S(){N();a._elements.pause.focus()}function B(){a._paused=!0;G();F()}function N(){var b=a._paused=!1;a._elements.self.parentElement&&(b=a._elements.self.parentElement.querySelector(":hover")===a._elements.self);
11!a._properties.autopauseDisabled&&b||A();F()}function F(){O(a._elements.pause,a._paused);O(a._elements.play,!a._paused)}function H(){var b=a._elements.item,c=a._elements.indicator;if(b)if(Array.isArray(b))for(var d=0;d<b.length;d++)d===parseInt(a._active)?(b[d].classList.add("cmp-carousel__item--active"),b[d].removeAttribute("aria-hidden"),p(b[d]),c&&(c[d].classList.add("cmp-carousel__indicator--active"),c[d].setAttribute("aria-selected",!0),c[d].setAttribute("tabindex","0"))):(b[d].classList.remove("cmp-carousel__item--active"),
12b[d].setAttribute("aria-hidden",!0),c&&(c[d].classList.remove("cmp-carousel__indicator--active"),c[d].setAttribute("aria-selected",!1),c[d].setAttribute("tabindex","-1")));else b.classList.add("cmp-carousel__item--active"),c.classList.add("cmp-carousel__indicator--active"),p(b)}function D(){return a._active===a._elements.item.length-1?0:a._active+1}function I(){return 0===a._active?a._elements.item.length-1:a._active-1}function r(b,c){if(!(0>b||b>a._elements.item.length-1)){a._active=b;H();!c&&m&&
13m.updateUrlHash(a,"item",b);if(y){c=a._elements.self.id;var d=k(a._elements.item[b]);b={component:{}};b.component[c]={shownItems:[d]};d={component:{}};d.component[c]={shownItems:void 0};x.push(d);x.push(b)}a._elements.self.parentElement&&a._elements.self.parentElement.querySelector(":hover")!==a._elements.self&&A()}}function t(b,c){r(b,c);if(null!=a._elements.indicator){c=window.scrollX||window.pageXOffset;var d=window.scrollY||window.pageYOffset;a._elements.indicator[b].focus();window.scrollTo(c,
14d)}y&&x.push({event:"cmp:show",eventInfo:{path:"component."+k(a._elements.item[b])}})}function A(){!a._paused&&a._properties.autoplay&&(G(),a._autoplayIntervalId=window.setInterval(function(){if(!document.visibilityState||!document.hidden){var b=a._elements.indicators;b!==document.activeElement&&b.contains(document.activeElement)?t(D(),!0):r(D(),!0)}},a._properties.delay))}function G(){window.clearInterval(a._autoplayIntervalId);a._autoplayIntervalId=null}function O(b,c){b&&(!1!==c?(b.disabled=!0,
15b.classList.add("cmp-carousel__action--disabled")):(b.disabled=!1,b.classList.remove("cmp-carousel__action--disabled")))}var a=this;e&&e.element&&n(e);var L=0,M=0,X=50}function l(e){e=e.dataset;var n=[],p="carousel";p=p.charAt(0).toUpperCase()+p.slice(1);p=["is","hook"+p];for(var h in e)if(Object.prototype.hasOwnProperty.call(e,h)){var w=e[h];0===h.indexOf("cmp")&&(h=h.slice(3),h=h.charAt(0).toLowerCase()+h.substring(1),-1===
15p.indexOf(h)&&(n[h]=w))}return n}function k(e){return e?e.dataset.cmpDataLayer?
16Object.keys(JSON.parse(e.dataset.cmpDataLayer))[0]:e.id:null}function q(){document.querySelectorAll("[data-small-screen-only]").forEach(function(e){var n=window.matchMedia("(max-width: 768px)").matches;e.setAttribute("data-small-screen-only",n)})}function g(){x=(y=document.body.hasAttribute("data-cmp-data-layer-enabled"))?window.adobeDataLayer=window.adobeDataLayer||[]:void 0;for(var e=document.querySelectorAll(P.self),n=0;n<e.length;n++)new E({element:e[n],options:l(e[n])});e=window.MutationObserver||
17window.WebKitMutationObserver||window.MozMutationObserver;n=document.querySelector("body");(new e(function(p){p.forEach(function(h){h=[].slice.call(h.addedNodes);0<h.length&&h.forEach(function(w){w.querySelectorAll&&[].slice.call(w.querySelectorAll(P.self)).forEach(function(z){new E({element:z,options:l(z)})})})})})).observe(n,{subtree:!0,childList:!0,characterData:!0})}var m=window.CQ&&window.CQ.CoreComponents&&window.CQ.CoreComponents.container&&window.CQ.CoreComponents.container.utils?window.CQ.CoreComponents.container.utils:
18void 0;m||console.warn("Tabs: container utilities at window.CQ.CoreComponents.container.utils are not available. This can lead to missing features. Ensure the core.wcm.components.commons.site.container client library is included on the page.");var y,x,v={SPACE:32,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40},P={self:'[data-cmp-is\x3d"carousel"]'},C={autoplay:{default:!1,transform:function(e){return!(null===e||"undefined"===typeof e)}},delay:{default:5E3,transform:function(e){e=
19parseFloat(e);return isNaN(e)?null:e}},autopauseDisabled:{default:!1,transform:function(e){return!(null===e||"undefined"===typeof e)}}};"loading"!==document.readyState?g():document.addEventListener("DOMContentLoaded",g);m&&window.addEventListener("load",m.scrollToAnchor,!1);window.addEventListener("load",function(){q()});window.addEventListener("resize",function(){q()})})();

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.