{
  "version": 3,
  "sources": ["/cdn/shop/t/39/assets/scrolling-promotion.js"],
  "sourcesContent": ["if (!customElements.get('scrolling-promotion')) {\n  class ScrollingPromotion extends HTMLElement {\n    constructor() {\n      super();\n      if (FoxTheme.config.motionReduced) return;\n      this.promotion = this.querySelector('.promotion');\n      FoxTheme.Motion.inView(this, this.init.bind(this), { margin: '200px 0px 200px 0px' });\n    }\n    init() {\n      if (this.childElementCount === 1) {\n        this.promotion.classList.add('promotion--animated');\n\n        for (let index = 0; index < 10; index++) {\n          this.clone = this.promotion.cloneNode(true);\n          this.appendChild(this.clone);\n        }\n\n        // pause when out of view\n        const observer = new IntersectionObserver(\n          (entries, _observer) => {\n            entries.forEach((entry) => {\n              if (entry.isIntersecting) {\n                this.scrollingPlay();\n              } else {\n                this.scrollingPause();\n              }\n            });\n          },\n          { rootMargin: '0px 0px 50px 0px' }\n        );\n\n        observer.observe(this);\n      }\n    }\n\n    scrollingPlay() {\n      this.classList.remove('scrolling-promotion--paused');\n    }\n\n    scrollingPause() {\n      this.classList.add('scrolling-promotion--paused');\n    }\n  }\n  customElements.define('scrolling-promotion', ScrollingPromotion);\n}\n"],
  "mappings": "AAAA,GAAI,CAAC,eAAe,IAAI,qBAAqB,EAAG,CAC9C,MAAM,2BAA2B,WAAY,CAC3C,aAAc,CACZ,MAAM,EACF,UAAS,OAAO,gBACpB,KAAK,UAAY,KAAK,cAAc,YAAY,EAChD,SAAS,OAAO,OAAO,KAAM,KAAK,KAAK,KAAK,IAAI,EAAG,CAAE,OAAQ,qBAAsB,CAAC,EACtF,CACA,MAAO,CACL,GAAI,KAAK,oBAAsB,EAAG,CAChC,KAAK,UAAU,UAAU,IAAI,qBAAqB,EAElD,QAAS,MAAQ,EAAG,MAAQ,GAAI,QAC9B,KAAK,MAAQ,KAAK,UAAU,UAAU,EAAI,EAC1C,KAAK,YAAY,KAAK,KAAK,EAIZ,IAAI,qBACnB,CAAC,QAAS,YAAc,CACtB,QAAQ,QAAS,OAAU,CACrB,MAAM,eACR,KAAK,cAAc,EAEnB,KAAK,eAAe,CAExB,CAAC,CACH,EACA,CAAE,WAAY,kBAAmB,CACnC,EAES,QAAQ,IAAI,CACvB,CACF,CAEA,eAAgB,CACd,KAAK,UAAU,OAAO,6BAA6B,CACrD,CAEA,gBAAiB,CACf,KAAK,UAAU,IAAI,6BAA6B,CAClD,CACF,CACA,eAAe,OAAO,sBAAuB,kBAAkB,CACjE",
  "names": []
}
