{
  "version": 3,
  "sources": ["/cdn/shop/t/3/assets/sticky-bar-toggle.js?cv=5520e92"],
  "sourcesContent": ["class StickyBarToggle extends HTMLElement {\n  constructor() {\n    super();\n    this.stickyBar = null;\n    this.targetSection = null;\n    this.observer = null;\n    this.init();\n  }\n  init() {\n    this.stickyBar = document.querySelector(\".sticky-bar-wrap\");\n    this.targetSection = document.querySelector(\"#product\");\n    if (!this.stickyBar || !this.targetSection) {\n      console.warn(\"StickyBarToggle: Required elements not found\");\n      return;\n    }\n    this.stickyBar.style.opacity = \"0\";\n    this.stickyBar.style.transition = \"opacity 0.3s ease-in-out\";\n    this.setupIntersectionObserver();\n  }\n  setupIntersectionObserver() {\n    if (!this.targetSection || !this.stickyBar) return;\n    const options = {\n      root: null,\n      rootMargin: \"0px\",\n      threshold: 0\n    };\n    this.observer = new IntersectionObserver((entries) => {\n      entries.forEach((entry) => {\n        if (this.stickyBar) {\n          if (entry.isIntersecting) {\n            this.stickyBar.style.opacity = \"0\";\n          } else {\n            this.stickyBar.style.opacity = \"1\";\n          }\n        }\n      });\n    }, options);\n    this.observer.observe(this.targetSection);\n  }\n  disconnectedCallback() {\n    if (this.observer) {\n      this.observer.disconnect();\n    }\n  }\n}\nif (!customElements.get(\"sticky-bar-toggle\")) {\n  customElements.define(\"sticky-bar-toggle\", StickyBarToggle);\n}\nexport {\n  StickyBarToggle,\n  StickyBarToggle as default\n};\n"],
  "mappings": "AAAA,MAAM,wBAAwB,WAAY,CACxC,aAAc,CACZ,MAAM,EACN,KAAK,UAAY,KACjB,KAAK,cAAgB,KACrB,KAAK,SAAW,KAChB,KAAK,KAAK,CACZ,CACA,MAAO,CAGL,GAFA,KAAK,UAAY,SAAS,cAAc,kBAAkB,EAC1D,KAAK,cAAgB,SAAS,cAAc,UAAU,EAClD,CAAC,KAAK,WAAa,CAAC,KAAK,cAAe,CAC1C,QAAQ,KAAK,8CAA8C,EAC3D,MACF,CACA,KAAK,UAAU,MAAM,QAAU,IAC/B,KAAK,UAAU,MAAM,WAAa,2BAClC,KAAK,0BAA0B,CACjC,CACA,2BAA4B,CAC1B,GAAI,CAAC,KAAK,eAAiB,CAAC,KAAK,UAAW,OAC5C,MAAM,QAAU,CACd,KAAM,KACN,WAAY,MACZ,UAAW,CACb,EACA,KAAK,SAAW,IAAI,qBAAsB,SAAY,CACpD,QAAQ,QAAS,OAAU,CACrB,KAAK,YACH,MAAM,eACR,KAAK,UAAU,MAAM,QAAU,IAE/B,KAAK,UAAU,MAAM,QAAU,IAGrC,CAAC,CACH,EAAG,OAAO,EACV,KAAK,SAAS,QAAQ,KAAK,aAAa,CAC1C,CACA,sBAAuB,CACjB,KAAK,UACP,KAAK,SAAS,WAAW,CAE7B,CACF,CACK,eAAe,IAAI,mBAAmB,GACzC,eAAe,OAAO,oBAAqB,eAAe,EAE5D,OACE,gBACA,mBAAmB",
  "names": []
}
