1"use strict";(self.webpackChunkhessenschau=self.webpackChunkhessenschau||[]).push([["temp_js_components_content_copytext_components_gallery_js_gallerySlider_alpine_js"],{9353:function(t,e,n){n.r(e),n.d(e,{default:function(){return s}});var i=n(907);var r=n(181);function o(t){return function(t){if(Array.isArray(t))return(0,i.Z)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,r.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return{slides:[],captions:[],currentSlideIndex:1,animationEnabled:!1,slideToRight:!0,touchStartX:null,touchEndX:null,swipeThreshold:50,loadedImages:[],loading:!0,previous:function(){this.animationEnabled=!0,this.slideToRight=!1,this.currentSlideIndex=this.currentSlideIndex-1>0?this.currentSlideIndex-1:this.slides.length,this.updateLoadingState(this.currentSlideIndex-1)},next:function(){this.slides.length>0&&(this.animationEnabled=!0,this.slideToRight=!0,this.currentSlideIndex=this.currentSlideIndex%this.slides.length+1),this.updateLoadingState(this.currentSlideIndex-1)},loadSlider:function(){var e=this,n=document.querySelector(".".concat(t));n&&(this.slides=o(n.querySelectorAll(".js-gallery-slider-image")),this.slides.forEach((function(t,e){return t.setAttribute("x-show","currentSlideIndex === ".concat(e+1))})),this.captions=o(n.querySelectorAll(".js-gallery-slider-caption")),this.captions.forEach((function(t,e){return t.setAttribute("x-show","currentSlideIndex === ".concat(e+1))}))),this.slides.forEach((function(t){var n=t.querySelector(".js-gallery-image");n&&(n.complete&&0!==n.naturalHeight?e.handleImageLoad(n):n.onload=function(){return e.handleImageLoad(n)})}))},handleTouchStart:function(t){this.touchStartX=t.touches[0].clientX},handleTouchMove:function(t){this.touchEndX=t.touches[0].clientX},handleTouchEnd:function(){this.touchEndX&&(this.touchStartX-this.touchEndX>this.swipeThreshold&&this.next(),this.touchStartX-this.touchEndX<-this.swipeThreshold&&this.previous(),this.touchStartX=null,this.touchEndX=null)},handleImageLoad:function(t){t.complete&&(this.loading=!1,this.loadedImages.push(t))},updateLoadingState:function(t){var e=this.slides[t];e&&(this.loading=!this.loadedImages.includes(e.querySelector(".js-gallery-image")))}}}},907:function(t,e,n){function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{Z:function(){return i}})},181:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(907);function r(t,e){if(t){if("string"==typeof t)return(0,i.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.Z)(t,e):void 0}}}}]);
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.