{
  "version": 3,
  "sources": ["/cdn/shop/t/27/assets/footer.js?glv=1792798980"],
  "sourcesContent": ["/**\n *  @class\n *  @function ThemeFooter\n */\n\nif (!customElements.get('theme-footer')) {\n  class ThemeFooter extends HTMLElement {\n    constructor() {\n      super();\n    }\n    connectedCallback() {\n      this.animations_enabled = document.body.classList.contains('animations-true') && typeof gsap !== 'undefined';\n\n      if (document.body.classList.contains('template-product-quick-view')) {\n        this.animations_enabled = false;\n      }\n      if (!this.animations_enabled) {\n        return;\n      }\n      this.content = document.getElementById('main-content');\n      this.wrapper = document.getElementById('wrapper');\n      this.footer_bg = window.getComputedStyle(document.documentElement).getPropertyValue('--color-footer-bg');\n      this.radius = window.getComputedStyle(document.documentElement).getPropertyValue('--block-border-radius');\n      this.setupAnimations();\n    }\n    setupAnimations() {\n      let mm = gsap.matchMedia();\n      this.wrapper.style.backgroundColor = this.footer_bg;\n      mm.add({\n        // set up any number of arbitrarily-named conditions. The function below will be called when ANY of them match.\n        isDesktop: `(min-width: 768px)`,\n        reduceMotion: \"(prefers-reduced-motion: reduce)\"\n      }, (context) => {\n\n        // context.conditions has a boolean property for each condition defined above indicating if it's matched or not.\n        let {\n          isDesktop,\n          isMobile,\n          reduceMotion\n        } = context.conditions;\n\n        gsap.to(this.content, {\n          clipPath: !isDesktop || reduceMotion ? `inset(0px 0% 0% round 0` : `inset(0px 4% 0% round ${this.radius})`,\n          duration: 0.5,\n          inherit: false,\n          ease: \"none\",\n          scrollTrigger: {\n            trigger: this,\n            fastScrollEnd: true,\n            scrub: 1,\n            start: () => `top bottom`,\n            end: () => `bottom bottom`\n          }\n        });\n      });\n\n    }\n  }\n  customElements.define('theme-footer', ThemeFooter);\n}"],
  "mappings": "AAKA,GAAI,CAAC,eAAe,IAAI,cAAc,EAAG,CACvC,MAAM,oBAAoB,WAAY,CACpC,aAAc,CACZ,MAAM,CACR,CACA,mBAAoB,CAClB,KAAK,mBAAqB,SAAS,KAAK,UAAU,SAAS,iBAAiB,GAAK,OAAO,KAAS,IAE7F,SAAS,KAAK,UAAU,SAAS,6BAA6B,IAChE,KAAK,mBAAqB,IAEvB,KAAK,qBAGV,KAAK,QAAU,SAAS,eAAe,cAAc,EACrD,KAAK,QAAU,SAAS,eAAe,SAAS,EAChD,KAAK,UAAY,OAAO,iBAAiB,SAAS,eAAe,EAAE,iBAAiB,mBAAmB,EACvG,KAAK,OAAS,OAAO,iBAAiB,SAAS,eAAe,EAAE,iBAAiB,uBAAuB,EACxG,KAAK,gBAAgB,EACvB,CACA,iBAAkB,CAChB,IAAI,GAAK,KAAK,WAAW,EACzB,KAAK,QAAQ,MAAM,gBAAkB,KAAK,UAC1C,GAAG,IAAI,CAEL,UAAW,qBACX,aAAc,kCAChB,EAAI,SAAY,CAGd,GAAI,CACF,UACA,SACA,YACF,EAAI,QAAQ,WAEZ,KAAK,GAAG,KAAK,QAAS,CACpB,SAAU,CAAC,WAAa,aAAe,0BAA4B,yBAAyB,KAAK,MAAM,IACvG,SAAU,GACV,QAAS,GACT,KAAM,OACN,cAAe,CACb,QAAS,KACT,cAAe,GACf,MAAO,EACP,MAAO,IAAM,aACb,IAAK,IAAM,eACb,CACF,CAAC,CACH,CAAC,CAEH,CACF,CACA,eAAe,OAAO,eAAgB,WAAW,CACnD",
  "names": []
}
