1(function(){"use strict";var CFG={t_no_results:"No results for"};window.CQS_NavStack=window.CQS_NavStack||[],window.CQS_Brands=window.CQS_Brands||[];function cqsGoTo(handle){handle&&(window.location.href="/collections/"+handle)}function cqsRenderModels(models,brandLabel){var titleEl=document.getElementById("cqs-model-title"),gridEl=document.getElementById("cqs-grid-models");titleEl&&(titleEl.textContent=brandLabel),gridEl&&(gridEl.innerHTML=models.map(function(m,i){return' <button type="button" class="cqs-card" data-model-idx="'+i+'"> <span>'+m.name+'</span> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg> </button>'}).join(""))}function initCQS(){var cfgEl=document.getElementById("cqs-config");if(cfgEl)try{CFG=JSON.parse(cfgEl.textContent)||CFG}catch(e){}var dataEl=document.getElementById("cqs-data-source"),gridBrands=document.getElementById("cqs-grid-brands");if(!(!dataEl||!gridBrands))try{window.CQS_Brands=JSON.parse(dataEl.textContent||"[]"),window.CQS_NavStack=[],gridBrands.innerHTML=window.CQS_Brands.map(function(b,i){return' <button type="button" class="cqs-card" data-brand-idx="'+i+'"> <span>'+b.label+'</span> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg> </button>'}).join("")}catch(e){console.error("Cart Quick Shop Error:",e)}}document.addEventListener("click",function(e){var tab=e.target.closest(".cqs-tab");if(tab){var widget=tab.closest(".cqs-widget");if(!widget)return;widget.querySelectorAll(".cqs-tab").forEach(function(t){t.classList.remove("is-active")}),widget.querySelectorAll(".cqs-content").forEach(function(c){c.classList.remove("is-active")}),tab.classList.add("is-active");var targetContent=widget.querySelector("#"+tab.dataset.target);targetContent&&targetContent.classList.add("is-active");return}var brandBtn=e.target.closest("[data-brand-idx]");if(brandBtn){var b=window.CQS_Brands[brandBtn.getAttribute("data-brand-idx")];b&&b.models&&b.models.length>0?(window.CQS_NavStack=[{models:b.models,brandLabel:b.label,brand:b}],cqsRenderModels(b.models,b.label),document.getElementById("cqs-step-brands").classList.remove("is-active"),document.getElementById("cqs-step-models").classList.add("is-active")):b&&cqsGoTo(b.allHandle||b.id);return}var modelBtn=e.target.closest("[data-model-idx]");if(modelBtn){var top=window.CQS_NavStack[window.CQS_NavStack.length-1];if(!top)return;var m=top.models[modelBtn.getAttribute("data-model-idx")];m&&m.kids&&m.kids.length>0?(window.CQS_NavStack.push({models:m.kids,brandLabel:m.name,brand:top.brand}),cqsRenderModels(m.kids,m.name)):m&&cqsGoTo(m.handle||top.brand.allHandle||top.brand.id);return}var backBtn=e.target.closest("#cqs-btn-back");if(backBtn){if(window.CQS_NavStack.length>1){window.CQS_NavStack.pop();var prev=window.CQS_NavStack[window.CQS_NavStack.length-1];cqsRenderModels(prev.models,prev.brandLabel)}else window.CQS_NavStack=[],document.getElementById("cqs-step-models").classList.remove("is-active"),document.getElementById("cqs-step-brands").classList.add("is-active");return}var sugBtn=e.target.closest(".cqs-sug[data-sug-handle]");if(sugBtn){cqsGoTo(sugBtn.getAttribute("data-sug-handle"));return}var searchWrap=e.target.closest(".cqs-search-wrap");
1if(!searchWrap){var dd=document.getElementById("cqs-dd");dd&&dd.classList.remove("is-open")}});var searchTimer;document.addEventListener("input",function(e){if(e.target.matches("#cqs-search")){var q=(e.target.value||"").trim().toLowerCase(),searchDD=document.getElementById("cqs-dd");if(searchDD){if(clearTimeout(searchTimer),q.length<2){searchDD.classList.remove("is-open"),searchDD.innerHTML="";return}searchTimer=setTimeout(function(){var tokens=q.split(/\s+/).filter(Boolean),hits=[];function matchesAll(str){var t=String(str||"").toLowerCase();return tokens.every(function(tok){return t.includes(tok)})}for(var i=0;i<window.CQS_Brands.length&&hits.length<6;i++)matchesAll(window.CQS_Brands[i].label)&&hits.push({type:"brand",data:window.CQS_Brands[i],name:window.CQS_Brands[i].label,sub:"Brand"});function dig(arr,brand){for(var k=0;k<arr.length&&hits.length<6;k++){var m=arr[k],combined=brand.label+" "+(m.name||"");matchesAll(combined)&&hits.push({type:"model",data:m,brand:brand,name:m.name,sub:brand.label}),m.kids&&m.kids.length&&dig(m.kids,brand)}}window.CQS_Brands.forEach(function(b){b.models&&dig(b.models,b)}),hits.length===0?searchDD.innerHTML='<div class="cqs-sug"><div class="cqs-sug-sub">'+(CFG.t_no_results||"No results for")+' "'+q+'"</div></div>':searchDD.innerHTML=hits.map(function(h){var handle=h.type==="brand"?h.data.allHandle||h.data.id:h.data.handle||h.brand.allHandle||h.brand.id;return' <div class="cqs-sug" data-sug-handle="'+handle+'"> <div> <div class="cqs-sug-name">'+h.name+'</div> <div class="cqs-sug-sub">'+h.sub+'</div> </div> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="width:14px;height:14px;color:#94a3b8;"><path d="m9 18 6-6-6-6"/></svg> </div>'}).join(""),searchDD.classList.add("is-open")},150)}}});function boot(){document.getElementById("cqs-data-source")&&initCQS()}document.readyState!=="loading"?boot():document.addEventListener("DOMContentLoaded",boot);var reinitTimer,mo=new MutationObserver(function(mutations){for(var i=0;i<mutations.length;i++)for(var added=mutations[i].addedNodes,j=0;j<added.length;j++){var n=added[j];if(n.nodeType===1&&(n.id==="cqs-data-source"||n.querySelector&&n.querySelector("#cqs-data-source"))){clearTimeout(reinitTimer),reinitTimer=setTimeout(initCQS,0);return}}});mo.observe(document.documentElement,{childList:!0,subtree:!0})})(); 2//# sourceMappingURL=/cdn/shop/t/7/assets/cart-quick-shop.js.map?v=136792436939072752701783059583
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.