PageSourceSearch

https://mint-bikes.com/cdn/shop/t/72/assets/bons-plans-tabs.js?v=146226216663888394771790256560

js mint-bikes.com collected 2026-09-25 21:51:59 UTC 2,855 bytes, 2 lines download raw bytes

1(function(){"use strict";var CACHE=new WeakMap;function tabs(root){return Array.prototype.slice.call(root.querySelectorAll("[data-bp-tab]"))}function setActive(root,tab){tabs(root).forEach(function(t){var on=t===tab;t.classList.toggle("is-active",on),on?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}function gridOf(root){return root.querySelector("[data-bp-grid]")}function syncCta(root,tab){var link=root.querySelector("[data-bp-cta-target]");if(link){var href=tab.getAttribute("data-bp-cta");href&&link.setAttribute("href",href)}}function trim(grid,limit){if(!(!limit||limit<1))for(var cards=grid.children;cards.length>limit;)grid.removeChild(cards[cards.length-1])}function apply(root,html,limit){var grid=gridOf(root);grid&&(grid.innerHTML=html,trim(grid,limit),grid.removeAttribute("aria-busy"),root.dispatchEvent(new CustomEvent("bons-plans:grid-changed",{bubbles:!0})))}function load(root,tab){var grid=gridOf(root);if(grid){var limit=parseInt(grid.getAttribute("data-bp-limit"),10)||0,cat=tab.getAttribute("data-bp-category")||"",store=CACHE.get(root)||{};if(Object.prototype.hasOwnProperty.call(store,cat)){apply(root,store[cat],limit);return}var url=tab.getAttribute("href"),sep=url.indexOf("?")===-1?"?":"&";grid.setAttribute("aria-busy","true"),grid.classList.add("is-loading"),fetch(url+sep+"section_id=bons-plans",{headers:{Accept:"text/html"}}).then(function(r){if(!r.ok)throw new Error("HTTP "+r.status);return r.text()}).then(function(html){var doc=new DOMParser().parseFromString(html,"text/html"),fresh=doc.querySelector("[data-bp-grid]"),markup=fresh?fresh.innerHTML:"";store[cat]=markup,CACHE.set(root,store),apply(root,markup,limit)}).catch(function(){grid.removeAttribute("aria-busy"),window.location.href=tab.getAttribute("href")}).then(function(){grid.classList.remove("is-loading")})}}function bind(root){if(root.dataset.bpTabsBound!=="1"&&root.querySelector("[data-bp-tabs]")){root.dataset.bpTabsBound="1";var grid=gridOf(root),first=tabs(root)[0];if(grid&&first){var store={};store[first.getAttribute("data-bp-category")||""]=grid.innerHTML,CACHE.set(root,store)}root.addEventListener("click",function(e){var tab=e.target.closest("[data-bp-tab]");!tab||!root.contains(tab)||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||(e.preventDefault(),!tab.classList.contains("is-active")&&(setActive(root,tab),syncCta(root,tab),load(root,tab)))})}}function init(scope){var s=scope&&scope.querySelectorAll?scope:document;Array.prototype.forEach.call(s.querySelectorAll("[data-bons-plans]"),bind)}document.addEventListener("shopify:section:load",function(e){init(e.target)}),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){init(document)}):init(document)})();
2//# sourceMappingURL=/cdn/shop/t/72/assets/bons-plans-tabs.js.map?v=146226216663888394771790256560

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.