PageSourceSearch

https://kampnagel.de/assets/javascripts/chunks/b0760d876a6592ff1fd1.mediathek-carousel.js

js kampnagel.de collected 2026-10-01 10:31:39 UTC 1,826 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[328],{518:(t,e,r)=>{var n=r(8612),a=r(8228).left,i=r(3152),l=r(6477);n({target:"Array",proto:!0,forced:!r(5207)&&l>79&&l<83||!i("reduce")},{reduce:function(t){var e=arguments.length;return a(this,t,e,e>1?arguments[1]:void 0)}})},3152:(t,e,r)=>{var n=r(8473);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},8137:(t,e,r)=>{function n(t){var e=t.querySelector("[data-carousel-track]"),r=t.querySelector("[data-carousel-prev]"),n=t.querySelector("[data-carousel-next]");function a(t){var r=Math.max(0,e.scrollWidth-e.clientWidth),n=e.scrollLeft+t*Math.round(.75*e.clientWidth),a=function(){var t=Array.from(e.children);if(!t.length)return[0];var r=e.getBoundingClientRect().left,n=t.map((t=>Math.round(t.getBoundingClientRect().left-r+e.scrollLeft))),a=n[0];return n.map((t=>t-a))}(),i=a.reduce(((t,e)=>Math.abs(e-n)<Math.abs(t-n)?e:t),a[0]);Math.abs(i-e.scrollLeft)<2&&(i=n),e.scrollTo({left:Math.min(Math.max(i,0),r),behavior:"smooth"})}function i(){var t=e.scrollLeft<=2,a=e.scrollLeft+e.clientWidth>=e.scrollWidth-2;r&&(r.hidden=t),n&&(n.hidden=a)}e&&(r&&r.addEventListener("click",(()=>a(-1))),n&&n.addEventListener("click",(()=>a(1))),e.addEventListener("scroll",i,{passive:!0}),i())}r.r(e),r.d(e,{default:()=>n}),r(518)},8228:(t,e,r)=>{var n=r(8120),a=r(2347),i=r(2121),l=r(6960),o=TypeError,c="Reduce of empty array with no initial value",u=function(t){return function(e,r,u,f){var d=a(e),s=i(d),h=l(d);if(n(r),0===h&&u<2)throw new o(c);var v=t?h-1:0,p=t?-1:1;if(u<2)for(;;){if(v in s){f=s[v],v+=p;break}if(v+=p,t?v<0:h<=v)throw new o(c)}for(;t?v>=0:h>v;v+=p)v in s&&(f=r(f,s[v],v,d));return f}};t.exports={left:u(!1),right:u(!0)}}}]);
2//# sourceMappingURL=b0760d876a6592ff1fd1.mediathek-carousel.js.map

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.