{
  "version": 3,
  "sources": ["/cdn/shop/t/51/assets/dr-shop-all-toolbar.js?dr_version=20261126-1"],
  "sourcesContent": ["/* DR-CUSTOM: Keep the mobile Shop toolbar fixed below the live navigation. */\nif (!customElements.get(\"dr-shop-all-toolbar\")) {\n  class DrShopAllToolbar extends HTMLElement {\n    connectedCallback() {\n      this.root = this.closest(\"dr-shop-all\");\n      this.toolbar = this.root?.querySelector(\".dr-shop-all__toolbar\");\n      this.mobile = window.matchMedia(\"(max-width: 700px)\");\n      this.header = document.querySelector(\".m-header__mobile\");\n      if (!this.toolbar) return;\n\n      this.fixed = false;\n      this.placeholder = document.createElement(\"div\");\n      this.placeholder.className = \"dr-shop-all__toolbar-placeholder\";\n      this.placeholder.setAttribute(\"aria-hidden\", \"true\");\n      this.toolbar.before(this.placeholder);\n      this.naturalHeight = 0;\n      this.frame = 0;\n      this.update = this.update.bind(this);\n      this.schedule = this.schedule.bind(this);\n      this.handleViewport = this.handleViewport.bind(this);\n      this.mobile.addEventListener(\"change\", this.handleViewport);\n      window.addEventListener(\"scroll\", this.schedule, { passive: true });\n      window.addEventListener(\"resize\", this.handleViewport, { passive: true });\n      this.update();\n    }\n\n    disconnectedCallback() {\n      cancelAnimationFrame(this.frame);\n      this.mobile?.removeEventListener(\"change\", this.handleViewport);\n      window.removeEventListener(\"scroll\", this.schedule);\n      window.removeEventListener(\"resize\", this.handleViewport);\n      this.placeholder?.remove();\n      this.fixed = false;\n    }\n\n    schedule() {\n      if (this.frame) return;\n      this.frame = requestAnimationFrame(this.update);\n    }\n\n    handleViewport() {\n      this.naturalHeight = 0;\n      this.update();\n    }\n\n    update() {\n      cancelAnimationFrame(this.frame);\n      this.frame = 0;\n      if (!this.toolbar) return;\n\n      if (!this.mobile.matches) {\n        this.unfix();\n        return;\n      }\n\n      if (!this.naturalHeight) {\n        this.unfix();\n        const toolbarStyles = getComputedStyle(this.toolbar);\n        this.naturalHeight = Math.ceil(\n          this.toolbar.getBoundingClientRect().height +\n            (parseFloat(toolbarStyles.marginBottom) || 0)\n        );\n      }\n\n      const headerBottom = Math.max(0, this.header?.getBoundingClientRect().bottom || 0);\n      const normalTop = this.placeholder.getBoundingClientRect().top;\n      const shouldFix = normalTop <= headerBottom + 20;\n\n      if (this.fixed === shouldFix) return;\n      this.toolbar.style.setProperty(\"--dr-shop-toolbar-top\", `${headerBottom}px`);\n      if (shouldFix) this.fix();\n      else this.unfix();\n    }\n\n    fix() {\n      this.fixed = true;\n      this.placeholder.style.setProperty(\"--dr-shop-toolbar-height\", `${this.naturalHeight}px`);\n      this.placeholder.classList.add(\"is-active\");\n      this.toolbar.classList.add(\"dr-shop-all__toolbar--fixed\");\n    }\n\n    unfix() {\n      this.fixed = false;\n      this.toolbar?.classList.remove(\"dr-shop-all__toolbar--fixed\");\n      this.placeholder?.classList.remove(\"is-active\");\n      if (this.placeholder) this.placeholder.style.removeProperty(\"--dr-shop-toolbar-height\");\n    }\n  }\n\n  customElements.define(\"dr-shop-all-toolbar\", DrShopAllToolbar);\n}\n"],
  "mappings": "AACA,GAAI,CAAC,eAAe,IAAI,qBAAqB,EAAG,CAC9C,MAAM,yBAAyB,WAAY,CACzC,mBAAoB,CAClB,KAAK,KAAO,KAAK,QAAQ,aAAa,EACtC,KAAK,QAAU,KAAK,MAAM,cAAc,uBAAuB,EAC/D,KAAK,OAAS,OAAO,WAAW,oBAAoB,EACpD,KAAK,OAAS,SAAS,cAAc,mBAAmB,EACnD,KAAK,UAEV,KAAK,MAAQ,GACb,KAAK,YAAc,SAAS,cAAc,KAAK,EAC/C,KAAK,YAAY,UAAY,mCAC7B,KAAK,YAAY,aAAa,cAAe,MAAM,EACnD,KAAK,QAAQ,OAAO,KAAK,WAAW,EACpC,KAAK,cAAgB,EACrB,KAAK,MAAQ,EACb,KAAK,OAAS,KAAK,OAAO,KAAK,IAAI,EACnC,KAAK,SAAW,KAAK,SAAS,KAAK,IAAI,EACvC,KAAK,eAAiB,KAAK,eAAe,KAAK,IAAI,EACnD,KAAK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