1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9580],{9619(e,t,r){var l=r(97108),n=r.n(l),i=r(20017),a=r(5440),o=document.dir,s=function(){function e(e){var t=this;this.element=e,this.lastActiveSlide=0,this.element=e,this.isExecuted=!1,this.customPagination=this.element.querySelector(".cw-custom_pagination");var r=this.element.querySelector(".cw-gallery-slider"),l=r.querySelectorAll(".cw-slider-item");l.forEach(function(e,t){var r=e.querySelector("img");t<=1&&(0,a.hK)(r),t==l.length-1&&((0,a.hK)(r),e.classList.add("prev-item"))});var o=n().slider(r,{center:!(0,i.Fr)()});n().util.on(o.$el,"itemshow",function(e){var r=e.target,l=r.querySelector("img"),s=r.closest(".cw-gallery-slider"),c=s.querySelector(".cw-custom_pagination"),u=s.querySelector(".cw-controls");t.loadNextSlideImage(r),t.loadPrevSlideImage(r),(0,i.Fr)()||((0,a.vy)(r,"prev-item"),(0,a.vy)(r,"next-item"),t.updateNextSlideItem(r),t.updatePrevSlideItem(r));var d=function(e){var t=r.querySelector("figure").offsetHeight+60,l=t+30;c.style.top=e.height+60+"px",u.style.top=e.height/2+30+"px",r.style.height=t+"px",r.setAttribute("data-slider-height",l+""),n().util.css(o.$el,{height:l+"px",transition:"height 0.3s ease-in-out"})};l.complete&&0!==l.naturalHeight?d(l):l.onload=function(){d(l)},t.animateCustomNavDots(r)})}return e.setup=function(t){void 0===t&&(t='[data-module="GallerySlider"]'),Array.from(document.querySelectorAll(t)).filter(function(e){return!e.dataset.moduleInitialized}).forEach(function(t){new e(t),t.dataset.moduleInitialized="true"})},e.prototype.loadPrevSlideImage=function(e){var t=e.previousElementSibling;t&&(0,a.pb)(t.querySelector("img"))&&(0,a.hK)(t.querySelector("img"))},e.prototype.loadNextSlideImage=function(e){var t=e.nextElementSibling;t&&(0,a.pb)(t.querySelector("img"))&&(0,a.hK)(t.querySelector("img"))},e.prototype.getSliderIndex=function(e){return Array.from(e.parentNode.children).indexOf(e)},e.prototype.updateNextSlideItem=function(e){var t=e.nextElementSibling,r=e.parentNode,l=r.children;l.length>1&&(t?(Array.from(l).forEach(function(e){e.classList.remove("next-item")}),t.classList.add("next-item")):null===t&&l.length>2&&r.firstElementChild.classList.add("next-item"))},e.prototype.updatePrevSlideItem=function(e){var t=e.previousElementSibling,r=e.parentNode,l=r.children;r.children.length>1&&(t?(Array.from(l).forEach(function(e){e.classList.remove("prev-item")}),t.classList.add("prev-item")):null===t&&l.length>2&&r.lastElementChild.classList.add("prev-item"))},e.prototype.getSliderChildren=function(e){return e.parentNode.children.length},e.prototype.animateCustomNavDots=function(e){var t=this.customPagination.querySelector(".uk-slider-nav"),r=this.getSliderIndex(e),l=18*(r-3),n=Array.from(t.children),i=n.length,s=Math.min(7,i),c="-",u=n.slice(0,4).length,d=n.length-3,m=r>=u&&r<d,h=r>=d;"rtl"==o&&(c=""),r<u&&((0,a.vg)(n,"uk-dotnav_small"),(0,a.BK)([n[s-1]],"uk-dotnav_small"),t.style.transform="translateX(".concat(c).concat(0,"px)")),m&&((0,a.vg)(n,"uk-dotnav_small"),(0,a.BK)([n[r+3],n[r-3]],"uk-dotnav_small"),t.style.transform="translateX(".concat(c).concat(l,"px)")),h&&((0,a.vg)(n,"uk-dotnav_small"),(0,a.BK)([n[i-s]],"uk-dotnav_small"),t.style.transform="translateX(".concat(c).concat(d-18*u,"px)"))},e}();const c=s;new s.setup,r.d(t,["default",0,c])}}]); 2//# sourceMappingURL=/dist/bdfcw/./modules/GallerySlider.d0598c0a.js.0d9d323c.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.