{
  "version": 3,
  "sources": ["/cdn/shop/t/92/assets/laley-card-hover-media.js?lly=laley-custom-20260921-epostsjekk-v860"],
  "sourcesContent": ["(() => {\n  'use strict';\n\n  // Card packshot media. The second (packshot) image ships inside an inert\n  // <template data-laley-card-hover-template>; this hydrates it into the live DOM for the desktop\n  // packshot-on-hover overlay. The <img> stays loading=lazy, so off-screen cards never fetch it.\n  // Re-runs after AJAX filtering / section reloads via the shared hooks. (The touch swipe track +\n  // 2-dot indicator were removed \u2014 the horizontal swipe conflicted with vertical page scroll.)\n\n  const hoverMedia = window.matchMedia('(hover: hover) and (min-width: 750px)');\n\n  const hydrateHoverMedia = (root = document) => {\n    // The matching CSS never exposes this layer on touch/mobile. Keeping the\n    // template inert there avoids an extra image node \u2014 and its potential lazy\n    // request \u2014 for every product card in the grid.\n    if (!hoverMedia.matches) return;\n    const scope = root && root.querySelectorAll ? root : document;\n    scope.querySelectorAll('[data-laley-card-hover-template]').forEach((template) => {\n      if (!(template instanceof HTMLTemplateElement)) return;\n      template.replaceWith(template.content.cloneNode(true));\n    });\n  };\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', () => hydrateHoverMedia(), { once: true });\n  } else {\n    hydrateHoverMedia();\n  }\n  document.addEventListener('shopify:section:load', (event) => hydrateHoverMedia(event.target));\n  document.addEventListener('laley:collection:updated', (event) => hydrateHoverMedia(event.target));\n  const handleHoverMediaChange = (event) => {\n    if (event.matches) hydrateHoverMedia();\n  };\n  if (hoverMedia.addEventListener) hoverMedia.addEventListener('change', handleHoverMediaChange);\n  else hoverMedia.addListener?.(handleHoverMediaChange);\n})();\n"],
  "mappings": "CAAC,IAAM,CACL,aAQA,MAAM,WAAa,OAAO,WAAW,uCAAuC,EAEtE,kBAAoB,CAAC,KAAO,WAAa,CAI7C,GAAI,CAAC,WAAW,QAAS,QACX,MAAQ,KAAK,iBAAmB,KAAO,UAC/C,iBAAiB,kCAAkC,EAAE,QAAS,UAAa,CACzE,oBAAoB,qBAC1B,SAAS,YAAY,SAAS,QAAQ,UAAU,EAAI,CAAC,CACvD,CAAC,CACH,EAEI,SAAS,aAAe,UAC1B,SAAS,iBAAiB,mBAAoB,IAAM,kBAAkB,EAAG,CAAE,KAAM,EAAK,CAAC,EAEvF,kBAAkB,EAEpB,SAAS,iBAAiB,uBAAyB,OAAU,kBAAkB,MAAM,MAAM,CAAC,EAC5F,SAAS,iBAAiB,2BAA6B,OAAU,kBAAkB,MAAM,MAAM,CAAC,EAChG,MAAM,uBAA0B,OAAU,CACpC,MAAM,SAAS,kBAAkB,CACvC,EACI,WAAW,iBAAkB,WAAW,iBAAiB,SAAU,sBAAsB,EACxF,WAAW,cAAc,sBAAsB,CACtD,GAAG",
  "names": []
}
