PageSourceSearch

https://www.jaguar.com/etc.clientlibs/jlr/clientlibs/clientlib-dyn…ry-inpagegallery-js.47752c2e0ee4173a1ff1.js

js jaguar.com collected 2026-10-01 10:25:59 UTC 32,649 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["components-inpagegallery-constants-js","components-inpagegallery-inpagegallery-js","components-inpagegallery-keyboard-manager-js","components-inpagegallery-plugins-expand-constants-js","components-inpagegallery-plugins-expand-index-js","components-inpagegallery-plugins-expand-keyboard-manager-js","components-inpagegallery-resize-utils-js","components-inpagegallery-utils-js"],{44869:function(e,t,n){n.r(t),n.d(t,{selectors:function(){return r},swiperOptions:function(){return i}});var r={slide:".swiper-slide",slideExpanded:"inpage-gallery__slide--expanded",btnNext:".inpage-gallery__scrollbar-button--next",btnPrev:".inpage-gallery__scrollbar-button--prev",container:".inpage-gallery__container",containerExpanded:".inpage-gallery__container--expanded",containerReduced:".inpage-gallery__container--reduced",playPauseWrapper:".inpage-gallery__button-wrapper--play-pause",playButton:".inpage-gallery__fab-play",closeButton:".inpage-gallery__fab-close",expandButton:".inpage-gallery__fab-expand",collapseButton:".inpage-gallery__fab-collapse",controls:".inpage-gallery__video-controls",scrollbar:".swiper-scrollbar-container",inpageGalleryVideoExpanded:"inpage-gallery-video-expanded",ytVideoPlaceholder:".inpage-gallery__video--yt-placeholder"},i={speed:600,loop:!1,initialSlide:0,loopAddBlankSlides:!1,autoHeight:!1,grabCursor:!0,slidesOffsetBefore:0,slidesOffsetAfter:0,ally:!0,slideToClickedSlide:!1,spaceBetween:8,scrollbar:{el:".swiper-scrollbar",draggable:!0,hide:!1,enabled:!0},navigation:{nextEl:r.btnNext,prevEl:r.btnPrev},updateOnWindowResize:!0,breakpoints:{0:{slidesPerView:1.078},375:{slidesPerView:1.078},768:{slidesPerView:1.0843},1280:{slidesPerView:1.627},1920:{slidesPerView:2.38}},freeMode:{enabled:!0},mousewheel:{enabled:!0,forceToAxis:!0},expand:{enabled:!0}}},75793:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var r=n(51236),i=n(90150),o=n(44869),a=n(63340),l=n(34461),s=n(93993),d=n(83548);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}r.A.use([i.Ze,i.Vx,i.U1,i.FJ,a.Expand,i.xI]);var h=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.swipeableElement=this.el.querySelector(o.selectors.container),this.swiperSlides=this.el.querySelectorAll("".concat(o.selectors.container," ").concat(o.selectors.slide)),this.setupBg=this.setupBg.bind(this),this.initSwiper=this.initSwiper.bind(this),this.handleExpand=this.handleExpand.bind(this),this.handleEscapeKey=this.handleEscapeKey.bind(this),this.handleSpaceKey=this.handleSpaceKey.bind(this),this.init(),this.youtubePlayers=new Map,window.onYouTubeIframeAPIReady=this.onYouTubeIframeAPIReady.bind(this)},t=[{key:"init",value:function(){this.setupBg(),this.initSwiper(),this.bindEvents(),this.keyboardManager=new l.default(this._swiper),this.keyboardManager.init(),this.initDxVideoControls(),this.bindSp
1aceKey()}},{key:"bindSpaceKey",value:function(){document.addEventListener("keydown",this.handleSpaceKey)}},{key:"initDxVideoControls",value:function(){this.el.querySelectorAll("".concat(o.selectors.container," ").concat(o.selectors.slide," video")).forEach(function(e){return new d.A(e)})}},{key:"onYouTubeIframeAPIReady",value:function(){var e=this;this.el.querySelectorAll(o.selectors.slide).forEach(function(t){var n=t.dataset.videoId,r=t.querySelector(o.selectors.ytVideoPlaceholder),i=null==r?void 0:r.dataset.posterImage;if(n&&!i&&r){var a=e.getVideoId(t);if("undefined"!=typeof YT&&void 0!==YT.Player){var l=new YT.Player(r.id,{videoId:a,playerVars:{color:"white",rel:0,enablejsapi:1},events:{onReady:function(e){var t=r.dataset.classname||"inpage-gallery__video",n=r.dataset.describedby||"",i=e.target.getIframe();null==i||i.removeAttribute("width"),null==i||i.removeAttribute("height"),null==i||i.classList.add(t),null==i||i.setAttribute("aria-describedby",n),e.target.mute()},onError:function(e){console.error("YT error",e)}}});e.youtubePlayers.set(n,l)}else console.warn("YouTube IFrame API not ready yet. Cannot create player.")}})}},{key:"setupBg",value:function(){var e=this.el.closest(".inpagegallery"),t=window.getComputedStyle(e).backgroundColor;t&&this.el.style.setProperty("--inpage-gallery-bg-color",t)}},{key:"handleSpaceKey",value:function(e){if("Space"===e.code&&"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()){var t=this.el.querySelector(".".concat(o.selectors.slideExpanded)),n=null==t?void 0:t.querySelector("video"),r=t?this.getVideoId(t):void 0;if(n||r){if(e.preventDefault(),r){var i,a=null!==(null==t?void 0:t.closest(".inpage-gallery__container--expanded"))?r+"--expanded":r,l=null===(i=this.youtubePlayers)||void 0===i?void 0:i.get(a);(null==l?void 0:l.getPlayerState())===YT.PlayerState.PLAYING?l.pauseVideo():l.playVideo()}n&&(n.paused?n.play():n.pause())}}}},{key:"initSwiper",value:function(){var e=this;this.swipeableElement&&this.swiperSlides.length>0&&(this._swiper=new r.A(this.swipeableElement,p(p({},o.swiperOptions),{},{expand:p(p({},o.swiperOptions.expand),{},{containerEl:this.swipeableElement.closest(".inpage-gallery"),handleSwiperRef:function(t){e._swiper=t},slideToActive:!0,expandedDuplication:{enabled:!0,selector:o.selectors.containerExpanded,className:o.selectors.containerExpanded.replace(".",""),reducedClassname:o.selectors.containerReduced.replace(".",""),onDuplication:function(e,t,n){t.querySelectorAll(o.selectors.expandButton).forEach(function(e){return e.remove()}),t.querySelectorAll(o.selectors.ytVideoPlaceholder).forEach(function(e){var t=e.id;if(t){var n="".concat(t,"--expanded");e.id=n;var r=e.getAttribute("data-describedby");r&&r.includes(t)&&e.setAttribute("data-describedby",r.replace(t,n))}}),e.querySelector(o.selectors.collapseButton).remove()},params:p(p({},o.swiperOptions),{},{expand:{enabled:!1},scrollbar:{el:".swiper-scrollbar",draggable:!0,hide:!1,enabled:!0},breakpoints:{0:{slidesPerView:"auto",direction:"vertical",spaceBetween:40},375:{slidesPerView:"auto",direction:"vertical",spaceBetween:40},768:{slidesPerView:"auto",direction:"vertical",spaceBetween:40},1280:{slidesPerView:1.06637,direction:"horizontal",spaceBetween:8},1920:{slidesPerView:1.06637,direction:"horizontal",spaceBetween:8}}})}})})))}},{key:"bindEvents",value:function(){this.bindPlay(),this.bindClose(),this.bindExpand()}},{key:"handleEscapeKey",value:function(e){if(27===e.keyCode){var t=this.el.querySelector(".".concat(o.selectors.slideExpanded)),n=t.querySelector(o.selectors.closeButton);t.tabIndex=0,t.focus(),null==n||n.click()}}},{key:"handleExpandCollapse",value:function(e){var t=this.el.dataset.expandedIndex,n=t===e.dataset.index,r=document.querySelector("header");document.body,n?(this._swiper.allowTouchMove=!1,this._swiper.slideTo(parseInt(t,10),0),e.dataset.expanded="true",this.el.classList.add(o.selectors.inpageGalleryVideoExpanded),(0,s.hideNonAncestors)(e),document.addEventListener("keydown",this.handleEscapeKey),e.classList.add(o.selectors.slideExpanded),r&&(r.style.visibility="hidden")):(e.classList.remove(o.selectors.slideExpanded),this._swiper.allowTouchMove=!0,r&&(r.style.visibility="visible"),e.dataset.expanded="false",this.el.classList.remove(o.selectors.inpageGalleryVideoExpanded),(0,s.removeHiddenElements)(),e.tabIndex=0,e.focus(),document.removeEventListener("keydown",this.handleEscapeKey))}},{key:"bindClose",value:function(){var e=this,t=this.el.querySelectorAll("".concat(o.selectors.closeButton));Array.from(t).forEach(function(t){t.addEventListener("click",function(n){var r,i;document.documentElement.style.removeProperty("overflow"),n.preventDefault();var a=t.closest(o.selectors.slide),l=a.querySelector("video"),s=e.getVideoId(a);if(l)l.pause(),delete e.el.dataset.expandedIndex,e.handleExpandCollapse(a);else if(s){var d,u=a.querySelector(o.selectors.ytVideoPlaceholder),c=null!==(null==u?void 0:u.closest(".inpage-gallery__container--expanded"))?s+"--expanded":s,p=null===(d=e.youtubePlayers
1)||void 0===d?void 0:d.get(c);p&&(p.getPlayerState()!==YT.PlayerState.UNSTARTED&&p.getPlayerState()!==YT.PlayerState.ENDED&&p.stopVideo(),delete e.el.dataset.expandedIndex,e.handleExpandCollapse(a))}null===(r=e._swiper)||void 0===r||null===(i=r.collapse)||void 0===i||i.call(r)})}),this.el.removeAttribute("data-expanded-index")}},{key:"getVideoId",value:function(e){var t=e.dataset.videoId;if(t&&!t.includes("/"))return t;try{var n=new URL(t);return n.searchParams.get("v")||n.pathname.split("/").pop()}catch(e){return void console.warn("URL parsing failed for",t,e)}}},{key:"bindPlay",value:function(){var e=this,t=this.el.querySelectorAll("".concat(o.selectors.playButton));Array.from(t).forEach(function(t){t.addEventListener("click",function(n){n.preventDefault(),document.documentElement.style.overflow="hidden";var r=t.closest(o.selectors.slide),i=r.querySelector("video"),a=r.querySelector(o.selectors.ytVideoPlaceholder),l=null!==(null==a?void 0:a.closest(".inpage-gallery__container--expanded")),s=e.getVideoId(r);if(i&&!s)r.focus(),i.paused?(i.play(),e.el.dataset.expandedIndex=r.dataset.index):(i.pause(),delete e.el.dataset.expandedIndex),e.handleExpandCollapse(r);else if(s&&a){var d;e.el.dataset.expandedIndex=r.dataset.index,e.handleExpandCollapse(r);var u=l?s+"--expanded":s,c=null===(d=e.youtubePlayers)||void 0===d?void 0:d.get(u);c?c.playVideo():"undefined"!=typeof YT&&void 0!==YT.Player?(c=new YT.Player(a.id,{videoId:s,playerVars:{autoplay:1,color:"white",rel:0,enablejsapi:1},events:{onReady:function(e){var t=a.dataset.classname||"inpage-gallery__video",n=a.dataset.describedby||"",r=e.target.getIframe();null==r||r.removeAttribute("width"),null==r||r.removeAttribute("height"),null==r||r.classList.add(t),null==r||r.setAttribute("aria-describedby",n),e.target.mute(),e.target.playVideo()},onError:function(e){console.error("YT error",e)}}}),e.youtubePlayers.set(u,c)):console.warn("YouTube IFrame API not ready yet. Cannot create player.")}})})}},{key:"handleExpand",value:function(e){var t,n;e.preventDefault(),document.documentElement.style.overflow="hidden",this.el.classList.remove(o.selectors.inpageGalleryVideoExpanded);var r=e.target.closest(o.selectors.slide),i=parseInt(r.dataset.index,10);null===(t=this._swiper)||void 0===t||null===(n=t.expand)||void 0===n||n.call(t,i,{breakpoints:{0:{slidesPerView:"auto",direction:"vertical",spaceBetween:40},375:{slidesPerView:"auto",direction:"vertical",spaceBetween:40},768:{slidesPerView:"auto",direction:"vertical",spaceBetween:40},1280:{slidesPerView:1.15,direction:"horizontal",spaceBetween:8},1920:{slidesPerView:1.15,direction:"horizontal",spaceBetween:8}}})}},{key:"bindExpand",value:function(){var e=this,t=this.el.querySelectorAll("".concat(o.selectors.expandButton)),n=Array.from(t),r=this.el.querySelector(o.selectors.collapseButton);n.forEach(function(t){t.addEventListener("click",e.handleExpand)}),r.addEventListener("click",function(t){e.el.classList.remove(o.selectors.inpageGalleryVideoExpanded),document.documentElement.style.removeProperty("overflow"),t.preventDefault(),e._swiper.collapse()})}}],t&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},34461:function(e,t,n){n.r(t),n.d(t,{default:function(){return l}});var r=n(44869);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var l=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
1(this,e),this.swiper=t,this.bindControlsKeyDown=this.bindControlsKeyDown.bind(this),this.resetFocusableElements=this.resetFocusableElements.bind(this),this.prevButton=this.swiper.el.querySelector(".inpage-gallery__scrollbar-button--prev"),this.nextButton=this.swiper.el.querySelector(".inpage-gallery__scrollbar-button--next")},t=[{key:"init",value:function(){var e=this;this.resetFocusableElements(),this.bindControlsKeyDown(),this.swiper.slides.forEach(function(t){t.addEventListener("keydown",function(n){return e.handleSlideKeyDown(n,t)}),t.addEventListener("focus",function(){return e.handleSlideFocus(t)})}),this.swiper.el.addEventListener("focusout",function(t){var n=t.relatedTarget;n&&!e.swiper.el.contains(n)&&e.onFocusLeave()})}},{key:"onFocusLeave",value:function(){var e=this;this.resetFocusableElements(),setTimeout(function(){var t=document.activeElement;if(!e.swiper.el.contains(t)){var n=e.isSwiperButtonDisabled(e.nextButton)?e.isSwiperButtonDisabled(e.prevButton)?null:e.prevButton:e.nextButton;n&&(n.tabIndex=0)}},30)}},{key:"getFocusedSlideIndex",value:function(){var e=parseInt(this.swiper.el.dataset.focusedSlideIndex);return isNaN(e)?0:e}},{key:"setFocusedSlideIndex",value:function(e){void 0===e?delete this.swiper.el.dataset.focusedSlideIndex:this.swiper.el.dataset.focusedSlideIndex=e}},{key:"focusSlide",value:function(e){var t;this.swiper.slides.forEach(function(t,n){var r=n===e;t.setAttribute("aria-hidden",!r),t.tabIndex=r?0:-1}),null===(t=this.swiper.slides[e])||void 0===t||t.focus()}},{key:"isSwiperButtonDisabled",value:function(e){return e.classList.contains("swiper-button-disabled")}},{key:"bindControlsKeyDown",value:function(){var e=this;this.prevButton.addEventListener("keydown",function(t){var n=e.getFocusedSlideIndex();switch(t.key){case"Enter":t.preventDefault(),e.swiper.slidePrev(),e.setFocusedSlideIndex(Math.max(0,n-1)),setTimeout(function(){e.isSwiperButtonDisabled(e.prevButton)&&e.nextButton.focus()},200);break;case"ArrowRight":e.isSwiperButtonDisabled(e.nextButton)||(t.preventDefault(),e.nextButton.focus());break;case"Tab":t.shiftKey||(t.preventDefault(),e.focusSlide(n),e.prevButton.tabIndex=-1,e.nextButton.tabIndex=-1)}}),this.nextButton.addEventListener("keydown",function(t){var n=e.getFocusedSlideIndex();switch(t.key){case"Enter":t.preventDefault(),e.swiper.slideNext(),e.setFocusedSlideIndex(n<e.swiper.slides.length-1?n+1:0),setTimeout(function(){e.isSwiperButtonDisabled(e.nextButton)&&e.prevButton.focus()},200);break;case"ArrowLeft":e.isSwiperButtonDisabled(e.prevButton)||(t.preventDefault(),e.prevButton.focus());break;case"Tab":t.shiftKey||(t.preventDefault(),e.focusSlide(n),e.prevButton.tabIndex=-1,e.nextButton.tabIndex=-1)}})}},{key:"handleSlideFocus",value:function(e){this.swiper.slides.filter(function(t){return t.dataset.index!==e.dataset.index}).forEach(function(e){e.querySelectorAll("a, button, [tabindex]").forEach(function(e){e.tabIndex=-1})})}},{key:"handleSlideKeyDown",value:function(e,t){var n=this,i=this.getFocusedSlideIndex(),o=this.swiper.slides,a=function(e){n.swiper.slideTo(e),n.setFocusedSlideIndex(e),n.focusSlide(e)};switch(e.key){case"ArrowRight":var l=i+1;l<o.length&&(e.preventDefault(),a(l));break;case"ArrowLeft":var s=i-1;s>=0&&(e.preventDefault(),a(s));break;case"Tab":if(e.shiftKey){var d=this.isSwiperButtonDisabled(this.nextButton)?this.prevButton:this.nextButton;d&&(e.preventDefault(),d.tabIndex=0,t.tabIndex=-1,d.focus())}else this.setFocusedSlideIndex(void 0),t.tabIndex=-1;break;case"Enter":if(e.target===t){var u=t.querySelector(r.selectors.playButton)||t.querySelector(r.selectors.expandButton);u&&(e.preventDefault(),u.focus())}}}},{key:"resetFocusableElements",value:function(){this.swiper.slides.forEach(function(e){e.tabIndex=-1,e.querySelectorAll("a, button, [tabindex]").forEach(function(e){e.tabIndex=-1})})}}],t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},55889:function(e,t,n){n.r(t),n.d(t,{events:function(){return i},params:function(){return r}});var r={enabled:!1,expandedClass:"swiper-expanded",expandableClass:"swiper-expandable",containerElExpandedClass:"swiper-container-expanded",containerEl:null,handleSwiperRef:null,expandedDuplication:{enabled:!0,selector:".swiper-container-expanded",className:"swiper-container-expanded",reducedClassname:"swiper-container-reduced",onDuplication:null,slideToActive:!0,params:{}}},i={expand:"expand",collapse:"collapse"}},63340:function(e,t,n){n.r(t),n.d(t,{Expand:function(){return p}});var r=n(51236),i=n(55889),o=n(46634),a=n(93993),l=n(77801);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?d(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t,n=e.swiper,s=e.extendParams,d=e.on,c=function(e){27===e.keyCode&&n.collapse()},p=function(){var e=window.innerHeight,t=window.innerWidth,r=n.params.expand.containerEl,i=null==r?void 0:r.querySelector(".inpage-gallery__container--expanded"),a=null==i?void 0:i.swiper;a.setBreakpoint();var l=a.currentBreakpoint;if(!("vertical"===a.params.breakpoints[l].direction)){var s=(0,o.getCaptionsHeight)(r),d=(0,o.getScrollbarHeight)(r),u=null==r?void 0:r.querySelector(".swiper-slide"),c=t/(16/9*(e-(u?parseFloat(window.getComputedStyle(u).getPropertyValue("gap")):0)-d-s)),p=Math.max(1.01,c);(0,o.calculateSlidesPerViewRelativeChange)(a,p)>.02&&(a.params.breakpoints[l].slidesPerView=p,a.params.slidesPerView=p,a.update())}};s({expand:i.params}),d("beforeInit",function(){var e,o;if(null!==(e=n.params.expand)&&void 0!==e&&e.enabled){n.expand=function(e,t){return n.emit(i.events.expand,e,t)},n.collapse=function(){return n.emit(i.events.collapse)};var a=n.addClasses;if(n.expanded=!1,n.addClasses=function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];a.apply(this,r),n.el.classList.add(null===(e=n.params.expand)||void 0===e?void 0:e.expandableClass)},null!==(o=n.params.expand)&&void 0!==o&&null!==(o=o.expandedDuplication)&&void 0!==o&&o.enabled){var s,d,u,c,y,v,f,h,b,w=n.el,m=null!==(s=null===(d=n.params.expand)||void 0===d||null===(d=d.expandedDuplication)||void 0===d?void 0:d.className)&&void 0!==s?s:"",x=null!==(u=null===(c=n.params.expand)||void 0===c||null===(c=c.expandedDuplication)||void 0===c?void 0:c.reducedClassname)&&void 0!==u?u:"",g=w.cloneNode(!0);g.classList.add(m),w.classList.add(x);var S=w.parentNode.insertBefore(g,w.nextSibling),E=new r.A(S,null!==(y=null===(v=n.params.expand.expandedDuplication)||void 0===v?void 0:v.params)&&void 0!==y?y:{});t=new l.default(E),null!==(f=n.params.expand)&&void 0!==f&&f.slideToActive||setTimeout(function(){n.controller.control=E,E.controller.control=n},100),null===(h=n.params.expand.expandedDuplication)||void 0===h||null===(b=h.onDuplication)||void 0===b||b.call(h,w,S,E),p(),window.addEventListener("resize",p)}}}),d("beforeDestroy",function(){if(n.params.expand.enabled){var e=n.removeClasses;n.removeClasses=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e.apply(this,r),n.el.classList.remove(n.params.expand.expandableClass)}}}),d(i.events.expand,function(e,r,i){var o,l,s;if(!n.expanded){document.documentElement.style.overflow="hidden";var d=n.params.expand.containerEl,p=null==d?void 0:d.querySelector(null!==(o=null===(l=n.params.expand.expandedDuplication)||void 0===l?void 0:l.selector)&&void 0!==o?o:""),y=null==p?void 0:p.swiper;null!==(s=n.params.expand)&&void 0!==s&&s.slideToActive&&(null==y||y.slideTo(r,0,!1));var v="vertical"===y.params.direction,f=0,h=y.currentBreakpoint&&y.params.breakpoints?y.params.breakpoints[y.currentBreakpoint]:void 0;v&&(f=h&&h.spaceBetween?h.spaceBetween:y.params.spaceBetween),n.slides.forEach(function(e,t){var n=e.getBoundingClientRect(),r=y.slides[t].getBoundingClientRect();e.style.setProperty("--swiper-slide-top","".concat(n.top,"px")),e.style.setProperty("--swiper-slide-left","".concat(n.left,"px")),e.style.setProperty("--swiper-slide-width","".concat(n.width,"px")),e.style.setProperty("--swiper-slide-height","".concat(n.height,"px")),setTimeout(function(){e.style.setProperty("--swiper-slide-top","".concat(r.top,"px")),e.style.setProperty("--swiper-slide-left","".concat(r.left,"px")),e.style.setProperty("--swiper-slide-width","".concat(r.width,"px")),e.style.setProperty("--swiper-slide-height","".concat(r.height+f,"px"))},200)}
1),n.el.classList.add("swiper-expanding"),(0,a.hideNonAncestors)(d),setTimeout(function(){n.el.classList.remove("swiper-expanding"),n.expanded=!0;var e=n.params.expand.containerEl;if(e){var r=null==e?void 0:e.offsetHeight;null==e||e.style.setProperty("--swiper-expanded-container-height","".concat(r,"px")),null==e||e.classList.add(n.params.expand.containerElExpandedClass);var o=Object.keys(i,{}),a=Object.fromEntries(o.map(function(e){return[e,n.params[e]]}));n.oldParams=a,n.params=u(u({},n.params),{},{expand:u(u({},n.params.expand),i)}),n.update(),document.addEventListener("keydown",c),t.init()}},1e3)}}),d(i.events.collapse,function(){var e,r,i,o;if(n.expanded){document.documentElement.style.removeProperty("overflow");var l=n.params.expand.containerEl,s=null==l?void 0:l.querySelector(null!==(e=null===(r=n.params.expand.expandedDuplication)||void 0===r?void 0:r.selector)&&void 0!==e?e:""),d=null==s?void 0:s.swiper;null!==(i=n.params.expand)&&void 0!==i&&i.slideToActive&&n.slideTo(null!==(o=null==d?void 0:d.activeIndex)&&void 0!==o?o:0,0,!1);var u=(null==d?void 0:d.activeIndex)>=0?n.slides[d.activeIndex]:void 0,p=u?u.querySelectorAll("button"):void 0,y=p?p[0]:void 0;y&&(y.tabIndex=0,y.focus()),d.slides.forEach(function(e,t){var r=n.slides[t].getBoundingClientRect(),i=e.getBoundingClientRect();e.style.setProperty("--swiper-slide-top","".concat(i.top,"px")),e.style.setProperty("--swiper-slide-left","".concat(i.left,"px")),e.style.setProperty("--swiper-slide-width","".concat(i.width,"px")),e.style.setProperty("--swiper-slide-height","".concat(i.height,"px")),setTimeout(function(){e.style.setProperty("--swiper-slide-top","".concat(r.top,"px")),e.style.setProperty("--swiper-slide-left","".concat(r.left,"px")),e.style.setProperty("--swiper-slide-width","".concat(r.width,"px")),e.style.setProperty("--swiper-slide-height","".concat(r.height,"px"))},200)}),null==s||s.classList.add("swiper-collapsing"),(0,a.removeHiddenElements)(),setTimeout(function(){var e;null==s||s.classList.remove("swiper-collapsing"),n.expanded=!1,null==l||l.style.removeProperty("--swiper-expanded-container-height"),null==l||l.classList.remove(n.params.expand.containerElExpandedClass),document.removeEventListener("keydown",c),null===(e=t)||void 0===e||e.deactivate()},1e3),n.update()}})}},77801:function(e,t,n){n.r(t),n.d(t,{default:function(){return d}});var r=n(44869);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var d=function(){return e=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.swiper=t,this.closeButton=this.swiper.el.querySelector(".inpage-gallery__fab-collapse"),this.focusableControls=[],this.handleKeyDown=this.handleKeyDown.bind(this),this.handlePrevKeyDown=function(e){return n.handleControlKeyDown(e,"prev")},this.handleNextKeyDown=function(e){return n.handleControlKeyDown(e,"next")},this.handlePrevKeyDown=this.handlePrevKeyDown.bind(this),this.handleNextKeyDown=this.handleNextKeyDown.bind(this)},t=[{key:"init",value:function(){this.cacheControls(),this.setInitialFocusState(),this.attachListeners()}},{key:"cacheControls",value:function(){this.prevButton=this.swiper.el.querySelector(".inpage-gallery__scrollbar-button--prev"),this.nextButton=this.swiper.el.querySelector(".inpage-gallery__scrollbar-button--next")}},{key:"isSwiperButtonDisabled",value:function(e){return e.classList.contains("swiper-button-disabled")}},{key:"setInitialFocusState",value:function(){this.disableAllTabIndices(),this.prevButton&&!this.isSwiperButtonDisabled(this.prevButton)&&(this.prevButton.tabIndex=0),this.nextButton&&!this.isSwiperButtonDisabled(this.nextButton)&&(this.nextButton.tabIndex=0),this.closeButton&&(this.closeButton.tabIndex=0),this.activateSlidePlayButton()}},{key:"attachListeners",value:function(){var e,t;document.addEventListener("keydown",this.handleKeyDown),null===(e=this.prevButton)||void 0===e||e.addEventListener("keydown",this.handlePrevKeyDown),null===(t=this.nextButton)||void 0===t||t.addEventListener("keydown",this.handleNextKeyDown)}},{key:"handleControlKeyDown",value:function(e,t){var n=this;"Enter"===e.key&&(e.preventDefault(),"prev"===t?this.swiper.slidePrev():"next"===t&&this.swiper.slideNext(),setTimeout(function(){n.setInitialFocusState(),"prev"===t&&n.isSwiperButtonDisabled(n.prevButton)&&(n.prevButton.tabIndex=-1,n.nextButton.focus()),"next"===t&&n.isSwiperButtonDisabled(n.nextButton)&&(n.nextButton.tabIndex=-1,n.prevButton.focus())},100))}},{key:"handleKeyDown",value:function(e){var t;if("Tab"===e.key&&(this.focusableControls=[this.prevButton,this.nextButton,,].concat(o(this.getSlidePlayButtons()),[this.closeButton]).filter(function(e){return e&&0===e.tabIndex}),0!==this.focusableControls.length)){var n,r=this.focusableControls.indexOf(document.activeElement);n=e.shiftKey?r>0?r-1:this.focusableControls.length-1:(r+1)%this.focusableControls.length,e.preventDefault(),null===(t=this.focusableControls[n])||void 0===t||t.focus()}}},{key:"disableAllTabIndices",value:function(){var e,t,n;
1this.swiper.slides.forEach(function(e){e.querySelectorAll("button, a, [tabindex]").forEach(function(e){e.tabIndex=-1})}),null===(e=this.prevButton)||void 0===e||e.setAttribute("tabIndex",-1),null===(t=this.nextButton)||void 0===t||t.setAttribute("tabIndex",-1),null===(n=this.closeButton)||void 0===n||n.setAttribute("tabIndex",-1)}},{key:"activateSlidePlayButton",value:function(){var e=this.swiper.slides[this.swiper.activeIndex],t=null==e?void 0:e.querySelector(r.selectors.playButton);t&&(t.tabIndex=0)}},{key:"getSlidePlayButtons",value:function(){var e=this.swiper.slides[this.swiper.activeIndex];return Array.from((null==e?void 0:e.querySelectorAll(r.selectors.playButton))||[])}},{key:"deactivate",value:function(){var e,t;this.disableAllTabIndices(),document.removeEventListener("keydown",this.handleKeyDown),null===(e=this.prevButton)||void 0===e||e.removeEventListener("keydown",this.handlePrevKeyDown),null===(t=this.nextButton)||void 0===t||t.removeEventListener("keydown",this.handleNextKeyDown)}}],t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},46634:function(e,t,n){n.r(t),n.d(t,{calculateSlidesPerViewRelativeChange:function(){return o},getCaptionsHeight:function(){return i},getScrollbarHeight:function(){return r}});var r=function(e){var t=null==e?void 0:e.querySelector(".swiper-scrollbar-container"),n=getComputedStyle(t);return isNaN(parseFloat(n.height))?63:parseFloat(n.height)},i=function(e){var t=null==e?void 0:e.querySelectorAll(".inpage-gallery__slide--captions");return Array.from(t).reduce(function(e,t){var n=t.getBoundingClientRect().height;return Math.max(e,n)},0)},o=function(e,t){var n=e.params.slidesPerView;return Math.abs(t-n)/n}},93993:function(e,t,n){function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.r(t),n.d(t,{hideNonAncestors:function(){return a},removeHiddenElements:function(){return l}});var o="hidden-by-inpage-gallery",a=function(e){for(var t=e;t&&t!==document.body;){var n=t.parentElement;if(n){var i,a=r(n.children);try{for(a.s();!(i=a.n()).done;){var l=i.value;l!==t&&(l.classList.add(o),l.setAttribute("inert",""))}}catch(e){a.e(e)}finally{a.f()}}t=n}},l=function(){var e=document.body.querySelectorAll(".".concat(o));null==e||e.forEach(function(e){e.classList.remove(o),e.removeAttribute("inert")})}}}]);

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.