1import{a as _inherits,b as _createSuper,c as _createClass,d as _classCallCheck,h as _wrapNativeSuper}from"./_rollupPluginBabelHelpers-18ddf178.js";var ScrollingContent=(function(_HTMLElement){_inherits(ScrollingContent2,_HTMLElement);var _super=_createSuper(ScrollingContent2);function ScrollingContent2(){var _this;return _classCallCheck(this,ScrollingContent2),_this=_super.call(this),_this.prefersReducedMotion=document.documentElement.classList.contains("prefers-reduced-motion"),_this}return _createClass(ScrollingContent2,[{key:"connectedCallback",value:function(){var _this2=this;if(!this.prefersReducedMotion){var marquee=this.querySelector("[js-marquee]"),content=this.querySelector("[js-marquee-content]"),clonedContent=this.tabProofClonedContent(content.cloneNode(!0)),contentWidth=content.offsetWidth;contentWidth!==0&&(this.ro=new ResizeObserver(function(){for(var num=_this2.getNeededCloneCount(_this2,marquee,content),animationItemCount=1,i=0;i<num;i++){marquee.dataset.playScrollAnimation="false";var clone=clonedContent.cloneNode(!0);clone.querySelectorAll(".animation--item").forEach(function(el){el.style.setProperty("--delay-offset-multiplier",animationItemCount),animationItemCount++}),marquee.appendChild(clone)}requestAnimationFrame(function(){marquee.dataset.playScrollAnimation="true"})}),this.ro.observe(document.documentElement))}}},{key:"disconnectedCallback",value:function(){var _this$ro;(_this$ro=this.ro)===null||_this$ro===void 0||_this$ro.disconnect()}},{key:"getNeededCloneCount",value:function(viewport,marquee,content){return Math.ceil((viewport.offsetWidth-marquee.offsetWidth)/content.offsetWidth)+1}},{key:"tabProofClonedContent",value:function(clonedContent){var linkEls=clonedContent.querySelectorAll("a");return linkEls.forEach(function(linkEl){linkEl.setAttribute("tabindex","-1")}),clonedContent.setAttribute("aria-hidden",!0),clonedContent}}]),ScrollingContent2})(_wrapNativeSuper(HTMLElement));customElements.get("scrolling-content")||customElements.define("scrolling-content",ScrollingContent); 2//# sourceMappingURL=/cdn/shop/t/15/assets/scrolling-content.js.map?v=105534278300878641161784554773
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.