1"use strict";(self.webpackChunkcomponents=self.webpackChunkcomponents||[]).push([[2667],{7706:function(t,e,r){r.r(e),r.d(e,{fetchLightGallery:function(){return a},initLightgallery:function(){return l}});var n=r(4506),u=r(467),c=r(4756),i=r.n(c);function a(){return s.apply(this,arguments)}function s(){return(s=(0,u.A)(i().mark(function t(){var e,n,u,c;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.e(6713).then(r.bind(r,5248));case 2:return e=t.sent,t.next=5,r.e(6272).then(r.bind(r,6498));case 5:return n=t.sent,t.next=8,r.e(9053).then(r.bind(r,4960));case 8:return u=t.sent,c={lightGallery:e.default,lgThumbnail:n.default,lgVideo:u.default},t.abrupt("return",c);case 11:case"end":return t.stop()}},t)}))).apply(this,arguments)}function l(t,e,r,u){var c,i,a,s=(c=(0,n.A)(t.querySelectorAll(".swiper-slide img, .swiper-slide iframe")),i=[],a=[],c.forEach(function(t){var e=t.getAttribute("src");-1===a.indexOf(e)&&a.push(e)}),a.forEach(function(e){i.push(t.querySelectorAll('[src="'.concat(e,'"]'))[0])}),i),l=s.map(function(t){var e="IFRAME"===t.tagName,r=t.src.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/),n=!(!r||11!==r[7].length)&&r[7],u=t.dataset&&t.dataset.bigImage,c={src:t.src,poster:"https://img.youtube.com/vi/".concat(n,"/maxresdefault.jpg"),thumb:"https://img.youtube.com/vi/".concat(n,"/maxresdefault.jpg"),iframe:!0},i={src:u||t.src,thumb:t.src,subHtml:""};return e&&n?c:i}),o=r.lightGallery(t,{plugins:[r.lgThumbnail,r.lgVideo],licenseKey:"E69D7EEC-11B74CAC-A93F3341-0DD2CC01",dynamic:!0,dynamicEl:l});(0,n.A)(t.querySelectorAll(".swiper-slide")).forEach(function(t){t.addEventListener("click",function(t){var e=s.findIndex(function(e){return e.getAttribute("src")===t.target.getAttribute("src")});o.openGallery(e)})}),u.target.getAttribute("src")&&o.openGallery(s.findIndex(function(t){return t.getAttribute("src")===u.target.getAttribute("src")}))}}}]);
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.