1(function(){function init(){try{var imgUrl2=function(u){return u+(u.indexOf("?")>-1?"&":"?")+"width=88"},esc2=function(s){return String(s).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},money2=function(p){var n=parseFloat(p);return isNaN(n)?"":"$"+n.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,",")},renderResults2=function(q,items){if(!items.length){panel.innerHTML='<div class="bn-predictive__empty">No matches for \u201C'+esc2(q)+"\u201D</div>",panel.hidden=!1;return}var gpPct=typeof window.BN_GP_PCT=="number"&&window.BN_GP_PCT>0?window.BN_GP_PCT:0;function priceHtml(raw,rawCompare){var base=parseFloat(raw);if(isNaN(base))return"";if(gpPct>0){var msrp=parseFloat(rawCompare),discBase=!isNaN(msrp)&&msrp>base?msrp:base,disc=discBase*(100-gpPct)/100;return'<span class="bn-predictive__price bn-predictive__price--sale">'+money2(disc)+'<s class="bn-predictive__price-old">'+money2(discBase)+"</s></span>"}return'<span class="bn-predictive__price">'+money2(base)+"</span>"}panel.innerHTML='<div class="bn-predictive__label">Products</div>'+items.map(function(p){var img=p.featured_image&&p.featured_image.url?'<img src="'+imgUrl2(p.featured_image.url)+'" alt="" loading="lazy" width="44" height="44">':'<span class="bn-predictive__ph"></span>';return'<a class="bn-predictive__item" href="'+p.url+'">'+img+'<span class="bn-predictive__info"><span class="bn-predictive__title">'+esc2(p.title)+"</span>"+priceHtml(p.price,p.compare_at_price||p.compare_at_price_max||p.compare_at_price_min)+'</span><span class="bn-predictive__arrow">\u2192</span></a>'}).join("")+'<a class="bn-predictive__all" href="/search?q='+encodeURIComponent(q)+'&type=product">See all results for \u201C'+esc2(q)+"\u201D \u2192</a>",panel.hidden=!1},fetchResults2=function(q){lastQ=q,fetch("/search/suggest.json?q="+encodeURIComponent(q)+"&resources[type]=product&resources[limit]=5&resources[options][unavailable_products]=last").then(function(r){return r.json()}).then(function(data){if(q===lastQ){var items=data&&data.resources&&data.resources.results&&data.resources.results.products||[];renderResults2(q,items)}}).catch(function(){})},imgUrl=imgUrl2,esc=esc2,money=money2,renderResults=renderResults2,fetchResults=fetchResults2,input=document.querySelector(".search-overlay-input"),overlay=document.querySelector(".search-overlay");if(!input||!overlay||overlay.querySelector(".bn-predictive"))return;var panel=document.createElement("div");panel.className="bn-predictive",panel.hidden=!0,overlay.appendChild(panel);var timer=null,lastQ="";input.addEventListener("input",function(){var q=input.value.trim();if(clearTimeout(timer),q.length<2){panel.hidden=!0,panel.innerHTML="";return}timer=setTimeout(function(){fetchResults2(q)},200)}),document.addEventListener("click",function(e){overlay.contains(e.target)||(panel.hidden=!0)})}catch(err){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})(),(function(){function init(){try{var priceEl=document.querySelector(".bpdp-price [data-bpdp-price-current]");if(!priceEl)return;var realBtn=null;if(document.querySelectorAll('button, input[type="submit"]').forEach(function(b){realBtn||/add\s+to\s+cart/i.test(b.textContent||b.value||"")&&(realBtn=b)}),!realBtn)return;for(var existing=document.querySelectorAll('[class*="sticky"]'),i=0;i<existing.length;i++)if(/add\s+to\s+cart/i.test(existing[i].textContent||"")&&existing[i]!==realBtn&&!existing[i].contains(realBtn))return;var titleEl=document.querySelector(".bpdp-title, #MainContent h1"),bar=document.createElement("div");bar.className="bn-sticky-atc",bar.innerHTML='<div class="bn-sticky-atc__meta"><div class="bn-sticky-atc__title">'+(titleEl?titleEl.textContent.trim():"")+'</div><div class="bn-sticky-atc__price">'+priceEl.textContent.trim()+'</div></div><button type="button" class="bn-sticky-atc__btn">Add to Cart</button>',document.body.appendChild(bar),bar.querySelector(".bn-sticky-atc__btn").addEventListener("click",function(){realBtn.click()}),new MutationObserver(function(){var p=bar.querySelector(".bn-sticky-atc__price");p&&(p.textContent=priceEl.textContent.trim())}).observe(priceEl,{childList:!0,characterData:!0,subtree:!0}),"IntersectionObserver"in window?new IntersectionObserver(function(entries){var e=entries[0],passed=!e.isIntersecting&&e.boundingClientRect.top<0;bar.classList.toggle("bn-sticky-atc--visible",passed)},{threshold:0}).observe(realBtn):bar.classList.add("bn-sticky-atc--visible")}catch(err){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()}
1)(),(function(){function init(){try{if(!/^\/account(\/|$)/.test(location.pathname)||!/\/orders?\//.test(location.pathname)||document.querySelector(".bn-register"))return;var main=document.getElementById("MainContent");if(!main)return;var el=document.createElement("div");el.className="bn-register",el.innerHTML='<div class="bn-register__eyebrow">One more thing</div><div class="bn-register__title">Register your device</div><p class="bn-register__text">Activates your 2-year warranty and unlocks setup guides before it even arrives.</p><a class="bn-register__btn" href="/pages/register-device">Register in 30 seconds</a>',main.insertAdjacentElement("afterbegin",el)}catch(err){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})(),(function(){var PROMOS={"launch-monitors":"Tour-proven camera accuracy.",gps:"38,000+ courses mapped worldwide."};function init(){try{document.querySelectorAll(".mega-menu-dropdown").forEach(function(panel){var key=panel.getAttribute("data-mega-panel");if(!(!PROMOS[key]||panel.querySelector(".mega-menu-promo"))){var container=panel.querySelector(".container");if(container){var el=document.createElement("div");el.className="mega-menu-promo",el.textContent=PROMOS[key];var footer=container.querySelector(".mega-menu-footer");if(footer){var ph=footer.querySelector("span");ph&&!ph.textContent.trim()&&!ph.children.length?ph.replaceWith(el):footer.insertAdjacentElement("afterbegin",el)}else container.appendChild(el)}}})}catch(err){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})(),(function(){function init(){try{var hero=document.querySelector(".bpdp-gallery img, .bpdp-media img, #MainContent img");if(!hero)return;var rect=hero.getBoundingClientRect();rect.top<window.innerHeight&&(hero.setAttribute("fetchpriority","high"),hero.setAttribute("loading","eager"),hero.setAttribute("decoding","sync"))}catch(err){}}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init()})(); 2//# sourceMappingURL=/cdn/shop/t/127/assets/bushnell-cro-patch.js.map?v=107937624809619826151790092425
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.