{
  "version": 3,
  "sources": ["/cdn/shop/t/11/assets/article-product-offer-discount-shipping-v2.js?wahup_discover_v2=178316"],
  "sourcesContent": ["(() => {\n  const applyOfferCopy = () => {\n    const root = document.querySelector('[data-article-product-offer]');\n    if (!root) return;\n\n    if (!document.getElementById('wahup-article-offer-mobile-v2-style')) {\n      const style = document.createElement('style');\n      style.id = 'wahup-article-offer-mobile-v2-style';\n      style.textContent = `\n        @media screen and (max-width: 749px) {\n          .article-product-offer__media {\n            width: 100% !important;\n            height: auto !important;\n            aspect-ratio: 1 / 1 !important;\n          }\n\n          .article-product-offer__track {\n            height: 100% !important;\n          }\n\n          .article-product-offer__eyebrow {\n            display: none !important;\n          }\n        }\n      `;\n      document.head.appendChild(style);\n    }\n\n    const formatShippingDate = (daysFromNow) => {\n      const date = new Date();\n      date.setDate(date.getDate() + daysFromNow);\n      return new Intl.DateTimeFormat('en-US', { month: 'short', day: 'numeric' }).format(date);\n    };\n\n    const shippingStart = formatShippingDate(3);\n    const shippingEnd = formatShippingDate(7);\n\n    root.querySelectorAll('.article-product-offer__shipping-badge').forEach((element) => {\n      element.textContent = 'Code WELCOME10';\n    });\n    root.querySelectorAll('.article-product-offer__shipping-line').forEach((element) => {\n      element.innerHTML = `<strong>10% off</strong> first order \u00B7 Delivery <strong>${shippingStart} - ${shippingEnd}</strong>`;\n    });\n    root.querySelectorAll('.article-product-offer__launcher-shipping').forEach((element) => {\n      element.textContent = 'WELCOME10: 10% off';\n    });\n    root.querySelectorAll('.article-product-offer__view').forEach((link) => {\n      link.href = 'https://wahup.com/collections/new-arrivals';\n      link.target = '_blank';\n      link.rel = 'noopener noreferrer';\n      link.dataset.offerDiscoverLink = '';\n      const label = link.querySelector('span');\n      if (label) label.textContent = 'Discover More';\n    });\n  };\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', applyOfferCopy, { once: true });\n  } else {\n    applyOfferCopy();\n  }\n\n  window.setTimeout(applyOfferCopy, 500);\n  window.setTimeout(apply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