1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9897],{8208(e,i,t){t.r(i),t.d(i,{SLIDE_TIME_MILLISECONDS:()=>h,START_PLAYING_VISIBLE_RATIO:()=>n,default:()=>r});var s=t(1827),o=t(4899);const n=.8,h=4e3;let a=class extends o.Vue{constructor(){super(...arguments),this.slideIndex=0,this.observer=void 0,this.isPlaying=!1,this.inactivityTimer=0,this.automaticSlidingTimer=0,this.slideTimeRemaining=0,this.slideTimeRemainingUpdatorInterval=0,this.touchStartAmount=void 0,this.touchMoveAmount=void 0,this.moveAmount=void 0,this.carouselWidth=0,this.isDesktopQuery=window.matchMedia("only screen and (min-width: 80rem)"),this.isDesktop=this.isDesktopQuery.matches}mounted(){this.observer=new window.IntersectionObserver(this.onEntry.bind(this),{threshold:n}),this.observer.observe(this.$refs.carousel),this.$refs.carousel.addEventListener("touchstart",e=>{this.touchStart(e)}),this.$refs.carousel.addEventListener("touchmove",e=>{this.touchMove(e)}),this.$refs.carousel.addEventListener("touchend",e=>{this.touchEnd(e)}),window.addEventListener("resize",this.onResize),this.onResize()}beforeDestroy(){window.removeEventListener("resize",this.onResize)}onResize(){this.isDesktop=this.isDesktopQuery.matches,this.carouselWidth=this.$refs.carousel.scrollWidth}onEntry(e){e.forEach(e=>{e.isIntersecting&&void 0!==this.observer&&e.intersectionRatio>n?this.isPlaying=!0:this.isPlaying=!1,this.handleAutoMoveToNextSlide()})}handleAutoMoveToNextSlide(e=!0){this.clearTimers(),this.isPlaying&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(e&&(this.slideTimeRemaining=1),this.slideTimeRemainingUpdatorInterval=setInterval(()=>{this.slideTimeRemaining-=50/h},50),this.automaticSlidingTimer=window.setTimeout(()=>{this.handleAutoMoveToNextSlide(),this.nextSlide()},h*this.slideTimeRemaining))}nextSlide(e){e&&this.handlePausePlaying(e),this.slideIndex<this.amount-1?this.slideIndex+=1:this.slideIndex=0,this.handleAutoMoveToNextSlide()}previousSlide(e){e&&this.handlePausePlaying(e),this.slideIndex>0?this.slideIndex-=1:this.slideIndex=this.amount-1,this.handleAutoMoveToNextSlide()}playPauseCarousel(){this.isPlaying=!this.isPlaying,this.handleAutoMoveToNextSlide()}onClickCarousel(e){this.handlePausePlaying(e)}handlePausePlaying(e){if(e instanceof KeyboardEvent){const i=e.key.toLowerCase();if("enter"!==i&&"space"!==i&&" "!==i)return}this.playPauseCarousel(),this.inactivityTimer=window.setTimeout(()=>{this.isPlaying=!0,this.handleAutoMoveToNextSlide()},1e4)}touchStart(e){this.touchStartAmount=e.touches[0].pageX}touchMove(e){this.touchMoveAmount=e.touches[0].pageX,this.touchStartAmount&&this.touchMoveAmount&&(this.moveAmount=this.touchStartAmount-this.touchMoveAmount)}touchEnd(e){this.moveAmount&&this.moveAmount>40?(this.clearTimers(),this.slideTimeRemaining=1,this.nextSlide(e)):this.moveAmount&&this.moveAmount<-40&&(this.clearTimers(),this.slideTimeRemaining=1,this.previousSlide(e)),this.moveAmount=void 0}lazyLoadSlide(e){return this.slideIndex===e||this.slideIndex+1===e||this.slideIndex-1===e||this.slideIndex+1===this.amount&&0===e||0===this.slideIndex&&e+1===this.amount}async handleKeyUp(e){const i=e.key.toLowerCase();if("arrowleft"!==i&&"arrowright"!==i)return;"arrowleft"===i?(this.clearTimers(),this.handlePausePlaying(),this.previousSlide()):"arrowright"===i&&(this.clearTimers(),this.handlePausePlaying(),this.nextSlide()),await this.$nextTick();const{activeElement:t}=document;t instanceof HTMLElement&&-1===t.tabIndex&&this.$refs.carousel.focus()}clearTimers(){clearTimeout(this.automaticSlidingTimer),clearTimeout(this.inactivityTimer),clearInterval(this.slideTimeRemainingUpdatorInterval)}};(0,s.Cg)([(0,o.Prop)()],a.prototype,"amount",void 0),a=(0,s.Cg)([(0,o.Component)({filters:{clippedString(e){const i=window.matchMedia("only screen and (max-width: 35.5625rem)").matches?85:115;return e.length>i?`${e.substr(0,i-1)}...`:e}}})],a);const r=a}}]);
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.