{
  "version": 3,
  "sources": ["/cdn/shop/t/11/assets/giovento-blanks-touch-preview.js?local_rev=20260821_1430"],
  "sourcesContent": ["(() => {\n  const init = () => {\n    if (!window.matchMedia('(max-width: 749px)').matches) return;\n\n    document.querySelectorAll('.gio-blank-card__media').forEach((media) => {\n      if (media.dataset.gioTouchPreviewReady === 'true' || !media.querySelector('.gio-blank-card__image--secondary')) return;\n      media.dataset.gioTouchPreviewReady = 'true';\n\n      let start = null;\n      let gesture = null;\n      let ignoreNextClick = false;\n\n      media.addEventListener('touchstart', (event) => {\n        if (event.touches.length !== 1) return;\n        start = { x: event.touches[0].clientX, y: event.touches[0].clientY };\n        gesture = null;\n      }, { passive: true });\n\n      media.addEventListener('touchmove', (event) => {\n        if (!start || event.touches.length !== 1) return;\n        const x = event.touches[0].clientX - start.x;\n        const y = event.touches[0].clientY - start.y;\n        if (gesture || Math.max(Math.abs(x), Math.abs(y)) < 8) return;\n\n        // Only lock after one direction is clearly dominant. On phones a\n        // horizontal swipe often starts with a few vertical pixels; treating\n        // those pixels as scrolling made the second-to-first image change\n        // intermittently require several swipes.\n        if (Math.abs(x) > Math.abs(y) * 1.15) gesture = 'swipe';\n        if (Math.abs(y) > Math.abs(x) * 1.35) gesture = 'scroll';\n      }, { passive: true });\n\n      media.addEventListener('touchend', (event) => {\n        if (!start || event.changedTouches.length !== 1) {\n          start = null;\n          return;\n        }\n        const x = event.changedTouches[0].clientX - start.x;\n        const y = event.changedTouches[0].clientY - start.y;\n        start = null;\n        // The final touch position is the reliable source of truth on iOS,\n        // where a short, fast swipe can skip the decisive touchmove event.\n        const isHorizontalSwipe = Math.abs(x) >= 36 && Math.abs(x) > Math.abs(y) * 1.1;\n        if (gesture === 'scroll' || !isHorizontalSwipe) return;\n\n        media.closest('.gio-blank-card')?.classList.toggle('gio-blank-card--show-secondary');\n        ignoreNextClick = true;\n      }, { passive: true });\n\n      media.addEventListener('touchcancel', () => { start = null; gesture = null; }, { passive: true });\n      media.addEventListener('click', (event) => {\n        if (!ignoreNextClick) return;\n        event.preventDefault();\n        event.stopImmediatePropagation();\n        ignoreNextClick = false;\n      }, true);\n    });\n  };\n\n  document.addEventListener('DOMContentLoaded', init);\n  document.addEventListener('shopify:section:load', init);\n})();\n"],
  "mappings": "CAAC,IAAM,CACL,MAAM,KAAO,IAAM,CACZ,OAAO,WAAW,oBAAoB,EAAE,SAE7C,SAAS,iBAAiB,wBAAwB,EAAE,QAAS,OAAU,CACrE,GAAI,MAAM,QAAQ,uBAAyB,QAAU,CAAC,MAAM,cAAc,mCAAmC,EAAG,OAChH,MAAM,QAAQ,qBAAuB,OAErC,IAAI,MAAQ,KACR,QAAU,KACV,gBAAkB,GAEtB,MAAM,iBAAiB,aAAe,OAAU,CAC1C,MAAM,QAAQ,SAAW,IAC7B,MAAQ,CAAE,EAAG,MAAM,QAAQ,CAAC,EAAE,QAAS,EAAG,MAAM,QAAQ,CAAC,EAAE,OAAQ,EACnE,QAAU,KACZ,EAAG,CAAE,QAAS,EAAK,CAAC,EAEpB,MAAM,iBAAiB,YAAc,OAAU,CAC7C,GAAI,CAAC,OAAS,MAAM,QAAQ,SAAW,EAAG,OAC1C,MAAM,EAAI,MAAM,QAAQ,CAAC,EAAE,QAAU,MAAM,EACrC,EAAI,MAAM,QAAQ,CAAC,EAAE,QAAU,MAAM,EACvC,SAAW,KAAK,IAAI,KAAK,IAAI,CAAC,EAAG,KAAK,IAAI,CAAC,CAAC,EAAI,IAMhD,KAAK,IAAI,CAAC,EAAI,KAAK,IAAI,CAAC,EAAI,OAAM,QAAU,SAC5C,KAAK,IAAI,CAAC,EAAI,KAAK,IAAI,CAAC,EAAI,OAAM,QAAU,UAClD,EAAG,CAAE,QAAS,EAAK,CAAC,EAEpB,MAAM,iBAAiB,WAAa,OAAU,CAC5C,GAAI,CAAC,OAAS,MAAM,eAAe,SAAW,EAAG,CAC/C,MAAQ,KACR,MACF,CACA,MAAM,EAAI,MAAM,eAAe,CAAC,EAAE,QAAU,MAAM,EAC5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