1$(document).ready(function(){var pathname=window.location.pathname;if(pathname.includes("pages/nps")){var screen_height=$(window).height(),current_header_footer=$(".nav.clearfix").height()+$(".footer").height(),nps_height=$(".container.main.content").height();screen_height>current_header_footer+nps_height&&$(".footer").addClass("footer-static")}else $(".footer").hasClass("footer-static")&&$(".footer").removeClass("footer-static");var url=new URL(window.location.href);if(url.searchParams.get("msg")){var custom_text=decodeURIComponent(url.searchParams.get("msg"));$(".promo_banner__content").html(custom_text)}});function updateBreadcrumb(){var url=sessionStorage.getItem("collection_url"),title=sessionStorage.getItem("collection_title");if(url&&title){var urlEl=document.getElementById("breadcrumb-collection-url"),titleEl=document.getElementById("breadcrumb-collection-title");urlEl&&titleEl&&(urlEl.href=url,titleEl.textContent=title)}}updateBreadcrumb(),jQuery('input[name="verification_code"]').attr("isp_ignore",!0);function adjustAnnouncementBar(){$(".announcement-bar").length>0&&$("#header").css("top",$(".announcement-bar").height()+"px")}$(document).ready(function(){if($(window).width()>768&&(adjustAnnouncementBar(),$(window).resize(()=>{adjustAnnouncementBar()})),$('input[name="enable_extra_discount"]').length){let isRechargeWidgetLoaded2=function(){if($("[data-widget-container]").length){stopRechargeCheckInterval2(),$("[data-label-discount]").hide(),$("[data-label-subsave]").hide();var extraDiscount=parseInt($('input[name="extra_discount"]').val()),originalDiscount=parseInt($('input[name="original_discount"]').val()),totalDiscount=extraDiscount+originalDiscount,initialPrice=parseInt($('.swatch-element[data-id="'+$('.shopify-product-form [name="id"]').val()+'"]').data("price")),discountPrice=initialPrice-totalDiscount/100*initialPrice;$("[data-label-discount]").text(totalDiscount+"%"),$("[data-price-subsave]").text("$"+(discountPrice/100).toFixed(2)),$("[data-label-discount]").show(),$("[data-label-subsave]").show()}},stopRechargeCheckInterval2=function(){clearInterval(rechargeCheckInterval)};var isRechargeWidgetLoaded=isRechargeWidgetLoaded2,stopRechargeCheckInterval=stopRechargeCheckInterval2;const rechargeCheckInterval=setInterval(isRechargeWidgetLoaded2,100)}$(".swatch-element").click(function(){var qty=parseInt($(this).data("qty"),10),isAvailable=$(this).data("available"),$quantityInput=$("#quantity"),current_qty=parseInt($quantityInput.val(),10);if((isNaN(qty)||qty<0)&&(qty=0),(isNaN(current_qty)||current_qty<1)&&(current_qty=1),qty>0&¤t_qty>qty&&$quantityInput.val(qty),qty===0&&!isAvailable?$quantityInput.attr("min",0).val(0).data("prev",0):($quantityInput.attr("min",1),(current_qty<1||parseInt($quantityInput.val(),10)<1)&&$quantityInput.val(1),$quantityInput.data("prev",$quantityInput.val())),$(".inventory-message").length>0&&changeMessage(qty),$('input[name="enable_extra_discount"]').length){var extraDiscount=parseInt($('input[name="extra_discount"]').val()),originalDiscount=parseInt($('input[name="original_discount"]').val()),totalDiscount=extraDiscount+originalDiscount,initialPrice=parseInt($(this).data("price")),discountPrice=initialPrice-totalDiscount/100*initialPrice;$("[data-label-discount]").hide(),$("[data-label-subsave]").hide(),setTimeout(function(){$("[data-label-discount]").text(totalDiscount+"%"),$("[data-price-subsave]").text("$"+(discountPrice/100).toFixed(2)),$("[data-label-discount]").show(),$("[data-label-subsave]").show()},100)}});function changeMessage(qty){var inventory_threshold=$(".inventory-message").data("inventory-threshold");qty>inventory_threshold?($(".inventory-above").show(),$(".inventory-below").hide()):($(".inventory-above").hide(),$(".inventory-below").show())}$(".inventory-message").length>0&&changeMessage($(".swatch_options input:checked+.swatch-element").data("qty"))}),$(document).on("click",".swatch-element",function(){$(".variant-sku").text("SKU: "+$(this).data("sku"))});function updateHeader(){var $header=$("#header");if($header.length){if($(window).width()>=768){$header.removeClass("is-fixed"),$header.css("display","");return}$header.show();var anchorTop=$header.data("sticky-anchor");typeof anchorTop>"u"&&(setMobileHeaderAnchor(),anchorTop=$header.data("sticky-anchor")),$(window).scrollTop()>=anchorTop?$header.addClass("is-fixed"):$header.removeClass("is-fixed")}}function setMobileHeaderAnchor(){var $header=$("#header");if(!(!$header.length||$(window).width()>=768)){var wasFixed=$header.hasClass("is-fixed");wasFixed&&$header.removeClass("is-fixed"),$header.data("sticky-anchor",$header.offset().top),wasFixed&&$header.addClass("is-fixed")}}
1$(window).on("load resize scroll",function(e){$(window).width()<768&&e.type!=="scroll"&&setMobileHeaderAnchor(),updateHeader()}),$(document).ready(function(){setMobileHeaderAnchor(),updateHeader(),$(".promo_banner-close").on("click",function(){setTimeout(function(){setMobileHeaderAnchor(),updateHeader()},60)})}),document.addEventListener("rebuy:cart.change",function(event){jQuery.getJSON("/cart.js",function(cart){var productItem=cart.item_count;$(".cart_container span.cart_count").text(productItem)})});function tdbbsAddShoppingBagSvg(){const iconSvg=document.createElementNS("http://www.w3.org/2000/svg","svg");iconSvg.setAttribute("fill","none"),iconSvg.setAttribute("viewBox","0 0 16 16"),iconSvg.setAttribute("width","16"),iconSvg.setAttribute("height","16");let iconPath=document.createElementNS("http://www.w3.org/2000/svg","path");iconPath.setAttribute("fill-rule","evenodd"),iconPath.setAttribute("clip-rule","evenodd"),iconPath.setAttribute("fill","#303030"),iconPath.setAttribute("d","M1.5 3.5C1.5 2.94772 1.94772 2.5 2.5 2.5H13.5C14.0523 2.5 14.5 2.94772 14.5 3.5V12.5C14.5 13.0523 14.0523 13.5 13.5 13.5H2.5C1.94772 13.5 1.5 13.0523 1.5 12.5V3.5ZM13.5 3.5H2.5V12.5H13.5V3.5Z"),iconSvg.appendChild(iconPath);let iconPath2=document.createElementNS("http://www.w3.org/2000/svg","path");iconPath2.setAttribute("fill-rule","evenodd"),iconPath2.setAttribute("clip-rule","evenodd"),iconPath2.setAttribute("fill","#303030"),iconPath2.setAttribute("d","M5.5 5C5.77614 5 6 5.22386 6 5.5C6 6.03043 6.21071 6.53914 6.58579 6.91421C6.96086 7.28929 7.46957 7.5 8 7.5C8.53043 7.5 9.03914 7.28929 9.41421 6.91421C9.78929 6.53914 10 6.03043 10 5.5C10 5.22386 10.2239 5 10.5 5C10.7761 5 11 5.22386 11 5.5C11 6.29565 10.6839 7.05871 10.1213 7.62132C9.55871 8.18393 8.79565 8.5 8 8.5C7.20435 8.5 6.44129 8.18393 5.87868 7.62132C5.31607 7.05871 5 6.29565 5 5.5C5 5.22386 5.22386 5 5.5 5Z"),iconSvg.appendChild(iconPath2);let labelEl=document.getElementsByClassName("rc_widget__option--subsave")[0].getElementsByClassName("rc-selling-plans__label")[0];labelEl.insertBefore(iconSvg,labelEl.firstChild)}function tdbbsAddDiscountDescription(){let discount=30;typeof window.subscription_discount_amount<"u"&&window.subscription_discount_amount>-1&&(discount=window.subscription_discount_amount);let html='<div class="pdo">';html+='<div class="pdo__option">',html+='<span class="pdo__title">',html+="Save "+discount+"%",html+="</span>",html+='<span class="pdo__description">',html+="on your<br>first order",html+="</span>",html+="</div>",html+='<svg class="pdo__devider" width="38" height="8" viewBox="0 0 38 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M37.3536 4.35355C37.5488 4.15829 37.5488 3.84171 37.3536 3.64645L34.1716 0.464466C33.9763 0.269204 33.6597 0.269204 33.4645 0.464466C33.2692 0.659728 33.2692 0.976311 33.4645 1.17157L36.2929 4L33.4645 6.82843C33.2692 7.02369 33.2692 7.34027 33.4645 7.53553C33.6597 7.7308 33.9763 7.7308 34.1716 7.53553L37.3536 4.35355ZM0 4.5H37V3.5H0V4.5Z" fill="#007CBB"/></svg>',html+='<div class="pdo__option">',html+='<span class="pdo__title">',html+="And 10%",html+="</span>",html+='<span class="pdo__description">',html+="on every<br>future order",html+="</span>",html+="</div>",html+="</div>",$(html).insertAfter(".rc-option__subsave .rc_widget__option__selector")}$(document).ready(function(){const targetNode=document.getElementsByClassName("shopify-product-form")[0];let isAdded=!1;const hasModernRechargeWidget=!!document.querySelector("recharge-subscription-widget"),hasLegacyRechargeWidget=!!document.querySelector(".rc_widget__option, .rc-widget-injection-parent .rc-radio");if(!targetNode||isAdded||hasModernRechargeWidget&&!hasLegacyRechargeWidget)return;const config={childList:!0,subtree:!0},callback=function(mutationsList,observer2){for(let mutation of mutationsList){if(!isAdded&&mutation.type==="childList"&&mutation.target.classList.contains("rc_widget__price--subsave")){tdbbsAddDiscountDescription(),tdbbsAddShoppingBagSvg(),isAdded=!0;return}tdbbsShowSubscriptionDiscountPrice()}};new MutationObserver(callback).observe(targetNode,config)});function tdbbsShowSubscriptionDiscountPrice(){const hasModernRechargeWidget=!!document.querySelector("recharge-subscription-widget"),hasLegacyRechargeWidget=!!document.querySelector(".rc_widget__option, .rc-widget-injection-parent .rc-radio");if(hasModernRechargeWidget&&!hasLegacyRechargeWidget)return;const regularPriceEl=$(".modal_price span[content*='.']"),regularPriceMoneyEl=regularPriceEl.find(".money").first(),onetimePriceEl=$(".js-product_section .rc-option__price.rc_widget__price--onetime").first();$(".modal_price .subscription").remove();const saleDiscountPrice=$(".container.main.content .product .sale-discount span.original").first().html(),fallbackPrice=(regularPriceMoneyEl.length?regularPriceMoneyEl.html():"")||regularPriceEl.html(),regularPrice=saleDiscountPrice||fallbackPrice;if(regularPrice&®ularPrice.length&®ularPriceEl.html(regularPrice),onetimePriceEl.length&&!onetimePriceEl.text().trim().length&®ularPrice&&onetimePriceEl.html(regularPrice),$("input[type='radio'][value=subsave]").first().is(":checked")){regularPriceEl.addClass("without-subscription");const subscriptionPrice=$(".rc-option__price.rc_widget__price.rc_widget__price--subsave").first().html();$('<span class="subscription">
1'+subscriptionPrice+"</span>").insertBefore(regularPriceEl),toggleSalePrice(!0)}else regularPriceEl.removeClass("without-subscription"),toggleSalePrice(!1)}function toggleSalePrice(show){const hasModernRechargeWidget=!!document.querySelector("recharge-subscription-widget"),hasLegacyRechargeWidget=!!document.querySelector(".rc_widget__option, .rc-widget-injection-parent .rc-radio");hasModernRechargeWidget&&!hasLegacyRechargeWidget||$(".js-product_section .sale-discount").length>0&&(show?($(".js-product_section .modal_price.hide-sale-discount").removeClass("hide-sale-discount"),$(".js-product_section .sale-discount").addClass("hide-sale-discount")):($(".js-product_section .modal_price").addClass("hide-sale-discount"),$(".js-product_section .sale-discount.hide-sale-discount").removeClass("hide-sale-discount")),setTimeout(function(){var onetime_price=$(".js-product_section .rc-option__price.rc_widget__price--onetime"),saleDiscountPrice=$(".js-product_section .sale-discount .sale").first().text().trim(),modalCurrentPrice=$(".js-product_section .modal_price .current_price .money").first().text().trim();saleDiscountPrice.length?onetime_price.html(saleDiscountPrice):!onetime_price.first().text().trim().length&&modalCurrentPrice.length&&onetime_price.html(modalCurrentPrice)},50))}$("form").on("change","input",function(){tdbbsShowSubscriptionDiscountPrice()}),$(document).on("click",".rc-radio.rc_widget__option",function(){const innerInput=$(this).find('input[type="radio"]');if(innerInput.prop("checked"))return;innerInput.prop("checked",!0),tdbbsShowSubscriptionDiscountPrice();const activeClass1="rc_widget__option--active",activeClass2="rc-option--active";$(this).parent().find(".rc-radio").removeClass(activeClass1).removeClass(activeClass2),$(this).addClass(activeClass1).addClass(activeClass2)});function setCookie(name,value,days){var expires="";if(days){var date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3),expires="; expires="+date.toUTCString()}document.cookie=name+"="+(value||"")+expires+"; path=/"}function getCookie(name){for(var nameEQ=name+"=",ca=document.cookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];c.charAt(0)==" ";)c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null}function eraseCookie(name){document.cookie=name+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}function accountSuccessRedirect(){setTimeout(function(){window.location.href="https://www.bestbullysticks.com/pages/rewards-program"},1e4)}$(".account-success").length>0&&accountSuccessRedirect(),$(document).ready(function(){$(document).on("click",".isp_add_to_cart_form .isp_add_to_cart_btn, .isp_quick_view_add_to_cart_form .isp_quick_view_add_to_cart_btn_quick_view",function(ev){ev.preventDefault(),ev.stopPropagation();let btn=$(this),form=btn.closest("form"),max_qty=btn.attr("data-max-qty"),id=form.find('input[name="id"]');typeof max_qty<"u"&&typeof id<"u"?$.getJSON("/cart.js",function(data){if(typeof data?.items<"u"){let product=data.items.find(pr=>pr.id==id.val());product?parseInt(max_qty)>parseInt(product.quantity)?form.submit():$("<p>You can add up to "+max_qty+" items to your cart</>").insertAfter(form):form.submit()}}):form.submit()})}),document.addEventListener("rebuy:cart.change",function(event){var formLimit=jQuery(".shopify-product-form #quantity");if(event?.detail?.cart?.cart?.items.length>0&&formLimit.length&&formLimit.data("limit")!==null){var prodId=jQuery(".shopify-product-form").data("productid");event.detail.cart.cart.items.forEach(function(item,index){item.product_id==prodId&&formLimit.attr("data-in-cart",item.quantity)})}}),(()=>{function fastSimonSerpHooks(){window.SerpOptions.registerHook("serp-filters",({data,element})=>{const $filtersContainer=document.querySelector("#fast-simon-serp-app .filters-container"),klaviyoClass="klaviyo-form-W33xpe";if(!$filtersContainer.parentElement.querySelector("."+klaviyoClass)){const $klaviyoBanner=document.createElement("div");$klaviyoBanner.classList.add(klaviyoClass),$filtersContainer.parentElement.append($klaviyoBanner)}$filtersContainer&&$filtersContainer.querySelectorAll(".category-container").forEach($category=>{const $title=$category.querySelector(".category-title");$title&&$category.setAttribute("data-category-title",$title.textContent.trim()),$category.querySelectorAll(".category-items .checkbox").forEach($checkbox=>{const $label=$checkbox.querySelector(".checkbox-label");$label.setAttribute("title",$label.querySelector(".filters-option-text").textContent.trim())})})})}window.SerpOptions?fastSimonSerpHooks():window.addEventListener("fast-serp-ready",function(){fastSimonSerpHooks()});function iFrameFirstLoadFix(){const fixIframeOnLoad=setInterval(function(){if(document.getElementById("vs_full_frame")){let iframe=document.getElementById("vs_full_frame");
1if(iframe.parentElement.classList.contains("lazyframe")){if(clearInterval(fixIframeOnLoad),window.innerWidth<=1200){let iframeContainer=iframe.parentElement;iframeContainer.style.minHeight="750px"}}else{let lazyframeDiv=document.createElement("div");lazyframeDiv.classList.add("lazyframe"),lazyframeDiv.setAttribute("data-ratio","16:9");let parent=iframe.parentNode;parent.removeChild(iframe),lazyframeDiv.appendChild(iframe),parent.appendChild(lazyframeDiv),clearInterval(fixIframeOnLoad)}}},100)}let iFrameFinderAttempts=0;const iFrameFinderMaxAttempts=100,checkIframe=setInterval(function(){document.getElementById("vs_full_frame")?(clearInterval(checkIframe),iFrameFirstLoadFix()):iFrameFinderAttempts>=iFrameFinderMaxAttempts&&clearInterval(checkIframe),iFrameFinderAttempts++},100)})(); 2//# sourceMappingURL=/cdn/shop/t/136/assets/custom.js.map?v=21769367299996523231782479299
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.