PageSourceSearch

https://drinkwildwonder.com/cdn/shop/t/74/assets/custom.js?v=58039693423575579711787335319

js drinkwildwonder.com collected 2026-10-03 19:51:37 UTC 26,840 bytes, 2 lines download raw bytes

1(function(){function patchProductUpdatePrice(){if(typeof theme<"u"&&theme.Product&&theme.Product.prototype){const originalUpdatePrice=theme.Product.prototype.updatePrice;originalUpdatePrice&&!originalUpdatePrice._patched&&(theme.Product.prototype.updatePrice=function(evt){if(!(!this||!this.cache||this.cache.price===null||this.cache.price===void 0))try{return originalUpdatePrice.apply(this,arguments)}catch{return}},theme.Product.prototype.updatePrice._patched=!0,originalUpdatePrice&&(originalUpdatePrice._patched=!0),console.log("Product.updatePrice patched successfully"))}}patchProductUpdatePrice(),document.readyState==="loading"&&document.addEventListener("DOMContentLoaded",patchProductUpdatePrice),setTimeout(patchProductUpdatePrice,0),setTimeout(patchProductUpdatePrice,50),setTimeout(patchProductUpdatePrice,200),setTimeout(patchProductUpdatePrice,500),window.addEventListener("load",patchProductUpdatePrice)})(),$(document).ready(function(){$(document).on("click",'a[href="#localdelivery"], a[href*="#localdelivery"]',function(e){e.preventDefault(),$("#accelpay-address-modal, #accelpay-overlay").addClass("active")}),setTimeout(function(){$(".featured_product .rc_radio__onetime").trigger("click")},600),$(".megamenu_title .megamenu_title_inner a").hover(function(){var title_id=$(this).closest(".megamenu_title_inner").attr("id");$(".megamenu_title .megamenu_title_inner").removeClass("active-link"),$("#"+title_id).addClass("active-link"),$(".megamenu_main .megamenu_item_wrapper").css({opacity:"0",transform:"translateY(60px)",display:"none"}),$(".megamenu_main ."+title_id).css({opacity:"1",transform:"none",display:"block"})}),$(".js_animation_bar").marquee({duration:3e4,gap:10,delayBeforeStart:0,direction:"left",duplicated:!0,startVisible:!0}),$(".tweleve_variant_items input").click(function(){var price_val=$(this).data("price"),input_qty=$(this).data("qty");$(this).closest(".common_right").find("#ProductPrice").html(price_val);var get_type=$(this).closest("form").find("#rc_radio_options .rc_block__type").find("input:checked").val();if(discount=document.querySelector(".single-option-radio").querySelector("input:checked").getAttribute("discount"),discount||(value=$(this)[0].form.querySelector("#rc_shipping_interval_frequency").value,value==2?discount=15:(value==4||value==8)&&(discount=12)),get_price=Number(price_val.replace(/[^0-9.-]+/g,""))*(1-discount/100),one_time_price=Number(price_val.replace(/[^0-9.-]+/g,"")),String(get_type)=="onetime"){console.log("setting 1 time price"),$(".product_templ_price .original_prices").html(" "),$(this).closest(".common_right").find(".original_prices").html(" "),$(".product_templ_price .append_price").html(" "),$(this).closest(".common_right").find(".append_price").html(theme.Currency.formatMoney(one_time_price*100,theme.strings.moneyFormat));var one_time_p=parseFloat(one_time_price*10/100),one_time_price_original=parseFloat(one_time_price-one_time_p);$(".featured_product .original_prices").html(theme.Currency.formatMoney(one_time_price*100,theme.strings.moneyFormat)),$(".featured_product .append_price").html(theme.Currency.formatMoney(one_time_price_original*100,theme.strings.moneyFormat))}else console.log("setting sub price"),$(".product_templ_price .original_prices").html(" "),$(this).closest(".common_right").find(".original_prices").html(theme.Currency.formatMoney(one_time_price*100,theme.strings.moneyFormat)),$(".product_templ_price .append_price").html(" "),$(this).closest(".common_right").find(".append_price").html(theme.Currency.formatMoney(get_price*100,theme.strings.moneyFormat)),$(".featured_product .original_prices").html(theme.Currency.formatMoney(one_time_price*100,theme.strings.moneyFormat)),$(".featured_product .append_price").html(theme.Currency.formatMoney(get_price*100,theme.strings.moneyFormat))}),$("#rc_radio_options .rc_block__type input").click(function(){console.log("turning off stuff"),console.log($(this))}),$("#rc_radio_options .rc_block__type input").click(function(){var input_html=$(this).next().find(".rc_price").data("dprice"),input_gethtml=$(this).closest("form").find(".rc_block__type").find("#rc_price_onetime").data("dprice"),get_type=$(this).parent(".rc_block__type").find("input:checked").val(),selected_input=$(this).closest("form").find(".tweleve_variant_items input:checked").data("qty"),final_subs_price=parseFloat(selected_input*input_html),one_time_subscribe=parseFloat(selected_input*input_gethtml),append_price_color=!1,frequency_selected=$("#rc_shipping_interval_frequency").val();if(get_type=="autodeliver"){$(".product_templ_price .original_prices").html(theme.Currency.formatMoney(one_time_subscribe,theme.strings.moneyFormat)),$(this).closest(".common_right").find(".original_prices").html(theme.Currency.formatMoney(one_time_subscribe,theme.strings.moneyFormat)),$(".featured_product .original_prices").html(theme.Currency.formatMoney(one_time_subscribe,theme.strings.moneyFormat)).removeClass("remove_cross"),$(".featured_product .append_price").html(theme.Currency.formatMoney(final_subs_price,theme.strings.moneyFormat)),$(".featured_product .discount_badge.one-time").addClass("hide"),$(".featured_product .discount_badge.subscribe").removeClass("hide"),frequency_selected==2?$(".add_discount_text").html("15"):$(".add_discount_text").html("12"),$(this).siblings(".rc_label__autodeliver").find(".variant_price_single .append_price").removeClass("hide"),$(this).closest("#rc_radio_options").find(".rc_label__onetime .append_price").addClass("hide");var val=$(this).closest("form").find("#rc_shipping_interval_frequency").val(),sp="1186693309";val==2?sp="1186660541":val==4?sp="1186693309":val==8&&(sp="1186758845"),$(this).closest("form").find('input[name="selling_plan"]').attr("value",sp),$(".try_featured_product .product-block--price.try_product_main_price").css("display","none"),$(".try_featured_product .product-block--price.try_product_subscribe_price").css("display","block")}else{$(this).prop("checked",!0),$(this).attr("checked","checked");var one_time_main=parseFloat(selected_input*input_html),one_time_p=parseFloat(one_time_main*10/100),one_time_price2=parseFloat(one_time_main-one_time_p);$(".product_templ_price .original_prices").html(" "),$(".featured_product .append_price").html(theme.Currency.formatMoney(one_time_price2,theme.strings.moneyFormat)),$(".featured_product .discount_badge.one-time").removeClass("hide"),$(".featured_product .discount_badge.subscribe").addClass("hide"),$(".add_discount_text").html("10"),$(".featured_product .original_prices").html(theme.Currency.formatMoney(final_subs_price,theme.strings.moneyFormat)),$(this).closest(".common_right").find(".original_prices").html(" "),append_price_color=!0,$(this).siblings(".rc_label__onetime").find(".variant_price_single .append_price").removeClass("hide"),$(this).closest("#rc_radio_options").find(".rc_label__autodeliver .append_price").addClass("hide"),$(this).closest("form").find('input[name="selling_plan"]').attr("value",""),$(".try_featured_product .product-block--price.try_product_subscribe_price").css("display","none"),$(".try_featured_product .product-block--price.try_product_main_price").css("display","block")}$(".product_templ_price .append_price").html(theme.Currency.formatMoney(final_subs_price,theme.strings.moneyFormat)).css("color","#E21B79"),$(this).closest(".common_right").find(".append_price").html(theme.Currency.formatMoney(final_subs_price,theme.strings.moneyFormat)).css("color","#E21B79"),append_price_color==!0&&($(this).closest(".common_right").find(".append_price").css("color","#042181"),$(this).closest(".product_templ_price").find(".append_price").css("color","#042181"))}),$(".tweleve_addtocart").click(function(e){var ad_flag=!1;
1$(this).hasClass("mocktail_ad")&&(ad_flag=!0),console.log("prevent default 1"),e.preventDefault();var item_qty=$(this).closest("form").find(".tweleve_variant_items").find("input:checked").data("qty");$(this).closest("form").append('<input type="hidden" value="'+item_qty+'" name="quantity">');var button_this=$(this),theForm=$(this).closest("form");$.ajax({type:"POST",url:"/cart/add.js",dataType:"json",data:theForm.serialize(),beforeSend:function(){button_this.addClass("btn--loading")},success:function(data){if(button_this.removeClass("btn--loading"),ad_flag==!0)$(".featured_product .rc_block__type input:checked").val()=="onetime"?window.location.href="/checkout?discount=VARIETYPACK10":window.location.href="/checkout";else{var drawer_new=new theme.CartDrawer;drawer_new.open(),$(".collection_product_list .product_popup").addClass("content_hidden"),$(".overlay").addClass("hide")}}})}),$(".mocktil_set_pro").click(function(e){console.log("prevent default 2"),e.preventDefault();var button_this=$(this),form_id=$(this).data("vid");$.ajax({type:"POST",url:"/cart/add.js",dataType:"json",data:{quantity:1,id:form_id},beforeSend:function(){button_this.addClass("btn--loading")},success:function(data){button_this.removeClass("btn--loading");var drawer_new=new theme.CartDrawer;drawer_new.open()}})}),$("body").on("touchstart click",".ajaxcart__checkout",function(e){console.log("prevent default 3"),e.preventDefault();var token=reChargeGetCookie("cart");$("body").find(".ajaxcart__inner .ajaxcart__product").hasClass("subcribe_product")||$("body").find(".cart__products .cart__product").hasClass("subcribe_product")?reChargeBuildCheckoutURL():window.location.href="/checkout"});var wave_text_state=new WeakMap,wave_text_active=new Set,wave_scroll_top=$(window).scrollTop(),wave_scroll_frame=null,wave_motion_frame=null,wave_motion_time=null,wave_reduce_motion=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function animate_wave_text(timestamp){var elapsed=wave_motion_time===null?16:Math.min(timestamp-wave_motion_time,64),blend=1-Math.exp(-elapsed/70);wave_motion_time=timestamp,wave_text_active.forEach(function(svg){var state=wave_text_state.get(svg);if(!state||!document.documentElement.contains(svg)){wave_text_active.delete(svg);return}var distance=state.target-state.current;Math.abs(distance)<=.05?(state.current=state.target,wave_text_active.delete(svg)):state.current+=distance*blend,state.textPath.setAttribute("startOffset",state.current.toFixed(3))}),wave_text_active.size?wave_motion_frame=requestAnimationFrame(animate_wave_text):(wave_motion_frame=null,wave_motion_time=null)}function queue_wave_text_motion(svg,textPath,scrollDelta){var state=wave_text_state.get(svg);if(!state){var initialOffset=Number(textPath.getAttribute("startOffset"));state={current:Number.isFinite(initialOffset)?initialOffset:-1e3,target:Number.isFinite(initialOffset)?initialOffset:-1e3,textPath},wave_text_state.set(svg,state)}state.target-=scrollDelta,wave_text_active.add(svg),wave_motion_frame===null&&(wave_motion_frame=requestAnimationFrame(animate_wave_text))}$(window).scroll(function(){wave_scroll_frame===null&&(wave_scroll_frame=requestAnimationFrame(function(){var docViewTopv=$(window).scrollTop(),docViewBottomv=docViewTopv+$(window).height(),scrollDelta=docViewTopv-wave_scroll_top;wave_scroll_top=docViewTopv,wave_scroll_frame=null,!(!scrollDelta||wave_reduce_motion)&&$(".curve_text_svg").each(function(){var elemTopv=$(this).offset().top,elemBottomv=elemTopv+$(this).height();if(elemTopv<=docViewBottomv&&elemBottomv>=docViewTopv){var textPath=$(this).find(".textPath_curve").get(0);if(!textPath)return;queue_wave_text_motion(this,textPath,scrollDelta)}})}))}),$(".product_accordion .acco_icon  ").click(function(){$(this).closest(".product_accordion_content").find(".ingredients").slideToggle("slow"),$(this).closest(".product_accordion_content").find(".product_below_content_image").slideToggle("slow"),$(this).closest(".product_accordion_content").find(".acco_icon .icon_plus").toggleClass("hide"),$(this).closest(".product_accordion_content").find(".acco_icon .icon_minus").toggleClass("hide")}),$(".learn_faq_title_icon").click(function(){var accordion=$(this).parent().hasClass("active_tab");accordion?($(this).parent(".learn_faq_title_answer_cover").removeClass("active_tab"),$(this).next().slideUp(),$(this).find(".content_acco_icon .icon_minus").addClass("hide"),$(this).find(".content_acco_icon .icon_plus").removeClass("hide")):($(this).next().slideDown(),$(this).parent(".learn_faq_title_answer_cover").addClass("active_tab"),$(this).find(".content_acco_icon .icon_minus").removeClass("hide"),$(this).find(".content_acco_icon .icon_plus").addClass("hide"))}),$(".subs_product_radio .subs_product_option_radio").change(function(){console.log("clicky");var subs_value=$(this).val();$(".rc_label__deliver_every .rc_select option").removeAttr("selected"),$(".rc_label__deliver_every .rc_select option").each(function(){$(this).val()==subs_value&&$(this).attr("selected","selected")})}),$(function(){$('.collection_product_list .collection_product_list_header input[type="radio"]').change(function(){var radio_id=$(this).attr("id");$(".collection_product_list .product_block_wrapper").addClass("content_hidden"),$(".collection_product_list ."+radio_id).removeClass("content_hidden")});var collectionMatch=window.location.pathname.toLowerCase().match(/collections\/([^\/?#]+)/);if(collectionMatch){var activeTab=$("#"+collectionMatch[1]);activeTab.length&&activeTab.prop("checked",!0).trigger("change")}}),$(".collection_product_list .popup_open_btn").click(function(){var product_id=$(this).attr("id");$(".collection_product_list .product_popup").addClass("content_hidden"),$(".collection_product_list ."+product_id).removeClass("content_hidden"),$(".overlay").removeClass("hide")}),$(".overlay, .collection_product_list .popup_close_btn").click(function(){$(".collection_product_list .product_popup").addClass("content_hidden"),$(".overlay").addClass("hide")}),$(".site-nav--has-dropdown, .megamenu ").hover(function(){$(this).find(".site-nav__link--has-dropdown svg").css("transform","rotate(0deg)"),$(this).find(".megamenu").css("opacity")=="0"&&$(this).find(".site-nav__link--has-dropdown svg").css("transform","rotate(180deg)")}),$(".slideshow-wrapper .link_to_next_section_btn").click(function(){var cls=$(this).closest(".shopify-section").next().offset().top;$("html, body").animate({scrollTop:cls},"slow")});function reChargeGetCookie(name){return(document.cookie.match("(^|; )"+name+"=([^;]*)")||0)[2]}function reChargeReDirection(redirect_url){window.location.href=redirect_url}function reChargeBuildCheckoutURL(){var myshopify_domain="drinkwildwonder.myshopify.com",token=reChargeGetCookie("cart");try{var ga_linker=ga.getAll()[0].get("linkerParam")}catch{var ga_linker=""}var customer_param="{% if customer %}customer_id={{ customer.id }}&customer_email={{ customer.email }}{% endif %}",checkout_url="https://checkout.rechargeapps.com/r/checkout?myshopify_domain="+myshopify_domain+"&cart_token="+token+"&"+ga_linker+"&"+customer_param;window.location.href=checkout_url}$("body").on("touchstart click",".ajaxcart__checkout",function(e){console.log("prevent default 4"),e.preventDefault();var token=reChargeGetCookie("cart");$("body").find(".drawer__contents .cart__item").hasClass("subcribe_product")?reChargeBuildCheckoutURL():window.location.href="/checkout"}),$(".product_list .product_list_image_wrapper ").each(function(){var pro_class_act=$(this).hasClass("active");pro_class_act&&$(this).parents(".product_list").find(".product_list_title_wrapper .product_list_pro_title").css("display","inline-block")}),$(".custom_popup_btn, .announcement_popup_open").click(function(e){e.preventDefault(),$("html").addClass("modal-open custom_modal_open"),$(".custom_popup").addClass("modal--is-active")}),$(".custom_popup .js-modal-close").click(function(){$("html").removeClass("modal-open custom_modal_open"),$("html").addClass("modal-closing"),$(".custom_popup").removeClass("modal--is-active"),$(".custom_popup").addClass("modal--is-closing"),setTimeout(function(){$("html").removeClass("modal-closing"),$(".custom_popup").removeClass("modal--is-closing")},500)}),$("body").on("click",'.homepage_banner_main .homepage_banner_scroll_bt
1n[href^="#"]',function(event){event.preventDefault(),$("html, body").animate({scrollTop:$($.attr(this,"href")).offset().top-100},500)}),$(".product_shark_addtocart").click(function(e){e.preventDefault();var v_id=$(this).data("vid");if(v_id){var button_this=$(this);if(!button_this.hasClass("btn--loading")){button_this.addClass("btn--loading");var miniCart=window.Alpine&&Alpine.store&&Alpine.store("miniCart"),addPromise=miniCart?miniCart.addToCart(v_id,1):fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:v_id,quantity:1}]})});Promise.resolve(addPromise).finally(function(){button_this.removeClass("btn--loading"),typeof window.trackAddedToCart=="function"&&window.trackAddedToCart()})}}}),$(".custom_product__quantity .js-qty__adjust").click(function(){var p_price=$(this).data("qty-price")||$(this).data("product-price"),p_qty=$(this).closest(".js-qty__wrapper").find(".js-qty__num").val(),new_price=p_price*p_qty;$(".page_product .product-single__meta .product_original_price").html(theme.Currency.formatMoney(new_price,theme.strings.moneyFormat));var p_compareat_price=$(this).data("product-compareat-price"),new_comapreat_price=p_compareat_price*p_qty;$(".page_product .product-single__meta .product__price--compare").html(theme.Currency.formatMoney(new_comapreat_price,theme.strings.moneyFormat)),$(".page_product .product-single__meta .shark_tank_bundle_discount_price").html(theme.Currency.formatMoney(new_comapreat_price,theme.strings.moneyFormat))});function updateVariantPriceSingle(variant){if(!variant)return;document.querySelectorAll(".variant_price_single:not(.js-onetime-price):not(.js-autodeliver-price)").forEach(element=>{if(element.querySelector(".js-onetime-price, .js-autodeliver-price"))return;const originalPricesEl=element.querySelector(".original_prices");originalPricesEl?originalPricesEl.textContent=theme.Currency.formatMoney(variant.price,theme.strings.moneyFormat):element.querySelector(".append_price")||(element.textContent=theme.Currency.formatMoney(variant.price,theme.strings.moneyFormat)),variant.compare_at_price>variant.price?element.classList.add("on-sale"):element.classList.remove("on-sale")}),document.querySelectorAll(".variant_price_single.js-onetime-price").forEach(element=>{const originalPricesEl=element.querySelector(".original_prices");originalPricesEl?originalPricesEl.textContent=theme.Currency.formatMoney(variant.price,theme.strings.moneyFormat):element.querySelector(".append_price")||(element.textContent=theme.Currency.formatMoney(variant.price,theme.strings.moneyFormat)),variant.compare_at_price>variant.price?element.classList.add("on-sale"):element.classList.remove("on-sale")})}document.addEventListener("variantPriceChange",function(event){event.detail&&event.detail.variant&&updateVariantPriceSingle(event.detail.variant)},!0),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('[data-section-type="product"]').forEach(section=>{section.addEventListener("variantPriceChange",function(event){if(event.detail&&event.detail.variant){const variant=event.detail.variant;section.querySelectorAll(".variant_price_single:not(.js-onetime-price):not(.js-autodeliver-price)").forEach(element=>{if(element.querySelector(".js-onetime-price, .js-autodeliver-price"))return;const originalPricesEl=element.querySelector(".original_prices");originalPricesEl?originalPricesEl.textContent=theme.Currency.formatMoney(variant.price,theme.strings.moneyFormat):element.querySelector(".append_price")||(element.textContent=theme.Currency.formatMoney(variant.price,theme.strings.moneyFormat)),variant.compare_at_price>variant.price?element.classList.add("on-sale"):element.classList.remove("on-sale")}),section.querySelectorAll(".variant_price_single.js-onetime-price").forEach(element=>{const originalPricesEl=element.querySelector(".original_prices");originalPricesEl?originalPricesEl.textContent=theme.Currency.formatMoney(variant.price,theme.strings.moneyFormat):element.querySelector(".append_price")||(element.textContent=theme.Currency.formatMoney(variant.price,theme.strings.moneyFormat)),variant.compare_at_price>variant.price?element.classList.add("on-sale"):element.classList.remove("on-sale")})}})})}),$(".featured-flavors_main .popup_open_btn").click(function(){var product_id=$(this).attr("id");$(".featured-flavors_main ."+product_id).removeClass("content_hidden"),$(".overlay").removeClass("hide")}),$(".overlay, .featured-flavors_main .popup_close_btn").click(function(){$(".featured-flavors_main .product_popup").addClass("content_hidden"),$(".overlay").addClass("hide")}),$(".featured-flavors-addtocart-btn").click(function(e){e.preventDefault();var quantity=1,variant_id=$(this).attr("id");$.ajax({type:"POST",url:"/cart/add.js",data:{quantity,id:variant_id},dataType:"json",success:function(){window.location.href="/checkout"}})}),$(".featured_product #rc_shipping_interval_frequency").change(function(){setTimeout(function(){$("#rc_shipping_interval_frequency").val()==2?($(".discount_badge.subscribe span").html("15"),$(".add_discount_text").html("15")):($(".discount_badge.subscribe span").html("12"),$(".add_discount_text").html("12"))},100)}),$(".announcement_animation").marquee({duration:2e4,gap:200,delayBeforeStart:0,direction:"left",duplicated:!0,startVisible:!0}),$(".js-purchase-type").on("input",e=>
1{const form=e.target.closest(".js-product-form");form.querySelectorAll(".js-selling-plan-group").forEach(el=>{e.target.closest(".js-selling-plan-group").isSameNode(el)?el.classList.add("active"):el.classList.remove("active")}),e.target.value==="subscribe"?form.querySelector(".js-selling-plan").setAttribute("name","selling_plan"):form.querySelector(".js-selling-plan").removeAttribute("name")}),$(".js-selling-plan").on("input",e=>{const form=e.target.closest(".js-product-form"),id=form.querySelector('[name="id"]').value,selectedOption=e.target.options[e.target.selectedIndex],discountValue=Number(selectedOption.dataset.discountValue),variant=JSON.parse(form.querySelector('[type="application/json"]').textContent).variants.find(e2=>+e2.id==+id),priceFinal=variant.price*(100-discountValue)/100;form.querySelectorAll(".js-discount").forEach(node=>node.innerHTML=discountValue),form.querySelectorAll(".js-price").forEach(node=>node.innerHTML=theme.Currency.formatMoney(priceFinal,theme.strings.moneyFormat)),form.querySelectorAll(".js-price-compare").forEach(node=>node.innerHTML=theme.Currency.formatMoney(variant.price,theme.strings.moneyFormat))})}),(function(){var BANNER_ID="accelpay-delivery-success-banner",INSERT_DEBOUNCE_MS=450,insertDebounceTimer=null,SUCCESS_HEADLINE="Score! These tasty flavors can be delivered to the below address within 1-hour.";function clearInsertSchedule(){insertDebounceTimer&&(clearTimeout(insertDebounceTimer),insertDebounceTimer=null)}function extractCurrentAddressText(){var el=document.querySelector(".accelpay-no-products-message .accelpay-address-info");if(el&&el.textContent)return el.textContent.trim();if(el=document.querySelector(".accelpay-address-text"),el&&el.textContent){var line=el.textContent.replace(/\s+/g," ").trim();if(line)return/^current address\s*:/i.test(line)?line:"Current address: "+line}if(el=document.querySelector(".accelpay-address-info"),el&&el.textContent)return el.textContent.trim();if(el=document.querySelector("#accelpay-zipcode-summary"),el&&el.textContent){var t=el.textContent.replace(/\s+/g," ").trim(),m=t.match(/Current address:\s*(.+?)(?:\s*$|(?=\s{2,}))/i);if(m&&m[1])return"Current address: "+m[1].trim();if(t.indexOf("Current address")!==-1)return t}return""}function hasVisibleDeliveryProducts(){var grid=document.querySelector(".collection_product_grid_wrapper");return grid?grid.querySelectorAll(".custom_product_grid_item:not(.accelpay-delivery-product-unavailable)").length>0:!1}function isAccelpayAddressGateMounted(){return!!document.getElementById("accelpay-address-modal")}function isAddressModalVisible(){var modal=document.getElementById("accelpay-address-modal");if(!modal||modal.hasAttribute("hidden")||modal.getAttribute("aria-hidden")==="true")return!1;var st=window.getComputedStyle(modal);if(st.display==="none"||st.visibility==="hidden")return!1;var r=modal.getBoundingClientRect();return!(r.width<4&&r.height<4)}function removeSuccessBanner(){clearInsertSchedule();var el=document.getElementById(BANNER_ID);el&&el.remove(),document.body.classList.remove("accelpay-success-banner-active");var summary=document.querySelector("#accelpay-zipcode-summary");summary&&(summary.style.display="")}function tryInsertSuccessBannerNow(){if(!document.querySelector(".accelpay-no-products-message")&&isAccelpayAddressGateMounted()&&!isAddressModalVisible()&&!document.getElementById(BANNER_ID)&&hasVisibleDeliveryProducts()){var address=extractCurrentAddressText();if(address){var grid=document.querySelector(".collection_product_grid_wrapper");if(grid){var wrap=document.createElement("div");wrap.id=BANNER_ID,wrap.className="accelpay-delivery-success-banner",wrap.setAttribute("role","status"),wrap.innerHTML='<p class="accelpay-delivery-success-banner__headline"></p><p class="accelpay-delivery-success-banner__address"></p>',wrap.querySelector(".accelpay-delivery-success-banner__headline").textContent=SUCCESS_HEADLINE,wrap.querySelector(".accelpay-delivery-success-banner__address").textContent=address,grid.insertAdjacentElement("beforebegin",wrap),document.body.classList.add("accelpay-success-banner-active");var summary=document.querySelector("#accelpay-zipcode-summary");summary&&(summary.style.display="none")}}}}function scheduleInsertSuccessBanner(){insertDebounceTimer||(insertDebounceTimer=setTimeout(function(){insertDebounceTimer=null,tryInsertSuccessBannerNow()},INSERT_DEBOUNCE_MS))}function ensureSuccessBanner(){if(document.querySelector(".accelpay-no-products-message")){removeSuccessBanner();return}if(!isAccelpayAddressGateMounted()){removeSuccessBanner();return}if(isAddressModalVisible()){removeSuccessBanner();return}if(document.getElementById(BANNER_ID)){var addrEl=document.querySelector("#"+BANNER_ID+" .accelpay-delivery-success-banner__address"),next=extractCurrentAddressText();addrEl&&next&&addrEl.textContent!==next&&(addrEl.textContent=next);return}if(!hasVisibleDeliveryProducts()){clearInsertSchedule();return}if(!extractCurrentAddressText()){clearInsertSchedule();return}scheduleInsertSuccessBanner()}function tick(){try{ensureSuccessBanner()}catch{}}function boot(){tick();var mo=new MutationObserver(function(){tick()});mo.observe(document.body,{childList:!0,subtree:!0}),setTimeout(tick,400),setTimeout(tick,1500),setTimeout(tick,3e3)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",boot):boot()})();
2//# sourceMappingURL=/cdn/shop/t/74/assets/custom.js.map?v=58039693423575579711787335319

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.