1if(typeof ScrollingText!="function"){class ScrollingText2 extends HTMLElement{constructor(){super();var ScrollingText3=(function(){function getWidth(element){var rect=element.getBoundingClientRect();return rect.right-rect.left}function ScrollingText4(box,speed2){var inner_element=box.children&&box.children[0]||null;if(!inner_element)throw"No child node found";inner_element.style.position="relative",this.position=0,this.speed=speed2,this.box_width=getWidth(box),this.inner_element_width=getWidth(inner_element),this.box=box,this.inner_element=inner_element.cloneNode(!0),setUpChildrens.call(this)}function refreshWidths(){this.box_width=getWidth(this.box),this.inner_element_width=getWidth(this.box.children[0])}function calculateNumElements(){return Math.ceil(this.box_width/this.inner_element_width)+1}function setUpChildrens(){var qty=calculateNumElements.call(this);if(qty>this.box.children.length)for(var i=this.box.children.length;i<qty;i++)this.box.appendChild(this.inner_element.cloneNode(!0));else if(qty<this.box.children.length)for(var i=qty;i<this.box.children.length;i++)this.box.removeChild(this.box.lastChild)}function nextFrame(delta,direction2){var self=this;refreshWidths.call(this),setUpChildrens.call(this),Array.prototype.forEach.call(this.box.children,function(el){direction2=="rtl"?el.style.transform=`translateX(${self.position}px)`:el.style.transform=`translateX(${-self.position}px)`}),this.position+=this.speed*delta/1e3,this.position>=this.inner_element_width&&(this.position=this.position%this.inner_element_width)}return ScrollingText4.prototype={start:function(direction2,speed2){this._running=!0;var self=this,last_time=null,loop_func=function(){if(self._running){var now=Date.now(),delta=last_time===null?0:now-last_time;nextFrame.call(self,delta,direction2,speed2),last_time=now,window.requestAnimationFrame(loop_func)}};window.requestAnimationFrame(loop_func)},stop:function(){this._running=!1}},ScrollingText4})();const speed=window.innerWidth>768?parseInt(this.dataset.scrollingSpeed):parseInt(this.dataset.scrollingSpeed)/1.5,direction=this.dataset.scrollingDirection,scrolling_text=new ScrollingText3(this,speed,direction);if(this.dataset.pauseOnHover=="true"){let isMouseOver2=function(){windowInFocus&&scrolling_text.stop()},isMouseOut2=function(){windowInFocus&&scrolling_text.start(direction)};var isMouseOver=isMouseOver2,isMouseOut=isMouseOut2;const carusel=this;let windowInFocus=!0;window.addEventListener("blur",function(){windowInFocus=!1}),window.addEventListener("focus",function(){windowInFocus=!0}),carusel.addEventListener("mouseover",isMouseOver2),carusel.addEventListener("mouseout",isMouseOut2)}new IntersectionObserver(entries=>{entries[0].isIntersecting?scrolling_text.start(direction):scrolling_text.stop()}).observe(this)}}typeof customElements.get("scrolling-text")>"u"&&customElements.define("scrolling-text",ScrollingText2)} 2//# sourceMappingURL=/cdn/shop/t/13/assets/component-scrolling-text.js.map?v=85046110130182916011730021236
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.