1"use strict";(self.webpackChunkstw_seems=self.webpackChunkstw_seems||[]).push([[298],{4298:function(e,t,s){s(8992),s(3949);var o=s(848);class l{constructor(e,t=null){this.rootElem=e,this.buttonsRelativeTo=t,this.carouselElem=this.getRootElem().querySelector(".carousel__items"),this.setUp()}getRootElem(){return this.rootElem}getCarouselElem(){return this.carouselElem}getWindow(){return this.getRootElem().ownerDocument.defaultView}getDeltaPx(){if(void 0===this.deltaPx){const e=this.getCarouselElem().children.item(0).offsetWidth,t=this.getWindow().getComputedStyle(this.getCarouselElem()),s=e+o.A.toDecimalInteger(t.gap),l=o.A.toDecimalInteger(t.width),i=Math.floor(l/s);this.deltaPx=i*s}return this.deltaPx}move(e){this.getCarouselElem().scrollBy({left:e*this.getDeltaPx(),behavior:"smooth"})}setUp(){const e=this.getCarouselElem(),t=this.getRootElem().querySelector(".direction-button--next"),s=this.getRootElem().querySelector(".direction-button--prev");if(e.scrollWidth>e.parentElement.clientWidth){if(null!==this.buttonsRelativeTo){const o=e.querySelector(this.buttonsRelativeTo);if(null!==o){const e=String(o.offsetHeight/2-t.offsetHeight/2)+"px";t.style.top=e,s.style.top=e}}t.addEventListener("click",this.move.bind(this,1)),s.addEventListener("click",this.move.bind(this,-1))}else t.style.display="none",s.style.display="none";this.getRootElem().classList.add("loaded")}}document.querySelectorAll(".carousel").forEach(e=>{new l(e,".summary-image-in-link")})}}]);
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.