PageSourceSearch

https://www.visitbruges.be/themes/custom/uiflow/dist/js/chunks/media-carousel.chunk.12da110791bccde8d48f.js

js visitbruges.be collected 2026-10-02 03:35:46 UTC 1,829 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["media-carousel"],{
1"./lib/components/media-carousel/index.js":function(e,l,s){s.r(l),s.d(l,{default:function(){return n}});var a=s("../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"),i=s("../node_modules/@babel/runtime/helpers/esm/classCallCheck.js"),r=s("../node_modules/@babel/runtime/helpers/esm/createClass.js"),t=(s("../node_modules/core-js/modules/es6.array.filter.js"),s("../node_modules/core-js/modules/es6.array.find-index.js"),function(){function e(l){(0,i.Z)(this,e),this.elMediaCarousel=l,this.elMediaCarouselItems=this.elMediaCarousel.querySelectorAll(".js-media-carousel-item"),this.elMediaCarouselImgWrapper=this.elMediaCarousel.querySelector(".js-media-carousel-img"),this.elMediaCarouselImg=this.elMediaCarouselImgWrapper.querySelector("img"),this.elMediaCarouselNav=this.elMediaCarousel.querySelector(".js-media-carousel-nav"),this.elMediaCarouselGalleryBtn=this.elMediaCarousel.querySelector(".js-media-carousel-gallery-btn"),this.blazy=null,this.galleryId=this.elMediaCarousel.dataset.paragraph,this.offsetHeight=this.elMediaCarouselImgWrapper.offsetHeight,this.initEvents()}return(0,r.Z)(e,[{key:"initEvents",value:function(){var e=this;this.elMediaCarouselGalleryBtn.addEventListener("click",(function(){e.openGallery()}))}},{key:"openGallery",value:function(){var e=0;this.elMediaCarouselItems.length>1&&(e=(0,a.Z)(this.elMediaCarouselItems).filter((function(e){return!e.classList.contains("glide__slide--clone")})).findIndex((function(e){return e.classList.contains("glide__slide--active")})));window.gallery["gallery-".concat(this.galleryId)].openAt(e)}}],[{key:"init",value:function(e){var l=this;
1(0,a.Z)(document.querySelectorAll(e)).forEach((function(e){return new l(e)}))}}]),e}());t.init(".js-media-carousel");var n=t}
1}]);

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.