1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5297],{65297:(t,e,s)=>{s.r(e),s.d(e,{default:()=>r}),s(8380),s(23057);var i=s(92180);class r{constructor(){this.container=document.querySelector(".ds-area--reviews"),this.nav=this.container?.querySelector(".ds-area--reviews__nav"),this.triggers=this.nav?.querySelectorAll(".ds-area--reviews__nav__item__btn"),this.slideshows=this.container?.querySelectorAll(".ds-area--reviews__slideshow"),this.dotNavInstances=[],this.container?.dataset.jsInitialized||(this.init(),this.container&&(this.container.dataset.jsInitialized="true"))}init(){this.resetAllSlideshows(),this.navClickHandler(),this.initDotNavigation(),this.initKeyboardNavigation()}resetAllSlideshows(){this.slideshows?.forEach((t=>{const e=t?.querySelector(".ds-slideshow__list");e&&(e.scrollLeft=0)}))}navClickHandler(){this.triggers?.forEach((t=>t.addEventListener("click",(()=>{const e=t?.getAttribute("aria-controls"),s=this.container?.querySelector(`#${e}`);this.slideshows?.forEach((t=>t?.setAttribute("data-active","false"))),s?.setAttribute("data-active","true"),this.triggers?.forEach((t=>t?.setAttribute("aria-selected","false"))),this.triggers?.forEach((t=>t?.setAttribute("tabindex","-1"))),t?.setAttribute("aria-selected","true"),t?.removeAttribute("tabindex");const i=Array.from(this.slideshows).indexOf(s);this.dotNavInstances[i]&&this.dotNavInstances[i].reset()}))))}initDotNavigation(){this.slideshows?.forEach(((t,e)=>{const s=t?.querySelector(".ds-slideshow__list"),r=t?.querySelector(".ds-dot-nav");if(!s||!r)return;const o=new i.A(s,r,{dotSelector:".ds-dot-nav__dot",itemSelector:".ds-slideshow__list__item",defaultGap:10});this.dotNavInstances[e]=o}))}reset(){this.dotNavInstances.forEach((t=>t.reset()))}initKeyboardNavigation(){this.triggers?.forEach((t=>{t.addEventListener("keydown",(e=>{const s=Array.from(this.triggers),i=s.indexOf(t);let r=-1;"ArrowLeft"===e.key||"ArrowUp"===e.key?(e.preventDefault(),r=i>0?i-1:s.length-1):"ArrowRight"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),r=i<s.length-1?i+1:0),-1!==r&&(s[r].focus(),s[r].click())}))})),this.slideshows?.forEach((t=>{const e=t?.querySelector(".ds-slideshow__list");e&&t.addEventListener("keydown",(s=>{if("true"===t.getAttribute("data-active")){const t=e.querySelectorAll(".ds-slideshow__list__item");if(!t.length)return;const i=t[0].offsetWidth+(parseFloat(getComputedStyle(e).gap)||10);"ArrowLeft"===s.key||"ArrowUp"===s.key?(s.preventDefault(),e.scrollBy({left:-i,behavior:"smooth"})):"ArrowRight"!==s.key&&"ArrowDown"!==s.key||(s.preventDefault(),e.scrollBy({left:i,behavior:"smooth"}))}}))}))}}}}]);
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.