{
  "version": 3,
  "sources": ["/cdn/shop/t/134/assets/us-showcase-form.js?sk=1790380000"],
  "sourcesContent": ["/* US showcase runtime fixes \u2014 cached section HTML and hydrated widgets. */\n(function () {\n  var LOCATOR = '/pages/store-locator';\n  var US_HOME_TITLE = 'Sodakick | Real Fruit Soda with New Zealand M\\u0101nuka Honey';\n\n  function navLinkIsCommerce(link) {\n    var href = (link.getAttribute('href') || '').toLowerCase();\n    var title = (link.textContent || '').trim().toLowerCase();\n    return (\n      href.indexOf('/collections/') !== -1 ||\n      href.indexOf('fridge-club') !== -1 ||\n      href.indexOf('/cart') !== -1 ||\n      title.indexOf('shop soda') !== -1 ||\n      title === 'shop' ||\n      title.indexOf('subscription') !== -1 ||\n      title.indexOf('bundle') !== -1\n    );\n  }\n\n  function hideCommerceNavLinks() {\n    document.querySelectorAll('a.menu-list__link, .menu-drawer__menu a, .menu-drawer__navigation a').forEach(function (link) {\n      if (!navLinkIsCommerce(link)) return;\n      var item = link.closest('.menu-list__list-item, li, .menu-drawer__menu-item');\n      if (item) item.remove();\n      else link.remove();\n    });\n  }\n\n  function hideHeaderCommerceLeaks() {\n    document.querySelectorAll('.header-actions__find-in-store').forEach(function (el) {\n      el.remove();\n    });\n    document.querySelectorAll('anchored-popover-component.account-popover, .account-popover, account-drawer-component, .account-drawer').forEach(function (el) {\n      el.remove();\n    });\n    document.querySelectorAll('.account-button.header-actions__action').forEach(function (el) {\n      el.remove();\n    });\n  }\n\n  function fixCommerceCtas() {\n    var SUGGEST = '/pages/contact?topic=Suggest%20a%20store#contact-form';\n    var LINEUP = '/pages/find-your-flavor';\n    document.querySelectorAll('a, button').forEach(function (el) {\n      if (el.closest('.us-showcase-cta') || el.classList.contains('us-showcase-cta--card')) return;\n      if (el.closest('.ipage__cta-actions')) return;\n      if (el.closest('.product-card')) return;\n      if (el.closest('.pdp-us-sticky-cta')) return;\n      if (el.closest('.announcement-bar')) return;\n      var text = (el.textContent || '').trim();\n      var href = el.getAttribute('href') || '';\n      if (href.indexOf('/products/') !== -1) return;\n\n      /* Collection shop URLs \u2192 static lineup on US */\n      if (\n        el.tagName === 'A' &&\n        /\\/collections\\/sidekick-soda/.test(href) &&\n        !/store-locator|suggest|contact|find-your-flav/.test(href)\n      ) {\n        el.setAttribute('href', LINEUP);\n        if (/shop|see all|browse|flavou?rs|collection/i.test(text)) {\n          el.textContent = 'See the lineup';\n        }\n        return;\n      }\n\n      /* Strip leftover NZ shop / shipping CTAs that conflict with browse-only US */\n      if (\n        /^(shop (soda|now|sidekick)|shop all( soda| flavou?rs)?|free shipping|add to cart|buy now|pre-order now)\\b/i.test(\n          text\n        ) ||\n        (href.indexOf('/collections/') !== -1 && /shop/i.test(text))\n      ) {\n        if (el.tagName === 'A') el.setAttribute('href', SUGGEST);\n        el.textContent = 'Suggest a store';\n        return;\n      }\n\n      if (/^shop flavours$/i.test(text) || /^view product$/i.test(text) || /^find us in store$/i.test(text)) {\n        if (el.tagName === 'A') el.setAttribute('href', LOCATOR);\n        el.textContent = 'Find near you';\n      }\n    });\n  }\n\n  function applyUsShowcaseFixes() {\n    if (!document.body || !document.body.classList.contains('us-showcase')) return;\n\n    if (document.body.classList.contains('template-index') || window.location.pathname === '/') {\n      document.title = US_HOME_TITLE;\n    }\n\n    hideHeaderCommerceLeaks();\n    hideCommerceNavLinks();\n    fixCommerceCtas();\n\n    /* Homepage shelf: no mid-shelf Find CTA \u2014 cards use Explore \u2192 PDP only.\n       Find-near-you is owned by announcement/nav/hero + where-to-buy. */\n    document.querySelectorAll('.hp-fc-shopall').forEach(function (link) {\n      link.remove();\n    });\n\n    document.querySelectorAll('.product-card').forEach(function (card) {\n      var titleLink = card.querySelector('a[ref=\"productTitleLink\"], a.contents[href*=\"/products/\"]');\n      var pdpLink =\n        titleLink ||\n        card.querySelector('a[ref=\"productCardLink\"], a.product-card__link[href*=\"/products/\"]');\n      var cardCta = card.querySelector('.us-showcase-cta-row--card .product-card-showcase-cta, .us-showcase-cta--card');\n      if (!pdpLink) return;\n\n      /* Span CTA is visual chrome only; never promote it to a link. */\n      if (cardCta && cardCta.tagName === 'A') {\n        var span = document.createElement('span');\n        span.className = cardCta.className.replace(/\\bus-showcase-cta--card\\b/g, '').trim();\n        if (span.className.indexOf('product-card-showcase-cta') === -1) {\n          span.className = (span.className + ' product-card-showcase-cta product-card-showcase-cta--primary').trim();\n        }\n        span.setAttribute('aria-hidden', 'true');\n        span.textContent = 'Explore flavor';\n        cardCta.replaceWith(span);\n        cardCta = span;\n      } else if (cardCta) {\n        cardCta.removeAttribute('href');\n        cardCta.removeAttribute('tabindex');\n        cardCta.setAttribute('aria-hidden', 'true');\n        if (!/explore flavor/i.test((cardCta.textContent || '').trim())) {\n          cardCta.textContent = 'Explore flavor';\n        }\n      }\n\n      var title = (pdpLink.textContent || '').replace(/\\s+/g, ' ').trim();\n      if (title && !/^explore flavor/i.test(pdpLink.getAttribute('aria-label') || '')) {\n        pdpLink.setAttribute('aria-label', 'Explore flavor \u2014 ' + title);\n      }\n\n      card.querySelectorAll('a.product-card__link').forEach(function (overlay) {\n        if (!overlay.querySelector('.visually-hidden') && title) {\n          var hidden = document.createElement('span');\n          hidden.className = 'visually-hidden';\n          hidden.textContent = 'Explore flavor \u2014 ' + title;\n          overlay.appendChild(hidden);\n        }\n      });\n    });\n\n    document.querySelectorAll('.pack-card-meta__ingredients, .product-card-tagline').forEach(function (el) {\n      el.textContent = el.textContent.replace(/NZ honey/gi, 'New Zealand honey');\n    });\n\n    document.querySelectorAll('.pack-card-meta__bcc, .hp-fc-bcc-chip').forEach(function (el) {\n      el.remove();\n    });\n\n    document.querySelectorAll('.section-resource-list__content .button, .section-resource-list__content .button-secondary, .section-resource-list__content .us-showcase-cta--card').forEach(function (btn) {\n      if (btn.closest('.product-card')) return;\n      btn.remove();\n    });\n\n    document.querySelectorAll('product-price, .price, .compare-at-price, .product-unit-price').forEach(function (el) {\n      el.remove();\n    });\n\n    document.querySelectorAll('.bis-modal, .nl-popup, .bcc-cap-popup, .jdm-band').forEach(function (el) {\n      el.remove();\n    });\n\n    /* Judge.me \u2014 keep product preview badges + PDP reviews section widget.\n       Strip carousels / medals / leftover widgets elsewhere on US.\n       Always strip jdgm-server-jld so NZ-range AggregateRating cannot power\n       Google product stars on sodakick.com. */\n    document.querySelectorAll('script.jdgm-server-jld').forEach(function (el) {\n      el.remove();\n    });\n    document.querySelectorAll(\n      '.jdgm-widget, .jdgm-review-widget, .jdgm-prev-badge, .jdgm-preview-badge, .jdgm-cards-wrapper, .jdgm-videos-container, #judgeme_product_reviews, [id^=\"shopify-block-\"][id*=\"judge_me\"], .shopify-section:has(#judgeme_product_reviews), .shopify-section:has(.jdgm-review-widget)'\n    ).forEach(function (el) {\n      if (el.closest('[data-pdp-us-reviews]')) return;\n      if (\n        el.matches('.jdgm-preview-badge, .jdgm-prev-badge') ||\n        el.querySelector('.jdgm-preview-badge, .jdgm-prev-badge')\n      ) return;\n      el.remove();\n    });\n\n    document.querySelectorAll('shop-cart-sync, shopify-accelerated-checkout, shopify-accelerated-checkout-cart, #shopify-buyer-consent').forEach(function (el) {\n      el.remove();\n    });\n\n    document.querySelectorAll('.shopify-section.home-community-moments-section').forEach(function (el) {\n      if (!el.querySelector('.hcm')) el.remove();\n    });\n\n    document.querySelectorAll('.shopify-app-block:empty, .shopify-block.shopify-app-block').forEach(function (el) {\n      if (!el.textContent || !el.textContent.trim()) el.remove();\n    });\n\n    document.querySelectorAll('.add-to-cart-button, .quick-add, product-form-component').forEach(function (el) {\n      if (el.closest('.us-showcase-cta')) return;\n      el.remove();\n    });\n\n    document.querySelectorAll('quick-add-modal, cart-live-region, [data-cart-live-announcer]').forEach(function (el) {\n      el.remove();\n    });\n\n    /* App blocks / subscriptions / payment icons \u2014 strip on any US page, not only PDPs */\n    document.querySelectorAll(\n      'shopify-subscriptions-app-block, [class*=\"shopify_subscriptions\"], .payment-icons, [class*=\"ai_gen_block_381b12f\"], .pdp-limited-urgency'\n    ).forEach(function (el) {\n      if (el.closest('.us-showcase-cta')) return;\n      el.remove();\n    });\n\n    /* NZ-only PDP sections \u2014 remove from DOM so they never reach the a11y tree on US */\n    if (document.body.classList.contains('has-pdp-sticky-stack')) {\n      document.querySelectorAll(\n        '.shopify-section[id*=\"section_bVXh8R\"], .shopify-section[id*=\"pdp_standards_01\"], .shopify-section[id*=\"pdp_proof_strip\"], .shopify-section[id*=\"pdp_community_moments\"], .shopify-section[id*=\"pdp_press_band\"], .shopify-section.section-pdp-proof-strip, .shopify-section[id*=\"product_recommendations\"], .shopify-section[id*=\"bcc_good_questions\"], .shopify-section[id*=\"pdp_reviews_wm\"], .shopify-section[id*=\"17652710220a8f5be5\"]'\n      ).forEach(function (el) {\n        el.remove();\n      });\n\n      document.querySelectorAll('product-recommendations h2, .product-recommendations h2').forEach(function (h2) {\n        if (/more from/i.test(h2.textContent || '')) {\n          h2.textContent = 'Explore other flavors';\n        }\n      });\n    }\n  }\n\n  function boot() {\n    applyUsShowcaseFixes();\n    if (typeof MutationObserver !== 'undefined') {\n      var pending = false;\n      var observer = new MutationObserver(function () {\n        if (pending) return;\n        pending = true;\n        requestAnimationFrame(function () {\n          pending = false;\n          applyUsShowcaseFixes();\n        });\n      });\n      observer.observe(document.body, { childList: true, subtree: true });\n    }\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', boot);\n  } else {\n    boot();\n  }\n\n  document.addEventListener('shopify:section:load', applyUsShowcaseFixes);\n})();\n"],
  "mappings": "CACC,UAAY,CACX,IAAI,QAAU,uBACV,cAAgB,gEAEpB,SAAS,kBAAkB,KAAM,CAC/B,IAAI,MAAQ,KAAK,aAAa,MAAM,GAAK,IAAI,YAAY,EACrD,OAAS,KAAK,aAAe,IAAI,KAAK,EAAE,YAAY,EACxD,OACE,KAAK,QAAQ,eAAe,IAAM,IAClC,KAAK,QAAQ,aAAa,IAAM,IAChC,KAAK,QAAQ,OAAO,IAAM,IAC1B,MAAM,QAAQ,WAAW,IAAM,IAC/B,QAAU,QACV,MAAM,Q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