{
  "version": 3,
  "sources": ["/cdn/shop/t/66/assets/animate-on-scroll.js?cb=16427"],
  "sourcesContent": ["/* global debounce */\n\n// Initialise and observe animate on scroll\nif (document.body.classList.contains('cc-animate-enabled')) {\n  if ('IntersectionObserver' in window && 'MutationObserver' in window) {\n    const initAnimateOnScroll = () => {\n      const animatableElems = document.querySelectorAll('[data-cc-animate]:not(.cc-animate-init)');\n      if (animatableElems.length > 0) {\n        const intersectionObserver = new IntersectionObserver((entries, observer) => {\n          entries.forEach((entry) => {\n            // In view and hasn't been animated yet\n            if (entry.isIntersecting && !entry.target.classList.contains('cc-animate-in')) {\n              entry.target.classList.add('cc-animate-in');\n              observer.unobserve(entry.target);\n            }\n          });\n        });\n\n        // Initialise and observe each animatable element\n        animatableElems.forEach((elem) => {\n          // Set the animation delay\n          if (elem.dataset.ccAnimateDelay) {\n            elem.style.animationDelay = elem.dataset.ccAnimateDelay;\n          }\n\n          // Set the animation duration\n          if (elem.dataset.ccAnimateDuration) {\n            elem.style.animationDuration = elem.dataset.ccAnimateDuration;\n          }\n\n          // Init the animation\n          if (elem.dataset.ccAnimate) {\n            elem.classList.add(elem.dataset.ccAnimate);\n          }\n\n          elem.classList.add('cc-animate-init');\n\n          // Watch for elem\n          intersectionObserver.observe(elem);\n        });\n      }\n    };\n\n    const aosMinWidth = getComputedStyle(document.documentElement)\n      .getPropertyValue('--aos-min-width') || '0';\n    const mq = window.matchMedia(`(min-width: ${aosMinWidth}px)`);\n    if (mq.matches) {\n      initAnimateOnScroll();\n\n      // Check for more animatable elements when the DOM mutates\n      document.addEventListener('DOMContentLoaded', () => {\n        const observer = new MutationObserver(debounce(initAnimateOnScroll, 250));\n        observer.observe(document.body, {\n          subtree: true,\n          childList: true\n        });\n      });\n    } else {\n      document.body.classList.remove('cc-animate-enabled');\n\n      try {\n        mq.addEventListener('change', (event) => {\n          if (event.matches) {\n            document.body.classList.add('cc-animate-enabled');\n            setTimeout(initAnimateOnScroll, 100);\n          }\n        });\n      } catch (e) {\n        // Legacy browsers (Safari < 14), rely on the animations being shown by the line above the\n        // try\n      }\n    }\n  } else {\n    // Reveal all the animations\n    document.body.classList.remove('cc-animate-enabled');\n  }\n}\n"],
  "mappings": "AAGA,GAAI,SAAS,KAAK,UAAU,SAAS,oBAAoB,EACvD,GAAI,yBAA0B,QAAU,qBAAsB,OAAQ,CACpE,MAAM,oBAAsB,IAAM,CAChC,MAAM,gBAAkB,SAAS,iBAAiB,yCAAyC,EAC3F,GAAI,gBAAgB,OAAS,EAAG,CAC9B,MAAM,qBAAuB,IAAI,qBAAqB,CAAC,QAAS,WAAa,CAC3E,QAAQ,QAAS,OAAU,CAErB,MAAM,gBAAkB,CAAC,MAAM,OAAO,UAAU,SAAS,eAAe,IAC1E,MAAM,OAAO,UAAU,IAAI,eAAe,EAC1C,SAAS,UAAU,MAAM,MAAM,EAEnC,CAAC,CACH,CAAC,EAGD,gBAAgB,QAAS,MAAS,CAE5B,KAAK,QAAQ,iBACf,KAAK,MAAM,eAAiB,KAAK,QAAQ,gBAIvC,KAAK,QAAQ,oBACf,KAAK,MAAM,kBAAoB,KAAK,QAAQ,mBAI1C,KAAK,QAAQ,WACf,KAAK,UAAU,IAAI,KAAK,QAAQ,SAAS,EAG3C,KAAK,UAAU,IAAI,iBAAiB,EAGpC,qBAAqB,QAAQ,IAAI,CACnC,CAAC,CACH,CACF,EAEM,YAAc,iBAAiB,SAAS,eAAe,EAC1D,iBAAiB,iBAAiB,GAAK,IACpC,GAAK,OAAO,WAAW,eAAe,WAAW,KAAK,EAC5D,GAAI,GAAG,QACL,oBAAoB,EAGpB,SAAS,iBAAiB,mBAAoB,IAAM,CACjC,IAAI,iBAAiB,SAAS,oBAAqB,GAAG,CAAC,EAC/D,QAAQ,SAAS,KAAM,CAC9B,QAAS,GACT,UAAW,EACb,CAAC,CACH,CAAC,MACI,CACL,SAAS,KAAK,UAAU,OAAO,oBAAoB,EAEnD,GAAI,CACF,GAAG,iBAAiB,SAAW,OAAU,CACnC,MAAM,UACR,SAAS,KAAK,UAAU,IAAI,oBAAoB,EAChD,WAAW,oBAAqB,GAAG,EAEvC,CAAC,CACH,MAAY,CAGZ,CACF,CACF,MAEE,SAAS,KAAK,UAAU,OAAO,oBAAoB",
  "names": []
}
