{
  "version": 3,
  "sources": ["/cdn/shop/t/18/assets/tee-popup-confirm-add-to-cart.js?caf_v=20260509-minicart-atc-settle-1"],
  "sourcesContent": ["// TeeInBlue cart-added flow.\n// Track Buy-now intent so we can let the SDK route the user to checkout itself.\nconst TEE_ATC_HANDOFF_DELAY_MS = 900;\n\ndocument.addEventListener('teeinblue-event-component-injected', function () {\n  globalThis.__tee_buy_now = false;\n  const buyNowButton = document.getElementById('teeBuynowButton');\n  if (buyNowButton && buyNowButton.dataset.popupBound !== 'true') {\n    buyNowButton.dataset.popupBound = 'true';\n    buyNowButton.addEventListener('click', function () {\n      globalThis.__tee_buy_now = true;\n    });\n  }\n});\n\nfunction getCartUrl() {\n  const root = globalThis.Shopify?.routes?.root || '/';\n  return `${root.endsWith('/') ? root : `${root}/`}cart`;\n}\n\nfunction hideTeeConfirmModal() {\n  const modal = document.getElementById('tee_add_to_cart_confirm');\n  if (modal) {\n    modal.style.display = 'none';\n  }\n}\n\nfunction deferTeeAtcHandoff(callback) {\n  globalThis.setTimeout(callback, TEE_ATC_HANDOFF_DELAY_MS);\n}\n\nfunction openMiniCartAfterTeeAdd() {\n  const miniCart = globalThis.CAFMiniCartDrawer;\n  if (!miniCart || typeof miniCart.fetchRefreshAndOpen !== 'function') return false;\n  if (typeof miniCart.canOpen === 'function' && !miniCart.canOpen()) return false;\n\n  miniCart.fetchRefreshAndOpen().then(function (opened) {\n    if (!opened) {\n      globalThis.location.href = getCartUrl();\n    }\n  }).catch(function () {\n    globalThis.location.href = getCartUrl();\n  });\n\n  return true;\n}\n\n// After the Tee customizer confirms an add, use the CAF mini-cart drawer as\n// the cart surface. If the drawer API is unavailable, keep /cart as fallback.\n// Buy Now still bypasses this \u2014 the SDK takes care of routing to checkout.\ndocument.addEventListener('teeinblue-event-after-cart-added', function () {\n  if (globalThis.__tee_buy_now) {\n    globalThis.__tee_buy_now = false;\n    return;\n  }\n\n  hideTeeConfirmModal();\n  deferTeeAtcHandoff(function () {\n    if (!openMiniCartAfterTeeAdd()) {\n      globalThis.location.href = getCartUrl();\n    }\n  });\n});\n"],
  "mappings": "AAEA,MAAM,yBAA2B,IAEjC,SAAS,iBAAiB,qCAAsC,UAAY,CAC1E,WAAW,cAAgB,GAC3B,MAAM,aAAe,SAAS,eAAe,iBAAiB,EAC1D,cAAgB,aAAa,QAAQ,aAAe,SACtD,aAAa,QAAQ,WAAa,OAClC,aAAa,iBAAiB,QAAS,UAAY,CACjD,WAAW,cAAgB,EAC7B,CAAC,EAEL,CAAC,EAED,SAAS,YAAa,CACpB,MAAM,KAAO,WAAW,SAAS,QAAQ,MAAQ,IACjD,MAAO,GAAG,KAAK,SAAS,GAAG,EAAI,KAAO,GAAG,IAAI,GAAG,MAClD,CAEA,SAAS,qBAAsB,CAC7B,MAAM,MAAQ,SAAS,eAAe,yBAAyB,EAC3D,QACF,MAAM,MAAM,QAAU,OAE1B,CAEA,SAAS,mBAAmB,SAAU,CACpC,WAAW,WAAW,SAAU,GAAwB,CAC1D,CAEA,SAAS,yBAA0B,CACjC,MAAM,SAAW,WAAW,kBAE5B,MADI,CAAC,UAAY,OAAO,SAAS,qBAAwB,YACrD,OAAO,SAAS,SAAY,YAAc,CAAC,SAAS,QAAQ,EAAU,IAE1E,SAAS,oBAAoB,EAAE,KAAK,SAAU,OAAQ,CAC/C,SACH,WAAW,SAAS,KAAO,WAAW,EAE1C,CAAC,EAAE,MAAM,UAAY,CACnB,WAAW,SAAS,KAAO,WAAW,CACxC,CAAC,EAEM,GACT,CAKA,SAAS,iBAAiB,mCAAoC,UAAY,CACxE,GAAI,WAAW,cAAe,CAC5B,WAAW,cAAgB,GAC3B,MACF,CAEA,oBAAoB,EACpB,mBAAmB,UAAY,CACxB,wBAAwB,IAC3B,WAAW,SAAS,KAAO,WAAW,EAE1C,CAAC,CACH,CAAC",
  "names": []
}
